!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t(require("global/window"),require("global/document")):"function"==typeofdefine&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,function(v,h){v=v&&v.hasOwnProperty("default")?v.default:v,h=h&&h.hasOwnProperty("default")?h.default:h;vard="7.5.4";functionp(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}functiona(e,t){return(a=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functions(e,t,i){return(s=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,i){varn=[null];n.push.apply(n,t);varr=new(Function.bind.apply(e,n));returni&&a(r,i.prototype),r}).apply(null,arguments)}functionf(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functiont(e,t){returnt||(t=e.slice(0)),e.raw=t,e}varu=[],e=function(s,o){returnfunction(e,t,i){varn=o.levels[t],r=newRegExp("^("+n+")$");if("log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(s+":"),u&&u.push([].concat(i)),v.console){vara=v.console[e];a||"debug"!==e||(a=v.console.info||v.console.log),a&&n&&r.test(e)&&a[Array.isArray(i)?"apply":"call"](v.console,i)}}};varm=functiont(i){varn,r="info",a=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};returnn=e(i,a),a.createLogger=function(e){returnt(i+": "+e)},a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},a.level=function(e){if("string"==typeofe){if(!a.levels.hasOwnProperty(e))thrownewError('"'+e+'" in not a valid log level');r=e}returnr},(a.history=function(){returnu?[].concat(u):[]}).filter=function(t){return(u||[]).filter(function(e){returnnewRegExp(".*"+t+".*").test(e[0])})},a.history.clear=function(){u&&(u.length=0)},a.history.disable=function(){null!==u&&(u.length=0,u=null)},a.history.enable=function(){null===u&&(u=[])},a.error=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnn("error",r,t)},a.warn=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnn("warn",r,t)},a.debug=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnn("debug",r,t)},a}("VIDEOJS"),g=m.createLogger;vary=function(e){for(vart="",i=0;i<arguments.length;i++)t+=e[i].replace(/\n\r?\s*/g,"")+(arguments[i+1]||"");returnt},i=Object.prototype.toString,r=function(e){returnb(e)?Object.keys(e):[]};functiono(t,i){r(t).forEach(function(e){returni(t[e],e)})}function_(i){for(vare=arguments.length,t=newArray(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];returnObject.assign?Object.assign.apply(Object,[i].concat(t)):(t.forEach(function(e){e&&o(e,function(e,t){i[t]=e})}),i)}functionb(e){return!!e&&"object"==typeofe}functionl(e){returnb(e)&&"[object Object]"===i.call(e)&&e.constructor===Object}functionn(e,t){if(!e||!t)return"";if("function"!=typeofv.getComputedStyle)return"";vari=v.getComputedStyle(e);returni?i[t]:""}functionc(){vare=t(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);returnc=function(){returne},e}functionT(e){return"string"==typeofe&&/\S/.test(e)}functionS(e){if(/\s/.test(e))thrownewError("class has illegal whitespace characters")}functionk(){returnh===v.document}functionC(e){returnb(e)&&1===e.nodeType}functionw(){try{returnv.parent!==v.self}catch(e){return!0}}functionE(n){returnfunction(e,t){if(!T(e))returnh[n](null);T(t)&&(t=h.querySelector(t));vari=C(t)?t:h;returni[n]&&i[n](e)}}functionA(e,i,t,n){void0===e&&(e="div"),
/*! @name m3u8-parser @version 4.3.0 @license Apache-2.0 */functionya(){return(ya=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vari=arguments[t];for(varnini)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}returne}).apply(this,arguments)}functionva(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function_a(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}varba=function(){functione(){this.listeners={}}vart=e.prototype;returnt.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;vari=this.listeners[e].indexOf(t);returnthis.listeners[e].splice(i,1),-1<i},t.trigger=function(e){vart,i,n,r=this.listeners[e];if(r)if(2===arguments.length)for(i=r.length,t=0;t<i;++t)r[t].call(this,arguments[1]);elsefor(n=Array.prototype.slice.call(arguments,1),i=r.length,t=0;t<i;++t)r[t].apply(this,n)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),Ta=function(t){functione(){vare;return(e=t.call(this)||this).buffer="",e}returnva(e,t),e.prototype.push=function(e){vart;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},e}(ba),Sa=function(e){for(vart,i=e.split(newRegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),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]);returnn},ka=function(t){functione(){vare;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}va(e,t);vari=e.prototype;returni.push=function(n){varu,l,c=this;0!==(n=n.trim()).length&&("#"===n[0]?this.tagMappers.reduce(function(e,t){vari=t(n);returni===n?e:e.concat([i])},[n]).forEach(function(e){for(vart=0;t<c.customParsers.length;t++)if(c.customParsers[t].call(c,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),u=/^#EXTM3U/.exec(e))c.trigger("data",{type:"tag",tagType:"m3u"});else{if(u=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))returnl={type:"tag",tagType:"inf"},u[1]&&(l.duration=parseFloat(u[1])),u[2]&&(l.title=u[2]),voidc.trigger("data",l);if(u=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"targetduration"},u[1]&&(l.duration=parseInt(u[1],10)),voidc.trigger("data",l);if(u=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"totalduration"},u[1]&&(l.duration=parseInt(u[1],10)),voidc.trigger("data",l);if(u=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"version"},u[1]&&(l.version=parseInt(u[1],10)),voidc.trigger("data",l);if(u=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"media-sequence"},u[1]&&(l.number=parseInt(u[1],10)),voidc.trigger("data",l);if(u=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"discontinuity-sequence"},u[1]&&(l.number=parseInt(u[1],10)),voidc.trigger("data",l);if(u=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))returnl={type:"tag",tagType:"playlist-type"},u[1]&&(l.playlistType=u[1]),voidc.trigger("data",l);if(u=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))returnl={type:"tag",tagType:"byterange"},u[1]&&(l.length=parseInt(u[1],10)),u[2]&&(l.offset=parseInt(u[2],10)),voidc.trigger("data",l);if(u=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))returnl={type:"tag",tagType:"allow-cache"},u[1]&&(l.allowed=!/NO/.test(u[1])),voidc.trigger("data",l);if(u=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"map"},u[1]){vari=Sa(u[1]);if(i.URI&&(l.uri=i.URI),i.BYTERANGE){varn=i.BYTERANGE.split("@"),r=n[0],a=n[1];l.byterange={},r&&(l.byterange.length=parseInt(r,10)),a&&(l.byterange.offset=parseInt(a,10))}}c.trigger("data",l)}elseif(u=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"stream-inf"},u[1]){if(l.attributes=Sa(u[1]),l.attributes.RESOLUTION){vars=l.attri