(function(){ var hola_vjs_provider_require, E = {}; E.zdot = function(name){ // zdot_stub: // zdot_stub:return { // zdot_stub:customer: {[=json it.customer]}, // zdot_stub:}[name]; return {}[name]; }; E.customer = E.zdot('customer'); E.disable = function(){}; function hola_player_init(){ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.hola_player=a()}}(function(){var a;return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>4?c+20:c+10},this.parseAdtsSize=function(a,b){var c=(224&a[b+5])>>5,d=a[b+4]<<3;return 6144&a[b+3]|d|c},this.push=function(c){var d,e,f,g,h=0,i=0;for(a.length?(g=a.length,a=new Uint8Array(c.byteLength+g),a.set(a.subarray(0,g)),a.set(c,g)):a=c;a.length-i>=3;)if(a[i]!=="I".charCodeAt(0)||a[i+1]!=="D".charCodeAt(0)||a[i+2]!=="3".charCodeAt(0))if(!0&a[i]&&240==(240&a[i+1])){if(a.length-i<7)break;if((h=this.parseAdtsSize(a,i))>a.length)break;f={type:"audio",data:a.subarray(i,i+h),pts:b,dts:b},this.trigger("data",f),i+=h}else i++;else{if(a.length-i<10)break;if((h=this.parseId3TagSize(a,i))>a.length)break;e={type:"timed-metadata",data:a.subarray(i,i+h)},this.trigger("data",e),i+=h}d=a.length-i,a=d>0?a.subarray(i):new Uint8Array}},d.prototype=new e,b.exports=d},{"../utils/stream.js":21}],2:[function(a,b,c){"use strict";var d,e=a("../utils/stream.js"),f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];d=function(){var a;d.prototype.init.call(this),this.push=function(b){var c,d,e,g,h,i,j=0,k=0;if("audio"===b.type)for(a?(g=a,a=new Uint8Array(g.byteLength+b.data.byteLength),a.set(g),a.set(b.data,g.byteLength)):a=b.data;j+5>5,h=1024*(1+(3&a[j+6])),i=9e4*h/f[(60&a[j+2])>>>2],e=j+c,a.byteLength>>6&3),channelcount:(1&a[j+2])<<2|(192&a[j+3])>>>6,samplerate:f[(60&a[j+2])>>>2],samplingfrequencyindex:(60&a[j+2])>>>2,samplesize:16,data:a.subarray(j+7+d,e)}),a.byteLength===e)return void(a=void 0);k++,a=a.subarray(e)}else j++},this.flush=function(){this.trigger("done")}},d.prototype=new e,b.exports=d},{"../utils/stream.js":21}],3:[function(a,b,c){"use strict";var d,e,f=a("../utils/stream.js"),g=a("../utils/exp-golomb.js"),h={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},i={slice_layer_without_partitioning_rbsp:1,slice_layer_without_partitioning_rbsp_idr:5,sei_rbsp:6,seq_parameter_set_rbsp:7,pic_parameter_set_rbsp:8,access_unit_delimiter_rbsp:9};e=function(){var a,b,c=0;e.prototype.init.call(this),this.push=function(d){var e;for(b?(e=new Uint8Array(b.byteLength+d.data.byteLength),e.set(b),e.set(d.data,b.byteLength),b=e):b=d.data;c3&&this.trigger("data",b.subarray(c+3)),b=null,c=0,this.trigger("done")}},e.prototype=new f,d=function(){var a,b,c,f,i,j,k,l=new e;d.prototype.init.call(this),a=this,this.push=function(a){"video"===a.type&&(b=a.trackId,c=a.pts,f=a.dts,l.push(a))},l.on("data",function(d){var e={trackId:b,pts:c,dts:f,data:d},g=31&d[0];(1==g||g>=5&&g<=9)&&(e.nalUnitType=g),7!=g&&6!=g||(e.escapedRBSP=i(d.subarray(1)),e.config=7==g?j(e.escapedRBSP):null),a.trigger("data",e)}),l.on("done",function(){a.trigger("done")}),this.flush=function(){l.flush()},k=function(a,b){var c,d,e=8,f=8;for(c=0;c0)throw new Error("Attempted to create new NAL wihout closing the old one");e=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(a){var b,c;this.length===e+4?this.length-=4:e>0&&(b=e+4,c=this.length-b,this.position=e,this.view.setUint32(this.position,c),this.position=this.length,a&&a.push(this.bytes.subarray(b,b+c))),e=0},this.writeMetaDataDouble=function(a,b){var c;if(g(this,2+a.length+9),this.view.setUint16(this.position,a.length),this.position+=2,"width"===a)this.bytes.set(h,this.position),this.position+=5;else if("height"===a)this.bytes.set(i,this.position),this.position+=6;else if("videocodecid"===a)this.bytes.set(j,this.position),this.position+=12;else for(c=0;c>>16,this.bytes[14]=(65280&a)>>>8,this.bytes[15]=(255&a)>>>0;break;case d.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=b?0:1;break;case d.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,e),this.position=this.length,this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position}return c=this.length-11,this.bytes[1]=(16711680&c)>>>16,this.bytes[2]=(65280&c)>>>8,this.bytes[3]=(255&c)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,g(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=d.frameTime(this.bytes),this}},d.AUDIO_TAG=8,d.VIDEO_TAG=9,d.METADATA_TAG=18,d.isAudioFrame=function(a){return d.AUDIO_TAG===a[0]},d.isVideoFrame=function(a){return d.VIDEO_TAG===a[0]},d.isMetaData=function(a){return d.METADATA_TAG===a[0]},d.isKeyFrame=function(a){return d.isVideoFrame(a)?23===a[11]:!!d.isAudioFrame(a)||!!d.isMetaData(a)},d.frameTime=function(a){var b=a[4]<<16;return b|=a[5]<<8,b|=a[6]<<0,b|=a[7]<<24},b.exports=d},{}],6:[function(a,b,c){b.exports={tag:a("./flv-tag"),Transmuxer:a("./transmuxer"),tools:a("../tools/flv-inspector")}},{"../tools/flv-inspector":18,"./flv-tag":5,"./transmuxer":7}],7:[function(a,b,c){"use strict";var d,e,f,g,h,i,j,k=a("../utils/stream.js"),l=a("./flv-tag.js"),m=a("../m2ts/m2ts.js"),n=a("../codecs"),o=n.adts,p=n.h264.H264Stream;h=function(a,b){"number"==typeof b.pts&&(void 0===a.timelineStartInfo.pts?a.timelineStartInfo.pts=b.pts:a.timelineStartInfo.pts=Math.min(a.timelineStartInfo.pts,b.pts)),"number"==typeof b.dts&&(void 0===a.timelineStartInfo.dts?a.timelineStartInfo.dts=b.dts:a.timelineStartInfo.dts=Math.min(a.timelineStartInfo.dts,b.dts))},i=function(a,b){var c=new l(l.METADATA_TAG);return c.dts=b,c.pts=b,c.writeMetaDataDouble("videocodecid",7),c.writeMetaDataDouble("width",a.width),c.writeMetaDataDouble("height",a.height),c},j=function(a,b){var c,d=new l(l.VIDEO_TAG,!0);for(d.dts=b,d.pts=b,d.writeByte(1),d.writeByte(a.profileIdc),d.writeByte(a.profileCompatibility),d.writeByte(a.levelIdc),d.writeByte(255),d.writeByte(225),d.writeShort(a.sps[0].length),d.writeBytes(a.sps[0]),d.writeByte(a.pps.length),c=0;c=1e3)&&(e=new l(l.METADATA_TAG),e.pts=d.pts,e.dts=d.dts,e.writeMetaDataDouble("audiocodecid",10),e.writeMetaDataBoolean("stereo",2===a.channelcount),e.writeMetaDataDouble("audiosamplerate",a.samplerate),e.writeMetaDataDouble("audiosamplesize",16),g.push(e),b=a.extraData,e=new l(l.AUDIO_TAG,!0),e.pts=d.pts,e.dts=d.dts,e.view.setUint16(e.position,a.extraData),e.position+=2,e.length=Math.max(e.length,e.position),g.push(e),f=d.pts),e=new l(l.AUDIO_TAG),e.pts=d.pts,e.dts=d.dts,e.writeBytes(d.data),g.push(e);b=null,this.trigger("data",{track:a,tags:g}),this.trigger("done")}},f.prototype=new k,e=function(a){var b,c,d=[];e.prototype.init.call(this),this.finishFrame=function(c,d){d&&(b&&a&&a.newMetadata&&(d.keyFrame||0===c.length)&&(c.push(i(b,d.pts)),c.push(j(a,d.pts)),a.newMetadata=!1),d.endNalUnit(),c.push(d))},this.push=function(b){h(a,b),b.pts=Math.round(b.pts/90),b.dts=Math.round(b.dts/90),d.push(b)},this.flush=function(){for(var e,f=[];d.length&&d[0].nalUnitType!==n.h264.unitTypes.access_unit_delimiter_rbsp;)d.shift();if(0===d.length)return void this.trigger("done");for(;d.length;){switch(e=d.shift(),e.nalUnitType){case n.h264.unitTypes.seq_parameter_set_rbsp:a.newMetadata=!0,b=e.config,a.width=b.width,a.height=b.height,a.sps=[e.data],a.profileIdc=b.profileIdc,a.levelIdc=b.levelIdc,a.profileCompatibility=b.profileCompatibility,c.endNalUnit();break;case n.h264.unitTypes.pic_parameter_set_rbsp:a.newMetadata=!0,a.pps=[e.data],c.endNalUnit();break;case n.h264.unitTypes.access_unit_delimiter_rbsp:c&&this.finishFrame(f,c),c=new l(l.VIDEO_TAG),c.pts=e.pts,c.dts=e.dts;break;case n.h264.unitTypes.slice_layer_without_partitioning_rbsp_idr:c.keyFrame=!0,c.endNalUnit();break;default:c.endNalUnit()}c.startNalUnit(),c.writeBytes(e.data)}c&&this.finishFrame(f,c),this.trigger("data",{track:a,tags:f}),this.trigger("done")}},e.prototype=new k,g=function(a){this.numberOfTracks=0,this.metadataStream=a.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,g.prototype.init.call(this),this.push=function(a){return a.text?this.pendingCaptions.push(a):a.frames?this.pendingMetadata.push(a):("video"===a.track.type&&(this.videoTrack=a.track,this.videoTags=a.tags,this.pendingTracks++),void("audio"===a.track.type&&(this.audioTrack=a.track,this.audioTags=a.tags,this.pendingTracks++)))}},g.prototype=new k,g.prototype.flush=function(){var a,b,c,d,e={tags:{},captions:[],metadata:[]};if(!(this.pendingTracks>>8,e=255&b,d>=16&&d<=23&&e>=64&&e<=127&&(16!==d||e<96)&&(d=32,e=null),(17===d||25===d)&&e>=48&&e<=63&&(d=9834,e=""),16==(240&d))return;this[this.mode_](a.pts,d,e)}}}};m.prototype=new d,m.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){return a.trim()}).filter(function(a){return a.length}).join("\n");b.length&&this.trigger("data",{startPts:this.startPts_,endPts:a,text:b})},m.prototype.popOn=function(a,b,c){var d=this.nonDisplayed_[14];d+=k(b),d+=k(c),this.nonDisplayed_[14]=d},m.prototype.rollUp=function(a,b,c){var d=this.displayed_[14];""===d&&(this.flushDisplayed(a),this.startPts_=a),d+=k(b),d+=k(c),this.displayed_[14]=d},m.prototype.shiftRowsUp_=function(){var a;for(a=0;a>>4>1&&(d+=b[d]+1),0===c.pid?(c.type="pat",a(b.subarray(d),c),this.trigger("data",c)):c.pid===this.pmtPid?(c.type="pmt",a(b.subarray(d),c),this.trigger("data",c)):void 0===this.programMapTable?this.packetsWaitingForPmt.push([b,d,c]):this.processPes_(b,d,c)},this.processPes_=function(a,b,c){c.streamType=this.programMapTable[c.pid],c.type="pes",c.data=a.subarray(b),this.trigger("data",c)}},e.prototype=new g,e.STREAM_TYPES={h264:27,adts:15},f=function(){var a,b={data:[],size:0},c={data:[],size:0},d={data:[],size:0},e=function(a,b){var c;b.dataAlignmentIndicator=0!=(4&a[6]),c=a[7],192&c&&(b.pts=(14&a[9])<<27|(255&a[10])<<20|(254&a[11])<<12|(255&a[12])<<5|(254&a[13])>>>3,b.pts*=4,b.pts+=(6&a[13])>>>1,b.dts=b.pts,64&c&&(b.dts=(14&a[14])<<27|(255&a[15])<<20|(254&a[16])<<12|(255&a[17])<<5|(254&a[18])>>>3,b.dts*=4,b.dts+=(6&a[18])>>>1)),b.data=a.subarray(9+a[8])},g=function(b,c){var d,f=new Uint8Array(b.size),g={type:c},h=0;if(b.data.length){for(g.trackId=b.data[0].pid;b.data.length;)d=b.data.shift(),f.set(d.data,h),h+=d.data.byteLength;e(f,g),b.size=0,a.trigger("data",g)}};f.prototype.init.call(this),a=this,this.push=function(e){({pat:function(){},pes:function(){var a,f;switch(e.streamType){case i.H264_STREAM_TYPE:case j.H264_STREAM_TYPE:a=b,f="video";break;case i.ADTS_STREAM_TYPE:a=c,f="audio";break;case i.METADATA_STREAM_TYPE:a=d,f="timed-metadata";break;default:return}e.payloadUnitStartIndicator&&g(a,f),a.data.push(e),a.size+=e.data.byteLength},pmt:function(){var b,c,d={type:"metadata",tracks:[]},f=e.programMapTable;for(b in f)f.hasOwnProperty(b)&&(c={timelineStartInfo:{baseMediaDecodeTime:0}},c.id=+b,f[b]===j.H264_STREAM_TYPE?(c.codec="avc",c.type="video"):f[b]===j.ADTS_STREAM_TYPE&&(c.codec="adts",c.type="audio"),d.tracks.push(c));a.trigger("data",d)}})[e.type]()},this.flush=function(){g(b,"video"),g(c,"audio"),g(d,"timed-metadata"),this.trigger("done")}},f.prototype=new g;var k={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:d,TransportParseStream:e,ElementaryStream:f,CaptionStream:h.CaptionStream,Cea608Stream:h.Cea608Stream,MetadataStream:a("./metadata-stream")};for(var l in i)i.hasOwnProperty(l)&&(k[l]=i[l]);b.exports=k},{"../utils/stream.js":21,"./caption-stream":9,"./metadata-stream":12,"./stream-types":13,"./stream-types.js":13}],12:[function(a,b,c){"use strict";var d,e=a("../utils/stream"),f=a("./stream-types"),g=function(a,b,c){var d,e="";for(d=b;d>>2;o*=4,o+=3&n[7],i.timeStamp=o,this.trigger("timestamp",i)}b.frames.push(i),d+=10,d+=f}while(d>>24&255,a>>>16&255,a>>>8&255,255&a]}function e(a){return[a>>>8&255,255&a]}var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V=Math.pow(2,32)-1;T=window.Uint8Array,U=window.DataView,function(){var a;if(F={avc1:[],avcC:[],btrt:[],cslg:[],dinf:[],dref:[],edts:[],elst:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trep:[],trex:[],tkhd:[],vmhd:[]},void 0!==T){for(a in F)F.hasOwnProperty(a)&&(F[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]);G=new T(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),I=new T(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),H=new T([0,0,0,1]),J=new T([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),K=new T([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),L={video:J,audio:K},O=new T([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),N=new T([0,0,0,0,0,0,0,0]),P=new T([0,0,0,0,0,0,0,0]),Q=P,R=new T([0,0,0,0,0,0,0,0,0,0,0,0]),S=P,M=new T([0,0,0,1,0,0,0,0,0,0,0,0])}}(),f=function(a){var b,c,d,e=[],f=0;for(b=1;b>>0;return f(F.cslg,new T([0,0,0,0,b.ctts_shift>>>24&255,b.ctts_shift>>>16&255,b.ctts_shift>>>8&255,255&b.ctts_shift,b.min_ctts>>>24&255,b.min_ctts>>>16&255,b.min_ctts>>>8&255,255&b.min_ctts,b.max_ctts>>>24&255,b.max_ctts>>>16&255,b.max_ctts>>>8&255,255&b.max_ctts,b.min_cts>>>24&255,b.min_cts>>>16&255,b.min_cts>>>8&255,255&b.min_cts,b.max_cts>>>24&255,b.max_cts>>>16&255,b.max_cts>>>8&255,255&b.max_cts]))},h=function(){return f(F.dinf,f(F.dref,O))},k=function(a){return f(F.edts,l(a))},l=function(a){var b,c=a.edit_list.length,g=[0,0,0,0].concat(d(c));for(b=0;b>>1,a.samplingfrequencyindex<<7|a.channelcount<<3,6,1,2]))},j=function(a){a=a||{};var b=a.compatible||[G,I];return b=b.slice(0),b.unshift(F.ftyp,a.major||G,H),f.apply(null,b)},x=function(a){return f(F.hdlr,L[a])},m=function(a){return f(F.mdat,a)},w=function(a){var b=new T([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,a.duration>>>24&255,a.duration>>>16&255,a.duration>>>8&255,255&a.duration,85,196,0,0]);return a.samplerate&&(b[12]=a.samplerate>>>24&255,b[13]=a.samplerate>>>16&255,b[14]=a.samplerate>>>8&255,b[15]=255&a.samplerate),f(F.mdhd,b)},v=function(a){return f(F.mdia,w(a),x(a.type),o(a))},n=function(a){return f(F.mfhd,new T([0,0,0,0,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a]))},o=function(a){return f(F.minf,"video"===a.type?f(F.vmhd,M):f(F.smhd,N),h(),z(a))},p=function(a,b,c){var d=[],e=b.length;for(c=c||{};e--;)d[e]=B(b[e],c);return f.apply(null,[F.moof,n(a)].concat(d))},q=function(a,b){var c=a.length,d=[],e=0;for(b=b||{};c--;)d[c]=t(a[c]),b.set_duration&&(e=Math.max(e,Math.floor(9e4*a[c].duration/a[c].samplerate)));return e=b.duration||e||4294967295,f.apply(null,[F.moov,s(e)].concat(d).concat(r(a)))},r=function(a){for(var b=a.length,c=[];b--;)c[b]=D(a[b]),a[b].cslg&&a[b].cslg.max_cts&&c.push(C(a[b]));return f.apply(null,[F.mvex].concat(c))},s=function(a){ var b=new T([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return f(F.mvhd,b)},y=function(a){var b,c,d=a.samples||[],e=new T(4+d.length);for(c=0;c>>8),e.push(255&c[b].byteLength),e=e.concat(Array.prototype.slice.call(c[b]));for(b=0;b>>8),g.push(255&d[b].byteLength),g=g.concat(Array.prototype.slice.call(d[b]));return f(F.avc1,new T([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&a.width)>>8,255&a.width,(65280&a.height)>>8,255&a.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),f(F.avcC,new T([1,a.profileIdc,a.profileCompatibility,a.levelIdc,255].concat([224|c.length]).concat(e).concat([d.length]).concat(g))),f(F.btrt,new T([0,28,156,128,0,45,198,192,0,45,198,192])))},b=function(a){return f(F.mp4a,new T([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&a.channelcount)>>8,255&a.channelcount,(65280&a.samplesize)>>8,255&a.samplesize,0,0,0,0,(65280&a.samplerate)>>8,255&a.samplerate,0,0]),i(a))}}(),u=function(a){var b=a.duration;a.samplerate&&(b=Math.floor(9e4*b/a.samplerate));var c=new T([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,0,(4278190080&a.duration)>>24,(16711680&a.duration)>>16,(65280&a.duration)>>8,255&a.duration,0,0,0,0,0,0,0,0,0,0,0,0,+("audio"==a.type),0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&a.width)>>8,255&a.width,0,0,(65280&a.height)>>8,255&a.height,0,0]);return f(F.tkhd,c)},B=function(a,b){var c,d,e,g,h,i,j;return b=b||{},c=f(F.tfhd,new T([0,b.no_multi_init?2:0,0,58,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),i=Math.floor(a.baseMediaDecodeTime/(V+1)),j=Math.floor(a.baseMediaDecodeTime%(V+1)),d=f(F.tfdt,new T([1,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,j>>>24&255,j>>>16&255,j>>>8&255,255&j])),h=92,"audio"===a.type?(e=E(a,h),f(F.traf,c,d,e)):(g=y(a),e=E(a,g.length+h),f(F.traf,c,d,e,g))},t=function(a){a.duration=a.duration||4294967295;var b=[F.trak,u(a),v(a)];return a.edit_list&&a.edit_list.length&&b.splice(2,0,k(a)),f.apply(null,b)},C=function(a){return f(F.trep,new T([0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id]),g(a.cslg))},D=function(a){var b=new T([0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==a.type&&(b[b.length-1]=0),f(F.trex,b)},E=function(a,b){var c=a.samples||[],d=function(a){return("duration"in a&&1)|("size"in a&&2)|("flags"in a&&4)|("compositionTimeOffset"in a&&8)}(c[0]||{});b+=20+4*c.length*((d>>3&1)+(d>>2&1)+(d>>1&1)+(1&d));for(var e=function(a,b,c){return[0,0,c,1,(4278190080&a.length)>>>24,(16711680&a.length)>>>16,(65280&a.length)>>>8,255&a.length,(4278190080&b)>>>24,(16711680&b)>>>16,(65280&b)>>>8,255&b]}(c,b,d),g=!1,h=0;h>24&255,i.duration>>16&255,i.duration>>8&255,255&i.duration),2&d&&e.push(i.size>>24&255,i.size>>16&255,i.size>>8&255,255&i.size),4&d&&e.push(i.flags.isLeading<<2|i.flags.dependsOn,i.flags.isDependedOn<<6|i.flags.hasRedundancy<<4|i.flags.paddingValue<<1|i.flags.isNonSyncSample,i.flags.degradationPriority>>8&255,255&i.flags.degradationPriority),8&d&&(g=g||i.compositionTimeOffset<0,e.push(i.compositionTimeOffset>>24&255,i.compositionTimeOffset>>16&255,i.compositionTimeOffset>>8&255,255&i.compositionTimeOffset))}return e[0]=+!!g,f(F.trun,new T(e))},b.exports={ftyp:j,mdat:m,moof:p,moov:q,initSegment:function(a,b){var c,d=j(b),e=q(a,b);return c=new T(d.byteLength+e.byteLength),c.set(d),c.set(e,d.byteLength),c}}},{}],16:[function(a,b,c){"use strict";function d(a){return("0"+a.toString(16)).slice(-2)}function e(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,255&a)}function f(a,b){return a.getUint32(b+4)+4294967296*a.getUint32(b)}function g(a,b){return a.getUint8(b)<128?f(a,b):a.getUint32(b+4)+4294967296*(a.getUint32(b)-4294967296)}function h(a,b,c){var d=0,e=8*c;this.read=function(c,e){for(var f=0,g=d>>3,h=7-d%8,i=0,j=a.getUint8(g+b);i>h&1,h||(g++,h=8,j=a.getUint8(g+b));return e||(d+=c),f},this.bits=function(){return e-d}}function i(a){var b=a.view,c=a.ptr,d="tkhd"==a.type;return a.ver?[f(b,c),f(b,c+8),b.getUint32(c+16),f(b,c+(d?24:20))]:[b.getUint32(c),b.getUint32(c+4),b.getUint32(c+8),b.getUint32(c+(d?16:12))]}function j(a,b,c,d){for(var e=0;e=a.branch.last;)"movie_box"==a.branch._id&&(a.root.h_parsed=!0),a.branch=a.branch.parent;if(a.type=null,a.offset=8,a.buffer.b_size-a.ptr<8)return a.offset=0;if(a.size=a.view.getUint32(a.ptr),1==a.size){if(a.offset=16,a.buffer.b_size-a.ptr<16)return a.offset=0;a.size=(a.view.getUint32(a.ptr+8)<<32)+a.view.getUint32(a.ptr+12)}if(a.type=e(a.view.getUint32(a.ptr+4)),n.includes(a.type)){if(a.offset+=4,a.buffer.b_size-a.ptr>>24,a.flags=b&&16777215}a.size-=a.offset,a.ptr+=a.offset},q.prototype.parse=function(a){if(!this[a.type])throw new Error("Unknown box type: "+a.type);this[a.type](a)},o.forEach(function(a){q.prototype[a]=function(b){(b.branch[a]=new Uint8Array(b.size)).set(b.buffer._buff.subarray(b.ptr,b.ptr+b.size))}}),Object.keys(p).forEach(function(a){q.prototype[a]=function(b){var c=p[a];b.branch[c.name]=b.branch[c.name]||(c.multi?[]:{});var d=b.branch[c.name];c.multi&&(d.push({}),d=d[d.length-1]),d.parent=b.branch,d.last=b.buffer.b_pos+b.ptr+b.size,d._id=c.name,b.branch=d,b.size=0}}),q.prototype.moov=function(a){var b=a.branch.movie_box=a.branch.movie_box||{};b.parent=a.branch,b.last=a.buffer.b_pos+a.ptr+a.size,b._id="movie_box",a.buffer.b_pos<256?a.branch.start_hdr_sz=a.size:a.branch.end_hdr_sz=a.size,a.branch=b,a.size=0},q.prototype.ftyp=function(a){a.branch.major_brand=e(a.view.getUint32(a.ptr)),a.branch.minor_version=a.view.getUint32(a.ptr+4),a.branch.compatible=[a.branch.major_brand];for(var b=8;b>10|96,g>>5&31|96,31&g|96)},q.prototype.elst=function(a){var b=a.view,c=a.ptr+4,d=b.getUint32(a.ptr);a.branch.list=[];for(var e=0;e>6&2)+(i>>4&2);break;case 4:b.obj_t=c.getUint8(d),b.str_t=63&c.getUint8(d+1),d+=13;break;case 5:var j,k=new h(c,d,g);if(b.aot=k.read(5),31==b.aot&&(b.aot=32+k.read(6)),b.freq=k.read(4),15==b.freq&&(b.freq=k.read(24)),b.channel=k.read(4),5!=b.aot&&29!=b.aot||(j=5,15==(b.ext_freq_index=k.read(4))&&(b.ext_freq=k.read(24)),b.aot=k.read(5),31==b.aot&&(b.aot=32+k.read(6))),5!=j&&36!=b.aot)for(;k.bits()>=16;)695==k.read(11,1)?(k.read(11),5==k.read(5)&&k.read(1)&&(15==k.read(4)&&k.read(24),k.bits()>=12&&1352==k.read(11)&&1!=k.read(1)&&(b.dsi=5))):k.read(1);d+=g;break;default:d+=g}}},q.prototype.stsd=function(a){var b,c,d=a.view,e=d.getUint32(a.ptr),f=a.branch.parent.parent.handler;for(a.branch.list={},a.ptr+=4,b=0;b>2&3,dep:c>>4&3,lead:c>>6&3}}},q.prototype.stsz=function(a){var b=a.view.getUint32(a.ptr);if(a.branch.s_sz=[],a.branch.s_count=a.view.getUint32(a.ptr+4),b)for(var c=0;c>>1,r.esds.freq<<7|r.esds.channel<<3])}else{s.codec="avc1."+d(r.avcc.avc_p_i)+d(r.avcc.prof_compat)+d(r.avcc.avc_l_i);var u=[1,r.avcc.avc_p_i,r.avcc.avc_prof_compat,r.avcc.avc_l_i,255,r.avcc.sps.length+224];r.avcc.sps.forEach(function(a){u=u.concat([a.nal.length>>8,255&a.nal.length]),Array.prototype.push.apply(u,a.nal)}),u.push(r.avcc.pps.length),r.avcc.pps.forEach(function(a){u=u.concat([a.nal.length>>8,255&a.nal.length]),Array.prototype.push.apply(u,a.nal)}),s.s_i=new Uint8Array(u)}if(s.edit_list&&s.edit_list.forEach(function(b){"soun"!=f.type&&(b.media_time=Math.floor(9e4*b.media_time/f.ts)),b.segment_duration=Math.floor(9e4*b.segment_duration/a.root.movie_box.mv_hdr.time_scale)}),s.cslg)for(var v in s.cslg)s.cslg[v]=Math.floor(9e4*s.cslg[v]/f.ts);b.tracks.push(s)}}),a.stream.trigger("data",b)},r.prototype.parse=function(a){this.s_info||this.process(a);for(var b,c=a.buffer.b_pos,d=a.buffer.b_size+c,e=-1,f=0;e;)for(e=0,b=0;b=c&&i+j<=d){this.s_p[b].s++,e++;var l={trackId:g.id};l.type=m[g.type],l.dts=k[h],l.pts=l.dts+(g.s_ctts[h]||0),l.duration=h==k.length-1?k[h]-k[h-1]:k[h+1]-k[h],l.size=j,this.s_p[b].max_t=l.dts/g.ts,l.data=a.buffer._buff.subarray(i-c,i+j-c),l.dr=g.s_list[g.s_dri[h]],l.ts=g.ts,l.synced=!g.s_sync.length||g.s_sync.includes(h+1),l.sn=h,l.dep=g.s_dep[h],"vide"==g.type&&(this.break_on_count?h%this.frag_size==0:h&&l.synced)&&a.stream.flush(),a.stream.trigger("data",l),f=i+j-c}else i+j>d&&b==this.v_idx&&!0}f&&a.buffer.advance(f);var n=1/0;for(b=0;b=c&&n0,k=(b.type,b.ts/9e4);for(d=0,e=j?b.s_sync.length-1:b.s_time.length-1,i=Math.floor(a*k);d>1,f=j?b.s_sync[g]-1:g,(h=b.s_time[f]+(0|b.s_ctts[f]))>i)e=g;else if(d=g,h==i)break;var l=j?b.s_sync[d]-1:d;if(i=h=b.s_time[l]+(0|b.s_ctts[l]),!j&&b.s_ctts.length){for(f=d-1;f>d-10;f--)b.s_time[f]+(0|b.s_ctts[f])>i&&(l=f);for(f=l;f(0|(b.s_cslg&&b.s_cslg.min_ctts))&&hthis._buff.length;)b=new Uint8Array(2*this._buff.length),b.set(this._buff),this._buff=b;this.pos=this.b_pos?(b=new Uint8Array(Math.max(this.pos+c,this.b_pos+this.b_size)-Math.min(this.pos,this.b_pos)),this.pos<=this.b_pos?(b.set(a),this.pos+cthis.buffer.b_size));)this.b_parser.parse(b),b.ptr+=b.size;return this.metadata.h_parsed?this.buffer.pos=this.c_parser.parse(b):(this.buffer.advance(b.ptr-b.offset),this.buffer.pos="mdat"==b.type?b.ptr+b.size:this.buffer.b_pos+this.buffer.b_size),this.buffer.pos},t.prototype.seek=function(a,b){this.trigger("data",{type:"seek"});var c=this.c_parser.seek(a,b);return this.buffer.pos=c.offset,c};var u=function(){if(!(this instanceof u))return new u;u.prototype.init.call(this)};u.prototype=new k,u.prototype.constructor=u,u.prototype.push=function(a){if("audio"==a.type){var b=9e4/a.ts;a.pts=Math.floor(a.pts*b),a.dts=Math.floor(a.dts*b),this.trigger("data",{type:"audio",samplerate:a.dr.s_rate,samplesize:a.dr.s_size,audioobjecttype:a.dr.esds.aot,samplingfrequencyindex:a.dr.esds.freq,channelcount:a.dr.esds.channel,ts:a.ts,dts:a.dts,pts:a.pts,data:new Uint8Array(a.data)})}};var v=function(){if(!(this instanceof v))return new v;v.prototype.init.call(this),this.synced=!1,this.au=new Uint8Array([9,240])};v.prototype=new k,v.prototype.constructor=v,v.prototype.flush=function(){this.dr=null,this.synced=!1,this.trigger("done")},v.prototype.push=function(a){if("video"==a.type){var b,c=0,d=new DataView(a.data.buffer,a.data.byteOffset,a.data.byteLength),e=9e4/a.ts;if(a.pts=Math.floor(a.pts*e),a.dts=Math.floor(a.dts*e),this.trigger("data",{trackId:a.trackId,pts:a.pts,dts:a.dts,data:this.au,nalUnitType:"access_unit_delimiter_rbsp"}),this.dr!=a.dr||!this.synced){if(this.dr=a.dr,this.dr.avcc.n_sps)for(b=0;b=d?b:(a.minSegmentDts=1/0,b.filter(function(b){return b.dts>=d&&(a.minSegmentDts=Math.min(a.minSegmentDts,b.dts),a.minSegmentPts=a.minSegmentDts,!0)}))},this.generateSampleTable_=function(a){var b,c,d=[];for(b=0;b=-1e4&&c<=45e3&&(!d||h>c)&&(d=f,h=c));return d?d.gop:null},this.extendFirstKeyFrame_=function(a){var b;return!a[0][0].keyFrame&&a.length>1&&(b=a.shift(),a.byteLength-=b.byteLength,a.nalCount-=b.nalCount,a[0][0].dts=b.dts,a[0][0].pts=b.pts,a[0][0].duration+=b.duration),a},this.groupNalsIntoFrames_=function(a){var b,c,d=[],e=[];for(d.byteLength=0,b=0;b=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(h=this.videoTrack.timelineStartInfo.pts,x.forEach(function(a){g.info[a]=this.videoTrack[a]},this)):this.audioTrack&&(h=this.audioTrack.timelineStartInfo.pts,w.forEach(function(a){g.info[a]=this.audioTrack[a]},this)),1===this.pendingTracks.length?g.type=this.pendingTracks[0].type:g.type="combined",this.emittedTracks+=this.pendingTracks.length,d=p.initSegment(this.pendingTracks,this.options),this.pendingBytes+=d.byteLength,this.pendingBoxes.unshift(d),g.data=new Uint8Array(this.pendingBytes),e=0;e=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},f=function(a){var b,c,h=this,j=!0;f.prototype.init.call(this),a=a||{},a.input_type=a.input_type||"ts",void 0===a.break_on_count&&(a.break_on_count=!0),this.baseMediaDecodeTime=a.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var b={};this.transmuxPipeline_=b,b.type="aac",b.metadataStream=new r.MetadataStream,b.aacStream=new v,b.adtsStream=new t,b.coalesceStream=new g(a,b.metadataStream),b.headOfPipeline=b.aacStream,b.aacStream.pipe(b.adtsStream),b.aacStream.pipe(b.metadataStream),b.metadataStream.pipe(b.coalesceStream),b.metadataStream.on("timestamp",function(a){b.aacStream.setTimestamp(a.timeStamp)}),b.aacStream.on("data",function(a){"timed-metadata"!==a.type||b.audioSegmentStream||(c=c||{timelineStartInfo:{baseMediaDecodeTime:h.baseMediaDecodeTime},codec:"adts",type:"audio"},b.coalesceStream.numberOfTracks++,b.audioSegmentStream=new e(c),b.adtsStream.pipe(b.audioSegmentStream).pipe(b.coalesceStream))}),b.coalesceStream.on("data",this.trigger.bind(this,"data")),b.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var f={};this.transmuxPipeline_=f,f.type=a.input_type,"ts"==f.type?(a.metadataStream=f.metadataStream=new r.MetadataStream,f.packetStream=new r.TransportPacketStream,f.parseStream=new r.TransportParseStream,f.elementaryStream=new r.ElementaryStream,f.adtsStream=new t,f.h264Stream=new u,f.captionStream=new r.CaptionStream,f.coalesceStream=new g(a,f.metadataStream),f.headOfPipeline=f.packetStream,f.packetStream.pipe(f.parseStream).pipe(f.elementaryStream),f.elementaryStream.pipe(f.h264Stream),f.elementaryStream.pipe(f.adtsStream),f.elementaryStream.pipe(f.metadataStream).pipe(f.coalesceStream),f.h264Stream.pipe(f.captionStream).pipe(f.coalesceStream)):(f.headOfPipeline=f.elementaryStream=new q.MP4ParserStream(a),f.mp4BuilderStream=new q.MP4BuilderStream(a),f.elementaryStream.pipe(f.mp4BuilderStream),this.seek=function(a,b){return f.elementaryStream.seek(a,b)},this.get_tl=function(a){return f.elementaryStream.get_tl(a)},this.conf_update=function(a){f.elementaryStream.trigger("confupdate",a),f.mp4BuilderStream.trigger("confupdate",a)}),f.elementaryStream.on("data",function(g){var i;if("metadata"===g.type){if("ts"!=a.input_type)return void h.trigger("metadata",g);for(i=g.tracks.length;i--;)b||"video"!==g.tracks[i].type?c||"audio"!==g.tracks[i].type||(c=g.tracks[i],c.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime):(b=g.tracks[i],b.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime);b&&!f.videoSegmentStream&&(f.coalesceStream.numberOfTracks++,f.videoSegmentStream=new d(b),f.videoSegmentStream.on("timelineStartInfo",function(a){c&&(c.timelineStartInfo=a,f.audioSegmentStream.setEarliestDts(a.dts))}),f.h264Stream.pipe(f.videoSegmentStream).pipe(f.coalesceStream)),c&&!f.audioSegmentStream&&(f.coalesceStream.numberOfTracks++,f.audioSegmentStream=new e(c),f.adtsStream.pipe(f.audioSegmentStream).pipe(f.coalesceStream))}}),"mp4"===a.input_type?(f.mp4BuilderStream.on("data",this.trigger.bind(this,"data")),f.mp4BuilderStream.on("done",this.trigger.bind(this,"done"))):(f.coalesceStream.on("data",this.trigger.bind(this,"data")),f.coalesceStream.on("done",this.trigger.bind(this,"done")))},this.setBaseMediaDecodeTime=function(a){var d=this.transmuxPipeline_;this.baseMediaDecodeTime=a,c&&(c.timelineStartInfo.dts=void 0,c.timelineStartInfo.pts=void 0,k(c),c.timelineStartInfo.baseMediaDecodeTime=a),b&&(d.videoSegmentStream&&(d.videoSegmentStream.gopCache_=[]),b.timelineStartInfo.dts=void 0,b.timelineStartInfo.pts=void 0,k(b),b.timelineStartInfo.baseMediaDecodeTime=a)},this.push=function(b){if(j){var c=i(b)&&"mp4"!=a.input_type;c&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():c||this.transmuxPipeline_.type===a.input_type||this.setupTsPipeline(),j=!1}return this.transmuxPipeline_.headOfPipeline.push(b)},this.appendBuffer=function(a){return this.push(new Uint8Array(a))},this.flush=function(){j=!0,this.transmuxPipeline_.headOfPipeline.flush()}},f.prototype=new o,b.exports={Transmuxer:f,VideoSegmentStream:d,AudioSegmentStream:e,AUDIO_PROPERTIES:w,VIDEO_PROPERTIES:x}},{"../aac":1,"../codecs":4,"../m2ts/m2ts.js":11,"../utils/stream.js":21,"./mp4-generator.js":15,"./mp4-parser.js":16}],18:[function(a,b,c){"use strict";var d={8:"audio",9:"video",18:"metadata"},e=function(a){return"0x"+("00"+a.toString(16)).slice(-2).toUpperCase()},f=function(a){for(var b,c=[];a.byteLength>0;){switch(b=0,a.byteLength){default:c.push(e(a[b++]));case 7:c.push(e(a[b++]));case 6:c.push(e(a[b++]));case 5:c.push(e(a[b++]));case 4:c.push(e(a[b++]));case 3:c.push(e(a[b++]));case 2:c.push(e(a[b++]));case 1:c.push(e(a[b++]))}a=a.subarray(b)}return c.join(" ")},g=function(a,b){var c=["AVC Sequence Header","AVC NALU","AVC End-of-Sequence"],d=a[1]&parseInt("01111111",2)<<16|a[2]<<8|a[3];return b=b||{},b.avcPacketType=c[a[0]],b.CompositionTime=a[1]&parseInt("10000000",2)?-d:d,1===a[0]?b.nalUnitTypeRaw=f(a.subarray(4,100)):b.data=f(a.subarray(4)),b},h=function(a,b){var c=["Unknown","Keyframe (for AVC, a seekable frame)","Inter frame (for AVC, a nonseekable frame)","Disposable inter frame (H.263 only)","Generated keyframe (reserved for server use only)","Video info/command frame"],d=a[0]&parseInt("00001111",2);return b=b||{},b.frameType=c[(a[0]&parseInt("11110000",2))>>>4],b.codecID=d,7===d?g(a.subarray(1),b):b},i=function(a,b){var c=["AAC Sequence Header","AAC Raw"];return b=b||{},b.aacPacketType=c[a[0]],b.data=f(a.subarray(1)),b},j=function(a,b){var c=["Linear PCM, platform endian","ADPCM","MP3","Linear PCM, little endian","Nellymoser 16-kHz mono","Nellymoser 8-kHz mono","Nellymoser","G.711 A-law logarithmic PCM","G.711 mu-law logarithmic PCM","reserved","AAC","Speex","MP3 8-Khz","Device-specific sound"],d=["5.5-kHz","11-kHz","22-kHz","44-kHz"],e=(a[0]&parseInt("11110000",2))>>>4;return b=b||{},b.soundFormat=c[e],b.soundRate=d[(a[0]&parseInt("00001100",2))>>>2],b.soundSize=(a[0]&parseInt("00000010",2))>>>1?"16-bit":"8-bit",b.soundType=a[0]&parseInt("00000001",2)?"Stereo":"Mono",10===e?i(a.subarray(1),b):b},k=function(a){return{tagType:d[a[0]],dataSize:a[1]<<16|a[2]<<8|a[3],timestamp:a[7]<<24|a[4]<<16|a[5]<<8|a[6],streamID:a[8]<<16|a[9]<<8|a[10]}},l=function(a){var b=k(a);switch(a[0]){case 8:j(a.subarray(11),b);break;case 9:h(a.subarray(11),b)}return b},m=function(a){var b,c,d=9,e=[];for(d+=4;d>>2,dependsOn:3&a[0],isDependedOn:(192&a[1])>>>6,hasRedundancy:(48&a[1])>>>4,paddingValue:(14&a[1])>>>1,isNonSyncSample:1&a[1],degradationPriority:a[2]<<8|a[3]}},h=function(a){var b,c,d=new DataView(a.buffer,a.byteOffset,a.byteLength),e=[];for(b=0;b+4MALFORMED DATA");else switch(31&a[b]){case 1:e.push("slice_layer_without_partitioning_rbsp");break;case 5:e.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:e.push("sei_rbsp");break;case 7:e.push("seq_parameter_set_rbsp");break;case 8:e.push("pic_parameter_set_rbsp");break;case 9:e.push("access_unit_delimiter_rbsp");break;default:e.push("UNKNOWN NAL - "+a[b]&31)}return e},i={avc1:function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{dataReferenceIndex:b.getUint16(6),width:b.getUint16(24),height:b.getUint16(26),horizresolution:b.getUint16(28)+b.getUint16(30)/16,vertresolution:b.getUint16(32)+b.getUint16(34)/16,frameCount:b.getUint16(40),depth:b.getUint16(74),config:c(a.subarray(78,a.byteLength))}},avcC:function(a){var b,c,d,e,f=new DataView(a.buffer,a.byteOffset,a.byteLength),g={configurationVersion:a[0],avcProfileIndication:a[1],profileCompatibility:a[2],avcLevelIndication:a[3],lengthSizeMinusOne:3&a[4],sps:[],pps:[]},h=31&a[5];for(d=6,e=0;e>>2&63,bufferSize:a[13]<<16|a[14]<<8|a[15],maxBitrate:a[16]<<24|a[17]<<16|a[18]<<8|a[19],avgBitrate:a[20]<<24|a[21]<<16|a[22]<<8|a[23],decoderConfigDescriptor:{tag:a[24],length:a[25],audioObjectType:a[26]>>>3&31,samplingFrequencyIndex:(7&a[26])<<1|a[27]>>>7&1,channelConfiguration:a[27]>>>3&15}}}},ftyp:function(a){for(var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={majorBrand:e(a.subarray(0,4)),minorVersion:b.getUint32(4),compatibleBrands:[]},d=8;d>10)),e.language+=String.fromCharCode(96+((960&b)>>5)),e.language+=String.fromCharCode(96+(31&b)),e},mdia:function(a){return{boxes:c(a)}},mfhd:function(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sequenceNumber:a[4]<<24|a[5]<<16|a[6]<<8|a[7]}},minf:function(a){return{boxes:c(a)}},mp4a:function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),d={dataReferenceIndex:b.getUint16(6),channelcount:b.getUint16(16),samplesize:b.getUint16(18),samplerate:b.getUint16(24)+b.getUint16(26)/65536};return a.byteLength>28&&(d.streamDescriptor=c(a.subarray(28))[0]),d},moof:function(a){return{boxes:c(a)}},moov:function(a){return{boxes:c(a)}},mvex:function(a){return{boxes:c(a)}},mvhd:function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4))};return 1===d.version?(c+=4,d.creationTime=f(b.getUint32(c)),c+=8,d.modificationTime=f(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=8,d.duration=b.getUint32(c)):(d.creationTime=f(b.getUint32(c)),c+=4,d.modificationTime=f(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=4,d.duration=b.getUint32(c)),c+=4,d.rate=b.getUint16(c)+b.getUint16(c+2)/16,c+=4,d.volume=b.getUint8(c)+b.getUint8(c+1)/8,c+=2,c+=2,c+=8,d.matrix=new Uint32Array(a.subarray(c,c+36)),c+=36,c+=24,d.nextTrackId=b.getUint32(c),d},pdin:function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),rate:b.getUint32(4),initialDelay:b.getUint32(8)}},sdtp:function(a){var b,c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]};for(b=4;b>4,isDependedOn:(12&a[b])>>2,hasRedundancy:3&a[b]});return c},sidx:function(a){var b,c=new DataView(a.buffer,a.byteOffset,a.byteLength),d={version:a[0],flags:new Uint8Array(a.subarray(1,4)),references:[],referenceId:c.getUint32(4),timescale:c.getUint32(8),earliestPresentationTime:c.getUint32(12),firstOffset:c.getUint32(16)},e=c.getUint16(22);for(b=24;e;b+=12,e--)d.references.push({referenceType:(128&a[b])>>>7,referencedSize:2147483647&c.getUint32(b),subsegmentDuration:c.getUint32(b+4),startsWithSap:!!(128&a[b+8]),sapType:(112&a[b+8])>>>4,sapDeltaTime:268435455&c.getUint32(b+8)});return d},smhd:function(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),balance:a[4]+a[5]/256}},stbl:function(a){return{boxes:c(a)}},stco:function(a){var b,c=new DataView(a.buffer,a.byteOffset,a.byteLength),d={version:a[0],flags:new Uint8Array(a.subarray(1,4)),chunkOffsets:[]},e=c.getUint32(4);for(b=8;e;b+=4,e--)d.chunkOffsets.push(c.getUint32(b));return d},stsc:function(a){var b,c=new DataView(a.buffer,a.byteOffset,a.byteLength),d=c.getUint32(4),e={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleToChunks:[]};for(b=8;d;b+=12,d--)e.sampleToChunks.push({firstChunk:c.getUint32(b),samplesPerChunk:c.getUint32(b+4),sampleDescriptionIndex:c.getUint32(b+8)});return e},stsd:function(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleDescriptions:c(a.subarray(8))}},stsz:function(a){var b,c=new DataView(a.buffer,a.byteOffset,a.byteLength),d={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleSize:c.getUint32(4),entries:[]};for(b=12;b>6,sampleHasRedundancy:(48&a[21])>>4,samplePaddingValue:(14&a[21])>>1,sampleIsDifferenceSample:!!(1&a[21]),sampleDegradationPriority:b.getUint16(22)}},trun:function(a){var b,c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]},d=new DataView(a.buffer,a.byteOffset,a.byteLength),e=1&c.flags[2],f=4&c.flags[2],h=1&c.flags[1],i=2&c.flags[1],j=4&c.flags[1],k=8&c.flags[1],l=d.getUint32(4),m=8;for(e&&(c.dataOffset=d.getUint32(m),m+=4),f&&l&&(b={flags:g(a.subarray(m,m+4))},m+=4,h&&(b.duration=d.getUint32(m),m+=4),i&&(b.size=d.getUint32(m),m+=4),k&&(b.compositionTimeOffset=d.getUint32(m),m+=4),c.samples.push(b),l--);l--;)b={},h&&(b.duration=d.getUint32(m),m+=4),i&&(b.size=d.getUint32(m),m+=4),j&&(b.flags=g(a.subarray(m,m+4)),m+=4),k&&(b.compositionTimeOffset=d.getUint32(m),m+=4),c.samples.push(b);return c},"url ":function(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4))}},vmhd:function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),graphicsmode:b.getUint16(4),opcolor:new Uint16Array([b.getUint16(6),b.getUint16(8),b.getUint16(10)])}}};c=function(a){for(var b,c,d,f,g,h=0,j=[],k=new ArrayBuffer(a.length),l=new Uint8Array(k),m=0;m1?h+c:a.byteLength,g=(i[d]||function(a){return{data:a}})(a.subarray(h+8,f)),g.size=c,g.type=d,j.push(g),h=f;return j},d=function(a,b){var c;return b=b||0,c=new Array(2*b+1).join(" "),a.map(function(a,e){return c+a.type+"\n"+Object.keys(a).filter(function(a){return"type"!==a&&"boxes"!==a}).map(function(b){var d=c+" "+b+": ",e=a[b];if(e instanceof Uint8Array||e instanceof Uint32Array){var f=Array.prototype.slice.call(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).map(function(a){return" "+("00"+a.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return f?1===f.length?d+"<"+f.join("").slice(1)+">":d+"<\n"+f.map(function(a){return c+" "+a}).join("\n")+"\n"+c+" >":d+"<>"}return d+JSON.stringify(e,null,2).split("\n").map(function(a,b){return 0===b?a:c+" "+a}).join("\n")}).join("\n")+(a.boxes?"\n"+d(a.boxes,b+1):"")}).join("\n")},b.exports={inspect:c,textify:d}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(a,b,c){"use strict";var d;d=function(a){var b=a.byteLength,c=0,d=0;this.length=function(){return 8*b},this.bitsAvailable=function(){return 8*b+d},this.loadWord=function(){var e=a.byteLength-b,f=new Uint8Array(4),g=Math.min(4,b);if(0===g)throw new Error("no bytes available");f.set(a.subarray(e,e+g)),c=new DataView(f.buffer).getUint32(0),d=8*g,b-=g},this.skipBits=function(a){var e;d>a?(c<<=a,d-=a):(a-=d,e=Math.floor(a/8),a-=8*e,b-=e,this.loadWord(),c<<=a,d-=a)},this.readBits=function(a){var e=Math.min(d,a),f=c>>>32-e;return d-=e,d>0?c<<=e:b>0&&this.loadWord(),e=a-e,e>0&&d?f<>>a))return c<<=a,d-=a,a;return this.loadWord(),a+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var a=this.skipLeadingZeros();return this.readBits(a+1)-1},this.readExpGolomb=function(){var a=this.readUnsignedExpGolomb();return 1&a?1+a>>>1:-(a>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},b.exports=d},{}],21:[function(a,b,c){"use strict";var d=function(){this.init=function(){var a={};this.on=function(b,c){a[b]||(a[b]=[]),a[b].push(c)},this.off=function(b,c){var d;return!!a[b]&&(d=a[b].indexOf(c),a[b].splice(d,1),d>-1)},this.trigger=function(b){var c,d,e,f;if(c=a[b])if(c=c.slice(0),2===arguments.length)for(e=c.length,d=0;d0)for(var e=0;e "+j)}};b.on(v.concat(["adtimeout","contentupdate","contentplaying","contentended","contentresumed","adstart","adend","adskip","adsready","adserror","adscanceled","nopreroll"]),f),b.paused()||f({type:"play"})};i.default.plugin("ads",y)},{"./cancelContentPlay.js":22,"./contentupdate.js":23,"./cueTextTracks.js":24,"./macros.js":25,"./redispatch.js":27,"./snapshot.js":28,"global/window":54,"video.js":200}],27:[function(a,b,c){"use strict";function d(a){if("playing"===a.type&&"preroll?"===this.ads.state)f(this,"ad",a);else if("playing"!==a.type||"ad-playback"!==this.ads.state||this.ads.videoElementRecycled())if("playing"===a.type&&"ads-ready?"===this.ads.state)f(this,"ad",a);else{if("playing"===a.type&&"ad-playback"===this.ads.state&&this.ads.videoElementRecycled())return void e(this,a);if("ad-playback"===this.ads.state)(this.ads.videoElementRecycled()||this.ads.stitchedAds())&&f(this,"ad",a);else if("content-playback"===this.ads.state&&"ended"===a.type)f(this,"content",a);else if("content-resuming"===this.ads.state){if(this.ads.snapshot&&this.currentSrc()!==this.ads.snapshot.currentSrc){if("loadstart"===a.type)return;return f(this,"content",a)}if(this.ads.snapshot&&this.ads.snapshot.ended){if("pause"===a.type||"ended"===a.type)return;return f(this,"content",a)}"playing"!==a.type&&f(this,"content",a)}}else f(this,"ad",a)}c.__esModule=!0,c.default=d;var e=function(a,b){b.isImmediatePropagationStopped=function(){return!0},b.cancelBubble=!0,b.isPropagationStopped=function(){return!0}},f=function(a,b,c){e(a,c),a.trigger({type:b+c.type,state:a.ads.state,originalEvent:c})}},{}],28:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){var b=void 0;b=j.default.browser.IS_IOS&&a.ads.isLive(a)&&a.seekable().length>0?a.currentTime()-a.seekable().end(0):a.currentTime();var c=a.$(".vjs-tech"),d=a.remoteTextTracks?a.remoteTextTracks():[],e=a.textTracks?a.textTracks():[],f=[],g=[],h={ended:a.ended(),currentSrc:a.currentSrc(),src:a.src(),currentTime:b,type:a.currentType()};c&&(h.nativePoster=c.poster,h.style=c.getAttribute("style"));for(var i=0;i0?a.seekable().end(0)+b.currentTime:a.currentTime(),a.currentTime(c)):b.ended?a.currentTime(a.duration()):a.currentTime(b.currentTime),b.ended||a.play()},l=function b(){if(a.off("contentcanplay",b),a.ads.tryToResumeTimeout_&&(a.clearTimeout(a.ads.tryToResumeTimeout_),a.ads.tryToResumeTimeout_=null),c=a.el().querySelector(".vjs-tech"),c.readyState>1)return k();if(void 0===c.seekable)return k();if(c.seekable.length>0)return k();if(d--)h.default.setTimeout(b,50);else try{k()}catch(a){j.default.log.warn("Failed to resume the content after an advertisement",a)}};b.nativePoster&&(c.poster=b.nativePoster),"style"in b&&c.setAttribute("style",b.style||""),a.ads.videoElementRecycled()?(a.one("contentloadedmetadata",i),a.src({src:b.currentSrc,type:b.type}),a.load(),a.one("contentcanplay",l),a.ads.tryToResumeTimeout_=a.setTimeout(l,2e3)):a.ended()&&b.ended||(i(),a.play())}c.__esModule=!0,c.getPlayerSnapshot=e,c.restorePlayerSnapshot=f;var g=a("global/window"),h=d(g),i=a("video.js"),j=d(i)},{"global/window":54,"video.js":200}],29:[function(a,b,c){(function(a){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d="undefined"!=typeof window?window.videojs:void 0!==a?a.videojs:null,e=function(a){return a&&a.__esModule?a:{default:a}}(d),f=function(a){Object.defineProperties(a.frame,{id:{get:function(){return e.default.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),a.value.key}},value:{get:function(){return e.default.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),a.value.data}},privateData:{get:function(){return e.default.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),a.value.data}}})},g=function(a,b,c){var d=window.WebKitDataCue||window.VTTCue;b&&b.forEach(function(a){this.inbandTextTrack_.addCue(new d(a.startTime+this.timestampOffset,a.endTime+this.timestampOffset,a.text))},a),c&&c.forEach(function(a){var b=a.cueTime+this.timestampOffset;a.frames.forEach(function(a){var c=new d(b,b,a.value||a.url||a.data||"");c.frame=a,c.value=a,f(c),this.metadataTrack_.addCue(c)},this)},a)};c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],30:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=function(a){return/mp4a\.\d+.\d+/i.test(a)},e=function(a){return/avc1\.[\da-f]+/i.test(a)},f=function(a){var b={type:"",parameters:{}},c=a.trim().split(";");return b.type=c.shift().trim(),c.forEach(function(a){var c=a.trim().split("=");if(c.length>1){var d=c[0].replace(/"/g,"").trim(),e=c[1].replace(/"/g,"").trim();b.parameters[d]=e}}),b};c.default={isAudioCodec:d,parseContentType:f,isVideoCodec:e},b.exports=c.default},{}],31:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=function(a,b,c){c.captions&&c.captions.length&&!a.inbandTextTrack_&&(a.inbandTextTrack_=b.player_.addTextTrack("captions","cc1")),c.metadata&&c.metadata.length&&!a.metadataTrack_&&(a.metadataTrack_=b.player_.addTextTrack("metadata","Timed Metadata"),a.metadataTrack_.inBandMetadataTrackDispatchType=c.metadata.dispatchType)};c.default=d,b.exports=c.default},{}],32:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:32768};c.default=d,b.exports=c.default},{}],33:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;c=0&&(this.timestampOffset_=a,this.segmentParser_=new m.default.flv.Transmuxer,this.segmentParser_.on("data",this.receiveBuffer_.bind(this)),this.mediaSource.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN)}}),Object.defineProperty(this,"buffered",{get:function(){if(!(this.mediaSource&&this.mediaSource.swfObj&&"vjs_getProperty"in this.mediaSource.swfObj))return k.default.createTimeRange();var a=this.mediaSource.swfObj.vjs_getProperty("buffered");return a&&a.length&&(a[0][0]=x(a[0][0],3),a[0][1]=x(a[0][1],3)),k.default.createTimeRanges(a)}}),this.mediaSource.player_.on("seeked",function(){(0,o.default)(0,1/0,c.metadataTrack_),(0,o.default)(0,1/0,c.inbandTextTrack_)})}return g(b,a),h(b,[{key:"appendBuffer",value:function(a){var b=this,c=void 0,d=0;if(this.updating)throw c=new Error("SourceBuffer.append() cannot be called while an update is in progress"),c.name="InvalidStateError",c.code=11,c;this.updating=!0,this.mediaSource.readyState="open",this.trigger({type:"update"});!function c(){b.segmentParser_.push(a.subarray(d,d+524288)),d+=524288,v(d=d&&h.push(i[e]);if(0!==h.length){for(e=0;ethis.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=b)}},{key:"addSourceBuffer",value:function(a){var b=void 0,c=(0,n.parseContentType)(a);if("video/mp2t"===c.type){var d=[];c.parameters&&c.parameters.codecs&&(d=c.parameters.codecs.split(","),d=o(d),d=d.map(function(a){return a.trim()}),d=d.filter(function(a){return(0,n.isAudioCodec)(a)||(0,n.isVideoCodec)(a)})),0===d.length&&(d=["avc1.4d400d","mp4a.40.2"]),b=new m.default(this,d),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),b.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else b=this.nativeMediaSource_.addSourceBuffer(a);return this.sourceBuffers.push(b),b}}]),b}(k.default.EventTarget);c.default=p,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./codec-utils":30,"./virtual-source-buffer":39}],36:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=function(a,b,c){var d=void 0,e=void 0;if(c)for(d=c.cues.length;d--;)e=c.cues[d],e.startTime<=b&&e.endTime>=a&&c.removeCue(e)};c.default=d,b.exports=c.default},{}],37:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c=0&&(this.timestampOffset_=a,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:a}))}}),Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(a){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=a),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=a)}}),Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(this,"buffered",{get:function(){var a=null,b=null,c=0,d=[],e=[];if(!this.videoBuffer_&&(this.audioDisabled_||!this.audioBuffer_))return k.default.createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(this.audioDisabled_||!this.audioBuffer_)return this.videoBuffer_.buffered;if(!(this.videoBuffer_&&0!==this.videoBuffer_.buffered.length||this.audioBuffer_&&0!==this.audioBuffer_.buffered.length))return k.default.createTimeRange();for(var f=this.videoBuffer_.buffered,g=this.audioBuffer_.buffered,h=f.length;h--;)d.push({time:f.start(h),type:"start"}),d.push({time:f.end(h),type:"end"});for(h=g.length;h--;)d.push({time:g.start(h),type:"start"}),d.push({time:g.end(h),type:"end"});for(d.sort(function(a,b){return a.time-b.time}),h=0;h=0&&(c.splice(e,1),a.className=c.join(" "))}function g(a,b,c){c?e(a,b):f(a,b)}var h=function(b,c){var d=this;this.vjs=b,this.el=b.el(),this.opt=c,this.intv=0,this.stagger=5,this.steptotal=5,this.classes_added=[],this.vjs.on("dispose",function(){d.dispose()}),this.vjs.on("ready",function(){d.init()}),this._resize=this.resize.bind(this),this.vjs.on("resize",this._resize),a.addEventListener("resize",this._resize),this.apply(),this.resize()};h.prototype.apply=function(){var a,b=[this.opt.className];for(this.opt.show_controls_before_start&&b.push("vjs-show-controls-before-start"),this.opt.show_time_for_live&&b.push("vjs-show-time-for-live");a=b.shift();)e(this.el,a)&&this.classes_added.push(a)},h.prototype.resize=function(){g(this.el,"vjs-large",this.el.offsetWidth>=768),g(this.el,"vjs-small",this.el.offsetWidth<=480)};var i="M 0,0 0,20 14,10 Z",j="M 0,0 0,20 0,10 Z",k="M 0,0 0,0 0,20 0,20 M 0,0 0,0 0,20 0,20 Z",l="M 0,0 5,0 5,20 0,20 M 9,0 14,0 14,20 9,20 Z",m=['','','','','','','','','',"","","","",""].join(""),n=['','',""].join(""),o='
';h.prototype.set_play_button_state=function(a,b){function c(a,b,c){return function(){var d=isNaN(a)?a:parseFloat(a),e=isNaN(a)?"":(parseFloat(b)-d)/parseFloat(c);return function(){return d+=e}}()}function d(a,b,d){var e=a.split(" ").slice(1,-1),f=b.split(" ").slice(1,-1);return function(){var a=e.map(function(a,b){return a.split(",").map(function(a,e){return c(a,f[b].split(",")[e],d)})});return function(){return a.reduce(function(a,b){return 1==b.length?a+" "+b[0]():a+" "+b.reduce(function(a,b){return a()+","+b()})},"M")+" Z"}}()}if(this.play_state!=b){var e=void 0===this.play_state;this.play_state=b;var f=this.intv,g=this,h=this.steptotal,m=this.stagger,n=document.getElementById("umorph_"+this.vjs.id()),o=a.getElementsByTagName("path"),p=0;if(f&&clearInterval(f),"ended"==b){n.setAttribute("transform","translate(-2, 0)");var q=5,r=setInterval(function(){o[0].setAttribute("transform","rotate("+q+")"),--q<0&&clearInterval(r)},100);return a.parentNode.setAttribute("transform","translate(0, 0)"),o[0].setAttribute("d",""),void o[1].setAttribute("display","none")}o[1].removeAttribute("display");var s=a.parentNode.getAttribute("transform");if(a.parentNode.removeAttribute("transform"),n.removeAttribute("transform"),s&&o[0].setAttribute("d",""),e)return o[0].setAttribute("d","paused"==b?i:l),void o[1].setAttribute("d","paused"==b?k:j);if("paused"==b){var t=d(j,i,h),u=d(l,k,h);return void(this.intv=setInterval(function(){p=m&&o[0].setAttribute("d",t()),++p>=h+m&&(clearInterval(g.intv),g.intv=0)},20))}var v=d(i,j,h),w=d(k,l,h);this.intv=setInterval(function(){p=m&&o[1].setAttribute("d",w()),++p>=h+m&&(clearInterval(g.intv),g.intv=0)},20)}},h.prototype.init=function(){var a=this,b=this.vjs;this.opt.no_play_transform&&(this.steptotal=1,this.stagger=0),this.has_played=!1,b.controlBar.playToggle.el().insertAdjacentHTML("beforeend",m.replace(/{morph}/g,"morph_"+b.id())),b.bigPlayButton.el().insertAdjacentHTML("beforeend",n.replace(/{morph}/g,"morph_"+b.id())),b.on("play",function(){a.is_ended=!1,a.update_state(b)}).on("pause",function(){a.update_state(b)}).on("adend",function(){a.update_state(b)}).on("ended",function(){a.is_ended=!0,a.update_state(b)}).on("seeking",function(){b.currentTime()?(a.is_ended=!1,a.has_played=!0):a.has_played=!1,a.update_state(b)}).on("timeupdate",function(c,d,e){var f=!!b.currentTime();f!=a.has_played&&(a.has_played=f,a.update_state(b))}),this.update_state(b),b.controlBar.volumeMenuButton.volumeBar.el().insertAdjacentHTML("beforeend",o),b.controlBar.progressControl.seekBar.el().insertAdjacentHTML("beforeend",o)},h.prototype.update_state=function(a){var b=a.controlBar.playToggle.el(),c=a.bigPlayButton.el();g(b,"vjs-play-control-replay",this.is_ended),g(c,"vjs-play-control-replay",this.is_ended),g(a.el_,"vjs-pos-ended",this.is_ended&&this.has_played),g(a.el_,"vjs-pos-started",this.has_played),this.set_play_button_state(document.getElementById("morph_"+a.id()),this.is_ended?"ended":a.paused()?"paused":"playing")},h.prototype.dispose=function(){for(;this.classes_added.length;)f(this.el,this.classes_added.pop());a.removeEventListener("resize",this._resize)};var p=b.getComponent("MenuButton"),q=b.getComponent("VolumeMenuButton");q.prototype.createEl=function(){var a=p.prototype.createEl.call(this),b=this.icon_=document.createElement("div");return b.setAttribute("class","vjs-button-icon"),b.innerHTML='',a.insertBefore(b,a.firstChild),a},q.prototype.tooltipHandler=function(){return this.icon_};var r=b.getComponent("Button"),s=b.getComponent("FullscreenToggle");s.prototype.controlText_="Full screen",s.prototype.createEl=function(){var a=r.prototype.createEl.call(this),b=this.icon_=document.createElement("div");return b.setAttribute("class","vjs-button-icon"),a.insertBefore(b,a.firstChild),a},s.prototype.updateHint=function(){this.player_.isFullscreen()?this.controlText("Exit full screen"):this.controlText("Full screen")};var t=b.getComponent("SeekBar"),u=t.prototype.createEl;t.prototype.createEl=function(){var a=u.call(this);return a.appendChild(b.createEl("div",{className:"vjs-slider-padding"})),a};var v={className:"vjs5-hola-skin",css:"/css/videojs-hola-skin.css",ver:"ver={[version]}"};b.plugin("hola_skin",function(a){!1===a&&(a={css:!1,className:!1});var d=b.mergeOptions(v,a);!d.css||a.className&&!a.css||c(d.css,d.ver),new h(this,d)})}(window,window.videojs)},{}],42:[function(b,c,d){!function(b){if("function"==typeof a&&a.amd)a(["video.js","videojs-contrib-ads"],function(a){b(window,document,a)});else if("object"==typeof d&&"object"==typeof c){var e=window.videojs;b(window,document,e)}else b(window,document,videojs)}(function(a,b,c){"use strict";var d=function(a){var b,c,d;for(c=1;c0?c:0;var d,e=!1,f=0;this.currentAd.getAdPodInfo()&&(e=!0,d=this.currentAd.getAdPodInfo().getAdPosition(),f=this.currentAd.getAdPodInfo().getTotalAds());var g=Math.floor(a/60),h=Math.floor(a%60);h.toString().length<2&&(h="0"+h);var i=": ";e&&f>1&&(i=" ("+d+" of "+f+"): "),this.countdownDiv.innerHTML=this.settings.adLabel+i+g+":"+h;var j=c/b,k=100*j;this.progressDiv.style.width=k+"%"}.bind(this);this.getPlayerWidth=function(){return parseInt(getComputedStyle(this.player.el()).width,10)||this.player.width()}.bind(this),this.getPlayerHeight=function(){return parseInt(getComputedStyle(this.player.el()).height,10)||this.player.height()}.bind(this);var w=function(){this.controlsDiv.style.height="14px",this.playPauseDiv.style.display="none",this.muteDiv.style.display="none",this.sliderDiv.style.display="none",this.fullscreenDiv.style.display="none"}.bind(this),x=function(){this.controlsDiv.style.height="37px",this.playPauseDiv.style.display="block",this.muteDiv.style.display="block",this.sliderDiv.style.display="block",this.fullscreenDiv.style.display="block"}.bind(this),y=function(){k(this.playPauseDiv,"ima-paused"),l(this.playPauseDiv,"ima-playing")}.bind(this),z=function(){k(this.playPauseDiv,"ima-playing"),l(this.playPauseDiv,"ima-paused")}.bind(this),A=function(){this.adPlaying?(y(),this.adsManager.pause(),this.adPlaying=!1):(z(),this.adsManager.resume(),this.adPlaying=!0)}.bind(this),B=function(){this.adMuted?(k(this.muteDiv,"ima-non-muted"),l(this.muteDiv,"ima-muted"),this.adsManager.setVolume(1),this.player.muted(!1),this.adMuted=!1,this.sliderLevelDiv.style.width=100*this.player.volume()+"%"):(k(this.muteDiv,"ima-muted"),l(this.muteDiv,"ima-non-muted"),this.adsManager.setVolume(0),this.player.muted(!0),this.adMuted=!0,this.sliderLevelDiv.style.width="0%")}.bind(this),C=function(){b.addEventListener(f.mouseup,E,!1),b.addEventListener(f.mousemove,D,!1)},D=function(a){F(a)},E=function(a){F(a),b.removeEventListener(f.mousemove,D),b.removeEventListener(f.mouseup,E)},F=function(a){var b=a.changedTouches?a.changedTouches[0].clientX:a.clientX,c=(b-this.sliderDiv.getBoundingClientRect().left)/this.sliderDiv.offsetWidth;c*=100,c=Math.min(Math.max(c,0),100),this.sliderLevelDiv.style.width=c+"%",this.player.volume(c/100),this.adsManager.setVolume(c/100),0==this.player.volume()?(k(this.muteDiv,"ima-muted"),l(this.muteDiv,"ima-non-muted"),this.player.muted(!0),this.adMuted=!0):(k(this.muteDiv,"ima-non-muted"),l(this.muteDiv,"ima-muted"),this.player.muted(!1),this.adMuted=!1)}.bind(this),G=function(){this.player.isFullscreen()?this.player.exitFullscreen():this.player.requestFullscreen()}.bind(this),H=function(){this.player.isFullscreen()?(k(this.fullscreenDiv,"ima-fullscreen"),l(this.fullscreenDiv,"ima-non-fullscreen"),this.adsManager&&this.adsManager.resize(a.screen.width,a.screen.height,google.ima.ViewMode.FULLSCREEN)):(k(this.fullscreenDiv,"ima-non-fullscreen"),l(this.fullscreenDiv,"ima-fullscreen"),this.adsManager&&this.adsManager.resize(this.getPlayerWidth(),this.getPlayerHeight(),google.ima.ViewMode.NORMAL))}.bind(this),I=function(){var a=this.player.muted()?0:this.player.volume();this.adsManager&&this.adsManager.setVolume(a),0==a?(this.adMuted=!0,k(this.muteDiv,"ima-muted"),l(this.muteDiv,"ima-non-muted"),this.sliderLevelDiv.style.width="0%"):(this.adMuted=!1,k(this.muteDiv,"ima-non-muted"),l(this.muteDiv,"ima-muted"),this.sliderLevelDiv.style.width=100*a+"%")}.bind(this),J=function(){this.player.off("loadedmetadata",J),this.player.currentTime(0)}.bind(this),K=function(){this.player.off("loadedmetadata",K),this.player.currentTime(0),this.player.play()}.bind(this),L=function(){this.adsActive=!1,this.adPlaying=!1,this.player.on("contentended",this.localContentEndedListener),this.currentAd&&this.currentAd.isLinear()&&(this.adContainerDiv.style.display="none"),this.vjsControls.show(),this.player.ads.endLinearAdMode(),this.adTrackingTimer&&clearInterval(this.adTrackingTimer),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null),this.adsLoader&&!this.contentComplete&&this.adsLoader.contentComplete(),this.contentComplete=!1,this.allAdsCompleted=!1}.bind(this);this.addEventListener=function(a,b){this.adsManager&&this.adsManager.addEventListener(a,b)}.bind(this),this.getAdsManager=function(){return this.adsManager}.bind(this),this.setContent=function(b,c,d){a.console.log("WARNING: player.ima.setContent is deprecated. Use player.ima.setContentWithAdTag instead."),this.setContentWithAdTag(b,c,d)}.bind(this),this.setContentWithAdTag=function(a,b,c){L(),this.settings.adTagUrl=b||this.settings.adTagUrl,M(a,c)}.bind(this),this.setContentWithAdsResponse=function(a,b,c){L(),this.settings.adsResponse=b||this.settings.adsResponse,M(a,c)}.bind(this),this.playAd=function(a){L(),this.settings.adTagUrl=a||this.settings.adTagUrl,this.requestAds()}.bind(this);var M=function(a,b){this.player.currentSrc()&&(this.player.currentTime(0),this.player.pause()),a&&this.player.src(a),b?this.player.on("loadedmetadata",K):this.player.on("loadedmetadata",J)}.bind(this);this.addContentEndedListener=function(a){this.contentEndedListeners.push(a)}.bind(this),this.addContentAndAdsEndedListener=function(a){this.contentAndAdsEndedListeners.push(a)}.bind(this),this.setAdBreakReadyListener=function(a){this.adBreakReadyListener=a}.bind(this),this.pauseAd=function(){this.adsActive&&this.adPlaying&&(y(),this.adsManager.pause(),this.adPlaying=!1)}.bind(this),this.resumeAd=function(){this.adsActive&&!this.adPlaying&&(z(),this.adsManager.resume(),this.adPlaying=!0)}.bind(this);var N=function(){this.updateTimeIntervalHandle=setInterval(P,this.seekCheckInterval),this.seekCheckIntervalHandle=setInterval(Q,this.seekCheckInterval),this.resizeCheckIntervalHandle=setInterval(R,this.resizeCheckInterval)}.bind(this),O=function(){var a=this.player.currentTime();a&&"content-playback"==this.player.ads.state&&(a<1&&(a=0),this.contentPlayheadTracker.startTime=a,this.player.off("timeupdate",O))}.bind(this),P=function(){"content-playback"==this.player.ads.state&&!this.contentPlayheadTracker.seeking&&this.contentPlayheadTracker.startTime>=0&&(this.contentPlayheadTracker.currentTime=this.player.currentTime()-this.contentPlayheadTracker.startTime)}.bind(this),Q=function(){if("content-playback"==this.player.ads.state){var a=this.player.currentTime(),b=1e3*(a-this.contentPlayheadTracker.previousTime);Math.abs(b)>this.seekCheckInterval+this.seekThreshold?this.contentPlayheadTracker.seeking=!0:this.contentPlayheadTracker.seeking=!1,this.contentPlayheadTracker.previousTime=this.player.currentTime()}}.bind(this),R=function(){var a=this.getPlayerWidth(),b=this.getPlayerHeight();!this.adsManager||a==this.adsManagerDimensions.width&&b==this.adsManagerDimensions.height||(this.adsManagerDimensions.width=a,this.adsManagerDimensions.height=b,this.adsManager.resize(a,b,google.ima.ViewMode.NORMAL))}.bind(this);if(this.setShowCountdown=function(a){this.showCountdown=a,this.countdownDiv.style.display=this.showCountdown?"block":"none"}.bind(this),this.VERSION="0.2.0",this.settings,this.controlPrefix,this.contentPlayer,this.showCountdown,this.autoPlayAdBreaks,this.vjsControls,this.adContainerDiv,this.controlsDiv,this.countdownDiv,this.seekBarDiv,this.progressDiv,this.playPauseDiv,this.muteDiv,this.sliderDiv,this.sliderLevelDiv,this.fullscreenDiv,this.adDisplayContainer,this.adDisplayContainerInitialized=!1,this.adsLoader,this.adsManager,this.adsRenderingSettings=null,this.adTagUrl,this.adsResponse,this.currentAd,this.contentTrackingTimer,this.adTrackingTimer,this.adsActive=!1,this.adPlaying=!1,this.adMuted=!1,this.contentComplete=!1,this.allAdsCompleted=!1,this.updateTimeIntervalHandle,this.seekCheckIntervalHandle,this.seekCheckInterval=1e3,this.resizeCheckIntervalHandle,this.resizeCheckInterval=250,this.seekThreshold=100,this.contentPlayheadTracker={currentTime:0,previousTime:0,seeking:!1,duration:0,startTime:-1},this.adPlayheadTracker={currentTime:0,duration:0,isPod:!1,adPosition:0,totalAds:0},this.adsManagerDimensions={width:0,height:0},this.contentEndedListeners=[],this.contentAndAdsEndedListeners=[],this.adBreakReadyListener=void 0,this.contentSource="",this.localContentEndedListener=function(){this.adsLoader&&!this.contentComplete&&(this.adsLoader.contentComplete(),this.contentComplete=!0);for(var a in this.contentEndedListeners)this.contentEndedListeners[a]();if(this.allAdsCompleted)for(var a in this.contentAndAdsEndedListeners)this.contentAndAdsEndedListeners[a]();clearInterval(this.updateTimeIntervalHandle),clearInterval(this.seekCheckIntervalHandle),clearInterval(this.resizeCheckIntervalHandle),this.player.el()&&this.player.one("play",N)}.bind(this),this.playerDisposedListener=function(){this.contentEndedListeners,this.contentAndAdsEndedListeners=[],this.contentComplete=!0,this.player.off("contentended",this.localContentEndedListener),this.player.off("timeupdate",O),this.player.ads.adTimeoutTimeout&&clearTimeout(this.player.ads.adTimeoutTimeout);var a=[this.updateTimeIntervalHandle,this.seekCheckIntervalHandle,this.adTrackingTimer,this.resizeCheckIntervalHandle];for(var b in a){var c=a[b];c&&clearInterval(c)}this.adsManager&&(this.adsManager.destroy(),this.adsManager=null)}.bind(this),this.settings=d({},e,g||{}),!this.settings.id)return void a.console.log("Error: must provide id of video.js div");this.controlPrefix=this.settings.id+"_"||"",this.contentPlayer=this.player.$(".vjs-tech"),this.showCountdown=!0,0==this.settings.showCountdown&&(this.showCountdown=!1),this.autoPlayAdBreaks=!0,0==this.settings.autoPlayAdBreaks&&(this.autoPlayAdBreaks=!1);var S={debug:this.settings.debug,timeout:this.settings.timeout,prerollTimeout:this.settings.prerollTimeout},T=d({},S,g.contribAdsSettings||{});if(c.ads(T),c.one("play",N),c.on("contentended",this.localContentEndedListener),c.on("dispose",this.playerDisposedListener),c.on("timeupdate",O),this.adsRenderingSettings=new google.ima.AdsRenderingSettings,this.adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete=!0,this.settings.adsRenderingSettings)for(var U in this.settings.adsRenderingSettings)this.adsRenderingSettings[U]=this.settings.adsRenderingSettings[U];this.settings.locale&&google.ima.settings.setLocale(this.settings.locale),m(),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),0==this.settings.vpaidAllowed&&this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.DISABLED),this.settings.vpaidMode&&this.adsLoader.getSettings().setVpaidMode(this.settings.vpaidMode),this.settings.locale&&this.adsLoader.getSettings().setLocale(this.settings.locale),this.settings.numRedirects&&this.adsLoader.getSettings().setNumRedirects(this.settings.numRedirects),this.adsLoader.getSettings().setPlayerType("videojs-ima"),this.adsLoader.getSettings().setPlayerVersion(this.VERSION),this.adsLoader.getSettings().setAutoPlayAdBreaks(this.autoPlayAdBreaks),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,o,!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,p,!1),h||(h=this.startFromReadyCallback),c.on("readyforpreroll",h),c.ready(function(){c.on("fullscreenchange",H),c.on("volumechange",I)})};c.plugin("ima",g)})},{}],43:[function(a,b,c){!function(a,b,c,d){"use strict";var e=b.getComponent("Flash"),f=b.extend(e,{constructor:function(a,c){var d=a.source,g=b(a.playerId);g.osmf=this,a.flashVars={playerId:a.playerId,readyFunction:"onReady",eventProxyFunction:"onEvent",errorEventProxyFunction:"onError"},e.call(this,a,c),this.firstplay=!1,this.loadstart=!1,g.on("loadeddata",f.onLoadedData),g.on("ended",f.onEnded),a.source=d}});f.formats={"application/adobe-f4m":"F4M","application/adobe-f4v":"F4V","application/dash+xml":"MPD"},f.canPlaySource=function(a){return a.type.replace(/;.*/,"").toLowerCase()in f.formats?"maybe":""},f.log_enabled=!1;var g=f.prototype,h=["preload","defaultPlaybackRate","playbackRate","autoplay","loop","mediaGroup","controller","controls","volume","muted","defaultMuted"],i=["error","networkState","readyState","seeking","videoWidth","startOffsetTime","paused","played","ended","streamType","initialTime","videoHeight","currentLevel","levels"],j=function(a){var b=a.charAt(0).toUpperCase()+a.slice(1);g["set"+b]=function(b){if(this.el_.vjs_setProperty)return this.el_.vjs_setProperty(a,b)}},k=function(a){g[a]=function(){if(this.el_.vjs_getProperty)return this.el_.vjs_getProperty(a)}};!function(){for(var a=0;a=10},f.onLoadedData=function(){var a=this;a.options_.autoplay?a.play():a.options_.preload&&"none"!==a.options_.preload&&(a.currentTime()&&a.currentTime(0),a.play(),a.pause(),a.bigPlayButton.show(),a.bigPlayButton.one("click",function(){a.bigPlayButton.hide()}))},f.onEnded=function(){this.options().loop&&this.currentTime(0),this.pause()},f.onReady=function(a){f.log_enabled&&b.log("OSMF","Ready",a),e.onReady(a);var d=c.getElementById(a).tech;d.currentSrc()&&d.currentSrc().length>0&&d.el_.vjs_src(d.currentSrc())},f.onError=function(a,d){var e=c.getElementById(a).tech;"loaderror"==d&&(d="srcnotfound"),f.log_enabled&&b.log("OSMF","Error",d),e.options_.reconnectOnError&&!e.reconnecting_&&(e.reconnecting_=!0,e.trigger("waiting"),setTimeout(function(){e.src(e.currentSrc()),e.reconnecting_=!1,e.error(null)},5e3)),e.error({code:4,msg:""})},f.onEvent=function(a,d,e){var g=c.getElementById(a).tech;switch(d){case"playing":!1===g.firstplay&&(f.log_enabled&&b.log("OSMF","Event",a,"loadstart"),g.trigger("loadstart"),g.loadstart=!0,f.log_enabled&&b.log("OSMF","Event",a,"firstplay"),g.trigger("firstplay"),g.firstplay=!0);break;case"buffering":d="waiting";break;case"ready":d="loadeddata"}g.trigger(d,e),"timeupdate"!==d&&f.log_enabled&&b.log("OSMF","Event",a,d)},f.prototype.supportsFullScreen=function(){return!1},f.prototype.enterFullScreen=function(){return!1},b.options.osmf={},b.options.techOrder.push("osmf"),b.registerComponent("Osmf",f) }(window,window.videojs,document)},{}],44:[function(a,b,c){!function(b,c){"use strict";function d(a){return"number"!=typeof a?a:a.toFixed(3)}function e(a){var c=b.hola_cdn;return c&&c.get_wrapper()&&(!a||!!c._get_bws())}a("@hola.org/videojs-utils");var f=a("clipboard"),g=a("lodash/find"),h=c.getComponent("Menu");c.registerComponent("PopupMenu",c.extend(h,{className:"vjs-rightclick-popup",popped:!1,constructor:function(a,b){h.call(this,a,b);var d=a;this.addClass(this.className),this.hide();var e=this,f=this.options_,g=f.offset||5;f.debugging&&(this.addChild(new o(a,{label:"Download log"})),this.addChild(new q(a,{label:"Copy debug info"}))),f.report&&(f.report=c.mergeOptions({label:"Report playback issue"},f.report),this.addChild(new n(a,f.report))),f.info&&(f.info=c.mergeOptions({label:"Stats for nerds"},f.info),this.addChild(new r(a,f.info))),f.graph&&(f.graph=c.mergeOptions({label:"CDN overlay"},f.graph),this.addChild(new p(a,f.graph))),f.about&&this.addChild(new m(a,{href:"https://holacdn.com/player",label:"About Hola Player"})),d.on("contextmenu",function(a){if(a.preventDefault(),e.popped)e.hide(),e.popped=!1;else{e.show();var b=a.offsetX,c=a.offsetY,f=e.el_.offsetWidth+b+g-d.el_.offsetWidth;f=Math.max(0,f);var h=e.el_.offsetHeight+c+g-d.el_.offsetHeight;h=Math.max(0,h),b-=f,c-=h,e.el_.style.top=c+"px",e.el_.style.left=b+"px",e.popped=!0,e.check_items()}}),d.on(["tap","click"],function(a){if(e.popped)return e.hide(),e.popped=!1,a.stopPropagation(),a.preventDefault(),!1}),this.children().forEach(function(a){a.on(["tap","click"],function(a){e.hide(),e.popped=!1})})},check_items:function(){this.children().forEach(function(a){a.is_visible&&a.toggleClass("vjs-hidden",!a.is_visible())})}}));var i=c.getComponent("MenuButton");c.registerComponent("SettingsButton",c.extend(i,{controlText_:"Settings",constructor:function(a,b){i.call(this,a,b),a.one("play",c.bind(this,this.updateSelected)),a.on("resolutionchange",c.bind(this,this.updateSelected)),this.updateSelected()},createEl:function(){var a=i.prototype.createEl.call(this),b=this.icon_=document.createElement("div");return b.setAttribute("class","vjs-button-icon"),b.innerHTML='',a.insertBefore(b,a.firstChild),a},buildCSSClass:function(){return i.prototype.buildCSSClass.call(this)+" vjs-settings-button"},createItems:function(){var a=[],b=this.player_,d=this.options_.quality,e=d&&d.sources?d.sources:b.options_.sources;if(!e||!e.length)return[];for(var f,g=0;g=c)return d(b.end(e)-c);return"--"}},downloaded:{units:"sec",title:"Downloaded",get:function(a){var b=a.buffered(),c=0;if(b&&b.length)for(var e=0;e1&&(h=f()),a.quality&&g&&b.tech_.on("loadedqualitydata",function(a,b){(b&&b.quality&&b.quality.list||[]).length<2||(h||(h=f()),h.updateQuality(b))}),a.info&&b.addChild("InfoOverlay",{}).addClass("vjs-hidden"),a.report&&b.addChild("NotifyOverlay",{class:"vjs-notify-overlay"}).addClass("vjs-hidden"),a.volume){b.ready(function(){if(!a.volume.override_local_storage){var c,d;null!=(c=e("vjs5_volume"))&&(a.volume.level=c),null!=(d=e("vjs5_mute"))&&(a.volume.mute="true"==d)}b.volume(a.volume.level),b.muted(a.volume.mute)}),b.on("volumechange",function(){d("vjs5_volume",b.volume()),d("vjs5_mute",b.muted())})}var i=b.addChild("PopupMenu",c.mergeOptions(a));b.on("hola.wrapper_attached",i.check_items.bind(i)),b.on("hola.wrapper_detached",i.check_items.bind(i))})})}(window,window.videojs)},{"@hola.org/videojs-utils":46,clipboard:50,"lodash/find":164}],45:[function(a,b,c){!function(){"use strict";var a=function(){var b,c,d,e,f;b=Array.prototype.slice.call(arguments),c=b.shift()||{};for(d in b){e=b[d];for(f in e)e.hasOwnProperty(f)&&("object"==typeof e[f]?c[f]=a(c[f],e[f]):c[f]=e[f])}return c},b=function(a,b){return function(c){return window.getComputedStyle?window.getComputedStyle(a,b)[c]:a.currentStyle[c]}},c=function(a){return"HTML"!==a.nodeName&&"static"===b(a)("position")?c(a.offsetParent):a},d=function(){return window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}},e=function(b){var c={};return Object.keys(b).forEach(function(d){var e;if(e=b[d].sprites){if(delete b[d].sprites,!e.position&&e.interval&&e.count){e.position=[];for(var f=0;fr&&(p=Math.max(p,r));var s=q[p];if(s){var t=/^https?:\/\//i;s.src&&g.src.replace(t,"//")!=s.src.replace(t,"//")&&(g.src=s.src);var u=a.hasClass("vjs-fullscreen")?1.5:1;s.style&&(g.style.left=parseFloat(s.style.left)*u+"px",g.style.top=parseFloat(s.style.top)*u+"px"),g.naturalWidth&&(g.style.width=g.naturalWidth*u+"px",g.style.height=g.naturalHeight*u+"px");var v=parseFloat(s.width||q[0].width)*u,w=parseFloat(s.height||q[0].height)*u,x=v/2;n+x>l?n=l-v:n0&&void 0!==arguments[0]?arguments[0]:{};this.action=a.action,this.emitter=a.emitter,this.target=a.target,this.text=a.text,this.trigger=a.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var a=this,b="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return a.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[b?"right":"left"]="-9999px";var c=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=c+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,d.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,d.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var a=void 0;try{a=document.execCommand(this.action)}catch(b){a=!1}this.handleResult(a)}},{key:"handleResult",value:function(a){this.emitter.emit(a?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=a,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(a){if(void 0!==a){if(!a||"object"!==(void 0===a?"undefined":e(a))||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=a}},get:function(){return this._target}}]),a}();a.exports=g})},{select:196}],50:[function(b,c,d){!function(e,f){if("function"==typeof a&&a.amd)a(["module","./clipboard-action","tiny-emitter","good-listener"],f);else if(void 0!==d)f(c,b("./clipboard-action"),b("tiny-emitter"),b("good-listener"));else{var g={exports:{}};f(g,e.clipboardAction,e.tinyEmitter,e.goodListener),e.clipboard=g.exports}}(this,function(a,b,c,d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){var c="data-clipboard-"+a;if(b.hasAttribute(c))return b.getAttribute(c)}var j=e(b),k=e(c),l=e(d),m=function(){function a(a,b){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof a.action?a.action:this.defaultAction,this.target="function"==typeof a.target?a.target:this.defaultTarget,this.text="function"==typeof a.text?a.text:this.defaultText}},{key:"listenClick",value:function(a){var b=this;this.listener=(0,l.default)(a,"click",function(a){return b.onClick(a)})}},{key:"onClick",value:function(a){var b=a.delegateTarget||a.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new j.default({action:this.action(b),target:this.target(b),text:this.text(b),trigger:b,emitter:this})}},{key:"defaultAction",value:function(a){return i("action",a)}},{key:"defaultTarget",value:function(a){var b=i("target",a);if(b)return document.querySelector(b)}},{key:"defaultText",value:function(a){return i("text",a)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],b="string"==typeof a?[a]:a,c=!!document.queryCommandSupported;return b.forEach(function(a){c=c&&!!document.queryCommandSupported(a)}),c}}]),b}(k.default);a.exports=n})},{"./clipboard-action":49,"good-listener":56,"tiny-emitter":197}],51:[function(a,b,c){function d(a,b){for(;a&&a.nodeType!==e;){if(a.matches(b))return a;a=a.parentNode}}var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var f=Element.prototype;f.matches=f.matchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector||f.webkitMatchesSelector}b.exports=d},{}],52:[function(a,b,c){function d(a,b,c,d,f){var g=e.apply(this,arguments);return a.addEventListener(c,g,f),{destroy:function(){a.removeEventListener(c,g,f)}}}function e(a,b,c,d){return function(c){c.delegateTarget=f(c.target,b),c.delegateTarget&&d.call(a,c)}}var f=a("./closest");b.exports=d},{"./closest":51}],53:[function(a,b,c){(function(c){var d=void 0!==c?c:"undefined"!=typeof window?window:{},e=a("min-document");if("undefined"!=typeof document)b.exports=document;else{var f=d["__GLOBAL_DOCUMENT_CACHE@4"];f||(f=d["__GLOBAL_DOCUMENT_CACHE@4"]=e),b.exports=f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":47}],54:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:void 0!==a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],55:[function(a,b,c){c.node=function(a){return void 0!==a&&a instanceof HTMLElement&&1===a.nodeType},c.nodeList=function(a){var b=Object.prototype.toString.call(a);return void 0!==a&&("[object NodeList]"===b||"[object HTMLCollection]"===b)&&"length"in a&&(0===a.length||c.node(a[0]))},c.string=function(a){return"string"==typeof a||a instanceof String},c.fn=function(a){return"[object Function]"===Object.prototype.toString.call(a)}},{}],56:[function(a,b,c){function d(a,b,c){if(!a&&!b&&!c)throw new Error("Missing required arguments");if(!h.string(b))throw new TypeError("Second argument must be a String");if(!h.fn(c))throw new TypeError("Third argument must be a Function");if(h.node(a))return e(a,b,c);if(h.nodeList(a))return f(a,b,c);if(h.string(a))return g(a,b,c);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function e(a,b,c){return a.addEventListener(b,c),{destroy:function(){a.removeEventListener(b,c)}}}function f(a,b,c){return Array.prototype.forEach.call(a,function(a){a.addEventListener(b,c)}),{destroy:function(){Array.prototype.forEach.call(a,function(a){a.removeEventListener(b,c)})}}}function g(a,b,c){return i(document.body,a,b,c)}var h=a("./is"),i=a("delegate");b.exports=d},{"./is":55,delegate:52}],57:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{dup:47}],58:[function(a,b,c){var d=a("./_getNative"),e=a("./_root"),f=d(e,"DataView");b.exports=f},{"./_getNative":114,"./_root":150}],59:[function(a,b,c){function d(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b-1?h[i?b[j]:j]:void 0}}var e=a("./_baseIteratee"),f=a("./isArrayLike"),g=a("./keys");b.exports=d},{"./_baseIteratee":90,"./isArrayLike":171,"./keys":179}],107:[function(a,b,c){function d(a,b,c,d,j,k){var l=c&h,m=a.length,n=b.length;if(m!=n&&!(l&&n>m))return!1;var o=k.get(a);if(o&&k.get(b))return o==b;var p=-1,q=!0,r=c&i?new e:void 0;for(k.set(a,b),k.set(b,a);++p-1&&a%1==0&&a-1}var e=a("./_assocIndexOf");b.exports=d},{"./_assocIndexOf":75}],136:[function(a,b,c){function d(a,b){var c=this.__data__,d=e(c,a);return d<0?(++this.size,c.push([a,b])):c[d][1]=b,this}var e=a("./_assocIndexOf");b.exports=d},{"./_assocIndexOf":75}],137:[function(a,b,c){function d(){this.size=0,this.__data__={hash:new e,map:new(g||f),string:new e}}var e=a("./_Hash"),f=a("./_ListCache"),g=a("./_Map");b.exports=d},{"./_Hash":59,"./_ListCache":60,"./_Map":61}],138:[function(a,b,c){function d(a){var b=e(this,a).delete(a);return this.size-=b?1:0,b}var e=a("./_getMapData");b.exports=d},{"./_getMapData":112}],139:[function(a,b,c){function d(a){return e(this,a).get(a)}var e=a("./_getMapData");b.exports=d},{"./_getMapData":112}],140:[function(a,b,c){function d(a){return e(this,a).has(a)}var e=a("./_getMapData");b.exports=d},{"./_getMapData":112}],141:[function(a,b,c){function d(a,b){var c=e(this,a),d=c.size;return c.set(a,b),this.size+=c.size==d?0:1,this}var e=a("./_getMapData");b.exports=d},{"./_getMapData":112}],142:[function(a,b,c){function d(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}b.exports=d},{}],143:[function(a,b,c){function d(a,b){return function(c){return null!=c&&(c[a]===b&&(void 0!==b||a in Object(c)))}}b.exports=d},{}],144:[function(a,b,c){function d(a){var b=e(a,function(a){return c.size===f&&c.clear(),a}),c=b.cache;return b}var e=a("./memoize"),f=500;b.exports=d},{"./memoize":181}],145:[function(a,b,c){var d=a("./_getNative"),e=d(Object,"create");b.exports=e},{"./_getNative":114}],146:[function(a,b,c){var d=a("./_overArg"),e=d(Object.keys,Object);b.exports=e},{"./_overArg":149}],147:[function(a,b,c){var d=a("./_freeGlobal"),e="object"==typeof c&&c&&!c.nodeType&&c,f=e&&"object"==typeof b&&b&&!b.nodeType&&b,g=f&&f.exports===e,h=g&&d.process,i=function(){try{return h&&h.binding&&h.binding("util")}catch(a){}}();b.exports=i},{"./_freeGlobal":110}],148:[function(a,b,c){function d(a){return f.call(a)}var e=Object.prototype,f=e.toString;b.exports=d},{}],149:[function(a,b,c){function d(a,b){return function(c){return a(b(c))}}b.exports=d},{}],150:[function(a,b,c){var d=a("./_freeGlobal"),e="object"==typeof self&&self&&self.Object===Object&&self,f=d||e||Function("return this")();b.exports=f},{"./_freeGlobal":110}],151:[function(a,b,c){function d(a){return this.__data__.set(a,e),this}var e="__lodash_hash_undefined__";b.exports=d},{}],152:[function(a,b,c){function d(a){return this.__data__.has(a)}b.exports=d},{}],153:[function(a,b,c){function d(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}b.exports=d},{}],154:[function(a,b,c){function d(){this.__data__=new e,this.size=0}var e=a("./_ListCache");b.exports=d},{"./_ListCache":60}],155:[function(a,b,c){function d(a){var b=this.__data__,c=b.delete(a);return this.size=b.size,c}b.exports=d},{}],156:[function(a,b,c){function d(a){return this.__data__.get(a)}b.exports=d},{}],157:[function(a,b,c){function d(a){return this.__data__.has(a)}b.exports=d},{}],158:[function(a,b,c){function d(a,b){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!f||d.length=b||c<0||A&&d>=u}function n(){var a=f();if(m(a))return o(a);w=setTimeout(n,l(a))}function o(a){return w=void 0,B&&s?d(a):(s=t=void 0,v)}function p(){void 0!==w&&clearTimeout(w),y=0,s=x=t=w=void 0}function q(){return void 0===w?v:o(f())}function r(){var a=f(),c=m(a);if(s=arguments,t=this,x=a,c){if(void 0===w)return k(x);if(A)return w=setTimeout(n,b),d(x)}return void 0===w&&(w=setTimeout(n,b)),v}var s,t,u,v,w,x,y=0,z=!1,A=!1,B=!0;if("function"!=typeof a)throw new TypeError(h);return b=g(b)||0,e(c)&&(z=!!c.leading,A="maxWait"in c,u=A?i(g(c.maxWait)||0,b):u,B="trailing"in c?!!c.trailing:B),r.cancel=p,r.flush=q,r}var e=a("./isObject"),f=a("./now"),g=a("./toNumber"),h="Expected a function",i=Math.max,j=Math.min;b.exports=d},{"./isObject":175,"./now":182,"./toNumber":190}],163:[function(a,b,c){function d(a,b){return a===b||a!==a&&b!==b}b.exports=d},{}],164:[function(a,b,c){var d=a("./_createFind"),e=a("./findIndex"),f=d(e);b.exports=f},{"./_createFind":106,"./findIndex":165}],165:[function(a,b,c){function d(a,b,c){var d=null==a?0:a.length;if(!d)return-1;var i=null==c?0:g(c);return i<0&&(i=h(d+i,0)),e(a,f(b,3),i)}var e=a("./_baseFindIndex"),f=a("./_baseIteratee"),g=a("./toInteger"),h=Math.max;b.exports=d},{"./_baseFindIndex":77,"./_baseIteratee":90,"./toInteger":189}],166:[function(a,b,c){function d(a,b,c){var d=null==a?void 0:e(a,b);return void 0===d?c:d}var e=a("./_baseGet");b.exports=d},{"./_baseGet":80}],167:[function(a,b,c){function d(a,b){return null!=a&&f(a,b,e)}var e=a("./_baseHasIn"),f=a("./_hasPath");b.exports=d},{"./_baseHasIn":83,"./_hasPath":119}],168:[function(a,b,c){function d(a){return a}b.exports=d},{}],169:[function(a,b,c){var d=a("./_baseIsArguments"),e=a("./isObjectLike"),f=Object.prototype,g=f.hasOwnProperty,h=f.propertyIsEnumerable,i=d(function(){return arguments}())?d:function(a){return e(a)&&g.call(a,"callee")&&!h.call(a,"callee")};b.exports=i},{"./_baseIsArguments":84,"./isObjectLike":176}],170:[function(a,b,c){var d=Array.isArray;b.exports=d},{}],171:[function(a,b,c){function d(a){return null!=a&&f(a.length)&&!e(a)}var e=a("./isFunction"),f=a("./isLength");b.exports=d},{"./isFunction":173,"./isLength":174}],172:[function(a,b,c){var d=a("./_root"),e=a("./stubFalse"),f="object"==typeof c&&c&&!c.nodeType&&c,g=f&&"object"==typeof b&&b&&!b.nodeType&&b,h=g&&g.exports===f,i=h?d.Buffer:void 0,j=i?i.isBuffer:void 0,k=j||e;b.exports=k},{"./_root":150,"./stubFalse":186}],173:[function(a,b,c){function d(a){if(!f(a))return!1;var b=e(a);return b==h||b==i||b==g||b==j}var e=a("./_baseGetTag"),f=a("./isObject"),g="[object AsyncFunction]",h="[object Function]",i="[object GeneratorFunction]",j="[object Proxy]";b.exports=d},{"./_baseGetTag":82,"./isObject":175}],174:[function(a,b,c){function d(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=e}var e=9007199254740991;b.exports=d},{}],175:[function(a,b,c){function d(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}b.exports=d},{}],176:[function(a,b,c){function d(a){return null!=a&&"object"==typeof a}b.exports=d},{}],177:[function(a,b,c){function d(a){return"symbol"==typeof a||f(a)&&e(a)==g}var e=a("./_baseGetTag"),f=a("./isObjectLike"),g="[object Symbol]";b.exports=d},{"./_baseGetTag":82,"./isObjectLike":176}],178:[function(a,b,c){var d=a("./_baseIsTypedArray"),e=a("./_baseUnary"),f=a("./_nodeUtil"),g=f&&f.isTypedArray,h=g?e(g):d;b.exports=h},{"./_baseIsTypedArray":89,"./_baseUnary":100,"./_nodeUtil":147}],179:[function(a,b,c){function d(a){return g(a)?e(a):f(a)}var e=a("./_arrayLikeKeys"),f=a("./_baseKeys"),g=a("./isArrayLike");b.exports=d},{"./_arrayLikeKeys":71,"./_baseKeys":91,"./isArrayLike":171}],180:[function(a,b,c){function d(a,b){return(h(a)?e:g)(a,f(b,3))}var e=a("./_arrayMap"),f=a("./_baseIteratee"),g=a("./_baseMap"),h=a("./isArray");b.exports=d},{"./_arrayMap":72,"./_baseIteratee":90,"./_baseMap":92,"./isArray":170}],181:[function(a,b,c){function d(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw new TypeError(f);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g)||f,g};return c.cache=new(d.Cache||e),c}var e=a("./_MapCache"),f="Expected a function";d.Cache=e,b.exports=d},{"./_MapCache":62}],182:[function(a,b,c){var d=a("./_root"),e=function(){return d.Date.now()};b.exports=e},{"./_root":150}],183:[function(a,b,c){function d(a){return g(a)?e(h(a)):f(a)}var e=a("./_baseProperty"),f=a("./_basePropertyDeep"),g=a("./_isKey"),h=a("./_toKey");b.exports=d},{"./_baseProperty":95,"./_basePropertyDeep":96,"./_isKey":127,"./_toKey":160}],184:[function(a,b,c){function d(a,b,c){var d=h(a)?e:g;return c&&i(a,b,c)&&(b=void 0),d(a,f(b,3))}var e=a("./_arraySome"),f=a("./_baseIteratee"),g=a("./_baseSome"),h=a("./isArray"),i=a("./_isIterateeCall");b.exports=d},{"./_arraySome":74,"./_baseIteratee":90,"./_baseSome":97,"./_isIterateeCall":126,"./isArray":170}],185:[function(a,b,c){function d(){return[]}b.exports=d},{}],186:[function(a,b,c){function d(){return!1}b.exports=d},{}],187:[function(a,b,c){function d(a,b,c){var d=!0,h=!0;if("function"!=typeof a)throw new TypeError(g);return f(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),e(a,b,{leading:d,maxWait:b,trailing:h})}var e=a("./debounce"),f=a("./isObject"),g="Expected a function";b.exports=d},{"./debounce":162,"./isObject":175}],188:[function(a,b,c){function d(a){if(!a)return 0===a?a:0;if((a=e(a))===f||a===-f){return(a<0?-1:1)*g}return a===a?a:0}var e=a("./toNumber"),f=1/0,g=1.7976931348623157e308;b.exports=d},{"./toNumber":190}],189:[function(a,b,c){function d(a){var b=e(a),c=b%1;return b===b?c?b-c:b:0}var e=a("./toFinite");b.exports=d},{"./toFinite":188}],190:[function(a,b,c){function d(a){if("number"==typeof a)return a;if(f(a))return g;if(e(a)){var b="function"==typeof a.valueOf?a.valueOf():a;a=e(b)?b+"":b}if("string"!=typeof a)return 0===a?a:+a;a=a.replace(h,"");var c=j.test(a);return c||k.test(a)?l(a.slice(2),c?2:8):i.test(a)?g:+a}var e=a("./isObject"),f=a("./isSymbol"),g=NaN,h=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,k=/^0o[0-7]+$/i,l=parseInt;b.exports=d},{"./isObject":175,"./isSymbol":177}],191:[function(a,b,c){function d(a){return null==a?"":e(a)}var e=a("./_baseToString");b.exports=d},{"./_baseToString":99}],192:[function(b,c,d){(function(b){!function(e){function f(a){throw new RangeError(I[a])}function g(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function h(a,b){var c=a.split("@"),d="";return c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(H,"."),d+g(a.split("."),b).join(".")}function i(a){for(var b,c,d=[],e=0,f=a.length;e=55296&&b<=56319&&e65535&&(a-=65536,b+=L(a>>>10&1023|55296),a=56320|1023&a),b+=L(a)}).join("")}function k(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:x}function l(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function m(a,b,c){var d=0;for(a=c?K(a/B):a>>1,a+=K(a/b);a>J*z>>1;d+=x)a=K(a/J);return K(d+(J+1)*a/(a+A))}function n(a){var b,c,d,e,g,h,i,l,n,o,p=[],q=a.length,r=0,s=D,t=C;for(c=a.lastIndexOf(E),c<0&&(c=0),d=0;d=128&&f("not-basic"),p.push(a.charCodeAt(d));for(e=c>0?c+1:0;e=q&&f("invalid-input"),l=k(a.charCodeAt(e++)),(l>=x||l>K((w-r)/h))&&f("overflow"),r+=l*h,n=i<=t?y:i>=t+z?z:i-t,!(lK(w/o)&&f("overflow"),h*=o;b=p.length+1,t=m(r-g,b,0==g),K(r/b)>w-s&&f("overflow"),s+=K(r/b),r%=b,p.splice(r++,0,s)}return j(p)}function o(a){var b,c,d,e,g,h,j,k,n,o,p,q,r,s,t,u=[];for(a=i(a),q=a.length,b=D,c=0,g=C,h=0;h=b&&pK((w-c)/r)&&f("overflow"),c+=(j-b)*r,b=j,h=0;hw&&f("overflow"),p==b){for(k=c,n=x;o=n<=g?y:n>=g+z?z:n-g,!(k= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=x-y,K=Math.floor,L=String.fromCharCode;if(u={version:"1.4.1",ucs2:{decode:i,encode:j},decode:n,encode:o,toASCII:q,toUnicode:p},"function"==typeof a&&"object"==typeof a.amd&&a.amd)a("punycode",function(){return u});else if(r&&s)if(c.exports==r)s.exports=u;else for(v in u)u.hasOwnProperty(v)&&(r[v]=u[v]);else e.punycode=u}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],193:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;a=a.split(b);var h=1e3;f&&"number"==typeof f.maxKeys&&(h=f.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;j=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),d(g,m)?e(g[m])?g[m].push(n):g[m]=[g[m],n]:g[m]=n}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],194:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d",'"',"`"," ","\r","\n","\t"],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s={javascript:!0,"javascript:":!0},t={javascript:!0,"javascript:":!0},u={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=-1!==d&&d127?F+="x":F+=E[G];if(!F.match(/^[+a-z0-9A-Z_-]{0,63}$/)){var I=C.slice(0,x),J=C.slice(x+1),K=E.match(/^([+a-z0-9A-Z_-]{0,63})(.*)$/);K&&(I.push(K[1]),J.unshift(K[2])),J.length&&(g="/"+J.join(".")+g),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var L=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+L,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!s[n])for(var x=0,D=p.length;x0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!x.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=x.slice(-1)[0],B=(c.host||a.host||x.length>1)&&("."===A||".."===A)||""===A,C=0,D=x.length;D>=0;D--)A=x[D],"."===A?x.splice(D,1):".."===A?(x.splice(D,1),C++):C&&(x.splice(D,1),C--);if(!v&&!w)for(;C--;C)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),B&&"/"!==x.join("/").substr(-1)&&x.push("");var E=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(y){c.hostname=c.host=E?"":x.length?x.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return v=v||c.host&&x.length,v&&!E&&x.unshift(""),x.length?c.pathname=x.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":199,punycode:192,querystring:195}],199:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],200:[function(b,c,d){!function(b){if("object"==typeof d&&void 0!==c)c.exports=b();else if("function"==typeof a&&a.amd)a([],b);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.videojs=b()}}(function(){var a;return function a(c,d,e){function f(h,i){if(!d[h]){if(!c[h]){var j="function"==typeof b&&b;if(!i&&j)return j(h,!0);if(g)return g(h,!0);var k=new Error("Cannot find module '"+h+"'");throw k.code="MODULE_NOT_FOUND",k}var l=d[h]={exports:{}};c[h][0].call(l.exports,function(a){var b=c[h][1][a];return f(b||a)},l,l.exports,a,c,d,e)}return d[h].exports}for(var g="function"==typeof b&&b,h=0;h2?arguments[2]:{},g=d(b);f&&(g=g.concat(Object.getOwnPropertySymbols(b))),e(g,function(d){j(a,d,b[d],c[d])})};k.supportsDescriptors=!!i,b.exports=k},{foreach:4,"object-keys":49}],3:[function(a,b,c){function d(a,b,c){if(!h(b))throw new TypeError("iterator must be a function");arguments.length<3&&(c=this),"[object Array]"===i.call(a)?e(a,b,c):"string"==typeof a?f(a,b,c):g(a,b,c)}function e(a,b,c){for(var d=0,e=a.length;db?i(s,n):r=setTimeout(j,a)}function k(){i(v,r)}function l(){if(m=arguments,p=f(),q=this,s=v&&(r||!w),!1===u)var c=w&&!r;else{n||w||(t=p);var d=u-(p-t),e=d<=0||d>u;e?(n&&(n=clearTimeout(n)),t=p,o=a.apply(q,m)):n||(n=setTimeout(k,d))}return e&&r?r=clearTimeout(r):r||b===u||(r=setTimeout(j,b)),c&&(e=!0,o=a.apply(q,m)),!e||r||n||(m=q=void 0),o}var m,n,o,p,q,r,s,t=0,u=!1,v=!0;if("function"!=typeof a)throw new TypeError(g);if(b=b<0?0:+b||0,!0===c){var w=!0;v=!1}else e(c)&&(w=!!c.leading,u="maxWait"in c&&h(+c.maxWait||0,b),v="trailing"in c?!!c.trailing:v);return l.cancel=d,l}var e=a("../lang/isObject"),f=a("../date/now"),g="Expected a function",h=Math.max;b.exports=d},{"../date/now":10,"../lang/isObject":39}],12:[function(a,b,c){function d(a,b){if("function"!=typeof a)throw new TypeError(e);return b=f(void 0===b?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=f(c.length-b,0),g=Array(e);++d2?c[g-2]:void 0,i=g>2?c[2]:void 0,j=g>1?c[g-1]:void 0;for("function"==typeof h?(h=e(h,j,5),g-=2):(h="function"==typeof j?j:void 0,g-=h?1:0),i&&f(c[0],c[1],i)&&(h=g<3?void 0:h,g=1);++d-1&&a%1==0&&a-1&&a%1==0&&a<=e}var e=9007199254740991;b.exports=d},{}],32:[function(a,b,c){function d(a){return!!a&&"object"==typeof a}b.exports=d},{}],33:[function(a,b,c){function d(a){for(var b=j(a),c=b.length,d=c&&a.length,k=!!d&&h(d)&&(f(a)||e(a)||i(a)),m=-1,n=[];++m0,A=m.enumErrorProps&&(a===r||a instanceof Error),B=m.enumPrototypes&&h(a);++d0&&!d.call(a,0))for(var n=0;n0)for(var p=0;p=0&&"[object Function]"===d.call(a.callee)),c}},{}],51:[function(a,b,c){"use strict";var d=a("object-keys");b.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var a={},b=Symbol("test"),c=Object(b);if("string"==typeof b)return!1;if("[object Symbol]"!==Object.prototype.toString.call(b))return!1;if("[object Symbol]"!==Object.prototype.toString.call(c))return!1;a[b]=42;for(b in a)return!1;if(0!==d(a).length)return!1;if("function"==typeof Object.keys&&0!==Object.keys(a).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(a).length)return!1;var e=Object.getOwnPropertySymbols(a);if(1!==e.length||e[0]!==b)return!1;if(!Object.prototype.propertyIsEnumerable.call(a,b))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(a,b);if(42!==f.value||!0!==f.enumerable)return!1}return!0}},{"object-keys":49}],52:[function(a,b,c){"use strict";var d=a("object-keys"),e=a("function-bind"),f=function(a){return void 0!==a&&null!==a},g=a("./hasSymbols")(),h=Object,i=e.call(Function.call,Array.prototype.push),j=e.call(Function.call,Object.prototype.propertyIsEnumerable),k=g?Object.getOwnPropertySymbols:null;b.exports=function(a,b){if(!f(a))throw new TypeError("target must be an object");var c,e,l,m,n,o,p,q=h(a);for(c=1;c0&&(p=setTimeout(function(){o=!0,m.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT",e(a)},a.timeout)),m.setRequestHeader)for(n in t)t.hasOwnProperty(n)&&m.setRequestHeader(n,t[n]);else if(a.headers&&!d(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(m.responseType=a.responseType),"beforeSend"in a&&"function"==typeof a.beforeSend&&a.beforeSend(m),m.send(s),m}function h(a){if("document"===a.responseType)return a.responseXML;var b=204===a.status&&a.responseXML&&"parsererror"===a.responseXML.documentElement.nodeName;return""!==a.responseType||b?null:a.responseXML}function i(){}var j=a("global/window"),k=a("is-function"),l=a("parse-headers"),m=a("xtend");b.exports=f,f.XMLHttpRequest=j.XMLHttpRequest||i,f.XDomainRequest="withCredentials"in new f.XMLHttpRequest?f.XMLHttpRequest:j.XDomainRequest,function(a,b){for(var c=0;c=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),j.removeElData(this.el_),this.el_=null},a.prototype.player=function(){return this.player_},a.prototype.options=function(a){return r.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),a?(this.options_=v.default(this.options_,a),this.options_):this.options_},a.prototype.el=function(){return this.el_},a.prototype.createEl=function(a,b,c){return j.createEl(a,b,c)},a.prototype.localize=function(a){var b=this.player_.language&&this.player_.language(),c=this.player_.languages&&this.player_.languages();if(!b||!c)return a;var d=c[b];if(d&&d[a])return d[a];var e=b.split("-")[0],f=c[e];return f&&f[a]?f[a]:a},a.prototype.contentEl=function(){return this.contentEl_||this.el_},a.prototype.id=function(){return this.id_},a.prototype.name=function(){return this.name_},a.prototype.children=function(){return this.children_},a.prototype.getChildById=function(a){return this.childIndex_[a]},a.prototype.getChild=function(a){return this.childNameIndex_[a]},a.prototype.addChild=function(b){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],d=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],e=void 0,f=void 0;if("string"==typeof b){f=b,c||(c={}),!0===c&&(r.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),c={});var g=c.componentClass||t.default(f);c.name=f;var h=a.getComponent(g);if(!h)throw new Error("Component "+g+" does not exist");if("function"!=typeof h)return null;e=new h(this.player_||this,c)}else e=b;if(this.children_.splice(d,0,e),"function"==typeof e.id&&(this.childIndex_[e.id()]=e),f=f||e.name&&e.name(),f&&(this.childNameIndex_[f]=e),"function"==typeof e.el&&e.el()){var i=this.contentEl().children,j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e},a.prototype.removeChild=function(a){if("string"==typeof a&&(a=this.getChild(a)),a&&this.children_){for(var b=!1,c=this.children_.length-1;c>=0;c--)if(this.children_[c]===a){b=!0,this.children_.splice(c,1);break}if(b){this.childIndex_[a.id()]=null,this.childNameIndex_[a.name()]=null;var d=a.el();d&&d.parentNode===this.contentEl()&&this.contentEl().removeChild(a.el())}}},a.prototype.initChildren=function(){var b=this,c=this.options_.children;c&&function(){var d=b.options_,e=function(a){var c=a.name,e=a.opts;if(void 0!==d[c]&&(e=d[c]),!1!==e){!0===e&&(e={}),e.playerOptions=b.options_.playerOptions;var f=b.addChild(c,e);f&&(b[c]=f)}},f=void 0,g=a.getComponent("Tech");f=Array.isArray(c)?c:Object.keys(c),f.concat(Object.keys(b.options_).filter(function(a){return!f.some(function(b){return"string"==typeof b?a===b:a===b.name})})).map(function(a){var d=void 0,e=void 0;return"string"==typeof a?(d=a,e=c[d]||b.options_[d]||{}):(d=a.name,e=a),{name:d,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||t.default(b.name));return c&&!g.isTech(c)}).forEach(e)}()},a.prototype.buildCSSClass=function(){return""},a.prototype.on=function(a,b,c){var d=this;return"string"==typeof a||Array.isArray(a)?p.on(this.el_,a,l.bind(this,b)):function(){var e=a,f=b,g=l.bind(d,c),h=function(){return d.off(e,f,g)};h.guid=g.guid,d.on("dispose",h);var i=function(){return d.off("dispose",h)};i.guid=g.guid,a.nodeName?(p.on(e,f,g),p.on(e,"dispose",i)):"function"==typeof a.on&&(e.on(f,g),e.on("dispose",i))}(),this},a.prototype.off=function(a,b,c){if(!a||"string"==typeof a||Array.isArray(a))p.off(this.el_,a,b);else{var d=a,e=b,f=l.bind(this,c);this.off("dispose",f),a.nodeName?(p.off(d,e,f),p.off(d,"dispose",f)):(d.off(e,f),d.off("dispose",f))}return this},a.prototype.one=function(a,b,c){var d=this,e=arguments;return"string"==typeof a||Array.isArray(a)?p.one(this.el_,a,l.bind(this,b)):function(){var f=a,g=b,h=l.bind(d,c),i=function a(){d.off(f,g,a),h.apply(null,e)};i.guid=h.guid,d.on(f,g,i)}(),this},a.prototype.trigger=function(a,b){return p.trigger(this.el_,a,b),this},a.prototype.ready=function(a){var b=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return a&&(this.isReady_?b?a.call(this):this.setTimeout(a,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(a))),this},a.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[],a&&a.length>0&&a.forEach(function(a){a.call(this)},this),this.trigger("ready")},1)},a.prototype.$=function(a,b){return j.$(a,b||this.contentEl())},a.prototype.$$=function(a,b){return j.$$(a,b||this.contentEl())},a.prototype.hasClass=function(a){return j.hasElClass(this.el_,a)},a.prototype.addClass=function(a){return j.addElClass(this.el_,a),this},a.prototype.removeClass=function(a){return j.removeElClass(this.el_,a),this},a.prototype.toggleClass=function(a,b){return j.toggleElClass(this.el_,a,b),this},a.prototype.show=function(){return this.removeClass("vjs-hidden"),this},a.prototype.hide=function(){return this.addClass("vjs-hidden"),this},a.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},a.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},a.prototype.width=function(a,b){return this.dimension("width",a,b)},a.prototype.height=function(a,b){return this.dimension("height",a,b)},a.prototype.dimensions=function(a,b){return this.width(a,!0).height(b)},a.prototype.dimension=function(a,b,c){if(void 0!==b)return null!==b&&b===b||(b=0),-1!==(""+b).indexOf("%")||-1!==(""+b).indexOf("px")?this.el_.style[a]=b:this.el_.style[a]="auto"===b?"":b+"px",c||this.trigger("resize"),this;if(!this.el_)return 0;var d=this.el_.style[a],e=d.indexOf("px");return-1!==e?parseInt(d.slice(0,e),10):parseInt(this.el_["offset"+t.default(a)],10)},a.prototype.currentDimension=function(a){var b=0;if("width"!==a&&"height"!==a)throw new Error("currentDimension only accepts width or height value");if("function"==typeof h.default.getComputedStyle){var c=h.default.getComputedStyle(this.el_);b=c.getPropertyValue(a)||c[a]}else if(this.el_.currentStyle){var d="offset"+t.default(a);b=this.el_[d]}return b=parseFloat(b)},a.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},a.prototype.currentWidth=function(){return this.currentDimension("width")},a.prototype.currentHeight=function(){return this.currentDimension("height")},a.prototype.emitTapEvents=function(){var a=0,b=null,c=void 0;this.on("touchstart",function(d){1===d.touches.length&&(b={pageX:d.touches[0].pageX,pageY:d.touches[0].pageY},a=(new Date).getTime(),c=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)c=!1;else if(b){var d=a.touches[0].pageX-b.pageX,e=a.touches[0].pageY-b.pageY,f=Math.sqrt(d*d+e*e);f>10&&(c=!1)}});var d=function(){c=!1};this.on("touchleave",d),this.on("touchcancel",d),this.on("touchend",function(d){if(b=null,!0===c&&d.cancelable){(new Date).getTime()-a<200&&(d.preventDefault(),this.trigger("tap"))}})},a.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var a=l.bind(this.player(),this.player().reportUserActivity),b=void 0;this.on("touchstart",function(){a(),this.clearInterval(b),b=this.setInterval(a,250)});var c=function(c){a(),this.clearInterval(b)};this.on("touchmove",a),this.on("touchend",c),this.on("touchcancel",c)}},a.prototype.setTimeout=function(a,b){a=l.bind(this,a);var c=h.default.setTimeout(a,b),d=function(){this.clearTimeout(c)};return d.guid="vjs-timeout-"+c,this.on("dispose",d),c},a.prototype.clearTimeout=function(a){h.default.clearTimeout(a);var b=function(){};return b.guid="vjs-timeout-"+a,this.off("dispose",b),a},a.prototype.setInterval=function(a,b){a=l.bind(this,a);var c=h.default.setInterval(a,b),d=function(){this.clearInterval(c)};return d.guid="vjs-interval-"+c,this.on("dispose",d),c},a.prototype.clearInterval=function(a){h.default.clearInterval(a);var b=function(){};return b.guid="vjs-interval-"+a,this.off("dispose",b),a},a.registerComponent=function(b,c){return a.components_||(a.components_={}),a.components_[b]=c,c},a.getComponent=function(b){return a.components_&&a.components_[b]?a.components_[b]:h.default&&h.default.videojs&&h.default.videojs[b]?(r.default.warn("The "+b+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),h.default.videojs[b]):void 0},a.extend=function(b){b=b||{},r.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){},d=function(){c.apply(this,arguments)};d.prototype=Object.create(this.prototype),d.prototype.constructor=d,d.extend=a.extend;for(var e in b)b.hasOwnProperty(e)&&(d.prototype[e]=b[e]);return d},a}();w.registerComponent("Component",w),c.default=w,b.exports=c.default},{"./utils/dom.js":144,"./utils/events.js":145,"./utils/fn.js":146,"./utils/guid.js":148,"./utils/log.js":149,"./utils/merge-options.js":150,"./utils/to-title-case.js":153,"global/window":8}],67:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../track-button.js"),h=d(g),i=a("../../component.js"),j=d(i),k=a("../../utils/fn.js"),l=(function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);b.default=a}(k),a("./audio-track-menu-item.js")),m=d(l),n=function(a){function b(c){var d=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e(this,b),d.tracks=c.audioTracks&&c.audioTracks(),a.call(this,c,d),this.el_.setAttribute("aria-label","Audio Menu")}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)},b.prototype.createItems=function(){var a=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],b=this.player_.audioTracks&&this.player_.audioTracks();if(!b)return a;for(var c=0;c'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},b}(g.default);g.default.registerComponent("LiveDisplay",j),c.default=j,b.exports=c.default},{"../component":66,"../utils/dom.js":144}],72:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../button"),h=d(g),i=a("../component"),j=d(i),k=a("../utils/dom.js"),l=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(k),m=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"volumechange",this.update),c.tech_&&!1===c.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(c,"loadstart",function(){this.update(),!1===c.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},b.prototype.update=function(){var a=this.player_.volume(),b=3;0===a||this.player_.muted()?b=0:a<.33?b=1:a<.67&&(b=2);var c=this.player_.muted()?"Unmute":"Mute";this.controlText()!==c&&this.controlText(c);for(var d=0;d<4;d++)l.removeElClass(this.el_,"vjs-vol-"+d);l.addElClass(this.el_,"vjs-vol-"+b)},b}(h.default);m.prototype.controlText_="Mute",j.default.registerComponent("MuteToggle",m),c.default=m,b.exports=c.default},{"../button":63,"../component":66,"../utils/dom.js":144}],73:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../button.js"),h=d(g),i=a("../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"play",this.handlePlay),this.on(c,"pause",this.handlePause)}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)},b.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},b.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},b.prototype.handlePause=function(){this.removeClass("vjs-playing"), this.addClass("vjs-paused"),this.controlText("Play")},b}(h.default);k.prototype.controlText_="Play",j.default.registerComponent("PlayToggle",k),c.default=k,b.exports=c.default},{"../button.js":63,"../component.js":66}],74:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../menu/menu-button.js"),h=d(g),i=a("../../menu/menu.js"),j=d(i),k=a("./playback-rate-menu-item.js"),l=d(k),m=a("../../component.js"),n=d(m),o=a("../../utils/dom.js"),p=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(o),q=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.updateVisibility(),this.updateLabel(),this.on(c,"loadstart",this.updateVisibility),this.on(c,"ratechange",this.updateLabel)}return f(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this);return this.labelEl_=p.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),b.appendChild(this.labelEl_),b},b.prototype.buildCSSClass=function(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)},b.prototype.createMenu=function(){var a=new j.default(this.player()),b=this.playbackRates();if(b)for(var c=b.length-1;c>=0;c--)a.addChild(new l.default(this.player(),{rate:b[c]+"x"}));return a},b.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},b.prototype.handleClick=function(){for(var a=this.player().playbackRate(),b=this.playbackRates(),c=b[0],d=0;da){c=b[d];break}this.player().playbackRate(c)},b.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},b.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},b.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},b.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},b}(h.default);q.prototype.controlText_="Playback Rate",n.default.registerComponent("PlaybackRateMenuButton",q),c.default=q,b.exports=c.default},{"../../component.js":66,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":144,"./playback-rate-menu-item.js":75}],75:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../menu/menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b);var f=d.rate,g=parseFloat(f,10);d.label=f,d.selected=1===g,a.call(this,c,d),this.label=f,this.rate=g,this.on(c,"ratechange",this.update)}return f(b,a),b.prototype.handleClick=function(){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},b.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},b}(h.default);k.prototype.contentElType="button",j.default.registerComponent("PlaybackRateMenuItem",k),c.default=k,b.exports=c.default},{"../../component.js":66,"../../menu/menu-item.js":110}],76:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var f=a("../../component.js"),g=function(a){return a&&a.__esModule?a:{default:a}}(f),h=a("../../utils/dom.js"),i=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(h),j=function(a){function b(c,e){d(this,b),a.call(this,c,e),this.on(c,"progress",this.update)}return e(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},b.prototype.update=function(){var a=this.player_.buffered(),b=this.player_.duration(),c=this.player_.bufferedEnd(),d=this.el_.children,e=function(a,b){var c=a/b||0;return 100*(c>=1?1:c)+"%"};this.el_.style.width=e(c,b);for(var f=0;fa.length;f--)this.el_.removeChild(d[f-1])},b}(g.default);g.default.registerComponent("LoadProgressBar",j),c.default=j,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144}],77:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("global/window"),i=e(h),j=a("../../component.js"),k=e(j),l=a("../../utils/dom.js"),m=d(l),n=a("../../utils/fn.js"),o=d(n),p=a("../../utils/format-time.js"),q=e(p),r=a("lodash-compat/function/throttle"),s=e(r),t=function(a){function b(c,d){var e=this;f(this,b),a.call(this,c,d),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltip=m.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside")),this.update(0,0,0),c.on("ready",function(){var a=e.player_.controlBar.progressControl.el();a.appendChild(e.tooltip),e.on(a,"mousemove",s.default(o.bind(e,e.handleMouseMove),25))})}return g(b,a),b.prototype.createEl=function(){return this.tooltip=m.createEl("div",{className:"vjs-mouse-display-tooltip"}),a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},b.prototype.dispose=function(){this.tooltip.parentNode&&this.tooltip.parentNode.removeChild(this.tooltip),m.removeElData(this.tooltip),this.tooltip=null,a.prototype.dispose.call(this)},b.prototype.handleMouseMove=function(a){var b=!1,c=this.player_.duration();c||(b=!0,c=100);var d=this.calculateDistance(a)*c,e=this.player().controlBar.progressControl.seekBar.width()-this.width(),f=a.pageX-m.findElPosition(this.el().parentNode).left;f=Math.min(Math.max(0,f),e);var g=this.tooltip.offsetWidth,h=this.tooltip.parentNode.offsetWidth-g,i=a.pageX-m.findElPosition(this.tooltip.parentNode).left-g/2;i=Math.min(Math.max(0,i),h),this.update(d,f,i,b)},b.prototype.update=function(a,b,c,d){var e=d?Math.round(a)+"%":q.default(a,this.player_.duration());if(this.el().style.left=b+"px",this.tooltip.innerHTML=e,this.keepTooltipsInside){var f=this.clampPosition_(b),g=b-f+1,h=parseFloat(i.default.getComputedStyle(this.tooltip).width),j=h/2;this.tooltip.style.left="auto",this.tooltip.style.right="-"+(j-g)+"px"}else this.tooltip.style.right="auto",this.tooltip.style.left=c+"px"},b.prototype.calculateDistance=function(a){return m.getPointerPosition(this.el().parentNode,a).x},b.prototype.clampPosition_=function(a){if(!this.keepTooltipsInside)return a;var b=parseFloat(i.default.getComputedStyle(this.player().el()).width),c=parseFloat(i.default.getComputedStyle(this.tooltip).width),d=c/2,e=a;return ab-d&&(e=Math.floor(b-d)),e},b}(k.default);k.default.registerComponent("MouseTimeDisplay",t),c.default=t,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/fn.js":146,"../../utils/format-time.js":147,"global/window":8,"lodash-compat/function/throttle":13}],78:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("../../component.js"),i=e(h),j=a("../../utils/fn.js"),k=d(j),l=a("../../utils/dom.js"),m=(d(l),a("../../utils/format-time.js")),n=e(m),o=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.updateDataAttr(),this.on(c,"timeupdate",this.updateDataAttr),c.ready(k.bind(this,this.updateDataAttr)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},b.prototype.updateDataAttr=function(){var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",n.default(a,this.player_.duration()))},b}(i.default);i.default.registerComponent("PlayProgressBar",o),c.default=o,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/fn.js":146,"../../utils/format-time.js":147}],79:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../component.js"),h=d(g),i=a("./seek-bar.js"),j=(d(i),a("./mouse-time-display.js")),k=(d(j),function(a){function b(){e(this,b),a.apply(this,arguments)}return f(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},b}(h.default));k.prototype.options_={children:["seekBar"]},h.default.registerComponent("ProgressControl",k),c.default=k,b.exports=c.default},{"../../component.js":66,"./mouse-time-display.js":77,"./seek-bar.js":80}],80:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("global/window"),h=d(g),i=a("../../slider/slider.js"),j=d(i),k=a("../../component.js"),l=d(k),m=a("./load-progress-bar.js"),n=(d(m),a("./play-progress-bar.js")),o=(d(n),a("./tooltip-progress-bar.js")),p=(d(o),a("../../utils/fn.js")),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r=a("../../utils/browser.js"),s=a("../../utils/format-time.js"),t=d(s),u=a("object.assign"),v=(d(u),function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"timeupdate",this.updateProgress),this.on(c,"ended",this.updateProgress),c.ready(q.bind(this,this.updateProgress)),d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return f(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},b.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var a=parseFloat(h.default.getComputedStyle(this.player().el()).width),b=parseFloat(h.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),c=this.tooltipProgressBar.el().style;c.maxWidth=Math.floor(a-b/2)+"px",c.minWidth=Math.ceil(b/2)+"px",c.right="-"+b/2+"px"}},b.prototype.updateAriaAttributes=function(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),a.setAttribute("aria-valuetext",t.default(b,this.player_.duration()))},b.prototype.getPercent=function(){var a=this.player_.currentTime()/this.player_.duration();return a>=1?1:a},b.prototype.handleMouseDown=function(b){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,b)},b.prototype.handleMouseMove=function(a){var b=this.calculateDistance(a)*this.player_.duration();b===this.player_.duration()&&(b-=.1),this.player_.currentTime(b)},b.prototype.handleMouseUp=function(b){a.prototype.handleMouseUp.call(this,b),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},b.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},b.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},b}(j.default));v.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},r.IE_VERSION&&!(r.IE_VERSION>8)||r.IS_IOS||r.IS_ANDROID||v.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),v.prototype.playerEvent="timeupdate",l.default.registerComponent("SeekBar",v),c.default=v,b.exports=c.default},{"../../component.js":66,"../../slider/slider.js":119,"../../utils/browser.js":141,"../../utils/fn.js":146,"../../utils/format-time.js":147,"./load-progress-bar.js":76,"./play-progress-bar.js":78,"./tooltip-progress-bar.js":81,"global/window":8,"object.assign":53}],81:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("../../component.js"),i=e(h),j=a("../../utils/fn.js"),k=d(j),l=a("../../utils/dom.js"),m=(d(l),a("../../utils/format-time.js")),n=e(m),o=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.updateDataAttr(),this.on(c,"timeupdate",this.updateDataAttr),c.ready(k.bind(this,this.updateDataAttr))}return g(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'
\n '+this.localize("Progress")+": 0%"});return this.tooltip=b.querySelector(".vjs-time-tooltip"),b},b.prototype.updateDataAttr=function(){var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=n.default(a,this.player_.duration());this.el_.setAttribute("data-current-time",b),this.tooltip.innerHTML=b},b}(i.default);i.default.registerComponent("TooltipProgressBar",o),c.default=o,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/fn.js":146,"../../utils/format-time.js":147}],82:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("./spacer.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(){e(this,b),a.apply(this,arguments)}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});return b.innerHTML=" ",b},b}(h.default);j.default.registerComponent("CustomControlSpacer",k),c.default=k,b.exports=c.default},{"../../component.js":66,"./spacer.js":83}],83:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var f=a("../../component.js"),g=function(a){return a&&a.__esModule?a:{default:a}}(f),h=function(a){function b(){d(this,b),a.apply(this,arguments)}return e(b,a),b.prototype.buildCSSClass=function(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b}(g.default);g.default.registerComponent("Spacer",h),c.default=h,b.exports=c.default},{"../../component.js":66}],84:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("./text-track-menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=function(a){function b(c,d){e(this,b),d.track={kind:d.kind,player:c,label:d.kind+" settings",selectable:!1,default:!1,mode:"disabled"},d.selectable=!1,a.call(this,c,d),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+d.kind+" settings dialog")}return f(b,a),b.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},b}(h.default);j.default.registerComponent("CaptionSettingsMenuItem",k),c.default=k,b.exports=c.default},{"../../component.js":66,"./text-track-menu-item.js":92}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("./text-track-button.js"),h=d(g),i=a("../../component.js"),j=d(i),k=a("./caption-settings-menu-item.js"),l=d(k),m=function(a){function b(c,d,f){e(this,b),a.call(this,c,d,f),this.el_.setAttribute("aria-label","Captions Menu")}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)},b.prototype.update=function(){var b=2;a.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(b=1),this.items&&this.items.length>b?this.show():this.hide()},b.prototype.createItems=function(){var b=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||b.push(new l.default(this.player_,{kind:this.kind_})),a.prototype.createItems.call(this,b)},b}(h.default);m.prototype.kind_="captions",m.prototype.controlText_="Captions",j.default.registerComponent("CaptionsButton",m),c.default=m,b.exports=c.default},{"../../component.js":66,"./caption-settings-menu-item.js":84,"./text-track-button.js":91}],86:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("./text-track-button.js"),i=e(h),j=a("../../component.js"),k=e(j),l=a("./text-track-menu-item.js"),m=e(l),n=a("./chapters-track-menu-item.js"),o=e(n),p=a("../../menu/menu.js"),q=e(p),r=a("../../utils/dom.js"),s=d(r),t=a("../../utils/fn.js"),u=(d(t),a("../../utils/to-title-case.js")),v=e(u),w=a("global/window"),x=(e(w),function(a){function b(c,d,e){f(this,b),a.call(this,c,d,e),this.el_.setAttribute("aria-label","Chapters Menu")}return g(b,a),b.prototype.buildCSSClass=function(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)},b.prototype.createItems=function(){var a=[],b=this.player_.textTracks();if(!b)return a;for(var c=0;c0){for(var k=c.cues,l=void 0,e=0,m=k.length;e0&&this.show(),h},b}(i.default));x.prototype.kind_="chapters",x.prototype.controlText_="Chapters",k.default.registerComponent("ChaptersButton",x),c.default=x,b.exports=c.default},{"../../component.js":66,"../../menu/menu.js":111,"../../utils/dom.js":144,"../../utils/fn.js":146,"../../utils/to-title-case.js":153,"./chapters-track-menu-item.js":87,"./text-track-button.js":91,"./text-track-menu-item.js":92,"global/window":8}],87:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../menu/menu-item.js"),h=d(g),i=a("../../component.js"),j=d(i),k=a("../../utils/fn.js"),l=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(k),m=function(a){function b(c,d){e(this,b);var f=d.track,g=d.cue,h=c.currentTime();d.label=g.text,d.selected=g.startTime<=h&&hCurrent Time 0:00'},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(){var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=this.localize("Current Time"),c=l.default(a,this.player_.duration());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML=''+b+" "+c)},b}(h.default);h.default.registerComponent("CurrentTimeDisplay",m),c.default=m,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/format-time.js":147}],94:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../component.js"),h=d(g),i=a("../../utils/dom.js"),j=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(i),k=a("../../utils/format-time.js"),l=d(k),m=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"timeupdate",this.updateContent),this.on(c,"loadedmetadata",this.updateContent)}return f(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=j.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(){var a=this.player_.duration();if(a&&this.duration_!==a){this.duration_=a;var b=this.localize("Duration Time"),c=l.default(a);this.contentEl_.innerHTML=''+b+" "+c}},b}(h.default);h.default.registerComponent("DurationDisplay",m),c.default=m,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/format-time.js":147}],95:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../component.js"),h=d(g),i=a("../../utils/dom.js"),j=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(i),k=a("../../utils/format-time.js"),l=d(k),m=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"timeupdate",this.updateContent)}return f(b,a),b.prototype.createEl=function(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=j.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(){if(this.player_.duration()){var a=this.localize("Remaining Time"),b=l.default(this.player_.remainingTime());b!==this.formattedTime_&&(this.formattedTime_=b,this.contentEl_.innerHTML=''+a+" -"+b)}},b}(h.default);h.default.registerComponent("RemainingTimeDisplay",m),c.default=m,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/format-time.js":147}],96:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var f=a("../../component.js"),g=function(a){return a&&a.__esModule?a:{default:a}}(f),h=function(a){function b(){d(this,b),a.apply(this,arguments)}return e(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},b}(g.default);g.default.registerComponent("TimeDivider",h),c.default=h,b.exports=c.default},{"../../component.js":66}],97:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../menu/menu-button.js"),h=d(g),i=a("../component.js"),j=d(i),k=a("../utils/fn.js"),l=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(k),m=function(a){function b(c,d){e(this,b);var f=d.tracks;if(a.call(this,c,d),this.items.length<=1&&this.hide(),f){var g=l.bind(this,this.update);f.addEventListener("removetrack",g),f.addEventListener("addtrack",g),this.player_.on("dispose",function(){f.removeEventListener("removetrack",g),f.removeEventListener("addtrack",g)})}}return f(b,a),b}(h.default);j.default.registerComponent("TrackButton",m),c.default=m,b.exports=c.default},{"../component.js":66,"../menu/menu-button.js":109,"../utils/fn.js":146}],98:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../slider/slider.js"),h=d(g),i=a("../../component.js"),j=d(i),k=a("../../utils/fn.js"),l=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(k),m=a("./volume-level.js"),n=(d(m),a("./volume-display.js")),o=(d(n),function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"volumechange",this.updateARIAAttributes),c.ready(l.bind(this,this.updateARIAAttributes))}return f(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},b.prototype.handleMouseMove=function(a){this.checkMuted(),this.player_.volume(this.calculateDistance(a))},b.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},b.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},b.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},b.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},b.prototype.updateARIAAttributes=function(){var a=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",a),this.el_.setAttribute("aria-valuetext",a+"%")},b}(h.default));o.prototype.options_={children:["volumeLevel","volumeDisplay"],barName:"volumeLevel"},o.prototype.playerEvent="volumechange",j.default.registerComponent("VolumeBar",o),c.default=o,b.exports=c.default},{"../../component.js":66,"../../slider/slider.js":119,"../../utils/fn.js":146,"./volume-display.js":100,"./volume-level.js":101}],99:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../../component.js"),h=d(g),i=a("./volume-bar.js"),j=(d(i),function(a){function b(c,d){e(this,b),a.call(this,c,d),c.tech_&&!1===c.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(c,"loadstart",function(){!1===c.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return f(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},b}(h.default));j.prototype.options_={children:["volumeBar"]},h.default.registerComponent("VolumeControl",j),c.default=j,b.exports=c.default},{"../../component.js":66,"./volume-bar.js":98}],100:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("../../component.js"),i=e(h),j=a("../../utils/dom.js"),k=d(j),l=a("../../utils/fn.js"),m=d(l),n=a("lodash-compat/function/throttle"),o=e(n),p=function(a){function b(c,d){var e=this;f(this,b),a.call(this,c,d),this.update(0,0,0),c.on("ready",function(){c.controlBar.progressControl.el().appendChild(e.tooltip),e.parent=c.controlBar.volumeMenuButton.volumeBar,e.on(e.parent.el(),"mousemove",o.default(m.bind(e,e.handleMouseMove),25)),e.on(e.parent.el(),"mouseover",o.default(m.bind(e,e.handleHover),25)),e.on(e.parent.el(),"mouseout",o.default(m.bind(e,e.handleLeave),25))})}return g(b,a),b.prototype.createEl=function(){return this.className="vjs-volume-display",this.tooltipClassName=this.className+"-tooltip",this.tooltip=k.createEl("div",{className:this.tooltipClassName}),a.prototype.createEl.call(this,"div",{className:this.className})},b.prototype.dispose=function(){this.tooltip.parentNode&&this.tooltip.parentNode.removeChild(this.tooltip),k.removeElData(this.tooltip),this.tooltip=null,a.prototype.dispose.call(this)},b.prototype.handleMouseMove=function(a){var b=100*this.calculateDistance(a),c=this.parent.width()-this.width(),d=a.pageX-k.findElPosition(this.el().parentNode).left;d=Math.min(Math.max(0,d),c);var e=this.tooltip.offsetWidth,f=k.findElPosition(this.tooltip.parentNode).left,g=k.findElPosition(this.parent.el()).left-f-e/2,h=g+this.parent.width(),i=a.pageX-f-e/2;i=Math.min(Math.max(g,i),h),this.update(b,d,i)},b.prototype.handleHover=function(a){this.player_.trigger("tooltipShown"),k.addElClass(this.tooltip,this.tooltipClassName+"-active")},b.prototype.handleLeave=function(a){k.removeElClass(this.tooltip,this.tooltipClassName+"-active")},b.prototype.update=function(a,b,c){var d=Math.round(a)+"%";this.el().style.left=b+"px",this.tooltip.style.left=c+"px",this.tooltip.innerHTML=d},b.prototype.calculateDistance=function(a){return k.getPointerPosition(this.el().parentNode,a).x},b}(i.default);i.default.registerComponent("VolumeDisplay",p),c.default=p,b.exports=c.default},{"../../component.js":66,"../../utils/dom.js":144,"../../utils/fn.js":146,"lodash-compat/function/throttle":13}],101:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var f=a("../../component.js"),g=function(a){return a&&a.__esModule?a:{default:a}}(f),h=function(a){function b(){d(this,b),a.apply(this,arguments)}return e(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},b}(g.default);g.default.registerComponent("VolumeLevel",h),c.default=h,b.exports=c.default},{"../../component.js":66}],102:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../utils/fn.js"),h=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(g),i=a("../component.js"),j=d(i),k=a("../popup/popup.js"),l=d(k),m=a("../popup/popup-button.js"),n=d(m),o=a("./mute-toggle.js"),p=d(o),q=a("./volume-control/volume-bar.js"),r=d(q),s=function(a){function b(c){function d(){c.tech_&&!1===c.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var f=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];e(this,b),void 0===f.inline&&(f.inline=!0),void 0===f.vertical&&(f.inline?f.vertical=!1:f.vertical=!0),f.volumeBar=f.volumeBar||{},f.volumeBar.vertical=!!f.vertical,a.call(this,c,f),this.on(c,"volumechange",this.volumeUpdate),this.on(c,"loadstart",this.volumeUpdate),d.call(this),this.on(c,"loadstart",d),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return f(b,a),b.prototype.buildCSSClass=function(){var b="";return b=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+a.prototype.buildCSSClass.call(this)+" "+b},b.prototype.createPopup=function(){var a=new l.default(this.player_,{contentElType:"div"}),b=new r.default(this.player_,this.options_.volumeBar);return a.addChild(b),this.menuContent=a,this.volumeBar=b,this.attachVolumeBarEvents(),a},b.prototype.handleClick=function(){p.default.prototype.handleClick.call(this),a.prototype.handleClick.call(this)},b.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],h.bind(this,this.handleMouseDown))},b.prototype.handleMouseDown=function(a){this.on(["mousemove","touchmove"],h.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},b.prototype.handleMouseUp=function(a){this.off(["mousemove","touchmove"],h.bind(this.volumeBar,this.volumeBar.handleMouseMove))},b}(n.default);s.prototype.volumeUpdate=p.default.prototype.update,s.prototype.controlText_="Mute",j.default.registerComponent("VolumeMenuButton",s),c.default=s,b.exports=c.default},{"../component.js":66,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":146,"./mute-toggle.js":72,"./volume-control/volume-bar.js":98}],103:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("./component"),h=d(g),i=a("./modal-dialog"),j=d(i),k=a("./utils/dom"),l=(function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);b.default=a}(k),a("./utils/merge-options")),m=d(l),n=function(a){function b(c,d){e(this,b),a.call(this,c,d),this.on(c,"error",this.open)}return f(b,a),b.prototype.buildCSSClass=function(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)},b.prototype.content=function(){var a=this.player().error();return a?this.localize(a.message):""},b}(j.default);n.prototype.options_=m.default(j.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),h.default.registerComponent("ErrorDisplay",n),c.default=n,b.exports=c.default},{"./component":66,"./modal-dialog":112,"./utils/dom":144,"./utils/merge-options":150}],104:[function(a,b,c){"use strict";c.__esModule=!0;var d=a("./utils/events.js"),e=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(d),f=function(){};f.prototype.allowedEvents_={},f.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},e.on(this,a,b),this.addEventListener=c},f.prototype.addEventListener=f.prototype.on,f.prototype.off=function(a,b){e.off(this,a,b)},f.prototype.removeEventListener=f.prototype.off,f.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},e.one(this,a,b),this.addEventListener=c},f.prototype.trigger=function(a){var b=a.type||a;"string"==typeof a&&(a={type:b}),a=e.fixEvent(a),this.allowedEvents_[b]&&this["on"+b]&&this["on"+b](a),e.trigger(this,a)},f.prototype.dispatchEvent=f.prototype.trigger,c.default=f,b.exports=c.default},{"./utils/events.js":145}],105:[function(a,b,c){"use strict";c.__esModule=!0;var d=a("./utils/log"),e=function(a){return a&&a.__esModule?a:{default:a}}(d),f=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.super_=b)},g=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=function(){a.apply(this,arguments)},d={};"object"==typeof b?("function"==typeof b.init&&(e.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),b.constructor=b.init),b.constructor!==Object.prototype.constructor&&(c=b.constructor),d=b):"function"==typeof b&&(c=b),f(c,a);for(var g in d)d.hasOwnProperty(g)&&(c.prototype[g]=d[g]);return c};c.default=g,b.exports=c.default},{"./utils/log":149}],106:[function(a,b,c){"use strict";c.__esModule=!0;for(var d=a("global/document"),e=function(a){return a&&a.__esModule?a:{default:a}}(d),f={},g=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],h=g[0],i=void 0,j=0;j1&&this.show()},b.prototype.createMenu=function(){var a=new m.default(this.player_);if(this.options_.title){var b=o.createEl("li",{className:"vjs-menu-title",innerHTML:s.default(this.options_.title),tabIndex:-1});a.children_.unshift(b),o.insertElFirst(b,a.contentEl())}if(this.items=this.createItems(),this.items)for(var c=0;c0&&(a<0?a=0:a>=b.length&&(a=b.length-1),this.focusedChild_=a,b[a].el_.focus())},b}(h.default);h.default.registerComponent("Menu",o),c.default=o,b.exports=c.default},{"../component.js":66,"../utils/dom.js":144,"../utils/events.js":145,"../utils/fn.js":146}],112:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("./utils/dom"),i=e(h),j=a("./utils/fn"),k=e(j),l=a("./utils/log"),m=(d(l),a("./component")),n=d(m),o=a("./close-button"),p=(d(o),"vjs-modal-dialog"),q=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=i.createEl("div",{className:p+"-content"},{role:"document"}),this.descEl_=i.createEl("p",{className:p+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),i.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},b.prototype.buildCSSClass=function(){return p+" vjs-hidden "+a.prototype.buildCSSClass.call(this)},b.prototype.handleKeyPress=function(a){27===a.which&&this.closeable()&&this.close()},b.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},b.prototype.description=function(){var a=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),a},b.prototype.open=function(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!a.paused(),this.wasPlaying_&&a.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",k.bind(this,this.handleKeyPress)),a.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},b.prototype.opened=function(a){return"boolean"==typeof a&&this[a?"open":"close"](),this.opened_},b.prototype.close=function(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&a.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",k.bind(this,this.handleKeyPress)),a.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},b.prototype.closeable=function(a){if("boolean"==typeof a){var b=this.closeable_=!!a,c=this.getChild("closeButton");if(b&&!c){var d=this.contentEl_;this.contentEl_=this.el_,c=this.addChild("closeButton"),this.contentEl_=d,this.on(c,"close",this.close)}!b&&c&&(this.off(c,"close",this.close),this.removeChild(c),c.dispose())}return this.closeable_},b.prototype.fill=function(){return this.fillWith(this.content())},b.prototype.fillWith=function(a){var b=this.contentEl(),c=b.parentNode,d=b.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,c.removeChild(b),this.empty(),i.insertContent(b,a),this.trigger("modalfill"),d?c.insertBefore(b,d):c.appendChild(b),this},b.prototype.empty=function(){return this.trigger("beforemodalempty"),i.emptyEl(this.contentEl()),this.trigger("modalempty"),this},b.prototype.content=function(a){return void 0!==a&&(this.content_=a),this.content_},b}(n.default);q.prototype.options_={temporary:!0},n.default.registerComponent("ModalDialog",q),c.default=q,b.exports=c.default},{"./close-button":65,"./component":66,"./utils/dom":144,"./utils/fn":146,"./utils/log":149}],113:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("./component.js"),i=e(h),j=a("global/document"),k=e(j),l=a("global/window"),m=e(l),n=a("./utils/events.js"),o=d(n),p=a("./utils/dom.js"),q=d(p),r=a("./utils/fn.js"),s=d(r),t=a("./utils/guid.js"),u=d(t),v=a("./utils/browser.js"),w=d(v),x=a("./utils/log.js"),y=e(x),z=a("./utils/to-title-case.js"),A=e(z),B=a("./utils/time-ranges.js"),C=a("./utils/buffer.js"),D=a("./utils/stylesheet.js"),E=d(D),F=a("./fullscreen-api.js"),G=e(F),H=a("./media-error.js"),I=e(H),J=a("safe-json-parse/tuple"),K=e(J),L=a("object.assign"),M=e(L),N=a("./utils/merge-options.js"),O=e(N),P=a("./tracks/text-track-list-converter.js"),Q=e(P),R=a("./tracks/audio-track-list.js"),S=e(R),T=a("./tracks/video-track-list.js"),U=e(T),V=a("./tech/loader.js"),W=(e(V),a("./poster-image.js")),X=(e(W),a("./tracks/text-track-display.js")),Y=(e(X),a("./loading-spinner.js")),Z=(e(Y),a("./big-play-button.js")),$=(e(Z),a("./control-bar/control-bar.js")),_=(e($),a("./error-display.js")),aa=(e(_),a("./tracks/text-track-settings.js")),ba=(e(aa),a("./modal-dialog")),ca=e(ba),da=a("./tech/tech.js"),ea=e(da),fa=a("./tech/html5.js"),ga=(e(fa),function(a){function b(c,d,e){var g=this;if(f(this,b),c.id=c.id||"vjs_video_"+u.newGUID(),d=M.default(b.getTagSettings(c),d),d.initChildren=!1,d.createEl=!1,d.reportTouchActivity=!1,a.call(this,null,d,e),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=c,this.tagAttributes=c&&q.getElAttributes(c),this.language(this.options_.language),d.languages?function(){var a={};Object.getOwnPropertyNames(d.languages).forEach(function(b){a[b.toLowerCase()]=d.languages[b]}),g.languages_=a}():this.languages_=b.prototype.options_.languages,this.cache_={},this.poster_=d.poster||"",this.controls_=!!d.controls,c.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var h=O.default(this.options_);d.plugins&&function(){var a=d.plugins;Object.getOwnPropertyNames(a).forEach(function(b){"function"==typeof this[b]?this[b](a[b]):y.default.error("Unable to find plugin:",b)},g)}(),this.options_.playerOptions=h,this.initChildren(),this.isAudio("audio"===c.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),w.IS_IOS||this.addClass("vjs-workinghover"),b.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return g(b,a),b.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),b.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var b=this.el_=a.prototype.createEl.call(this,"div"),c=this.tag;c.removeAttribute("width"),c.removeAttribute("height");var d=q.getElAttributes(c);if(Object.getOwnPropertyNames(d).forEach(function(a){"class"===a?b.className=d[a]:b.setAttribute(a,d[a])}),c.playerId=c.id,c.id+="_html5_api",c.className="vjs-tech",c.player=b.player=this,this.addClass("vjs-paused"),!0!==m.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=E.createStyleElement("vjs-styles-dimensions");var e=q.$(".vjs-styles-defaults"),f=q.$("head");f.insertBefore(this.styleEl_,e?e.nextSibling:f.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var g=c.getElementsByTagName("a"),h=0;h=0&&(c.width=a),b>=0&&(c.height=b)))}var d=void 0,e=void 0,f=void 0,g=void 0;f=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";var h=f.split(":"),i=h[1]/h[0];d=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,e=void 0!==this.height_?this.height_:d*i,g=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(g),E.setTextContent(this.styleEl_,"\n ."+g+" {\n width: "+d+"px;\n height: "+e+"px;\n }\n\n ."+g+".vjs-fluid {\n padding-top: "+100*i+"%;\n }\n ")},b.prototype.loadTech_=function(a,b){this.tech_&&this.unloadTech_(),"Html5"!==a&&this.tag&&(ea.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var c=M.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:b,playerId:this.id(),techId:this.id()+"_"+a+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,controls:this.options_.controls,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[a.toLowerCase()]);this.tag&&(c.tag=this.tag),b&&(this.currentType_=b.type,b.src===this.cache_.src&&this.cache_.currentTime>0&&(c.startTime=this.cache_.currentTime),this.cache_.src=b.src);var d=ea.default.getTech(a);d||(d=i.default.getComponent(a)),this.tech_=new d(c),this.tech_.ready(s.bind(this,this.handleTechReady_),!0),Q.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.tech_.el().parentNode===this.el()||"Html5"===a&&this.tag||q.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},b.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=Q.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},b.prototype.tech=function(a){if(a&&a.IWillNotUseThisInPlugins)return this.tech_;var b="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw m.default.alert(b),new Error(b)},b.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},b.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},b.prototype.handleTechReady_=function(){this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),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())},b.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},b.prototype.hasStarted=function(a){return void 0!==a?(this.hasStarted_!==a&&(this.hasStarted_=a,a?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},b.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},b.prototype.handleTechWaiting_=function(){var a=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})},b.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},b.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},b.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},b.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},b.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},b.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},b.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},b.prototype.handleTechProgress_=function(){this.trigger("progress")},b.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},b.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},b.prototype.handleTechClick_=function(a){0===a.button&&this.controls()&&(this.paused()?this.play():this.pause())},b.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},b.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},b.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},b.prototype.handleTechTouchEnd_=function(a){a.preventDefault()},b.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},b.prototype.handleStageClick_=function(){this.reportUserActivity()},b.prototype.handleTechFullscreenChange_=function(a,b){b&&this.isFullscreen(b.isFullscreen),this.trigger("fullscreenchange")},b.prototype.handleTechError_=function(){var a=this.tech_.error();this.error(a&&a.code)},b.prototype.handleTechSuspend_=function(){this.trigger("suspend")},b.prototype.handleTechAbort_=function(){this.trigger("abort")},b.prototype.handleTechEmptied_=function(){this.trigger("emptied")},b.prototype.handleTechStalled_=function(){this.trigger("stalled")},b.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},b.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},b.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},b.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},b.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},b.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},b.prototype.getCache=function(){return this.cache_},b.prototype.techCall_=function(a,b){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[a](b)},!0);else try{this.tech_&&this.tech_[a](b)}catch(a){throw y.default(a),a}},b.prototype.techGet_=function(a){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[a]()}catch(b){throw void 0===this.tech_[a]?y.default("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b):"TypeError"===b.name?(y.default("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b),this.tech_.isReady_=!1):y.default(b),b}},b.prototype.play=function(){return this.techCall_("play"),this},b.prototype.pause=function(){return this.techCall_("pause"),this},b.prototype.paused=function(){return!1!==this.techGet_("paused")},b.prototype.scrubbing=function(a){return void 0!==a?(this.scrubbing_=!!a,a?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},b.prototype.currentTime=function(a){return void 0!==a?(this.techCall_("setCurrentTime",a),this):this.cache_.currentTime=this.techGet_("currentTime")||0},b.prototype.duration=function(a){return void 0===a?this.cache_.duration||0:(a=parseFloat(a)||0,a<0&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},b.prototype.remainingTime=function(){return this.duration()-this.currentTime()},b.prototype.buffered=function(){var a=this.techGet_("buffered");return a&&a.length||(a=B.createTimeRange(0,0)),a},b.prototype.bufferedPercent=function(){return C.bufferedPercent(this.buffered(),this.duration())},b.prototype.bufferedEnd=function(){var a=this.buffered(),b=this.duration(),c=a.end(a.length-1);return c>b&&(c=b),c},b.prototype.volume=function(a){var b=void 0;return void 0!==a?(b=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=b,this.techCall_("setVolume",b),this):(b=parseFloat(this.techGet_("volume")),isNaN(b)?1:b)},b.prototype.muted=function(a){return void 0!==a?(this.techCall_("setMuted",a),this):this.techGet_("muted")||!1},b.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},b.prototype.isFullscreen=function(a){return void 0!==a?(this.isFullscreen_=!!a,this):!!this.isFullscreen_},b.prototype.requestFullscreen=function(){var a=G.default;return this.isFullscreen(!0),a.requestFullscreen?(o.on(k.default,a.fullscreenchange,s.bind(this,function b(c){this.isFullscreen(k.default[a.fullscreenElement]),!1===this.isFullscreen()&&o.off(k.default,a.fullscreenchange,b),this.trigger("fullscreenchange")})),this.el_[a.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.exitFullscreen=function(){var a=G.default;return this.isFullscreen(!1),a.requestFullscreen?k.default[a.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},b.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=k.default.documentElement.style.overflow,o.on(k.default,"keydown",s.bind(this,this.fullWindowOnEscKey)),k.default.documentElement.style.overflow="hidden",q.addElClass(k.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},b.prototype.fullWindowOnEscKey=function(a){27===a.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},b.prototype.exitFullWindow=function(){this.isFullWindow=!1,o.off(k.default,"keydown",this.fullWindowOnEscKey),k.default.documentElement.style.overflow=this.docOrigOverflow,q.removeElClass(k.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},b.prototype.canPlayType=function(a){for(var b=void 0,c=0,d=this.options_.techOrder;c0&&(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},a))}},250)},b.prototype.playbackRate=function(a){return void 0!==a?(this.techCall_("setPlaybackRate",a),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},b.prototype.isAudio=function(a){return void 0!==a?(this.isAudio_=!!a,this):!!this.isAudio_},b.prototype.networkState=function(){return this.techGet_("networkState")},b.prototype.readyState=function(){return this.techGet_("readyState")},b.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new U.default,this.videoTracks_)},b.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new S.default,this.audioTracks_)},b.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},b.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},b.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},b.prototype.addTextTrack=function(a,b,c){return this.tech_&&this.tech_.addTextTrack(a,b,c)},b.prototype.addRemoteTextTrack=function(a){return this.tech_&&this.tech_.addRemoteTextTrack(a)},b.prototype.removeRemoteTextTrack=function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=a.track,c=void 0===b?arguments[0]:b;this.tech_&&this.tech_.removeRemoteTextTrack(c)},b.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},b.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},b.prototype.language=function(a){return void 0===a?this.language_:(this.language_=(""+a).toLowerCase(),this)},b.prototype.languages=function(){return O.default(b.prototype.options_.languages,this.languages_)},b.prototype.toJSON=function(){var a=O.default(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c1&&this.show()},b.prototype.createPopup=function(){},b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},b.prototype.buildCSSClass=function(){var b="vjs-menu-button";return!0===this.options_.inline?b+="-inline":b+="-popup","vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)},b.prototype.tooltipHandler=function(){},b}(i.default));k.default.registerComponent("PopupButton",p),c.default=p,b.exports=c.default},{"../clickable-component.js":64,"../component.js":66,"../utils/dom.js":144,"../utils/fn.js":146,"../utils/to-title-case.js":153,"./popup.js":116}],116:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../component.js"),h=function(a){return a&&a.__esModule?a:{default:a}}(g),i=a("../utils/dom.js"),j=d(i),k=a("../utils/fn.js"),l=d(k),m=a("../utils/events.js"),n=d(m),o=function(a){function b(){e(this,b),a.apply(this,arguments)}return f(b,a),b.prototype.addItem=function(a){this.addChild(a),a.on("click",l.bind(this,function(){this.unlockShowing()}))},b.prototype.createEl=function(){var b=this.options_.contentElType||"ul";this.contentEl_=j.createEl(b,{className:"vjs-menu-content"});var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return c.appendChild(this.contentEl_),n.on(c,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),c},b}(h.default);h.default.registerComponent("Popup",o),c.default=o,b.exports=c.default},{"../component.js":66,"../utils/dom.js":144,"../utils/events.js":145,"../utils/fn.js":146}],117:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("./clickable-component.js"),i=e(h),j=a("./component.js"),k=e(j),l=a("./utils/fn.js"),m=d(l),n=a("./utils/dom.js"),o=d(n),p=a("./utils/browser.js"),q=d(p),r=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.update(),c.on("posterchange",m.bind(this,this.update))}return g(b,a),b.prototype.dispose=function(){this.player().off("posterchange",this.update),a.prototype.dispose.call(this)},b.prototype.createEl=function(){var a=o.createEl("div",{className:"vjs-poster",tabIndex:-1});return q.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=o.createEl("img"),a.appendChild(this.fallbackImg_)),a},b.prototype.update=function(){var a=this.player().poster();this.setSrc(a),a?this.show():this.hide()},b.prototype.setSrc=function(a){if(this.fallbackImg_)this.fallbackImg_.src=a;else{var b="";a&&(b='url("'+a+'")'),this.el_.style.backgroundImage=b}},b.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},b}(i.default);k.default.registerComponent("PosterImage",r),c.default=r,b.exports=c.default},{"./clickable-component.js":64,"./component.js":66,"./utils/browser.js":141,"./utils/dom.js":144,"./utils/fn.js":146}],118:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}c.__esModule=!0;var e=a("./utils/events.js"),f=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(e),g=a("global/document"),h=d(g),i=a("global/window"),j=d(i),k=!1,l=void 0,m=function(){var a=h.default.getElementsByTagName("video"),b=h.default.getElementsByTagName("audio"),c=[];if(a&&a.length>0)for(var d=0,e=a.length;d0)for(var d=0,e=b.length;d0)for(var d=0,e=c.length;dc.start(0)?b:c.start(0),b=b=10},j.default.withSourceHandlers(y),y.nativeSourceHandler={},y.nativeSourceHandler.canPlayType=function(a){return a in y.formats?"maybe":""},y.nativeSourceHandler.canHandleSource=function(a){var b;return b=a.type?a.type.replace(/;.*/,"").toLowerCase():function(a){var b=n.getFileExtension(a);return b?"video/"+b:""}(a.src),y.nativeSourceHandler.canPlayType(b)},y.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},y.nativeSourceHandler.dispose=function(){},y.registerSourceHandler(y.nativeSourceHandler),y.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},y.onReady=function(a){var b=l.getEl(a),c=b&&b.tech;c&&c.el()&&y.checkReady(c)},y.checkReady=function(a){a.el()&&(a.el().vjs_getProperty?a.triggerReady():this.setTimeout(function(){y.checkReady(a)},50))},y.onEvent=function(a,b){l.getEl(a).tech.trigger(b)},y.onError=function(a,b){var c=l.getEl(a).tech;if("srcnotfound"===b)return c.error(4);c.error("FLASH: "+b)},y.version=function(){var a="0,0,0";try{a=new u.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{x.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(a=(x.plugins["Shockwave Flash 2.0"]||x.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(a){}}return a.split(",")},y.embed=function(a,b,c,d){var e=y.getEmbedCode(a,b,c,d);return l.createEl("div",{innerHTML:e}).childNodes[0]},y.getEmbedCode=function(a,b,c,d){var e="",f="",g="";return b&&Object.getOwnPropertyNames(b).forEach(function(a){e+=a+"="+b[a]+"&"}),c=w.default({movie:a,flashvars:e,allowScriptAccess:"always",allowNetworking:"all"},c),Object.getOwnPropertyNames(c).forEach(function(a){f+=''}),d=w.default({data:a,width:"100%",height:"100%"},d),Object.getOwnPropertyNames(d).forEach(function(a){g+=a+'="'+d[a]+'" '}),'"+f+""},q.default(y),s.default.registerComponent("Flash",y),j.default.registerTech("Flash",y),c.default=y,b.exports=c.default},{"../component":66,"../utils/dom.js":144,"../utils/time-ranges.js":152,"../utils/url.js":154,"./flash-rtmp":120,"./tech":124,"global/window":8,"object.assign":53}],122:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=function(a,b){return a.raw=b,a}(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."]),i=a("./tech.js"),j=e(i),k=a("../component"),l=e(k),m=a("../utils/dom.js"),n=d(m),o=a("../utils/url.js"),p=d(o),q=a("../utils/fn.js"),r=d(q),s=a("../utils/log.js"),t=e(s),u=a("tsml"),v=e(u),w=a("../../../src/js/tracks/text-track.js"),x=(e(w),a("../utils/browser.js")),y=d(x),z=a("global/document"),A=e(z),B=a("global/window"),C=e(B),D=a("object.assign"),E=e(D),F=a("../utils/merge-options.js"),G=e(F),H=a("../utils/to-title-case.js"),I=e(H),J=function(a){function b(c,d){var e=this;f(this,b),a.call(this,c,d);var g=c.source,i=!1;if(g&&(this.el_.currentSrc!==g.src||c.tag&&3===c.tag.initNetworkState_)?this.setSource(g):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var j=this.el_.childNodes,k=j.length,l=[];k--;){var m=j[k];"track"===m.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(m),this.remoteTextTracks().addTrack_(m.track),i||this.el_.hasAttribute("crossorigin")||!p.isCrossOrigin(m.src)||(i=!0)):l.push(m))}for(var n=0;n=0;g--){var h=f[g],i={};void 0!==this.options_[h]&&(i[h]=this.options_[h]),n.setElAttributes(a,i)}return a},b.prototype.handleLateInit_=function(a){var b=this;if(0!==a.networkState&&3!==a.networkState){if(0===a.readyState){var c=function(){var a=!1,c=function(){a=!0};b.on("loadstart",c);var d=function(){a||this.trigger("loadstart")};return b.on("loadedmetadata",d),b.ready(function(){this.off("loadstart",c),this.off("loadedmetadata",d),a||this.trigger("loadstart")}),{v:void 0}}();if("object"==typeof c)return c.v}var d=["loadstart"];d.push("loadedmetadata"),a.readyState>=2&&d.push("loadeddata"),a.readyState>=3&&d.push("canplay"),a.readyState>=4&&d.push("canplaythrough"),this.ready(function(){d.forEach(function(a){this.trigger(a)},this)})}},b.prototype.proxyNativeTextTracks_=function(){var a=this.el().textTracks;if(a){for(var b=0;b=4&&(L||(L=J.TEST_VID.constructor.prototype.canPlayType),J.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&M.test(a)?"maybe":L.call(this,a)}),y.IS_OLD_ANDROID&&(L||(L=J.TEST_VID.constructor.prototype.canPlayType),J.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&N.test(a)?"maybe":L.call(this,a)})},J.unpatchCanPlayType=function(){var a=J.TEST_VID.constructor.prototype.canPlayType;return J.TEST_VID.constructor.prototype.canPlayType=L,L=null,a},J.patchCanPlayType(),J.disposeMediaElement=function(a){if(a){for(a.parentNode&&a.parentNode.removeChild(a);a.hasChildNodes();)a.removeChild(a.firstChild);a.removeAttribute("src"),"function"==typeof a.load&&function(){try{a.load()}catch(a){}}()}},J.resetMediaElement=function(a){if(a){for(var b=a.querySelectorAll("source"),c=b.length;c--;)a.removeChild(b[c]);a.removeAttribute("src"), "function"==typeof a.load&&function(){try{a.load()}catch(a){}}()}},l.default.registerComponent("Html5",J),j.default.registerTech("Html5",J),c.default=J,b.exports=c.default},{"../../../src/js/tracks/text-track.js":135,"../component":66,"../utils/browser.js":141,"../utils/dom.js":144,"../utils/fn.js":146,"../utils/log.js":149,"../utils/merge-options.js":150,"../utils/to-title-case.js":153,"../utils/url.js":154,"./tech.js":124,"global/document":7,"global/window":8,"object.assign":53,tsml:59}],123:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("../component.js"),h=d(g),i=a("./tech.js"),j=d(i),k=a("global/window"),l=(d(k),a("../utils/to-title-case.js")),m=d(l),n=function(a){function b(c,d,f){if(e(this,b),a.call(this,c,d,f),d.playerOptions.sources&&0!==d.playerOptions.sources.length)c.src(d.playerOptions.sources);else for(var g=0,i=d.playerOptions.techOrder;g=0;f--)if(c[f].enabled){m(c,c[f]);break}if(j.IS_IE8){d=l.default.createElement("custom");for(var g in h.default.prototype)"constructor"!==g&&(d[g]=h.default.prototype[g]);for(var g in b.prototype)"constructor"!==g&&(d[g]=b.prototype[g])}return d=a.call(this,c,d),d.changing_=!1,d}return f(b,a),b.prototype.addTrack_=function(b){var c=this;b.enabled&&m(this,b),a.prototype.addTrack_.call(this,b),b.addEventListener&&b.addEventListener("enabledchange",function(){c.changing_||(c.changing_=!0,m(c,b),c.changing_=!1,c.trigger("change"))})},b.prototype.addTrack=function(a){this.addTrack_(a)},b.prototype.removeTrack=function(b){a.prototype.removeTrack_.call(this,b)},b}(h.default);c.default=n,b.exports=c.default},{"../utils/browser.js":141,"./track-list":137,"global/document":7}],127:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var g=a("./track-enums"),h=a("./track"),i=d(h),j=a("../utils/merge-options"),k=d(j),l=a("../utils/browser.js"),m=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(l),n=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];e(this,b);var d=k.default(c,{kind:g.AudioTrackKind[c.kind]||""}),f=a.call(this,d),h=!1;if(m.IS_IE8)for(var i in b.prototype)"constructor"!==i&&(f[i]=b.prototype[i]);return Object.defineProperty(f,"enabled",{get:function(){return h},set:function(a){"boolean"==typeof a&&a!==h&&(h=a,this.trigger("enabledchange"))}}),d.enabled&&(f.enabled=d.enabled),f.loaded_=!0,f}return f(b,a),b}(i.default);c.default=n,b.exports=c.default},{"../utils/browser.js":141,"../utils/merge-options":150,"./track":138,"./track-enums":136}],128:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=a("../utils/browser.js"),f=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(e),g=a("global/document"),h=function(a){return a&&a.__esModule?a:{default:a}}(g),i=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];d(this,a);var c=this;if(f.IS_IE8){c=h.default.createElement("custom");for(var e in a.prototype)"constructor"!==e&&(c[e]=a.prototype[e])}c.trackElements_=[],Object.defineProperty(c,"length",{get:function(){return this.trackElements_.length}});for(var g=0,i=b.length;g\n
\n
\n \n \n \n \n \n
\n
\n \n \n \n \n \n
\n
\n \n \n \n \n \n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n
\n \n \n
'}c.__esModule=!0;var k=a("../component"),l=e(k),m=a("../utils/events.js"),n=d(m),o=a("../utils/fn.js"),p=d(o),q=a("../utils/log.js"),r=e(q),s=a("safe-json-parse/tuple"),t=e(s),u=a("global/window"),v=e(u),w=function(a){function b(c,d){f(this,b),a.call(this,c,d),this.hide(),void 0===d.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),n.on(this.$(".vjs-done-button"),"click",p.bind(this,function(){this.saveSettings(),this.hide()})),n.on(this.$(".vjs-default-button"),"click",p.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),n.on(this.$(".vjs-fg-color > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-bg-color > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".window-color > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-text-opacity > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-bg-opacity > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-window-opacity > select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-font-percent select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-edge-style select"),"change",p.bind(this,this.updateDisplay)),n.on(this.$(".vjs-font-family select"),"change",p.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return g(b,a),b.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:j()})},b.prototype.getValues=function(){var a=h(this.$(".vjs-edge-style select")),b=h(this.$(".vjs-font-family select")),c=h(this.$(".vjs-fg-color > select")),d=h(this.$(".vjs-text-opacity > select")),e=h(this.$(".vjs-bg-color > select")),f=h(this.$(".vjs-bg-opacity > select")),g=h(this.$(".window-color > select")),i=h(this.$(".vjs-window-opacity > select")),j=v.default.parseFloat(h(this.$(".vjs-font-percent > select"))),k={backgroundOpacity:f,textOpacity:d,windowOpacity:i,edgeStyle:a,fontFamily:b,color:c,backgroundColor:e,windowColor:g,fontPercent:j};for(var l in k)(""===k[l]||"none"===k[l]||"fontPercent"===l&&1===k[l])&&delete k[l];return k},b.prototype.setValues=function(a){i(this.$(".vjs-edge-style select"),a.edgeStyle),i(this.$(".vjs-font-family select"),a.fontFamily),i(this.$(".vjs-fg-color > select"),a.color),i(this.$(".vjs-text-opacity > select"),a.textOpacity),i(this.$(".vjs-bg-color > select"),a.backgroundColor),i(this.$(".vjs-bg-opacity > select"),a.backgroundOpacity),i(this.$(".window-color > select"),a.windowColor),i(this.$(".vjs-window-opacity > select"),a.windowOpacity);var b=a.fontPercent;b&&(b=b.toFixed(2)),i(this.$(".vjs-font-percent > select"),b)},b.prototype.restoreSettings=function(){var a=void 0,b=void 0;try{var c=t.default(v.default.localStorage.getItem("vjs-text-track-settings"));a=c[0],b=c[1],a&&r.default.error(a)}catch(a){r.default.warn(a)}b&&this.setValues(b)},b.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var a=this.getValues();try{Object.getOwnPropertyNames(a).length>0?v.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(a)):v.default.localStorage.removeItem("vjs-text-track-settings")}catch(a){r.default.warn(a)}}},b.prototype.updateDisplay=function(){var a=this.player_.getChild("textTrackDisplay");a&&a.updateDisplay()},b}(l.default);l.default.registerComponent("TextTrackSettings",w),c.default=w,b.exports=c.default},{"../component":66,"../utils/events.js":145,"../utils/fn.js":146,"../utils/log.js":149,"global/window":8,"safe-json-parse/tuple":57}],135:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var h=a("./text-track-cue-list"),i=e(h),j=a("../utils/fn.js"),k=d(j),l=a("./track-enums"),m=a("../utils/log.js"),n=e(m),o=a("global/document"),p=(e(o),a("global/window")),q=e(p),r=a("./track.js"),s=e(r),t=a("../utils/url.js"),u=a("xhr"),v=e(u),w=a("../utils/merge-options"),x=e(w),y=a("../utils/browser.js"),z=d(y),A=function(a,b){var c=new q.default.WebVTT.Parser(q.default,q.default.vttjs,q.default.WebVTT.StringDecoder()),d=[];c.oncue=function(a){b.addCue(a)},c.onparsingerror=function(a){d.push(a)},c.onflush=function(){b.trigger({type:"loadeddata",target:b})},c.parse(a),d.length>0&&(console.groupCollapsed&&console.groupCollapsed("Text Track parsing errors for "+b.src),d.forEach(function(a){return n.default.error(a)}),console.groupEnd&&console.groupEnd()),c.flush()},B=function(a,b){var c={uri:a},d=t.isCrossOrigin(a);d&&(c.cors=d),v.default(c,k.bind(this,function(a,c,d){if(a)return n.default.error(a,c);b.loaded_=!0,"function"!=typeof q.default.WebVTT?b.tech_&&function(){var a=function(){return A(d,b)};b.tech_.on("vttjsloaded",a),b.tech_.on("vttjserror",function(){n.default.error("vttjs failed to load, stopping trying to process "+b.src),b.tech_.off("vttjsloaded",a)})}():A(d,b)}))},C=function(a){function b(){var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(f(this,b),!c.tech)throw new Error("A tech was not provided.");var d=x.default(c,{kind:l.TextTrackKind[c.kind]||"subtitles",language:c.language||c.srclang||""}),e=l.TextTrackMode[d.mode]||"disabled",g=d.default;"metadata"!==d.kind&&"chapters"!==d.kind||(e="hidden");var h=a.call(this,d);if(h.tech_=d.tech,z.IS_IE8)for(var j in b.prototype)"constructor"!==j&&(h[j]=b.prototype[j]);h.cues_=[],h.activeCues_=[];var m=new i.default(h.cues_),n=new i.default(h.activeCues_),o=!1,p=k.bind(h,function(){this.activeCues,o&&(this.trigger("cuechange"),o=!1)});return"disabled"!==e&&h.tech_.on("timeupdate",p),Object.defineProperty(h,"default",{get:function(){return g},set:function(){}}),Object.defineProperty(h,"mode",{get:function(){return e},set:function(a){l.TextTrackMode[a]&&(e=a,"showing"===e&&this.tech_.on("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(h,"cues",{get:function(){return this.loaded_?m:null},set:function(){}}),Object.defineProperty(h,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return n;for(var a=this.tech_.currentTime(),b=[],c=0,d=this.cues.length;c=a?b.push(e):e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a&&b.push(e)}if(o=!1,b.length!==this.activeCues_.length)o=!0;else for(var c=0;c=0;f--)if(c[f].selected){m(c,c[f]);break}if(j.IS_IE8){d=l.default.createElement("custom");for(var g in h.default.prototype)"constructor"!==g&&(d[g]=h.default.prototype[g]);for(var g in b.prototype)"constructor"!==g&&(d[g]=b.prototype[g])}return d=a.call(this,c,d),d.changing_=!1,Object.defineProperty(d,"selectedIndex",{get:function(){for(var a=0;ab&&(d=b),f+=d-c;return f/b}c.__esModule=!0,c.bufferedPercent=d;var e=a("./time-ranges.js")},{"./time-ranges.js":152}],143:[function(a,b,c){"use strict";c.__esModule=!0;var d=a("./log.js"),e=function(a){return a&&a.__esModule?a:{default:a}}(d),f={get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c,!0}};c.default=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var c=function(){var c={};return Object.keys(b).forEach(function(a){f.hasOwnProperty(a)&&(c[a]=function(){return e.default.warn(b[a]),f[a].apply(this,arguments)})}),{v:new Proxy(a,c)}}();if("object"==typeof c)return c.v}return a},b.exports=c.default},{"./log.js":149}],144:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"string"==typeof a&&/\S/.test(a)}function f(a){if(/\s/.test(a))throw new Error("class has illegal whitespace characters")}function g(a){return new RegExp("(^|\\s)"+a+"($|\\s)")}function h(a){return function(b,c){return e(b)?(e(c)&&(c=H.default.querySelector(c)),(z(c)?c:H.default)[a](b)):H.default[a](null)}}function i(a){return 0===a.indexOf("#")&&(a=a.slice(1)),H.default.getElementById(a)}function j(){var a=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],d=H.default.createElement(a);return Object.getOwnPropertyNames(b).forEach(function(a){var c=b[a];-1!==a.indexOf("aria-")||"role"===a||"type"===a?(N.default.warn(P.default(F,a,c)),d.setAttribute(a,c)):d[a]=c}),Object.getOwnPropertyNames(c).forEach(function(a){c[a];d.setAttribute(a,c[a])}),d}function k(a,b){void 0===a.textContent?a.innerText=b:a.textContent=b}function l(a,b){b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a)}function m(a){var b=a[R];return b||(b=a[R]=L.newGUID()),Q[b]||(Q[b]={}),Q[b]}function n(a){var b=a[R];return!!b&&!!Object.getOwnPropertyNames(Q[b]).length}function o(a){var b=a[R];if(b){delete Q[b];try{delete a[R]}catch(b){a.removeAttribute?a.removeAttribute(R):a[R]=null}}}function p(a,b){return a.classList?a.classList.contains(b):(f(b),g(b).test(a.className))}function q(a,b){return a.classList?a.classList.add(b):p(a,b)||(a.className=(a.className+" "+b).trim()),a}function r(a,b){return a.classList?a.classList.remove(b):(f(b),a.className=a.className.split(/\s+/).filter(function(a){return a!==b}).join(" ")),a}function s(a,b,c){var d=p(a,b);if("function"==typeof c&&(c=c(a,b)),"boolean"!=typeof c&&(c=!d),c!==d)return c?q(a,b):r(a,b),a}function t(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];null===d||void 0===d||!1===d?a.removeAttribute(c):a.setAttribute(c,!0===d?"":d)})}function u(a){var b,c,d,e,f;if(b={},c=",autoplay,controls,loop,muted,default,",a&&a.attributes&&a.attributes.length>0){d=a.attributes;for(var g=d.length-1;g>=0;g--)e=d[g].name,f=d[g].value,"boolean"!=typeof a[e]&&-1===c.indexOf(","+e+",")||(f=null!==f),b[e]=f}return b}function v(){H.default.body.focus(),H.default.onselectstart=function(){return!1}}function w(){H.default.onselectstart=function(){return!0}}function x(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect()),!b)return{left:0,top:0};var c=H.default.documentElement,d=H.default.body,e=c.clientLeft||d.clientLeft||0,f=J.default.pageXOffset||d.scrollLeft,g=b.left+f-e,h=c.clientTop||d.clientTop||0,i=J.default.pageYOffset||d.scrollTop,j=b.top+i-h;return{left:Math.round(g),top:Math.round(j)}}function y(a,b){var c={},d=x(a),e=a.offsetWidth,f=a.offsetHeight,g=d.top,h=d.left,i=b.pageY,j=b.pageX;return b.changedTouches&&(j=b.changedTouches[0].pageX,i=b.changedTouches[0].pageY),c.y=Math.max(0,Math.min(1,(g-i+f)/f)),c.x=Math.max(0,Math.min(1,(j-h)/e)),c}function z(a){return!!a&&"object"==typeof a&&1===a.nodeType}function A(a){return!!a&&"object"==typeof a&&3===a.nodeType}function B(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function C(a){return"function"==typeof a&&(a=a()),(Array.isArray(a)?a:[a]).map(function(a){return"function"==typeof a&&(a=a()),z(a)||A(a)?a:"string"==typeof a&&/\S/.test(a)?H.default.createTextNode(a):void 0}).filter(function(a){return a})}function D(a,b){return C(b).forEach(function(b){return a.appendChild(b)}),a}function E(a,b){return D(B(a),b)}c.__esModule=!0,c.getEl=i,c.createEl=j,c.textContent=k,c.insertElFirst=l,c.getElData=m,c.hasElData=n,c.removeElData=o,c.hasElClass=p,c.addElClass=q,c.removeElClass=r,c.toggleElClass=s,c.setElAttributes=t,c.getElAttributes=u,c.blockTextSelection=v,c.unblockTextSelection=w,c.findElPosition=x,c.getPointerPosition=y,c.isEl=z,c.isTextNode=A,c.emptyEl=B,c.normalizeContent=C,c.appendContent=D,c.insertContent=E;var F=function(a,b){return a.raw=b,a}(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]),G=a("global/document"),H=d(G),I=a("global/window"),J=d(I),K=a("./guid.js"),L=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(K),M=a("./log.js"),N=d(M),O=a("tsml"),P=d(O),Q={},R="vdata"+(new Date).getTime(),S=h("querySelector");c.$=S;var T=h("querySelectorAll");c.$$=T},{"./guid.js":148,"./log.js":149,"global/document":7,"global/window":8,tsml:59}],145:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a,b,c){if(Array.isArray(b))return l(f,a,b,c);var d=n.getElData(a);d.handlers||(d.handlers={}),d.handlers[b]||(d.handlers[b]=[]),c.guid||(c.guid=p.newGUID()),d.handlers[b].push(c),d.dispatcher||(d.disabled=!1,d.dispatcher=function(b,c){if(!d.disabled){b=j(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,h=f.length;g0||g>0?e+":":"", d=((e||f>=10)&&d<10?"0"+d:d)+":",c=c<10?"0"+c:c,e+d+c}()}c.__esModule=!0,c.default=d,b.exports=c.default},{}],148:[function(a,b,c){"use strict";function d(){return e++}c.__esModule=!0,c.newGUID=d;var e=1},{}],149:[function(a,b,c){"use strict";function d(a,b){var c=Array.prototype.slice.call(b),d=function(){},e=f.default.console||{log:d,warn:d,error:d};a?c.unshift(a.toUpperCase()+":"):a="log",g.history.push(c),c.unshift("VIDEOJS:"),e[a].apply?e[a].apply(e,c):e[a](c.join(" "))}c.__esModule=!0;var e=a("global/window"),f=function(a){return a&&a.__esModule?a:{default:a}}(e),g=function(){d(null,arguments)};g.history=[],g.error=function(){d("error",arguments)},g.warn=function(){d("warn",arguments)},c.default=g,b.exports=c.default},{"global/window":8}],150:[function(a,b,c){"use strict";function d(a){return!!a&&"object"==typeof a&&"[object Object]"===a.toString()&&a.constructor===Object}function e(){var a=Array.prototype.slice.call(arguments);return a.unshift({}),a.push(h),g.default.apply(null,a),a[0]}c.__esModule=!0,c.default=e;var f=a("lodash-compat/object/merge"),g=function(a){return a&&a.__esModule?a:{default:a}}(f),h=function(a,b){return d(b)?d(a)?void 0:e(b):b};b.exports=c.default},{"lodash-compat/object/merge":46}],151:[function(a,b,c){"use strict";c.__esModule=!0;var d=a("global/document"),e=function(a){return a&&a.__esModule?a:{default:a}}(d),f=function(a){var b=e.default.createElement("style");return b.className=a,b};c.createStyleElement=f;var g=function(a,b){a.styleSheet?a.styleSheet.cssText=b:a.textContent=b};c.setTextContent=g},{"global/document":7}],152:[function(a,b,c){"use strict";function d(a,b){return Array.isArray(a)?e(a):void 0===a||void 0===b?e():e([[a,b]])}function e(a){return void 0===a||0===a.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:a.length,start:f.bind(null,"start",0,a),end:f.bind(null,"end",1,a)}}function f(a,b,c,d){return void 0===d&&(i.default.warn("DEPRECATED: Function '"+a+"' on 'TimeRanges' called without an index argument."),d=0),g(a,d,c.length-1),c[d][b]}function g(a,b,c){if(b<0||b>c)throw new Error("Failed to execute '"+a+"' on 'TimeRanges': The index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}c.__esModule=!0,c.createTimeRanges=d;var h=a("./log.js"),i=function(a){return a&&a.__esModule?a:{default:a}}(h);c.createTimeRange=d},{"./log.js":149}],153:[function(a,b,c){"use strict";function d(a){return a.charAt(0).toUpperCase()+a.slice(1)}c.__esModule=!0,c.default=d,b.exports=c.default},{}],154:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}c.__esModule=!0;var e=a("global/document"),f=d(e),g=a("global/window"),h=d(g),i=function(a){var b=["protocol","hostname","port","pathname","search","hash","host"],c=f.default.createElement("a");c.href=a;var d=""===c.host&&"file:"!==c.protocol,e=void 0;d&&(e=f.default.createElement("div"),e.innerHTML='',c=e.firstChild,e.setAttribute("style","display:none; position:absolute;"),f.default.body.appendChild(e));for(var g={},h=0;hx',a=b.firstChild.href}return a};c.getAbsoluteURL=j;var k=function(a){if("string"==typeof a){var b=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,c=b.exec(a);if(c)return c.pop().toLowerCase()}return""};c.getFileExtension=k;var l=function(a){var b=h.default.location,c=i(a);return(":"===c.protocol?b.protocol:c.protocol)+c.host!==b.protocol+b.host};c.isCrossOrigin=l},{"global/document":7,"global/window":8}],155:[function(b,c,d){"use strict";function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){return a&&a.__esModule?a:{default:a}}d.__esModule=!0;var g=b("global/window"),h=f(g),i=b("global/document"),j=f(i),k=b("./setup"),l=e(k),m=b("./utils/stylesheet.js"),n=e(m),o=b("./component"),p=f(o),q=b("./event-target"),r=f(q),s=b("./utils/events.js"),t=e(s),u=b("./player"),v=f(u),w=b("./plugins.js"),x=f(w),y=b("../../src/js/utils/merge-options.js"),z=f(y),A=b("./utils/fn.js"),B=e(A),C=b("./tracks/text-track.js"),D=f(C),E=b("./tracks/audio-track.js"),F=f(E),G=b("./tracks/video-track.js"),H=f(G),I=b("object.assign"),J=(f(I),b("./utils/time-ranges.js")),K=b("./utils/format-time.js"),L=f(K),M=b("./utils/log.js"),N=f(M),O=b("./utils/dom.js"),P=e(O),Q=b("./utils/browser.js"),R=e(Q),S=b("./utils/url.js"),T=e(S),U=b("./extend.js"),V=f(U),W=b("lodash-compat/object/merge"),X=f(W),Y=b("./utils/create-deprecation-proxy.js"),Z=f(Y),$=b("xhr"),_=f($),aa=b("./tech/tech.js"),ba=f(aa),ca=b("./tech/html5.js"),da=(f(ca),b("./tech/flash.js"));f(da);"undefined"==typeof HTMLVideoElement&&(j.default.createElement("video"),j.default.createElement("audio"),j.default.createElement("track"));var ea=function a(b,c,d){var e=void 0;if("string"==typeof b){if(0===b.indexOf("#")&&(b=b.slice(1)),a.getPlayers()[b])return c&&N.default.warn('Player "'+b+'" is already initialised. Options will not be applied.'),d&&a.getPlayers()[b].ready(d),a.getPlayers()[b];e=P.getEl(b)}else e=b;if(!e||!e.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return e.player||v.default.players[e.playerId]||new v.default(e,c,d)};if(!0!==h.default.VIDEOJS_NO_DYNAMIC_STYLE){var fa=P.$(".vjs-styles-defaults");if(!fa){fa=n.createStyleElement("vjs-styles-defaults");var ga=P.$("head");ga.insertBefore(fa,ga.firstChild),n.setTextContent(fa,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}l.autoSetupTimeout(1,ea),ea.VERSION="5.10.2",ea.HOLA_VERSION=!0,ea.options=v.default.prototype.options_,ea.getPlayers=function(){return v.default.players},ea.players=Z.default(v.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),ea.getComponent=p.default.getComponent,ea.registerComponent=function(a,b){ba.default.isTech(b)&&N.default.warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),p.default.registerComponent.call(p.default,a,b)},ea.getTech=ba.default.getTech,ea.registerTech=ba.default.registerTech,ea.browser=R,ea.TOUCH_ENABLED=R.TOUCH_ENABLED,ea.extend=V.default,ea.mergeOptions=z.default,ea.bind=B.bind,ea.plugin=x.default,ea.addLanguage=function(a,b){var c;return a=(""+a).toLowerCase(),X.default(ea.options.languages,(c={},c[a]=b,c))[a]},ea.log=N.default,ea.createTimeRange=ea.createTimeRanges=J.createTimeRanges,ea.formatTime=L.default,ea.parseUrl=T.parseUrl,ea.isCrossOrigin=T.isCrossOrigin,ea.EventTarget=r.default,ea.on=t.on,ea.one=t.one,ea.off=t.off,ea.trigger=t.trigger,ea.xhr=_.default,ea.TextTrack=D.default,ea.AudioTrack=F.default,ea.VideoTrack=H.default,ea.isEl=P.isEl,ea.isTextNode=P.isTextNode,ea.createEl=P.createEl,ea.hasClass=P.hasElClass,ea.addClass=P.addElClass,ea.removeClass=P.removeElClass,ea.toggleClass=P.toggleElClass,ea.setAttributes=P.setElAttributes,ea.getAttributes=P.getElAttributes,ea.emptyEl=P.emptyEl,ea.appendContent=P.appendContent,ea.insertContent=P.insertContent,"function"==typeof a&&a.amd?a("videojs",[],function(){return ea}):"object"==typeof d&&"object"==typeof c&&(c.exports=ea),d.default=ea,c.exports=d.default},{"../../src/js/utils/merge-options.js":150,"./component":66,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":127,"./tracks/text-track.js":135,"./tracks/video-track.js":140,"./utils/browser.js":141,"./utils/create-deprecation-proxy.js":143,"./utils/dom.js":144,"./utils/events.js":145,"./utils/fn.js":146,"./utils/format-time.js":147,"./utils/log.js":149,"./utils/stylesheet.js":151,"./utils/time-ranges.js":152,"./utils/url.js":154,"global/document":7,"global/window":8,"lodash-compat/object/merge":46,"object.assign":53,xhr:60}]},{},[155])(155)}),function(a){var b=a.vttjs={},c=b.VTTCue,d=b.VTTRegion,e=a.VTTCue,f=a.VTTRegion;b.shim=function(){b.VTTCue=c,b.VTTRegion=d},b.restore=function(){b.VTTCue=e,b.VTTRegion=f}}(this),function(a,b){function c(a){return"string"==typeof a&&(!!h[a.toLowerCase()]&&a.toLowerCase())}function d(a){return"string"==typeof a&&(!!i[a.toLowerCase()]&&a.toLowerCase())}function e(a){for(var b=1;b100)throw new Error("Position must be between 0 and 100.");u=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",e({},j,{get:function(){return v},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");v=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",e({},j,{get:function(){return w},set:function(a){if(a<0||a>100)throw new Error("Size must be between 0 and 100.");w=a,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",e({},j,{get:function(){return x},set:function(a){var b=d(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");x=b,this.hasBeenReset=!0}})),h.displayState=void 0,i)return h}var g="auto",h={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};f.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.VTTCue=a.VTTCue||f,b.VTTCue=f}(this,this.vttjs||{}),function(a,b){function c(a){return"string"==typeof a&&(!!f[a.toLowerCase()]&&a.toLowerCase())}function d(a){return"number"==typeof a&&a>=0&&a<=100}function e(){var a=100,b=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(b){if(!d(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return b},set:function(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!d(a))throw new Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!d(a))throw new Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!d(a))throw new Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!d(a))throw new Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var b=c(a);if(!1===b)throw new SyntaxError("An invalid or illegal string was specified.");i=b}}})}var f={"":!0,up:!0};a.VTTRegion=a.VTTRegion||e,b.VTTRegion=e}(this,this.vttjs||{}),function(a){function b(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function c(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function d(){this.values=p(null)}function e(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function f(a,f,g){function h(){var d=c(a);if(null===d)throw new b(b.Errors.BadTimeStamp,"Malformed timestamp: "+j);return a=a.replace(/^[^\sa-zA-Z-]+/,""),d}function i(){a=a.replace(/^\s+/,"")}var j=a;if(i(),f.startTime=h(),i(),"-->"!==a.substr(0,3))throw new b(b.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+j);a=a.substr(3),i(),f.endTime=h(),i(),function(a,b){var c=new d;e(a,function(a,b){switch(a){case"region":for(var d=g.length-1;d>=0;d--)if(g[d].id===b){c.set(a,g[d].region);break}break;case"vertical":c.alt(a,b,["rl","lr"]);break;case"line":var e=b.split(","),f=e[0];c.integer(a,f),c.percent(a,f)&&c.set("snapToLines",!1),c.alt(a,f,["auto"]),2===e.length&&c.alt("lineAlign",e[1],["start","middle","end"]);break;case"position":e=b.split(","),c.percent(a,e[0]),2===e.length&&c.alt("positionAlign",e[1],["start","middle","end"]);break;case"size":c.percent(a,b);break;case"align":c.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/),b.region=c.get("region",null),b.vertical=c.get("vertical",""),b.line=c.get("line","auto"),b.lineAlign=c.get("lineAlign","start"),b.snapToLines=c.get("snapToLines",!0),b.size=c.get("size",100),b.align=c.get("align","middle"),b.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}(a,f)}function g(a,b){function d(a){return q[a]}for(var e,f=a.document.createElement("div"),g=f,h=[];null!==(e=function(){if(!b)return null;var a=b.match(/^([^<]*)(<[^>]+>?)?/);return function(a){return b=b.substr(a.length),a}(a[1]?a[1]:a[2])}());)if("<"!==e[0])g.appendChild(a.document.createTextNode(function(a){for(;k=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(k[0],d);return a}(e)));else{if("/"===e[1]){h.length&&h[h.length-1]===e.substr(2).replace(">","")&&(h.pop(),g=g.parentNode);continue}var i,j=c(e.substr(1,e.length-2));if(j){i=a.document.createProcessingInstruction("timestamp",j),g.appendChild(i);continue}var k=e.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!k)continue;if(!(i=function(b,c){var d=r[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=s[b];return f&&c&&(e[f]=c.trim()),e}(k[1],k[3])))continue;if(!function(a,b){return!t[b.localName]||t[b.localName]===a.localName}(g,i))continue;k[2]&&(i.className=k[2].substr(1).replace("."," ")),h.push(k[1]),g.appendChild(i),g=i}return f}function h(a){for(var b=0;b=c[0]&&a<=c[1])return!0}return!1}function i(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\n|\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d,e=[],f="";if(!a||!a.childNodes)return"ltr";for(b(e,a);f=c(e);)for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;en&&(l=l<0?-1:1,l*=Math.ceil(n/k)*k),g<0&&(l+=""===f.vertical?c.height:c.width,h=h.reverse()),e.move(o,l)}else{var p=e.lineHeight/c.height*100;switch(f.lineAlign){case"middle":g-=p/2;break;case"end":g-=p}switch(f.vertical){case"":b.applyStyles({top:b.formatStyle(g,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(g,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(g,"%")})}h=["+y","-x","+x","-y"],e=new m(b)}var q=function(a,b){for(var e,f=new m(a),g=1,h=0;hi&&(e=new m(a),g=i),a=new m(f)}return e||f}(e,h);b.move(q.toCSSCompatValues(c))}function o(){}var p=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();b.prototype=p(Error.prototype),b.prototype.constructor=b,b.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d=0&&b<=100)&&(this.set(a,b),!0)}};var q={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},r={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},s={v:"title",lang:"lang"},t={rt:"ruby"},u=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];k.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},k.prototype.formatStyle=function(a,b){return 0===a?0:a+b},l.prototype=p(k.prototype),l.prototype.constructor=l,m.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},m.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top},m.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},m.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}},m.prototype.intersectPercentage=function(a){return Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left))*Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top))/(this.height*this.width)},m.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},m.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;return a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a,{left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c}},o.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},o.convertCueToDOMTree=function(a,b){return a&&b?g(a,b):null};o.processCues=function(a,b,c){if(!a||!b||!c)return null;for(;c.firstChild;)c.removeChild(c.firstChild);var d=a.document.createElement("div");if(d.style.position="absolute",d.style.left="0",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.margin="1.5%",c.appendChild(d),function(a){for(var b=0;b")){j.cue.id=k;continue}case"CUE":try{f(k,j.cue,j.regionList)}catch(a){j.reportOrThrowError(a),j.cue=null,j.state="BADCUE";continue}j.state="CUETEXT";continue;case"CUETEXT":var n=-1!==k.indexOf("-->");if(!k||n&&(m=!0)){j.oncue&&j.oncue(j.cue),j.cue=null,j.state="ID";continue}j.cue.text&&(j.cue.text+="\n"),j.cue.text+=k;continue;case"BADCUE":k||(j.state="ID");continue}}}catch(a){j.reportOrThrowError(a),"CUETEXT"===j.state&&j.cue&&j.oncue&&j.oncue(j.cue),j.cue=null,j.state="INITIAL"===j.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\n\n",a.parse()),"INITIAL"===a.state)throw new b(b.Errors.BadSignature)}catch(b){a.reportOrThrowError(b)}return a.onflush&&a.onflush(),this}},a.WebVTT=o}(this,this.vttjs)},{}],201:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=a("video.js"),e=function(a){return a&&a.__esModule?a:{default:a}}(d),f={position:"top-right",fadeTime:3e3,url:void 0,image:void 0},g=function(a,b){var c=a.el(),d=document.createElement("div"),e=document.createElement("img");if(d.classList.add("vjs-watermark-content"),d.classList.add("vjs-watermark-"+b.position),e.src=b.image,b.url){var f=document.createElement("a");f.href=b.url,f.onclick=function(c){c.preventDefault(),a.pause(),window.open(b.url)},f.appendChild(e),d.appendChild(f)}else d.appendChild(e);c.appendChild(d)},h=function(a){setTimeout(function(){return document.getElementsByClassName("vjs-watermark-content")[0].classList.add("vjs-watermark-fade")},a.fadeTime)},i=function(a,b){a.addClass("vjs-watermark"),b.image&&(g(a,b),null!==b.fadeTime&&a.on("play",function(){return h(b)}))},j=function(a){var b=this;this.ready(function(){i(b,e.default.mergeOptions(f,a))})};e.default.plugin("watermark",j),j.VERSION="__VERSION__",c.default=j,b.exports=c.default},{"video.js":200}],202:[function(a,b,c){var d=".vjs-dvr .vjs-progress-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vjs-dvr .vjs-live-control{flex:inherit;cursor:pointer}.vjs-dvr .vjs-live-control .vjs-tooltip{line-height:1em}.vjs-dvr-live .vjs-live-control .vjs-tooltip{display:none}.vjs-dvr-live .vjs-live-control{cursor:default}.vjs-dvr:not(.vjs-dvr-live) .vjs-live-display:before{background:#566377}";a("browserify-css").createStyle(d,{href:"src/css/dvr.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],203:[function(a,b,c){var d='.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{width:100%;height:100%;position:absolute;left:0;bottom:0;content:" ";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.vjs-ad-playing.vjs-ad-playing .vjs-play-progress{background-color:#ffe400}.vjs-ad-playing.vjs-ad-loading .vjs-loading-spinner{display:block}.vjs-ad-playing .vjs-audio-button,.vjs-ad-playing .vjs-captions-button{display:none}';a("browserify-css").createStyle(d,{href:"src/css/videojs-contrib-ads.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],204:[function(a,b,c){ var d=".vjs5-hola-skin,.vjs5-hola-skin :not(.ima-controls-div *){font-family:Arial,Helvetica,sans-serif}.vjs5-hola-skin .hola-circle-icon{display:block;width:1em;height:1em;box-sizing:border-box;border-radius:50%;border-style:solid;border-width:.3em;border-color:#fff;background:#00b7f1}.vjs5-hola-skin .vjs-control-bar{color:#fff;z-index:2}.vjs5-hola-skin .vjs-big-play-button,.vjs5-hola-skin:hover .vjs-big-play-button{font-size:4em;border-radius:50%;border:0 solid transparent;height:3em;width:3em;line-height:3em;left:50%;top:50%;margin-left:-1.5em;margin-top:-1.5em;background-color:#2D2D2D;background-color:rgba(45,45,45,.6)}.vjs5-hola-skin .vjs-big-play-button:before,.vjs5-hola-skin:hover .vjs-big-play-button:before{content:''}.vjs5-hola-skin .vjs-big-play-button>svg,.vjs5-hola-skin:hover .vjs-big-play-button>svg{fill:#fff;stroke:#fff;opacity:.8}.vjs5-hola-skin .vjs-big-play-button.vjs-play-control-replay>svg,.vjs5-hola-skin:hover .vjs-big-play-button.vjs-play-control-replay>svg{stroke:none}.vjs5-hola-skin .vjs-control{margin:0;padding:0;text-align:left}.vjs5-hola-skin .vjs-control>.vjs-button-icon,.vjs5-hola-skin .vjs-control>svg{position:relative;box-sizing:content-box;display:inline-block;width:3em;height:100%;margin:0;padding:0 .3em}.vjs5-hola-skin .vjs-control:focus .vjs-menu{text-shadow:none}.vjs5-hola-skin .vjs-control-bar{height:3em;background:linear-gradient(to bottom,rgba(0,0,0,.2) 0,rgba(0,0,0,.65) 100%)}.vjs5-hola-skin .vjs-control-bar>.vjs-spacer{display:block;flex-grow:1;order:5}.vjs5-hola-skin .vjs-control-bar>.vjs-control,.vjs5-hola-skin .vjs-control-bar>.vjs-time-control{margin-top:-3px}.vjs5-hola-skin .vjs-control-bar>.vjs-progress-control{margin-top:0}.vjs5-hola-skin .vjs-control-bar>.vjs-captions-button{order:6}.vjs5-hola-skin.vjs-live .vjs-control-bar:not(.vjs-dvr)>.vjs-control,.vjs5-hola-skin.vjs-live .vjs-control-bar:not(.vjs-dvr)>.vjs-time-control{margin-top:0}.vjs5-hola-skin.vjs-live .vjs-control-bar .vjs-time-control.vjs-current-time,.vjs5-hola-skin.vjs-live .vjs-control-bar .vjs-time-control.vjs-duration,.vjs5-hola-skin.vjs-live .vjs-control-bar .vjs-time-control.vjs-time-divider{display:none}.vjs5-hola-skin.vjs-live .vjs-live-display:before{display:inline-block;width:7px;height:7px;margin-right:.5em;background:#f51717;content:'';border-radius:50%}.vjs5-hola-skin.vjs-live.vjs-fullscreen:not(.vjs-small) .vjs-live-display:before,.vjs5-hola-skin.vjs-live.vjs-large .vjs-live-display:before{width:11px;height:11px}.vjs5-hola-skin .vjs-tooltip{top:-3em;left:0;width:auto;height:auto;margin:0;padding:.5em;border-radius:.3em;text-align:center;background-color:#2D2D2D;background-color:rgba(45,45,45,.8);color:#fff;font-size:1.2em;text-shadow:none;clip:auto}.vjs5-hola-skin .vjs-menu{font-family:Arial,Helvetica,sans-serif}.vjs5-hola-skin .vjs-menu-item{text-align:left;padding-left:.5em;text-transform:none}.vjs5-hola-skin .vjs-menu-item[role=menuitemcheckbox]{padding:.3em .4em .2em 2em}.vjs5-hola-skin .vjs-menu-label{pointer-events:none}.vjs5-hola-skin .vjs-menu-indent{padding-left:1.5em}.vjs5-hola-skin .vjs-menu li.vjs-menu-item-link{padding:0}.vjs5-hola-skin .vjs-menu-item-link>.vjs-menu-link{display:block;padding:.2em 0 .2em .5em;color:inherit;text-decoration:inherit;text-transform:inherit;white-space:nowrap}.vjs5-hola-skin .vjs-menu-button[aria-expanded=true]>.vjs-tooltip-active{display:none}.vjs5-hola-skin .vjs-play-control{cursor:pointer;margin-left:.9em;order:0}.vjs5-hola-skin .vjs-play-control>svg{padding:0 .3em;left:0;top:0;fill:#fff;stroke:#fff;stroke-width:0;opacity:.7;transition:opacity 200ms ease}.vjs5-hola-skin .vjs-play-control.vjs-play-control-replay>svg{stroke:none}.vjs5-hola-skin .vjs-play-control:hover>svg{opacity:1}.vjs5-hola-skin .vjs-play-control.vjs-paused:before,.vjs5-hola-skin .vjs-play-control.vjs-playing:before,.vjs5-hola-skin .vjs-play-control:before{content:''}.vjs5-hola-skin .vjs-play-control.vjs-playing .vjs-tooltip{margin-left:.5em}.vjs5-hola-skin .vjs-big-play-button>svg g.replay,.vjs5-hola-skin .vjs-play-control>svg g.replay{opacity:0;transform:scale(0.45) translate(-20px,-14px)}.vjs5-hola-skin .vjs-big-play-button>svg g.replay circle,.vjs5-hola-skin .vjs-big-play-button>svg g.replay polygon,.vjs5-hola-skin .vjs-play-control>svg g.replay circle,.vjs5-hola-skin .vjs-play-control>svg g.replay polygon{stroke:none}.vjs5-hola-skin .vjs-big-play-button>svg g.replay circle,.vjs5-hola-skin .vjs-play-control>svg g.replay circle{opacity:.4;fill:#000}.vjs5-hola-skin .vjs-big-play-button>svg g.replay g.arrow,.vjs5-hola-skin .vjs-play-control>svg g.replay g.arrow{fill:#fff;transform-origin:36px 36px;transition:transform 500ms ease;transform:rotate(-400deg)}.vjs5-hola-skin .vjs-big-play-button>svg g.replay g.arrow path,.vjs5-hola-skin .vjs-play-control>svg g.replay g.arrow path{stroke:#fff;fill:none;stroke-width:6;stroke-dasharray:110 110;stroke-dashoffset:-100;transition:stroke-dashoffset 500ms ease}.vjs5-hola-skin .vjs-big-play-button.vjs-play-control-replay>svg g.replay,.vjs5-hola-skin .vjs-play-control.vjs-play-control-replay>svg g.replay{opacity:1}.vjs5-hola-skin .vjs-big-play-button.vjs-play-control-replay>svg g.replay>g.arrow,.vjs5-hola-skin .vjs-play-control.vjs-play-control-replay>svg g.replay>g.arrow{transform:rotate(0deg)}.vjs5-hola-skin .vjs-big-play-button.vjs-play-control-replay>svg g.replay>g.arrow>path,.vjs5-hola-skin .vjs-play-control.vjs-play-control-replay>svg g.replay>g.arrow>path{stroke-dashoffset:0}.vjs5-hola-skin.vjs-paused .vjs-big-play-button.vjs-hidden,.vjs5-hola-skin.vjs-playing .vjs-big-play-button.vjs-hidden{display:block!important;pointer-events:none}.vjs5-hola-skin.vjs-playing .vjs-big-play-button{opacity:0;transition:opacity 400ms ease,background-color 0ms;transition-delay:100ms,0ms}.vjs5-hola-skin.vjs-paused.vjs-has-started .vjs-big-play-button{display:block;opacity:1;transition:opacity 0ms linear,background-color 400ms ease;transition-delay:10ms,100ms;background-color:#2D2D2D;background-color:rgba(45,45,45,0)}.vjs5-hola-skin.vjs-paused.vjs-has-started .vjs-big-play-button:before,.vjs5-hola-skin.vjs-paused.vjs-has-started .vjs-big-play-button>svg{transition:opacity 400ms ease;transition-delay:100ms;opacity:0}.vjs5-hola-skin.vjs-paused.vjs-ended .vjs-big-play-button,.vjs5-hola-skin.vjs-paused:hover .vjs-big-play-button{background-color:#2D2D2D;background-color:rgba(45,45,45,.6);display:block}.vjs5-hola-skin.vjs-paused.vjs-ended .vjs-big-play-button:before,.vjs5-hola-skin.vjs-paused.vjs-ended .vjs-big-play-button>svg,.vjs5-hola-skin.vjs-paused:hover .vjs-big-play-button:before,.vjs5-hola-skin.vjs-paused:hover .vjs-big-play-button>svg{opacity:.8}.vjs5-hola-skin .vjs-progress-control{position:absolute;left:0;right:0;z-index:10;width:auto;top:-15px;height:15px;margin:0;padding:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.2) 100%,rgba(0,0,0,0) 100%)}.vjs5-hola-skin .vjs-progress-control .vjs-mouse-display,.vjs5-hola-skin .vjs-progress-control .vjs-play-progress{font-family:Arial,Helvetica,sans-serif}.vjs5-hola-skin .vjs-progress-control .vjs-mouse-display:before,.vjs5-hola-skin .vjs-progress-control .vjs-play-progress:before{content:none;display:block;width:1em;height:1em;box-sizing:border-box;border-radius:50%;border-style:solid;border-width:.3em;border-color:#fff;background:#00b7f1}.vjs5-hola-skin .vjs-progress-control .vjs-mouse-display:after,.vjs5-hola-skin .vjs-progress-control .vjs-play-progress:after{display:none;padding:.2em .5em .5em}.vjs5-hola-skin .vjs-progress-control .vjs-mouse-display.vjs-keep-tooltips-inside:after,.vjs5-hola-skin .vjs-progress-control .vjs-play-progress.vjs-keep-tooltips-inside:after{display:none!important;content:none!important}.vjs5-hola-skin .vjs-progress-control .vjs-mouse-display-tooltip{display:none;top:-2em;padding:.5em;background-color:#2D2D2D;background-color:rgba(45,45,45,.8)}.vjs5-hola-skin .vjs-progress-control .vjs-play-progress{background:#00b7f1}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display{background:0 0}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display:before{position:absolute;top:-.33333333em;right:-.5em;font-size:.9em;background:#bbb;opacity:.7}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display-tooltip{font-family:Arial,Helvetica,sans-serif;font-size:1.2em;pointer-events:none}.vjs5-hola-skin .vjs-progress-control .vjs-progress-holder{margin:0 1em}.vjs5-hola-skin .vjs-progress-control:hover .vjs-progress-holder{margin:0 .6em}.vjs5-hola-skin .vjs-progress-holder:before,.vjs5-hola-skin .vjs-volume-level:after{position:absolute;top:0;left:-.16em;width:.16em;height:100%;display:block;background:rgba(115,133,159,.75);content:'';border-radius:.15em 0 0 .15em}.vjs5-hola-skin .vjs-progress-holder:after,.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal:after{position:absolute;height:100%;pading-top:0;top:0;width:.16em;right:-.16em;background:rgba(115,133,159,.5);content:'';border-radius:0 .15em .15em 0}.vjs5-hola-skin .vjs-volume-level:after,.vjs5-hola-skin.vjs-pos-ended .vjs-progress-holder:after,.vjs5-hola-skin.vjs-pos-started .vjs-progress-holder:before{background:#00b7f1}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display:before,.vjs5-hola-skin .vjs-progress-control:hover .vjs-play-progress:before{content:''}.vjs5-hola-skin .vjs-progress-control:hover .vjs-play-progress:after,.vjs5-hola-skin .vjs-progress-control:hover .vjs-tooltip-progress-bar{display:none!important}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display{display:transparent}.vjs5-hola-skin .vjs-progress-control:hover .vjs-mouse-display-tooltip{display:block}.vjs5-hola-skin .vjs-live-control{order:4}.vjs5-hola-skin .vjs-slider .vjs-slider-gap-left,.vjs5-hola-skin .vjs-slider .vjs-slider-gap-right{position:absolute;top:0;width:1em;height:100%}.vjs5-hola-skin .vjs-slider .vjs-slider-gap-left{left:-1em}.vjs5-hola-skin .vjs-slider .vjs-slider-gap-right{right:-1em}.vjs5-hola-skin .vjs-ads-label{order:0;line-height:3em}.vjs5-hola-skin .vjs-volume-bar{margin:1.35em .45em 1.35em 1.2em}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal{height:.5em;margin-top:.8em;margin-bottom:.8em;padding:.7em 0;background:0 0}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal:after,.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal:before{height:.3em;top:50%;margin-top:-.15em}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal:before{content:'';background:#73859f;background:rgba(115,133,159,.5)}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level,.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal:before{position:absolute;left:0;top:50%;margin-top:-.15em;height:.3em;width:100%}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{background-color:#00b7f1}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-slider-gap-left{width:15px;left:-15px}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-slider-gap-right{width:20px;right:-20px}.vjs5-hola-skin .vjs-volume-bar .vjs-volume-display:before,.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level:before{display:block;width:1em;height:1em;box-sizing:border-box;border-radius:50%;border-style:solid;border-width:.3em;border-color:#fff;background:#00b7f1;top:-.41em;font-size:1.2em;z-index:2}.vjs5-hola-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level:before{content:''}.vjs5-hola-skin .vjs-volume-bar .vjs-volume-display{top:0;background:0 0}.vjs5-hola-skin .vjs-volume-bar .vjs-volume-display:before{content:'';position:absolute;left:-.5em;top:50%;margin-top:-.5em;height:1em;z-index:1;background:#bbb;opacity:.5}.vjs5-hola-skin .vjs-volume-display-tooltip{top:-2em;font-size:1.2em;background-color:#2D2D2D;background-color:rgba(45,45,45,.8)}.vjs5-hola-skin .vjs-volume-bar .vjs-volume-display,.vjs5-hola-skin.vjs-user-inactive .vjs-volume-bar .vjs-volume-display{display:none}.vjs5-hola-skin .vjs-volume-bar:hover .vjs-volume-display{display:block}.vjs5-hola-skin .vjs-volume-menu-button{margin-right:1em;cursor:default;overflow:visible;width:4.2em}.vjs5-hola-skin .vjs-volume-menu-button .vjs-menu-content{width:0;transition:width 200ms ease}.vjs5-hola-skin .vjs-volume-menu-button>.vjs-button-icon{width:3.2em;cursor:pointer;opacity:.7}.vjs5-hola-skin .vjs-volume-menu-button>.vjs-button-icon>svg{position:absolute;left:.2em;top:0;display:block;width:2.8em;padding:0 .5em;height:100%;fill:#fff;transition:opacity 200ms ease}.vjs5-hola-skin .vjs-volume-menu-button>.vjs-button-icon:hover{opacity:1}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal{order:1}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:before{content:none;display:none}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal>.vjs-button-icon{height:100%;background-size:55%;background-repeat:no-repeat;background-position:center;transition:opacity 200ms ease}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal>.vjs-button-icon path{opacity:0;transition:opacity 400ms ease}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal>.vjs-button-icon .volume-level-0{opacity:0;transform:rotate(-45deg);transform-origin:15px 8px;transition:opacity 400ms ease,transform 400ms ease}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-0>.vjs-button-icon .volume-level-0{opacity:1;transform:rotate(0)}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-1>.vjs-button-icon .volume-level-1,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-2>.vjs-button-icon .volume-level-1,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-2>.vjs-button-icon .volume-level-2,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-3>.vjs-button-icon .volume-level-1,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-3>.vjs-button-icon .volume-level-2,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-vol-3>.vjs-button-icon .volume-level-3{opacity:1}.vjs5-hola-skin .vjs-menu-button-inline{transition:all 200ms}.vjs5-hola-skin .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs5-hola-skin .vjs-menu-button-inline:focus .vjs-menu,.vjs5-hola-skin .vjs-menu-button-inline:hover .vjs-menu,.vjs5-hola-skin.vjs-fullscreen .vjs-menu-button-inline .vjs-menu{display:block;opacity:1}.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal.vjs-slider-active .vjs-menu-content,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:focus .vjs-menu-content,.vjs5-hola-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu-content,.vjs5-hola-skin.vjs-fullscreen .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu-content{width:8em}.vjs5-hola-skin .vjs-menu-button-inline.vjs-slider-active,.vjs5-hola-skin .vjs-menu-button-inline:focus,.vjs5-hola-skin .vjs-menu-button-inline:hover,.vjs5-hola-skin.vjs-fullscreen .vjs-menu-button-inline,.vjs5-hola-skin.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active,.vjs5-hola-skin.vjs-no-flex .vjs-menu-button-inline:focus,.vjs5-hola-skin.vjs-no-flex .vjs-menu-button-inline:hover{width:12em}.vjs5-hola-skin .vjs-fullscreen-control{width:auto;margin-right:1em;order:7}.vjs5-hola-skin .vjs-fullscreen-control:before{content:'';display:none}.vjs5-hola-skin .vjs-fullscreen-control .vjs-button-icon{position:relative;height:100%;padding:0 .4em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxOCAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTggMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNmZmY7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMCw2IDAsMCA2LDAgIi8+DQo8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9IjYsMTYgMCwxNiAwLDEwICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxOCwxMCAxOCwxNiAxMiwxNiAiLz4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMTIsMCAxOCwwIDE4LDYgIi8+DQo8L3N2Zz4=);background-repeat:no-repeat;background-size:1.8em 1.8em;background-position:center center;opacity:.7;transition:opacity 200ms ease,transform 200ms ease}.vjs5-hola-skin .vjs-fullscreen-control:hover .vjs-button-icon{opacity:1;transform:scale(1.1)}.vjs5-hola-skin .vjs-fullscreen-control .vjs-tooltip{margin-left:-.8em}.vjs5-hola-skin.vjs-fullscreen .vjs-fullscreen-control .vjs-button-icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxOCAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTggMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNmZmY7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iNiwwIDYsNiAwLDYgIi8+DQo8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9IjAsMTAgNiwxMCA2LDE2ICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxMiwxNiAxMiwxMCAxOCwxMCAiLz4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMTgsNiAxMiw2IDEyLDAgIi8+DQo8L3N2Zz4=);background-size:2.1em 2.1em}.vjs5-hola-skin.vjs-fullscreen .vjs-fullscreen-control:hover .vjs-button-icon{opacity:1;transform:scale(0.85)}.vjs5-hola-skin .vjs-time-control.vjs-current-time,.vjs5-hola-skin .vjs-time-control.vjs-duration,.vjs5-hola-skin .vjs-time-control.vjs-time-divider{display:inline-block;width:auto;min-width:0;padding:0;font-size:1.2em;line-height:2.5em;color:#ccc}.vjs5-hola-skin .vjs-time-control.vjs-current-time{order:2}.vjs5-hola-skin .vjs-time-control.vjs-time-divider{order:3}.vjs5-hola-skin .vjs-time-control.vjs-time-divider span:after,.vjs5-hola-skin .vjs-time-control.vjs-time-divider span:before{content:'\\00a0'}.vjs5-hola-skin .vjs-time-control.vjs-duration{padding-right:1em;order:4}.vjs5-hola-skin .vjs-time-control.vjs-remaining-time{display:none}.vjs5-hola-skin.vjs-show-controls-before-start .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1}.vjs5-hola-skin.vjs-show-time-for-live .vjs-control-bar .vjs-time-control.vjs-current-time,.vjs5-hola-skin.vjs-show-time-for-live .vjs-control-bar .vjs-time-control.vjs-duration,.vjs5-hola-skin.vjs-show-time-for-live .vjs-control-bar .vjs-time-control.vjs-time-divider{display:inline-block!important}.vjs5-hola-skin.vjs-small .vjs-time-control.vjs-duration{padding-right:0}.vjs5-hola-skin.vjs-small .vjs-volume-menu-button{margin-right:0}.vjs5-hola-skin .vjs-slider-padding{position:absolute;width:100%;height:2em;top:-1.3em}.vjs5-hola-skin .vjs-caption-settings select{color:#000}.vjs5-hola-skin.vjs-fullscreen{overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.vjs5-hola-skin .vjs-menu-button-popup .vjs-menu{display:block;width:13em;left:-6em;z-index:2;visibility:hidden}.vjs5-hola-skin .vjs-menu-button-popup .vjs-menu:not(.vjs-menu-popup-on-click){transition:visibility 300ms step-end}.vjs5-hola-skin .vjs-menu-button-popup .vjs-menu ul{bottom:3em}.vjs5-hola-skin .vjs-menu-button-popup .vjs-menu.vjs-menu-popup-on-click.vjs-lock-showing,.vjs5-hola-skin .vjs-menu-button-popup:hover .vjs-menu:not(.vjs-menu-popup-on-click){visibility:visible;transition:visibility 1ms}.vjs5-hola-skin .vjs-menu-button-inline .vjs-menu{left:4em}.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small) .vjs-control-bar,.vjs5-hola-skin.vjs-large .vjs-control-bar{font-size:150%}.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small) .vjs-volume-display-tooltip,.vjs5-hola-skin.vjs-large .vjs-volume-display-tooltip{top:-2.4em}.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small) .vjs-menu,.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small) .vjs-menu-content,.vjs5-hola-skin.vjs-large .vjs-menu,.vjs5-hola-skin.vjs-large .vjs-menu-content{transition:opacity 200ms}.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small).vjs-paused .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small).vjs-playing .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small).vjs-playing:hover .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small).vjs-user-active.vjs-playing .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-large.vjs-paused .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-large.vjs-playing .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-large.vjs-playing:hover .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-large.vjs-user-active.vjs-playing .bumpable-ima-ad-container{margin-top:-60px}.vjs5-hola-skin.vjs-fullscreen:not(.vjs-small).vjs-user-inactive.vjs-playing .bumpable-ima-ad-container,.vjs5-hola-skin.vjs-large.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container{margin-top:0}.vjs-ad-playing .vjs-loading-spinner{display:none!important}.vjs5-hola-skin .vjs-rightclick-popup{color:#fff}.vjs5-hola-skin .vjs-settings-button{order:6}.vjs5-hola-skin .vjs-settings-button>.vjs-button-icon{height:100%;width:1.7em;padding:0 .95em;opacity:.7;transition:opacity 200ms ease}.vjs5-hola-skin .vjs-settings-button>.vjs-button-icon>svg>path{fill:#fff;transform-origin:8px 8px;transition:transform 200ms ease}.vjs5-hola-skin .vjs-settings-button:hover>.vjs-button-icon{opacity:1}.vjs5-hola-skin .vjs-settings-button:hover>.vjs-button-icon>svg>path{transform:rotate(90deg)}.vjs5-hola-skin .vjs-settings-button .vjs-menu{width:9em;left:-2.5em;z-index:1112}.vjs5-hola-skin .vjs-settings-button .vjs-menu>.vjs-menu-content{white-space:nowrap;width:auto;min-width:9em;max-height:none;bottom:2.75em;padding:.5em 0;transition:background 200ms ease;background-color:#2D2D2D;background-color:rgba(45,45,45,.8);cursor:default}.vjs5-hola-skin .vjs-settings-button .vjs-menu-item{padding:.3em .4em .2em 2em;cursor:pointer}.vjs5-hola-skin .vjs-settings-button .vjs-menu-item span{color:#ccc;font-size:90%}.vjs5-hola-skin.vjs-settings-expanded .vjs-progress-control:hover .vjs-mouse-display-tooltip{display:none}.vjs5-hola-skin .vjs-info-overlay,.vjs5-hola-skin .vjs-rightclick-popup{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background-color:#2D2D2D;background-color:rgba(45,45,45,.8);-webkit-box-shadow:.2em .2em .3em rgba(0,0,0,.5);-moz-box-shadow:.2em .2em .3em rgba(0,0,0,.5);box-shadow:.2em .2em .3em rgba(0,0,0,.5)}.vjs5-hola-skin .vjs-info-overlay{position:absolute;top:1em;left:1em;z-index:3;display:inline-block;padding:1em;font-size:1.2em}.vjs5-hola-skin .vjs-info-overlay.vjs-notify-overlay{bottom:50%;top:auto;z-index:4;margin-bottom:-3em;left:50%;margin-left:-8.5em;opacity:1}.vjs5-hola-skin .vjs-info-overlay.vjs-notify-overlay.vjs-notify-flash{transition:opacity 500ms ease;transition-delay:2500ms;opacity:0}.vjs5-hola-skin .vjs-info-overlay-title{margin-bottom:1em;font-size:1.2em}.vjs5-hola-skin .vjs-info-overlay-x{position:absolute;top:1em;right:1em;transition:color 200ms ease;cursor:pointer}.vjs5-hola-skin .vjs-info-overlay-x:hover{color:#fff}.vjs5-hola-skin .vjs-info-overlay-x:after{content:'\\00274c'}.vjs5-hola-skin .vjs-notify-overlay-title{margin-bottom:1em;font-size:1.5em}.vjs5-hola-skin .vjs-notify-overlay-content{text-align:center}.vjs5-hola-skin .vjs-info-overlay-list{list-style:none;position:relative;margin:0;padding:0}.vjs5-hola-skin .vjs-info-overlay-list-item{padding:0;margin:0;height:1.6em;line-height:1.6em?}.vjs5-hola-skin .vjs-info-overlay-list-item strong{font-weight:500;color:#fff}.vjs5-hola-skin .vjs-info-overlay-list-item span{color:#ccc}.vjs5-hola-skin .vjs-rightclick-popup{position:absolute;z-index:5;width:auto;padding:1em 0;font-size:110%}.vjs5-hola-skin .vjs-rightclick-popup .vjs-menu-item{cursor:pointer}.vjs5-hola-skin .vjs-rightclick-popup .vjs-menu-item,.vjs5-hola-skin .vjs-rightclick-popup .vjs-menu-item>.vjs-menu-link{padding:.2em 1em}.vjs5-hola-skin .vjs-menu-item.vjs-selected{color:#fff;background:url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNOSAxNi4yTDQuOCAxMmwtMS40IDEuNEw5IDE5IDIxIDdsLTEuNC0xLjRMOSAxNi4yeiIvPjwvc3ZnPg==) .5em center/1em no-repeat}.vjs5-hola-skin .vjs-menu-item.vjs-selected:hover{color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.8)}.vjs5-hola-skin.vjs-fullscreen .vjs-info-overlay,.vjs5-hola-skin.vjs-large .vjs-info-overlay{font-size:150%}.vjs5-hola-skin.vjs-fullscreen .vjs-rightclick-popup,.vjs5-hola-skin.vjs-large .vjs-rightclick-popup{font-size:165%}.vjs5-hola-skin.vjs-fullscreen .vjs-settings-button>.vjs-button-icon,.vjs5-hola-skin.vjs-large .vjs-settings-button>.vjs-button-icon{transform-origin:1.8496em 1.5164em}";a("browserify-css").createStyle(d,{href:"src/css/videojs-hola-skin.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],205:[function(a,b,c){var d='.ima-ad-container{top:0;position:absolute;display:block;width:100%;height:100%}.video-js.vjs-playing .bumpable-ima-ad-container{margin-top:-40px}.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container{margin-top:0}.video-js.vjs-paused .bumpable-ima-ad-container,.video-js.vjs-playing:hover .bumpable-ima-ad-container,.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container{margin-top:-40px}.vjs-ima-non-linear .vjs-big-play-button,.vjs-ima-non-linear .vjs-control-bar,.vjs-ima-non-linear .vjs-info-overlay,.vjs-ima-non-linear .vjs-modal-overlay,.vjs-ima-non-linear .vjs-rightclick-popup{z-index:1112}.ima-controls-div{bottom:0;height:37px;position:absolute;overflow:hidden;display:none;opacity:1;background:-moz-linear-gradient(bottom,rgba(7,20,30,.7) 0,rgba(7,20,30,0) 100%);background:-webkit-gradient(linear,left bottom,left top,color-stop(0%,rgba(7,20,30,.7)),color-stop(100%,rgba(7,20,30,0)));background:-webkit-linear-gradient(bottom,rgba(7,20,30,.7) 0,rgba(7,20,30,0) 100%);background:-o-linear-gradient(bottom,rgba(7,20,30,.7) 0,rgba(7,20,30,0) 100%);background:-ms-linear-gradient(bottom,rgba(7,20,30,.7) 0,rgba(7,20,30,0) 100%);background:linear-gradient(to top,rgba(7,20,30,.7) 0,rgba(7,20,30,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#0007141E\', endColorstr=\'#07141E\', GradientType=0)}.ima-countdown-div{height:10px;color:#FFF;text-shadow:0 0 .2em #000;cursor:default}.ima-seek-bar-div{top:12px;height:3px;position:absolute;background:rgba(255,255,255,.4)}.ima-progress-div{width:0;height:3px;background-color:#ECC546}.ima-fullscreen-div,.ima-mute-div,.ima-play-pause-div,.ima-slider-div{width:35px;height:20px;top:11px;left:0;position:absolute;color:#CCC;font-size:1.5em;line-height:2;text-align:center;font-family:VideoJS;cursor:pointer}.ima-mute-div{left:auto;right:85px}.ima-slider-div{left:auto;right:35px;width:50px;height:10px;top:20px;background-color:#555}.ima-slider-level-div{width:100%;height:10px;background-color:#ECC546}.ima-fullscreen-div{left:auto;right:0}.ima-playing:before{content:"\\00f103"}.ima-paused:before{content:"\\00f101"}.ima-paused:hover:before,.ima-playing:hover:before{text-shadow:0 0 1em #fff}.ima-non-muted:before{content:"\\00f107"}.ima-muted:before{content:"\\00f104"}.ima-muted:hover:before,.ima-non-muted:hover:before{text-shadow:0 0 1em #fff}.ima-non-fullscreen:before{content:"\\00f108"}.ima-fullscreen:before{content:"\\00f109"}.ima-fullscreen:hover:before,.ima-non-fullscreen:hover:before{text-shadow:0 0 1em #fff}';a("browserify-css").createStyle(d,{href:"src/css/videojs-ima.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],206:[function(a,b,c){var d=".vjs-thumbnail-holder{position:absolute;display:none;overflow:hidden}.vjs-thumbnail{position:relative;left:0;bottom:1.3em;opacity:0;transition:opacity .2s ease;-webkit-transition:opacity .2s ease;-moz-transition:opacity .2s ease;-mz-transition:opacity .2s ease}.vjs-progress-control.fake-active .vjs-thumbnail,.vjs-progress-control:active .vjs-thumbnail,.vjs-progress-control:hover .vjs-thumbnail{opacity:1}.vjs-progress-control:active .vjs-thumbnail:active,.vjs-progress-control:hover .vjs-thumbnail:hover{opacity:0}";a("browserify-css").createStyle(d,{href:"src/css/videojs-thumbnails.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],207:[function(a,b,c){var d=".video-js.vjs-watermark{display:block}.video-js .vjs-watermark-content{opacity:.99;position:absolute;padding:5px;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js .vjs-watermark-top-right{right:0;top:0}.video-js .vjs-watermark-top-left{left:0;top:0}.video-js .vjs-watermark-bottom-right{right:0;bottom:30px}.video-js .vjs-watermark-bottom-left{left:0;bottom:30px}.video-js.vjs-user-inactive.vjs-playing .vjs-watermark-fade{opacity:0}";a("browserify-css").createStyle(d,{href:"src/css/videojs-watermark.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],208:[function(a,b,c){ var d='.video-js .vjs-big-play-button:before,.video-js .vjs-control:before,.video-js .vjs-modal-dialog,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button:before,.video-js .vjs-control:before{text-align:center}@font-face{font-family:VideoJS;src:url(node_modules/video.js/dist/font/VideoJS.eot?#iefix) format("eot")}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAA54AAoAAAAAFmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAD4AAABWUZFeBWNtYXAAAAE0AAAAOgAAAUriMBC2Z2x5ZgAAAXAAAAouAAAPUFvx6AdoZWFkAAALoAAAACsAAAA2DIPpX2hoZWEAAAvMAAAAGAAAACQOogcgaG10eAAAC+QAAAAPAAAAfNkAAABsb2NhAAAL9AAAAEAAAABAMMg06m1heHAAAAw0AAAAHwAAACABMAB5bmFtZQAADFQAAAElAAACCtXH9aBwb3N0AAANfAAAAPwAAAGBZkSN43icY2BkZ2CcwMDKwMFSyPKMgYHhF4RmjmEIZzzHwMDEwMrMgBUEpLmmMDh8ZPwoxw7iLmSHCDOCCADvEAo+AAB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGD7K/f8PUvCREUTzM0DVAwEjG8OIBwCPdwbVAAB4nI1Xe1CU1xX/zv1eLItLln0JwrIfC7sJGET2hRJ2N1GUoBJE8AESQEEhmBHjaB7UuBMTO4GMaSu7aY3RNlOdRPNqO2pqRmuTaSZtR6JJILUZk00a/4imjpmiecB303O/XUgMJOPufvd+99xzzz33nN855y4HHH7EfrGfIxwHRiANvF/sH71I9BzHszmpW+rGOQOXxXE6YhI4PoMT8zkT4cDFuf1cwMrZJI5cglM0HKVv0MaUFDgIFfg9mJJCG+kbKn1JkqBOVaFOkuhLpARq8fu0Nnc9/zdvfY9PxXW4PdH0C6N+PCejhorxFjAqRjgFRXSINEARbBGsoxcFK7IJmr4OycFJnInL59zIXwxui80fkGRbEHyosMWaATJKUfCskmwJQsAWANkmnIGOhlf514h7U8HNIv3owoHB0WMt0Eb3sx0guLi5pq/8Ny1q6969fKR9X9GBV6dPv6dp04K99SOwtmyPl47ApRa6n4ZpP1yjr5fn7MmYP/vXLUJs715UguklHBaHOZHZmG1N9FAIW2mf0MqWCIdo/8RZ1yGfxKUldDcGIbFA7ICO+vqOMSPTh/ZrSqgHi/bB/O8E8Mnzp+M+acxfpsTShBwej26TiGxBn7m4eEIO+Rueu6Hj+IFBnh88cAEUEQ//nVLx5C7kf+yIR47QEe+eMlhz9SqsGbe3hh2R03NGzoY6O42Kz8l7fB6fAk6LYnTyFo/FYyT6GGyNx2Jx2sdH4rA1Fo/HyCXaFyOp8dhYBCfJb2NIn1ImE6CYNGmgSTb52DawJR6jfXEmDU4xyTEmpgHHOIStoxfjSGdkbsK2w2jbdMQG4sgAstEONgURYCwGHhEhhscioQaAhhCf7McifEQc0l6+mxj9nI+gmSdiQ0Zbm7gZnIO7GSMEXG6UDAVocxAV8GcEXCKg1a02RcTtwANWRGIAyElor6n/+ZU2yOB3+T77Hb1MLqhn4KHVnQBjJnqe9QZSon6Kc5DxAD2vMdPL/BXSmQGwspa67z9wLUjdi9TN7QC7lyyBr9rpt7uXVC1CMpyjKRoXnGPHTuiaPLsNdc2dbAFQLAooPkXEh33FodHl4XpC6sPCIa0ftUIhHSYXVSu5iME+DIXsbZJ51BeidCgajcai43jU9nVzoSn2dPqcFvSoxSzJzgRKAx47WMRxOrIj3Wf0+hndxhJTiOkSEqxar3b3RKM9hY64oxBA64ieURLvCfpkDb8siBdUJ1bgT+urJ5PGfewQrmm5R5+0HmfyIPySD7OYkT0WxRePah8oEiyjlxIP74thVoRTURpmL6QhGuWS+QDjdANXjIM8SQa/1w128ODx0Qp4aLMNg9+JL3joUn8AMxW+aLNiuKjarn4uyyTdXjOzZTsh21uwldUvJoYza+zELALfu3p1L8/3krtyZ0Ag058J3hxHghvbGZn0dHZy6Mim/7Blre4lpHd1c28yVqRViO153F2oIWoXCIKbL4Z0cM1iaQn9mI5KuV2SzEvWXJDMNtkANpMdQoDDhIdD4A/YrP6Aye9ysxyE+uOEAcTDorgvVZJjcua043PnZ/PmdDqcbibZlXOOT8uSo7Kof0YUn9GL+Jo17ficymxiTofC6znUso0DhAxs1Fo+kF+d36vLmgZ8mk5cdGv2mwYj5k3Dm9m3LhJ1aVRNm6HrTbLgYAoWXDhDd/u4PGy5CT+xGMdiaBovewUCF/1BiWNljI9MLn7jeScpg+WyH6mfU62eVDql7hsrmvx1ezp/YldE2LhjbkiDnAn8tGy/MW3IXRMYJduvq9HpmIcKuFt+JCtgdGEGKAcF6UacVwIYbVPGfw/+YuNBS4cx/CUHcnyfc+wRDMtTr72mMSBjT/yn/GKSdeDWQUCH6Xoqq5R10RE60gV6erUL0iCti16d0hZjxut4QI/rEpgSh6WjnJXdBXRg1GKCucGJPtFqM27aD1tOqqKonsQ2KsFSSmEpmvRlsR+TcD9OFwrqXxIclL4sJTnGMSuG8KpkZvKdeVIOKDyWSyPLV16/p1QMPbP8NihwUzr47bdnXtwtjdCvqqpO0H+pOvIl3Pzv46e5CT/tQjklXCXXym1AaWY7bzHLkuDMc7ldKCvgxzLn8wYkJLBhEDyK7MT8bTbwbkxbfp+3mKAGsmTBpabSIEECzMIcQlzOPAMKsxMs7uhsnxPLuofPDTc1hkuq6MX9j16YU7CqegcYHbmWYuvAP6tCS97tgWf7dlQvnl25YPavXLVZvrzQPeHCpZmzzEUVq/xzu5sChnSTPTW7oOYmh69z4zL/gk3b+O6hoa733uviP82vnFcbqWlc9tDmZa23LVzaV1yXURi+JX+28NeBuj3+O8IrQ080Vm1eWB4OKjPmrJu7c1udWynvKF6/vs479lSW9+5gZkn+dKfellNGDPllzeULustz+A0bPvhgw7lkvEUwn/N4Ty7U7nhGsEpFkOfy+kutbOh1JQxhVDJumoW11hnkPThznh6FFlhfT+ra1x9sF56kx5YuDzVY9PQYAYA7iblw4frQ4TPCk2MK/xGU3rlmze62trHz6lsko+v+So/do74PT8KVkpJfOErKcv8znrMGsHTNxoEkWy1mYgDB6XBbPaWsuiS6CryGaL6zCjaXBgvtkuyXBua1wOKnh+k7L9AvPnYWffxK18FcJbuosGf3/Jo7amY+CE1vppzY+UTrva0FXc1i55pKQ/YjVL187N5fCn1kW5uot/1hi+DiZ+5atnJR9E+prvydJ9ZZ5mwOpU5gM4KYysMBQ71UzPuMTl9QQOyUo5nwioeYCPjFklrbK6s6X+ypUZ6rum9+CZYzWRiBJfSP0xzzSmrg7f86g0DKVj/wwFzieD9rRfPGFbeKMl05pn5j9/rsQJJ2iEgRrpohlyBo3f4QK7Kl+EcAYZgAoNVmZWXK704YAa3FwBxgSGUOs5htvGRz4Sgj3yFkSJFBuv/sxu5yk998T8WDJzvv/2RX19HtTUW1S+wpKRKRjJ6zzz/1/OPdFdWGlAKbvzS4PHOtURikg9AGz0LbIB85S/cPOpoXvuue8/iV2H1vPTy3ddvOeZ37HGmO3OmSzVzR+NS53+84dHlFhXPLqtzSO+5ruHM2vXtBdxP87LOzKAD359j/INYIbyPabIi3Cq6Wa+SaGe78diIzu7qcblcAa6/fJRvNopXFJnO+U9KKM5bqH5LM0iQSVmpPCPDu7ZT4Aoubz3709EBTyrTDjyx8MQXgUH1nqm7TWng4TzE4i4AsKskBITXfSyC4Fkl5MxnJDiKSIDSJAsGvd1y+/eNDp2e+A+5d8HeiiunrTkT6TqWLIs+/QRoWr98s0qj8uuzLuS22Ytufg3rdTaHn1m46sfgGKHXt0MGnLaRHdnwN37tvHcWKo2V6lnPxL4UvUQcRdOzmZSQs8X5CH5OxXMXpkATuDz8Et0SH4uyCRR+TjmBDP1GvsVrWEGVzEj33YVQ9jAtIKpqsl/s/0xrocwAAeJxjYGRgYADig3cEzsTz23xl4GZnAIHLRucNkWl2BrA4BwMTiAIAF4IITwB4nGNgZGBgZwCChWASxGZkQAXyABOUANh4nGNnYGBgHyAMADa8ANoAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqHicY2BkYGCQZ8hlYGcAASYg5gJCBob/YD4DABbVAaoAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2P2XLCMAxFfYFspGUp3Te+IB9lHJF4cOzUS2n/voaEGR6qB+lKo+WITdhga/a/bRnDBFPMkCBFhhwF5ihxg1sssMQKa9xhg3s84BFPeMYLXvGGd3zgE9tZr/hveXKVkFYoSnoeHJXfRoWOqi54mo9ameNFdrK+dLSyaVf7oJQTlkhXpD3Z5XXhR/rUfQVuKXO91Jps4cLOS6/I5YL3XhodRRsVWZe4NnZOhWnSAWgxhMoEr6SmzZieF43Mk7ZOBdeCVGrp9Eu+54J2xhySplfB5XHwQLXUmT9KH6+kPnQ7ZYuIEzNyfs1DLU1VU4SWZ6LkXGHsD1ZKbMw=) format("woff"),url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMlGRXgUAAAEoAAAAVmNtYXDiMBC2AAAB/AAAAUpnbHlmW/HoBwAAA4gAAA9QaGVhZAyD6V8AAADQAAAANmhoZWEOogcgAAAArAAAACRobXR42QAAAAAAAYAAAAB8bG9jYTDINOoAAANIAAAAQG1heHABMAB5AAABCAAAACBuYW1l1cf1oAAAEtgAAAIKcG9zdGZEjeMAABTkAAABgQABAAAHAAAAAKEHAAAAAAAHAAABAAAAAAAAAAAAAAAAAAAAHwABAAAAAQAAwdxheF8PPPUACwcAAAAAANMyzzEAAAAA0zLPMQAAAAAHAAcAAAAACAACAAAAAAAAAAEAAAAfAG0ABwAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQcAAZAABQAIBHEE5gAAAPoEcQTmAAADXABXAc4AAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA8QHxHgcAAAAAoQcAAAAAAAABAAAAAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAAAAAMAAAADAAAAHAABAAAAAABEAAMAAQAAABwABAAoAAAABgAEAAEAAgAA8R7//wAAAADxAf//AAAPAAABAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqAABAAAAAAWLBYsAAgAAAREBAlUDNgWL++oCCwAAAwAAAAAGawZrAAIADgAaAAAJAhMEAAMSAAUkABMCAAEmACc2ADcWABcGAALrAcD+QJX+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgIwAVABUAGbCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAAAAgAAAAAFQAWLAAMABwAAASERKQERIREBwAEr/tUCVQErAXUEFvvqBBYAAAAEAAAAAAYgBiAABgATACQAJwAAAS4BJxUXNjcGBxc+ATUmACcVFhIBBwEhESEBEQEGBxU+ATcXNwEHFwTQAWVVuAO7AidxJSgF/t/lpc77t18BYf6fASsBdQE+TF1OijuZX/1gnJwDgGSeK6W4GBhqW3FGnFT0AWM4mjT+9AHrX/6f/kD+iwH2/sI7HZoSRDGYXwSWnJwAAAEAAAAABKsF1gAFAAABESEBEQECCwEqAXb+igRg/kD+iwSq/osAAAACAAAAAAVmBdYABgAMAAABLgEnET4BAREhAREBBWUBZVRUZfwRASsBdf6LA4Bkniv9piueAUT+QP6LBKr+iwAAAwAAAAAGIAYPAAUADAAaAAATESEBEQEFLgEnET4BAxUWEhcGAgcVNgA3JgDgASsBdf6LAsUBZVVVZbqlzgMDzqXlASEFBf7fBGD+QP6LBKr+i+Bkniv9piueAvOaNP70tbX+9DSaOAFi9fUBYgAAAAQAAAAABYsFiwAFAAsAEQAXAAABIxEhNSMDMzUzNSEBIxUhESMDFTMVMxECC5YBduCWluD+igOA4AF2luDglgLr/oqWAgrglvyAlgF2AqCW4AF2AAQAAAAABYsFiwAFAAsAEQAXAAABMxUzESETIxUhESMBMzUzNSETNSMRITUBdeCW/org4AF2lgHAluD+ipaWAXYCVeABdgHAlgF2++rglgHA4P6KlgAAAAACAAAAAAXWBdYADwATAAABIQ4BBxEeARchPgE3ES4BAyERIQVA/IA/VQEBVT8DgD9VAQFVP/yAA4AF1QFVP/yAP1UBAVU/A4A/VfvsA4AAAAYAAAAABmsGawAHAAwAEwAbACAAKAAACQEmJw4BBwElLgEnAQUhATYSNyYFAQYCBxYXIQUeARcBMwEWFz4BNwECvgFkTlSH8GEBEgOONemh/u4C5f3QAXpcaAEB/BP+3VxoAQEOAjD95DXpoQESeP7dTlSH8GH+7gPwAmgSAQFYUP4nd6X2Pv4nS/1zZAEBk01NAfhk/v+TTUhLpfY+Adn+CBIBAVhQAdkAAAAFAAAAAAZrBdYADwATABcAGwAfAAABIQ4BBxEeARchPgE3ES4BASEVIQEhNSEFITUhNSE1IQXV+1ZAVAICVEAEqkBUAgJU+xYBKv7WAur9FgLqAcD+1gEq/RYC6gXVAVU//IA/VQEBVT8DgD9V/ayV/tWVlZWWlQADAAAAAAYgBdYADwAnAD8AAAEhDgEHER4BFyE+ATcRLgEBIzUjFTM1MxUUBgcjLgEnET4BNzMeARUFIzUjFTM1MxUOAQcjLgE1ETQ2NzMeARcFi/vqP1QCAlQ/BBY/VAICVP1rcJWVcCog4CAqAQEqIOAgKgILcJWVcAEqIOAgKiog4CAqAQXVAVU//IA/VQEBVT8DgD9V/fcl4CVKICoBASogASogKgEBKiBKJeAlSiAqAQEqIAEqICoBASogAAAGAAAAAAYgBPYAAwAHAAsADwATABcAABMzNSMRMzUjETM1IwEhNSERITUhERUhNeCVlZWVlZUBKwQV++sEFfvrBBUDNZb+QJUBwJX+QJb+QJUCVZWVAAAAAQAAAAAGIAZsAC4AAAEiBgcBNjQnAR4BMz4BNy4BJw4BBxQXAS4BIw4BBx4BFzI2NwEGBx4BFz4BNy4BBUArSh797AcHAg8eTixffwICf19ffwIH/fEeTixffwICf18sTh4CFAUBA3tcXHsDA3sCTx8bATcZNhkBNB0gAn9fX38CAn9fGxn+zRwgAn9fX38CIBz+yhcaXHsCAntcXXsAAAIAAAAABlkGawBDAE8AAAE2NCc3PgEnAy4BDwEmLwEuASchDgEPAQYHJyYGBwMGFh8BBhQXBw4BFxMeAT8BFh8BHgEXIT4BPwE2NxcWNjcTNiYnBS4BJz4BNx4BFw4BBasFBZ4KBgeWBxkNujpEHAMUD/7WDxQCHEU5ug0aB5UHBQudBQWdCwUHlQcaDbo5RRwCFA8BKg8UAhxFOboNGgeVBwUL/ThvlAIClG9vlAIClAM3JEokewkaDQEDDAkFSy0cxg4RAQERDsYcLUsFCQz+/QwbCXskSiR7CRoN/v0MCQVLLRzGDhEBAREOxhwtSwUJDAEDDBsJQQKUb2+UAgKUb2+UAAAAAAEAAAAABmsGawALAAATEgAFJAATAgAlBACVCAGmAT0BPQGmCAj+Wv7D/sP+WgOA/sP+WggIAaYBPQE9AaYICP5aAAAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAASYAJzYANxYAFwYAA4D+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgZrCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAADAAAAAAZrBmsACwAXACMAAAEEAAMSAAUkABMCAAEmACc2ADcWABcGAAMOAQcuASc+ATceAQOA/sP+WggIAaYBPQE9AaYICP5a/sP9/q4GBgFS/f0BUgYG/q4dAn9fX38CAn9fX38Gawj+Wv7D/sP+WggIAaYBPQE9Aab6yAYBUv39AVIGBv6u/f3+rgJPX38CAn9fX38CAn8AAAAEAAAAAAYgBiAADwAbACUAKQAAASEOAQcRHgEXIT4BNxEuAQEjNSMVIxEzFTM1OwEhHgEXEQ4BByE3MzUjBYv76j9UAgJUPwQWP1QCAlT9a3CVcHCVcJYBKiAqAQEqIP7WcJWVBiACVD/76j9UAgJUPwQWP1T8gpWVAcC7uwEqIP7WICoBcOAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAEwcJAScJATcJARcBA4D+w/5aCAgBpgE9AT0BpggI/lo4af70/vRpAQv+9WkBDAEMaf71BmsI/lr+w/7D/loICAGmAT0BPQGm/BFpAQv+9WkBDAEMaf71AQtp/vQAAQAAAAAF1ga2ABYAAAERCQERHgEXDgEHLgEnIxYAFzYANyYAA4D+iwF1vv0FBf2+vv0FlQYBUf7+AVEGBv6vBYsBKv6L/osBKgT9v779BQX9vv7+rwYGAVH+/gFRAAAAAQAAAAAFPwcAABQAAAERIyIGHQEhAyMRIREjETM1NDYzMgU/nVY8ASUn/v7O///QrZMG9P74SEi9/tj9CQL3ASjaus0AAAAABAAAAAAGjgcAADAARQBgAGwAAAEUHgMVFAcGBCMiJicmNTQ2NzYlLgE1NDcGIyImNTQ2Nz4BMyEHIx4BFRQOAycyNjc2NTQuAiMiBgcGFRQeAxMyPgI1NC4BLwEmLwImIyIOAxUUHgIBMxUjFSM1IzUzNTMDH0BbWkAwSP7qn4TlOSVZSoMBESAfFS4WlMtIP03TcAGiioNKTDFFRjGSJlAaNSI/akAqURkvFCs9WTY6a1s3Dg8THgocJU4QIDVob1M2RnF9A2vV1WnU1GkD5CRFQ1CATlpTenNTYDxHUYouUhIqQCkkMQTBlFKaNkJAWD+MWkhzRztAPiEbOWY6hn1SJyE7ZS5nZ1I0/JcaNF4+GTAkGCMLFx04Ag4kOF07Rms7HQNsbNvbbNkAAwAAAAAGgAZsAAMADgAqAAABESERARYGKwEiJjQ2MhYBESERNCYjIgYHBhURIRIQLwEhFSM+AzMyFgHd/rYBXwFnVAJSZGemZASP/rdRVj9VFQv+twIBAQFJAhQqR2c/q9AEj/whA98BMkliYpNhYfzd/cgCEml3RTMeM/3XAY8B8DAwkCAwOB/jAAABAAAAAAaUBgAAMQAAAQYHFhUUAg4BBCMgJxYzMjcuAScWMzI3LgE9ARYXLgE1NDcWBBcmNTQ2MzIXNjcGBzYGlENfAUyb1v7SrP7x4SMr4bBpph8hHCsqcJNETkJOLHkBW8YIvYaMYG1gJWldBWhiRQ4cgv797rdtkQSKAn1hBQsXsXUEJgMsjlNYS5WzCiYkhr1mFTlzPwoAAAABAAAAAAWABwAAIgAAARcOAQcGLgM1ESM1PgQ3PgE7AREhFSERFB4CNzYFMFAXsFlorXBOIahIckQwFAUBBwT0AU3+sg0gQzBOAc/tIz4BAjhceHg6AiDXGlddb1ctBQf+WPz9+h40NR4BAgABAAAAAAaABoAASgAAARQCBCMiJzY/AR4BMzI+ATU0LgEjIg4DFRQWFxY/ATY3NicmNTQ2MzIWFRQGIyImNz4CNTQmIyIGFRQXAwYXJgI1NBIkIAQSBoDO/p/Rb2s7EzYUaj15vmh34o5ptn9bK1BNHggIBgIGETPRqZepiWs9Sg4IJRc2Mj5WGWMRBM7+zgFhAaIBYc4DgNH+n84gXUfTJzmJ8JZyyH46YH2GQ2ieIAwgHxgGFxQ9WpfZpIOq7lc9I3VZHzJCclVJMf5eRmtbAXzp0QFhzs7+nwAABwAAAAAHAATPAA4AFwAqAD0AUABaAF0AAAERNh4CBw4BBwYmIycmNxY2NzYmBxEUBRY2Nz4BNy4BJyMGHwEeARcOARcWNjc+ATcuAScjBh8BHgEXFAYXFjY3PgE3LgEnIwYfAR4BFw4BBTM/ARUzESMGAyUVJwMchM2UWwgNq4JHrQgBAapUaAoJcWMBfiIhDiMrAQJLMB0BBAokNAIBPmMiIQ4iLAECSzAeAQUKJDQBP2MiIQ4iLAECSzAeAQUKJDQBAT75g+5B4arNLNIBJ44ByQL9BQ9mvYCKwA8FBQMDwwJVTGdzBf6VB8IHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvVJkAWUDDEf+tYP5AQAAAAEAAAAABiAGtgAbAAABBAADER4BFzMRITU2ADcWABcVIREzPgE3EQIAA4D+4v6FBwJ/X+D+1QYBJ97eAScG/tXgX38CB/6FBrUH/oX+4v32X38CAlWV3gEnBgb+2d6V/asCf18CCgEeAXsAAAAAEADGAAEAAAAAAAEABwAAAAEAAAAAAAIABwAHAAEAAAAAAAMABwAOAAEAAAAAAAQABwAVAAEAAAAAAAUACwAcAAEAAAAAAAYABwAnAAEAAAAAAAoAKwAuAAEAAAAAAAsAEwBZAAMAAQQJAAEADgBsAAMAAQQJAAIADgB6AAMAAQQJAAMADgCIAAMAAQQJAAQADgCWAAMAAQQJAAUAFgCkAAMAAQQJAAYADgC6AAMAAQQJAAoAVgDIAAMAAQQJAAsAJgEeVmlkZW9KU1JlZ3VsYXJWaWRlb0pTVmlkZW9KU1ZlcnNpb24gMS4wVmlkZW9KU0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfAAABAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8EcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwAAAAAA) format("truetype");font-weight:400;font-style:normal}.video-js .vjs-big-play-button,.video-js .vjs-play-control,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button:before,.video-js .vjs-play-control:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0,.video-js .vjs-volume-menu-button.vjs-vol-0,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0:before,.video-js .vjs-volume-menu-button.vjs-vol-0:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1,.video-js .vjs-volume-menu-button.vjs-vol-1,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1:before,.video-js .vjs-volume-menu-button.vjs-vol-1:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2,.video-js .vjs-volume-menu-button.vjs-vol-2,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2:before,.video-js .vjs-volume-menu-button.vjs-vol-2:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control,.video-js .vjs-volume-menu-button,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control:before,.video-js .vjs-volume-menu-button:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subtitles-button,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subtitles-button:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-mouse-display,.video-js .vjs-play-progress,.video-js .vjs-volume-display,.video-js .vjs-volume-level,.vjs-icon-circle{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mouse-display:before,.video-js .vjs-play-progress:before,.video-js .vjs-volume-display:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button:before,.vjs-icon-cancel:before{content:"\\f115"}.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button:before,.vjs-icon-audio:before{content:"\\f11e"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66A8CC}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2B333F;background-color:rgba(43,51,63,.7);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{outline:0;border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-tooltip{position:absolute;top:-3em;left:0;z-index:10;display:none;padding:6px 8px 8px;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;background-color:#2B333F;background-color:rgba(43,51,63,.7);color:#fff;font-size:.9em;font-family:Arial,Helvetica,sans-serif;white-space:nowrap;pointer-events:none}.video-js .vjs-tooltip-active{display:block}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;overflow:auto}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-menu li:focus,.vjs-menu li:hover{outline:0;background-color:#73859f;background-color:rgba(115,133,159,.5)}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2B333F}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-control .vjs-menu{text-shadow:none}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2B333F;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.video-js .vjs-menu-button-inline.vjs-slider-active{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2B333F;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}@media \\0screen{.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden}}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \\0screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{outline:0;position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-control:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:4em}.vjs-live .vjs-progress-control{display:none}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.666666666666666666em}.video-js .vjs-progress-control:hover .vjs-mouse-display-tooltip,.video-js .vjs-progress-control:hover .vjs-play-progress:after,.video-js .vjs-progress-control:hover .vjs-time-tooltip{font-family:Arial,Helvetica,sans-serif;visibility:visible;font-size:.6em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress,.video-js .vjs-progress-holder .vjs-tooltip-progress-bar{position:absolute;display:block;height:.3em;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-mouse-display:before{display:none}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{position:absolute;top:-.333333333333333em;right:-.5em;font-size:.9em}.video-js .vjs-mouse-display-tooltip,.video-js .vjs-play-progress:after,.video-js .vjs-time-tooltip{visibility:hidden;pointer-events:none;position:absolute;top:-3.4em;right:-1.9em;font-size:.9em;color:#000;content:attr(data-current-time);padding:6px 8px 8px;background-color:#fff;background-color:rgba(255,255,255,.8);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.video-js .vjs-play-progress:after,.video-js .vjs-play-progress:before,.video-js .vjs-time-tooltip{z-index:1}.video-js .vjs-progress-control .vjs-keep-tooltips-inside:after{display:none}.video-js .vjs-load-progress{background:#bfc7d3;background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:#fff;background:rgba(115,133,159,.75)}.video-js.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-time-tooltip{display:inline-block;height:2.4em;position:relative;float:right;right:-1.9em}.vjs-tooltip-progress-bar{visibility:hidden}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display-tooltip{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display-tooltip{display:none}.video-js .vjs-progress-control .vjs-mouse-display-tooltip,.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;margin:0 .45em;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control,.video-js .vjs-volume-menu-button{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-volume-control{width:5em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu{display:block;width:0;height:0;border-top-color:transparent}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:.5em;height:8em}.vjs-menu-button-popup.vjs-volume-menu-button-horizontal .vjs-menu{left:-2em}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu-content{height:0;width:0;overflow-x:hidden;overflow-y:hidden}.vjs-volume-menu-button-vertical .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-vertical.vjs-slider-active .vjs-menu-content,.vjs-volume-menu-button-vertical:focus .vjs-menu-content,.vjs-volume-menu-button-vertical:hover .vjs-menu-content{height:8em;width:2.9em}.vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-horizontal .vjs-slider-active .vjs-menu-content,.vjs-volume-menu-button-horizontal:focus .vjs-menu-content,.vjs-volume-menu-button-horizontal:hover .vjs-menu-content{height:2.9em;width:8em}.vjs-volume-menu-button.vjs-menu-button-inline .vjs-menu-content{background-color:transparent!important}.video-js .vjs-volume-display:before{display:none}.video-js .vjs-volume-display-tooltip{display:none;position:absolute;top:-1em;font-size:1em;padding:.5em;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.video-js .vjs-volume-display-tooltip-active{display:block}.video-js .vjs-volume-bar .vjs-volume-display{position:absolute;top:0;z-index:1;display:none;width:1px;height:100%;background-color:#000}.vjs-no-flex .vjs-volume-bar .vjs-volume-display{z-index:0}.video-js .vjs-volume-bar:hover .vjs-volume-display{display:block}.video-js.vjs-user-inactive .vjs-volume-bar .vjs-volume-display,.video-js.vjs-user-inactive .vjs-volume-display-tooltip{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-bar .vjs-volume-display,.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-display-tooltip{display:none}.video-js .vjs-volume-display-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-poster img{display:block;vertical-align:middle;margin:0 auto;max-height:100%;padding:0;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-controls-disabled .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-moz-transform:translateY(-3em);-ms-transform:translateY(-3em);-o-transform:translateY(-3em);-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-moz-transform:translateY(-1.5em);-ms-transform:translateY(-1.5em);-o-transform:translateY(-1.5em);-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:\'X\';font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block}.vjs-using-native-controls .vjs-loading-spinner{display:none!important}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:#fff transparent transparent}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(0.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(0.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%,20%{border-top-color:#73859f}35%{border-top-color:#fff}100%,60%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%,20%{border-top-color:#73859f}35%{border-top-color:#fff}100%,60%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-menu-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-menu-button{display:none}.vjs-caption-settings{position:relative;top:1em;background-color:#2B333F;background-color:rgba(43,51,63,.75);color:#fff;margin:0 auto;padding:.5em;height:15em;font-size:12px;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-linear-gradient(-90deg,rgba(0,0,0,.8),rgba(255,255,255,0));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0))}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}' ;a("browserify-css").createStyle(d,{href:"src/css/videojs.css"},{insertAt:"bottom"}),b.exports=d},{"browserify-css":48}],209:[function(a,b,c){"use strict";function d(a){var b;if(!a.getBoundingClientRect||!a.parentNode)return 0;b=a.getBoundingClientRect();var c=document.body,d=document.documentElement.clientLeft||c.clientLeft||0,e=window.pageXOffset||c.scrollLeft;return Math.round(b.left+e-d)}var e=a("video.js"),f=a("lodash/throttle"),g=a("lodash/get");e.plugin("dvr",function(){function a(a,b){var c=a.getChild(b);a.removeChild(c),c.dispose()}function b(){var b=c.tech_.hls_obj,d=c.tech_.flashlsProvider,e=c.seekable();if((b||d)&&c.duration()==1/0&&e&&e.length&&!(e.end(0)-e.start(0)<60)){var f=c.controlBar.progressControl;a(f,"seekBar"),f.seekBar=f.addChild("DvrSeekBar"),a(c.controlBar,"liveDisplay"),c.controlBar.addChild("LiveButton"),c.controlBar.addClass("vjs-dvr"),c.hasStarted()||c.one("play",function(){c.dvr.seek_to_live()}),c.on("timeupdate",function(){c.controlBar.toggleClass("vjs-dvr-live",c.dvr.is_live())}),d?c.dvr.live_threshold=Math.max(1.5*d.avg_duration,10):b.on("hlsLevelUpdated",function(a,b){c.dvr.live_threshold=Math.max(1.5*b.details.targetduration,10)})}}var c=this;c.ready(function(){var a=c.seekable();c.duration()&&a&&a.length?b():c.one("loadedmetadata",function(){if(!c.tech_.flashlsProvider)return void b();c.on("timeupdate",function a(){var d=c.seekable();d&&d.length&&(c.off("timeupdate",a),b())})})}),c.dvr={live_threshold:10,range:function(){var a=c.seekable();return a&&a.length?{start:a.start(0),end:a.end(0)}:null},is_live:function(){var a=this.range(),b=a&&a.end;return b&&b-c.currentTime()<=this.live_threshold},format_time:function(a){var b=this.range();return b?(a||(a=c.scrubbing()?c.getCache().currentTime:c.currentTime()),b.end-a0?"-":"")+e.formatTime(a,b.end))):"0:00"},seek_to_live:function(){var a=this.range();a&&!this.is_live()&&c.currentTime(a.end)}}});var h=e.getComponent("SeekBar");e.registerComponent("DvrSeekBar",e.extend(h,{options_:{children:["dvrLoadProgressBar","dvrMouseTimeDisplay","dvrPlayProgressBar"],barName:"dvrPlayProgressBar"},getPercent:function(){var a=this.player_.dvr,b=a.range();return!b||a.is_live()?1:(this.player_.currentTime()-b.start)/(b.end-b.start)},handleMouseMove:function(a){var b=this.player_.dvr.range();if(b){var c=b.start+this.calculateDistance(a)*(b.end-b.start);b.end-c=1?1:c)+"%"},d=this.player_.dvr.range(),f=d?d.start:0,g=d?d.end:0,h=this.partEls_,i=[];if(a){var j=this.player_.currentTime();i=[{start:j,end:j+a}]}else{var k=this.player_.buffered();for(b=0;b=g||i.push({start:Math.max(k.start(b),f),end:Math.min(k.end(b),g)})}var l=i.length?i[i.length-1].end-f:0;for(this.el_.style.width=c(l,g-f),b=0;bi.length;b--)this.el_.removeChild(h[b-1]);h.length=i.length}}));var m=e.getComponent("Button");e.registerComponent("LiveButton",e.extend(m,{controlText_:"Skip back to live",createEl:function(){var a=m.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=e.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),a.appendChild(this.contentEl_),a},handleClick:function(){this.player_.dvr.seek_to_live(),this.player_.play()}}))},{"lodash/get":166,"lodash/throttle":187,"video.js":200}],210:[function(a,b,c){"use strict";function d(a,b){function c(a){var b=a.height||Math.round(9*a.width/16);return b?b+"p":""}function d(a){return a.bitrate?h.scaled_number(a.bitrate)+"bps":""}function g(a,b){var e=c(a);return e?i(b,function(b){return b!=a&&c(b)==e})?e+" "+d(a):e:d(a)}function j(a){o=a,n.vjs_setProperty("level",a),k()}function k(){var a=n.hola_hls_get_levels(),c=[];a.length>1&&c.push({id:-1,label:"Auto"});for(var d=0;d.5||(a.ima.playAd(b.ad),c[b.time]=!0)})}),a.tech_.on("parsedmetadata",function(c,d){var e=d&&d.samples&&d.samples[0],f=s.parse_id3(e.data||e.unit),g=f.TXXX&&f.TXXX.adID;g&&b.indexOf(e.dts)<0&&(b.push({ad:g,time:e.dts}),a.trigger("ads-cuepoints",w(b,"time")))})}function j(a){return q.is_hls_link(a.src)||q.is_hls_type(a.type)}function k(a){return q.is_dash_link(a.src)||q.is_dash_type(a.type)}function l(a){return q.is_hds_link(a.src)||q.is_hds_type(a.type)}function m(a){return j(a)||k(a)||l(a)}function n(a,b){a.canPlayType("application/x-mpegurl")&&b.some(j)&&(a.src="",a.load())}function o(){var a=r.current_script();if(a){var b=v.parse(a.src,!0,!0).query.customer;if(b){if(document.querySelector('script[src*="//player.h-cdn.com/loader"]'))return void console.warn("Hola loader.js is included with Hola Player. There is no need to load it separately");console.log("Adding CDN loader..."),r.load_script("//player.h-cdn.com/loader.js?customer="+b,void 0,{async:!0,crossOrigin:"anonymous"})}}}var p=window.videojs=a("video.js");a("./css/videojs.css");var q=a("./mime.js"),r=a("./util.js"),s=a("./id3.js"),t=hola_vjs_provider_require(),u=a("./flashls_source_handler.js"),v=a("url"),w=a("lodash/map");!function(){t.attach(),u(),o()}();var x=window.hola_player=b.exports=d;x.VERSION="1.0.41",x.players={},g.prototype.init_element=function(a){var b=this.opt;if("VIDEO"==a.tagName)a.autoplay=!1,a.controls=!1,a.removeAttribute("data-setup"),n(a,b.sources);else{var c=window.getComputedStyle(a),d={id:r.unique_id("hola_player"),class:"video-js",preload:b.preload||"auto",width:b.width||parseFloat(c.width),height:b.height||parseFloat(c.height)};b.poster&&(d.poster=b.poster);var e=p.createEl("video",{},d);p.appendContent(e,b.sources.map(function(a){return p.createEl("source",{},a)})),e.style.position="static"==c.position?"relative":c.position,e.style.left=c.left,e.style.top=c.top,a.parentNode.insertBefore(e,a.nextSibling),a.style.display="none",a.hola_player=this,a=e}return a.id||(a.id=r.unique_id("hola_player")),a.hola_player=this,a},g.prototype.init_vjs=function(){var a=this.opt,b=this.ready_cb,c=this,d=this.get_vjs_opt();return f({"videojs-settings":!!d.plugins.settings,"videojs-hola-skin":!!d.plugins.hola_skin,"videojs-thumbnails":!!a.thumbnails||void 0===a.thumbnails,"videojs-contrib-ads":!!a.ads,"videojs-ima":!!a.ads,"videojs-contrib-dash":a.sources.some(k),dvr:a.dvr,"videojs-watermark":!!d.plugins.watermark}),p(this.element,d,function(){var d=this;if(d.emitTapEvents(),d.tech_&&a.controls&&d.controls(!0),a.thumbnails&&d.thumbnails(a.thumbnails),c.init_ads(d),d.on("pause",function(a){d.scrubbing()&&a.stopImmediatePropagation()}).on("save_logs",function(a){}).on("problem_report",function(a){}).on("cdn_graph_overlay",h),b)try{b(d)}catch(a){console.error(a.stack||a)}!a.autoplay||p.browser.IS_ANDROID||p.browser.IS_IOS||(d.play(),d.autoplay(!0))}).on("error",function(){var b=this,c=b.error;if(c&&c.code==c.MEDIA_ERR_SRC_NOT_SUPPORTED){var d=a.sources.every(function(a){return q.is_hds_link(a.src)||q.is_flv_link(a.src)}),e=p.getTech("Flash"),f=b.getChild("errorDisplay");!f||!d||e&&e.isSupported()||f.fillWith("Flash plugin is required to play this media")}})},g.prototype.get_settings_opt=function(){var a=this.opt,b=a.settings;if(!1!==b){b=p.mergeOptions({graph:a.graph,volume:a.volume},b);var c=a.sources&&a.sources.filter(function(a){return!m(a)});return!1!==b.quality&&(b.quality={sources:c}),b}},g.prototype.get_vjs_opt=function(){var a=this.opt;return p.mergeOptions({sources:a.sources,osmf:{swf:a.osmf_swf||a.base_url+"/videojs-osmf.swf"},flash:{swf:a.swf||a.base_url+"/videojs.swf",accelerated:a.accelerated},html5:{hlsjsConfig:{debug:!1,fragLoadingLoopThreshold:1e3,manifestLoadingTimeOut:2e4,manifestLoadingMaxRetry:4,levelLoadingTimeOut:2e4,levelLoadingMaxRetry:4,xhrSetup:a.withCredentials&&function(a){a.withCredentials=!0}}},inactivityTimeout:void 0===a.inactivity_timeout?2e3:a.inactivity_timeout,poster:a.poster,loop:a.loop,muted:a.muted,preload:a.preload,techOrder:("flash"==a.tech?["flash","html5"]:["html5","flash"]).concat("osmf"),tooltips:!0,plugins:{settings:this.get_settings_opt(),dvr:a.dvr,watermark:a.watermark,hola_skin:!a.skin&&{css:!1,no_play_transform:a.no_play_transform,show_controls_before_start:a.show_controls_before_start,show_time_for_live:a.show_time_for_live}}},a.videojs_options)},g.prototype.init_ads=function(a){function b(d){a.off(["tap","click","play"],b),a.ima.adContainerDiv&&(a.ima.adContainerDiv.style.cursor=""),a.ima.initializeAdDisplayContainer(),c.ads.manual||a.ima.requestAds(),d&&"play"!=d.type&&a.play()}var c=this.opt;if(c.ads){if(!window.google||!window.google.ima)return void r.load_script("//imasdk.googleapis.com/js/sdkloader/ima3.js",this.init_ads.bind(this,a));if(c.ads.id3&&(c.ads.manual=!0),!c.ads.adTagUrl&&!c.ads.adsResponse&&!c.ads.manual)return console.error("missing Ad Tag");if(!window.google)return console.error("missing IMA HTML5 SDK");if(!a.ads||!a.ima)return console.error("missing ad modules");a.ima(p.mergeOptions({id:a.id(),contribAdsSettings:{prerollTimeout:1e3,postrollTimeout:1e3,disablePlayContentBehindAd:!0}},c.ads)),a.ima.adContainerDiv&&(a.ima.adContainerDiv.style.cursor="pointer"),a.paused()?a.on(["tap","click","play"],b):b(),c.ads.id3&&i(a)}}},{"./css/dvr.css":202,"./css/videojs-contrib-ads.css":203,"./css/videojs-hola-skin.css":204,"./css/videojs-ima.css":205,"./css/videojs-thumbnails.css":206,"./css/videojs-watermark.css":207,"./css/videojs.css":208,"./dvr.js":209,"./flashls_source_handler.js":210,"./id3.js":212,"./mime.js":213,"./util.js":214,"@hola.org/dashjs/dist/dash.mediaplayer.debug.js":57,"@hola.org/videojs-contrib-ads":26,"@hola.org/videojs-contrib-media-sources":38,"@hola.org/videojs-hola-skin":41,"@hola.org/videojs-ima":42,"@hola.org/videojs-osmf":43,"@hola.org/videojs-settings":44,"@hola.org/videojs-thumbnails":45,"lodash/map":180,url:198,"video.js":200,"videojs-contrib-dash":57,"videojs-watermark":201}],212:[function(a,b,c){"use strict";function d(a,b){return a[b++]<<21|a[b++]<<14|a[b++]<<7|a[b++]}function e(a,b,c){for(var d="",e=b;e=b-1&&(a=Math.trunc(a)),a.toFixed(a<1?3:a<10?2:a<100?1:0).replace(/\.0*$/,"")+c[d])}},{}]},{},[211])(211)}); }; hola_vjs_provider_require = function(){ var res, define = (name, fn)=>res=fn(); define.amd = true; // REQUIRE_START: hola_videojs_hls.js !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.hola_player=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g500*c.duration){var e=Math.max(1,1e3*c.loaded/d);c.expectedLenh){var i=void 0,k=void 0;for(k=c.level-1;k>=0&&(i=c.duration*a.levels[k].bitrate/(6.4*e),p.logger.log("fragLoadedDelay/bufferStarvationDelay/fragLevelNextLoadedDelay["+k+"] :"+g.toFixed(1)+"/"+h.toFixed(1)+"/"+i.toFixed(1)),!(i.1){var e=d.updating;try{d.abort()}catch(a){e=!0,m.logger.warn("can not abort audio buffer: "+a)}e?this.audioTimestampOffset=a.startPTS:(m.logger.warn("change mpeg audio timestamp offset from "+d.timestampOffset+" to "+a.startPTS),d.timestampOffset=a.startPTS)}}}},{key:"onMediaAttaching",value:function(a){var b=this.media=a.media;if(b){var c=this.mediaSource=new MediaSource;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),c.addEventListener("sourceopen",this.onmso),c.addEventListener("sourceended",this.onmse),c.addEventListener("sourceclose",this.onmsc);var d=URL.createObjectURL(c);m.logger.log("set object url "+d),b.src=d}}},{key:"onMediaDetaching",value:function(){m.logger.log("media source detaching");var a=this.mediaSource;if(a){if("open"===a.readyState)try{a.endOfStream()}catch(a){m.logger.warn("onMediaDetaching:"+a.message+" while calling endOfStream")}a.removeEventListener("sourceopen",this.onmso),a.removeEventListener("sourceended",this.onmse),a.removeEventListener("sourceclose",this.onmsc);try{this.media.src="",this.media.removeAttribute("src")}catch(a){m.logger.warn("onMediaDetaching:"+a.message+" while unlinking video.src")}this.mediaSource=null,this.media=null,this.pendingTracks=null,this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.onmso=this.onmse=this.onmsc=null,this.waitForAppended=!1,this.hls.trigger(j.default.MEDIA_DETACHED)}},{key:"onMediaSourceOpen",value:function(){m.logger.log("media source opened"),this.hls.trigger(j.default.MEDIA_ATTACHED,{media:this.media}),this.mediaSource.removeEventListener("sourceopen",this.onmso);var a=this.pendingTracks;a&&(this.onBufferCodecs(a),this.pendingTracks=null,this.doAppending())}},{key:"onMediaSourceClose",value:function(){m.logger.log("media source closed")}},{key:"onMediaSourceEnded",value:function(){m.logger.log("media source ended")}},{key:"onFragAppending",value:function(){(this.segments||[]).length||this.isSbUpdating()?this.waitForAppended=!0:this.hls.trigger(j.default.FRAG_APPENDED)}},{key:"isSbUpdating",value:function(){var a=this.sourceBuffer;if(a)for(var b in a)if(a[b].updating)return!0}},{key:"dump",value:function(a){for(var b="",c=a.buffered,d=c.length,e=0;ethis._msDuration&&c>e||e===1/0||isNaN(e))&&(m.logger.log("Updating mediasource duration to "+c.toFixed(3)),this._msDuration=b.duration=c)}}},{key:"doFlush",value:function(){for(;this.flushRange.length;){var a=this.flushRange[0];if(!this.flushBuffer(a.start,a.end))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var b=0,c=this.sourceBuffer;for(var d in c)b+=c[d].buffered.length;this.appended=b,this.hls.trigger(j.default.BUFFER_FLUSHED)}}},{key:"dumpSegment",value:function(a){var b=void 0,c=a.data.length,d="queue:"+this.segments.length+"type:"+a.type+",size:"+c+",buf:[";for(b=0,c=Math.min(c,10);b10&&this.dumpSegments.shift()}},{key:"printDump",value:function(){this.dumpSegments&&this.dumpSegments.length&&m.logger.error(this.dumpSegments.join("|"))}},{key:"doAppending",value:function(){var a=this.hls,b=this.sourceBuffer,c=this.segments;if(b&&Object.keys(b).length){if(!this.media)return;if(this.media.error)return this.segments=[],void m.logger.error("trying to append although a media error occured, flush segment and abort");if(this.isSbUpdating())return void m.logger.log("sb update in progress");if(c.length){var d=c.shift();this.dumpSegment(d);try{m.logger.log("appending "+d.type+" SB, size:"+d.data.length),b[d.type]?(this.lastSegment=d,b[d.type].appendBuffer(d.data),this.appendError=0,this.appended++):this.onSBUpdateEnd()}catch(b){m.logger.error("error while trying to append buffer: "+b.message),c.unshift(d);var e={type:n.ErrorTypes.MEDIA_ERROR};if(22!==b.code){if(this.appendError?this.appendError++:this.appendError=1,e.details=n.ErrorDetails.BUFFER_APPEND_ERROR,e.frag=this.fragCurrent,e.reason=b.message+" (type:"+d.type+",size:"+d.data.length+")",this.appendError>a.config.appendErrorMaxRetry)return m.logger.log("fail "+a.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],e.fatal=!0,void a.trigger(j.default.ERROR,e);e.fatal=!1,a.trigger(j.default.ERROR,e)}else this.segments=[],e.details=n.ErrorDetails.BUFFER_FULL_ERROR,a.trigger(j.default.ERROR,e)}}}}},{key:"flushBuffer",value:function(a,b){var c,d,e,f,g,h;if(m.logger.log("flushBuffer,pos/start/end: "+this.media.currentTime+"/"+a+"/"+b),this.flushBufferCounter.5)return this.flushBufferCounter++,m.logger.log("flush "+i+" ["+g+","+h+"], of ["+e+","+f+"], pos:"+this.media.currentTime),c.remove(g,h),!1}else m.logger.warn("abort flushing too many retries");return m.logger.log("buffer flushed"),!0}}]),b}(l.default);c.default=o},{"../errors":20,"../event-handler":21,"../events":22,"../utils/logger":38}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;cthis.autoLevelCapping&&this.hls.streamController.nextLevelSwitch(),this.autoLevelCapping=this.hls.autoLevelCapping)}}},{key:"getMaxLevel",value:function(a){var b=0,c=void 0,d=void 0,e=this.mediaWidth,f=this.mediaHeight,g=0,h=0;for(c=0;c<=a&&(d=this.levels[c],!this.isLevelRestricted(c))&&(b=c,g=d.width,h=d.height,!(e<=g||f<=h));c++);return b}},{key:"isLevelRestricted",value:function(a){return!(!this.restrictedLevels||-1===this.restrictedLevels.indexOf(a))}},{key:"contentScaleFactor",get:function(){var a=1;try{a=window.devicePixelRatio}catch(a){}return a}},{key:"mediaWidth",get:function(){var a=void 0;return this.media&&(a=this.media.width||this.media.clientWidth||this.media.offsetWidth,a*=this.contentScaleFactor),a}},{key:"mediaHeight",get:function(){var a=void 0;return this.media&&(a=this.media.height||this.media.clientHeight||this.media.offsetHeight,a*=this.contentScaleFactor),a}}]),b}(l.default);c.default=m},{"../event-handler":21,"../events":22}],5:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;c0&&f>this.hls.config.fpsDroppedMonitoringThreshold*g){var i=this.hls.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+i),i>0&&(-1===this.hls.autoLevelCapping||this.hls.autoLevelCapping>=i)&&(i-=1,this.hls.trigger(j.default.FPS_DROP_LEVEL_CAPPING,{level:i,droppedLevel:this.hls.currentLevel}),this.hls.autoLevelCapping=i,this.hls.streamController.nextLevelSwitch())}}this.lastTime=d,this.lastDroppedFrames=c,this.lastDecodedFrames=b}}},{key:"checkFPSInterval",value:function(){if(this.video)if(this.isVideoPlaybackQualityAvailable){var a=this.video.getVideoPlaybackQuality();this.checkFPS(this.video,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(this.video,this.video.webkitDecodedFrameCount,this.video.webkitDroppedFrameCount)}}]),b}(l.default);c.default=n},{"../event-handler":21,"../events":22,"../utils/logger":38}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;c64e3||a.width||a.height)}},{key:"onManifestLoaded",value:function(a){var b,c,d=this,e=[],f=[],g={},h=!1,i=!1,k=this.hls,l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),m=function(a,b){return MediaSource.isTypeSupported(a+"/mp4;codecs="+b)};if(a.levels.forEach(function(a){d.isVideoLevel(a)&&(h=!0),l&&a.audioCodec&&-1!==a.audioCodec.indexOf("mp4a.40.34")&&(a.audioCodec=void 0),(a.audioCodec||a.attrs&&a.attrs.AUDIO)&&(i=!0);var b=g[a.bitrate];void 0===b?(g[a.bitrate]=e.length,a.url=[a.url],a.urlId=0,e.push(a)):e[b].url.push(a.url)}),h&&i?e.forEach(function(a){d.isVideoLevel(a)&&f.push(a)}):f=e,f=f.filter(function(a){var b=a.audioCodec,c=a.videoCodec;return(!b||m("audio",b))&&(!c||m("video",c))}),f.length){for(b=f[0].bitrate,f.sort(function(a,b){return a.bitrate-b.bitrate}),this._levels=f,c=0;c=0&&aa&&(this._level===a&&void 0!==b[a].details||this.setLevelInternal(a))}},{key:"manualLevel",get:function(){return this._manualLevel},set:function(a){this._manualLevel=a,void 0===this._startLevel&&(this._startLevel=a),-1!==a&&(this.level=a)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(a){this._firstLevel=a}},{key:"startLevel",get:function(){return void 0===this._startLevel?this._firstLevel:this._startLevel},set:function(a){this._startLevel=a}},{key:"nextLoadLevel",get:function(){return-1!==this._manualLevel?this._manualLevel:this.hls.abrController.nextAutoLevel},set:function(a){this.level=a,-1===this._manualLevel&&(this.hls.abrController.nextAutoLevel=a)}}]),b}(l.default);c.default=q},{"../errors":20,"../event-handler":21,"../events":22,"../helper/level-helper":25,"../utils/logger":38}],7:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:0;if(this.levels){var b=this.media,c=this.lastCurrentTime;if(this.stopLoad(),this.demuxer||(this.demuxer=new j.default(this.hls),this.fragParsing=null),this.timer||(this.timer=setInterval(this.ontick,100)),this.fragPreviousSaved&&(this.fragPrevious=this.fragPreviousSaved,delete this.fragPrevious),this.level=-1,this.fragLoadError=0,b&&c>0){var d=this.hls.loadLevel;u.default.isLive(d,this.levels)&&(this.level=d,this.waitLiveLevel=!0),o.logger.log("configure startPosition @"+c),this.state=-1===this.level?y.IDLE:y.WAITING_LEVEL }else this.lastCurrentTime=this.startPosition?this.startPosition:a,o.logger.log("configure lastCurrentTime @"+this.lastCurrentTime+" start:"+this.startPosition+","+a),this.state=y.STARTING;this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else o.logger.warn("cannot start loading as manifest not parsed yet"),this.state=y.STOPPED}},{key:"onDemuxerQueueEmpty",value:function(){this.fragParsing=null}},{key:"stopLoad",value:function(a){var b=this.fragCurrent;b&&(b.loader&&b.loader.abort(),this.fragCurrent=null),this.fragPreviousSaved=this.fragPrevious||this.fragPreviousSaved,this.fragPrevious=null,this.state===y.PARSING&&this.demuxer&&this.config.enableWorker&&(this.fragParsing=b,this.demuxer.waitQueue()),a&&this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=y.STOPPED}},{key:"tick",value:function(){1===++this.ticks&&(this.doTick(),this.ticks>1&&setTimeout(this.tick,1),this.ticks=0)}},{key:"doTick",value:function(){switch(this.state){case y.STARTING:var a=this.hls,b=a.startLevel;-1===b&&(b=0),this.level=a.nextLoadLevel=b,this.state=y.WAITING_LEVEL,this.loadedmetadata=!1;break;case y.IDLE:if(this.media)this.noMediaCount&&o.logger.log("media is set to "+this.media.src),this.noMediaCount=0;else if(this.noMediaCount++%20==0){var c=this.hls.bufferController.media||{},d=this.hls.bufferController.mediaSource||{};o.logger.log("no media "+c+" src="+c.src+" ms_state="+d.readyState)}if(!this._doTickIdle())return;break;case y.WAITING_LEVEL:var e=this.levels[this.level];e&&e.details&&!this.waitLiveLevel&&(this.state=y.IDLE);break;case y.FRAG_LOADING:try{this.levels[this.level].details.live&&this.fragCurrent.sn=g||this.media&&this.media.seeking)&&(o.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=y.IDLE);break;case y.ERROR:case y.PAUSED:case y.STOPPED:case y.PARSING:case y.PARSED:case y.ENDED:}this._checkBuffer(),this._checkFragmentChanged()}},{key:"_doTickIdle",value:function(){var a=this.hls,b=a.config;if(void 0!==this.levelLastLoaded&&!this.media&&(this.startFragRequested||!b.startFragPrefetch))return!0;var c=this.loadedmetadata?this.media.currentTime:this.nextLoadPosition,d=a.nextLoadLevel,e=void 0;this.levels[d].hasOwnProperty("bitrate")?(e=Math.max(8*b.maxBufferSize/this.levels[d].bitrate,b.maxBufferLength),e=Math.min(e,b.maxMaxBufferLength)):e=b.maxBufferLength;var f=s.default.bufferInfo(this.media,c,b.maxBufferHole),g=f.len;if(g>=e)return!0;o.logger.trace("buffer length of "+g.toFixed(3)+" is below max of "+e.toFixed(3)+". checking for more payload ..."),this.level=a.nextLoadLevel=d;var h=this.levels[d].details;return void 0===h||h.live&&this.levelLastLoaded!==d?(this.state=y.WAITING_LEVEL,!0):this._fetchPayloadOrEos({pos:c,bufferInfo:f,levelDetails:h})}},{key:"_fetchPayloadOrEos",value:function(a){var b=a.pos,c=a.bufferInfo,d=a.levelDetails,e=this.fragPrevious,f=this.level,g=d.fragments,h=g.length;if(0===h)return!1;var i=g[0].start,j=g[h-1].start+g[h-1].duration,k=c.end,l=void 0;if(d.live){if(null===(l=this._ensureFragmentAtLivePoint({levelDetails:d,bufferEnd:k,start:i,end:j,fragPrevious:e,fragments:g,fragLen:h})))return!1}else km&&(j.currentTime=m)}if(b.PTSKnown&&c>e&&j&&j.readyState)return null;if(this.startFragRequested&&!b.PTSKnown){if(f){var n=f.sn+1;n>=b.startSN&&n<=b.endSN&&(k=g[n-b.startSN],o.logger.log("live playlist, switching playlist, load frag with next SN: "+k.sn))}k||(k=g[Math.min(h-1,Math.round(h/2))],o.logger.log("live playlist, switching playlist, unknown, load middle frag : "+k.sn))}return k}},{key:"_findFragment",value:function(a){var b=(a.start,a.fragPrevious),c=a.fragLen,d=a.fragments,e=a.bufferEnd,f=a.end,g=a.levelDetails,h=a.holaSeek,i=this.hls.config,j=void 0,k=void 0,m=i.maxFragLookUpTolerance,n=this.media,p=n&&n.seeking||h;if(ef-m||p)&&(m=0),k=q.default.search(d,function(a){return a.lastGop-me?1:a.firstGop-me?0:a.start+a.duration-a.PTSDTSshift-m<=e?1:a.start-a.PTSDTSshift-m>e&&a.start&&a.sn>g.startSN?-1:0})):k=d[c-1],k&&(j=k,k.start,o.logger.log("find SN matching with pos:"+e+":"+j.sn),b&&j.sn===b.sn))if(j.sni.maxSeekHole&&b.dropped)||n&&s.default.isBuffered(n,e)?(j=d[t+1],o.logger.log("SN just loaded, load next one: "+j.sn)):(j=d[t-1],o.logger.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this"),b.loadCounter--)}else g.live||(this.hls.trigger(l.default.BUFFER_EOS),this.media.seeking||(this.state=y.ENDED)),j=null;return j}},{key:"_loadFragmentOrKey",value:function(a){var b=a.frag,c=a.level,d=a.levelDetails,e=a.pos,f=a.bufferEnd,g=this.hls,h=g.config;if(null==b.decryptdata.uri||null!=b.decryptdata.key){if(o.logger.log("Loading "+b.sn+" of ["+d.startSN+" ,"+d.endSN+"],level "+c+", currentTime:"+e+",bufferEnd:"+f.toFixed(3)),b.autoLevel=g.autoLevelEnabled,this.levels.length>1&&(b.expectedLen=Math.round(b.duration*this.levels[c].bitrate/8),b.trequest=performance.now()),void 0!==this.fragLoadIdx?this.fragLoadIdx++:this.fragLoadIdx=0,b.loadCounter){b.loadCounter++;var i=h.fragLoadingLoopThreshold;if(b.loadCounter>i&&Math.abs(this.fragLoadIdx-b.loadIdx)b.end?1:0})}},{key:"followingBufferRange",value:function(a){return a?this.getBufferRange(a.end+.5):null}},{key:"_checkFragmentChanged",value:function(){var a,b=this.media;b&&!1===b.seeking&&(a=b.currentTime)>b.playbackRate*this.lastCurrentTime&&(this.lastCurrentTime=a)}},{key:"immediateLevelSwitch",value:function(){o.logger.log("immediateLevelSwitch"),this.immediateSwitch||(this.immediateSwitch=!0,this.previouslyPaused=this.media.paused,this.media.pause());var a=this.fragCurrent;a&&a.loader&&a.loader.abort(),this.fragCurrent=null,this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold,this.state=y.PAUSED,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY})}},{key:"immediateLevelSwitchEnd",value:function(){var a=this.media;a&&a.buffered.length&&(this.immediateSwitch=!1,s.default.isBuffered(a,a.currentTime)&&(a.currentTime-=1e-4),this.previouslyPaused||a.play())}},{key:"nextLevelSwitch",value:function(){var a=this.media;if(a&&a.readyState){var b=void 0,c=void 0,d=void 0;if(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold,c=this.getBufferRange(a.currentTime),c&&c.start>1&&(this.state=y.PAUSED,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:c.start-1})),a.paused)b=0;else{var e=this.hls.nextLoadLevel,f=this.levels[e],g=this.fragLastKbps;b=g&&this.fragCurrent?this.fragCurrent.duration*f.bitrate/(1e3*g)+1:0}if((d=this.getBufferRange(a.currentTime+b))&&(d=this.followingBufferRange(d))){var h=this.fragCurrent;h&&h.loader&&h.loader.abort(),this.fragCurrent=null,this.state=y.PAUSED,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:d.start,endOffset:Number.POSITIVE_INFINITY})}}}},{key:"onMediaAttached",value:function(a){var b=this.media=a.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),b.addEventListener("seeking",this.onvseeking),b.addEventListener("seeked",this.onvseeked),b.addEventListener("ended",this.onvended),this.demuxer&&(this.demuxer.destroy(),this.demuxer=new j.default(this.hls),this.fragParsing=null),this.levels&&this.config.autoStartLoad&&this.hls.startLoad()}},{key:"onMediaDetaching",value:function(){var a=this.media;(a&&a.ended||this.state===y.ENDED)&&(o.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var b=this.levels;b&&b.forEach(function(a){a.details&&a.details.fragments.forEach(function(a){a.loadCounter=void 0})}),a&&(a.removeEventListener("seeking",this.onvseeking),a.removeEventListener("seeked",this.onvseeked),a.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=null,this.loadedmetadata=!1,this.stopLoad(),this.fragParsing=null}},{key:"onMediaSeeking",value:function(){var a=this.media.currentTime;o.logger.log("media seeking to "+a);var b=this.fragCurrent;this.state===y.FRAG_LOADING?0===s.default.bufferInfo(this.media,a,0).len&&(o.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),b&&(b.loader&&b.loader.abort(),this.fragCurrent=null),this.fragPrevious=null,this.state=y.IDLE):this.state===y.ENDED?this.state=y.IDLE:this.state===y.PARSING&&b&&!b.loaded&&(o.logger.log("mediaController: no final chunk, switch back to IDLE state"),this.state=y.IDLE),this.media&&(this.lastCurrentTime=a),void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=a,this.fragCurrent&&(this.fragCurrent.start>a||this.fragCurrent.start+this.fragCurrent.durationd){d=b.buffered.start(f);break}x.default.isSafari()&&(d+=.001),o.logger.log("target start position not buffered, seek to buffered.start("+f+") "+d)}o.logger.log("adjust currentTime from "+c+" to "+d),b.currentTime=d}}else{var g=this.hls,h=s.default.bufferInfo(b,c,0),i=!(b.paused||b.ended||0===b.buffered.length),j=c!==this.lastCurrentTime,k=this.config;if(j){if(this.stallReported){var m=Math.round(performance.now()-this.stalled);o.logger.warn("playback not stuck anymore @"+c+", after "+m+"ms"),g.trigger(l.default.BUF_STATISTICS,{bufNotStalled:{ts:c,dur:m,lowBuf:this.stallLowBuf}}),this.stallLowBuf=this.stallReported=!1}this.stalled=void 0,this.nudgeRetry=0}else if(i){var n=performance.now();if(this.stalled){var p=n-this.stalled,q=h.len,r=this.nudgeRetry||0;if(q<=.5&&p>1e3*k.lowBufferWatchdogPeriod){this.stallReported||(this.stallReported=!0,this.stallLowBuf=!0,o.logger.warn("playback stalling in low buffer @"+c),g.trigger(l.default.ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:q}),g.trigger(l.default.BUF_STATISTICS,{bufStalledLow:{ts:c}}));var t=h.nextStart,u=t-c;if(t&&u0){this.nudgeRetry=++r;var w=r*k.nudgeOffset;o.logger.log("adjust currentTime from "+b.currentTime+" to next buffered @ "+t+" + nudge "+w),b.currentTime=t+w,this.stalled=void 0,g.trigger(l.default.ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,hole:t+w-c}),g.trigger(l.default.BUF_STATISTICS,{bufSeekOverHole:{ts:c}})}}else if(q>.5&&p>1e3*k.highBufferWatchdogPeriod)if(this.stallReported&&this.stallLowBuf)this.stalled=void 0;else if(this.stallReported||(this.stallReported=!0,o.logger.warn("playback stalling in high buffer @"+c),g.trigger(l.default.ERROR,{type:v.ErrorTypes.MEDIA_ERROR,details:v.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:q}),g.trigger(l.default.BUF_STATISTICS,{bufStalledHigh:{ts:c}})),this.stalled=void 0,this.nudgeRetry=++r,r=b&&c>-1;c--)a.removeCue(a.cues[c])}},{key:"createTextTrack",value:function(a,b,c){if(this.media)return this.media.addTextTrack(a,b,c)}},{key:"destroy",value:function(){l.default.prototype.destroy.call(this)}},{key:"onMediaAttaching",value:function(a){this.media=a.media}},{key:"onMediaDetaching",value:function(){}},{key:"onManifestLoading",value:function(){this.lastPts=Number.NEGATIVE_INFINITY}},{key:"onLevelSwitch",value:function(){"NONE"===this.hls.currentLevel.closedCaptions?this.enabled=!1:this.enabled=!0}},{key:"onFragLoaded",value:function(a){var b=a.frag.start;b>7))^a]=a;for(b=c=0;!l[b];b^=d||1,c=o[c]||1)for(g=c^c<<1^c<<2^c<<3^c<<4,g=g>>8^255&g^99,l[b]=g,m[g]=b,f=n[e=n[d=n[b]]],i=16843009*f^65537*e^257*d^16843008*b,h=257*n[g]^16843008*g,a=0;a<4;a++)j[a][b]=h=h<<24^h>>>8,k[a][g]=i=i<<24^i>>>8;for(a=0;a<5;a++)j[a]=j[a].slice(0),k[a]=k[a].slice(0)}},{key:"decrypt",value:function(a,b,c,d,e,f){var g,h,i,j,k=this._key[1],l=a^k[0],m=d^k[1],n=c^k[2],o=b^k[3],p=k.length/4-2,q=4,r=this._tables[1],s=r[0],t=r[1],u=r[2],v=r[3],w=r[4];for(j=0;j>>24]^t[m>>16&255]^u[n>>8&255]^v[255&o]^k[q],h=s[m>>>24]^t[n>>16&255]^u[o>>8&255]^v[255&l]^k[q+1],i=s[n>>>24]^t[o>>16&255]^u[l>>8&255]^v[255&m]^k[q+2],o=s[o>>>24]^t[l>>16&255]^u[m>>8&255]^v[255&n]^k[q+3],q+=4,l=g,m=h,n=i;for(j=0;j<4;j++)e[(3&-j)+f]=w[l>>>24]<<24^w[m>>16&255]<<16^w[n>>8&255]<<8^w[255&o]^k[q++],g=l,l=m,m=n,n=o,o=g}}]),a}();c.default=f},{}],10:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c>8|a>>>24}},{key:"doDecrypt",value:function(a,b,c){var d,e,f,h,i,j,k,l,m,n=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2),o=new g.default(Array.prototype.slice.call(b)),p=new Uint8Array(a.byteLength),q=new Int32Array(p.buffer);for(d=~~c[0],e=~~c[1],f=~~c[2],h=~~c[3],m=0;m>>5,(q-=u)>0&&t+u+q<=w);)for(v=C+s*r,x={unit:a.subarray(t+u,t+u+q),pts:v,dts:v},A.samples.push(x),A.len+=q,t+=q+u,s++;t>>6),(h=(60&b[c+2])>>>2)>m.length-1?void a.trigger(Event.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+h}):(j=(1&b[c+2])<<2,j|=(192&b[c+3])>>>6,f.logger.log("manifest codec:"+d+",ADTS data:type:"+e+",sampleingIndex:"+h+"["+m[h]+"Hz],channelConfig:"+j),-1!==l.indexOf("firefox")?h>=6?(e=5,k=new Array(4),i=h-3):(e=2,k=new Array(2),i=h):-1!==l.indexOf("android")?(e=2,k=new Array(2),i=h):(e=5,k=new Array(4),d&&(-1!==d.indexOf("mp4a.40.29")||-1!==d.indexOf("mp4a.40.5"))||!d&&h>=6?i=h-3:((d&&-1!==d.indexOf("mp4a.40.2")&&h>=6&&1===j||!d&&1===j)&&(e=2,k=new Array(2)),i=h)),k[0]=e<<3,k[0]|=(14&h)>>1,k[1]|=(1&h)<<7,k[1]|=j<<3,5===e&&(k[1]|=(14&i)>>1,k[2]=(1&i)<<7,k[2]|=8,k[3]=0),{config:k,samplerate:m[h],channelCount:j,codec:"mp4a.40."+e})}}]),a}();c.default=h},{"../errors":20,"../utils/logger":38}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:null;e(this,a);var f=this;this.hls=b,this.config=this.hls.config||d,this.typeSupported=c,this.timeOffset=0,this.onFragParsingData=function(a,b){"video"!==b.type||b.flush||(f.timeOffset+=b.endDTS-b.startDTS)},this.hls.on(h.default.FRAG_PARSING_DATA,this.onFragParsingData)}return f(a,[{key:"destroy",value:function(){var a=this.demuxer;a&&a.destroy(),this.hls.off(h.default.FRAG_PARSING_DATA,this.onFragParsingData)}},{key:"push",value:function(a,b,c,d,e,f,g,j,l,n,p,r){var s=this.demuxer;if(!s){var t=this.hls;if(m.default.probe(a))s=!0===this.typeSupported.mp2t?new m.default(t,q.default,this.config,this.typeSupported):new m.default(t,o.default,this.config,this.typeSupported);else{if(!k.default.probe(a)){var u=void 0,v=a.length,w="len:"+v+" [";for(u=0,v=Math.min(v,10);u=564&&(w+=" [0]=="+a[0]+" [188]=="+a[188]+" [2*188]=="+a[376]),void t.trigger(h.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found "+w})}s=new k.default(t,o.default,this.config,this.typeSupported)}this.demuxer=s}n&&(this.timeOffset=d),s.push(a,b,c,this.timeOffset,e,f,g,j,l,n,p,r)}}]),a}();c.default=r},{"../demux/aacdemuxer":12,"../demux/tsdemuxer":19,"../errors":20,"../events":22,"../remux/mp4-remuxer":31,"../remux/passthrough-remuxer":32}],15:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("../demux/demuxer-inline"),f=d(e),g=a("../events"),h=d(g),i=a("events"),j=d(i),k=function(a){var b=new j.default;b.trigger=function(a){for(var c=arguments.length,d=Array(c>1?c-1:0),e=1;e1?c-1:0),e=1;e0&&null!=i&&null!=i.key&&"AES-128"===i.method){null==this.decrypter&&(this.decrypter=new o.default(this.hls));var t=this;this.decrypter.decrypt(a,i.key,a.first&&i.iv,function(i){t.pushDecrypted(i,b,c,d,e,f,g,h,j,!!a.first,!!a.final,k)})}else this.pushDecrypted(a,b,c,d,e,f,g,h,j,!!a.first,!!a.final,k)}},{key:"onWorkerMessage",value:function(a){var b=a.data;switch(b.event){case h.default.FRAG_PARSING_INIT_SEGMENT:var c={};c.tracks=b.tracks,c.unique=b.unique,this.hls.trigger(h.default.FRAG_PARSING_INIT_SEGMENT,c);break;case h.default.FRAG_PARSING_DATA:this.hls.trigger(h.default.FRAG_PARSING_DATA,{data1:new Uint8Array(b.data1),data2:new Uint8Array(b.data2),startPTS:b.startPTS,endPTS:b.endPTS,startDTS:b.startDTS,endDTS:b.endDTS,type:b.type,nb:b.nb,dropped:b.dropped,deltaPTS:b.deltaPTS});break;case h.default.FRAG_PARSING_METADATA:this.hls.trigger(h.default.FRAG_PARSING_METADATA,{samples:b.samples});break;case h.default.FRAG_PARSING_USERDATA:this.hls.trigger(h.default.FRAG_PARSING_USERDATA,{samples:b.samples});break;default:this.hls.trigger(b.event,b.data)}}},{key:"waitQueue",value:function(){this.w&&this.w.postMessage({cmd:"empty"})}}]),b}();c.default=p},{"../crypt/decrypter":11,"../demux/demuxer-inline":14,"../demux/demuxer-worker":15,"../events":22,"../utils/logger":38,webworkify:44}],17:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c>3)}},{key:"loadWord",value:function(){var a=this.data.byteLength-this.bytesAvailable,b=new Uint8Array(4),c=Math.min(4,this.bytesAvailable);if(0===c)throw new Error("no bytes available");b.set(this.data.subarray(a,a+c)),this.word=new DataView(b.buffer).getUint32(0),this.bitsAvailable=8*c,this.bytesAvailable-=c}},{key:"skipBits",value:function(a){var b;this.bitsAvailable>a?(this.word<<=a,this.bitsAvailable-=a):(a-=this.bitsAvailable,b=a>>3,a-=b>>3,this.bytesAvailable-=b,this.loadWord(),this.word<<=a,this.bitsAvailable-=a)}},{key:"readBits",value:function(a){var b=Math.min(this.bitsAvailable,a),c=this.word>>>32-b;return a>32&&f.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=b,this.bitsAvailable>0?this.word<<=b:this.bytesAvailable>0&&this.loadWord(),b=a-b,b>0&&this.bitsAvailable?c<>>a))return this.word<<=a,this.bitsAvailable-=a,a;return this.loadWord(),a+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var a=this.skipLZ();return this.readBits(a+1)-1}},{key:"readEG",value:function(){var a=this.readUEG();return 1&a?1+a>>>1:-1*(a>>>1)}},{key:"readBoolean",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(a){var b,c,d=8,e=8;for(b=0;b>4>1){if((v=q+5+a[q+4])===q+188)continue}else v=q+4;switch(s){case D:if(r){if((p=this._parsePES(w))&&(this._parseAVCPES(p),A&&this._avcTrack.codec&&(-1===E||this._aacTrack.codec)))return void this.remux(a);this.lastAVCFrameStart=q,w=this._clearAvcData(q)}w.data.push(a.subarray(v,q+188)),w.size+=q+188-v;break;case E:if(r){if((p=this._parsePES(x))&&(this._aacTrack.isAAC?this._parseAACPES(p):this._parseMPEGPES(p),A&&this._aacTrack.codec&&(-1===D||this._avcTrack.codec)))return void this.remux(a);x=this._clearAacData()}x.data.push(a.subarray(v,q+188)),x.size+=q+188-v;break;case F:r&&((p=this._parsePES(y))&&this._parseID3PES(p),y=this._clearID3Data()),y.data.push(a.subarray(v,q+188)),y.size+=q+188-v;break;case 0:r&&(v+=a[v]+1),this._parsePAT(a,v);break;case this._pmtId:r&&(v+=a[v]+1),this._parsePMT(a,v,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3),D=this._avcTrack.id,E=this._aacTrack.id,F=this._id3Track.id,B&&!this.pmtParsed&&(m.logger.log("reparse from beginning"),B=!1,q=-188),this.pmtParsed=!0;break;case 17:case 8191:break;default:B=!0}}else{if(0===u){var G=void 0,H=a.length;for(t="len:"+H+" [",G=0,H=Math.min(H,10);Gthis.fragStartAVCPos&&(this.fragStartPts=this._avcTrack.samples[this.fragStartAVCPos].pts,this.fragStartDts=this._avcTrack.samples[this.fragStartAVCPos].dts),void 0===this.gopStartDTS&&this._avcTrack.samples.length&&(this.gopStartDTS=this._avcTrack.samples[0].dts),this.remux(null,l,l&&g===o,!0),l&&this.observer.trigger(j.default.FRAG_STATISTICS,this.fragStats)}},{key:"_recalcTrack",value:function(a){a.hasOwnProperty("nbNalu")&&(a.nbNalu=0),a.len=0;for(var b=0;b90&&(s-=(q-this.nextAvcDts)/p),o.length+this.remuxAVCCount>this.fragStartAVCPos+1&&void 0!==this.fragStartDts){var u=this.remuxer._PTSNormalize(this.fragStartDts,this.nextAvcDts);t+=(this.remuxer._PTSNormalize(r.dts,this.nextAvcDts)-u)/(o.length+this.remuxAVCCount-this.fragStartAVCPos-1)/p}if(f=s,g=t,this._aacTrack.audiosamplerate){var v=1024/this._aacTrack.audiosamplerate,w=this._aacTrack.samples.length,x=(void 0!==this.lastContiguous&&this.lastContiguous||this.contiguous&&this.remuxAACCount)&&this.remuxer.nextAacPts?this.remuxer.nextAacPts/p:this.accurate?this.timeOffset:f;f=Math.max(f,x+(this.fragStartAACPos-this.remuxAACCount)*v),w&&(g=Math.min(g,x+v*w));var y=void 0;(y=g-f+s-t)>.2&&(this.fragStats.AVUnsync=y)}}if(!c){for(e=o.length-1;e>0;e--)if(o[e].key){e&&(o[e-1].dts-i)/p0&&(k=o.slice(e),this._avcTrack.samples=o.slice(0,e),h=this._avcTrack.samples[e-1].dts,this._recalcTrack(this._avcTrack),this._filterSamples(this._aacTrack,h,l),this._filterSamples(this._id3Track,h,m),this._filterSamples(this._txtTrack,h,n))}if(((c||b&&!this.remuxAVCCount)&&this._avcTrack.samples.length+this._aacTrack.samples.length||e>0)&&(this.remuxAVCCount+=this._avcTrack.samples.length,this.remuxAACCount+=this._aacTrack.samples.length,this.remuxer.remux(this._aacTrack,this._avcTrack,this._id3Track,this._txtTrack,c&&this.nextStartPts?this.nextStartPts:this.timeOffset,c&&!d||(void 0!==this.lastContiguous?this.lastContiguous:this.contiguous),this.accurate,a,c,this.fragStats),this.lastContiguous=void 0,this.nextStartPts=this.remuxer.endPTS,this._avcTrack.samples=k,this._aacTrack.samples=l,this._id3Track.samples=m,this._txtTrack.samples=n,this._recalcTrack(this._avcTrack),this._recalcTrack(this._aacTrack),this._recalcTrack(this._id3Track),this._recalcTrack(this._txtTrack)),b){var z=Math.min(this.remuxer.nextAvcDts,this.remuxer.nextAacPts)/p;this.observer.trigger(j.default.FRAG_PARSED,{startPTS:f,endPTS:g,PTSDTSshift:this.fragStats.PTSDTSshift,lastGopPTS:z})}}},{key:"destroy",value:function(){this.switchLevel(),this._initPTS=this._initDTS=void 0,this._duration=0}},{key:"_parsePAT",value:function(a,b){this._pmtId=(31&a[b+10])<<8|a[b+11],this.fragStats.keymap.pmtId=this._pmtId}},{key:"_parsePMT",value:function(a,b,c){var d,e,f,g;for(d=(15&a[b+1])<<8|a[b+2],e=b+3+d-4,f=(15&a[b+10])<<8|a[b+11],b+=12+f;b1;){var l=new Uint8Array(k[0].length+k[1].length);l.set(k[0]),l.set(k[1],k[0].length),k[0]=l,k.splice(1,1)}if(b=k[0],1===(b[0]<<16)+(b[1]<<8)+b[2]){if((d=(b[4]<<8)+b[5])&&d>a.size-6)return null;for(c=b[7],192&c&&(g=536870912*(14&b[9])+4194304*(255&b[10])+16384*(254&b[11])+128*(255&b[12])+(254&b[13])/2,g>4294967295&&(g-=8589934592),64&c?(h=536870912*(14&b[14])+4194304*(255&b[15])+16384*(254&b[16])+128*(255&b[17])+(254&b[18])/2,h>4294967295&&(h-=8589934592),g-h>54e5&&(m.logger.warn(Math.round((g-h)/9e4)+"s delta between PTS and DTS, align them"),g=h)):h=g),e=b[8],i=e+9,a.size-=i,f=new Uint8Array(a.size);k.length;){b=k.shift();var n=b.byteLength;if(i){if(i>n){i-=n;continue}b=b.subarray(i),n-=i,i=0}f.set(b,j),j+=n}return d&&(d-=e+3),{data:f,pts:g,dts:h,len:d}}return null}},{key:"_parseAVCPES",value:function(a){var b,c,d,e,f=this,g=this._avcTrack,h=g.samples,i=this._parseAVCNALu(a.data),j=[],k=!1,n=0,o=this.config;if(0===i.length&&h.length>0){var p=h[h.length-1],q=p.units.units[p.units.units.length-1],r=new Uint8Array(q.data.byteLength+a.data.byteLength);r.set(q.data,0),r.set(a.data,q.data.byteLength),q.data=r,p.units.length+=a.data.byteLength,g.len+=a.data.byteLength}a.data=null;var s="";i.forEach(function(c){switch(c.type){case 1:d=!0;var h=c.data;if(h.length>4){var i=new l.default(h).readSliceType();2!==i&&4!==i&&7!==i&&9!==i||(k=!0,f.fragStats.keymap.indr.push(f.lastAVCFrameStart))}break;case 5:d=!0,k=!0,f.fragStats.keymap.idr.push(f.lastAVCFrameStart);break;case 6:d=!0,b=new l.default(f.discardEPB(c.data)),b.readUByte();for(var m=0,p=0,q=!1,r=0;!q&&b.wholeBytesAvailable()>1;){m=0;do{r=b.readUByte(),m+=r}while(255===r);p=0;do{r=b.readUByte(),p+=r}while(255===r);if(o.disableSEIkeyframes||6!==m||(k=!0,f.fragStats.keymap.sei.push(f.lastAVCFrameStart)),4===m&&0!==b.wholeBytesAvailable()){q=!0;if(181===b.readUByte()){if(49===b.readUShort()){if(1195456820===b.readUInt()){if(3===b.readUByte()){var t=b.readUByte(),u=b.readUByte(),v=31&t,w=[t,u];for(e=0;e0){if(b.pts>=a[c-1].pts)a.push(b);else for(var d=c-1;d>=0;d--)if(b.pts1&&(m.logger.log("AAC: align PTS for overlapping frames by "+Math.round((y-q)/90)),q=y)}for(;f+5>>5,(c-=g)>0&&f+g+c<=k);)for(i=q+e*d,l={unit:p.subarray(f+g,f+g+c),pts:i,dts:i},o.samples.push(l),o.len+=c,f+=c+g,e++;f0;)g+=b}},{key:"_onMpegFrame",value:function(a,b,c,d,e,f){var g=1152/c*1e3,h=f+e*g,i=this._aacTrack;i.config=[],i.channelCount=d,i.audiosamplerate=c,i.duration=this._duration,i.samples.push({unit:a,pts:h,dts:h}),i.len+=a.length}},{key:"_onMpegNoise",value:function(a){m.logger.warn("mpeg audio has noise: "+a.length+" bytes")}},{key:"_parseMpeg",value:function(a,b,c,d,e){var f=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],g=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3];if(b+2>c)return-1;if(255===a[b]||224==(224&a[b+1])){if(b+24>c)return-1;var h=a[b+1]>>3&3,i=a[b+1]>>1&3,j=a[b+2]>>4&15,k=a[b+2]>>2&3,l=!!(2&a[b+2]);if(1!==h&&0!==j&&15!==j&&3!==k){var m=3===h?3-i:3===i?3:4,n=1e3*f[14*m+j-1],o=3===h?0:2===h?1:2,p=g[3*o+k],q=l?1:0,r=a[b+3]>>6==3?1:2,s=3===i?(3===h?12:6)*n/p+q<<2:(3===h?144:72)*n/p+q|0;return b+s>c?-1:(this._onMpegFrame&&this._onMpegFrame(a.subarray(b,b+s),n,p,r,d,e),s)}}for(var t=b+2;t=564&&71===a[0]&&71===a[188]&&71===a[376]}}]),a}();c.default=o},{"../errors":20,"../events":22,"../utils/logger":38,"../utils/polyfill":39,"./adts":13,"./exp-golomb":17}],20:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.ErrorTypes={NETWORK_ERROR:"networkError",MEDIA_ERROR:"mediaError",OTHER_ERROR:"otherError"},c.ErrorDetails={MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"manifestIncompatibleCodecsError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOOP_LOADING_ERROR:"fragLoopLoadingError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_ADD_CODEC_ERROR:"bufferAddCodecError",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError",BUFFER_STALLED_ERROR:"bufferStalledError",BUFFER_FULL_ERROR:"bufferFullError",BUFFER_SEEK_OVER_HOLE:"bufferSeekOverHole",BUFFER_NUDGE_ON_STALL:"bufferNudgeOnStall",INTERNAL_EXCEPTION:"internalException"}},{}],21:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=function(){function a(a,b){for(var c=0;c1?c-1:0),f=1;f=c.start(d)&&b<=c.end(d))return!0;return!1}},{key:"bufferInfo",value:function(a,b,c){if(a){var d,e=a.buffered,f=[];for(d=0;dk&&(i[j-1].end=a[h].end):i.push(a[h])}else i.push(a[h])}for(h=0,d=0,e=f=b;h=l&&b=e}},{key:"probeDetails",value:function(a,b){function c(a){for(var b=0,c=0,d=0;d=d)return{start:d,end:e,delta:f};var g=c(a),h=c(b);if(g&&h&&g.start<=h.start&&g.end>=h.start){d=f=0,e=Math.min(b.fragments.length,a.fragments.length)-1;for(var i=g.start;h.start-i>100;)i+=1e3*a.fragments[f++].duration,e--;return{start:d,end:e,delta:f}}return{start:1,end:0,delta:0}}},{key:"mergeDetails",value:function(b,c){var d,e=b.fragments,g=c.fragments,h=0,i=a.probeDetails(b,c),j=i.start,k=i.end,l=i.delta;if(k=0&&lb.endSN)return 0;h=c-b.startSN,i=b.fragments,j=i[h],isNaN(j.startPTS)||(d=Math.min(d,j.startPTS),e=Math.max(e,j.endPTS));var l=d-j.start;for(j.start=j.startPTS=d,j.endPTS=e,j.duration=e-d,j.PTSDTSshift=f||0,g&&(j.lastGop=g),k=h;k>0;k--)a.updatePTS(i,k,k-1);for(k=h;kb?d.start+d.duration:d.start-e.duration:c>b?(d.duration=g-d.start,d.duration<0&&f.logger.warn("negative duration computed for frag "+d.sn+",level "+d.level+", there should be some duration drift between playlist and fragment!")):(e.duration=d.start-g,e.duration<0&&f.logger.warn("negative duration computed for frag "+e.sn+",level "+e.level+", there should be some duration drift between playlist and fragment!")),c>b&&(e.PTSDTSshift||(e.PTSDTSshift=d.PTSDTSshift||0),d.lastGop&&(e.firstGop=d.lastGop))}}]),a}();c.default=g},{"../utils/logger":38}],26:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{};e(this,a);var c=a.DefaultConfig;if((b.liveSyncDurationCount||b.liveMaxLatencyDurationCount)&&(b.liveSyncDuration||b.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");for(var d in c)d in b||(b[d]=c[d]);if(void 0!==b.liveMaxLatencyDurationCount&&b.liveMaxLatencyDurationCount<=b.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==b.liveMaxLatencyDuration&&(b.liveMaxLatencyDuration<=b.liveSyncDuration||void 0===b.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');(0,B.enableLogs)(b.debug,this),this.config=b;var f=this.observer=new F.default;f.trigger=function(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d1?b-1:0),d=1;d0&&void 0!==arguments[0]?arguments[0]:0;B.logger.log("startLoad("+a+")"),this.levelController.startLoad(),this.streamController.startLoad(a)}},{key:"stopLoad",value:function(a){B.logger.log("stopLoad"),this.levelController.stopLoad(),this.streamController.stopLoad(a)}},{key:"clearLevelDetails",value:function(){B.logger.log("clearing level details"),this.levelController.clearLevelDetails()}},{key:"swapAudioCodec",value:function(){B.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){B.logger.log("recoverMediaError");var a=this.media;this.detachMedia(),this.attachMedia(a)}},{key:"setLogs",value:function(a){(0,B.enableLogs)(a,this)}},{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(a){B.logger.log("set currentLevel:"+a),this.loadLevel=a,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(a){B.logger.log("set nextLevel:"+a),this.levelController.manualLevel=a,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(a){B.logger.log("set loadLevel:"+a),this.levelController.manualLevel=a}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(a){this.levelController.nextLoadLevel=a}},{key:"firstLevel",get:function(){return this.levelController.firstLevel},set:function(a){B.logger.log("set firstLevel:"+a),this.levelController.firstLevel=a}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(a){B.logger.log("set startLevel:"+a),this.levelController.startLevel=a}},{key:"autoLevelCapping",get:function(){return this.abrController.autoLevelCapping},set:function(a){B.logger.log("set autoLevelCapping:"+a),this.abrController.autoLevelCapping=a}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}}]),a}();K.api=new F.default,K.api.players=[],c.default=K},{"./controller/abr-controller":2,"./controller/buffer-controller":3,"./controller/cap-level-controller":4,"./controller/fps-controller":5,"./controller/level-controller":6,"./controller/stream-controller":7,"./controller/timeline-controller":8,"./errors":20,"./events":22,"./loader/fragment-loader":27,"./loader/key-loader":28,"./loader/playlist-loader":29,"./utils/cues":37,"./utils/logger":38,"./utils/xhr-loader":41,events:43}],27:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;c>8*(15-c)&255;return b}},{key:"fragmentDecryptdataFromLevelkey",value:function(a,b){var c=a;return a&&a.method&&a.uri&&!a.iv&&(c=this.cloneObj(a),c.iv=this.createInitializationVector(b)),c}},{key:"avc1toavcoti",value:function(a){var b,c=a.split(".");return c.length>2?(b=c.shift()+".",b+=parseInt(c.shift()).toString(16),b+=("000"+parseInt(c.shift()).toString(16)).substr(-4)):b=a,b}},{key:"cloneObj",value:function(a){return JSON.parse(JSON.stringify(a))}},{key:"parseLevelPlaylist",value:function(a,b,c){var d,e,f,g,h,i=0,j=0,k={url:b,fragments:[],live:!0,startSN:0},l={method:null,key:null,iv:null,uri:null},m=0,n=null,o=null,p=[];for(f=/(?:#EXT-X-(MEDIA-SEQUENCE):(\d+))|(?:#EXT-X-(TARGETDURATION):(\d+))|(?:#EXT-X-(KEY):(.*)[\r\n]+([^#|\r\n]+)?)|(?:#EXT(INF):([\d\.]+)[^\r\n]*([\r\n]+[^#|\r\n]+)?)|(?:#EXT-X-(BYTERANGE):([\d]+[@[\d]*)]*[\r\n]+([^#|\r\n]+)?|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(PROGRAM-DATE-TIME):(.*))|(?:#EXT-X-(VERSION):(.*))|(?:#(.*):(.*))|(?:#(.*))/g;null!==(e=f.exec(a));)switch(e.shift(), e=e.filter(function(a){return void 0!==a}),e[0]){case"MEDIA-SEQUENCE":i=k.startSN=parseInt(e[1]);break;case"TARGETDURATION":k.targetduration=parseFloat(e[1]);break;case"VERSION":case"EXTM3U":break;case"ENDLIST":k.live=!1;break;case"DIS":m++,p.push(e.map(function(a){return(" "+a).slice(1)}));break;case"BYTERANGE":var r=e[1].split("@");h=1===r.length?g:parseInt(r[1]),g=parseInt(r[0])+h,o&&!o.url&&(o.byteRangeStartOffset=h,o.byteRangeEndOffset=g,o.url=this.resolve(e[2],b),p.push(e.map(function(a){return(" "+a).slice(1)})));break;case"INF":var s=parseFloat(e[1]);if(!isNaN(s)){var t=i++;d=this.fragmentDecryptdataFromLevelkey(l,t);var u=e[2]?this.resolve(e[2],b):null;p.push(e.map(function(a){return(" "+a).slice(1)})),o={url:u,duration:s,start:j,sn:t,level:c,cc:m,byteRangeStartOffset:h,byteRangeEndOffset:g,decryptdata:d,programDateTime:n,tagList:p,PTSDTSshift:0},k.fragments.push(o),j+=s,h=null,n=null,p=[]}break;case"KEY":var v=e[1],w=new q.default(v),x=w.enumeratedString("METHOD"),y=w.URI,z=w.hexadecimalInteger("IV");x&&(l={method:null,key:null,iv:null,uri:null},y&&"AES-128"===x&&(l.method=x,l.uri=this.resolve(y,b),l.key=null,l.iv=z)),o&&!o.url&&e.length>=3&&(o.url=this.resolve(e[2],b),d=this.fragmentDecryptdataFromLevelkey(l,i-1),o.decryptdata=d,p.push(e.map(function(a){return(" "+a).slice(1)})));break;case"PROGRAM-DATE-TIME":n=new Date(Date.parse(e[1])),p.push(e.map(function(a){return(" "+a).slice(1)}));break;default:p.push(e.map(function(a){return(" "+a).slice(1)}))}return o&&!o.url&&(k.fragments.pop(),j-=o.duration),k.totalduration=j,k.averagetargetduration=j/k.fragments.length,k.endSN=i-1,k}},{key:"loadsuccess",value:function(a,b){var c,d=a.currentTarget,e=d.responseText,f=d.responseURL,g=this.id,h=this.id2,i=this.hls;if(this.loading=!1,void 0!==f&&0!==f.indexOf("data:")||(f=this.url),b.tload=performance.now(),b.mtime=new Date(d.getResponseHeader("Last-Modified")),0===e.indexOf("#EXTM3U"))if(e.indexOf("#EXTINF:")>0)if(null===this.id)i.trigger(j.default.MANIFEST_LOADED,{levels:[{url:f}],url:f,stats:b});else{var k=this.parseLevelPlaylist(e,f,g);b.tparsed=performance.now(),i.trigger(j.default.LEVEL_LOADED,{details:k,level:g,id:h,stats:b})}else c=this.parseMasterPlaylist(e,f),c.length?i.trigger(j.default.MANIFEST_LOADED,{levels:c,url:f,stats:b}):i.trigger(j.default.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:f,reason:"no level found in manifest"});else i.trigger(j.default.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:f,reason:"no EXTM3U delimiter"})}},{key:"loaderror",value:function(a){var b,c;null===this.id?(b=m.ErrorDetails.MANIFEST_LOAD_ERROR,c=!0):(b=m.ErrorDetails.LEVEL_LOAD_ERROR,c=!1),this.loader&&this.loader.abort(),this.loading=!1,this.hls.trigger(j.default.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:b,fatal:c,url:this.url,loader:this.loader,response:a.currentTarget,level:this.id,id:this.id2})}},{key:"loadtimeout",value:function(){var a,b;null===this.id?(a=m.ErrorDetails.MANIFEST_LOAD_TIMEOUT,b=!0):(a=m.ErrorDetails.LEVEL_LOAD_TIMEOUT,b=!1),this.loader&&this.loader.abort(),this.loading=!1,this.hls.trigger(j.default.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:a,fatal:b,url:this.url,loader:this.loader,level:this.id,id:this.id2})}}]),b}(l.default);c.default=r},{"../errors":20,"../event-handler":21,"../events":22,"../utils/attr-list":33,"../utils/url":40}],30:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c>24&255,b[1]=d>>16&255,b[2]=d>>8&255,b[3]=255&d,b.set(a,4),e=0,d=8;e>24&255,b>>16&255,b>>8&255,255&b,c>>24,c>>16&255,c>>8&255,255&c,85,196,0,0]))}},{key:"mdia",value:function(b){return a.box(a.types.mdia,a.mdhd(b.timescale,b.duration),a.hdlr(b.type),a.minf(b))}},{key:"mfhd",value:function(b){return a.box(a.types.mfhd,new Uint8Array([0,0,0,0,b>>24,b>>16&255,b>>8&255,255&b]))}},{key:"minf",value:function(b){return"audio"===b.type?a.box(a.types.minf,a.box(a.types.smhd,a.SMHD),a.DINF,a.stbl(b)):a.box(a.types.minf,a.box(a.types.vmhd,a.VMHD),a.DINF,a.stbl(b))}},{key:"moof",value:function(b,c,d){return a.box(a.types.moof,a.mfhd(b),a.traf(d,c))}},{key:"moov",value:function(b){for(var c=b.length,d=[];c--;)d[c]=a.trak(b[c]);return a.box.apply(null,[a.types.moov,a.mvhd(b[0].timescale,b[0].duration)].concat(d).concat(a.mvex(b)))}},{key:"mvex",value:function(b){for(var c=b.length,d=[];c--;)d[c]=a.trex(b[c]);return a.box.apply(null,[a.types.mvex].concat(d))}},{key:"mvhd",value:function(b,c){c*=b;var d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,b>>24&255,b>>16&255,b>>8&255,255&b,c>>24&255,c>>16&255,c>>8&255,255&c,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return a.box(a.types.mvhd,d)}},{key:"sdtp",value:function(b){var c,d,e=b.samples||[],f=new Uint8Array(4+e.length);for(d=0;d>>8&255),f.push(255&e),f=f.concat(Array.prototype.slice.call(d));for(c=0;c>>8&255),g.push(255&e),g=g.concat(Array.prototype.slice.call(d));var h=a.box(a.types.avcC,new Uint8Array([1,f[3],f[4],f[5],255,224|b.sps.length].concat(f).concat([b.pps.length]).concat(g))),i=b.width,j=b.height;return a.box(a.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>8&255,255&i,j>>8&255,255&j,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h,a.box(a.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))}},{key:"esds",value:function(a){var b=a.config.length;return new Uint8Array([0,0,0,0,3,23+b,0,1,0,4,15+b,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([b]).concat(a.config).concat([6,1,2]))}},{key:"mp4a",value:function(b){var c=b.audiosamplerate;return a.box(a.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,c>>8&255,255&c,0,0]),a.box(a.types.esds,a.esds(b)))}},{key:"mp3",value:function(b){var c=b.audiosamplerate;return a.box(a.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,b.channelCount,0,16,0,0,0,0,c>>8&255,255&c,0,0]))}},{key:"stsd",value:function(b){return"audio"===b.type?b.isAAC||"mp3"!==b.codec?a.box(a.types.stsd,a.STSD,a.mp4a(b)):a.box(a.types.stsd,a.STSD,a.mp3(b)):a.box(a.types.stsd,a.STSD,a.avc1(b))}},{key:"tkhd",value:function(b){var c=b.id,d=b.duration*b.timescale,e=b.width,f=b.height;return a.box(a.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,c>>24&255,c>>16&255,c>>8&255,255&c,0,0,0,0,d>>24,d>>16&255,d>>8&255,255&d,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,e>>8&255,255&e,0,0,f>>8&255,255&f,0,0]))}},{key:"traf",value:function(b,c){var d=a.sdtp(b),e=b.id,g=Math.floor(c/(f+1)),h=Math.floor(c%(f+1));return a.box(a.types.traf,a.box(a.types.tfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e])),a.box(a.types.tfdt,new Uint8Array([1,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,255&g,h>>>24&255,h>>>16&255,h>>>8&255,255&h])),a.trun(b,d.length+16+20+8+16+8+8),d)}},{key:"trak",value:function(b){return b.duration=b.duration||4294967295,a.box(a.types.trak,a.tkhd(b),a.mdia(b))}},{key:"trex",value:function(b){var c=b.id;return a.box(a.types.trex,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,255&c,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(b,c){var d,e,f,g,h,i,j=b.samples||[],k=j.length,l=12+16*k,m=new Uint8Array(l);for(c+=8+l,m.set([0,0,15,1,k>>>24&255,k>>>16&255,k>>>8&255,255&k,c>>>24&255,c>>>16&255,c>>>8&255,255&c],0),d=0;d>>24&255,f>>>16&255,f>>>8&255,255&f,g>>>24&255,g>>>16&255,g>>>8&255,255&g,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,61440&h.degradPrio,15&h.degradPrio,i>>>24&255,i>>>16&255,i>>>8&255,255&i],12+16*d);return a.box(a.types.trun,m)}},{key:"initSegment",value:function(b){a.types||a.init();var c,d=a.moov(b);return c=new Uint8Array(a.FTYP.byteLength+d.byteLength),c.set(a.FTYP),c.set(d,a.FTYP.byteLength),c}}]),a}();c.default=g},{}],31:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;cMath.pow(2,32)){a.timescale=a.audiosamplerate/function a(b,c){return c?a(c,b%c):b}(a.audiosamplerate,a.isAAC?1024:1152)}k.logger.log("audio mp4 timescale :"+a.timescale);var q="audio/mp4";a.isAAC||(this.typeSupported.mpeg?(q="audio/mpeg",a.codec=""):!0===this.typeSupported.mp3&&(a.codec="mp3")),l.audio={container:q,codec:a.codec,initSegment:!a.isAAC&&this.typeSupported.mpeg?new Uint8Array:m.default.initSegment([a]),metadata:{channelCount:a.channelCount}},p&&(d=e=g[0].pts-i*c)}b.sps&&b.pps&&h.length&&(b.timescale=this.MP4_TIMESCALE,l.video={container:"video/mp4",codec:b.codec,initSegment:m.default.initSegment([b]),metadata:{width:b.width,height:b.height}},p&&(d=Math.min(d,h[0].pts-i*c),e=Math.min(e,h[0].dts-i*c))),Object.keys(l).length?(f.trigger(j.default.FRAG_PARSING_INIT_SEGMENT,o),this.ISGenerated=!0,p&&(this._initPTS=d,this._initDTS=e)):f.trigger(j.default.ERROR,{type:n.ErrorTypes.MEDIA_ERROR,details:n.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})}},{key:"remuxVideo",value:function(a,b,c,d,e,f,g){var h,i,l,n,o,q,r,s=8,t=this.PES_TIMESCALE,u=this.PES2MP4SCALEFACTOR,v=a.samples,w=[],x=v.reduce(function(a,b){return Math.max(Math.min(a,b.pts-b.dts),-18e3)},0);if(x<0){k.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Math.round(x/90)+" ms to overcome this issue");for(var y=0;y0?"hole":"overlapping")+" between fragments detected"),o=z,v[0].dts=o+this._initDTS,n=Math.max(n-90*B,z),v[0].pts=n+this._initDTS,k.logger.log("Video/PTS/DTS adjusted: "+n+"/"+o+",delta:"+B),g.videoGap=g.videoGap||[],g.videoGap.push(B)),A=v[v.length-1],r=Math.max(this._PTSNormalize(A.dts-this._initDTS,z),0),q=Math.max(this._PTSNormalize(A.pts-this._initDTS,z),0),q=Math.max(q,r),p.default.isSafari()&&(h=Math.round((r-o)/(u*(v.length-1))));for(var C=0;C0?F-1:F].dts;if(K.stretchShortVideoTrack){var M=K.maxBufferHole,N=K.maxSeekHole,O=Math.floor(Math.min(M,N)*t),P=(d?n+d*t:this.nextAacPts)-G.pts;P>O?(h=P-L,h<0&&(h=L),k.logger.log("It is approximately "+P/90+" ms to the next segment; using duration "+h/90+" ms for the last video frame.")):h=L}else h=L}h/=u,I=Math.round((G.pts-G.dts)/u)}w.push({size:H,duration:h,cts:I,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:G.key?2:1,isNonSync:G.key?0:1}}),g.videoDurAvg+=h/v.length,g.videoDurStd+=h*h/v.length,g.cttsError+=I-Math.floor(I/h)*h}if(g.videoDurStd=Math.sqrt(g.videoDurStd-g.videoDurAvg*g.videoDurAvg),this.nextAvcDts=r+h*u,a.len=0,a.nbNalu=0,w.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var Q=w[0].flags;Q.dependsOn=2,Q.isNonSync=0}a.samples=w,l=m.default.moof(a.sequenceNumber++,o/u,a),a.samples=[];var R={data1:l,data2:i,startPTS:n/t,endPTS:(q+u*h)/t,startDTS:o/t,endDTS:this.nextAvcDts/t,type:"video",flush:f,nb:w.length,dropped:g.dropped};return R.deltaPTS=Math.abs(R.startPTS-e),this.observer.trigger(j.default.FRAG_PARSING_DATA,R),R}},{key:"remuxAudio",value:function(a,b,c,d,e){var f,g,i,l,n,o,p,q,r,s,t,u,v,w,x,y=this.PES_TIMESCALE,z=a.timescale,A=y/z,B=a.isAAC?1024:1152,C=a.timescale*B/a.audiosamplerate,D=!a.isAAC&&this.typeSupported.mpeg,E=D?0:8,F=[],G=a.samples;c|=G.length&&this.nextAacPts&&Math.abs(b-this.nextAacPts/y)<.1;for(var H=c&&void 0!==this.nextAacPts?this.nextAacPts:b*y,I=C*A,J=H,K=0;KI/2&&(e.audioGap=e.audioGap||[],e.audioGap.push(O/90)),O<-I)k.logger.log("Dropping frame due to "+Math.abs(O/90)+" ms overlap."),G.splice(L,1),a.len-=M.unit.length;else if(O>I){var P=Math.round(O/I);k.logger.log("Injecting "+P+" frame"+(P>1?"s":"")+" of missing audio due to "+Math.round(O/90)+" ms gap.");for(var Q=0;Q0)S=Math.round((u-H)/I),k.logger.log(R+" ms hole between AAC samples detected,filling it"),S>0&&(w=h.default.getSilentFrame(a.channelCount),w||(w=l.slice(0)),a.len+=S*w.length);else if(R<-12){k.logger.log(-R+" ms overlapping between AAC samples detected, drop frame"),a.len-=l.byteLength;continue}u=v=H}if(p=Math.max(0,u),q=Math.max(0,v),a.len<=0)return;D?n=new Uint8Array(a.len):(n=new Uint8Array(a.len+8),f=new DataView(n.buffer),f.setUint32(0,n.byteLength),n.set(m.default.types.mdat,4));for(var T=0;T=2&&(U=F[V-2].duration,i.duration=U),V){e.audioDurAvg=e.audioDurStd=0;for(var W=0;W4294967296;)a+=c;return a}},{key:"passthrough",get:function(){return!1}}]),a}();c.default=q},{"../errors":20,"../events":22,"../helper/aac":23,"../remux/mp4-generator":30,"../utils/browser":35,"../utils/logger":38,"../utils/polyfill":39}],32:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;cNumber.MAX_SAFE_INTEGER?1/0:b}},{key:"hexadecimalInteger",value:function(a){if(this[a]){var b=(this[a]||"0x").slice(2);b=(1&b.length?"0":"")+b;for(var c=new Uint8Array(b.length/2),d=0;dNumber.MAX_SAFE_INTEGER?1/0:b}},{key:"decimalFloatingPoint",value:function(a){return parseFloat(this[a])}},{key:"enumeratedString",value:function(a){return this[a]}},{key:"decimalResolution",value:function(a){var b=/^(\d+)x(\d+)$/.exec(this[a]);if(null!==b)return{width:parseInt(b[1],10),height:parseInt(b[2],10)}}}],[{key:"parseAttrList",value:function(a){for(var b,c=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,d={};null!==(b=c.exec(a));){var e=b[2];0===e.indexOf('"')&&e.lastIndexOf('"')===e.length-1&&(e=e.slice(1,-1)),d[b[1]]=e}return d}}]),a}();c.default=f},{}],34:[function(a,b,c){"use strict";var d={search:function(a,b){for(var c=0,d=a.length-1,e=null,f=null;c<=d;){e=(c+d)/2|0,f=a[e];var g=b(f);if(g>0)c=e+1;else{if(!(g<0))return f;d=e-1}}return null}};b.exports=d},{}],35:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={isSafari:function(){var a=navigator.vendor,b=navigator.userAgent;return a&&a.indexOf("Apple")>-1&&b&&!b.match("CriOS")}};c.default=d},{}],36:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c=c&&console.log(this.time+" ["+a+"] "+b)}},p=function(a){for(var b=[],c=0;ci&&(o.log("ERROR","Too large cursor position "+this.pos),this.pos=i)}},{key:"moveCursor",value:function(a){var b=this.pos+a;if(a>1)for(var c=this.pos+1;c=144&&this.backSpace();var b=g(a);if(this.pos>=i)return void o.log("ERROR","Cannot insert "+a.toString(16)+" ("+b+") at position "+this.pos+". Skipping it!");this.chars[this.pos].setChar(b,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(a){var b;for(b=a;b0&&(c=a?"["+b.join(" | ")+"]":b.join("\n")),c}},{key:"getTextAndFormat",value:function(){return this.rows}}]),a}(),u=function(){function a(b,c){ d(this,a),this.chNr=b,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new t,this.nonDisplayedMemory=new t,this.lastOutputScreen=new t,this.currRollUpRow=this.displayedMemory.rows[h-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}return e(a,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[h-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(a){this.outputFilter=a}},{key:"setPAC",value:function(a){this.writeScreen.setPAC(a)}},{key:"setBkgData",value:function(a){this.writeScreen.setBkgData(a)}},{key:"setMode",value:function(a){a!==this.mode&&(this.mode=a,o.log("INFO","MODE="+a),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=a)}},{key:"insertChars",value:function(a){for(var b=0;b=46,b.italics)b.foreground="white";else{var c=Math.floor(a/2)-16,d=["white","green","blue","cyan","red","yellow","magenta"];b.foreground=d[c]}o.log("INFO","MIDROW: "+JSON.stringify(b)),this.writeScreen.setPen(b)}},{key:"outputDataUpdate",value:function(){var a=o.time;null!==a&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(a,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,a,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:a):this.cueStartTime=a,this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(a){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,a,this.displayedMemory),this.cueStartTime=a))}}]),a}(),v=function(){function a(b,c,e){d(this,a),this.field=b||1,this.outputs=[c,e],this.channels=[new u(1,c),new u(2,e)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}return e(a,[{key:"getHandler",value:function(a){return this.channels[a].getHandler()}},{key:"setHandler",value:function(a,b){this.channels[a].setHandler(b)}},{key:"addData",value:function(a,b){var c,d,e,f=!1;this.lastTime=a,o.setTime(a);for(var g=0;g ("+p([d,e])+")"),c=this.parseCmd(d,e),c||(c=this.parseMidrow(d,e)),c||(c=this.parsePAC(d,e)),c||(c=this.parseBackgroundAttributes(d,e)),!c&&(f=this.parseChars(d,e)))if(this.currChNr&&this.currChNr>=0){var h=this.channels[this.currChNr-1];h.insertChars(f)}else o.log("WARNING","No channel found yet. TEXT-MODE?");c?this.dataCounters.cmd+=2:f?this.dataCounters.char+=2:(this.dataCounters.other+=2,o.log("WARNING","Couldn't parse cleaned data "+p([d,e])+" orig: "+p([b[g],b[g+1]])))}else this.dataCounters.padding+=2}},{key:"parseCmd",value:function(a,b){var c=null,d=(20===a||28===a)&&32<=b&&b<=47,e=(23===a||31===a)&&33<=b&&b<=35;if(!d&&!e)return!1;if(a===this.lastCmdA&&b===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,o.log("DEBUG","Repeated command ("+p([a,b])+") is dropped"),!0;c=20===a||23===a?1:2;var f=this.channels[c-1];return 20===a||28===a?32===b?f.ccRCL():33===b?f.ccBS():34===b?f.ccAOF():35===b?f.ccAON():36===b?f.ccDER():37===b?f.ccRU(2):38===b?f.ccRU(3):39===b?f.ccRU(4):40===b?f.ccFON():41===b?f.ccRDC():42===b?f.ccTR():43===b?f.ccRTD():44===b?f.ccEDM():45===b?f.ccCR():46===b?f.ccENM():47===b&&f.ccEOC():f.ccTO(b-32),this.lastCmdA=a,this.lastCmdB=b,this.currChNr=c,!0}},{key:"parseMidrow",value:function(a,b){var c=null;if((17===a||25===a)&&32<=b&&b<=47){if((c=17===a?1:2)!==this.currChNr)return o.log("ERROR","Mismatch channel in midrow parsing"),!1;return this.channels[c-1].ccMIDROW(b),o.log("DEBUG","MIDROW ("+p([a,b])+")"),!0}return!1}},{key:"parsePAC",value:function(a,b){var c=null,d=null,e=(17<=a&&a<=23||25<=a&&a<=31)&&64<=b&&b<=127,f=(16===a||24===a)&&64<=b&&b<=95;if(!e&&!f)return!1;if(a===this.lastCmdA&&b===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;c=a<=23?1:2,d=64<=b&&b<=95?1===c?j[a]:l[a]:1===c?k[a]:m[a];var g=this.interpretPAC(d,b);return this.channels[c-1].setPAC(g),this.lastCmdA=a,this.lastCmdB=b,this.currChNr=c,!0}},{key:"interpretPAC",value:function(a,b){var c=b,d={color:null,italics:!1,indent:null,underline:!1,row:a};return c=b>95?b-96:b-64,d.underline=1==(1&c),c<=13?d.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(c/2)]:c<=15?(d.italics=!0,d.color="white"):d.indent=4*Math.floor((c-16)/2),d}},{key:"parseChars",value:function(a,b){var c=null,d=null,e=null;if(a>=25?(c=2,e=a-8):(c=1,e=a),17<=e&&e<=19){var f=b;f=17===e?b+80:18===e?b+112:b+144,o.log("INFO","Special char '"+g(f)+"' in channel "+c),d=[f]}else 32<=a&&a<=127&&(d=0===b?[a]:[a,b]);if(d){var h=p(d);o.log("DEBUG","Char codes = "+h.join(",")),this.lastCmdA=null,this.lastCmdB=null}return d}},{key:"parseBackgroundAttributes",value:function(a,b){var c,d,e,f,g=(16===a||24===a)&&32<=b&&b<=47,h=(23===a||31===a)&&45<=b&&b<=47;return!(!g&&!h)&&(c={},16===a||24===a?(d=Math.floor((b-32)/2),c.background=n[d],b%2==1&&(c.background=c.background+"_semi")):45===b?c.background="transparent":(c.foreground="black",47===b&&(c.underline=!0)),e=a<24?1:2,f=this.channels[e-1],f.setBkgData(c),this.lastCmdA=null,this.lastCmdB=null,!0)}},{key:"reset",value:function(){for(var a=0;a=16?h--:h++,navigator.userAgent.match(/Firefox\//)?f.line=k+1:f.line=k>7?k-2:k+1,f.align="left",f.position=Math.max(0,Math.min(100,h/32*100+(navigator.userAgent.match(/Firefox\//)?50:0))),a.addCue(f)}}};b.exports=d},{}],38:[function(a,b,c){"use strict";function d(){}function e(a,b){return b="["+a+"] > "+b}function f(a){var b=window.console[a];return b?function(){for(var c=arguments.length,d=Array(c),f=0;f1?b-1:0),d=1;d-1;h=d+c)c=/^\/(?:\.\.\/)*/.exec(g.slice(d))[0].length,f=(f+g.substring(h,d)).replace(new RegExp("(?:\\/+[^\\/]*){0,"+(c-1)/3+"}$"),"/");return f+g.substr(h)}};b.exports=d},{}],41:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c8&&void 0!==arguments[8]?arguments[8]:null,j=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;this.url=a,!j||isNaN(j.byteRangeStartOffset)||isNaN(j.byteRangeEndOffset)||(this.byteRange=j.byteRangeStartOffset+"-"+(j.byteRangeEndOffset-1)),this.responseType=b,this.onSuccess=c,this.onProgress=i,this.onTimeout=e,this.onError=d,this.stats={trequest:performance.now(),retry:0},this.timeout=f,this.maxRetry=g,this.retryDelay=h,this.loadInternal()}},{key:"loadInternal",value:function(){var a;a="undefined"!=typeof XDomainRequest?this.loader=new XDomainRequest:this.loader=new XMLHttpRequest,a.onloadend=this.loadend.bind(this),a.onprogress=this.loadprogress.bind(this);var b=this.url;"https:"===location.protocol&&/^http:\/\//.test(b)&&(b=b.replace(/^http:\/\//,"https://")),a.open("GET",b,!0),this.byteRange&&a.setRequestHeader("Range","bytes="+this.byteRange),a.responseType=this.responseType,this.stats.tfirst=null,this.stats.loaded=0,this.xhrSetup&&this.xhrSetup(a,b),this.timeoutHandle=window.setTimeout(this.loadtimeout.bind(this),this.timeout),a.send()}},{key:"loadend",value:function(a){var b=a.currentTarget,c=b.status,d=this.stats;d.aborted||(c>=200&&c<300?(window.clearTimeout(this.timeoutHandle),d.tload=performance.now(),this.onSuccess(a,d)):d.retry2&&(console.info("bubbling media error up to VIDEOJS"),a.code=3,b.error=function(){return a},b.trigger("error"))}function h(a,c){var d="error",e={message:"HLS.js error: "+c.type+" - fatal: "+c.fatal+" - "+c.details};if(c.fatal||c.details!==g.Hls.ErrorDetails.BUFFER_STALLED_ERROR||(d="warn"),console[d](e.message),q[c.type]?q[c.type]+=1:q[c.type]=1,c.fatal)switch(c.type){case g.Hls.ErrorTypes.NETWORK_ERROR:console.info("bubbling network error up to VIDEOJS"),e.code=2,b.error=function(){return e},b.trigger("error");break;case g.Hls.ErrorTypes.MEDIA_ERROR:f(e);break;default:o.destroy(),console.info("bubbling error up to VIDEOJS"),b.error=function(){return e},b.trigger("error")}}function i(a){if(void 0===a)return"";if(!a)return"0";var b=1024,c=["","K","M","G","T","P"],d=Math.floor(Math.log(a)/Math.log(b));return(a/=Math.pow(b,d))<.001?"0":(a>=b-1&&(a=Math.trunc(a)),a.toFixed(a<1?3:a<10?2:a<100?1:0).replace(/\.0*$/,"")+c[d])}function j(a){var b=a.height||Math.round(9*a.width/16);return b?b+"p":""}function k(a){return a.bitrate?i(a.bitrate)+"bps":""}function l(a,b){var c=j(a);return c?b.some(function(b){return b!=a&&j(b)==c})?c+" "+k(a):c:k(a)}function m(){var a=[],c=o.levels;c.length>1&&a.push({id:-1,label:"Auto"}),c.forEach(function(b,d){a.push({id:d,label:l(b,c)})}),b.trigger("loadedqualitydata",{quality:{list:a,selected:o.manual_level,current:o.loadLevel},callback:d})}function n(){v||c(a),p.removeEventListener("waiting",n)}b.name_="holaHLS";var o,p=b.el(),q={},r=null,s=0,t=0,u=p.player||p.parentNode.player||g.videojs.getPlayers()[p.playerId],v="none"!=u.options().preload;p.addEventListener("error",function(a){var b,c=a.currentTarget.error;switch(c.code){case c.MEDIA_ERR_ABORTED:b="You aborted the video playback";break;case c.MEDIA_ERR_DECODE:b="The video playback was aborted due to a corruption problem or because the video used features your browser did not support",f(c);break;case c.MEDIA_ERR_NETWORK:b="A network error caused the video download to fail part-way";break;case c.MEDIA_ERR_SRC_NOT_SUPPORTED:b="The video could not be loaded, either because the server or network failed or because the format is not supported"}console.error("MEDIA_ERROR: ",b)}),this.duration=function(){return r||p.duration||0},this.seekable=function(){return g.videojs.createTimeRanges([[s,t]])},this.dispose=function(){p.removeEventListener("waiting",n),o.destroy()},function(){"Hlsjs"==u.techName_&&b.hls_&&(b.hls_.destroy(),b.hls_=null),b.hlsHandler&&b.hlsHandler.dispose(),b.hlsHandler={dispose:function(){},isLive:function(){return r==1/0}}}(),function(){b.hls_obj=o=new g.Hls(g.videojs.mergeOptions(b.options_.hlsjsConfig,e)),o.manual_level=-1,o.on(g.Hls.Events.ERROR,function(a,b){h(a,b)}),o.on(g.Hls.Events.LEVEL_SWITCH,m),o.on(g.Hls.Events.LEVEL_LOADED,function(a,b){r=b.details.live?1/0:b.details.totalduration}),o.on(g.Hls.Events.LEVEL_UPDATED,function(a,b){s=b.details.live?b.details.fragments[0].start:0,t=b.details.live?o.streamController.computeLivePosition(s,b.details):b.details.totalduration}),o.on(g.Hls.Events.FRAG_PARSING_METADATA,function(a,c){b.trigger("parsedmetadata",c)}),o.attachMedia(p),p.addEventListener("waiting",n)}(),v&&c(a)}var e,f,g=b.exports;try{f=window.localStorage}catch(a){}var h=!1,i=!1;g.Hls=window.Hls,g.videojs=window.videojs,g.VERSION="1.0.41",g.name="HolaProviderHLS";var j=function(){var a={register:"register-percent",manual_init:"manual-init"},b=document.currentScript||document.querySelector("#hola_videojs_hls_provider");if(!b)return{};var c="{[=it.HOLA_REGISTER_PERCENT]}";if(!c.indexOf("{[")){if(!b.hasAttribute(a.register))return{};c=+b.getAttribute(a.register)}if(isNaN(c)||c<0||c>100)return console.error(g.name+": invalid "+a.register+" attribute, expected a value between 0 and 100 but "+b.getAttribute(a.register)+" found"),{disabled:!0};return f&&f.getItem("hola_provider_register_percent")&&(c=+f.getItem("hola_provider_register_percent"),console.info(g.name+": "+a.register+" forced to "+c+"% by localStorage configuration")),{autoinit:!b.hasAttribute(a.manual_init),disabled:!c||100*Math.random()>c}}();g.attach=function(a,b,c,f){if(c&&(g.Hls=c),b&&(g.videojs=b),f&&(e=f),h)i=!1;else if(g.Hls.isSupported()){h=!0,i=!1;var j=["Hlsjs","Html5"].filter(function(a){if(a=g.videojs.getTech(a)){a.sourceHandlers instanceof Array?a.sourceHandlers.splice(0,0,g):a.registerSourceHandler(g,0);var b=a.registerSourceHandler;return a.registerSourceHandler=function(c,d){return b.call(a,c,0===d?1:d)},!0}});g.videojs.HolaProviderHLS=d,j.length?console.log(g.name+" registered as %s SourceHandler",j.join("/")):console.log(g.name+" not registered: no suitable tech found")}else console.error("Hls.js is not supported in this browser!")},g.detach=function(){i=!0},g.canPlayType=function(a){return i?"":/^application\/x-mpegURL$/i.test(a)?"probably":""},g.canHandleSource=function(a){var b;return i?"":(b=g.canPlayType(a.type))?b:/\.m3u8/i.test(a.src)?"maybe":""},g.handleSource=function(a,b){return b.hlsProvider&&b.hlsProvider.dispose(),b.hlsProvider=new d(a,b)},j.disabled?g.attach=g.detach=function(){}:j.autoinit&&g.attach()},{}],43:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if((b=arguments[1])instanceof Error)throw b;var k=new Error('Uncaught, unspecified "error" event. ('+b+")");throw k.context=b,k}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;i0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace()),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(d<0)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){return this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)}},{}],44:[function(a,b,c){var d=arguments[3],e=arguments[4],f=arguments[5],g=JSON.stringify;b.exports=function(a,b){function c(a){q[a]=!0;for(var b in e[a][1]){var d=e[a][1][b];q[d]||c(d)}}for(var h,i=Object.keys(f),j=0,k=i.length;j