var video=video||{};video=function(){var n={idVideo:null,callBackMethodJs:null,init:function(){window.dispatchEvent(new window.CustomEvent("video:ready"))},load:function(){$(".js-video-type-vimeo").each(function(){var t=n.getVimeoID($(this).attr("data-url")),r,i;t!=null&&(r="//i.ytimg.com/vi/"+t+"/0.jpg",i=$(this).find("img"),$.ajax({type:"GET",url:"//www.vimeo.com/api/v2/video/"+t+".json",jsonp:"callback",dataType:"jsonp",success:function(n){i.attr("src",n[0].thumbnail_medium)}}))});$(".js-video-type-youtube").each(function(){var t=n.getYoutubeID($(this).attr("data-url")),i;t!=null&&(i="//img.youtube.com/vi/"+t+"/default.jpg",$(this).find("img").attr("src",i))});$(".js-video-type-dailymotion").each(function(){var t=n.getDailyMotionIdID($(this).attr("data-url")),i;t!=null&&(i="https://www.dailymotion.com/thumbnail/video/"+t,$(this).find("img").attr("src",i))});n.loadVideo()},loadVideo:function(){$("#js-video-player-area").length&&$.get("/Videos/LoadVideoLayout",{pIdVideo:storefront.idContent},function(t){$("#js-video-player-area").html("").html(t.htmlVideo);$("#js-video-thumb-image").length&&n.setThumbnailImage(t.videoType,t.urlVideo);n.setVideoManaged()})},getYoutubeID:function(n){var t="",t=n.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);return t!=null&&(t=t[1]),t},getVimeoID:function(n){var t=n.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);return t!=null&&(t=t[5]),t},getDailyMotionIdID:function(n){var t=n.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return t!==null?t[4]!==undefined?t[4]:t[2]:null},setThumbnailImage:function(t,i){switch(t){case"Youtube":$("#js-video-img").attr("src","//img.youtube.com/vi/"+n.getYoutubeID(i)+"/maxresdefault.jpg");break;case"Vimeo":$.ajax({type:"GET",async:!1,url:"//www.vimeo.com/api/v2/video/"+n.getVimeoID(i)+".json",jsonp:"callback",dataType:"jsonp",success:function(n){$("#js-video-img").attr("src",n[0].thumbnail_large)}});break;case"DailyMotion":$("#js-video-img").attr("src","https://www.dailymotion.com/thumbnail/video/"+n.getDailyMotionIdID(i));break;default:$("#js-video-img").attr("src","https://via.placeholder.com/500x300")}},setVideoManaged:function(){$("#js-video-player").length&&videojs("#js-video-player").ready(function(){var t=this,i;this.on("play",function(){user.idContactPerson==0&&t.pause()});i=function(){if(t.scrubbing()&&user.idContactPerson==0){t.off("timeupdate",i);t.scrubbing_=!1;t.currentTime(0);t.pause();t.on("timeupdate",i)}};t.on("timeupdate",i);(user.returnCallbackRedirect=="playVideo"||n.callBackMethodJs=="playVideo")&&t.play()})}};return n}();$(document).ready(function(){video.init()}),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.videojs=n()}}(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[f]){if(h=typeof require=="function"&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,i,r)}return i[f].exports}for(var e=typeof require=="function"&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){(function(i){var u=typeof i!="undefined"?i:typeof window!="undefined"?window:{},f=n("min-document"),r;typeof document!="undefined"?t.exports=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=f),t.exports=r)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":3}],2:[function(n,t){(function(n){t.exports=typeof window!="undefined"?window:typeof n!="undefined"?n:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(){},{}],4:[function(n,t){var i=n("../internal/getNative"),r=i(Date,"now"),u=r||function(){return(new Date).getTime()};t.exports=u},{"../internal/getNative":20}],5:[function(n,t){function e(n,t,e){function nt(){o&&clearTimeout(o);s&&clearTimeout(s);a=0;s=o=b=undefined}function k(t,r){r&&clearTimeout(r);s=o=b=undefined;t&&(a=i(),w=n.apply(c,h),o||s||(h=c=undefined))}function d(){var n=t-(i()-l);n<=0||n>t?k(b,s):o=setTimeout(d,n)}function tt(){k(y,o)}function g(){var f,u,r;return h=arguments,l=i(),c=this,b=y&&(o||!p),v===!1?f=p&&!o:(s||p||(a=l),u=v-(l-a),r=u<=0||u>v,r?(s&&(s=clearTimeout(s)),a=l,w=n.apply(c,h)):s||(s=setTimeout(tt,u))),r&&o?o=clearTimeout(o):o||t===v||(o=setTimeout(d,t)),f&&(r=!0,w=n.apply(c,h)),!r||o||s||(h=c=undefined),w}var h,s,w,l,c,o,b,a=0,v=!1,y=!0,p;if(typeof n!="function")throw new TypeError(u);return t=t<0?0:+t||0,e===!0?(p=!0,y=!1):r(e)&&(p=!!e.leading,v="maxWait"in e&&f(+e.maxWait||0,t),y="trailing"in e?!!e.trailing:y),g.cancel=nt,g}var r=n("../lang/isObject"),i=n("../date/now"),u="Expected a function",f=Math.max;t.exports=e},{"../date/now":4,"../lang/isObject":33}],6:[function(n,t){function u(n,t){if(typeof n!="function")throw new TypeError(r);return t=i(t===undefined?n.length-1:+t||0,0),function(){for(var u=arguments,r=-1,o=i(u.length-t,0),f=Array(o),e;++r<o;)f[r]=u[t+r];switch(t){case 0:return n.call(this,f);case 1:return n.call(this,u[0],f);case 2:return n.call(this,u[0],u[1],f)}for(e=Array(t+1),r=-1;++r<t;)e[r]=u[r];return e[t]=f,n.apply(this,e)}}var r="Expected a function",i=Math.max;t.exports=u},{}],7:[function(n,t){function f(n,t,f){var e=!0,o=!0;if(typeof n!="function")throw new TypeError(u);return f===!1?e=!1:r(f)&&(e="leading"in f?!!f.leading:e,o="trailing"in f?!!f.trailing:o),i(n,t,{leading:e,maxWait:+t,trailing:o})}var i=n("./debounce"),r=n("../lang/isObject"),u="Expected a function";t.exports=f},{"../lang/isObject":33,"./debounce":5}],8:[function(n,t){function i(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}t.exports=i},{}],9:[function(n,t){function i(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}t.exports=i},{}],10:[function(n,t){function i(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}t.exports=i},{}],11:[function(n,t){var i=n("./createBaseFor"),r=i();t.exports=r},{"./createBaseFor":18}],12:[function(n,t){function u(n,t){return i(n,t,r)}var i=n("./baseFor"),r=n("../object/keysIn");t.exports=u},{"../object/keysIn":39,"./baseFor":11}],13:[function(n,t){function i(n,t,l,a,v){if(!o(n))return n;var y=e(t)&&(f(t)||h(t)),p=y?undefined:c(t);return r(p||t,function(r,f){if(p&&(f=r,r=t[f]),s(r))a||(a=[]),v||(v=[]),u(n,t,f,i,l,a,v);else{var o=n[f],e=l?l(o,r,f,n,t):undefined,h=e===undefined;h&&(e=r);e===undefined&&(!y||f in n)||!h&&(e===e?e===o:o!==o)||(n[f]=e)}}),n}var r=n("./arrayEach"),u=n("./baseMergeDeep"),f=n("../lang/isArray"),e=n("./isArrayLike"),o=n("../lang/isObject"),s=n("./isObjectLike"),h=n("../lang/isTypedArray"),c=n("../object/keys");t.exports=i},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(n,t){function h(n,t,h,c,l,a,v){for(var b=a.length,p=t[h];b--;)if(a[b]==p){n[h]=v[b];return}var y=n[h],w=l?l(y,p,h,n,t):undefined,k=w===undefined;k&&(w=p,u(p)&&(r(p)||o(p))?w=r(y)?y:u(y)?e(y):[]:f(p)||i(p)?w=i(y)?s(y):f(y)?y:{}:k=!1);a.push(p);v.push(w);k?n[h]=c(w,p,l,a,v):(w===w?w!==y:y===y)&&(n[h]=w)}var e=n("./arrayCopy"),i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isArrayLike"),f=n("../lang/isPlainObject"),o=n("../lang/isTypedArray"),s=n("../lang/toPlainObject");t.exports=h},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(n,t){function r(n){return function(t){return t==null?undefined:i(t)[n]}}var i=n("./toObject");t.exports=r},{"./toObject":28}],16:[function(n,t){function r(n,t,r){if(typeof n!="function")return i;if(t===undefined)return n;switch(r){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)};case 5:return function(i,r,u,f,e){return n.call(t,i,r,u,f,e)}}return function(){return n.apply(t,arguments)}}var i=n("../utility/identity");t.exports=r},{"../utility/identity":42}],17:[function(n,t){function f(n){return u(function(t,u){var h=-1,f=t==null?0:u.length,e=f>2?u[f-2]:undefined,c=f>2?u[2]:undefined,o=f>1?u[f-1]:undefined,s;for(typeof e=="function"?(e=i(e,o,5),f-=2):(e=typeof o=="function"?o:undefined,f-=e?1:0),c&&r(u[0],u[1],c)&&(e=f<3?undefined:e,f=1);++h<f;)s=u[h],s&&n(t,s,e);return t})}var i=n("./bindCallback"),r=n("./isIterateeCall"),u=n("../function/restParam");t.exports=f},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(n,t){function r(n){return function(t,r,u){for(var o=i(t),s=u(t),h=s.length,f=n?h:-1,e;n?f--:++f<h;)if(e=s[f],r(o[e],e,o)===!1)break;return t}}var i=n("./toObject");t.exports=r},{"./toObject":28}],19:[function(n,t){var i=n("./baseProperty"),r=i("length");t.exports=r},{"./baseProperty":15}],20:[function(n,t){function r(n,t){var r=n==null?undefined:n[t];return i(r)?r:undefined}var i=n("../lang/isNative");t.exports=r},{"../lang/isNative":32}],21:[function(n,t){function u(n){return n!=null&&r(i(n))}var i=n("./getLength"),r=n("./isLength");t.exports=u},{"./getLength":19,"./isLength":25}],22:[function(n,t){var i=function(){try{Object({toString:0}+"")}catch(n){return function(){return!1}}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}}();t.exports=i},{}],23:[function(n,t){function u(n,t){return n=typeof n=="number"||i.test(n)?+n:-1,t=t==null?r:t,n>-1&&n%1==0&&n<t}var i=/^\d+$/,r=9007199254740991;t.exports=u},{}],24:[function(n,t){function f(n,t,f){var o,e;return u(f)?(o=typeof t,o=="number"?i(f)&&r(t,f.length):o=="string"&&t in f)?(e=f[t],n===n?n===e:e!==e):!1:!1}var i=n("./isArrayLike"),r=n("./isIndex"),u=n("../lang/isObject");t.exports=f},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(n,t){function r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;t.exports=r},{}],26:[function(n,t){function i(n){return!!n&&typeof n=="object"}t.exports=i},{}],27:[function(n,t){function c(n){for(var c=o(n),l=c.length,s=l&&n.length,y=!!s&&f(s)&&(r(n)||i(n)||e(n)),a=-1,v=[],t;++a<l;)t=c[a],(y&&u(t,s)||h.call(n,t))&&v.push(t);return v}var i=n("../lang/isArguments"),r=n("../lang/isArray"),u=n("./isIndex"),f=n("./isLength"),e=n("../lang/isString"),o=n("../object/keysIn"),s=Object.prototype,h=s.hasOwnProperty;t.exports=c},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(n,t){function f(n){if(u.unindexedChars&&r(n)){for(var t=-1,e=n.length,f=Object(n);++t<e;)f[t]=n.charAt(t);return f}return i(n)?n:Object(n)}var i=n("../lang/isObject"),r=n("../lang/isString"),u=n("../support");t.exports=f},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(n,t){function o(n){return u(n)&&r(n)&&f.call(n,"callee")&&!e.call(n,"callee")}var r=n("../internal/isArrayLike"),u=n("../internal/isObjectLike"),i=Object.prototype,f=i.hasOwnProperty,e=i.propertyIsEnumerable;t.exports=o},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(n,t){var i=n("../internal/getNative"),r=n("../internal/isLength"),u=n("../internal/isObjectLike"),f="[object Array]",e=Object.prototype,o=e.toString,s=i(Array,"isArray"),h=s||function(n){return u(n)&&r(n.length)&&o.call(n)==f};t.exports=h},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(n,t){function e(n){return i(n)&&f.call(n)==r}var i=n("./isObject"),r="[object Function]",u=Object.prototype,f=u.toString;t.exports=e},{"./isObject":33}],32:[function(n,t){function c(n){return n==null?!1:u(n)?r.test(i.call(n)):e(n)&&(f(n)?r:o).test(n)}var u=n("./isFunction"),f=n("../internal/isHostObject"),e=n("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,s=Object.prototype,i=Function.prototype.toString,h=s.hasOwnProperty,r=RegExp("^"+i.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=c},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(n,t){function i(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}t.exports=i},{}],34:[function(n,t){function l(n){var u,t;return!(o(n)&&c.call(n)==h&&!e(n)&&!f(n))||!i.call(n,"constructor")&&(u=n.constructor,typeof u=="function"&&!(u instanceof u))?!1:s.ownLast?(r(n,function(n,r,u){return t=i.call(u,r),!1}),t!==!1):(r(n,function(n,i){t=i}),t===undefined||i.call(n,t))}var r=n("../internal/baseForIn"),f=n("./isArguments"),e=n("../internal/isHostObject"),o=n("../internal/isObjectLike"),s=n("../support"),h="[object Object]",u=Object.prototype,i=u.hasOwnProperty,c=u.toString;t.exports=l},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(n,t){function e(n){return typeof n=="string"||i(n)&&f.call(n)==r}var i=n("../internal/isObjectLike"),r="[object String]",u=Object.prototype,f=u.toString;t.exports=e},{"../internal/isObjectLike":26}],36:[function(n,t){function o(n){return e(n)&&f(n.length)&&!!i[u.call(n)]}var f=n("../internal/isLength"),e=n("../internal/isObjectLike"),i={},r,u;i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0;i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;r=Object.prototype;u=r.toString;t.exports=o},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(n,t){function u(n){return i(n,r(n))}var i=n("../internal/baseCopy"),r=n("../object/keysIn");t.exports=u},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(n,t){var u=n("../internal/getNative"),f=n("../internal/isArrayLike"),e=n("../lang/isObject"),i=n("../internal/shimKeys"),o=n("../support"),r=u(Object,"keys"),s=r?function(n){var t=n==null?undefined:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?o.enumPrototypes:f(n))?i(n):e(n)?r(n):[]}:i;t.exports=s},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(n,t){function nt(n){var a,t,rt,ot,ut;if(n==null)return[];b(n)||(n=Object(n));a=n.length;a=a&&w(a)&&(y(n)||v(n)||k(n))&&a||0;for(var ft=n.constructor,tt=-1,it=s(ft)&&ft.prototype||r,et=it===n,nt=Array(a),st=a>0,ht=f.enumErrorProps&&(n===l||n instanceof Error),ct=f.enumPrototypes&&s(n);++tt<a;)nt[tt]=tt+"";for(t in n)ct&&t=="prototype"||ht&&(t=="message"||t=="name")||st&&p(t,a)||t=="constructor"&&(et||!u.call(n,t))||nt.push(t);if(f.nonEnumShadows&&n!==r)for(rt=n===d?c:n===l?h:g.call(n),ot=i[rt]||i[e],rt==e&&(it=r),a=o.length;a--;)t=o[a],ut=ot[t],et&&ut||(ut?!u.call(n,t):n[t]===it[t])||nt.push(t);return nt}var a=n("../internal/arrayEach"),v=n("../lang/isArguments"),y=n("../lang/isArray"),s=n("../lang/isFunction"),p=n("../internal/isIndex"),w=n("../internal/isLength"),b=n("../lang/isObject"),k=n("../lang/isString"),f=n("../support"),h="[object Error]",e="[object Object]",c="[object String]",o=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],l=Error.prototype,r=Object.prototype,d=String.prototype,u=r.hasOwnProperty,g=r.toString,i={};i["[object Array]"]=i["[object Date]"]=i["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};i["[object Boolean]"]=i[c]={constructor:!0,toString:!0,valueOf:!0};i[h]=i["[object Function]"]=i["[object RegExp]"]={constructor:!0,toString:!0};i[e]={constructor:!0};a(o,function(n){var t,r;for(t in i)u.call(i,t)&&(r=i[t],r[n]=u.call(r,n))});t.exports=nt},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(n,t){var i=n("../internal/baseMerge"),r=n("../internal/createAssigner"),u=r(i);t.exports=u},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(n,t){var f=Array.prototype,u=Error.prototype,e=Object.prototype,r=e.propertyIsEnumerable,o=f.splice,i={};(function(n){var t=function(){this.x=n},e={"0":n,length:n},f=[],s;t.prototype={valueOf:n,y:n};for(s in new t)f.push(s);i.enumErrorProps=r.call(u,"message")||r.call(u,"name");i.enumPrototypes=r.call(t,"prototype");i.nonEnumShadows=!/valueOf/.test(f);i.ownLast=f[0]!="x";i.spliceObjects=(o.call(e,0,1),!e[0]);i.unindexedChars="x"[0]+Object("x")[0]!="xx"})(1,0);t.exports=i},{}],42:[function(n,t){function i(n){return n}t.exports=i},{}],43:[function(n,t){"use strict";var i=n("object-keys");t.exports=function(){var n,t,r,u,f;if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;if(n={},t=Symbol("test"),typeof t=="string")return!1;r=42;n[t]=r;for(t in n)return!1;return i(n).length!==0?!1:typeof Object.keys=="function"&&Object.keys(n).length!==0?!1:typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0?!1:(u=Object.getOwnPropertySymbols(n),u.length!==1||u[0]!==t)?!1:Object.prototype.propertyIsEnumerable.call(n,t)?typeof Object.getOwnPropertyDescriptor=="function"&&(f=Object.getOwnPropertyDescriptor(n,t),f.value!==r||f.enumerable!==!0)?!1:!0:!1}},{"object-keys":49}],44:[function(n,t){"use strict";var f=n("object-keys"),i=n("function-bind"),e=function(n){return typeof n!="undefined"&&n!==null},o=n("./hasSymbols")(),r=Object,s=i.call(Function.call,Array.prototype.push),u=i.call(Function.call,Object.prototype.propertyIsEnumerable);t.exports=function(n){if(!e(n))throw new TypeError("target must be an object");for(var v=r(n),h,t,l,a,y,i,c=1;c<arguments.length;++c){if(h=r(arguments[c]),l=f(h),o&&Object.getOwnPropertySymbols)for(a=Object.getOwnPropertySymbols(h),t=0;t<a.length;++t)i=a[t],u(h,i)&&s(l,i);for(t=0;t<l.length;++t)i=l[t],y=h[i],u(h,i)&&(v[i]=y)}return v}},{"./hasSymbols":43,"function-bind":48,"object-keys":49}],45:[function(n,t){"use strict";var r=n("define-properties"),i=n("./implementation"),u=n("./polyfill"),f=n("./shim");r(i,{implementation:i,getPolyfill:u,shim:f});t.exports=i},{"./implementation":44,"./polyfill":51,"./shim":52,"define-properties":46}],46:[function(n,t){"use strict";var u=n("object-keys"),f=n("foreach"),e=typeof Symbol=="function"&&typeof Symbol()=="symbol",o=Object.prototype.toString,s=function(n){return typeof n=="function"&&o.call(n)==="[object Function]"},h=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},i=Object.defineProperty&&h(),c=function(n,t,r,u){t in n&&(!s(u)||!u())||(i?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):n[t]=r)},r=function(n,t){var r=arguments.length>2?arguments[2]:{},i=u(t);e&&(i=i.concat(Object.getOwnPropertySymbols(t)));f(i,function(i){c(n,i,t[i],r[i])})};r.supportsDescriptors=!!i;t.exports=r},{foreach:47,"object-keys":49}],47:[function(n,t){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(n,t,u){var e,f,o;if(r.call(t)!=="[object Function]")throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;f<e;f++)t.call(u,n[f],f,n);else for(o in n)i.call(n,o)&&t.call(u,n[o],o,n)}},{}],48:[function(n,t){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,f="[object Function]";t.exports=function(n){var t=this,e,o,s;if(typeof t!="function"||u.call(t)!==f)throw new TypeError(r+t);var h=i.call(arguments,1),l=function(){if(this instanceof o){var r=t.apply(this,h.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(n,h.concat(i.call(arguments)))},a=Math.max(0,t.length-h.length),c=[];for(e=0;e<a;e++)c.push("$"+e);return o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype&&(s=function(){},s.prototype=t.prototype,o.prototype=new s,s.prototype=null),o}},{}],49:[function(n,t){"use strict";var i=Object.prototype.hasOwnProperty,e=Object.prototype.toString,s=Array.prototype.slice,o=n("./isArguments"),h=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(n){var t=n.constructor;return t&&t.prototype===n},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},a=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!l["$"+n]&&i.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{f(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),v=function(n){if(typeof window=="undefined"||!a)return f(n);try{return f(n)}catch(t){return!1}},u=function(n){var a=n!==null&&typeof n=="object",y=e.call(n)==="[object Function]",p=o(n),k=a&&e.call(n)==="[object String]",u=[],w,f,s,l,b,t;if(!a&&!y&&!p)throw new TypeError("Object.keys called on a non-object");if(w=c&&y,k&&n.length>0&&!i.call(n,0))for(f=0;f<n.length;++f)u.push(String(f));if(p&&n.length>0)for(s=0;s<n.length;++s)u.push(String(s));else for(l in n)w&&l==="prototype"||!i.call(n,l)||u.push(String(l));if(h)for(b=v(n),t=0;t<r.length;++t)b&&r[t]==="constructor"||!i.call(n,r[t])||u.push(r[t]);return u};u.shim=function(){var t,n;return Object.keys?(t=function(){return(Object.keys(arguments)||"").length===2}(1,2),t||(n=Object.keys,Object.keys=function(t){return o(t)?n(s.call(t)):n(t)})):Object.keys=u,Object.keys||u};t.exports=u},{"./isArguments":50}],50:[function(n,t){"use strict";var i=Object.prototype.toString;t.exports=function(n){var r=i.call(n),t=r==="[object Arguments]";return t||(t=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&i.call(n.callee)==="[object Function]"),t}},{}],51:[function(n,t){"use strict";var i=n("./implementation"),r=function(){var n,f,i,e;if(!Object.assign)return!1;var r="abcdefghijklmnopqrst",t=r.split(""),u={};for(n=0;n<t.length;++n)u[t[n]]=t[n];f=Object.assign({},u);i="";for(e in f)i+=e;return r!==i},u=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch(t){return n[1]==="y"}};t.exports=function(){return Object.assign?r()?i:u()?i:Object.assign:i}},{"./implementation":44}],52:[function(n,t){"use strict";var i=n("define-properties"),r=n("./polyfill");t.exports=function(){var n=r();return i(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n}},{"./polyfill":51,"define-properties":46}],53:[function(n,t){function i(n,t){var i,r=null;try{i=JSON.parse(n,t)}catch(u){r=u}return[r,i]}t.exports=i},{}],54:[function(n,t){function i(n){return n.replace(/\n\r?\s*/g,"")}t.exports=function(n){for(var r="",t=0;t<arguments.length;t++)r+=i(n[t])+(arguments[t+1]||"");return r}},{}],55:[function(n,t){"use strict";function c(n,t){for(var i=0;i<n.length;i++)t(n[i])}function l(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function u(n,t,i){var r=n;return o(t)?(i=t,typeof n=="string"&&(r={uri:n})):r=h(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=u(n,t,i),f(t)}function f(n){function d(){t.readyState===4&&p()}function g(){var n=undefined;if(t.response?n=t.response:t.responseType!=="text"&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function c(n){clearTimeout(y);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,h)}function p(){var r,i,e;w||(clearTimeout(y),r=n.useXDR&&t.status===undefined?200:t.status===1223?204:t.status,i=h,e=null,r!==0?(i={body:g(),statusCode:r,method:f,headers:{},url:a,rawRequest:t},t.getAllResponseHeaders&&(i.headers=s(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,h,t;if(typeof u=="undefined")throw new Error("callback argument missing");u=e(u);h={body:undefined,headers:{},statusCode:0,method:f,url:a,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var o,w,a=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},v=!!n.sync,k=!1,y;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=c,t.onprogress=function(){},t.ontimeout=c,t.open(f,a,!v,n.username,n.password),v||(t.withCredentials=!!n.withCredentials),!v&&n.timeout>0&&(y=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";c(n)},n.timeout)),t.setRequestHeader)for(o in r)r.hasOwnProperty(o)&&t.setRequestHeader(o,r[o]);else if(n.headers&&!l(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(t),t.send(b),t}function a(){}var r=n("global/window"),e=n("once"),o=n("is-function"),s=n("parse-headers"),h=n("xtend");t.exports=i;i.XMLHttpRequest=r.XMLHttpRequest||a;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:r.XDomainRequest;c(["get","put","post","patch","head","delete"],function(n){i[n==="delete"?"del":n]=function(t,i,r){return i=u(t,i,r),i.method=n.toUpperCase(),f(i)}})},{"global/window":2,"is-function":56,once:57,"parse-headers":60,xtend:61}],56:[function(n,t){function r(n){var t=i.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],57:[function(n,t){function i(n){var t=!1;return function(){if(!t)return t=!0,n.apply(this,arguments)}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],58:[function(n,t){function f(n,t,i){if(!u(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);r.call(n)==="[object Array]"?e(n,t,i):typeof n=="string"?o(n,t,i):s(n,t,i)}function e(n,t,r){for(var u=0,f=n.length;u<f;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function o(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n.charAt(r),r,n)}function s(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var u=n("is-function"),r,i;t.exports=f;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{"is-function":56}],59:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],60:[function(n,t){var i=n("trim"),r=n("for-each"),u=function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));typeof t[r]=="undefined"?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{"for-each":58,trim:59}],61:[function(n,t){function r(){for(var n,t,u={},r=0;r<arguments.length;r++){n=arguments[r];for(t in n)i.call(n,t)&&(u[t]=n[t])}return u}t.exports=r;var i=Object.prototype.hasOwnProperty},{}],62:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button.js"),s=u(o),h=n("./component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(){this.player_.play()},t}(s["default"]);r.prototype.controlText_="Play Video";c["default"].registerComponent("BigPlayButton",r);i["default"]=r;t.exports=i["default"]},{"./button.js":63,"./component.js":66}],63:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("./clickable-component.js"),a=r(l),v=n("./component"),u=r(v),y=n("./utils/events.js"),d=f(y),p=n("./utils/fn.js"),g=f(p),w=n("./utils/log.js"),e=r(w),b=n("global/document"),nt=r(b),k=n("object.assign"),o=r(k),s=function(n){function t(i,r){h(this,t);n.call(this,i,r)}return c(t,n),t.prototype.createEl=function(){var n=arguments.length<=0||arguments[0]===undefined?"button":arguments[0],t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],r;return t=o["default"]({className:this.buildCSSClass()},t),n!=="button"&&e["default"].warn("Creating a Button with an HTML element of "+n+" is deprecated; use ClickableComponent instead."),i=o["default"]({type:"button","aria-live":"polite"},i),r=u["default"].prototype.createEl.call(this,n,t,i),this.createControlTextEl(r),r},t.prototype.addChild=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=this.constructor.name;return e["default"].warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),u["default"].prototype.addChild.call(this,n,t)},t.prototype.handleKeyPress=function(t){t.which===32||t.which===13||n.prototype.handleKeyPress.call(this,t)},t}(a["default"]);u["default"].registerComponent("Button",s);i["default"]=s;t.exports=i["default"]},{"./clickable-component.js":64,"./component":66,"./utils/events.js":132,"./utils/fn.js":133,"./utils/log.js":136,"global/document":1,"object.assign":45}],64:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n("./component"),f=r(v),y=n("./utils/dom.js"),p=u(y),w=n("./utils/events.js"),e=u(w),b=n("./utils/fn.js"),o=u(b),k=n("./utils/log.js"),d=r(k),g=n("global/document"),s=r(g),nt=n("object.assign"),h=r(nt),c=function(n){function t(i,r){l(this,t);n.call(this,i,r);this.emitTapEvents();this.on("tap",this.handleClick);this.on("click",this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur)}return a(t,n),t.prototype.createEl=function(){var t=arguments.length<=0||arguments[0]===undefined?"div":arguments[0],i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],r=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],u;return i=h["default"]({className:this.buildCSSClass(),tabIndex:0},i),t==="button"&&d["default"].error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=h["default"]({role:"button","aria-live":"polite"},r),u=n.prototype.createEl.call(this,t,i,r),this.createControlTextEl(u),u},t.prototype.createControlTextEl=function(n){return this.controlTextEl_=p.createEl("span",{className:"vjs-control-text"}),n&&n.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},t.prototype.controlText=function(n){return n?(this.controlText_=n,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.prototype.addChild=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return n.prototype.addChild.call(this,t,i)},t.prototype.handleClick=function(){},t.prototype.handleFocus=function(){e.on(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){t.which===32||t.which===13?(t.preventDefault(),this.handleClick(t)):n.prototype.handleKeyPress&&n.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(){e.off(s["default"],"keydown",o.bind(this,this.handleKeyPress))},t}(f["default"]);f["default"].registerComponent("ClickableComponent",c);i["default"]=c;t.exports=i["default"]},{"./component":66,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/log.js":136,"global/document":1,"object.assign":45}],65:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./button"),s=r(o),h=n("./component"),c=r(h),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.controlText(r&&r.controlText||this.localize("Close"))}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},t}(s["default"]);c["default"].registerComponent("CloseButton",u);i["default"]=u;t.exports=i["default"]},{"./button":63,"./component":66}],66:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var y=n("global/window"),r=o(y),p=n("./utils/dom.js"),u=s(p),w=n("./utils/fn.js"),f=s(w),b=n("./utils/guid.js"),k=s(b),d=n("./utils/events.js"),e=s(d),g=n("./utils/log.js"),h=o(g),nt=n("./utils/to-title-case.js"),c=o(nt),tt=n("object.assign"),it=o(tt),rt=n("./utils/merge-options.js"),l=o(rt),a=function(){function n(t,i,r){if(v(this,n),this.player_=!t&&this.play?t=this:t,this.options_=l["default"]({},this.options_),i=this.options_=l["default"](this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var u=t&&t.id&&t.id()||"no_player";this.id_=u+"_component_"+k.newGUID()}this.name_=i.name||null;i.el?this.el_=i.el:i.createEl!==!1&&(this.el_=this.createEl());this.children_=[];this.childIndex_={};this.childNameIndex_={};i.initChildren!==!1&&this.initChildren();this.ready(r);i.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].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},n.prototype.player=function(){return this.player_},n.prototype.options=function(n){return(h["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),!n)?this.options_:(this.options_=l["default"](this.options_,n),this.options_)},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(n,t,i){return u.createEl(n,t,i)},n.prototype.localize=function(n){var r=this.player_.language&&this.player_.language(),u=this.player_.languages&&this.player_.languages(),t,f,i;return!r||!u?n:(t=u[r],t&&t[n])?t[n]:(f=r.split("-")[0],i=u[f],i&&i[n])?i[n]:n},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(n){return this.childIndex_[n]},n.prototype.getChild=function(n){return this.childNameIndex_[n]},n.prototype.addChild=function(t){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=undefined,u=undefined,e,f;if(typeof t=="string"){if(u=t,r||(r={}),r===!0&&(h["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`."),r={}),e=r.componentClass||c["default"](u),r.name=u,f=n.getComponent(e),!f)throw new Error("Component "+e+" does not exist");if(typeof f!="function")return null;i=new f(this.player_||this,r)}else i=t;return this.children_.push(i),typeof i.id=="function"&&(this.childIndex_[i.id()]=i),u=u||i.name&&i.name(),u&&(this.childNameIndex_[u]=i),typeof i.el=="function"&&i.el()&&this.contentEl().appendChild(i.el()),i},n.prototype.removeChild=function(n){var i,t,r;if(typeof n=="string"&&(n=this.getChild(n)),n&&this.children_){for(i=!1,t=this.children_.length-1;t>=0;t--)if(this.children_[t]===n){i=!0;this.children_.splice(t,1);break}i&&(this.childIndex_[n.id()]=null,this.childNameIndex_[n.name()]=null,r=n.el(),r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(n.el()))}},n.prototype.initChildren=function(){var t=this,i=this.options_.children;i&&function(){var u=t.options_,f=function(n){var r=n.name,i=n.opts,f;(u[r]!==undefined&&(i=u[r]),i!==!1)&&(i===!0&&(i={}),i.playerOptions=t.options_.playerOptions,f=t.addChild(r,i),f&&(t[r]=f))},r=undefined,e=n.getComponent("Tech");r=Array.isArray(i)?i:Object.keys(i);r.concat(Object.keys(t.options_).filter(function(n){return!r.some(function(t){return typeof t=="string"?n===t:n===t.name})})).map(function(n){var r=undefined,u=undefined;return typeof n=="string"?(r=n,u=i[r]||t.options_[r]||{}):(r=n.name,u=n),{name:r,opts:u}}).filter(function(t){var i=n.getComponent(t.opts.componentClass||c["default"](t.name));return i&&!e.isTech(i)}).forEach(f)}()},n.prototype.buildCSSClass=function(){return""},n.prototype.on=function(n,t,i){var r=this;if(typeof n=="string"||Array.isArray(n))e.on(this.el_,n,f.bind(this,t));else(function(){var u=n,h=t,o=f.bind(r,i),c=function(){return r.off(u,h,o)},s;c.guid=o.guid;r.on("dispose",c);if(s=function(){return r.off("dispose",c)},s.guid=o.guid,n.nodeName){e.on(u,h,o);e.on(u,"dispose",s)}else if(typeof n.on=="function"){u.on(h,o);u.on("dispose",s)}})();return this},n.prototype.off=function(n,t,i){if(!n||typeof n=="string"||Array.isArray(n))e.off(this.el_,n,t);else{var u=n,o=t,r=f.bind(this,i);this.off("dispose",r);n.nodeName?(e.off(u,o,r),e.off(u,"dispose",r)):(u.off(o,r),u.off("dispose",r))}return this},n.prototype.one=function(n,t,i){var r=this,u=arguments;if(typeof n=="string"||Array.isArray(n))e.one(this.el_,n,f.bind(this,t));else(function(){var o=n,s=t,h=f.bind(r,i),e=function e(){r.off(o,s,e);h.apply(null,u)};e.guid=h.guid;r.on(o,s,e)})();return this},n.prototype.trigger=function(n,t){return e.trigger(this.el_,n,t),this},n.prototype.ready=function(n){var t=arguments.length<=1||arguments[1]===undefined?!1:arguments[1];return n&&(this.isReady_?t?n.call(this):this.setTimeout(n,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(n))),this},n.prototype.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var n=this.readyQueue_;this.readyQueue_=[];n&&n.length>0&&n.forEach(function(n){n.call(this)},this);this.trigger("ready")},1)},n.prototype.$=function(n,t){return u.$(n,t||this.contentEl())},n.prototype.$$=function(n,t){return u.$$(n,t||this.contentEl())},n.prototype.hasClass=function(n){return u.hasElClass(this.el_,n)},n.prototype.addClass=function(n){return u.addElClass(this.el_,n),this},n.prototype.removeClass=function(n){return u.removeElClass(this.el_,n),this},n.prototype.toggleClass=function(n,t){return u.toggleElClass(this.el_,n,t),this},n.prototype.show=function(){return this.removeClass("vjs-hidden"),this},n.prototype.hide=function(){return this.addClass("vjs-hidden"),this},n.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},n.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},n.prototype.width=function(n,t){return this.dimension("width",n,t)},n.prototype.height=function(n,t){return this.dimension("height",n,t)},n.prototype.dimensions=function(n,t){return this.width(n,!0).height(t)},n.prototype.dimension=function(n,t,i){if(t!==undefined)return(t===null||t!==t)&&(t=0),this.el_.style[n]=(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?t:t==="auto"?"":t+"px",i||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[n],u=r.indexOf("px");return u!==-1?parseInt(r.slice(0,u),10):parseInt(this.el_["offset"+c["default"](n)],10)},n.prototype.emitTapEvents=function(){var r=0,n=null,u=10,f=200,t=undefined,i;this.on("touchstart",function(i){i.touches.length===1&&(n=it["default"]({},i.touches[0]),r=(new Date).getTime(),t=!0)});this.on("touchmove",function(i){if(i.touches.length>1)t=!1;else if(n){var r=i.touches[0].pageX-n.pageX,f=i.touches[0].pageY-n.pageY,e=Math.sqrt(r*r+f*f);e>u&&(t=!1)}});i=function(){t=!1};this.on("touchleave",i);this.on("touchcancel",i);this.on("touchend",function(i){if(n=null,t===!0){var u=(new Date).getTime()-r;u<f&&(i.preventDefault(),this.trigger("tap"))}})},n.prototype.enableTouchActivity=function(){var n,t,i;if(this.player()&&this.player().reportUserActivity){n=f.bind(this.player(),this.player().reportUserActivity);t=undefined;this.on("touchstart",function(){n();this.clearInterval(t);t=this.setInterval(n,250)});i=function(){n();this.clearInterval(t)};this.on("touchmove",n);this.on("touchend",i);this.on("touchcancel",i)}},n.prototype.setTimeout=function(n,t){n=f.bind(this,n);var i=r["default"].setTimeout(n,t),u=function(){this.clearTimeout(i)};u.guid="vjs-timeout-"+i;this.on("dispose",u);return i},n.prototype.clearTimeout=function(n){r["default"].clearTimeout(n);var t=function(){};return t.guid="vjs-timeout-"+n,this.off("dispose",t),n},n.prototype.setInterval=function(n,t){n=f.bind(this,n);var i=r["default"].setInterval(n,t),u=function(){this.clearInterval(i)};u.guid="vjs-interval-"+i;this.on("dispose",u);return i},n.prototype.clearInterval=function(n){r["default"].clearInterval(n);var t=function(){};return t.guid="vjs-interval-"+n,this.off("dispose",t),n},n.registerComponent=function(t,i){return n.components_||(n.components_={}),n.components_[t]=i,i},n.getComponent=function(t){return n.components_&&n.components_[t]?n.components_[t]:r["default"]&&r["default"].videojs&&r["default"].videojs[t]?(h["default"].warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r["default"].videojs[t]):void 0},n.extend=function(t){var u,i,r;t=t||{};h["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");u=t.init||t.init||this.prototype.init||this.prototype.init||function(){};i=function(){u.apply(this,arguments)};i.prototype=Object.create(this.prototype);i.prototype.constructor=i;i.extend=n.extend;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n}();a.registerComponent("Component",a);i["default"]=a;t.exports=i["default"]},{"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/guid.js":135,"./utils/log.js":136,"./utils/merge-options.js":137,"./utils/to-title-case.js":140,"global/window":2,"object.assign":45}],67:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),f=r(s),h=n("./play-toggle.js"),ut=r(h),c=n("./time-controls/current-time-display.js"),ft=r(c),l=n("./time-controls/duration-display.js"),et=r(l),a=n("./time-controls/time-divider.js"),ot=r(a),v=n("./time-controls/remaining-time-display.js"),st=r(v),y=n("./live-display.js"),ht=r(y),p=n("./progress-control/progress-control.js"),ct=r(p),w=n("./fullscreen-toggle.js"),lt=r(w),b=n("./volume-control/volume-control.js"),at=r(b),k=n("./volume-menu-button.js"),vt=r(k),d=n("./mute-toggle.js"),yt=r(d),g=n("./text-track-controls/chapters-button.js"),pt=r(g),nt=n("./text-track-controls/subtitles-button.js"),wt=r(nt),tt=n("./text-track-controls/captions-button.js"),bt=r(tt),it=n("./playback-rate-menu/playback-rate-menu-button.js"),kt=r(it),rt=n("./spacer-controls/custom-control-spacer.js"),dt=r(rt),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar"},{role:"group"})},t}(f["default"]);u.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]};f["default"].registerComponent("ControlBar",u);i["default"]=u;t.exports=i["default"]},{"../component.js":66,"./fullscreen-toggle.js":68,"./live-display.js":69,"./mute-toggle.js":70,"./play-toggle.js":71,"./playback-rate-menu/playback-rate-menu-button.js":72,"./progress-control/progress-control.js":77,"./spacer-controls/custom-control-spacer.js":79,"./text-track-controls/captions-button.js":82,"./text-track-controls/chapters-button.js":83,"./text-track-controls/subtitles-button.js":86,"./time-controls/current-time-display.js":89,"./time-controls/duration-display.js":90,"./time-controls/remaining-time-display.js":91,"./time-controls/time-divider.js":92,"./volume-control/volume-control.js":94,"./volume-menu-button.js":96}],68:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},t}(s["default"]);r.prototype.controlText_="Fullscreen";c["default"].registerComponent("FullscreenToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":63,"../component.js":66}],69:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component"),r=e(h),c=n("../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateShowing();this.on(this.player(),"durationchange",this.updateShowing)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"<\/span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(){this.player().duration()===Infinity?this.show():this.hide()},t}(r["default"]);r["default"].registerComponent("LiveDisplay",u);i["default"]=u;t.exports=i["default"]},{"../component":66,"../utils/dom.js":131}],70:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../button"),c=u(h),l=n("../component"),a=u(l),v=n("../utils/dom.js"),f=e(v),r=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"volumechange",this.update);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){this.update();i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.muted(this.player_.muted()?!1:!0)},t.prototype.update=function(){var i=this.player_.volume(),n=3,r,t;for(i===0||this.player_.muted()?n=0:i<.33?n=1:i<.67&&(n=2),r=this.player_.muted()?"Unmute":"Mute",this.controlText()!==r&&this.controlText(r),t=0;t<4;t++)f.removeElClass(this.el_,"vjs-vol-"+t);f.addElClass(this.el_,"vjs-vol-"+n)},t}(c["default"]);r.prototype.controlText_="Mute";a["default"].registerComponent("MuteToggle",r);i["default"]=r;t.exports=i["default"]},{"../button":63,"../component":66,"../utils/dom.js":131}],71:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../button.js"),s=u(o),h=n("../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.on(i,"play",this.handlePlay);this.on(i,"pause",this.handlePause)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")},t.prototype.handlePause=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")},t}(s["default"]);r.prototype.controlText_="Play";c["default"].registerComponent("PlayToggle",r);i["default"]=r;t.exports=i["default"]},{"../button.js":63,"../component.js":66}],72:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-button.js"),h=r(s),c=n("../../menu/menu.js"),l=r(c),a=n("./playback-rate-menu-item.js"),v=r(a),y=n("../../component.js"),p=r(y),w=n("../../utils/dom.js"),b=f(w),u=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.updateVisibility();this.updateLabel();this.on(i,"loadstart",this.updateVisibility);this.on(i,"ratechange",this.updateLabel)}return o(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this);return this.labelEl_=b.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var i=new l["default"](this.player()),t=this.playbackRates(),n;if(t)for(n=t.length-1;n>=0;n--)i.addChild(new v["default"](this.player(),{rate:t[n]+"x"}));return i},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(){for(var r=this.player().playbackRate(),n=this.playbackRates(),i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(h["default"]);u.prototype.controlText_="Playback Rate";p["default"].registerComponent("PlaybackRateMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-button.js":103,"../../menu/menu.js":105,"../../utils/dom.js":131,"./playback-rate-menu-item.js":73}],73:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../../menu/menu-item.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r){f(this,t);var u=r.rate,e=parseFloat(u,10);r.label=u;r.selected=e===1;n.call(this,i,r);this.label=u;this.rate=e;this.on(i,"ratechange",this.update)}return e(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player().playbackRate(this.rate)},t.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},t}(s["default"]);r.prototype.contentElType="button";c["default"].registerComponent("PlaybackRateMenuItem",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104}],74:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),r=e(h),c=n("../../utils/dom.js"),l=f(c),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"progress",this.update)}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"<\/span>: 0%<\/span>"})},t.prototype.update=function(){var t=this.player_.buffered(),o=this.player_.duration(),r=this.player_.bufferedEnd(),u=this.el_.children,f=function(n,t){var i=n/t||0;return(i>=1?1:i)*100+"%"},n;for(this.el_.style.width=f(r,o),n=0;n<t.length;n++){var e=t.start(n),s=t.end(n),i=u[n];i||(i=this.el_.appendChild(l.createEl()));i.style.left=f(e,r);i.style.width=f(s-e,r)}for(n=u.length;n>t.length;n--)this.el_.removeChild(u[n-1])},t}(r["default"]);r["default"].registerComponent("LoadProgressBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131}],75:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n("../../component.js"),f=r(c),l=n("../../utils/dom.js"),e=u(l),a=n("../../utils/fn.js"),v=u(a),y=n("../../utils/format-time.js"),p=r(y),w=n("lodash-compat/function/throttle"),b=r(w),o=function(n){function t(i,r){var u=this;s(this,t);n.call(this,i,r);this.update(0,0);i.on("ready",function(){u.on(i.controlBar.progressControl.el(),"mousemove",b["default"](v.bind(u,u.handleMouseMove),25))})}return h(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(n){var t=this.player_.duration(),i=this.calculateDistance(n)*t,r=n.pageX-e.findElPosition(this.el().parentNode).left;this.update(i,r)},t.prototype.update=function(n,t){var i=p["default"](n,this.player_.duration());this.el().style.left=t+"px";this.el().setAttribute("data-current-time",i)},t.prototype.calculateDistance=function(n){return e.getPointerPosition(this.el().parentNode,n).x},t}(f["default"]);f["default"].registerComponent("MouseTimeDisplay",o);i["default"]=o;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/format-time.js":134,"lodash-compat/function/throttle":7}],76:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/fn.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.updateDataAttr();this.on(i,"timeupdate",this.updateDataAttr);i.ready(l.bind(this,this.updateDataAttr))}return s(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"<\/span>: 0%<\/span>"})},t.prototype.updateDataAttr=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",v["default"](n,this.player_.duration()))},t}(u["default"]);u["default"].registerComponent("PlayProgressBar",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/fn.js":133,"../../utils/format-time.js":134}],77:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=r(s),h=n("./seek-bar.js"),l=r(h),c=n("./mouse-time-display.js"),a=r(c),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(f["default"]);u.prototype.options_={children:["seekBar"]};f["default"].registerComponent("ProgressControl",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./mouse-time-display.js":75,"./seek-bar.js":78}],78:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../slider/slider.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("./load-progress-bar.js"),d=r(a),v=n("./play-progress-bar.js"),g=r(v),y=n("../../utils/fn.js"),p=f(y),w=n("../../utils/format-time.js"),b=r(w),k=n("object.assign"),nt=r(k),u=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateARIAAttributes);i.ready(p.bind(this,this.updateARIAAttributes))}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},t.prototype.updateARIAAttributes=function(){var n=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",b["default"](n,this.player_.duration()))},t.prototype.getPercent=function(){var n=this.player_.currentTime()/this.player_.duration();return n>=1?1:n},t.prototype.handleMouseDown=function(t){n.prototype.handleMouseDown.call(this,t);this.player_.scrubbing(!0);this.videoWasPlaying=!this.player_.paused();this.player_.pause()},t.prototype.handleMouseMove=function(n){var t=this.calculateDistance(n)*this.player_.duration();t===this.player_.duration()&&(t=t-.1);this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){n.prototype.handleMouseUp.call(this,t);this.player_.scrubbing(!1);this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(h["default"]);u.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};u.prototype.playerEvent="timeupdate";l["default"].registerComponent("SeekBar",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"../../utils/format-time.js":134,"./load-progress-bar.js":74,"./play-progress-bar.js":76,"object.assign":45}],79:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./spacer.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(){f(this,t);n.apply(this,arguments)}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(s["default"]);c["default"].registerComponent("CustomControlSpacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./spacer.js":80}],80:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(r["default"]);r["default"].registerComponent("Spacer",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],81:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" settings",selectable:!1,"default":!1,mode:"disabled"};r.selectable=!1;n.call(this,i,r);this.addClass("vjs-texttrack-settings");this.controlText(", opens "+r.kind+" settings dialog")}return e(t,n),t.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()},t}(s["default"]);c["default"].registerComponent("CaptionSettingsMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./text-track-menu-item.js":88}],82:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),l=n("./caption-settings-menu-item.js"),a=u(l),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Captions Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.update=function(){var t=2;n.prototype.update.call(this);this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1);this.items&&this.items.length>t?this.show():this.hide()},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new a["default"](this.player_,{kind:this.kind_})),n.prototype.createItems.call(this,t)},t}(s["default"]);r.prototype.kind_="captions";r.prototype.controlText_="Captions";c["default"].registerComponent("CaptionsButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./caption-settings-menu-item.js":81,"./text-track-button.js":87}],83:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./text-track-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("./text-track-menu-item.js"),v=r(a),y=n("./chapters-track-menu-item.js"),p=r(y),w=n("../../menu/menu.js"),b=r(w),k=n("../../utils/dom.js"),d=f(k),g=n("../../utils/fn.js"),rt=f(g),nt=n("../../utils/to-title-case.js"),tt=r(nt),it=n("global/window"),ut=r(it),u=function(n){function t(i,r,u){e(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Chapters Menu")}return o(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[],i=this.player_.textTracks(),n,r;if(!i)return t;for(n=0;n<i.length;n++)r=i[n],r.kind===this.kind_&&t.push(new v["default"](this.player_,{track:r}));return t},t.prototype.createMenu=function(){for(var r,i,u,f,e,h,o,c=this,s=this.player_.textTracks()||[],n=undefined,l=this.items=[],t=0,a=s.length;t<a;t++)if(r=s[t],r.kind===this.kind_){n=r;break}if(i=this.menu,i===undefined&&(i=new b["default"](this.player_),i.contentEl().appendChild(d.createEl("li",{className:"vjs-menu-title",innerHTML:tt["default"](this.kind_),tabIndex:-1}))),n&&n.cues==null&&(n.mode="hidden",u=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n),u&&u.addEventListener("load",function(){return c.update()})),n&&n.cues&&n.cues.length>0){for(f=n.cues,e=undefined,t=0,h=f.length;t<h;t++)e=f[t],o=new p["default"](this.player_,{track:n,cue:e}),l.push(o),i.addChild(o);this.addChild(i)}return this.items.length>0&&this.show(),i},t}(h["default"]);u.prototype.kind_="chapters";u.prototype.controlText_="Chapters";l["default"].registerComponent("ChaptersButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu.js":105,"../../utils/dom.js":131,"../../utils/fn.js":133,"../../utils/to-title-case.js":140,"./chapters-track-menu-item.js":84,"./text-track-button.js":87,"./text-track-menu-item.js":88,"global/window":2}],84:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-item.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),u=function(n){function t(i,r){e(this,t);var f=r.track,u=r.cue,o=i.currentTime();r.label=u.text;r.selected=u.startTime<=o&&o<u.endTime;n.call(this,i,r);this.track=f;this.cue=u;f.addEventListener("cuechange",v.bind(this,this.update))}return o(t,n),t.prototype.handleClick=function(){n.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)},t.prototype.update=function(){var n=this.cue,t=this.player_.currentTime();this.selected(n.startTime<=t&&t<n.endTime)},t}(h["default"]);l["default"].registerComponent("ChaptersTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104,"../../utils/fn.js":133}],85:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-menu-item.js"),s=r(o),h=n("../../component.js"),c=r(h),u=function(n){function t(i,r){f(this,t);r.track={kind:r.kind,player:i,label:r.kind+" off","default":!1,mode:"disabled"};r.selectable=!0;n.call(this,i,r);this.selected(!0)}return e(t,n),t.prototype.handleTracksChange=function(){for(var t,i=this.player().textTracks(),r=!0,n=0,u=i.length;n<u;n++)if(t=i[n],t.kind===this.track.kind&&t.mode==="showing"){r=!1;break}this.selected(r)},t}(s["default"]);c["default"].registerComponent("OffTextTrackMenuItem",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"./text-track-menu-item.js":88}],86:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("./text-track-button.js"),s=u(o),h=n("../../component.js"),c=u(h),r=function(n){function t(i,r,u){f(this,t);n.call(this,i,r,u);this.el_.setAttribute("aria-label","Subtitles Menu")}return e(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t}(s["default"]);r.prototype.kind_="subtitles";r.prototype.controlText_="Subtitles";c["default"].registerComponent("SubtitlesButton",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./text-track-button.js":87}],87:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../menu/menu-button.js"),h=r(s),c=n("../../component.js"),l=r(c),a=n("../../utils/fn.js"),v=f(a),y=n("./text-track-menu-item.js"),p=r(y),w=n("./off-text-track-menu-item.js"),b=r(w),u=function(n){function t(i,r){var u,f;if(e(this,t),n.call(this,i,r),u=this.player_.textTracks(),this.items.length<=1&&this.hide(),u){f=v.bind(this,this.update);u.addEventListener("removetrack",f);u.addEventListener("addtrack",f);this.player_.on("dispose",function(){u.removeEventListener("removetrack",f);u.removeEventListener("addtrack",f)})}}return o(t,n),t.prototype.createItems=function(){var n=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t,i,r;if(n.push(new b["default"](this.player_,{kind:this.kind_})),t=this.player_.textTracks(),!t)return n;for(i=0;i<t.length;i++)r=t[i],r.kind===this.kind_&&n.push(new p["default"](this.player_,{selectable:!0,track:r}));return n},t}(h["default"]);l["default"].registerComponent("TextTrackButton",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-button.js":103,"../../utils/fn.js":133,"./off-text-track-menu-item.js":85,"./text-track-menu-item.js":88}],88:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../menu/menu-item.js"),c=r(h),l=n("../../component.js"),a=r(l),v=n("../../utils/fn.js"),y=e(v),p=n("global/window"),u=r(p),w=n("global/document"),b=r(w),f=function(n){function t(i,r){var s=this,e,f;o(this,t);e=r.track;f=i.textTracks();r.label=e.label||e.language||"Unknown";r.selected=e["default"]||e.mode==="showing";n.call(this,i,r);this.track=e;f&&function(){var n=y.bind(s,s.handleTracksChange);f.addEventListener("change",n);s.on("dispose",function(){f.removeEventListener("change",n)})}();f&&f.onchange===undefined&&function(){var n=undefined;s.on(["tap","click"],function(){if(typeof u["default"].Event!="object")try{n=new u["default"].Event("change")}catch(t){}n||(n=b["default"].createEvent("Event"),n.initEvent("change",!0,!0));f.dispatchEvent(n)})}()}return s(t,n),t.prototype.handleClick=function(t){var f=this.track.kind,u=this.player_.textTracks(),i,r;if(n.prototype.handleClick.call(this,t),u)for(i=0;i<u.length;i++)(r=u[i],r.kind===f)&&(r.mode=r===this.track?"showing":"disabled")},t.prototype.handleTracksChange=function(){this.selected(this.track.mode==="showing")},t}(c["default"]);a["default"].registerComponent("TextTrackMenuItem",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../menu/menu-item.js":104,"../../utils/fn.js":133,"global/document":1,"global/window":2}],89:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),t=this.localize("Current Time"),i=v["default"](n,this.player_.duration());this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i},t}(u["default"]);u["default"].registerComponent("CurrentTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],90:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent);this.on(i,"loadedmetadata",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"<\/span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){var n=this.player_.duration(),t,i;n&&(t=this.localize("Duration Time"),i=v["default"](n),this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"<\/span> "+i)},t}(u["default"]);u["default"].registerComponent("DurationDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],91:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../../component.js"),u=r(h),c=n("../../utils/dom.js"),l=e(c),a=n("../../utils/format-time.js"),v=r(a),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"timeupdate",this.updateContent)}return s(t,n),t.prototype.createEl=function(){var t=n.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=l.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"<\/span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(){if(this.player_.duration()){var n=this.localize("Remaining Time"),t=v["default"](this.player_.remainingTime());this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"<\/span> -"+t}},t}(u["default"]);u["default"].registerComponent("RemainingTimeDisplay",f);i["default"]=f;t.exports=i["default"]},{"../../component.js":66,"../../utils/dom.js":131,"../../utils/format-time.js":134}],92:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},t}(r["default"]);r["default"].registerComponent("TimeDivider",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],93:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../slider/slider.js"),h=u(s),c=n("../../component.js"),l=u(c),a=n("../../utils/fn.js"),v=f(a),y=n("./volume-level.js"),p=u(y),r=function(n){function t(i,r){e(this,t);n.call(this,i,r);this.on(i,"volumechange",this.updateARIAAttributes);i.ready(v.bind(this,this.updateARIAAttributes))}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(n){this.checkMuted();this.player_.volume(this.calculateDistance(n))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(){var n=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",n);this.el_.setAttribute("aria-valuetext",n+"%")},t}(h["default"]);r.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};r.prototype.playerEvent="volumechange";l["default"].registerComponent("VolumeBar",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"../../slider/slider.js":113,"../../utils/fn.js":133,"./volume-level.js":95}],94:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),f=u(s),h=n("./volume-bar.js"),c=u(h),r=function(n){function t(i,r){e(this,t);n.call(this,i,r);i.tech_&&i.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden");this.on(i,"loadstart",function(){i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(f["default"]);r.prototype.options_={children:["volumeBar"]};f["default"].registerComponent("VolumeControl",r);i["default"]=r;t.exports=i["default"]},{"../../component.js":66,"./volume-bar.js":93}],95:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../../component.js"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},t}(r["default"]);r["default"].registerComponent("VolumeLevel",u);i["default"]=u;t.exports=i["default"]},{"../../component.js":66}],96:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var c=n("../utils/fn.js"),f=o(c),l=n("../component.js"),a=r(l),v=n("../popup/popup.js"),y=r(v),p=n("../popup/popup-button.js"),w=r(p),b=n("./mute-toggle.js"),e=r(b),k=n("./volume-control/volume-bar.js"),d=r(k),g=n("global/document"),nt=r(g),u=function(n){function t(i){function u(){i.tech_&&i.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];s(this,t);r.inline===undefined&&(r.inline=!0);r.vertical===undefined&&(r.vertical=r.inline?!1:!0);r.volumeBar=r.volumeBar||{};r.volumeBar.vertical=!!r.vertical;n.call(this,i,r);this.on(i,"volumechange",this.volumeUpdate);this.on(i,"loadstart",this.volumeUpdate);u.call(this);this.on(i,"loadstart",u);this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return h(t,n),t.prototype.buildCSSClass=function(){var t="";return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+n.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var n=new y["default"](this.player_,{contentElType:"div"}),t=new d["default"](this.player_,this.options_.volumeBar);return n.addChild(t),this.volumeBar=t,this.attachVolumeBarEvents(),n},t.prototype.handleClick=function(){e["default"].prototype.handleClick.call(this);n.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},t.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(nt["default"],["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],f.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(w["default"]);u.prototype.volumeUpdate=e["default"].prototype.update;u.prototype.controlText_="Mute";a["default"].registerComponent("VolumeMenuButton",u);i["default"]=u;t.exports=i["default"]},{"../component.js":66,"../popup/popup-button.js":109,"../popup/popup.js":110,"../utils/fn.js":133,"./mute-toggle.js":70,"./volume-control/volume-bar.js":93,"global/document":1}],97:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./component"),c=r(h),l=n("./modal-dialog"),f=r(l),a=n("./utils/dom"),p=e(a),v=n("./utils/merge-options"),y=r(v),u=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.on(i,"error",this.open)}return s(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var n=this.player().error();return n?this.localize(n.message):""},t}(f["default"]);u.prototype.options_=y["default"](f["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0});c["default"].registerComponent("ErrorDisplay",u);i["default"]=u;t.exports=i["default"]},{"./component":66,"./modal-dialog":106,"./utils/dom":131,"./utils/merge-options":137}],98:[function(n,t,i){"use strict";function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}i.__esModule=!0;var e=n("./utils/events.js"),u=f(e),r=function(){};r.prototype.allowedEvents_={};r.prototype.on=function(n,t){var i=this.addEventListener;this.addEventListener=Function.prototype;u.on(this,n,t);this.addEventListener=i};r.prototype.addEventListener=r.prototype.on;r.prototype.off=function(n,t){u.off(this,n,t)};r.prototype.removeEventListener=r.prototype.off;r.prototype.one=function(n,t){u.one(this,n,t)};r.prototype.trigger=function(n){var t=n.type||n;typeof n=="string"&&(n={type:t});n=u.fixEvent(n);this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n);u.trigger(this,n)};r.prototype.dispatchEvent=r.prototype.trigger;i["default"]=r;t.exports=i["default"]},{"./utils/events.js":132}],99:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./utils/log"),f=r(u),e=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.super_=t)},o=function(n){var t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=function(){n.apply(this,arguments)},r={},u;typeof t=="object"?(typeof t.init=="function"&&(f["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(i=t.constructor),r=t):typeof t=="function"&&(i=t);e(i,n);for(u in r)r.hasOwnProperty(u)&&(i.prototype[u]=r[u]);return i};i["default"]=o;t.exports=i["default"]},{"./utils/log":136}],100:[function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;var s=n("global/document"),h=o(s),e={},u=[["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"]],c=u[0],f=undefined;for(r=0;r<u.length;r++)if(u[r][1]in h["default"]){f=u[r];break}if(f)for(r=0;r<f.length;r++)e[c[r]]=f[r];i["default"]=e;t.exports=i["default"]},{"global/document":1}],101:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("./component"),r=f(s),u=function(n){function t(){e(this,t);n.apply(this,arguments)}return o(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner"})},t}(r["default"]);r["default"].registerComponent("LoadingSpinner",u);i["default"]=u;t.exports=i["default"]},{"./component":66}],102:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u;i.__esModule=!0;var e=n("object.assign"),o=f(e),r=function r(n){typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:typeof n=="object"&&o["default"](this,n);this.message||(this.message=r.defaultMessages[this.code]||"")};for(r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},u=0;u<r.errorTypes.length;u++)r[r.errorTypes[u]]=u,r.prototype[r.errorTypes[u]]=u;i["default"]=r;t.exports=i["default"]},{"object.assign":45}],103:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../clickable-component.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("./menu.js"),v=r(a),y=n("../utils/dom.js"),p=u(y),w=n("../utils/fn.js"),b=u(w),k=n("../utils/to-title-case.js"),d=r(k),f=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];e(this,t);n.call(this,i,r);this.update();this.el_.setAttribute("aria-haspopup",!0);this.el_.setAttribute("role","menuitem");this.on("keydown",this.handleSubmenuKeyPress)}return o(t,n),t.prototype.update=function(){var n=this.createMenu();this.menu&&this.removeChild(this.menu);this.menu=n;this.addChild(n);this.buttonPressed_=!1;this.el_.setAttribute("aria-expanded",!1);this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createMenu=function(){var t=new v["default"](this.player_),n;if(this.options_.title&&t.contentEl().appendChild(p.createEl("li",{className:"vjs-menu-title",innerHTML:d["default"](this.options_.title),tabIndex:-1})),this.items=this.createItems(),this.items)for(n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(){this.one("mouseout",b.bind(this,function(){this.menu.unlockShowing();this.el_.blur()}));this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){t.which===27||t.which===9?(this.buttonPressed_&&this.unpressButton(),t.which!==9&&t.preventDefault()):t.which===38||t.which===40?this.buttonPressed_||(this.pressButton(),t.preventDefault()):n.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(n){(n.which===27||n.which===9)&&(this.buttonPressed_&&this.unpressButton(),n.which!==9&&n.preventDefault())},t.prototype.pressButton=function(){this.buttonPressed_=!0;this.menu.lockShowing();this.el_.setAttribute("aria-expanded",!0);this.menu.focus()},t.prototype.unpressButton=function(){this.buttonPressed_=!1;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded",!1);this.el_.focus()},t}(h["default"]);l["default"].registerComponent("MenuButton",f);i["default"]=f;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/to-title-case.js":140,"./menu.js":105}],104:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var o=n("../clickable-component.js"),s=r(o),h=n("../component.js"),c=r(h),l=n("object.assign"),a=r(l),u=function(n){function t(i,r){f(this,t);n.call(this,i,r);this.selectable=r.selectable;this.selected(r.selected);this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return e(t,n),t.prototype.createEl=function(t,i,r){return n.prototype.createEl.call(this,"li",a["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},i),r)},t.prototype.handleClick=function(){this.selected(!0)},t.prototype.selected=function(n){this.selectable&&(n?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked",!0),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked",!1),this.controlText(" ")))},t}(s["default"]);c["default"].registerComponent("MenuItem",u);i["default"]=u;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"object.assign":45}],105:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.focusedChild_=-1;this.on("keydown",this.handleKeyPress)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=l.createEl(i,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.setAttribute("role","presentation");t.appendChild(this.contentEl_);p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepForward()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_+1);this.focus(n)},t.prototype.stepBack=function(){var n=0;this.focusedChild_!==undefined&&(n=this.focusedChild_-1);this.focus(n)},t.prototype.focus=function(){var n=arguments.length<=0||arguments[0]===undefined?0:arguments[0],t=this.children();t.length>0&&(n<0?n=0:n>=t.length&&(n=t.length-1),this.focusedChild_=n,t[n].el_.focus())},t}(u["default"]);u["default"].registerComponent("Menu",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],106:[function(n,t,i){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function a(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var v=n("global/document"),s=u(v),y=n("./utils/dom"),r=o(y),p=n("./utils/fn"),h=o(p),w=n("./utils/log"),g=u(w),b=n("./component"),c=u(b),k=n("./close-button"),nt=u(k),f="vjs-modal-dialog",d=27,e=function(n){function t(i,u){l(this,t);n.call(this,i,u);this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1;this.closeable(!this.options_.uncloseable);this.content(this.options_.content);this.contentEl_=r.createEl("div",{className:f+"-content"},{role:"document"});this.descEl_=r.createEl("p",{className:f+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")});r.textContent(this.descEl_,this.description());this.el_.appendChild(this.descEl_);this.el_.appendChild(this.contentEl_)}return a(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return f+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(n){n.which===d&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var n=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(n+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),n},t.prototype.open=function(){if(!this.opened_){var n=this.player();if(this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!n.paused(),this.wasPlaying_&&n.pause(),this.closeable())this.on(s["default"],"keydown",h.bind(this,this.handleKeyPress));n.controls(!1);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=!0}return this},t.prototype.opened=function(n){return typeof n=="boolean"&&this[n?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var n=this.player();this.trigger("beforemodalclose");this.opened_=!1;this.wasPlaying_&&n.play();this.closeable()&&this.off(s["default"],"keydown",h.bind(this,this.handleKeyPress));n.controls(!0);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(n){var i,t,r;if(typeof n=="boolean"){if(i=this.closeable_=!!n,t=this.getChild("closeButton"),i&&!t){r=this.contentEl_;this.contentEl_=this.el_;t=this.addChild("closeButton");this.contentEl_=r;this.on(t,"close",this.close)}!i&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(n){var t=this.contentEl(),i=t.parentNode,u=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),r.insertContent(t,n),this.trigger("modalfill"),u?i.insertBefore(t,u):i.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(n){return typeof n!="undefined"&&(this.content_=n),this.content_},t}(c["default"]);e.prototype.options_={temporary:!0};c["default"].registerComponent("ModalDialog",e);i["default"]=e;t.exports=i["default"]},{"./close-button":65,"./component":66,"./utils/dom":131,"./utils/fn":133,"./utils/log":136,"global/document":1}],107:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function it(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var l;i.__esModule=!0;var rt=n("./component.js"),h=r(rt),ut=n("global/document"),u=r(ut),ft=n("global/window"),k=r(ft),et=n("./utils/events.js"),a=s(et),ot=n("./utils/dom.js"),e=s(ot),st=n("./utils/fn.js"),v=s(st),ht=n("./utils/guid.js"),ct=s(ht),lt=n("./utils/browser.js"),pi=s(lt),at=n("./utils/log.js"),o=r(at),vt=n("./utils/to-title-case.js"),w=r(vt),yt=n("./utils/time-ranges.js"),pt=n("./utils/buffer.js"),wt=n("./utils/stylesheet.js"),d=s(wt),bt=n("./fullscreen-api.js"),g=r(bt),kt=n("./media-error.js"),b=r(kt),dt=n("safe-json-parse/tuple"),gt=r(dt),ni=n("object.assign"),y=r(ni),ti=n("./utils/merge-options.js"),p=r(ti),ii=n("./tracks/text-track-list-converter.js"),nt=r(ii),ri=n("./tech/loader.js"),wi=r(ri),ui=n("./poster-image.js"),bi=r(ui),fi=n("./tracks/text-track-display.js"),ki=r(fi),ei=n("./loading-spinner.js"),di=r(ei),oi=n("./big-play-button.js"),gi=r(oi),si=n("./control-bar/control-bar.js"),nr=r(si),hi=n("./error-display.js"),tr=r(hi),ci=n("./tracks/text-track-settings.js"),ir=r(ci),li=n("./modal-dialog"),ai=r(li),vi=n("./tech/tech.js"),c=r(vi),yi=n("./tech/html5.js"),rr=r(yi),f=function(n){function t(i,r,u){var f=this,s;if(tt(this,t),i.id=i.id||"vjs_video_"+ct.newGUID(),r=y["default"](t.getTagSettings(i),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,n.call(this,null,r,u),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=i;this.tagAttributes=i&&e.getElAttributes(i);this.language(this.options_.language);r.languages?function(){var n={};Object.getOwnPropertyNames(r.languages).forEach(function(t){n[t.toLowerCase()]=r.languages[t]});f.languages_=n}():this.languages_=t.prototype.options_.languages;this.cache_={};this.poster_=r.poster||"";this.controls_=!!r.controls;i.controls=!1;this.scrubbing_=!1;this.el_=this.createEl();s=p["default"](this.options_);r.plugins&&function(){var n=r.plugins;Object.getOwnPropertyNames(n).forEach(function(t){typeof this[t]=="function"?this[t](n[t]):o["default"].error("Unable to find plugin:",t)},f)}();this.options_.playerOptions=s;this.initChildren();this.isAudio(i.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");t.players[this.id_]=this;this.userActive(!0);this.reportUserActivity();this.listenForUserActivity_();this.on("fullscreenchange",this.handleFullscreenChange_);this.on("stageclick",this.handleStageClick_)}return it(t,n),t.prototype.dispose=function(){this.trigger("dispose");this.off("dispose");this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_);t.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();n.prototype.dispose.call(this)},t.prototype.createEl=function(){var i=this.el_=n.prototype.createEl.call(this,"div"),t=this.tag,r,u,f;return t.removeAttribute("width"),t.removeAttribute("height"),r=e.getElAttributes(t),Object.getOwnPropertyNames(r).forEach(function(n){n==="class"?i.className=r[n]:i.setAttribute(n,r[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.addClass("vjs-paused"),this.styleEl_=d.createStyleElement("vjs-styles-dimensions"),u=e.$(".vjs-styles-defaults"),f=e.$("head"),f.insertBefore(this.styleEl_,u?u.nextSibling:f.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),t.initNetworkState_=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),e.insertElFirst(t,i),this.el_=i,i},t.prototype.width=function(n){return this.dimension("width",n)},t.prototype.height=function(n){return this.dimension("height",n)},t.prototype.dimension=function(n,t){var i=n+"_",r;if(t===undefined)return this[i]||0;if(t==="")this[i]=undefined;else{if(r=parseFloat(t),isNaN(r))return o["default"].error('Improper value "'+t+'" supplied for for '+n),this;this[i]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(n){if(n===undefined)return!!this.fluid_;this.fluid_=!!n;n?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")},t.prototype.aspectRatio=function(n){if(n===undefined)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(n))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=n;this.fluid(!0);this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){var i=undefined,u=undefined,f=undefined,n=undefined,r,t;f=this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";r=f.split(":");t=r[1]/r[0];i=this.width_!==undefined?this.width_:this.height_!==undefined?this.height_/t:this.videoWidth()||300;u=this.height_!==undefined?this.height_:i*t;n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions";this.addClass(n);d.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+i+"px;\n        height: "+u+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+t*100+"%;\n      }\n    ")},t.prototype.loadTech_=function(n,t){var i,r;this.tech_&&this.unloadTech_();n!=="Html5"&&this.tag&&(c["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null);this.techName_=n;this.isReady_=!1;i=y["default"]({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:t,playerId:this.id(),techId:this.id()+"_"+n+"_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_[n.toLowerCase()]);this.tag&&(i.tag=this.tag);t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.src=t.src);r=c["default"].getTech(n);r||(r=h["default"].getComponent(n));this.tech_=new r(i);this.tech_.ready(v.bind(this,this.handleTechReady_),!0);nt["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()||n==="Html5"&&this.tag||e.insertElFirst(this.tech_.el(),this.el());this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.textTracks_=this.textTracks();this.textTracksJson_=nt["default"].textTracksToJson(this.tech_);this.isReady_=!1;this.tech_.dispose();this.tech_=!1},t.prototype.tech=function(n){if(n&&n.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";k["default"].alert(t);throw new Error(t);},t.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_)},t.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_)},t.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())},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended");this.error(null);this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(n){return n!==undefined?(this.hasStarted_!==n&&(this.hasStarted_=n,n?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(!0);this.trigger("play")},t.prototype.handleTechWaiting_=function(){this.addClass("vjs-waiting");this.trigger("waiting")},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting");this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting");this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking");this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking");this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime);this.addClass("vjs-has-started");this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")},t.prototype.handleTechProgress_=function(){this.trigger("progress")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended");this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause();this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(n){n.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(n){n.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(n,t){t&&this.isFullscreen(t.isFullscreen);this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var n=this.tech_.error();this.error(n&&n.code)},t.prototype.handleTechSuspend_=function(){this.trigger("suspend")},t.prototype.handleTechAbort_=function(){this.trigger("abort")},t.prototype.handleTechEmptied_=function(){this.trigger("emptied")},t.prototype.handleTechStalled_=function(){this.trigger("stalled")},t.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},t.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},t.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},t.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},t.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},t.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(n,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[n](t)},!0);else try{this.tech_[n](t)}catch(i){o["default"](i);throw i;}},t.prototype.techGet_=function(n){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[n]()}catch(t){this.tech_[n]===undefined?o["default"]("Video.js: "+n+" method not defined for "+this.techName_+" playback technology.",t):t.name==="TypeError"?(o["default"]("Video.js: "+n+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):o["default"](t);throw t;}return},t.prototype.play=function(){return this.techCall_("play"),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return this.techGet_("paused")===!1?!1:!0},t.prototype.scrubbing=function(n){return n!==undefined?(this.scrubbing_=!!n,n?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(n){return n!==undefined?(this.techCall_("setCurrentTime",n),this):this.cache_.currentTime=this.techGet_("currentTime")||0},t.prototype.duration=function(n){return n===undefined?this.cache_.duration||0:(n=parseFloat(n)||0,n<0&&(n=Infinity),n!==this.cache_.duration&&(this.cache_.duration=n,n===Infinity?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var n=this.techGet_("buffered");return n&&n.length||(n=yt.createTimeRange(0,0)),n},t.prototype.bufferedPercent=function(){return pt.bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var t=this.buffered(),i=this.duration(),n=t.end(t.length-1);return n>i&&(n=i),n},t.prototype.volume=function(n){var t=undefined;return n!==undefined?(t=Math.max(0,Math.min(1,parseFloat(n))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(n){return n!==undefined?(this.techCall_("setMuted",n),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(n){return n!==undefined?(this.isFullscreen_=!!n,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var n=g["default"];if(this.isFullscreen(!0),n.requestFullscreen){a.on(u["default"],n.fullscreenchange,v.bind(this,function t(){this.isFullscreen(u["default"][n.fullscreenElement]);this.isFullscreen()===!1&&a.off(u["default"],n.fullscreenchange,t);this.trigger("fullscreenchange")}));this.el_[n.requestFullscreen]()}else this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"));return this},t.prototype.exitFullscreen=function(){var n=g["default"];return this.isFullscreen(!1),n.requestFullscreen?u["default"][n.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0;this.docOrigOverflow=u["default"].documentElement.style.overflow;a.on(u["default"],"keydown",v.bind(this,this.fullWindowOnEscKey));u["default"].documentElement.style.overflow="hidden";e.addElClass(u["default"].body,"vjs-full-window");this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(n){n.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1;a.off(u["default"],"keydown",this.fullWindowOnEscKey);u["default"].documentElement.style.overflow=this.docOrigOverflow;e.removeElClass(u["default"].body,"vjs-full-window");this.trigger("exitFullWindow")},t.prototype.canPlayType=function(n){for(var i,t,r=undefined,u=0,f=this.options_.techOrder;u<f.length;u++){if(i=w["default"](f[u]),t=c["default"].getTech(i),t||(t=h["default"].getComponent(i)),!t){o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.');continue}if(t.isSupported()&&(r=t.canPlayType(n),r))return r}return""},t.prototype.selectSource=function(n){var t=this.options_.techOrder.map(w["default"]).map(function(n){return[n,c["default"].getTech(n)||h["default"].getComponent(n)]}).filter(function(n){var i=n[0],t=n[1];return t?t.isSupported():(o["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(n,t,i){var r=undefined;return n.some(function(n){return t.some(function(t){return r=i(n,t),r?!0:void 0})}),r},r=undefined,f=function(n){return function(t,i){return n(i,t)}},u=function(n,t){var i=n[0],r=n[1];if(r.canPlaySource(t))return{source:t,tech:i}};return r=this.options_.sourceOrder?i(n,t,f(u)):i(t,n,u),r||!1},t.prototype.src=function(n){if(n===undefined)return this.techGet_("src");var t=c["default"].getTech(this.techName_);return t||(t=h["default"].getComponent(this.techName_)),Array.isArray(n)?this.sourceList_(n):typeof n=="string"?this.src({src:n}):n instanceof Object&&(n.type&&!t.canPlaySource(n)?this.sourceList_([n]):(this.cache_.src=n.src,this.currentType_=n.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",n):this.techCall_("src",n.src);this.options_.preload==="auto"&&this.load();this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(n){var t=this.selectSource(n);t?t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_(w["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(n){return n!==undefined?(this.techCall_("setPreload",n),this.options_.preload=n,this):this.techGet_("preload")},t.prototype.autoplay=function(n){return n!==undefined?(this.techCall_("setAutoplay",n),this.options_.autoplay=n,this):this.techGet_("autoplay",n)},t.prototype.loop=function(n){return n!==undefined?(this.techCall_("setLoop",n),this.options_.loop=n,this):this.techGet_("loop")},t.prototype.poster=function(n){return n===undefined?this.poster_:(n||(n=""),this.poster_=n,this.techCall_("setPoster",n),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(n){return n!==undefined?(n=!!n,this.controls_!==n&&(this.controls_=n,this.usingNativeControls()&&this.techCall_("setControls",n),n?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(n){return n!==undefined?(n=!!n,this.usingNativeControls_!==n&&(this.usingNativeControls_=n,n?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(n){return n===undefined?this.error_||null:n===null?(this.error_=n,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=n instanceof b["default"]?n:new b["default"](n),this.addClass("vjs-error"),o["default"].error("(CODE:"+this.error_.code+" "+b["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.ended=function(){return this.techGet_("ended")},t.prototype.seeking=function(){return this.techGet_("seeking")},t.prototype.seekable=function(){return this.techGet_("seekable")},t.prototype.reportUserActivity=function(){this.userActivity_=!0},t.prototype.userActive=function(n){if(n!==undefined){if(n=!!n,n!==this.userActive_)if(this.userActive_=n,n)this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");else{if(this.userActivity_=!1,this.tech_)this.tech_.one("mousemove",function(n){n.stopPropagation();n.preventDefault()});this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}return this}return this.userActive_},t.prototype.listenForUserActivity_=function(){var t=undefined,r=undefined,u=undefined,n=v.bind(this,this.reportUserActivity),f=function(t){(t.screenX!==r||t.screenY!==u)&&(r=t.screenX,u=t.screenY,n())},e=function(){n();this.clearInterval(t);t=this.setInterval(n,250)},o=function(){n();this.clearInterval(t)},i,s;this.on("mousedown",e);this.on("mousemove",f);this.on("mouseup",o);this.on("keydown",n);this.on("keyup",n);i=undefined;s=this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1;this.userActive(!0);this.clearTimeout(i);var n=this.options_.inactivityTimeout;n>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},n))}},250)},t.prototype.playbackRate=function(n){return n!==undefined?(this.techCall_("setPlaybackRate",n),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(n){return n!==undefined?(this.isAudio_=!!n,this):!!this.isAudio_},t.prototype.networkState=function(){return this.techGet_("networkState")},t.prototype.readyState=function(){return this.techGet_("readyState")},t.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(n,t,i){return this.tech_&&this.tech_.addTextTrack(n,t,i)},t.prototype.addRemoteTextTrack=function(n){return this.tech_&&this.tech_.addRemoteTextTrack(n)},t.prototype.removeRemoteTextTrack=function(n){this.tech_&&this.tech_.removeRemoteTextTrack(n)},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(n){return n===undefined?this.language_:(this.language_=(""+n).toLowerCase(),this)},t.prototype.languages=function(){return p["default"](t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var i=p["default"](this.options_),r=i.tracks,n,t;for(i.tracks=[],n=0;n<r.length;n++)t=r[n],t=p["default"](t),t.player=undefined,i.tracks[n]=t;return i},t.prototype.createModal=function(n,t){var r=this,i;t=t||{};t.content=n||"";i=new ai["default"](r,t);r.addChild(i);i.on("dispose",function(){r.removeChild(i)});return i.open()},t.getTagSettings=function(n){var t={sources:[],tracks:[]},u=e.getElAttributes(n),h=u["data-setup"],f,i,a,r,s;if(h!==null){var c=gt["default"](h||"{}"),l=c[0],v=c[1];l&&o["default"].error(l);y["default"](u,v)}if(y["default"](t,u),n.hasChildNodes())for(f=n.childNodes,i=0,a=f.length;i<a;i++)r=f[i],s=r.nodeName.toLowerCase(),s==="source"?t.sources.push(e.getElAttributes(r)):s==="track"&&t.tracks.push(e.getElAttributes(r));return t},t}(h["default"]);f.players={};l=k["default"].navigator;f.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:u["default"].getElementsByTagName("html")[0].getAttribute("lang")||l.languages&&l.languages[0]||l.userLanguage||l.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."};f.prototype.handleLoadedMetaData_;f.prototype.handleLoadedData_;f.prototype.handleUserActive_;f.prototype.handleUserInactive_;f.prototype.handleTimeUpdate_;f.prototype.handleTechEnded_;f.prototype.handleVolumeChange_;f.prototype.handleError_;f.prototype.flexNotSupported_=function(){var n=u["default"].createElement("i");return!("flexBasis"in n.style||"webkitFlexBasis"in n.style||"mozFlexBasis"in n.style||"msFlexBasis"in n.style||"msFlexOrder"in n.style)};h["default"].registerComponent("Player",f);i["default"]=f;t.exports=i["default"]},{"./big-play-button.js":62,"./component.js":66,"./control-bar/control-bar.js":67,"./error-display.js":97,"./fullscreen-api.js":100,"./loading-spinner.js":101,"./media-error.js":102,"./modal-dialog":106,"./poster-image.js":111,"./tech/html5.js":116,"./tech/loader.js":117,"./tech/tech.js":118,"./tracks/text-track-display.js":122,"./tracks/text-track-list-converter.js":124,"./tracks/text-track-settings.js":126,"./utils/browser.js":128,"./utils/buffer.js":129,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/guid.js":135,"./utils/log.js":136,"./utils/merge-options.js":137,"./utils/stylesheet.js":138,"./utils/time-ranges.js":139,"./utils/to-title-case.js":140,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":53}],108:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var u=n("./player.js"),f=r(u),e=function(n,t){f["default"].prototype[n]=t};i["default"]=e;t.exports=i["default"]},{"./player.js":107}],109:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../clickable-component.js"),h=r(s),c=n("../component.js"),l=r(c),a=n("./popup.js"),w=r(a),v=n("../utils/dom.js"),b=u(v),y=n("../utils/fn.js"),k=u(y),p=n("../utils/to-title-case.js"),d=r(p),f=function(n){function t(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];e(this,t);n.call(this,i,r);this.update()}return o(t,n),t.prototype.update=function(){var n=this.createPopup();this.popup&&this.removeChild(this.popup);this.popup=n;this.addChild(n);this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+n.prototype.buildCSSClass.call(this)},t}(h["default"]);l["default"].registerComponent("PopupButton",f);i["default"]=f;t.exports=i["default"]},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/to-title-case.js":140,"./popup.js":110}],110:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("../component.js"),u=e(h),c=n("../utils/dom.js"),l=r(c),a=n("../utils/fn.js"),v=r(a),y=n("../utils/events.js"),p=r(y),f=function(n){function t(){o(this,t);n.apply(this,arguments)}return s(t,n),t.prototype.addItem=function(n){this.addChild(n);n.on("click",v.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){var i=this.options_.contentElType||"ul",t;this.contentEl_=l.createEl(i,{className:"vjs-menu-content"});t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});t.appendChild(this.contentEl_);p.on(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()});return t},t}(u["default"]);u["default"].registerComponent("Popup",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"../utils/events.js":132,"../utils/fn.js":133}],111:[function(n,t,i){"use strict";function r(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var h=n("./clickable-component.js"),c=u(h),l=n("./component.js"),a=u(l),v=n("./utils/fn.js"),y=r(v),p=n("./utils/dom.js"),f=r(p),w=n("./utils/browser.js"),b=r(w),e=function(n){function t(i,r){o(this,t);n.call(this,i,r);this.update();i.on("posterchange",y.bind(this,this.update))}return s(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=f.createEl("div",{className:"vjs-poster",tabIndex:-1});return b.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=f.createEl("img"),n.appendChild(this.fallbackImg_)),n},t.prototype.update=function(){var n=this.player().poster();this.setSrc(n);n?this.show():this.hide()},t.prototype.setSrc=function(n){if(this.fallbackImg_)this.fallbackImg_.src=n;else{var t="";n&&(t='url("'+n+'")');this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},t}(c["default"]);a["default"].registerComponent("PosterImage",e);i["default"]=e;t.exports=i["default"]},{"./clickable-component.js":64,"./component.js":66,"./utils/browser.js":128,"./utils/dom.js":131,"./utils/fn.js":133}],112:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}var h;i.__esModule=!0;var l=n("./utils/events.js"),a=c(l),v=n("global/document"),u=e(v),y=n("global/window"),p=e(y),r=!1,o=undefined,s=function(){var s=u["default"].getElementsByTagName("video"),h=u["default"].getElementsByTagName("audio"),t=[],n,i,e,c,l;if(s&&s.length>0)for(n=0,i=s.length;n<i;n++)t.push(s[n]);if(h&&h.length>0)for(n=0,i=h.length;n<i;n++)t.push(h[n]);if(t&&t.length>0)for(n=0,i=t.length;n<i;n++)if(e=t[n],e&&e.getAttribute)e.player===undefined&&(c=e.getAttribute("data-setup"),c!==null&&(l=o(e)));else{f(1);break}else r||f(1)},f=function(n,t){o=t;setTimeout(s,n)};if(u["default"].readyState==="complete")r=!0;else a.one(p["default"],"load",function(){r=!0});h=function(){return r};i.autoSetup=s;i.autoSetupTimeout=f;i.hasLoaded=h},{"./utils/events.js":132,"global/document":1,"global/window":2}],113:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var a=n("../component.js"),e=u(a),v=n("../utils/dom.js"),f=h(v),y=n("global/document"),r=u(y),p=n("object.assign"),o=u(p),s=function(n){function t(i,r){c(this,t);n.call(this,i,r);this.bar=this.getChild(this.options_.barName);this.vertical(!!this.options_.vertical);this.on("mousedown",this.handleMouseDown);this.on("touchstart",this.handleMouseDown);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);this.on("click",this.handleClick);this.on(i,"controlsvisible",this.update);this.on(i,this.playerEvent,this.update)}return l(t,n),t.prototype.createEl=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],r=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];return i.className=i.className+" vjs-slider",i=o["default"]({tabIndex:0},i),r=o["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),n.prototype.createEl.call(this,t,i,r)},t.prototype.handleMouseDown=function(n){n.preventDefault();f.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(r["default"],"mousemove",this.handleMouseMove);this.on(r["default"],"mouseup",this.handleMouseUp);this.on(r["default"],"touchmove",this.handleMouseMove);this.on(r["default"],"touchend",this.handleMouseUp);this.handleMouseMove(n)},t.prototype.handleMouseMove=function(){},t.prototype.handleMouseUp=function(){f.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(r["default"],"mousemove",this.handleMouseMove);this.off(r["default"],"mouseup",this.handleMouseUp);this.off(r["default"],"touchmove",this.handleMouseMove);this.off(r["default"],"touchend",this.handleMouseUp);this.update()},t.prototype.update=function(){var n,t,i;this.el_&&(n=this.getPercent(),t=this.bar,t)&&((typeof n!="number"||n!==n||n<0||n===Infinity)&&(n=0),i=(n*100).toFixed(2)+"%",this.vertical()?t.el().style.height=i:t.el().style.width=i)},t.prototype.calculateDistance=function(n){var t=f.getPointerPosition(this.el_,n);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(r["default"],"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(n){n.which===37||n.which===40?(n.preventDefault(),this.stepBack()):(n.which===38||n.which===39)&&(n.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(r["default"],"keydown",this.handleKeyPress)},t.prototype.handleClick=function(n){n.stopImmediatePropagation();n.preventDefault()},t.prototype.vertical=function(n){return n===undefined?this.vertical_||!1:(this.vertical_=!!n,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},t}(e["default"]);e["default"].registerComponent("Slider",s);i["default"]=s;t.exports=i["default"]},{"../component.js":66,"../utils/dom.js":131,"global/document":1,"object.assign":45}],114:[function(n,t,i){"use strict";function r(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(n,t){return n+"&"+t},n.streamToParts=function(n){var r={connection:"",stream:""},t,i;return n?(t=n.search(/&(?!\w+=)/),i=undefined,t!==-1?i=t+1:(t=i=n.lastIndexOf("/")+1,t===0&&(t=i=n.length)),r.connection=n.substring(0,t),r.stream=n.substring(i,n.length),r):r},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t){var i=n.rtmpSourceHandler.canPlayType(t.type);return i?i:n.isStreamingSrc(t.src)?"maybe":""},n.rtmpSourceHandler.handleSource=function(t,i){var r=n.streamToParts(t.src);i.setRtmpConnection(r.connection);i.setRtmpStream(r.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],115:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function k(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function d(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function st(n){var t=n.charAt(0).toUpperCase()+n.slice(1);p["set"+t]=function(t){return this.el_.vjs_setProperty(n,t)}}function b(n){p[n]=function(){return this.el_.vjs_getProperty(n)}}var f;i.__esModule=!0;var g=n("./tech"),c=e(g),nt=n("../utils/dom.js"),s=v(nt),tt=n("../utils/url.js"),y=v(tt),h=n("../utils/time-ranges.js"),it=n("./flash-rtmp"),rt=e(it),ut=n("../component"),ft=e(ut),et=n("global/window"),u=e(et),ot=n("object.assign"),o=e(ot),l=u["default"].navigator,r=function(n){function t(i,r){k(this,t);n.call(this,i,r);i.source&&this.ready(function(){this.setSource(i.source)},!0);i.startTime&&this.ready(function(){this.load();this.play();this.currentTime(i.startTime)},!0);u["default"].videojs=u["default"].videojs||{};u["default"].videojs.Flash=u["default"].videojs.Flash||{};u["default"].videojs.Flash.onReady=t.onReady;u["default"].videojs.Flash.onEvent=t.onEvent;u["default"].videojs.Flash.onError=t.onError;this.on("seeked",function(){this.lastSeekTarget_=undefined})}return d(t,n),t.prototype.createEl=function(){var n=this.options_;n.swf||(n.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var i=n.techId,r=o["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.preload,loop:n.loop,muted:n.muted},n.flashVars),u=o["default"]({wmode:"opaque",bgcolor:"#000000"},n.params),f=o["default"]({id:i,name:i,"class":"vjs-tech"},n.attributes);return this.el_=t.embed(n.swf,r,u,f),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0);this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(n){return n===undefined?this.currentSrc():this.setSrc(n)},t.prototype.setSrc=function(n){if(n=y.getAbsoluteURL(n),this.el_.vjs_src(n),this.autoplay()){var t=this;this.setTimeout(function(){t.play()},0)}},t.prototype.seeking=function(){return this.lastSeekTarget_!==undefined},t.prototype.setCurrentTime=function(t){var i=this.seekable();i.length&&(t=t>i.start(0)?t:i.start(0),t=t<i.end(i.length-1)?t:i.end(i.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var n=this.duration();return n===0?h.createTimeRange():h.createTimeRange(0,n)},t.prototype.buffered=function(){var n=this.el_.vjs_getProperty("buffered");return n.length===0?h.createTimeRange():h.createTimeRange(n[0][0],n[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t}(c["default"]),p=r.prototype,a="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),w="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoTracks,audioTracks,videoWidth,videoHeight".split(",");for(f=0;f<a.length;f++)b(a[f]),st(a[f]);for(f=0;f<w.length;f++)b(w[f]);r.isSupported=function(){return r.version()[0]>=10};c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){return n in r.formats?"maybe":""};r.nativeSourceHandler.canHandleSource=function(n){function i(n){var t=y.getFileExtension(n);return t?"video/"+t:""}var t;return t=n.type?n.type.replace(/;.*/,"").toLowerCase():i(n.src),r.nativeSourceHandler.canPlayType(t)};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};r.onReady=function(n){var i=s.getEl(n),t=i&&i.tech;t&&t.el()&&r.checkReady(t)};r.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){r.checkReady(n)},50))};r.onEvent=function(n,t){var i=s.getEl(n).tech;i.trigger(t)};r.onError=function(n,t){var i=s.getEl(n).tech;if(t==="srcnotfound")return i.error(4);i.error("FLASH: "+t)};r.version=function(){var n="0,0,0";try{n=new u["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{l.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(l.plugins["Shockwave Flash 2.0"]||l.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};r.embed=function(n,t,i,u){var f=r.getEmbedCode(n,t,i,u);return s.createEl("div",{innerHTML:f}).childNodes[0]};r.getEmbedCode=function(n,t,i,r){var u="",f="",e="";return t&&Object.getOwnPropertyNames(t).forEach(function(n){u+=n+"="+t[n]+"&amp;"}),i=o["default"]({movie:n,flashvars:u,allowScriptAccess:"always",allowNetworking:"all"},i),Object.getOwnPropertyNames(i).forEach(function(n){f+='<param name="'+n+'" value="'+i[n]+'" />'}),r=o["default"]({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(n){e+=n+'="'+r[n]+'" '}),'<object type="application/x-shockwave-flash" '+e+">"+f+"<\/object>"};rt["default"](r);ft["default"].registerComponent("Flash",r);c["default"].registerTech("Flash",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../utils/dom.js":131,"../utils/time-ranges.js":139,"../utils/url.js":141,"./flash-rtmp":114,"./tech":118,"global/window":2,"object.assign":45}],116:[function(n,t,i){"use strict";function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o;i.__esModule=!0;var p=n("./tech.js"),c=e(p),w=n("../component"),b=e(w),k=n("../utils/dom.js"),l=s(k),d=n("../utils/url.js"),g=s(d),nt=n("../utils/fn.js"),a=s(nt),tt=n("../utils/log.js"),it=e(tt),rt=n("../utils/browser.js"),u=s(rt),ut=n("global/document"),h=e(ut),ft=n("global/window"),et=e(ft),ot=n("object.assign"),st=e(ot),ht=n("../utils/merge-options.js"),ct=e(ht),r=function(n){function t(i,r){var e,f,l,o;if(v(this,t),n.call(this,i,r),e=i.source,e&&(this.el_.currentSrc!==e.src||i.tag&&i.tag.initNetworkState_===3)?this.setSource(e):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var h=this.el_.childNodes,c=h.length,s=[];c--;)f=h[c],l=f.nodeName.toLowerCase(),l==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(f),this.remoteTextTracks().addTrack_(f.track)):s.push(f));for(o=0;o<s.length;o++)this.el_.removeChild(s[o])}this.featuresNativeTextTracks&&(this.handleTextTrackChange_=a.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=a.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=a.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_());(u.TOUCH_ENABLED&&i.nativeControlsForTouch===!0||u.IS_IPHONE||u.IS_NATIVE_ANDROID)&&this.setControls(!0);this.triggerReady()}return y(t,n),t.prototype.dispose=function(){var i=this.el().textTracks,r=this.textTracks(),u;for(i&&i.removeEventListener&&(i.removeEventListener("change",this.handleTextTrackChange_),i.removeEventListener("addtrack",this.handleTextTrackAdd_),i.removeEventListener("removetrack",this.handleTextTrackRemove_)),u=r.length;u--;)r.removeTrack_(r[u]);t.disposeMediaElement(this.el_);n.prototype.dispose.call(this)},t.prototype.createEl=function(){var n=this.options_.tag,f,c,e,o,i,r,s;for(n&&this.movingMediaElementInDOM!==!1||(n?(f=n.cloneNode(!0),n.parentNode.insertBefore(f,n),t.disposeMediaElement(n),n=f):(n=h["default"].createElement("video"),c=this.options_.tag&&l.getElAttributes(this.options_.tag),e=ct["default"]({},c),u.TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete e.controls,l.setElAttributes(n,st["default"](e,{id:this.options_.techId,"class":"vjs-tech"})))),o=["autoplay","preload","loop","muted"],i=o.length-1;i>=0;i--)r=o[i],s={},typeof this.options_[r]!="undefined"&&(s[r]=this.options_[r]),l.setElAttributes(n,s);return n},t.prototype.handleLateInit_=function(n){var i=this,r,t;if(n.networkState!==0&&n.networkState!==3){if(n.readyState===0&&(r=function(){var n=!1,r=function(){n=!0},t;i.on("loadstart",r);t=function(){n||this.trigger("loadstart")};i.on("loadedmetadata",t);return i.ready(function(){this.off("loadstart",r);this.off("loadedmetadata",t);n||this.trigger("loadstart")}),{v:undefined}}(),typeof r=="object"))return r.v;t=["loadstart"];t.push("loadedmetadata");n.readyState>=2&&t.push("loadeddata");n.readyState>=3&&t.push("canplay");n.readyState>=4&&t.push("canplaythrough");this.ready(function(){t.forEach(function(n){this.trigger(n)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var n=this.el().textTracks;n&&n.addEventListener&&(n.addEventListener("change",this.handleTextTrackChange_),n.addEventListener("addtrack",this.handleTextTrackAdd_),n.addEventListener("removetrack",this.handleTextTrackRemove_))},t.prototype.handleTextTrackChange=function(){var n=this.textTracks();this.textTracks().trigger({type:"change",target:n,currentTarget:n,srcElement:n})},t.prototype.handleTextTrackAdd=function(n){this.textTracks().addTrack_(n.track)},t.prototype.handleTextTrackRemove=function(n){this.textTracks().removeTrack_(n.track)},t.prototype.play=function(){this.el_.play()},t.prototype.pause=function(){this.el_.pause()},t.prototype.paused=function(){return this.el_.paused},t.prototype.currentTime=function(){return this.el_.currentTime},t.prototype.setCurrentTime=function(n){try{this.el_.currentTime=n}catch(t){it["default"](t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){return this.el_.duration||0},t.prototype.buffered=function(){return this.el_.buffered},t.prototype.volume=function(){return this.el_.volume},t.prototype.setVolume=function(n){this.el_.volume=n},t.prototype.muted=function(){return this.el_.muted},t.prototype.setMuted=function(n){this.el_.muted=n},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var n=et["default"].navigator.userAgent;if(/Android/.test(n)||!/Chrome|Mac OS X 10.5/.test(n))return!0}return!1},t.prototype.enterFullScreen=function(){var n=this.el_;if("webkitDisplayingFullscreen"in n)this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})});this.trigger("fullscreenchange",{isFullscreen:!0})});n.paused&&n.networkState<=n.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(n){if(n===undefined)return this.el_.src;this.setSrc(n)},t.prototype.setSrc=function(n){this.el_.src=n},t.prototype.load=function(){this.el_.load()},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.poster=function(){return this.el_.poster},t.prototype.setPoster=function(n){this.el_.poster=n},t.prototype.preload=function(){return this.el_.preload},t.prototype.setPreload=function(n){this.el_.preload=n},t.prototype.autoplay=function(){return this.el_.autoplay},t.prototype.setAutoplay=function(n){this.el_.autoplay=n},t.prototype.controls=function(){return this.el_.controls},t.prototype.setControls=function(n){this.el_.controls=!!n},t.prototype.loop=function(){return this.el_.loop},t.prototype.setLoop=function(n){this.el_.loop=n},t.prototype.error=function(){return this.el_.error},t.prototype.seeking=function(){return this.el_.seeking},t.prototype.seekable=function(){return this.el_.seekable},t.prototype.ended=function(){return this.el_.ended},t.prototype.defaultMuted=function(){return this.el_.defaultMuted},t.prototype.playbackRate=function(){return this.el_.playbackRate},t.prototype.played=function(){return this.el_.played},t.prototype.setPlaybackRate=function(n){this.el_.playbackRate=n},t.prototype.networkState=function(){return this.el_.networkState},t.prototype.readyState=function(){return this.el_.readyState},t.prototype.videoWidth=function(){return this.el_.videoWidth},t.prototype.videoHeight=function(){return this.el_.videoHeight},t.prototype.textTracks=function(){return n.prototype.textTracks.call(this)},t.prototype.addTextTrack=function(t,i,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,r):n.prototype.addTextTrack.call(this,t,i,r)},t.prototype.addRemoteTextTrack=function(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],i;return this.featuresNativeTextTracks?(i=h["default"].createElement("track"),t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t["default"]&&(i["default"]=t["default"]),t.id&&(i.id=t.id),t.src&&(i.src=t.src),this.el().appendChild(i),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack_(i.track),i):n.prototype.addRemoteTextTrack.call(this,t)},t.prototype.removeRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.removeRemoteTextTrack.call(this,t);var i=undefined,r=undefined,u=this.remoteTextTrackEls().getTrackElementByTrack_(t);for(this.remoteTextTrackEls().removeTrackElement_(u),this.remoteTextTracks().removeTrack_(t),i=this.$$("track"),r=i.length;r--;)(t===i[r]||t===i[r].track)&&this.el().removeChild(i[r])},t}(c["default"]);r.TEST_VID=h["default"].createElement("video");o=h["default"].createElement("track");o.kind="captions";o.srclang="en";o.label="English";r.TEST_VID.appendChild(o);r.isSupported=function(){try{r.TEST_VID.volume=.5}catch(n){return!1}return!!r.TEST_VID.canPlayType};c["default"].withSourceHandlers(r);r.nativeSourceHandler={};r.nativeSourceHandler.canPlayType=function(n){try{return r.TEST_VID.canPlayType(n)}catch(t){return""}};r.nativeSourceHandler.canHandleSource=function(n){var t;return n.type?r.nativeSourceHandler.canPlayType(n.type):n.src?(t=g.getFileExtension(n.src),r.nativeSourceHandler.canPlayType("video/"+t)):""};r.nativeSourceHandler.handleSource=function(n,t){t.setSrc(n.src)};r.nativeSourceHandler.dispose=function(){};r.registerSourceHandler(r.nativeSourceHandler);r.canControlVolume=function(){var n=r.TEST_VID.volume;return r.TEST_VID.volume=n/2+.1,n!==r.TEST_VID.volume};r.canControlPlaybackRate=function(){var n=r.TEST_VID.playbackRate;return r.TEST_VID.playbackRate=n/2+.1,n!==r.TEST_VID.playbackRate};r.supportsNativeTextTracks=function(){var n;return n=!!r.TEST_VID.textTracks,n&&r.TEST_VID.textTracks.length>0&&(n=typeof r.TEST_VID.textTracks[0].mode!="number"),n&&u.IS_FIREFOX&&(n=!1),!n||"onremovetrack"in r.TEST_VID.textTracks||(n=!1),n};r.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];r.prototype.featuresVolumeControl=r.canControlVolume();r.prototype.featuresPlaybackRate=r.canControlPlaybackRate();r.prototype.movingMediaElementInDOM=!u.IS_IOS;r.prototype.featuresFullscreenResize=!0;r.prototype.featuresProgressEvents=!0;r.prototype.featuresNativeTextTracks=r.supportsNativeTextTracks();var f=undefined,lt=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,at=/^video\/mp4/i;r.patchCanPlayType=function(){u.ANDROID_VERSION>=4&&(f||(f=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&lt.test(n)?"maybe":f.call(this,n)});u.IS_OLD_ANDROID&&(f||(f=r.TEST_VID.constructor.prototype.canPlayType),r.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&at.test(n)?"maybe":f.call(this,n)})};r.unpatchCanPlayType=function(){var n=r.TEST_VID.constructor.prototype.canPlayType;return r.TEST_VID.constructor.prototype.canPlayType=f,f=null,n};r.patchCanPlayType();r.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};r.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),i=t.length;i--;)n.removeChild(t[i]);n.removeAttribute("src");typeof n.load=="function"&&function(){try{n.load()}catch(t){}}()}};b["default"].registerComponent("Html5",r);c["default"].registerTech("Html5",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../utils/browser.js":128,"../utils/dom.js":131,"../utils/fn.js":133,"../utils/log.js":136,"../utils/merge-options.js":137,"../utils/url.js":141,"./tech.js":118,"global/document":1,"global/window":2,"object.assign":45}],117:[function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var s=n("../component.js"),u=r(s),h=n("./tech.js"),c=r(h),l=n("global/window"),y=r(l),a=n("../utils/to-title-case.js"),v=r(a),f=function(n){function t(i,r,f){var s,l,o,h;if(e(this,t),n.call(this,i,r,f),r.playerOptions.sources&&r.playerOptions.sources.length!==0)i.src(r.playerOptions.sources);else for(s=0,l=r.playerOptions.techOrder;s<l.length;s++)if(o=v["default"](l[s]),h=c["default"].getTech(o),o||(h=u["default"].getComponent(o)),h&&h.isSupported()){i.loadTech_(o);break}}return o(t,n),t}(u["default"]);u["default"].registerComponent("MediaLoader",f);i["default"]=f;t.exports=i["default"]},{"../component.js":66,"../utils/to-title-case.js":140,"./tech.js":118,"global/window":2}],118:[function(n,t,i){"use strict";function v(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var a;i.__esModule=!0;var w=n("../component"),e=u(w),b=n("../tracks/html-track-element"),k=u(b),d=n("../tracks/html-track-element-list"),g=u(d),nt=n("../utils/merge-options.js"),tt=u(nt),it=n("../tracks/text-track"),rt=u(it),ut=n("../tracks/text-track-list"),h=u(ut),ft=n("../utils/fn.js"),o=v(ft),et=n("../utils/log.js"),c=u(et),s=n("../utils/time-ranges.js"),ot=n("../utils/buffer.js"),st=n("../media-error.js"),l=u(st),ht=n("global/window"),f=u(ht),ct=n("global/document"),lt=u(ct),r=function(n){function t(){var i=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],r=arguments.length<=1||arguments[1]===undefined?function(){}:arguments[1];y(this,t);i.reportTouchActivity=!1;n.call(this,null,i,r);this.hasStarted_=!1;this.on("playing",function(){this.hasStarted_=!0});this.on("loadstart",function(){this.hasStarted_=!1});if(this.textTracks_=i.textTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(i.nativeCaptions===!1||i.nativeTextTracks===!1)&&(this.featuresNativeTextTracks=!1),!this.featuresNativeTextTracks)this.on("ready",this.emulateTextTracks);this.initTextTrackListeners();this.emitTapEvents()}return p(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(){this.stopTrackingProgress();this.progressInterval=this.setInterval(o.bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress");this.bufferedPercent_=n;n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(){this.duration_=this.duration()},t.prototype.buffered=function(){return s.createTimeRange(0,0)},t.prototype.bufferedPercent=function(){return ot.bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){var t=this.textTracks(),i;if(t)for(i=t.length;i--;)this.removeRemoteTextTrack(t[i]);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();n.prototype.dispose.call(this)},t.prototype.reset=function(){},t.prototype.error=function(n){return n!==undefined&&(this.error_=n instanceof l["default"]?n:new l["default"](n),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?s.createTimeRange(0,0):s.createTimeRange()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var t=o.bind(this,function(){this.trigger("texttrackchange")}),n=this.textTracks();if(n){n.addEventListener("removetrack",t);n.addEventListener("addtrack",t);this.on("dispose",o.bind(this,function(){n.removeEventListener("removetrack",t);n.removeEventListener("addtrack",t)}))}},t.prototype.emulateTextTracks=function(){var u=this,n=this.textTracks(),r,t,i;if(n){f["default"].WebVTT||this.el().parentNode==null||(r=lt["default"].createElement("script"),r.src=this.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",this.el().parentNode.appendChild(r),f["default"].WebVTT=!0);t=function(){return u.trigger("texttrackchange")};i=function(){var i,r;for(t(),i=0;i<n.length;i++)r=n[i],r.removeEventListener("cuechange",t),r.mode==="showing"&&r.addEventListener("cuechange",t)};i();n.addEventListener("change",i);this.on("dispose",function(){n.removeEventListener("change",i)})}},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new h["default"],this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new h["default"],this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new g["default"],this.remoteTextTrackEls_},t.prototype.addTextTrack=function(n,t,i){if(!n)throw new Error("TextTrack kind is required but was not provided");return a(this,n,t,i)},t.prototype.addRemoteTextTrack=function(n){var i=tt["default"](n,{tech:this}),t=new k["default"](i);return this.remoteTextTrackEls().addTrackElement_(t),this.remoteTextTracks().addTrack_(t.track),this.textTracks().addTrack_(t.track),t},t.prototype.removeRemoteTextTrack=function(n){this.textTracks().removeTrack_(n);var t=this.remoteTextTrackEls().getTrackElementByTrack_(n);this.remoteTextTrackEls().removeTrackElement_(t);this.remoteTextTracks().removeTrack_(n)},t.prototype.setPoster=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(n){return n.prototype instanceof t||n instanceof t||n===t},t.registerTech=function(n,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+n+" must be a Tech");return t.techs_[n]=i,i},t.getTech=function(n){return t.techs_&&t.techs_[n]?t.techs_[n]:f["default"]&&f["default"].videojs&&f["default"].videojs[n]?(c["default"].warn("The "+n+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),f["default"].videojs[n]):void 0},t}(e["default"]);r.prototype.textTracks_;a=function(n,t,i,r){var u=arguments.length<=4||arguments[4]===undefined?{}:arguments[4],e=n.textTracks(),f;return u.kind=t,i&&(u.label=i),r&&(u.language=r),u.tech=n,f=new rt["default"](u),e.addTrack_(f),f};r.prototype.featuresVolumeControl=!0;r.prototype.featuresFullscreenResize=!1;r.prototype.featuresPlaybackRate=!1;r.prototype.featuresProgressEvents=!1;r.prototype.featuresTimeupdateEvents=!1;r.prototype.featuresNativeTextTracks=!1;r.withSourceHandlers=function(n){n.registerSourceHandler=function(t,i){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]);i===undefined&&(i=r.length);r.splice(i,0,t)};n.canPlayType=function(t){for(var u=n.sourceHandlers||[],i=undefined,r=0;r<u.length;r++)if(i=u[r].canPlayType(t),i)return i;return""};n.selectSourceHandler=function(t){for(var r=n.sourceHandlers||[],u=undefined,i=0;i<r.length;i++)if(u=r[i].canHandleSource(t),u)return r[i];return null};n.canPlaySource=function(t){var i=n.selectSourceHandler(t);return i?i.canHandleSource(t):""};["seekable","duration"].forEach(function(n){var t=this[n];typeof t=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},n.prototype);n.prototype.setSource=function(t){var i=n.selectSourceHandler(t);i||(n.nativeSourceHandler?i=n.nativeSourceHandler:c["default"].error("No source hander found for the current source."));this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);this.currentSource_=t;this.sourceHandler_=i.handleSource(t,this);this.on("dispose",this.disposeSourceHandler);return this};n.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&this.sourceHandler_.dispose()}};e["default"].registerComponent("Tech",r);e["default"].registerComponent("MediaTechController",r);r.registerTech("Tech",r);i["default"]=r;t.exports=i["default"]},{"../component":66,"../media-error.js":102,"../tracks/html-track-element":120,"../tracks/html-track-element-list":119,"../tracks/text-track":127,"../tracks/text-track-list":125,"../utils/buffer.js":129,"../utils/fn.js":133,"../utils/log.js":136,"../utils/merge-options.js":137,"../utils/time-ranges.js":139,"global/document":1,"global/window":2}],119:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}i.__esModule=!0;var o=n("../utils/browser.js"),r=f(o),s=n("global/document"),h=u(s),c=function(){function n(){var f=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t,i,u,o;if(e(this,n),t=this,r.IS_IE8){t=h["default"].createElement("custom");for(i in n.prototype)i!=="constructor"&&(t[i]=n.prototype[i])}for(t.trackElements_=[],Object.defineProperty(t,"length",{get:function(){return this.trackElements_.length}}),u=0,o=f.length;u<o;u++)t.addTrackElement_(f[u]);if(r.IS_IE8)return t}return n.prototype.addTrackElement_=function(n){this.trackElements_.push(n)},n.prototype.getTrackElementByTrack_=function(n){for(var i=undefined,t=0,r=this.trackElements_.length;t<r;t++)if(n===this.trackElements_[t].track){i=this.trackElements_[t];break}return i},n.prototype.removeTrackElement_=function(n){for(var t=0,i=this.trackElements_.length;t<i;t++)if(n===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},n}();i["default"]=c;t.exports=i["default"]},{"../utils/browser.js":128,"global/document":1}],120:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function s(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.__esModule=!0;var l=n("../utils/browser.js"),f=s(l),a=n("global/document"),v=u(a),y=n("../event-target"),p=u(y),w=n("../tracks/text-track"),b=u(w),e=0,o=2,r=function(n){function t(){var c=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],u,i,s,r;if(h(this,t),n.call(this),u=undefined,i=this,f.IS_IE8){i=v["default"].createElement("custom");for(s in t.prototype)s!=="constructor"&&(i[s]=t.prototype[s])}return r=new b["default"](c),i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i["default"]=r["default"],Object.defineProperty(i,"readyState",{get:function(){return u}}),Object.defineProperty(i,"track",{get:function(){return r}}),u=e,r.addEventListener("loadeddata",function(){u=o;i.trigger({type:"load",target:i})}),f.IS_IE8?i:void 0}return c(t,n),t}(p["default"]);r.prototype.allowedEvents_={load:"load"};r.NONE=e;r.LOADING=1;r.LOADED=o;r.ERROR=3;i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../tracks/text-track":127,"../utils/browser.js":128,"global/document":1}],121:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}i.__esModule=!0;var o=n("../utils/browser.js"),u=e(o),s=n("global/document"),h=f(s),r=function r(n){var t=this,i;if(u.IS_IE8){t=h["default"].createElement("custom");for(i in r.prototype)i!=="constructor"&&(t[i]=r.prototype[i])}return r.prototype.setCues_.call(t,n),Object.defineProperty(t,"length",{get:function(){return this.length_}}),u.IS_IE8?t:void 0};r.prototype.setCues_=function(n){var i=this.length||0,t=0,r=n.length,u;if(this.cues_=n,this.length_=n.length,u=function(n){""+n in this||Object.defineProperty(this,""+n,{get:function(){return this.cues_[n]}})},i<r)for(t=i;t<r;t++)u.call(this,t)};r.prototype.getCueById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};i["default"]=r;t.exports=i["default"]},{"../utils/browser.js":128,"global/document":1}],122:[function(n,t,i){"use strict";function a(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function o(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function s(n,t,i){try{n.style[t]=i}catch(r){}}i.__esModule=!0;var p=n("../component"),h=f(p),w=n("../menu/menu.js"),it=f(w),b=n("../menu/menu-item.js"),rt=f(b),k=n("../menu/menu-button.js"),ut=f(k),d=n("../utils/fn.js"),e=a(d),g=n("global/document"),ft=f(g),nt=n("global/window"),u=f(nt),r="#222",c="#ccc",tt={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},l=function(n){function t(i,r,u){v(this,t);n.call(this,i,r,u);i.on("loadstart",e.bind(this,this.toggleDisplay));i.on("texttrackchange",e.bind(this,this.updateDisplay));i.ready(e.bind(this,function(){var t,n,r;if(i.tech_&&i.tech_.featuresNativeTextTracks){this.hide();return}i.on("fullscreenchange",e.bind(this,this.updateDisplay));for(t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)r=t[n],this.player_.addRemoteTextTrack(r)}))}return y(t,n),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"})},t.prototype.clearDisplay=function(){typeof u["default"].WebVTT=="function"&&u["default"].WebVTT.processCues(u["default"],[],this.el_)},t.prototype.updateDisplay=function(){var t=this.player_.textTracks(),n,i;if(this.clearDisplay(),t)for(n=0;n<t.length;n++)i=t[n],i.mode==="showing"&&this.updateForTrack(i)},t.prototype.updateForTrack=function(n){var t,f,e,h,l,i,a;if(typeof u["default"].WebVTT=="function"&&n.activeCues){for(t=this.player_.textTrackSettings.getValues(),f=[],e=0;e<n.activeCues.length;e++)f.push(n.activeCues[e]);for(u["default"].WebVTT.processCues(u["default"],n.activeCues,this.el_),h=f.length;h--;)(l=f[h],l)&&(i=l.displayState,t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&s(i.firstChild,"color",o(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&s(i.firstChild,"backgroundColor",o(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?s(i,"backgroundColor",o(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&(t.edgeStyle==="dropshadow"?i.firstChild.style.textShadow="2px 2px 3px "+r+", 2px 2px 4px "+r+", 2px 2px 5px "+r:t.edgeStyle==="raised"?i.firstChild.style.textShadow="1px 1px "+r+", 2px 2px "+r+", 3px 3px "+r:t.edgeStyle==="depressed"?i.firstChild.style.textShadow="1px 1px "+c+", 0 1px "+c+", -1px -1px "+r+", 0 -1px "+r:t.edgeStyle==="uniform"&&(i.firstChild.style.textShadow="0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r+", 0 0 4px "+r)),t.fontPercent&&t.fontPercent!==1&&(a=u["default"].parseFloat(i.style.fontSize),i.style.fontSize=a*t.fontPercent+"px",i.style.height="auto",i.style.top="auto",i.style.bottom="2px"),t.fontFamily&&t.fontFamily!=="default"&&(t.fontFamily==="small-caps"?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=tt[t.fontFamily]))}},t}(h["default"]);h["default"].registerComponent("TextTrackDisplay",l);i["default"]=l;t.exports=i["default"]},{"../component":66,"../menu/menu-button.js":103,"../menu/menu-item.js":104,"../menu/menu.js":105,"../utils/fn.js":133,"global/document":1,"global/window":2}],123:[function(n,t,i){"use strict";i.__esModule=!0;i.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"};i.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"}},{}],124:[function(n,t,i){"use strict";i.__esModule=!0;var r=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i){return n[i]&&(t[i]=n[i]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u=function(n){var t=n.$$("track"),i=Array.prototype.map.call(t,function(n){return n.track}),u=Array.prototype.map.call(t,function(n){var t=r(n.track);return n.src&&(t.src=n.src),t});return u.concat(Array.prototype.filter.call(n.textTracks(),function(n){return i.indexOf(n)===-1}).map(r))},f=function(n,t){return n.forEach(function(n){var i=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(function(n){return i.addCue(n)})}),t.textTracks()};i["default"]={textTracksToJson:u,jsonToTextTracks:f,trackToJson_:r};t.exports=i["default"]},{}],125:[function(n,t,i){"use strict";function u(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}var o;i.__esModule=!0;var s=n("../event-target"),h=f(s),c=n("../utils/fn.js"),l=u(c),a=n("../utils/browser.js"),e=u(a),v=n("global/document"),y=f(v),r=function r(n){var t=this,i,u;if(e.IS_IE8){t=y["default"].createElement("custom");for(i in r.prototype)i!=="constructor"&&(t[i]=r.prototype[i])}for(n=n||[],t.tracks_=[],Object.defineProperty(t,"length",{get:function(){return this.tracks_.length}}),u=0;u<n.length;u++)t.addTrack_(n[u]);if(e.IS_IE8)return t};r.prototype=Object.create(h["default"].prototype);r.prototype.constructor=r;r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(o in r.prototype.allowedEvents_)r.prototype["on"+o]=null;r.prototype.addTrack_=function(n){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}});n.addEventListener("modechange",l.bind(this,function(){this.trigger("change")}));this.tracks_.push(n);this.trigger({type:"addtrack",track:n})};r.prototype.removeTrack_=function(n){for(var i=undefined,t=0,r=this.length;t<r;t++)if(this[t]===n){i=this[t];this.tracks_.splice(t,1);break}i&&this.trigger({type:"removetrack",track:i})};r.prototype.getTrackById=function(n){for(var i,r=null,t=0,u=this.length;t<u;t++)if(i=this[t],i.id===n){r=i;break}return r};i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../utils/browser.js":128,"../utils/fn.js":133,"global/document":1}],126:[function(n,t,i){"use strict";function h(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function o(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function v(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function f(n){var t=undefined;return n.selectedOptions?t=n.selectedOptions[0]:n.options&&(t=n.options[n.options.selectedIndex]),t.value}function e(n,t){var i,r;if(t){for(i=undefined,i=0;i<n.options.length;i++)if(r=n.options[i],r.value===t)break;n.selectedIndex=i}}function tt(){return'<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---<\/option>\n                <option value="1">Opaque<\/option>\n                <option value="0.5">Semi-Opaque<\/option>\n              <\/select>\n            <\/span>\n        <\/div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window<\/label>\n            <select>\n              <option value="">---<\/option>\n              <option value="#FFF">White<\/option>\n              <option value="#000">Black<\/option>\n              <option value="#F00">Red<\/option>\n              <option value="#0F0">Green<\/option>\n              <option value="#00F">Blue<\/option>\n              <option value="#FF0">Yellow<\/option>\n              <option value="#F0F">Magenta<\/option>\n              <option value="#0FF">Cyan<\/option>\n            <\/select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---<\/option>\n                  <option value="1">Opaque<\/option>\n                  <option value="0.5">Semi-Transparent<\/option>\n                  <option value="0">Transparent<\/option>\n                <\/select>\n            <\/span>\n        <\/div> <!-- vjs-window-color -->\n      <\/div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size<\/label>\n          <select>\n            <option value="0.50">50%<\/option>\n            <option value="0.75">75%<\/option>\n            <option value="1.00" selected>100%<\/option>\n            <option value="1.25">125%<\/option>\n            <option value="1.50">150%<\/option>\n            <option value="1.75">175%<\/option>\n            <option value="2.00">200%<\/option>\n            <option value="3.00">300%<\/option>\n            <option value="4.00">400%<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style<\/label>\n          <select>\n            <option value="none">None<\/option>\n            <option value="raised">Raised<\/option>\n            <option value="depressed">Depressed<\/option>\n            <option value="uniform">Uniform<\/option>\n            <option value="dropshadow">Dropshadow<\/option>\n          <\/select>\n        <\/div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family<\/label>\n          <select>\n            <option value="">Default<\/option>\n            <option value="monospaceSerif">Monospace Serif<\/option>\n            <option value="proportionalSerif">Proportional Serif<\/option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif<\/option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif<\/option>\n            <option value="casual">Casual<\/option>\n            <option value="script">Script<\/option>\n            <option value="small-caps">Small Caps<\/option>\n          <\/select>\n        <\/div> <!-- vjs-font-family -->\n      <\/div>\n    <\/div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults<\/button>\n      <button class="vjs-done-button">Done<\/button>\n    <\/div>'}i.__esModule=!0;var y=n("../component"),c=o(y),p=n("../utils/events.js"),r=h(p),w=n("../utils/fn.js"),u=h(w),b=n("../utils/log.js"),k=o(b),d=n("safe-json-parse/tuple"),g=o(d),nt=n("global/window"),s=o(nt),l=function(n){function t(i,f){a(this,t);n.call(this,i,f);this.hide();f.persistTextTrackSettings===undefined&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings);r.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings();this.hide()}));r.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0;this.$(".vjs-bg-color > select").selectedIndex=0;this.$(".window-color > select").selectedIndex=0;this.$(".vjs-text-opacity > select").selectedIndex=0;this.$(".vjs-bg-opacity > select").selectedIndex=0;this.$(".vjs-window-opacity > select").selectedIndex=0;this.$(".vjs-edge-style select").selectedIndex=0;this.$(".vjs-font-family select").selectedIndex=0;this.$(".vjs-font-percent select").selectedIndex=2;this.updateDisplay()}));r.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay));r.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay));this.options_.persistTextTrackSettings&&this.restoreSettings()}return v(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:tt()})},t.prototype.getValues=function(){var i=f(this.$(".vjs-edge-style select")),r=f(this.$(".vjs-font-family select")),u=f(this.$(".vjs-fg-color > select")),e=f(this.$(".vjs-text-opacity > select")),o=f(this.$(".vjs-bg-color > select")),h=f(this.$(".vjs-bg-opacity > select")),c=f(this.$(".window-color > select")),l=f(this.$(".vjs-window-opacity > select")),a=s["default"].parseFloat(f(this.$(".vjs-font-percent > select"))),n={backgroundOpacity:h,textOpacity:e,windowOpacity:l,edgeStyle:i,fontFamily:r,color:u,backgroundColor:o,windowColor:c,fontPercent:a};for(var t in n)(n[t]===""||n[t]==="none"||t==="fontPercent"&&n[t]===1)&&delete n[t];return n},t.prototype.setValues=function(n){e(this.$(".vjs-edge-style select"),n.edgeStyle);e(this.$(".vjs-font-family select"),n.fontFamily);e(this.$(".vjs-fg-color > select"),n.color);e(this.$(".vjs-text-opacity > select"),n.textOpacity);e(this.$(".vjs-bg-color > select"),n.backgroundColor);e(this.$(".vjs-bg-opacity > select"),n.backgroundOpacity);e(this.$(".window-color > select"),n.windowColor);e(this.$(".vjs-window-opacity > select"),n.windowOpacity);var t=n.fontPercent;t&&(t=t.toFixed(2));e(this.$(".vjs-font-percent > select"),t)},t.prototype.restoreSettings=function(){var n=g["default"](s["default"].localStorage.getItem("vjs-text-track-settings")),t=n[0],i=n[1];t&&k["default"].error(t);i&&this.setValues(i)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var n=this.getValues();try{Object.getOwnPropertyNames(n).length>0?s["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(n)):s["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){}}},t.prototype.updateDisplay=function(){var n=this.player_.getChild("textTrackDisplay");n&&n.updateDisplay()},t}(c["default"]);c["default"].registerComponent("TextTrackSettings",l);i["default"]=l;t.exports=i["default"]},{"../component":66,"../utils/events.js":132,"../utils/fn.js":133,"../utils/log.js":136,"global/window":2,"safe-json-parse/tuple":53}],127:[function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var v=n("./text-track-cue-list"),s=u(v),y=n("../utils/fn.js"),h=e(y),p=n("../utils/guid.js"),w=e(p),b=n("../utils/browser.js"),c=e(b),k=n("./text-track-enums"),o=e(k),d=n("../utils/log.js"),l=u(d),g=n("../event-target"),nt=u(g),tt=n("global/document"),it=u(tt),rt=n("global/window"),f=u(rt),ut=n("../utils/url.js"),ft=n("xhr"),et=u(ft),r=function r(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],n,f;if(!t.tech)throw new Error("A tech was not provided.");if(n=this,c.IS_IE8){n=it["default"].createElement("custom");for(f in r.prototype)f!=="constructor"&&(n[f]=r.prototype[f])}n.tech_=t.tech;var i=o.TextTrackMode[t.mode]||"disabled",e=o.TextTrackKind[t.kind]||"subtitles",v=t.label||"",y=t.language||t.srclang||"",p=t.id||"vjs_text_track_"+w.newGUID();(e==="metadata"||e==="chapters")&&(i="hidden");n.cues_=[];n.activeCues_=[];var b=new s["default"](n.cues_),l=new s["default"](n.activeCues_),u=!1,a=h.bind(n,function(){this.activeCues;u&&(this.trigger("cuechange"),u=!1)});if(i!=="disabled")n.tech_.on("timeupdate",a);return Object.defineProperty(n,"kind",{get:function(){return e},set:Function.prototype}),Object.defineProperty(n,"label",{get:function(){return v},set:Function.prototype}),Object.defineProperty(n,"language",{get:function(){return y},set:Function.prototype}),Object.defineProperty(n,"id",{get:function(){return p},set:Function.prototype}),Object.defineProperty(n,"mode",{get:function(){return i},set:function(n){if(o.TextTrackMode[n]){if(i=n,i==="showing")this.tech_.on("timeupdate",a);this.trigger("modechange")}}}),Object.defineProperty(n,"cues",{get:function(){return this.loaded_?b:null},set:Function.prototype}),Object.defineProperty(n,"activeCues",{get:function(){var r,i,f,n,t;if(!this.loaded_)return null;if(this.cues.length===0)return l;for(r=this.tech_.currentTime(),i=[],t=0,f=this.cues.length;t<f;t++)n=this.cues[t],n.startTime<=r&&n.endTime>=r?i.push(n):n.startTime===n.endTime&&n.startTime<=r&&n.startTime+.5>=r&&i.push(n);if(u=!1,i.length!==this.activeCues_.length)u=!0;else for(t=0;t<i.length;t++)st.call(this.activeCues_,i[t])===-1&&(u=!0);return this.activeCues_=i,l.setCues_(this.activeCues_),l},set:Function.prototype}),t.src?(n.src=t.src,ot(t.src,n)):n.loaded_=!0,c.IS_IE8?n:void 0};r.prototype=Object.create(nt["default"].prototype);r.prototype.constructor=r;r.prototype.allowedEvents_={cuechange:"cuechange"};r.prototype.addCue=function(n){var i=this.tech_.textTracks(),t;if(i)for(t=0;t<i.length;t++)i[t]!==this&&i[t].removeCue(n);this.cues_.push(n);this.cues.setCues_(this.cues_)};r.prototype.removeCue=function(n){for(var r,i=!1,t=0,u=this.cues_.length;t<u;t++)r=this.cues_[t],r===n&&(this.cues_.splice(t,1),i=!0);i&&this.cues.setCues_(this.cues_)};var a=function(n,t){var i=new f["default"].WebVTT.Parser(f["default"],f["default"].vttjs,f["default"].WebVTT.StringDecoder());i.oncue=function(n){t.addCue(n)};i.onparsingerror=function(n){l["default"].error(n)};i.onflush=function(){t.trigger({type:"loadeddata",target:t})};i.parse(n);i.flush()},ot=function(n,t){var i={uri:n},r=ut.isCrossOrigin(n);r&&(i.cors=r);et["default"](i,h.bind(this,function(n,i,r){if(n)return l["default"].error(n,i);t.loaded_=!0;typeof f["default"].WebVTT!="function"?f["default"].setTimeout(function(){a(r,t)},100):a(r,t)}))},st=function(n,t){var f,u,i,r;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1};i["default"]=r;t.exports=i["default"]},{"../event-target":98,"../utils/browser.js":128,"../utils/fn.js":133,"../utils/guid.js":135,"../utils/log.js":136,"../utils/url.js":141,"./text-track-cue-list":121,"./text-track-enums":123,"global/document":1,"global/window":2,xhr:55}],128:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}var o,s,v,y,f,e,p,w,b,k,d,g,nt;i.__esModule=!0;var tt=n("global/document"),c=h(tt),it=n("global/window"),u=h(it),r=u["default"].navigator.userAgent,l=/AppleWebKit\/([\d.]+)/i.exec(r),rt=l?parseFloat(l.pop()):null,a=/iPhone/i.test(r);i.IS_IPHONE=a;o=/iPad/i.test(r);i.IS_IPAD=o;s=/iPod/i.test(r);i.IS_IPOD=s;v=a||o||s;i.IS_IOS=v;y=function(){var n=r.match(/OS (\d+)_/i);if(n&&n[1])return n[1]}();i.IOS_VERSION=y;f=/Android/i.test(r);i.IS_ANDROID=f;e=function(){var n=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),t,i;return n?(t=n[1]&&parseFloat(n[1]),i=n[2]&&parseFloat(n[2]),t&&i?parseFloat(n[1]+"."+n[2]):t?t:null):null}();i.ANDROID_VERSION=e;p=f&&/webkit/i.test(r)&&e<2.3;i.IS_OLD_ANDROID=p;w=f&&e<5&&rt<537;i.IS_NATIVE_ANDROID=w;b=/Firefox/i.test(r);i.IS_FIREFOX=b;k=/Chrome/i.test(r);i.IS_CHROME=k;d=/MSIE\s8\.0/.test(r);i.IS_IE8=d;g=!!("ontouchstart"in u["default"]||u["default"].DocumentTouch&&c["default"]instanceof u["default"].DocumentTouch);i.TOUCH_ENABLED=g;nt="backgroundSize"in c["default"].createElement("video").style;i.BACKGROUND_SIZE_SUPPORTED=nt},{"global/document":1,"global/window":2}],129:[function(n,t,i){"use strict";function u(n,t){var f=0,e,u,i;if(!t)return 0;for(n&&n.length||(n=r.createTimeRange(0,0)),i=0;i<n.length;i++)e=n.start(i),u=n.end(i),u>t&&(u=t),f+=u-e;return f/t}i.__esModule=!0;i.bufferedPercent=u;var r=n("./time-ranges.js")},{"./time-ranges.js":139}],130:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}i.__esModule=!0;var f=n("./log.js"),e=u(f),r={get:function(n,t){return n[t]},set:function(n,t,i){return n[t]=i,!0}};i["default"]=function(n){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t;return typeof Proxy=="function"&&(t=function(){var t={};return Object.keys(i).forEach(function(n){r.hasOwnProperty(n)&&(t[n]=function(){return e["default"].warn(i[n]),r[n].apply(this,arguments)})}),{v:new Proxy(n,t)}}(),typeof t=="object")?t.v:n};t.exports=i["default"]},{"./log.js":136}],131:[function(n,t,i){"use strict";function it(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function e(n){return n&&n.__esModule?n:{"default":n}}function rt(n,t){return n.raw=t,n}function l(n){return typeof n=="string"&&/\S/.test(n)}function a(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters");}function at(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function v(n){return function(t,i){return l(t)?(l(i)&&(i=r["default"].querySelector(i)),(s(i)?i:r["default"])[n](t)):r["default"][n](null)}}function vt(n){return n.indexOf("#")===0&&(n=n.slice(1)),r["default"].getElementById(n)}function yt(){var u=arguments.length<=0||arguments[0]===undefined?"div":arguments[0],i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],t=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],n=r["default"].createElement(u);return Object.getOwnPropertyNames(i).forEach(function(t){var r=i[t];t.indexOf("aria-")!==-1||t==="role"||t==="type"?(ht["default"].warn(lt["default"](h,t,r)),n.setAttribute(t,r)):n[t]=r}),Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];n.setAttribute(i,t[i])}),n}function pt(n,t){typeof n.textContent=="undefined"?n.innerText=t:n.textContent=t}function wt(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function bt(n){var t=n[u];return t||(t=n[u]=ot.newGUID()),f[t]||(f[t]={}),f[t]}function kt(n){var t=n[u];return t?!!Object.getOwnPropertyNames(f[t]).length:!1}function dt(n){var t=n[u];if(t){delete f[t];try{delete n[u]}catch(i){n.removeAttribute?n.removeAttribute(u):n[u]=null}}}function o(n,t){return n.classList?n.classList.contains(t):(a(t),at(t).test(n.className))}function y(n,t){return n.classList?n.classList.add(t):o(n,t)||(n.className=(n.className+" "+t).trim()),n}function p(n,t){return n.classList?n.classList.remove(t):(a(t),n.className=n.className.split(/\s+/).filter(function(n){return n!==t}).join(" ")),n}function gt(n,t,i){var r=o(n,t);if(typeof i=="function"&&(i=i(n,t)),typeof i!="boolean"&&(i=!r),i!==r)return i?y(n,t):p(n,t),n}function ni(n,t){Object.getOwnPropertyNames(t).forEach(function(i){var r=t[i];r===null||typeof r=="undefined"||r===!1?n.removeAttribute(i):n.setAttribute(i,r===!0?"":r)})}function ti(n){var f,e,i,r,u,t;if(f={},e=",autoplay,controls,loop,muted,default,",n&&n.attributes&&n.attributes.length>0)for(i=n.attributes,t=i.length-1;t>=0;t--)r=i[t].name,u=i[t].value,(typeof n[r]=="boolean"||e.indexOf(","+r+",")!==-1)&&(u=u!==null?!0:!1),f[r]=u;return f}function ii(){r["default"].body.focus();r["default"].onselectstart=function(){return!1}}function ri(){r["default"].onselectstart=function(){return!0}}function w(n){var t=undefined;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var u=r["default"].documentElement,i=r["default"].body,f=u.clientLeft||i.clientLeft||0,e=c["default"].pageXOffset||i.scrollLeft,o=t.left+e-f,s=u.clientTop||i.clientTop||0,h=c["default"].pageYOffset||i.scrollTop,l=t.top+h-s;return{left:Math.round(o),top:Math.round(l)}}function ui(n,t){var i={},r=w(n),o=n.offsetWidth,u=n.offsetHeight,s=r.top,h=r.left,f=t.pageY,e=t.pageX;return t.changedTouches&&(e=t.changedTouches[0].pageX,f=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(s-f+u)/u)),i.x=Math.max(0,Math.min(1,(e-h)/o)),i}function s(n){return!!n&&typeof n=="object"&&n.nodeType===1}function b(n){return!!n&&typeof n=="object"&&n.nodeType===3}function k(n){while(n.firstChild)n.removeChild(n.firstChild);return n}function d(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).map(function(n){return(typeof n=="function"&&(n=n()),s(n)||b(n))?n:typeof n=="string"&&/\S/.test(n)?r["default"].createTextNode(n):void 0}).filter(function(n){return n})}function g(n,t){return d(t).forEach(function(t){return n.appendChild(t)}),n}function fi(n,t){return g(k(n),t)}var h,f,u,nt,tt;i.__esModule=!0;i.getEl=vt;i.createEl=yt;i.textContent=pt;i.insertElFirst=wt;i.getElData=bt;i.hasElData=kt;i.removeElData=dt;i.hasElClass=o;i.addElClass=y;i.removeElClass=p;i.toggleElClass=gt;i.setElAttributes=ni;i.getElAttributes=ti;i.blockTextSelection=ii;i.unblockTextSelection=ri;i.findElPosition=w;i.getPointerPosition=ui;i.isEl=s;i.isTextNode=b;i.emptyEl=k;i.normalizeContent=d;i.appendContent=g;i.insertContent=fi;h=rt(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]);var ut=n("global/document"),r=e(ut),ft=n("global/window"),c=e(ft),et=n("./guid.js"),ot=it(et),st=n("./log.js"),ht=e(st),ct=n("tsml"),lt=e(ct);f={};u="vdata"+(new Date).getTime();nt=v("querySelector");i.$=nt;tt=v("querySelectorAll");i.$$=tt},{"./guid.js":135,"./log.js":136,"global/document":1,"global/window":2,tsml:54}],132:[function(n,t,i){"use strict";function h(n){return n&&n.__esModule?n:{"default":n}}function c(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n,t,i){if(Array.isArray(t))return s(f,n,t,i);var u=r.getElData(n);u.handlers||(u.handlers={});u.handlers[t]||(u.handlers[t]=[]);i.guid||(i.guid=l.newGUID());u.handlers[t].push(i);u.dispatcher||(u.disabled=!1,u.dispatcher=function(t,i){var f,e,r,s;if(!u.disabled&&(t=o(t),f=u.handlers[t.type],f))for(e=f.slice(0),r=0,s=e.length;r<s;r++)if(t.isImmediatePropagationStopped())break;else e[r].call(n,t,i)});u.handlers[t].length===1&&(n.addEventListener?n.addEventListener(t,u.dispatcher,!1):n.attachEvent&&n.attachEvent("on"+t,u.dispatcher))}function e(n,t,i){var u,h,c,f,o;if(r.hasElData(n)&&(u=r.getElData(n),u.handlers)){if(Array.isArray(t))return s(e,n,t,i);if(h=function(t){u.handlers[t]=[];y(n,t)},!t){for(c in u.handlers)h(c);return}if(f=u.handlers[t],f){if(!i){h(t);return}if(i.guid)for(o=0;o<f.length;o++)f[o].guid===i.guid&&f.splice(o--,1);y(n,t)}}}function a(n,t,i){var e=r.hasElData(n)?r.getElData(n):{},u=n.parentNode||n.ownerDocument,f;return typeof t=="string"&&(t={type:t,target:n}),t=o(t),e.dispatcher&&e.dispatcher.call(n,t,i),u&&!t.isPropagationStopped()&&t.bubbles===!0?a.call(null,u,t,i):u||t.defaultPrevented||(f=r.getElData(t.target),t.target[t.type]&&(f.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),f.disabled=!1)),!t.defaultPrevented}function v(n,t,i){if(Array.isArray(t))return s(v,n,t,i);var r=function r(){e(n,t,r);i.apply(this,arguments)};r.guid=i.guid=i.guid||l.newGUID();f(n,t,r)}function o(n){function e(){return!0}function o(){return!1}var t,i,r,f;if(!n||!n.isPropagationStopped){t=n||k["default"].event;n={};for(i in t)i!=="layerX"&&i!=="layerY"&&i!=="keyLocation"&&i!=="webkitMovementX"&&i!=="webkitMovementY"&&(i==="returnValue"&&t.preventDefault||(n[i]=t[i]));n.target||(n.target=n.srcElement||u["default"]);n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement);n.preventDefault=function(){t.preventDefault&&t.preventDefault();n.returnValue=!1;t.returnValue=!1;n.defaultPrevented=!0};n.defaultPrevented=!1;n.stopPropagation=function(){t.stopPropagation&&t.stopPropagation();n.cancelBubble=!0;t.cancelBubble=!0;n.isPropagationStopped=e};n.isPropagationStopped=o;n.stopImmediatePropagation=function(){t.stopImmediatePropagation&&t.stopImmediatePropagation();n.isImmediatePropagationStopped=e;n.stopPropagation()};n.isImmediatePropagationStopped=o;n.clientX!=null&&(r=u["default"].documentElement,f=u["default"].body,n.pageX=n.clientX+(r&&r.scrollLeft||f&&f.scrollLeft||0)-(r&&r.clientLeft||f&&f.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||f&&f.scrollTop||0)-(r&&r.clientTop||f&&f.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=null&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n}function y(n,t){var i=r.getElData(n);i.handlers[t].length===0&&(delete i.handlers[t],n.removeEventListener?n.removeEventListener(t,i.dispatcher,!1):n.detachEvent&&n.detachEvent("on"+t,i.dispatcher));Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled);Object.getOwnPropertyNames(i).length===0&&r.removeElData(n)}function s(n,t,i,r){i.forEach(function(i){n(t,i,r)})}i.__esModule=!0;i.on=f;i.off=e;i.trigger=a;i.one=v;i.fixEvent=o;var p=n("./dom.js"),r=c(p),w=n("./guid.js"),l=c(w),b=n("global/window"),k=h(b),d=n("global/document"),u=h(d)},{"./dom.js":131,"./guid.js":135,"global/document":1,"global/window":2}],133:[function(n,t,i){"use strict";i.__esModule=!0;var r=n("./guid.js"),u=function(n,t,i){t.guid||(t.guid=r.newGUID());var u=function(){return t.apply(n,arguments)};return u.guid=i?i+"_"+t.guid:t.guid,u};i.bind=u},{"./guid.js":135}],134:[function(n,t,i){"use strict";function r(n){var t=arguments.length<=1||arguments[1]===undefined?n:arguments[1];return function(){n=n<0?0:n;var i=Math.floor(n%60),r=Math.floor(n/60%60),u=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||n===Infinity)&&(u=r=i="-"),u=u>0||e>0?u+":":"",r=((u||f>=10)&&r<10?"0"+r:r)+":",i=i<10?"0"+i:i,u+r+i}()}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],135:[function(n,t,i){"use strict";function u(){return r++}i.__esModule=!0;i.newGUID=u;var r=1},{}],136:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){var i=Array.prototype.slice.call(t),f=function(){},u=o["default"].console||{log:f,warn:f,error:f};n?i.unshift(n.toUpperCase()+":"):n="log";r.history.push(i);i.unshift("VIDEOJS:");u[n].apply?u[n].apply(u,i):u[n](i.join(" "))}i.__esModule=!0;var e=n("global/window"),o=f(e),r=function(){u(null,arguments)};r.history=[];r.error=function(){u("error",arguments)};r.warn=function(){u("warn",arguments)};i["default"]=r;t.exports=i["default"]},{"global/window":2}],137:[function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function f(n){return!!n&&typeof n=="object"&&n.toString()==="[object Object]"&&n.constructor===Object}function o(){var n=Array.prototype.slice.call(arguments);return n.unshift({}),n.push(e),u["default"].apply(null,n),n[0]}var r,u,e;i.__esModule=!0;i["default"]=o;r=n("lodash-compat/object/merge");u=s(r);e=function(n,t){return f(t)?f(n)?void 0:o(t):t};t.exports=i["default"]},{"lodash-compat/object/merge":40}],138:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var r;i.__esModule=!0;var f=n("global/document"),e=u(f),o=function(n){var t=e["default"].createElement("style");return t.className=n,t};i.createStyleElement=o;r=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t};i.setTextContent=r},{"global/document":1}],139:[function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){return Array.isArray(n)?r(n):n===undefined||t===undefined?r():r([[n,t]])}function r(n){return n===undefined||n.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:n.length,start:f.bind(null,"start",0,n),end:f.bind(null,"end",1,n)}}function f(n,t,i,r){return r===undefined&&(s["default"].warn("DEPRECATED: Function '"+n+"' on 'TimeRanges' called without an index argument."),r=0),h(n,r,i.length-1),i[r][t]}function h(n,t,i){if(t<0||t>i)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+i+").");}i.__esModule=!0;i.createTimeRanges=u;var o=n("./log.js"),s=e(o);i.createTimeRange=u},{"./log.js":136}],140:[function(n,t,i){"use strict";function r(n){return n.charAt(0).toUpperCase()+n.slice(1)}i.__esModule=!0;i["default"]=r;t.exports=i["default"]},{}],141:[function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var e,o,s;i.__esModule=!0;var h=n("global/document"),r=u(h),c=n("global/window"),l=u(c),f=function(n){var e=["protocol","hostname","port","pathname","search","hash","host"],u=r["default"].createElement("a"),o,i,t,f;for(u.href=n,o=u.host===""&&u.protocol!=="file:",i=undefined,o&&(i=r["default"].createElement("div"),i.innerHTML='<a href="'+n+'"><\/a>',u=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),r["default"].body.appendChild(i)),t={},f=0;f<e.length;f++)t[e[f]]=u[e[f]];return t.protocol==="http:"&&(t.host=t.host.replace(/:80$/,"")),t.protocol==="https:"&&(t.host=t.host.replace(/:443$/,"")),o&&r["default"].body.removeChild(i),t};i.parseUrl=f;e=function(n){if(!n.match(/^https?:\/\//)){var t=r["default"].createElement("div");t.innerHTML='<a href="'+n+'">x<\/a>';n=t.firstChild.href}return n};i.getAbsoluteURL=e;o=function(n){if(typeof n=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(n);if(t)return t.pop().toLowerCase()}return""};i.getFileExtension=o;s=function(n){var t=l["default"].location,i=f(n),r=i.protocol===":"?t.protocol:i.protocol;return r+i.host!==t.protocol+t.host};i.isCrossOrigin=s},{"global/document":1,"global/window":2}],142:[function(t,i,r){"use strict";function o(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t["default"]=n,t}function f(n){return n&&n.__esModule?n:{"default":n}}var u,h,p;r.__esModule=!0;var d=t("global/document"),l=f(d),g=t("./setup"),nt=o(g),tt=t("./utils/stylesheet.js"),w=o(tt),it=t("./component"),a=f(it),rt=t("./event-target"),ut=f(rt),ft=t("./utils/events.js"),c=o(ft),et=t("./player"),s=f(et),ot=t("./plugins.js"),st=f(ot),ht=t("../../src/js/utils/merge-options.js"),ct=f(ht),lt=t("./utils/fn.js"),at=o(lt),vt=t("./tracks/text-track.js"),yt=f(vt),pt=t("object.assign"),vi=f(pt),wt=t("./utils/time-ranges.js"),bt=t("./utils/format-time.js"),kt=f(bt),dt=t("./utils/log.js"),v=f(dt),gt=t("./utils/dom.js"),e=o(gt),ni=t("./utils/browser.js"),b=o(ni),ti=t("./utils/url.js"),k=o(ti),ii=t("./extend.js"),ri=f(ii),ui=t("lodash-compat/object/merge"),fi=f(ui),ei=t("./utils/create-deprecation-proxy.js"),oi=f(ei),si=t("xhr"),hi=f(si),ci=t("./tech/tech.js"),y=f(ci),li=t("./tech/html5.js"),yi=f(li),ai=t("./tech/flash.js"),pi=f(ai);typeof HTMLVideoElement=="undefined"&&(l["default"].createElement("video"),l["default"].createElement("audio"),l["default"].createElement("track"));u=function u(n,t,i){var r=undefined;if(typeof n=="string"){if(n.indexOf("#")===0&&(n=n.slice(1)),u.getPlayers()[n])return t&&v["default"].warn('Player "'+n+'" is already initialised. Options will not be applied.'),i&&u.getPlayers()[n].ready(i),u.getPlayers()[n];r=e.getEl(n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return r.player||s["default"].players[r.playerId]||new s["default"](r,t,i)};h=e.$(".vjs-styles-defaults");h||(h=w.createStyleElement("vjs-styles-defaults"),p=e.$("head"),p.insertBefore(h,p.firstChild),w.setTextContent(h,"\n    .video-js {\n      width: 300px;\n      height: 150px;\n    }\n\n    .vjs-fluid {\n      padding-top: 56.25%\n    }\n  "));nt.autoSetupTimeout(1,u);u.VERSION="5.6.0";u.options=s["default"].prototype.options_;u.getPlayers=function(){return s["default"].players};u.players=oi["default"](s["default"].players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"});u.getComponent=a["default"].getComponent;u.registerComponent=function(n,t){y["default"].isTech(t)&&v["default"].warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)");a["default"].registerComponent.call(a["default"],n,t)};u.getTech=y["default"].getTech;u.registerTech=y["default"].registerTech;u.browser=b;u.TOUCH_ENABLED=b.TOUCH_ENABLED;u.extend=ri["default"];u.mergeOptions=ct["default"];u.bind=at.bind;u.plugin=st["default"];u.addLanguage=function(n,t){var i;return n=(""+n).toLowerCase(),fi["default"](u.options.languages,(i={},i[n]=t,i))[n]};u.log=v["default"];u.createTimeRange=u.createTimeRanges=wt.createTimeRanges;u.formatTime=kt["default"];u.parseUrl=k.parseUrl;u.isCrossOrigin=k.isCrossOrigin;u.EventTarget=ut["default"];u.on=c.on;u.one=c.one;u.off=c.off;u.trigger=c.trigger;u.xhr=hi["default"];u.TextTrack=yt["default"];u.isEl=e.isEl;u.isTextNode=e.isTextNode;u.createEl=e.createEl;u.hasClass=e.hasElClass;u.addClass=e.addElClass;u.removeClass=e.removeElClass;u.toggleClass=e.toggleElClass;u.setAttributes=e.setElAttributes;u.getAttributes=e.getElAttributes;u.emptyEl=e.emptyEl;u.appendContent=e.appendContent;u.insertContent=e.insertContent;typeof n=="function"&&n.amd?n("videojs",[],function(){return u}):typeof r=="object"&&typeof i=="object"&&(i.exports=u);r["default"]=u;i.exports=r["default"]},{"../../src/js/utils/merge-options.js":137,"./component":66,"./event-target":98,"./extend.js":99,"./player":107,"./plugins.js":108,"./setup":112,"./tech/flash.js":115,"./tech/html5.js":116,"./tech/tech.js":118,"./tracks/text-track.js":127,"./utils/browser.js":128,"./utils/create-deprecation-proxy.js":130,"./utils/dom.js":131,"./utils/events.js":132,"./utils/fn.js":133,"./utils/format-time.js":134,"./utils/log.js":136,"./utils/stylesheet.js":138,"./utils/time-ranges.js":139,"./utils/url.js":141,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:55}]},{},[142])(142)}),function(n){var t=n.vttjs={},i=t.VTTCue,r=t.VTTRegion,u=n.VTTCue,f=n.VTTRegion;t.shim=function(){t.VTTCue=i;t.VTTRegion=r};t.restore=function(){t.VTTCue=u;t.VTTRegion=f}}(this),function(n,t){function s(n){if(typeof n!="string")return!1;var t=e[n.toLowerCase()];return t?n.toLowerCase():!1}function r(n){if(typeof n!="string")return!1;var t=o[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){for(var t=1,i,r;t<arguments.length;t++){i=arguments[t];for(r in i)n[r]=i[r]}return n}function u(n,t,u){var e=this,h=/MSIE\s8\.0/.test(navigator.userAgent),o={};h?e=document.createElement("custom"):o.enumerable=!0;e.hasBeenReset=!1;var c="",l=!1,a=n,v=t,y=u,p=null,w="",b=!0,k="auto",d="start",g=50,nt="middle",tt=50,it="middle";return Object.defineProperty(e,"id",i({},o,{get:function(){return c},set:function(n){c=""+n}})),Object.defineProperty(e,"pauseOnExit",i({},o,{get:function(){return l},set:function(n){l=!!n}})),Object.defineProperty(e,"startTime",i({},o,{get:function(){return a},set:function(n){if(typeof n!="number")throw new TypeError("Start time must be set to a number.");a=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"endTime",i({},o,{get:function(){return v},set:function(n){if(typeof n!="number")throw new TypeError("End time must be set to a number.");v=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"text",i({},o,{get:function(){return y},set:function(n){y=""+n;this.hasBeenReset=!0}})),Object.defineProperty(e,"region",i({},o,{get:function(){return p},set:function(n){p=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"vertical",i({},o,{get:function(){return w},set:function(n){var t=s(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");w=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"snapToLines",i({},o,{get:function(){return b},set:function(n){b=!!n;this.hasBeenReset=!0}})),Object.defineProperty(e,"line",i({},o,{get:function(){return k},set:function(n){if(typeof n!="number"&&n!==f)throw new SyntaxError("An invalid number or illegal string was specified.");k=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"lineAlign",i({},o,{get:function(){return d},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");d=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"position",i({},o,{get:function(){return g},set:function(n){if(n<0||n>100)throw new Error("Position must be between 0 and 100.");g=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"positionAlign",i({},o,{get:function(){return nt},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");nt=t;this.hasBeenReset=!0}})),Object.defineProperty(e,"size",i({},o,{get:function(){return tt},set:function(n){if(n<0||n>100)throw new Error("Size must be between 0 and 100.");tt=n;this.hasBeenReset=!0}})),Object.defineProperty(e,"align",i({},o,{get:function(){return it},set:function(n){var t=r(n);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");it=t;this.hasBeenReset=!0}})),e.displayState=undefined,h?e:void 0}var f="auto",e={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0};u.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};n.VTTCue=n.VTTCue||u;t.VTTCue=u}(this,this.vttjs||{}),function(n,t){function f(n){if(typeof n!="string")return!1;var t=u[n.toLowerCase()];return t?n.toLowerCase():!1}function i(n){return typeof n=="number"&&n>=0&&n<=100}function r(){var n=100,t=3,r=0,u=100,e=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");n=t}},lines:{enumerable:!0,get:function(){return t},set:function(n){if(typeof n!="number")throw new TypeError("Lines must be set to a number.");t=n}},regionAnchorY:{enumerable:!0,get:function(){return u},set:function(n){if(!i(n))throw new Error("RegionAnchorX must be between 0 and 100.");u=n}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(n){if(!i(n))throw new Error("RegionAnchorY must be between 0 and 100.");r=n}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(n){if(!i(n))throw new Error("ViewportAnchorY must be between 0 and 100.");o=n}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(n){if(!i(n))throw new Error("ViewportAnchorX must be between 0 and 100.");e=n}},scroll:{enumerable:!0,get:function(){return s},set:function(n){var t=f(n);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");s=t}}})}var u={"":!0,up:!0};n.VTTRegion=n.VTTRegion||r;t.VTTRegion=r}(this,this.vttjs||{}),function(n){function i(n,t){this.name="ParsingError";this.code=n.code;this.message=t||n.message}function c(n){function i(n,t,i,r){return(n|0)*3600+(t|0)*60+(i|0)+(r|0)/1e3}var t=n.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?i(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?i(t[1],t[2],0,t[4]):i(0,t[1],t[2],t[4]):null}function u(){this.values=o(null)}function s(n,t,i,r){var f=r?n.split(r):[n],e,u,o,s;for(e in f)typeof f[e]=="string"&&(u=f[e].split(i),u.length===2)&&(o=u[0],s=u[1],t(o,s))}function v(n,t,r){function o(){var t=c(n);if(t===null)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+e);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function h(n,t){var i=new u;s(n,function(n,t){var f,u,e;switch(n){case"region":for(f=r.length-1;f>=0;f--)if(r[f].id===t){i.set(n,r[f].region);break}break;case"vertical":i.alt(n,t,["rl","lr"]);break;case"line":u=t.split(",");e=u[0];i.integer(n,e);i.percent(n,e)?i.set("snapToLines",!1):null;i.alt(n,e,["auto"]);u.length===2&&i.alt("lineAlign",u[1],["start","middle","end"]);break;case"position":u=t.split(",");i.percent(n,u[0]);u.length===2&&i.alt("positionAlign",u[1],["start","middle","end"]);break;case"size":i.percent(n,t);break;case"align":i.alt(n,t,["start","middle","end","left","right"])}},/:/,/\s/);t.region=i.get("region",null);t.vertical=i.get("vertical","");t.line=i.get("line","auto");t.lineAlign=i.get("lineAlign","start");t.snapToLines=i.get("snapToLines",!0);t.size=i.get("size",100);t.align=i.get("align","middle");t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align);t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function f(){n=n.replace(/^\s+/,"")}var e=n;if(f(),t.startTime=o(),f(),n.substr(0,3)!=="-->")throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+e);n=n.substr(3);f();t.endTime=o();f();h(n,t)}function a(n,t){function h(){function i(n){return t=t.substr(n.length),n}if(!t)return null;var n=t.match(/^([^<]*)(<[^>]+>?)?/);return i(n[1]?n[1]:n[2])}function a(n){return y[n]}function v(n){while(i=n.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))n=n.replace(i[0],a);return n}function b(n,t){return!l[t.localName]||l[t.localName]===n.localName}function k(t,i){var u=p[t],r,f;return u?(r=n.document.createElement(u),r.localName=u,f=w[t],f&&i&&(r[f]=i.trim()),r):null}for(var s=n.document.createElement("div"),f=s,r,e=[],o,u,i;(r=h())!==null;){if(r[0]==="<"){if(r[1]==="/"){e.length&&e[e.length-1]===r.substr(2).replace(">","")&&(e.pop(),f=f.parentNode);continue}if(o=c(r.substr(1,r.length-2)),o){u=n.document.createProcessingInstruction("timestamp",o);f.appendChild(u);continue}if(i=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/),!i)continue;if(u=k(i[1],i[3]),!u)continue;if(!b(f,u))continue;i[2]&&(u.className=i[2].substr(1).replace("."," "));e.push(i[1]);f.appendChild(u);f=u;continue}f.appendChild(n.document.createTextNode(v(r)))}return s}function b(n){function o(n,t){for(var i=t.childNodes.length-1;i>=0;i--)n.push(t.childNodes[i])}function u(n){var t,i,r;return!n||!n.length?null:(t=n.pop(),i=t.textContent||t.innerText,i)?(r=i.match(/^.*(\n|\r)/),r)?(n.length=0,r[0]):i:t.tagName==="ruby"?u(n):t.childNodes?(o(n,t),u(n)):void 0}var f=[],r="",e,t,i;if(!n||!n.childNodes)return"ltr";for(o(f,n);r=u(f);)for(t=0;t<r.length;t++)for(e=r.charCodeAt(t),i=0;i<h.length;i++)if(h[i]===e)return"rtl";return"ltr"}function k(n){var t;if(typeof n.line=="number"&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;var r=n.track,i=r.textTrackList,u=0;for(t=0;t<i.length&&i[t]!==r;t++)i[t].mode==="showing"&&u++;return++u*-1}function f(){}function e(n,t,i){var e=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",s="rgba(0, 0, 0, 0.8)",r,u;e&&(o="rgb(255, 255, 255)",s="rgb(0, 0, 0)");f.call(this);this.cue=t;this.cueDiv=a(n,t.text);r={color:o,backgroundColor:s,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};e||(r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",r.unicodeBidi="plaintext");this.applyStyles(r,this.cueDiv);this.div=n.document.createElement("div");r={textAlign:t.align==="middle"?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"};e||(r.direction=b(this.cueDiv),r.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext");this.applyStyles(r);this.div.appendChild(this.cueDiv);u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")});this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}function t(n){var e=/MSIE\s8\.0/.test(navigator.userAgent),i,r,f,u,t;n.div&&(r=n.div.offsetHeight,f=n.div.offsetWidth,u=n.div.offsetTop,t=(t=n.div.childNodes)&&(t=t[0])&&t.getClientRects&&t.getClientRects(),n=n.div.getBoundingClientRect(),i=t?Math.max(t[0]&&t[0].height||0,n.height/t.length):0);this.left=n.left;this.right=n.right;this.top=n.top||u;this.height=n.height||r;this.bottom=n.bottom||u+(n.height||r);this.width=n.width||f;this.lineHeight=i!==undefined?i:n.lineHeight;e&&!this.lineHeight&&(this.lineHeight=13)}function d(n,i,r,u){function p(n,i){for(var e,o,s=new t(n),h=1,f=0;f<i.length;f++){while(n.overlapsOppositeAxis(r,i[f])||n.within(r)&&n.overlapsAny(u))n.move(i[f]);if(n.within(r))return n;e=n.intersectPercentage(r);h>e&&(o=new t(n),h=e);n=new t(s)}return o||s}var s=new t(i),o=i.cue,e=k(o),f=[],c,a,y;if(o.snapToLines){switch(o.vertical){case"":f=["+y","-y"];c="height";break;case"rl":f=["+x","-x"];c="width";break;case"lr":f=["-x","+x"];c="width"}var l=s.lineHeight,h=l*Math.round(e),v=r[c]+l,w=f[0];Math.abs(h)>v&&(h=(h<0?-1:1)*Math.ceil(v/l)*l);e<0&&(h+=o.vertical===""?r.height:r.width,f=f.reverse());s.move(w,h)}else{a=s.lineHeight/r.height*100;switch(o.lineAlign){case"middle":e-=a/2;break;case"end":e-=a}switch(o.vertical){case"":i.applyStyles({top:i.formatStyle(e,"%")});break;case"rl":i.applyStyles({left:i.formatStyle(e,"%")});break;case"lr":i.applyStyles({right:i.formatStyle(e,"%")})}f=["+y","-x","+x","-y"];s=new t(i)}y=p(s,f);i.move(y.toCSSCompatValues(r))}function r(){}var o=Object.create||function(){function n(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}}(),h;i.prototype=o(Error.prototype);i.prototype.constructor=i;i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};u.prototype={set:function(n,t){this.get(n)||t===""||(this.values[n]=t)},get:function(n,t,i){return i?this.has(n)?this.values[n]:t[i]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){var i;return(i=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(n,t),!0):!1}};var y={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},w={v:"title",lang:"lang"},l={rt:"ruby"};h=[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];f.prototype.applyStyles=function(n,t){t=t||this.div;for(var i in n)n.hasOwnProperty(i)&&(t.style[i]=n[i])};f.prototype.formatStyle=function(n,t){return n===0?0:n+t};e.prototype=o(f.prototype);e.prototype.constructor=e;t.prototype.move=function(n,t){t=t!==undefined?t:this.lineHeight;switch(n){case"+x":this.left+=t;this.right+=t;break;case"-x":this.left-=t;this.right-=t;break;case"+y":this.top+=t;this.bottom+=t;break;case"-y":this.top-=t;this.bottom-=t}};t.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top};t.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1};t.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right};t.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}};t.prototype.intersectPercentage=function(n){var t=Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left)),i=Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top)),r=t*i;return r/(this.height*this.width)};t.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}};t.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,r=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,i=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||i,height:n.height||t,bottom:n.bottom||i+(n.height||t),width:n.width||r}};r.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}};r.convertCueToDOMTree=function(n,t){return!n||!t?null:a(n,t)};var g=.05,nt="sans-serif",tt="1.5%";r.processCues=function(n,i,r){function h(n){for(var t=0;t<n.length;t++)if(n[t].hasBeenReset||!n[t].displayState)return!0;return!1}var u,f;if(!n||!i||!r)return null;while(r.firstChild)r.removeChild(r.firstChild);if(u=n.document.createElement("div"),u.style.position="absolute",u.style.left="0",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.margin=tt,r.appendChild(u),!h(i)){for(f=0;f<i.length;f++)u.appendChild(i[f].displayState);return}var o=[],s=t.getSimpleBoxPosition(u),c=Math.round(s.height*g*100)/100,l={font:c+"px "+nt};(function(){for(var r,f,h=0;h<i.length;h++)f=i[h],r=new e(n,f,l),u.appendChild(r.div),d(n,r,s,o),f.displayState=r.div,o.push(t.getSimpleBoxPosition(r))})()};r.Parser=function(n,t,i){i||(i=t,t={});t||(t={});this.window=n;this.vttjs=t;this.state="INITIAL";this.buffer="";this.decoder=i||new TextDecoder("utf8");this.regionList=[]};r.Parser.prototype={reportOrThrowError:function(n){if(n instanceof i)this.onparsingerror&&this.onparsingerror(n);else throw n;},parse:function(n){function o(){for(var i=t.buffer,n=0,r;n<i.length&&i[n]!=="\r"&&i[n]!=="\n";)++n;return r=i.substr(0,n),i[n]==="\r"&&++n,i[n]==="\n"&&++n,t.buffer=i.substr(n),r}function l(n){var i=new u,r;s(n,function(n,t){var f,r;switch(n){case"id":i.set(n,t);break;case"width":i.percent(n,t);break;case"lines":i.integer(n,t);break;case"regionanchor":case"viewportanchor":if(f=t.split(","),f.length!==2)break;if(r=new u,r.percent("x",f[0]),r.percent("y",f[1]),!r.has("x")||!r.has("y"))break;i.set(n+"X",r.get("x"));i.set(n+"Y",r.get("y"));break;case"scroll":i.alt(n,t,["up"])}},/=/,/\s/);i.has("id")&&(r=new(t.vttjs.VTTRegion||t.window.VTTRegion),r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r}))}function a(n){s(n,function(n,t){switch(n){case"Region":l(t)}},/:/)}var t=this,r,e,f,c;n&&(t.buffer+=t.decoder.decode(n,{stream:!0}));try{if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;if(r=o(),e=r.match(/^WEBVTT([ \t].*)?$/),!e||!e[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;f?f=!1:r=o();switch(t.state){case"HEADER":/:/.test(r)?a(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",r.indexOf("-->")===-1){t.cue.id=r;continue}case"CUE":try{v(r,t.cue,t.regionList)}catch(h){t.reportOrThrowError(h);t.cue=null;t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":if(c=r.indexOf("-->")!==-1,!r||c&&(f=!0)){t.oncue&&t.oncue(t.cue);t.cue=null;t.state="ID";continue}t.cue.text&&(t.cue.text+="\n");t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID");continue}}}catch(h){if(t.reportOrThrowError(h),t.state==="CUETEXT"&&t.cue&&t.oncue)t.oncue(t.cue);t.cue=null;t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+="\n\n",n.parse()),n.state==="INITIAL")throw new i(i.Errors.BadSignature);}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};n.WebVTT=r}(this,this.vttjs||{}),function(){"use strict";function f(){var t=".vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }.vjs-vimeo { height:100%; width:100% }.vimeoplayer { width:100%; height:180%; position:absolute; left:0; top:-40%; }",i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css";n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t));i.appendChild(n)}var t={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},r=videojs.getComponent("Tech"),n=videojs.extend(r,{constructor:function(n,t){r.call(this,n,t);n.poster!=""&&this.setPoster(n.poster);this.setSrc(this.options_.source.src,!0);setTimeout(function(){this.el_.parentNode.className+=" vjs-vimeo"}.bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","")},createEl:function(){var t,r;return this.vimeo={},this.vimeoInfo={},this.baseUrl="https://player.vimeo.com/video/",this.baseApiUrl="https://www.vimeo.com/api/v2/video/",this.videoId=n.parseUrl(this.options_.source.src).videoId,this.iframe=document.createElement("iframe"),this.iframe.setAttribute("id",this.options_.techId),this.iframe.setAttribute("title","Vimeo Video Player"),this.iframe.setAttribute("class","vimeoplayer"),this.iframe.setAttribute("src",this.baseUrl+this.videoId+"?api=1&player_id="+this.options_.techId),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginWidth","0"),this.iframe.setAttribute("marginHeight","0"),this.iframe.setAttribute("webkitAllowFullScreen","0"),this.iframe.setAttribute("mozallowfullscreen","0"),this.iframe.setAttribute("allowFullScreen","0"),t=document.createElement("div"),t.setAttribute("style","margin:0 auto;padding-bottom:56.25%;width:100%;height:0;position:relative;overflow:hidden;"),t.setAttribute("class","vimeoFrame"),t.appendChild(this.iframe),i||this.options_.ytControls||(r=document.createElement("div"),r.setAttribute("class","vjs-iframe-blocker"),r.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),r.onclick=function(){this.onPause()}.bind(this),t.appendChild(r)),n.isApiReady?this.initPlayer():n.apiReadyQueue.push(this),this.options_.poster==""&&$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(n){return function(t){n.setPoster(t[0].thumbnail_large)}}(this)),t},initPlayer:function(){var i=this,r=n.parseUrl(this.options_.source.src).videoId;this.vimeo&&this.vimeo.api&&(this.vimeo.api("unload"),delete this.vimeo);i.vimeo=$f(i.iframe);i.vimeoInfo={state:t.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:i.baseUrl+i.videoId,error:null};this.vimeo.addEvent("ready",function(){i.onReady();i.vimeo.addEvent("loadProgress",function(n){i.onLoadProgress(n)});i.vimeo.addEvent("playProgress",function(n){i.onPlayProgress(n)});i.vimeo.addEvent("play",function(){i.onPlay()});i.vimeo.addEvent("pause",function(){i.onPause()});i.vimeo.addEvent("finish",function(){i.onFinish()});i.vimeo.addEvent("seek",function(n){i.onSeek(n)})})},onReady:function(){this.isReady_=!0;this.triggerReady();this.trigger("loadedmetadata");this.startMuted&&(this.setMuted(!0),this.startMuted=!1)},onLoadProgress:function(n){var t=!this.vimeoInfo.duration;this.vimeoInfo.duration=n.duration;this.vimeoInfo.buffered=n.percent;this.trigger("progress");t&&this.trigger("durationchange")},onPlayProgress:function(n){this.vimeoInfo.time=n.seconds;this.trigger("timeupdate")},onPlay:function(){this.vimeoInfo.state=t.PLAYING;this.trigger("play")},onPause:function(){this.vimeoInfo.state=t.PAUSED;this.trigger("pause")},onFinish:function(){this.vimeoInfo.state=t.ENDED;this.trigger("ended")},onSeek:function(n){this.trigger("seeking");this.vimeoInfo.time=n.seconds;this.trigger("timeupdate");this.trigger("seeked")},onError:function(n){this.error=n;this.trigger("error")},error:function(){switch(this.errorNumber){case 2:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 100:return{code:"Unable to find the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"Vimeo unknown error ("+this.errorNumber+")"}},src:function(){return this.source},poster:function(){return this.poster_},setPoster:function(n){this.poster_=n},setSrc:function(t){t&&t.src&&(this.source=t,this.url=n.parseUrl(t.src),this.options_.poster||this.url.videoId&&($.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(n){return function(t){n.poster_=t[0].thumbnail_small}}(this)),this.checkHighResPoster()),this.options_.autoplay&&!i&&(this.isReady_?this.play():this.playOnReady=!0))},supportsFullScreen:function(){return!0},load:function(){},play:function(){this.vimeo.api("play")},pause:function(){this.vimeo.api("pause")},paused:function(){return this.vimeoInfo.state!==t.PLAYING&&this.vimeoInfo.state!==t.BUFFERING},currentTime:function(){return this.vimeoInfo.time||0},setCurrentTime:function(n){this.vimeo.api("seekTo",n);this.player_.trigger("timeupdate")},duration:function(){return this.vimeoInfo.duration||0},buffered:function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)},volume:function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},setVolume:function(n){this.vimeo.api("setvolume",n);this.vimeoInfo.volume=n;this.player_.trigger("volumechange")},currentSrc:function(){return this.el_.src},muted:function(){return this.vimeoInfo.muted||!1},setMuted:function(n){n?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume);this.vimeoInfo.muted=n;this.player_.trigger("volumechange")},checkHighResPoster:function(){var t="",n;try{$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(n){return function(t){n=t[0].thumbnail_large}}(t));n=new Image;n.onload=function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120){this.onerror();return}}else if(this.height<=90||this.width<=120){this.onerror();return}this.poster_=t;this.trigger("posterchange")}.bind(this);n.onerror=function(){};n.src=t}catch(i){}}}),i,u,e;n.isSupported=function(){return!0};n.canPlaySource=function(n){return n.type==="video/vimeo"};i=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);n.parseUrl=function(n){var t={videoId:null},i=n.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return i&&(t.videoId=i[5]),t};n.apiReadyQueue=[];u=function(){n.isApiReady=!0;f();for(var t=0;t<n.apiReadyQueue.length;++t)n.apiReadyQueue[t].initPlayer()};u();videojs.registerTech("Vimeo",n);e=function(){function t(n){return new t.fn.init(n)}function u(n,t,i){if(!i.contentWindow.postMessage)return!1;var u=JSON.stringify({method:n,value:t});i.contentWindow.postMessage(u,r)}function f(n){var t,e;try{t=JSON.parse(n.data);e=t.event||t.method}catch(l){}if(e!="ready"||i||(i=!0),!/^https?:\/\/player.vimeo.com/.test(n.origin))return!1;r==="*"&&(r=n.origin);var h=t.value,c=t.data,f=f===""?null:t.player_id,o=s(e,f),u=[];return o?(h!==undefined&&u.push(h),c&&u.push(c),f&&u.push(f),u.length>0?o.apply(null,u):o.call()):!1}function e(t,i,r){r?(n[r]||(n[r]={}),n[r][t]=i):n[t]=i}function s(t,i){return i&&n[i]?n[i][t]:n[t]?n[t]:void 0}function h(t,i){if(i&&n[i]){if(!n[i][t])return!1;n[i][t]=null}else{if(!n[t])return!1;n[t]=null}return!0}function o(n){return!!(n&&n.constructor&&n.call&&n.apply)}var n={},i=!1,c=Array.prototype.slice,r="*";return t.fn=t.prototype={element:null,init:function(n){return typeof n=="string"&&(n=document.getElementById(n)),this.element=n,this},api:function(n,t){if(!this.element||!n)return!1;var r=this,i=r.element,s=i.id!==""?i.id:null,h=o(t)?null:t,f=o(t)?t:null;return f&&e(n,f,s),u(n,h,i),r},addEvent:function(n,t){if(!this.element)return!1;var f=this,r=f.element,o=r.id!==""?r.id:null;return e(n,t,o),n!="ready"?u("addEventListener",n,r):n=="ready"&&i&&t.call(null,o),f},removeEvent:function(n){if(!this.element)return!1;var i=this,t=i.element,r=t.id!==""?t.id:null,f=h(n,r);n!="ready"&&f&&u("removeEventListener",n,t)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",f,!1):window.attachEvent("onmessage",f),window.Froogaloop=window.$f=t}()}(),function(n,t){typeof define=="function"&&define.amd?define(["video.js"],function(i){return n.Youtube=t(i)}):typeof module=="object"&&module.exports?module.exports=n.Youtube=t(require("video.js")):n.Youtube=t(n.videojs)}(this,function(n){"use strict";function u(){var n=document.getElementsByTagName("script")[0],t=document.createElement("script");t.textContent="if (!window['YT']) {var YT = {loading: 0,loaded: 0};}if (!window['YTConfig']) {var YTConfig = {'host': 'http://www.youtube.com'};}if (!YT.loading) {YT.loading = 1;(function(){var l = [];YT.ready = function(f) {if (YT.loaded) {f();} else {l.push(f);}};window.onYTReady = function() {YT.loaded = 1;for (var i = 0; i < l.length; i++) {try {l[i]();} catch (e) {}}};YT.setConfig = function(c) {for (var k in c) {if (c.hasOwnProperty(k)) {YTConfig[k] = c[k];}}};var a = document.createElement('script');a.type = 'text/javascript';a.id = 'www-widgetapi-script';a.src = 'https://s.ytimg.com/yts/jsbin/www-widgetapi-vfll-F3yY/www-widgetapi.js';a.async = true;var c = document.currentScript;if (c) {var n = c.nonce || c.getAttribute('nonce');if (n) {a.setAttribute('nonce', n);}}var b = document.getElementsByTagName('script')[0];b.parentNode.insertBefore(a, b);})();}";n.parentNode.insertBefore(t,n)}function f(){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css";n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t));i.appendChild(n)}var r=n.getComponent("Tech"),t=n.extend(r,{constructor:function(n,u){r.call(this,n,u);this.setPoster(n.poster);this.setSrc(this.options_.source,!0);setTimeout(function(){this.el_.parentNode.className+=" vjs-youtube";i&&(this.el_.parentNode.className+=" vjs-youtube-mobile");t.isApiReady?this.initYTPlayer():t.apiReadyQueue.push(this)}.bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","")},createEl:function(){var r=document.createElement("div"),t,n;return r.setAttribute("id",this.options_.techId),r.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t=document.createElement("div"),t.appendChild(r),i||this.options_.ytControls||(n=document.createElement("div"),n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=function(){this.pause()}.bind(this),t.appendChild(n)),t},initYTPlayer:function(){var n={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};typeof this.options_.autohide!="undefined"&&(n.autohide=this.options_.autohide);typeof this.options_.cc_load_policy!="undefined"&&(n.cc_load_policy=this.options_.cc_load_policy);typeof this.options_.ytControls!="undefined"&&(n.controls=this.options_.ytControls);typeof this.options_.disablekb!="undefined"&&(n.disablekb=this.options_.disablekb);typeof this.options_.end!="undefined"&&(n.end=this.options_.end);typeof this.options_.color!="undefined"&&(n.color=this.options_.color);n.controls?typeof this.options_.fs!="undefined"&&(n.fs=this.options_.fs):n.fs=0;typeof this.options_.end!="undefined"&&(n.end=this.options_.end);typeof this.options_.hl!="undefined"?n.hl=this.options_.hl:typeof this.options_.language!="undefined"&&(n.hl=this.options_.language.substr(0,2));typeof this.options_.iv_load_policy!="undefined"&&(n.iv_load_policy=this.options_.iv_load_policy);typeof this.options_.list!="undefined"?n.list=this.options_.list:this.url&&typeof this.url.listId!="undefined"&&(n.list=this.url.listId);typeof this.options_.listType!="undefined"&&(n.listType=this.options_.listType);typeof this.options_.modestbranding!="undefined"&&(n.modestbranding=this.options_.modestbranding);typeof this.options_.playlist!="undefined"&&(n.playlist=this.options_.playlist);typeof this.options_.playsinline!="undefined"&&(n.playsinline=this.options_.playsinline);typeof this.options_.rel!="undefined"&&(n.rel=this.options_.rel);typeof this.options_.showinfo!="undefined"&&(n.showinfo=this.options_.showinfo);typeof this.options_.start!="undefined"&&(n.start=this.options_.start);typeof this.options_.theme!="undefined"&&(n.theme=this.options_.theme);this.activeVideoId=this.url?this.url.videoId:null;this.activeList=n.list;this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:n,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.playerReady_=!0;this.triggerReady();this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){},onPlayerStateChange:function(n){var t=n.data;if(t!==this.lastState&&!this.errorNumber){switch(t){case-1:this.trigger("loadedmetadata");this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate");this.trigger("durationchange");this.trigger("playing");this.trigger("play");this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay");this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate");this.player_.trigger("waiting")}this.lastState=t}},onPlayerError:function(n){this.errorNumber=n.data;this.trigger("error");this.ytPlayer.stopVideo();this.ytPlayer.destroy();this.ytPlayer=null},error:function(){switch(this.errorNumber){case 5:return{code:"Error while trying to play the video"};case 2:case 100:case 150:return{code:"Unable to find the video"};case 101:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(n){return n&&(this.setSrc({src:n}),this.options_.autoplay&&!i&&this.play()),this.source},poster:function(){return i?null:this.poster_},setPoster:function(n){this.poster_=n},setSrc:function(n){n&&n.src&&(delete this.errorNumber,this.source=n,this.url=t.parseUrl(n.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.checkHighResPoster()),this.options_.autoplay&&!i&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(n){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime());this.isSeeking||(this.wasPausedBeforeSeek=this.paused());this.ytPlayer.seekTo(n,!0);this.trigger("timeupdate");this.trigger("seeking");this.isSeeking=!0;this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==n&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval);this.isSeeking=!1;this.wasPausedBeforeSeek&&this.pause();this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(n){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(n),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:!1},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(n){this.ytPlayer&&(this.ytPlayer.setVolume(n*100),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return this.ytPlayer?this.ytPlayer.isMuted():!1},setMuted:function(n){if(this.ytPlayer)this.muted(!0);else return;n?this.ytPlayer.mute():this.ytPlayer.unMute();this.setTimeout(function(){this.trigger("volumechange")},50)},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw new Error("This TimeRanges object is empty");},end:function(){throw new Error("This TimeRanges object is empty");}};var n=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:this.ytPlayer.getDuration(),start:function(){return 0},end:function(){return n}}},load:function(){},reset:function(){},supportsFullScreen:function(){return!0},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg",n;try{n=new Image;n.onload=function(){if("naturalHeight"in n){if(n.naturalHeight<=90||n.naturalWidth<=120)return}else if(n.height<=90||n.width<=120)return;this.poster_=t;this.trigger("posterchange")}.bind(this);n.onerror=function(){};n.src=t}catch(i){}}}),i;t.isSupported=function(){return!0};t.canPlaySource=function(n){return n.type==="video/youtube"};i=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);t.parseUrl=function(n){var i={videoId:null},t=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/),r;return t&&t[2].length===11&&(i.videoId=t[2]),r=/[?&]list=([^#\&\?]+)/,t=n.match(r),t&&t[1]&&(i.listId=t[1]),i};t.apiReadyQueue=[];window.onYouTubeIframeAPIReady=function(){t.isApiReady=!0;for(var n=0;n<t.apiReadyQueue.length;++n)t.apiReadyQueue[n].initYTPlayer()};u();f();typeof n.registerTech!="undefined"?n.registerTech("Youtube",t):n.registerComponent("Youtube",t)})