(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f390b60"],{"045f":function(e,t,i){"use strict";var n=i("be09"),r=i("a559"),a=i("8362"),s=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();"undefined"===typeof t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t};function o(e,t){for(var i=0;i0&&(f=setTimeout((function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),p.setRequestHeader)for(l in y)y.hasOwnProperty(l)&&p.setRequestHeader(l,y[l]);else if(e.headers&&!u(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(v||null),p}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(i){}return null}function p(){}e.exports=c,e.exports.default=c,c.XMLHttpRequest=n.XMLHttpRequest||p,c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,i,n){return i=l(t,i,n),i.method=e.toUpperCase(),d(i)}}))},"0538":function(e,t,i){"use strict";var n=i("1c0b"),r=i("861d"),a=[].slice,s={},o=function(e,t,i){if(!(t in s)){for(var n=[],r=0;r0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n};e.exports=n},1456:function(e,t,i){function n(e){this.options=e||{locator:{}}}function r(e,t,i){if(!e){if(t instanceof a)return t;e=t}var n={},r=e instanceof Function;function s(t){var a=e[t];!a&&r&&(a=2==e.length?function(i){e(t,i)}:e),n[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+o(i))}||function(){}}return i=i||{},s("warning"),s("error"),s("fatalError"),n}function a(){this.cdata=!1}function s(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function o(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function u(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}n.prototype.parseFromString=function(e,t){var i=this.options,n=new h,s=i.domBuilder||new a,o=i.errorHandler,u=i.locator,l=i.xmlns||{},d=/\/x?html?$/.test(t),p=d?c.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return u&&s.setDocumentLocator(u),n.errorHandler=r(o,s,u),n.domBuilder=i.domBuilder||s,d&&(l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e&&"string"===typeof e?n.parse(e,l,p):n.errorHandler.error("invalid doc source"),s.doc},a.prototype={startDocument:function(){this.doc=(new f).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),o=n.length;l(this,a),this.currentElement=a,this.locator&&s(this.locator,a);for(var u=0;u0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var n=i===t?0:4-i%4;return[i,n]}function c(e){var t=l(e),i=t[0],n=t[1];return 3*(i+n)/4-n}function d(e,t,i){return 3*(t+i)/4-i}function h(e){var t,i,n=l(e),s=n[0],o=n[1],u=new a(d(e,s,o)),c=0,h=o>0?s-4:s;for(i=0;i>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,u[c++]=255&t),1===o&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function p(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,i){for(var n,r=[],a=t;au?u:o+s));return 1===r?(t=e[i-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"2b8c":function(e,t,i){var n=i("be09"),r=e.exports={WebVTT:i("d02c"),VTTCue:i("b03c"),VTTRegion:i("f97d")};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,u=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=u},n.VTTCue||r.shim()},"3c96":function(e,t){function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"3cf6":function(e,t,i){"use strict";i.r(t);var n,r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"box"},[i("ul",{staticClass:"box_ul"},e._l(e.videos,(function(t,n){return i("li",{key:n,attrs:{id:e.active==n?"addclass":""},on:{click:function(i){return e.changeSource(t.src,n)}}},[e._v(" "+e._s(t.name)+" ")])})),0),i("video",{staticClass:"video-js",attrs:{id:"videoPlayer",crossorigin:"anonymous","EXT-X-TARGETDURATION":"10"}})])])},a=[],s=i("be09"),o=i.n(s),u=i("ef34"),l=i.n(u),c=i("a559"),d=i.n(c),h=i("3c96"),p=i.n(h),f=i("55b5"),m=i.n(f),g=i("8c10"),v=i.n(g),y=i("df33"),_=i.n(y),b=i("045f"),T=i.n(b),S=i("2b8c"),w=i.n(S),E=i("b17c"),k=i.n(E),C=i("ed6d"),I=i.n(C),x=i("d136"),A=i.n(x),P="http://example.com",L=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=o.a.location&&o.a.location.href||"");var i="function"===typeof o.a.URL,n=/^\/\//.test(e),r=!o.a.location&&!/\/\//i.test(e);if(i?e=new o.a.URL(e,o.a.location||P):/\/\//i.test(e)||(e=A.a.buildAbsoluteURL(o.a.location&&o.a.location.href||"",e)),i){var a=new URL(t,e);return r?a.href.slice(P.length):n?a.href.slice(a.protocol.length):a.href}return A.a.buildAbsoluteURL(e,t)},D=L,O=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(O),N=String.fromCharCode(9),U=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},B=function(){var e="[^=]*",t='"[^"]*"|[^,]*',i="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+i+")")},F=function(e){var t,i=e.split(B()),n={},r=i.length;while(r--)""!==i[r]&&(t=/([^=]*)=(.*)/.exec(i[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n},j=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}m()(t,e);var i=t.prototype;return i.push=function(e){var t,i,n=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var r=this.tagMappers.reduce((function(t,i){var n=i(e);return n===e?t:t.concat([n])}),[e]);r.forEach((function(e){for(var r=0;r0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if(e.attributes.KEYFORMAT===c){var t=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===t.indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(R["a"])(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(n.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,h=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){i={},e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange),n&&(i.key=n)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(s.attributes||(s.attributes={}),d()(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var i=this.manifest.mediaGroups[e.attributes.TYPE];i[e.attributes["GROUP-ID"]]=i[e.attributes["GROUP-ID"]]||{},t=i[e.attributes["GROUP-ID"]],p={default:/yes/i.test(e.attributes.DEFAULT)},p.default?p.autoselect=!0:p.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(p.language=e.attributes.LANGUAGE),e.attributes.URI&&(p.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(p.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(p.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(p.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=p}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){h+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,q.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=V(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;o=!0;var i=this.manifest.segments.length,n=V(e.attributes);s.parts=s.parts||[],s.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=m),m=n.byterange.offset+n.byterange.length);var r=s.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=V(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),q.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,i=V(e.attributes),n=i.type&&"PART"===i.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?m:0,n&&(m=i.byterange.offset+i.byterange.length)));var r=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),i.type)for(var a=0;a=0&&(f.minimumUpdatePeriod=1e3*l),t&&(f.locations=t),"dynamic"===o&&(f.suggestedPresentationDelay=u);var m=0===f.playlists.length;return d.length&&(f.mediaGroups.AUDIO.audio=Pe(d,i,m)),h.length&&(f.mediaGroups.SUBTITLES.subs=Le(h,i)),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=De(p)),f},Be=function(e,t,i){var n=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,u=e.start,l=void 0===u?0:u,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=(n+r)/1e3,p=a+l,f=h+d,m=f-p;return Math.ceil((m*o-t)/i)},Fe=function(e,t){for(var i=e.type,n=void 0===i?"static":i,r=e.minimumUpdatePeriod,a=void 0===r?0:r,s=e.media,o=void 0===s?"":s,u=e.sourceDuration,l=e.timescale,c=void 0===l?1:l,d=e.startNumber,h=void 0===d?1:d,p=e.periodIndex,f=[],m=-1,g=0;gm&&(m=b);var T=void 0;if(_<0){var S=g+1;T=S===t.length?"dynamic"===n&&a>0&&o.indexOf("$Number$")>0?Be(e,m,y):(u*c-m)/y:(t[S].t-m)/y}else T=_+1;var w=h+f.length+T,E=h+f.length;while(E=r?a:""+new Array(r-a.length+1).join("0")+a)}},Ve=function(e,t){return e.replace(je,He(t))},qe=function(e,t){return e.duration||t?e.duration?Te(e):Fe(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]},We=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,a=ge({baseUrl:e.baseUrl,source:Ve(r.sourceURL,i),range:r.range}),s=qe(e,t);return s.map((function(t){i.Number=t.number,i.Time=t.time;var n=Ve(e.media||"",i),r={uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:D(e.baseUrl||"",n),map:a,number:t.number};return e.presentationTimeOffset&&(r.presentationTimeOffset=e.presentationTimeOffset),r}))},ze=function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=ge({baseUrl:i,source:r.sourceURL,range:r.range}),s=ge({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s},Ge=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n;if(!i&&!t||i&&t)throw new Error(me.SEGMENT_TIME_UNSPECIFIED);var a,s=r.map((function(t){return ze(e,t)}));i&&(a=Te(e)),t&&(a=Fe(e,t));var o=a.map((function(e,t){if(s[t]){var i=s[t];return i.timeline=e.timeline,i.duration=e.duration,i.number=e.number,i}})).filter((function(e){return e}));return o},Xe=function(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=We,t=le(n,r.template),r.template.presentationTimeOffset&&(t.presentationTimeOffset=r.template.presentationTimeOffset/r.template.timescale)):r.base?(i=Se,t=le(n,r.base)):r.list&&(i=Ge,t=le(n,r.list));var a={attributes:n};if(!i)return a;var s=i(t,r.timeline);if(t.duration){var o=t,u=o.duration,l=o.timescale,c=void 0===l?1:l;t.duration=u/c}else s.length?t.duration=s.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a},Ke=function(e){return e.map(Xe)},Ye=function(e,t){return pe(e.childNodes).filter((function(e){var i=e.tagName;return i===t}))},Qe=function(e){return e.textContent.trim()},$e=function(e){var t=31536e3,i=2592e3,n=86400,r=3600,a=60,s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,o=s.exec(e);if(!o)return 0;var u=o.slice(1),l=u[0],c=u[1],d=u[2],h=u[3],p=u[4],f=u[5];return parseFloat(l||0)*t+parseFloat(c||0)*i+parseFloat(d||0)*n+parseFloat(h||0)*r+parseFloat(p||0)*a+parseFloat(f||0)},Je=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},Ze={mediaPresentationDuration:function(e){return $e(e)},availabilityStartTime:function(e){return Je(e)/1e3},minimumUpdatePeriod:function(e){return $e(e)},suggestedPresentationDelay:function(e){return $e(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return $e(e)},start:function(e){return $e(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?$e(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},et=function(e){return e&&e.attributes?pe(e.attributes).reduce((function(e,t){var i=Ze[t.name]||Ze.DEFAULT;return e[t.name]=i(t.value),e}),{}):{}},tt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},it=function(e,t){return t.length?he(e.map((function(e){return t.map((function(t){return D(e,Qe(t))}))}))):e},nt=function(e){var t=Ye(e,"SegmentTemplate")[0],i=Ye(e,"SegmentList")[0],n=i&&Ye(i,"SegmentURL").map((function(e){return le({tag:"SegmentURL"},et(e))})),r=Ye(e,"SegmentBase")[0],a=i||t,s=a&&Ye(a,"SegmentTimeline")[0],o=i||r||t,u=o&&Ye(o,"Initialization")[0],l=t&&et(t);l&&u?l.initialization=u&&et(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:s&&Ye(s,"S").map((function(e){return et(e)})),list:i&&le(et(i),{segmentUrls:n,initialization:et(u)}),base:r&&le(et(r),{initialization:et(u)})};return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},rt=function(e,t,i){return function(n){var r=Ye(n,"BaseURL"),a=it(t,r),s=le(e,et(n)),o=nt(n);return a.map((function(e){return{segmentInfo:le(i,o),attributes:le(s,{baseUrl:e})}}))}},at=function(e){return e.reduce((function(e,t){var i=et(t),n=tt[i.schemeIdUri];if(n){e[n]={attributes:i};var r=Ye(t,"cenc:pssh")[0];if(r){var a=Qe(r),s=a&&Object(R["a"])(a);e[n].pssh=s}}return e}),{})},st=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){var t=e.value.split(";");return t.map((function(e){var t,i;if(i=e,/^CC\d=/.test(e)){var n=e.split("=");t=n[0],i=n[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:i}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){var i=e.value.split(";");return i.map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var i=e.split("="),n=i[0],r=i[1],a=void 0===r?"":r;t.channel=n,t.language=e,a.split(",").forEach((function(e){var i=e.split(":"),n=i[0],r=i[1];"lang"===n?t.language=r:"er"===n?t.easyReader=Number(r):"war"===n?t.aspectRatio=Number(r):"3D"===n&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))}},ot=function(e,t,i){return function(n){var r=et(n),a=it(t,Ye(n,"BaseURL")),s=Ye(n,"Role")[0],o={role:et(s)},u=le(e,r,o),l=Ye(n,"Accessibility")[0],c=st(et(l));c&&(u=le(u,{captionServices:c}));var d=Ye(n,"Label")[0];if(d&&d.childNodes.length){var h=d.childNodes[0].nodeValue.trim();u=le(u,{label:h})}var p=at(Ye(n,"ContentProtection"));Object.keys(p).length&&(u=le(u,{contentProtection:p}));var f=nt(n),m=Ye(n,"Representation"),g=le(i,f);return he(m.map(rt(u,a,g)))}},ut=function(e,t){return function(i,n){var r=it(t,Ye(i,"BaseURL")),a=et(i),s=parseInt(a.id,10),u=o.a.isNaN(s)?n:s,l=le(e,{periodIndex:u}),c=Ye(i,"AdaptationSet"),d=nt(i);return he(c.map(ot(l,r,d)))}},lt=function(e,t){void 0===t&&(t={});var i=t,n=i.manifestUri,r=void 0===n?"":n,a=i.NOW,s=void 0===a?Date.now():a,o=i.clientOffset,u=void 0===o?0:o,l=Ye(e,"Period");if(!l.length)throw new Error(me.INVALID_NUMBER_OF_PERIOD);var c=Ye(e,"Location"),d=et(e),h=it([r],Ye(e,"BaseURL"));return d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=u,c.length&&(d.locations=c.map(Qe)),{locations:d.locations,representationInfo:he(l.map(ut(d,h)))}},ct=function(e){if(""===e)throw new Error(me.DASH_EMPTY_MANIFEST);var t,i,n=new oe["DOMParser"];try{t=n.parseFromString(e,"application/xml"),i=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(r){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(me.DASH_INVALID_XML);return i},dt=function(e){var t=Ye(e,"UTCTiming")[0];if(!t)return null;var i=et(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(me.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},ht=function(e,t){void 0===t&&(t={});var i=lt(ct(e),t),n=Ke(i.representationInfo);return Ue(n,i.locations,t.sidxMapping)},pt=function(e){return dt(ct(e))},ft=i("0a96"),mt=i.n(ft),gt=function(e){return e.toString(2).length},vt=function(e){return Math.ceil(gt(e)/8)},yt=function(e){return ArrayBuffer.isView(e)},_t=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||yt(e)||e instanceof ArrayBuffer||(e="number"!==typeof e||"number"===typeof e&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},bt=o.a.BigInt||Number,Tt=[bt("0x1"),bt("0x100"),bt("0x10000"),bt("0x1000000"),bt("0x100000000"),bt("0x10000000000"),bt("0x1000000000000"),bt("0x100000000000000"),bt("0x10000000000000000")],St=(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}(),function(e,t){var i=void 0===t?{}:t,n=i.signed,r=void 0!==n&&n,a=i.le,s=void 0!==a&&a;e=_t(e);var o=s?"reduce":"reduceRight",u=e[o]?e[o]:Array.prototype[o],l=u.call(e,(function(t,i,n){var r=s?n:Math.abs(n+1-e.length);return t+bt(i)*Tt[r]}),bt(0));if(r){var c=Tt[e.length]/bt(2)-bt(1);l=bt(l),l>c&&(l-=c,l-=c,l-=bt(2))}return Number(l)}),wt=function(e,t){var i=void 0===t?{}:t,n=i.le,r=void 0!==n&&n;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=bt(e);for(var a=vt(e),s=new Uint8Array(new ArrayBuffer(a)),o=0;o=t.length&&u.call(t,(function(t,i){var n=o[i]?o[i]&e[a+i]:e[a+i];return t===n}))},xt=_t([73,68,51]),At=function(e,t){void 0===t&&(t=0),e=_t(e);var i=e[t+5],n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=(16&i)>>4;return r?n+20:n+10},Pt=function e(t,i){return void 0===i&&(i=0),t=_t(t),t.length-i<10||!It(t,xt,{offset:i})?i:(i+=At(t,i),e(t,i))},Lt=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"===typeof e?kt(e):e}),Dt=function(e){return Array.isArray(e)?e.map((function(e){return Lt(e)})):[Lt(e)]},Ot=function(e){e=_t(e);var t=[],i=0;while(e.length>i){var r=e[i],a=0,s=0;s++;var o=e[s];s++;while(128&o)a=(127&o)<<7,o=e[s],s++;a+=127&o;for(var u=0;u>>0,o=t.subarray(a+4,a+8);if(0===s)break;var u=a+s;if(u>t.length){if(n)break;u=t.length}var l=t.subarray(a+8,u);It(o,i[0])&&(1===i.length?r.push(l):r.push.apply(r,e(l,i.slice(1),n))),a=u}return r},Mt={EBML:_t([26,69,223,163]),DocType:_t([66,130]),Segment:_t([24,83,128,103]),SegmentInfo:_t([21,73,169,102]),Tracks:_t([22,84,174,107]),Track:_t([174]),TrackNumber:_t([215]),DefaultDuration:_t([35,227,131]),TrackEntry:_t([174]),TrackType:_t([131]),FlagDefault:_t([136]),CodecID:_t([134]),CodecPrivate:_t([99,162]),VideoTrack:_t([224]),AudioTrack:_t([225]),Cluster:_t([31,67,182,117]),Timestamp:_t([231]),TimestampScale:_t([42,215,177]),BlockGroup:_t([160]),BlockDuration:_t([155]),Block:_t([161]),SimpleBlock:_t([163])},Nt=[128,64,32,16,8,4,2,1],Ut=function(e){for(var t=1,i=0;i=i.length)return i.length;var r=Bt(i,n,!1);if(It(t.bytes,r.bytes))return n;var a=Bt(i,n+r.length);return e(t,i,n+a.length+a.value+r.length)},Vt=function e(t,i){i=jt(i),t=_t(t);var n=[];if(!i.length)return n;var r=0;while(rt.length?t.length:o+s.value,l=t.subarray(o,u);It(i[0],a.bytes)&&(1===i.length?n.push(l):n=n.concat(e(l,i.slice(1))));var c=a.length+s.length+l.length;r+=c}return n},qt=_t([0,0,0,1]),Wt=_t([0,0,1]),zt=_t([0,0,3]),Gt=function(e){var t=[],i=1;while(i>1&63),-1!==i.indexOf(u)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)},Kt=function(e,t,i){return Xt(e,"h264",t,i)},Yt=function(e,t,i){return Xt(e,"h265",t,i)},Qt={webm:_t([119,101,98,109]),matroska:_t([109,97,116,114,111,115,107,97]),flac:_t([102,76,97,67]),ogg:_t([79,103,103,83]),ac3:_t([11,119]),riff:_t([82,73,70,70]),avi:_t([65,86,73]),wav:_t([87,65,86,69]),"3gp":_t([102,116,121,112,51,103]),mp4:_t([102,116,121,112]),fmp4:_t([115,116,121,112]),mov:_t([102,116,121,112,113,116]),moov:_t([109,111,111,118]),moof:_t([109,111,111,102])},$t={aac:function(e){var t=Pt(e);return It(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Pt(e);return It(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Vt(e,[Mt.EBML,Mt.DocType])[0];return It(t,Qt.webm)},mkv:function(e){var t=Vt(e,[Mt.EBML,Mt.DocType])[0];return It(t,Qt.matroska)},mp4:function(e){return!$t["3gp"](e)&&!$t.mov(e)&&(!(!It(e,Qt.mp4,{offset:4})&&!It(e,Qt.fmp4,{offset:4}))||(!(!It(e,Qt.moof,{offset:4})&&!It(e,Qt.moov,{offset:4}))||void 0))},mov:function(e){return It(e,Qt.mov,{offset:4})},"3gp":function(e){return It(e,Qt["3gp"],{offset:4})},ac3:function(e){var t=Pt(e);return It(e,Qt.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+1880},ni=i("699f"),ri="7.14.3",ai={prefixed:!0},si=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],oi=si[0],ui=0;ui0?u:0)}if(o.a.console){var l=o.a.console[i];l||"debug"!==i||(l=o.a.console.info||o.a.console.log),l&&a&&s.test(i)&&l[Array.isArray(r)?"apply":"call"](o.a.console,r)}}};function hi(e){var t,i="info",n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?t-1:0),n=1;n=0)throw new Error("class has illegal whitespace characters")}function Gi(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function Xi(){return l.a===o.a.document}function Ki(e){return bi(e)&&1===e.nodeType}function Yi(){try{return o.a.parent!==o.a.self}catch(e){return!0}}function Qi(e){return function(t,i){if(!Wi(t))return l.a[e](null);Wi(i)&&(i=l.a.querySelector(i));var n=Ki(i)?i:l.a;return n[e]&&n[e](t)}}function $i(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=l.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(pi.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?Ji(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),n&&yn(r,n),r}function Ji(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function Zi(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function en(e,t){return zi(t),e.classList?e.classList.contains(t):Gi(t).test(e.className)}function tn(e,t){return e.classList?e.classList.add(t):en(e,t)||(e.className=(e.className+" "+t).trim()),e}function nn(e,t){return e?(e.classList?e.classList.remove(t):(zi(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(pi.warn("removeClass was called with an element that doesn't exist"),null)}function rn(e,t,i){var n=en(e,t);if("function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=!n),i!==n)return i?tn(e,t):nn(e,t),e}function an(e,t){Object.getOwnPropertyNames(t).forEach((function(i){var n=t[i];null===n||"undefined"===typeof n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function sn(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var a=n[r].name,s=n[r].value;"boolean"!==typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function on(e,t){return e.getAttribute(t)}function un(e,t,i){e.setAttribute(t,i)}function ln(e,t){e.removeAttribute(t)}function cn(){l.a.body.focus(),l.a.onselectstart=function(){return!1}}function dn(){l.a.onselectstart=function(){return!0}}function hn(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(i[e]=t[e])})),i.height||(i.height=parseFloat(Si(e,"height"))),i.width||(i.width=parseFloat(Si(e,"width"))),i}}function pn(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;while(e.offsetParent&&e!==l.a[ai.fullscreenElement])n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function fn(e,t){var i={x:0,y:0};if(Hi){var n=e;while(n&&"html"!==n.nodeName.toLowerCase()){var r=Si(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}}var o={},u=pn(t.target),l=pn(e),c=l.width,d=l.height,h=t.offsetY-(l.top-u.top),p=t.offsetX-(l.left-u.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-l.left,h=t.changedTouches[0].pageY+l.top,Hi&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,p/c)),o}function mn(e){return bi(e)&&3===e.nodeType}function gn(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function vn(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),Ki(e)||mn(e)?e:"string"===typeof e&&/\S/.test(e)?l.a.createTextNode(e):void 0})).filter((function(e){return e}))}function yn(e,t){return vn(t).forEach((function(t){return e.appendChild(t)})),e}function _n(e,t){return yn(gn(e),t)}function bn(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Tn,Sn=Qi("querySelector"),wn=Qi("querySelectorAll"),En=Object.freeze({__proto__:null,isReal:Xi,isEl:Ki,isInFrame:Yi,createEl:$i,textContent:Ji,prependTo:Zi,hasClass:en,addClass:tn,removeClass:nn,toggleClass:rn,setAttributes:an,getAttributes:sn,getAttribute:on,setAttribute:un,removeAttribute:ln,blockTextSelection:cn,unblockTextSelection:dn,getBoundingClientRect:hn,findPosition:pn,getPointerPosition:fn,isTextNode:mn,emptyEl:gn,normalizeContent:vn,appendContent:yn,insertContent:_n,isSingleLeftClick:bn,$:Sn,$$:wn}),kn=!1,Cn=function(){if(!1!==Tn.options.autoSetup){var e=Array.prototype.slice.call(l.a.getElementsByTagName("video")),t=Array.prototype.slice.call(l.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(l.a.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function qn(e,t,i){if(Nn.has(e)){var n=Nn.get(e);if(n.handlers){if(Array.isArray(t))return Bn(qn,e,t,i);var r=function(e,t){n.handlers[t]=[],Un(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s=t&&(e.apply(void 0,arguments),i=n)};return n},Jn=function(e,t,i,n){var r;void 0===n&&(n=o.a);var a=function(){n.clearTimeout(r),r=null},s=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return s.cancel=a,s},Zn=function(){};Zn.prototype.allowedEvents_={},Zn.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Vn(this,e,t),this.addEventListener=i},Zn.prototype.addEventListener=Zn.prototype.on,Zn.prototype.off=function(e,t){qn(this,e,t)},Zn.prototype.removeEventListener=Zn.prototype.off,Zn.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},zn(this,e,t),this.addEventListener=i},Zn.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Gn(this,e,t),this.addEventListener=i},Zn.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Fn(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Wn(this,e)},Zn.prototype.dispatchEvent=Zn.prototype.trigger,Zn.prototype.queueTrigger=function(e){var t=this;Xn||(Xn=new Map);var i=e.type||e,n=Xn.get(this);n||(n=new Map,Xn.set(this,n));var r=n.get(i);n["delete"](i),o.a.clearTimeout(r);var a=o.a.setTimeout((function(){0===n.size&&(n=null,Xn["delete"](t)),t.trigger(e)}),0);n.set(i,a)};var er=function(e){return"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},tr=function(e){return e instanceof Zn||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},ir=function(e,t){tr(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},nr=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},rr=function(e,t,i){if(!e||!e.nodeName&&!tr(e))throw new Error("Invalid target for "+er(t)+"#"+i+"; must be a DOM node or evented object.")},ar=function(e,t,i){if(!nr(e))throw new Error("Invalid event type for "+er(t)+"#"+i+"; must be a non-empty string or array.")},sr=function(e,t,i){if("function"!==typeof e)throw new Error("Invalid listener for "+er(t)+"#"+i+"; must be a function.")},or=function(e,t,i){var n,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(n=t[0],r=t[1],a=t[2]),rr(n,e,i),ar(r,e,i),sr(a,e,i),a=Qn(e,a),{isTargetingSelf:s,target:n,type:r,listener:a}},ur=function(e,t,i,n){rr(e,e,t),e.nodeName?Kn[t](e,i,n):e[t](i,n)},lr={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Nn.has(this.el_)&&Nn["delete"](this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=gr(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return $i(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],u=i;return a&&a[e]?u=a[e]:o&&o[e]&&(u=o[e]),t&&(u=u.replace(/\{(\d+)\}/g,(function(e,i){var n=t[i-1],r=n;return"undefined"===typeof n&&(r=e),r}))),u},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[fr(e.name())]=null,this.childNameIndex_[pr(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,a=function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var a=t.addChild(i,n);a&&(t[i]=a)}},s=e.getComponent("Tech");n=Array.isArray(i)?i:Object.keys(i),n.concat(Object.keys(this.options_).filter((function(e){return!n.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var n,r;return"string"===typeof e?(n=e,r=i[n]||t.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}})).filter((function(t){var i=e.getComponent(t.opts.componentClass||fr(t.name));return i&&!s.isTech(i)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Sn(e,t||this.contentEl())},t.$$=function(e,t){return wn(e,t||this.contentEl())},t.hasClass=function(e){return en(this.el_,e)},t.addClass=function(e){tn(this.el_,e)},t.removeClass=function(e){nn(this.el_,e)},t.toggleClass=function(e,t){rn(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return on(this.el_,e)},t.setAttribute=function(e,t){un(this.el_,e,t)},t.removeAttribute=function(e){ln(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+fr(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Si(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var i="offset"+fr(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null,n=10,r=200;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=o.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(i){var r=t.touches[0].pageX-i.pageX,a=t.touches[0].pageY-i.pageY,s=Math.sqrt(r*r+a*a);s>n&&(e=!1)}}));var a=function(){e=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",(function(n){if(i=null,!0===e){var a=o.a.performance.now()-t;a0&&l.map((function(e){return u[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[pr(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Sr(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}function wr(e,t,i,n){return Sr(e,n,i.length-1),i[n][t]}function Er(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:wr.bind(null,"start",0,e),end:wr.bind(null,"end",1,e)}}function kr(e,t){return Array.isArray(e)?Er(e):void 0===e||void 0===t?Er():Er([[e,t]])}function Cr(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=kr(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}function Ir(e){if(e instanceof Ir)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:bi(e)&&("number"===typeof e.code&&(this.code=e.code),_i(this,e)),this.message||(this.message=Ir.defaultMessages[this.code]||"")}Tr.prototype.supportsRaf_="function"===typeof o.a.requestAnimationFrame&&"function"===typeof o.a.cancelAnimationFrame,Tr.registerComponent("Component",Tr),Ir.prototype.code=0,Ir.prototype.message="",Ir.prototype.status=null,Ir.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ir.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var xr=0;xr=0;n--)if(t[n].enabled){Fr(t,t[n]);break}return i=e.call(this,t)||this,i.changing_=!1,i}m()(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&Fr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,Fr(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Ur),Hr=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){Hr(t,t[n]);break}return i=e.call(this,t)||this,i.changing_=!1,Object.defineProperty(p()(i),"selectedIndex",{get:function(){for(var e=0;e0&&(o.a.console&&o.a.console.groupCollapsed&&o.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach((function(e){return pi.error(e)})),o.a.console&&o.a.console.groupEnd&&o.a.console.groupEnd()),i.flush()},na=function(e,t){var i={uri:e},n=ea(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),T()(i,Qn(this,(function(e,i,n){if(e)return pi.error(e,i);t.loaded_=!0,"function"!==typeof o.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return ia(n,t);pi.error("vttjs failed to load, stopping trying to process "+t.src)})):ia(n,t)})))},ra=function(e){function t(t){var i;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var n=gr(t,{kind:Kr[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Yr[n.mode]||"disabled",a=n["default"];"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),i=e.call(this,n)||this,i.tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new zr(i.cues_),o=new zr(i.activeCues_),u=!1,l=Qn(p()(i),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1))})),c=function(){i.tech_.off("timeupdate",l)};return i.tech_.one("dispose",c),"disabled"!==r&&i.tech_.on("timeupdate",l),Object.defineProperties(p()(i),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){Yr[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||na(this.src,this),this.tech_.off("timeupdate",l),"disabled"!==r&&this.tech_.on("timeupdate",l),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(u=!1,t.length!==this.activeCues_.length)u=!0;else for(var a=0;a0)return void this.trigger("vttjsloaded");var t=l.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),o.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](n,i)}}function La(e){ya[e.id()]=null}function Da(e,t){var i=ya[e.id()],n=null;if(void 0===i||null===i)return n=t(e),ya[e.id()]=[[t,n]],n;for(var r=0;r