/** * @license * video.js 7.7.6 * copyright brightcove, inc. * available under apache license version 2.0 * * * includes vtt.js * available under apache license version 2.0 * */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("global/document")):"function"==typeof define&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,function(y,h){"use strict";y=y&&y.hasownproperty("default")?y.default:y,h=h&&h.hasownproperty("default")?h.default:h;var d="7.7.6",l=[],e=function(o,u){return function(e,t,i){var n=u.levels[t],r=new regexp("^("+n+")$");if("log"!==e&&i.unshift(e.touppercase()+":"),i.unshift(o+":"),l){l.push([].concat(i));var a=l.length-1e3;l.splice(0,0',i=n.firstchild,n.setattribute("style","display:none; position:absolute;"),h.body.appendchild(n));for(var a={},s=0;sx',e=t.firstchild.href}return e}function ut(e){if("string"==typeof e){var t=/^(\/?)([\s\s]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().tolowercase()}return""}function mt(e,t){void 0===t&&(t=y.location);var i=nt(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host}var bt=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].enabled){ot(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}he(e,n);var t=e.prototype;return t.addtrack=function(e){var t=this;e.enabled&&ot(this,e),n.prototype.addtrack.call(this,e),e.addeventlistener&&(e.enabledchange_=function(){t.changing_||(t.changing_=!0,ot(t,e),t.changing_=!1,t.trigger("change"))},e.addeventlistener("enabledchange",e.enabledchange_))},t.removetrack=function(e){n.prototype.removetrack.call(this,e),e.removeeventlistener&&e.enabledchange_&&(e.removeeventlistener("enabledchange",e.enabledchange_),e.enabledchange_=null)},e}(pt),jt=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].selected){dt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,object.defineproperty(ue(t),"selectedindex",{get:function(){for(var e=0;e * copyright (c) 2014 david björklund * available under the mit license * */,$t=object.prototype.tostring;var qt=function(e){var r={};return e&&e.trim().split("\n").foreach(function(e){var t=e.indexof(":"),i=e.slice(0,t).trim().tolowercase(),n=e.slice(t+1).trim();"undefined"==typeof r[i]?r[i]=n:array.isarray(r[i])?r[i].push(n):r[i]=[r[i],n]}),r},jt=ti,zt=ti;function ei(e,t,i){var n=e;return yt(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=r({},t,{uri:e}),n.callback=i,n}function ti(e,t,i){return ii(t=ei(e,t,i))}function ii(n){if("undefined"==typeof n.callback)throw new error("callback argument missing");var r=!1,a=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function t(e){return cleartimeout(o),e instanceof error||(e=new error(""+(e||"unknown xmlhttprequest error"))),e.statuscode=0,a(e,m)}function e(){if(!s){var e;cleartimeout(o),e=n.usexdr&&void 0===u.status?200:1223===u.status?204:u.status;var t=m,i=null;return 0!==e?(t={body:function(){var e=void 0;if(e=u.response?u.response:u.responsetext||function(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(e){}return null}(u),f)try{e=json.parse(e)}catch(e){}return e}(),statuscode:e,method:c,headers:{},url:l,rawrequest:u},u.getallresponseheaders&&(t.headers=qt(u.getallresponseheaders()))):i=new error("internal xmlhttprequest error"),a(i,t,t.body)}}var i,s,o,u=n.xhr||null,l=(u=u||(n.cors||n.usexdr?new ti.xdomainrequest:new ti.xmlhttprequest)).url=n.uri||n.url,c=u.method=n.method||"get",h=n.body||n.data,d=u.headers=n.headers||{},p=!!n.sync,f=!1,m={body:void 0,headers:{},statuscode:0,method:c,url:l,rawrequest:u};if("json"in n&&!1!==n.json&&(f=!0,d.accept||d.accept||(d.accept="application/json"),"get"!==c&&"head"!==c&&(d["content-type"]||d["content-type"]||(d["content-type"]="application/json"),h=json.stringify(!0===n.json?h:n.json))),u.onreadystatechange=function(){4===u.readystate&&settimeout(e,0)},u.onload=e,u.onerror=t,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=t,u.open(c,l,!p,n.username,n.password),p||(u.withcredentials=!!n.withcredentials),!p&&0=e?t.push(r):r.starttime===r.endtime&&r.starttime<=e&&r.starttime+.5>=e&&t.push(r)}if(o=!1,t.length!==this.activecues_.length)o=!0;else for(var a=0;a]*>?)?/);return e=t[1]?t[1]:t[2],i=i.substr(e.length),e}function t(e,t){var i=bi[e];if(!i)return null;var n=a.document.createelement(i),r=si[e];return r&&t&&(n[r]=t.trim()),n}for(var n,r,s,o,u=a.document.createelement("div"),l=u,c=[];null!==(n=e());)if("<"!==n[0])l.appendchild(a.document.createtextnode((r=n,_i.innerhtml=r,r=_i.textcontent,_i.textcontent="",r)));else{if("/"===n[1]){c.length&&c[c.length-1]===n.substr(2).replace(">","")&&(c.pop(),l=l.parentnode);continue}var h,d=mi(n.substr(1,n.length-2));if(d){h=a.document.createprocessinginstruction("timestamp",d),l.appendchild(h);continue}var p=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p)continue;if(!(h=t(p[1],p[3])))continue;if(s=l,ki[(o=h).localname]&&ki[o.localname]!==s.localname)continue;if(p[2]){var f=p[2].split(".");f.foreach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(ti.hasownproperty(i)){var n=t?"background-color":"color",r=ti[i];h.style[n]=r}}),h.classname=f.join(" ")}c.push(p[1]),l.appendchild(h),l=h}return u}var ei=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function wi(e){for(var t=0;t=i[0]&&e<=i[1])return!0}return!1}function ai(){}function ii(e,t,i){ai.call(this),this.cue=t,this.cuediv=ci(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundcolor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingmode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodebidi:"plaintext"};this.applystyles(n,this.cuediv),this.div=e.document.createelement("div"),n={direction:function(e){var t=[],i="";if(!e||!e.childnodes)return"ltr";function r(e,t){for(var i=t.childnodes.length-1;0<=i;i--)e.push(t.childnodes[i])}function a(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textcontent||t.innertext;if(i){var n=i.match(/^.*(\n|\r)/);return n?n[e.length=0]:i}return"ruby"===t.tagname?a(e):t.childnodes?(r(e,t),a(e)):void 0}for(r(t,e);i=a(t);)for(var n=0;nh&&(c=c<0?-1:1,c*=math.ceil(h/l)*l),r<0&&(c+=""===n.vertical?o.height:o.width,a=a.reverse()),i.move(d,c)}else{var p=i.lineheight/o.height*100;switch(n.linealign){case"center":r-=p/2;break;case"end":r-=p}switch(n.vertical){case"":t.applystyles({top:t.formatstyle(r,"%")});break;case"rl":t.applystyles({left:t.formatstyle(r,"%")});break;case"lr":t.applystyles({right:t.formatstyle(r,"%")})}a=["+y","-x","+x","-y"],i=new xi(t)}var f=function(e,t){for(var i,n=new xi(e),r=1,a=0;ae.left&&this.tope.top},xi.prototype.overlapsany=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},xi.prototype.overlapsoppositeaxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},xi.prototype.intersectpercentage=function(e){return math.max(0,math.min(this.right,e.right)-math.max(this.left,e.left))*math.max(0,math.min(this.bottom,e.bottom)-math.max(this.top,e.top))/(this.height*this.width)},xi.prototype.tocsscompatvalues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},xi.getsimpleboxposition=function(e){var t=e.div?e.div.offsetheight:e.tagname?e.offsetheight:0,i=e.div?e.div.offsetwidth:e.tagname?e.offsetwidth:0,n=e.div?e.div.offsettop:e.tagname?e.offsettop:0;return{left:(e=e.div?e.div.getboundingclientrect():e.tagname?e.getboundingclientrect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},li.stringdecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new error("error - expected string data.");return decodeuricomponent(encodeuricomponent(e))}}},li.convertcuetodomtree=function(e,t){return e&&t?ci(e,t):null};li.processcues=function(n,r,e){if(!n||!r||!e)return null;for(;e.firstchild;)e.removechild(e.firstchild);var a=n.document.createelement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendchild(a),function(e){for(var t=0;t