/*! For license information please see chunk-35d77297.b3d8d5413edc0d855ad6.0.1.0.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-35d77297"],{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+function(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(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,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function u(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}n.prototype.parseFromString=function(e,t){var i=this.options,n=new c,s=i.domBuilder||new a,o=i.errorHandler,u=i.locator,d=i.xmlns||{},h=/\/x?html?$/.test(t),p=h?l.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return u&&s.setDocumentLocator(u),n.errorHandler=r(o,s,u),n.domBuilder=i.domBuilder||s,h&&(d[""]="http://www.w3.org/1999/xhtml"),d.xml=d.xml||"http://www.w3.org/XML/1998/namespace",e&&"string"==typeof e?n.parse(e,d,p):n.errorHandler.error("invalid doc source"),s.doc},a.prototype={startDocument:function(){this.doc=(new d).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;u(this,a),this.currentElement=a,this.locator&&s(this.locator,a);for(var l=0;l65535){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(r.error("entity not found:"+e),e)}function s(t){if(t>S){var i=e.substring(S,t).replace(/&#?\w+;/g,a);_&&h(S),n.characters(i,0,t-S),S=t}}function h(t,i){for(;t>=v&&(i=y.exec(e));)g=i.index,v=g+i[0].length,_.lineNumber++;_.columnNumber=t-g+1}for(var g=0,v=0,y=/.*(?:\r\n?|\n)|.*$/g,_=n.locator,b=[{currentNSMap:t}],T={},S=0;;){try{var k=e.indexOf("<",S);if(k<0){if(!e.substr(S).match(/^\s*$/)){var E=n.doc,C=E.createTextNode(e.substr(S));E.appendChild(C),n.currentElement=C}return}switch(k>S&&s(k),e.charAt(k+1)){case"/":var w=e.indexOf(">",k+3),I=e.substring(k+2,w),x=b.pop();w<0?(I=e.substring(k+2).replace(/[\s<].*/,""),r.error("end tag name: "+I+" is not complete:"+x.tagName),w=k+1+I.length):I.match(/\sS?S=w:s(Math.max(k,S)+1)}}function o(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,i,n,r,a){for(var s,o=++t,u=0;;){var l=e.charAt(o);switch(l){case"=":if(1===u)s=e.slice(t,o),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(a.warning('attribute value must after "="'),s=e.slice(t,o)),t=o+1,!((o=e.indexOf(l,t))>0))throw new Error("attribute value no end '"+l+"' match");c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t),a.warning('attribute "'+s+'" missed start quot('+l+")!!"),t=o+1,u=5}break;case"/":switch(u){case 0:i.setTagName(e.slice(t,o));case 5:case 6:case 7:u=7,i.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==u&&i.setTagName(e.slice(t,o)),o;case">":switch(u){case 0:i.setTagName(e.slice(t,o));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,o)).slice(-1)&&(i.closed=!0,c=c.slice(0,-1));case 2:2===u&&(c=s),4==u?(a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c.replace(/&#?\w+;/g,r),t)):("http://www.w3.org/1999/xhtml"===n[""]&&c.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),i.add(c,c,t));break;case 3:throw new Error("attribute value missed!!")}return o;case"€":l=" ";default:if(l<=" ")switch(u){case 0:i.setTagName(e.slice(t,o)),u=6;break;case 1:s=e.slice(t,o),u=2;break;case 4:var c=e.slice(t,o).replace(/&#?\w+;/g,r);a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c,t);case 5:u=6}else switch(u){case 2:i.tagName,"http://www.w3.org/1999/xhtml"===n[""]&&s.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),i.add(s,s,t),t=o,u=1;break;case 5:a.warning('attribute space is required"'+s+'"!!');case 6:u=1,t=o;break;case 3:u=4,t=o;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}o++}}function l(e,t,i){for(var n=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,u=s.value,l=o.indexOf(":");if(l>0)var c=s.prefix=o.slice(0,l),d=o.slice(l+1),p="xmlns"===c&&d;else d=o,c=null,p="xmlns"===o&&"";s.localName=d,!1!==p&&(null==r&&(r={},h(i,i={})),i[p]=r[p]=u,s.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,u))}for(a=e.length;a--;)(c=(s=e[a]).prefix)&&("xml"===c&&(s.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==c&&(s.uri=i[c||""]));(l=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,l),d=e.localName=n.slice(l+1)):(c=null,d=e.localName=n);var f=e.uri=i[c||""];if(t.startElement(f,d,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(f,d,n),r)for(c in r)t.endPrefixMapping(c)}function c(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var a=e.indexOf("",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(i)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,n),r.characters(s,0,s.length),a)}return t+1}function d(e,t,i,n){var r=n[i];return null==r&&((r=e.lastIndexOf(""))t?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6))return r=e.indexOf("]]>",t+9),i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3;var a=function(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;i=r.exec(e);)if(n.push(i),i[1])return n}(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var c=a[s-1];return i.startDTD(o,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),i.endDTD(),c.index+c[0].length}}return-1}function f(e,t,i){var n=e.indexOf("?>",t);if(n){var r=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,i.processingInstruction(r[1],r[2]),n+2):-1}return-1}function m(e){}a.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),h(t,t={}),s(e,t,i,n,this.errorHandler),n.endDocument()}},m.prototype={setTagName:function(e){if(!r.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,i){if(!r.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=a},"8feb":function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(this,i("c8ba"))},"9a2c":function(e,t,i){},a559:function(e,t,i){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(P.a),L=function(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[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},D=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}m()(t,e);var i=t.prototype;return i.push=function(e){var t,i,n=this;if(0!==(e=e.trim()).length)if("#"===e[0]){this.tagMappers.reduce((function(t,i){var n=i(e);return n===e?t:t.concat([n])}),[e]).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("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].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)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(A.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},void 0!==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,l=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)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||u,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||u,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"]],(h={default:/yes/i.test(e.attributes.DEFAULT)}).default?h.autoselect=!0:h.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(h.language=e.attributes.LANGUAGE),e.attributes.URI&&(h.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(h.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(h.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(h.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=h}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){l+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===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},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},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}}[e.tagType]||o).call(r)},uri:function(){s.uri=e.uri,a.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),n&&(s.key=n),s.timeline=l,i&&(s.map=i),s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}m()(t,e);var i=t.prototype;return i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(P.a),M=i("8b53"),R=i("8feb"),U=i.n(R),B=i("1456"),F=function(e){return!!e&&"object"==typeof e},j=function e(){for(var t=arguments.length,i=new Array(t),n=0;n=0&&(p.minimumUpdatePeriod=1e3*l),t&&(p.locations=t),"dynamic"===o&&(p.suggestedPresentationDelay=u),d.length&&(p.mediaGroups.AUDIO.audio=function(e,t){var i;void 0===t&&(t={});var n=e.reduce((function(e,n){var r=n.attributes.role&&n.attributes.role.value||"",a=n.attributes.lang||"",s="main";if(a){var o=r?" ("+r+")":"";s=""+n.attributes.lang+o}return e[s]&&e[s].playlists[0].attributes.BANDWIDTH>n.attributes.bandwidth||(e[s]={language:a,autoselect:!0,default:"main"===r,playlists:J([Z(n)],t),uri:""},void 0===i&&"main"===r&&((i=n).default=!0)),e}),{});i||(n[Object.keys(n)[0]].default=!0);return n}(d,i)),h.length&&(p.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,i){var n=i.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:J([ee(i)],t),uri:""}),e}),{})}(h,i)),p},ne=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=(n+r)/1e3+(void 0===c?0:c)-(a+l);return Math.ceil((d*o-t)/i)},re=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?ne(e,m,y):(u*c-m)/y:(t[S].t-m)/y}else T=_+1;for(var k=h+f.length+T,E=h+f.length;E=r?a:""+new Array(r-a.length+1).join("0")+a)}}(t))},oe=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,a=W({baseUrl:e.baseUrl,source:se(r.sourceURL,i),range:r.range});return function(e,t){return e.duration||t?e.duration?X(e):re(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){i.Number=t.number,i.Time=t.time;var n=se(e.media||"",i);return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:Object(x.a)(e.baseUrl||"",n),map:a,number:t.number}}))},ue=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n;if(!i&&!t||i&&t)throw new Error(V.SEGMENT_TIME_UNSPECIFIED);var a,s=r.map((function(t){return function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=W({baseUrl:i,source:r.sourceURL,range:r.range}),s=W({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s}(e,t)}));return i&&(a=X(e)),t&&(a=re(e,t)),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}))},le=function(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=oe,t=j(n,r.template)):r.base?(i=Q,t=j(n,r.base)):r.list&&(i=ue,t=j(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},ce=function(e,t){return H(e.childNodes).filter((function(e){return e.tagName===t}))},de=function(e){return e.textContent.trim()},he=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var i=t.slice(1),n=i[0],r=i[1],a=i[2],s=i[3],o=i[4],u=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(u||0)},pe={mediaPresentationDuration:function(e){return he(e)},availabilityStartTime:function(e){return function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)}(e)/1e3},minimumUpdatePeriod:function(e){return he(e)},suggestedPresentationDelay:function(e){return he(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return he(e)},start:function(e){return he(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)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?he(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}},fe=function(e){return e&&e.attributes?H(e.attributes).reduce((function(e,t){var i=pe[t.name]||pe.DEFAULT;return e[t.name]=i(t.value),e}),{}):{}},me={"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"},ge=function(e,t){return t.length?q(e.map((function(e){return t.map((function(t){return Object(x.a)(e,de(t))}))}))):e},ve=function(e){var t=ce(e,"SegmentTemplate")[0],i=ce(e,"SegmentList")[0],n=i&&ce(i,"SegmentURL").map((function(e){return j({tag:"SegmentURL"},fe(e))})),r=ce(e,"SegmentBase")[0],a=i||t,s=a&&ce(a,"SegmentTimeline")[0],o=i||r||t,u=o&&ce(o,"Initialization")[0],l=t&&fe(t);l&&u?l.initialization=u&&fe(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:s&&ce(s,"S").map((function(e){return fe(e)})),list:i&&j(fe(i),{segmentUrls:n,initialization:fe(u)}),base:r&&j(fe(r),{initialization:fe(u)})};return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},ye=function(e,t,i){return function(n){var r=fe(n),a=ge(t,ce(n,"BaseURL")),s=ce(n,"Role")[0],o={role:fe(s)},u=j(e,r,o),l=function(e){return e.reduce((function(e,t){var i=fe(t),n=me[i.schemeIdUri];if(n){e[n]={attributes:i};var r=ce(t,"cenc:pssh")[0];if(r){var a=de(r),s=a&&Object(A.a)(a);e[n].pssh=s}}return e}),{})}(ce(n,"ContentProtection"));Object.keys(l).length&&(u=j(u,{contentProtection:l}));var c=ve(n),d=ce(n,"Representation"),h=j(i,c);return q(d.map(function(e,t,i){return function(n){var r=ce(n,"BaseURL"),a=ge(t,r),s=j(e,fe(n)),o=ve(n);return a.map((function(e){return{segmentInfo:j(i,o),attributes:j(s,{baseUrl:e})}}))}}(u,a,h)))}},_e=function(e,t){return function(i,n){var r=ge(t,ce(i,"BaseURL")),a=fe(i),s=parseInt(a.id,10),o=U.a.isNaN(s)?n:s,u=j(e,{periodIndex:o}),l=ce(i,"AdaptationSet"),c=ve(i);return q(l.map(ye(u,r,c)))}},be=function(e){if(""===e)throw new Error(V.DASH_EMPTY_MANIFEST);var t,i,n=new B.DOMParser;try{i=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(V.DASH_INVALID_XML);return i},Te=function(e,t){void 0===t&&(t={});var i=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=ce(e,"Period");if(!l.length)throw new Error(V.INVALID_NUMBER_OF_PERIOD);var c=ce(e,"Location"),d=fe(e),h=ge([r],ce(e,"BaseURL"));return d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=u,c.length&&(d.locations=c.map(de)),{locations:d.locations,representationInfo:q(l.map(_e(d,h)))}}(be(e),t),n=function(e){return e.map(le)}(i.representationInfo);return ie(n,i.locations,t.sidxMapping)},Se=function(e){return function(e){var t=ce(e,"UTCTiming")[0];if(!t)return null;var i=fe(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(V.UNSUPPORTED_UTC_TIMING_SCHEME)}return i}(be(e))},ke=Y,Ee=i("81c0"),Ce=i.n(Ee),we=i("321f"),Ie=i("f8a8"),xe=i("de66"),Pe=i("dc3e"),Ae=i.n(Pe),Oe=i("36c6"),Le=i("2806"),De=i.n(Le),Ne=i("17a3"),Me={prefixed:!0},Re=[["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"]],Ue=Re[0],Be=0;Be0?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)}}}(t,r),r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(r.history=function(){return je?[].concat(je):[]}).filter=function(e){return(je||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){je&&(je.length=0)},r.history.disable=function(){null!==je&&(je.length=0,je=null)},r.history.enable=function(){null===je&&(je=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n=0)throw new Error("class has illegal whitespace characters")}function _t(){return l.a===o.a.document}function bt(e){return Ke(e)&&1===e.nodeType}function Tt(){try{return o.a.parent!==o.a.self}catch(e){return!0}}function St(e){return function(t,i){if(!vt(t))return l.a[e](null);vt(i)&&(i=l.a.querySelector(i));var n=bt(i)?i:l.a;return n[e]&&n[e](t)}}function kt(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?(qe.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?Et(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),n&&Vt(r,n),r}function Et(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function Ct(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function wt(e,t){return yt(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function It(e,t){return e.classList?e.classList.add(t):wt(e,t)||(e.className=(e.className+" "+t).trim()),e}function xt(e,t){return e.classList?e.classList.remove(t):(yt(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function Pt(e,t,i){var n=wt(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?It(e,t):xt(e,t),e}function At(e,t){Object.getOwnPropertyNames(t).forEach((function(i){var n=t[i];null==n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function Ot(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,a=i[n].value;"boolean"!=typeof e[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(a=null!==a),t[r]=a}return t}function Lt(e,t){return e.getAttribute(t)}function Dt(e,t,i){e.setAttribute(t,i)}function Nt(e,t){e.removeAttribute(t)}function Mt(){l.a.body.focus(),l.a.onselectstart=function(){return!1}}function Rt(){l.a.onselectstart=function(){return!0}}function Ut(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(Qe(e,"height"))),i.width||(i.width=parseFloat(Qe(e,"width"))),i}}function Bt(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==l.a[Me.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function Ft(e,t){var i={x:0,y:0};if(ft)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=Qe(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=Bt(t.target),l=Bt(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,ft&&(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 jt(e){return Ke(e)&&3===e.nodeType}function qt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ht(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),bt(e)||jt(e)?e:"string"==typeof e&&/\S/.test(e)?l.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Vt(e,t){return Ht(t).forEach((function(t){return e.appendChild(t)})),e}function Wt(e,t){return Vt(qt(e),t)}function zt(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 Gt,Kt=St("querySelector"),Xt=St("querySelectorAll"),Qt=Object.freeze({__proto__:null,isReal:_t,isEl:bt,isInFrame:Tt,createEl:kt,textContent:Et,prependTo:Ct,hasClass:wt,addClass:It,removeClass:xt,toggleClass:Pt,setAttributes:At,getAttributes:Ot,getAttribute:Lt,setAttribute:Dt,removeAttribute:Nt,blockTextSelection:Mt,unblockTextSelection:Rt,getBoundingClientRect:Ut,findPosition:Bt,getPointerPosition:Ft,isTextNode:jt,emptyEl:qt,normalizeContent:Ht,appendContent:Vt,insertContent:Wt,isSingleLeftClick:zt,$:Kt,$$:Xt}),Yt=!1,$t=function(){if(_t()&&!1!==Gt.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 hi(e,t,i){if(si.has(e)){var n=si.get(e);if(n.handlers){if(Array.isArray(t))return ui(hi,e,t,i);var r=function(e,t){n.handlers[t]=[],oi(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)}},bi=function(){};bi.prototype.allowedEvents_={},bi.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},di(this,e,t),this.addEventListener=i},bi.prototype.addEventListener=bi.prototype.on,bi.prototype.off=function(e,t){hi(this,e,t)},bi.prototype.removeEventListener=bi.prototype.off,bi.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},fi(this,e,t),this.addEventListener=i},bi.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},mi(this,e,t),this.addEventListener=i},bi.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=li(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),pi(this,e)},bi.prototype.dispatchEvent=bi.prototype.trigger,bi.prototype.queueTrigger=function(e){var t=this;gi||(gi=new Map);var i=e.type||e,n=gi.get(this);n||(n=new Map,gi.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,gi.delete(t)),t.trigger(e)}),0);n.set(i,a)};var Ti=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},Si=function(e){return e instanceof bi||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},ki=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Ei=function(e,t,i){if(!e||!e.nodeName&&!Si(e))throw new Error("Invalid target for "+Ti(t)+"#"+i+"; must be a DOM node or evented object.")},Ci=function(e,t,i){if(!ki(e))throw new Error("Invalid event type for "+Ti(t)+"#"+i+"; must be a non-empty string or array.")},wi=function(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+Ti(t)+"#"+i+"; must be a function.")},Ii=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]),Ei(n,e,i),Ci(r,e,i),wi(a,e,i),{isTargetingSelf:s,target:n,type:r,listener:a=yi(e,a)}},xi=function(e,t,i,n){Ei(e,e,t),e.nodeName?vi[t](e,i,n):e[t](i,n)},Pi={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_),si.has(this.el_)&&si.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_=Mi(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return kt(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 void 0===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_[Ni(e.name())]=null,this.childNameIndex_[Di(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=e.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).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?r=i[n=e]||t.options_[n]||{}:(n=e.name,r=e),{name:n,opts:r}})).filter((function(t){var i=e.getComponent(t.opts.componentClass||Ni(t.name));return i&&!a.isTech(i)})).forEach((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)}}))}},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 Kt(e,t||this.contentEl())},t.$$=function(e,t){return Xt(e,t||this.contentEl())},t.hasClass=function(e){return wt(this.el_,e)},t.addClass=function(e){It(this.el_,e)},t.removeClass=function(e){xt(this.el_,e)},t.toggleClass=function(e,t){Pt(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 Lt(this.el_,e)},t.setAttribute=function(e,t){Dt(this.el_,e,t)},t.removeAttribute=function(e){Nt(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"+Ni(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=Qe(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+Ni(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;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 n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}}));var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){(i=null,!0===e)&&(o.a.performance.now()-t<200&&(n.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=yi(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){var i,n=this;return e=yi(this,e),this.clearTimersOnDispose_(),i=o.a.setTimeout((function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()}),t),this.setTimeoutIds_.add(i),i},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),o.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=yi(this,e),this.clearTimersOnDispose_();var i=o.a.setInterval(e,t);return this.setIntervalIds_.add(i),i},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),o.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=yi(this,e),t=o.a.requestAnimationFrame((function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=yi(this,t);var n=this.requestAnimationFrame((function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)}));return this.namedRafs_.set(e,n),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),o.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var i=t[0],n=t[1];e[i].forEach((function(t,i){return e[n](i)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,i){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),r=n&&n.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.prototype);if(r||!a)throw new Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=Ni(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var o=s.players,u=Object.keys(o);if(o&&u.length>0&&u.map((function(e){return o[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[Di(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function qi(e,t,i,n){return function(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+").")}(e,n,i.length-1),i[n][t]}function Hi(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:qi.bind(null,"start",0,e),end:qi.bind(null,"end",1,e)}}function Vi(e,t){return Array.isArray(e)?Hi(e):void 0===e||void 0===t?Hi():Hi([[e,t]])}function Wi(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=Vi(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}function zi(e){if(e instanceof zi)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:Ke(e)&&("number"==typeof e.code&&(this.code=e.code),Ge(this,e)),this.message||(this.message=zi.defaultMessages[this.code]||"")}ji.prototype.supportsRaf_="function"==typeof o.a.requestAnimationFrame&&"function"==typeof o.a.cancelAnimationFrame,ji.registerComponent("Component",ji),zi.prototype.code=0,zi.prototype.message="",zi.prototype.status=null,zi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],zi.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 Gi=0;Gi=0;n--)if(t[n].enabled){nn(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,i}m()(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&nn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,nn(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}(en),an=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){an(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,Object.defineProperty(p()(i),"selectedIndex",{get:function(){for(var e=0;e',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),l.a.body.appendChild(n));for(var a={},s=0;sx',e=t.firstChild.href}return e},vn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},yn=function(e,t){void 0===t&&(t=o.a.location);var i=mn(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},_n=Object.freeze({__proto__:null,parseUrl:mn,getAbsoluteURL:gn,getFileExtension:vn,isCrossOrigin:yn}),bn=function(e,t){var i=new o.a.WebVTT.Parser(o.a,o.a.vttjs,o.a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(o.a.console&&o.a.console.groupCollapsed&&o.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach((function(e){return qe.error(e)})),o.a.console&&o.a.console.groupEnd&&o.a.console.groupEnd()),i.flush()},Tn=function(e,t){var i={uri:e},n=yn(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),T()(i,yi(this,(function(e,i,n){if(e)return qe.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 bn(n,t);qe.error("vttjs failed to load, stopping trying to process "+t.src)})):bn(n,t)})))},Sn=function(e){function t(t){var i;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var n=Mi(t,{kind:hn[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=pn[n.mode]||"disabled",a=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),(i=e.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new ln(i.cues_),o=new ln(i.activeCues_),u=!1,l=yi(p()(i),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1))}));return i.tech_.one("dispose",(function(){i.tech_.off("timeupdate",l)})),"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){pn[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||Tn(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)}}(e,i,o,s),o}var Mn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Rn={setCurrentTime:1,setMuted:1,setVolume:1},Un={play:1,pause:1};function Bn(e){return function(t,i){return t===Ln?Ln:i[e]?i[e](t):t}}var Fn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},jn=function(e){void 0===e&&(e="");var t=vn(e);return Fn[t.toLowerCase()]||""};function qn(e){if(!e.type){var t=jn(e.src);t&&(e.type=t)}return e}var Hn=function(e){function t(t,i,n){var r,a=Mi({createEl:!1},i);if(r=e.call(this,t,a,n)||this,i.playerOptions.sources&&0!==i.playerOptions.sources.length)t.src(i.playerOptions.sources);else for(var s=0,o=i.playerOptions.techOrder;s