Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mediaelement

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mediaelement - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

build/lang/de.js

@@ -31,3 +31,3 @@ 'use strict';/*!

"mejs.captions-subtitles": "Überschriften/Untertitel",
// "mejs.captions-chapters": "Chapters",
"mejs.captions-chapters": "Kapitel",
"mejs.none": "Keine",

@@ -34,0 +34,0 @@ "mejs.afrikaans": "Afrikanisch",

@@ -22,3 +22,3 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){},{}],2:[function(a,b,c){(function(c){var d="undefined"!=typeof c?c:"undefined"!=typeof window?window:{},e=a(1);if("undefined"!=typeof document)b.exports=document;else{var f=d["__GLOBAL_DOCUMENT_CACHE@4"];f||(f=d["__GLOBAL_DOCUMENT_CACHE@4"]=e),b.exports=f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:"undefined"!=typeof a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(6),g=d(f),h=a(8),i=a(16),j={lang:"en",en:h.EN};j.language=function(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];if(null!==b&&void 0!==b&&b.length){if("string"!=typeof b[0])throw new TypeError("Language code must be a string value");if(!b[0].match(/^[a-z]{2}(\-[a-z]{2})?$/i))throw new TypeError("Language code must have format `xx` or `xx-xx`");j.lang=b[0],void 0===j[b[0]]?(b[1]=null!==b[1]&&void 0!==b[1]&&"object"===e(b[1])?b[1]:{},j[b[0]]=i.isObjectEmpty(b[1])?h.EN:b[1]):null!==b[1]&&void 0!==b[1]&&"object"===e(b[1])&&(j[b[0]]=b[1])}return j.lang},j.t=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof a&&a.length){var c=void 0,d=void 0,f=j.language(),g=function(a,b,c){if("object"!==("undefined"==typeof a?"undefined":e(a))||"number"!=typeof b||"number"!=typeof c)return a;var d=function(){return[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100===1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100===2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100===3||(arguments.length<=0?void 0:arguments[0])%100===4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10===2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10===1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}]}();return d[c].apply(null,[b].concat(a))};return void 0!==j[f]&&(c=j[f][a],null!==b&&"number"==typeof b&&(d=j[f]["mejs.plural-form"],c=g.apply(null,[c,b,d]))),!c&&j.en&&(c=j.en[a],null!==b&&"number"==typeof b&&(d=j.en["mejs.plural-form"],c=g.apply(null,[c,b,d]))),c=c||a,null!==b&&"number"==typeof b&&(c=c.replace("%1",b)),i.escapeHTML(c)}return a},g["default"].i18n=j,"undefined"!=typeof mejsL10n&&g["default"].i18n.language(mejsL10n.language,mejsL10n.strings),c["default"]=j},{16:16,6:6,8:8}],5:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(16),m=a(17),n=a(7),o=function p(a,b,c){var d=this;e(this,p);var f=this;c=Array.isArray(c)?c:null,f.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain",customError:""},b=Object.assign(f.defaults,b),f.mediaElement=i["default"].createElement(b.fakeNodeName),f.mediaElement.options=b;var g=a,h=!1;if("string"==typeof a?f.mediaElement.originalNode=i["default"].getElementById(a):(f.mediaElement.originalNode=a,g=a.id),g=g||"mejs_"+Math.random().toString().slice(2),void 0!==f.mediaElement.originalNode&&null!==f.mediaElement.originalNode&&f.mediaElement.appendChild){f.mediaElement.originalNode.setAttribute("id",g+"_from_mejs");var j=f.mediaElement.originalNode.tagName.toLowerCase();["video","audio"].includes(j)&&!f.mediaElement.originalNode.getAttribute("preload")&&f.mediaElement.originalNode.setAttribute("preload","none"),f.mediaElement.originalNode.parentNode.insertBefore(f.mediaElement,f.mediaElement.originalNode),f.mediaElement.appendChild(f.mediaElement.originalNode)}f.mediaElement.id=g,f.mediaElement.renderers={},f.mediaElement.renderer=null,f.mediaElement.rendererName=null,f.mediaElement.changeRenderer=function(a,b){var c=d;if(void 0!==c.mediaElement.renderer&&null!==c.mediaElement.renderer&&c.mediaElement.renderer.name===a)return c.mediaElement.renderer.pause(),c.mediaElement.renderer.stop&&c.mediaElement.renderer.stop(),c.mediaElement.renderer.show(),c.mediaElement.renderer.setSrc(b[0].src),!0;void 0!==c.mediaElement.renderer&&null!==c.mediaElement.renderer&&(c.mediaElement.renderer.pause(),c.mediaElement.renderer.stop&&c.mediaElement.renderer.stop(),c.mediaElement.renderer.hide());var e=c.mediaElement.renderers[a],f=null;if(void 0!==e&&null!==e)return e.show(),e.setSrc(b[0].src),c.mediaElement.renderer=e,c.mediaElement.rendererName=a,!0;for(var g=c.mediaElement.options.renderers.length?c.mediaElement.options.renderers:n.renderer.order,h=0,i=g.length;i>h;h++){var j=g[h];if(j===a){var k=n.renderer.renderers;f=k[j];var l=Object.assign(f.options,c.mediaElement.options);return e=f.create(c.mediaElement,l,b),e.name=a,c.mediaElement.renderers[f.name]=e,c.mediaElement.renderer=e,c.mediaElement.rendererName=a,e.show(),!0}}return!1},f.mediaElement.setSize=function(a,b){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&f.mediaElement.renderer.setSize(a,b)},f.mediaElement.createErrorMessage=function(a){a=Array.isArray(a)?a:[];var b=i["default"].createElement("div");b.className="me_cannotplay",b.style.width="100%",b.style.height="100%";var c=f.mediaElement.options.customError;if(!c){var d=f.mediaElement.originalNode.getAttribute("poster");d&&(c+='<img src="'+d+'" width="100%" height="100%" alt="'+k["default"].i18n.t("mejs.download-file")+'">');for(var e=0,g=a.length;g>e;e++){var j=a[e];c+='<a href="'+j.src+'" data-type="'+j.type+'"><span>'+k["default"].i18n.t("mejs.download-file")+": "+j.src+"</span></a>"}}b.innerHTML=c,f.mediaElement.originalNode.parentNode.insertBefore(b,f.mediaElement.originalNode),f.mediaElement.originalNode.style.display="none",h=!0};var o=k["default"].html5media.properties,q=k["default"].html5media.methods,r=function(a,b,c,d){var e=a[b],f=function(){return c.apply(a,[e])},g=function(b){return e=d.apply(a,[b])};Object.defineProperty(a,b,{get:f,set:g})},s=function(a){if("src"!==a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1),c=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer?f.mediaElement.renderer["get"+b]():null},d=function(a){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&f.mediaElement.renderer["set"+b](a)};r(f.mediaElement,a,c,d),f.mediaElement["get"+b]=c,f.mediaElement["set"+b]=d}},t=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer?f.mediaElement.renderer.getSrc():null},u=function(a){var b=[];if("string"==typeof a)b.push({src:a,type:a?m.getTypeFromFile(a):""});else for(var c=0,d=a.length;d>c;c++){var e=m.absolutizeUrl(a[c].src),g=a[c].type;b.push({src:e,type:""!==g&&null!==g&&void 0!==g||!e?g:m.getTypeFromFile(e)})}var h=n.renderer.select(b,f.mediaElement.options.renderers.length?f.mediaElement.options.renderers:[]),i=void 0;return f.mediaElement.paused||(f.mediaElement.pause(),i=l.createEvent("pause",f.mediaElement),f.mediaElement.dispatchEvent(i)),f.mediaElement.originalNode.setAttribute("src",b[0].src||""),f.mediaElement.querySelector(".me_cannotplay")&&f.mediaElement.querySelector(".me_cannotplay").remove(),null===h?(f.mediaElement.createErrorMessage(b),i=l.createEvent("error",f.mediaElement),i.message="No renderer found",void f.mediaElement.dispatchEvent(i)):(f.mediaElement.changeRenderer(h.rendererName,b),void 0===f.mediaElement.renderer||null===f.mediaElement.renderer?(i=l.createEvent("error",f.mediaElement),i.message="Error creating renderer",f.mediaElement.dispatchEvent(i),void f.mediaElement.createErrorMessage(b)):void 0)},v=function(a){f.mediaElement[a]=function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];if(void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&"function"==typeof f.mediaElement.renderer[a])try{f.mediaElement.renderer[a](c)}catch(e){f.mediaElement.createErrorMessage()}return null}};r(f.mediaElement,"src",t,u),f.mediaElement.getSrc=t,f.mediaElement.setSrc=u;for(var w=0,x=o.length;x>w;w++)s(o[w]);for(var y=0,z=q.length;z>y;y++)v(q[y]);f.mediaElement.events={},f.mediaElement.addEventListener=function(a,b){f.mediaElement.events[a]=f.mediaElement.events[a]||[],f.mediaElement.events[a].push(b)},f.mediaElement.removeEventListener=function(a,b){if(!a)return f.mediaElement.events={},!0;var c=f.mediaElement.events[a];if(!c)return!0;if(!b)return f.mediaElement.events[a]=[],!0;for(var d=0;d<c.length;d++)if(c[d]===b)return f.mediaElement.events[a].splice(d,1),!0;return!1},f.mediaElement.dispatchEvent=function(a){var b=f.mediaElement.events[a.type];if(b)for(var c=0;c<b.length;c++)b[c].apply(null,[a])};var A=void 0;if(null!==c)A=c;else if(null!==f.mediaElement.originalNode)switch(A=[],f.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":A.push({type:"",src:f.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var B=f.mediaElement.originalNode.childNodes.length,C=f.mediaElement.originalNode.getAttribute("src");if(C){var D=f.mediaElement.originalNode;A.push({type:m.formatType(C,D.getAttribute("type")),src:C})}for(var E=0;B>E;E++){var F=f.mediaElement.originalNode.childNodes[E];if(F.nodeType===Node.ELEMENT_NODE&&"source"===F.tagName.toLowerCase()){var G=F.getAttribute("src"),H=m.formatType(G,F.getAttribute("type"));A.push({type:H,src:G})}}}return A.length&&(f.mediaElement.src=A),f.mediaElement.options.success&&f.mediaElement.options.success(f.mediaElement,f.mediaElement.originalNode),h&&f.mediaElement.options.error&&f.mediaElement.options.error(f.mediaElement,f.mediaElement.originalNode),f.mediaElement};g["default"].MediaElement=o,c["default"]=o},{16:16,17:17,2:2,3:3,6:6,7:7}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0});var e=a(3),f=d(e),g={};g.version="4.1.0",g.html5media={properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","progress","suspend","abort","error","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg"]},f["default"].mejs=g,c["default"]=g},{3:3}],7:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0}),c.renderer=void 0;var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=a(6),i=d(h),j=function(){function a(){e(this,a),this.renderers={},this.order=[]}return g(a,[{key:"add",value:function(a){if(void 0===a.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[a.name]=a,this.order.push(a.name)}},{key:"select",value:function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=b.length;if(b=b.length?b:this.order,!c){var d=[/^(html5|native)/,/^flash/,/iframe$/],e=function(a){for(var b=0,c=d.length;c>b;b++)if(null!==a.match(d[b]))return b;return d.length};b.sort(function(a,b){return e(a)-e(b)})}for(var f=0,g=b.length;g>f;f++){var h=b[f],i=this.renderers[h];if(null!==i&&void 0!==i)for(var j=0,k=a.length;k>j;j++)if("function"==typeof i.canPlayType&&"string"==typeof a[j].type&&i.canPlayType(a[j].type))return{rendererName:i.name,src:a[j].src}}return null}},{key:"order",set:function(a){if(!Array.isArray(a))throw new TypeError("order must be an array of strings.");this._order=a},get:function(){return this._order}},{key:"renderers",set:function(a){if(null!==a&&"object"!==("undefined"==typeof a?"undefined":f(a)))throw new TypeError("renderers must be an array of objects.");this._renderers=a},get:function(){return this._renderers}}]),a}(),k=c.renderer=new j;i["default"].Renderers=k},{6:6}],8:[function(a,b,c){"use strict";/*!
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){},{}],2:[function(a,b,c){(function(c){var d="undefined"!=typeof c?c:"undefined"!=typeof window?window:{},e=a(1);if("undefined"!=typeof document)b.exports=document;else{var f=d["__GLOBAL_DOCUMENT_CACHE@4"];f||(f=d["__GLOBAL_DOCUMENT_CACHE@4"]=e),b.exports=f}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(a,b,c){(function(a){"undefined"!=typeof window?b.exports=window:"undefined"!=typeof a?b.exports=a:"undefined"!=typeof self?b.exports=self:b.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(6),g=d(f),h=a(8),i=a(16),j={lang:"en",en:h.EN};j.language=function(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];if(null!==b&&void 0!==b&&b.length){if("string"!=typeof b[0])throw new TypeError("Language code must be a string value");if(!/^[a-z]{2}(\-[a-z]{2})?$/i.test(b[0]))throw new TypeError("Language code must have format `xx` or `xx-xx`");j.lang=b[0],void 0===j[b[0]]?(b[1]=null!==b[1]&&void 0!==b[1]&&"object"===e(b[1])?b[1]:{},j[b[0]]=i.isObjectEmpty(b[1])?h.EN:b[1]):null!==b[1]&&void 0!==b[1]&&"object"===e(b[1])&&(j[b[0]]=b[1])}return j.lang},j.t=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof a&&a.length){var c=void 0,d=void 0,f=j.language(),g=function(a,b,c){if("object"!==("undefined"==typeof a?"undefined":e(a))||"number"!=typeof b||"number"!=typeof c)return a;var d=function(){return[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1&&(arguments.length<=0?void 0:arguments[0])%100!==11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100===1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100===2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100===3||(arguments.length<=0?void 0:arguments[0])%100===4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10===1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10===2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10===1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}]}();return d[c].apply(null,[b].concat(a))};return void 0!==j[f]&&(c=j[f][a],null!==b&&"number"==typeof b&&(d=j[f]["mejs.plural-form"],c=g.apply(null,[c,b,d]))),!c&&j.en&&(c=j.en[a],null!==b&&"number"==typeof b&&(d=j.en["mejs.plural-form"],c=g.apply(null,[c,b,d]))),c=c||a,null!==b&&"number"==typeof b&&(c=c.replace("%1",b)),i.escapeHTML(c)}return a},g["default"].i18n=j,"undefined"!=typeof mejsL10n&&g["default"].i18n.language(mejsL10n.language,mejsL10n.strings),c["default"]=j},{16:16,6:6,8:8}],5:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(16),m=a(17),n=a(7),o=a(15),p=function q(a,b,c){var d=this;e(this,q);var f=this;c=Array.isArray(c)?c:null,f.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain",customError:""},b=Object.assign(f.defaults,b),f.mediaElement=i["default"].createElement(b.fakeNodeName),f.mediaElement.options=b;var h=a,j=!1;if("string"==typeof a?f.mediaElement.originalNode=i["default"].getElementById(a):(f.mediaElement.originalNode=a,h=a.id),h=h||"mejs_"+Math.random().toString().slice(2),void 0!==f.mediaElement.originalNode&&null!==f.mediaElement.originalNode&&f.mediaElement.appendChild){f.mediaElement.originalNode.setAttribute("id",h+"_from_mejs");var p=f.mediaElement.originalNode.tagName.toLowerCase();~["video","audio"].indexOf(p)&&!f.mediaElement.originalNode.getAttribute("preload")&&f.mediaElement.originalNode.setAttribute("preload","none"),f.mediaElement.originalNode.parentNode.insertBefore(f.mediaElement,f.mediaElement.originalNode),f.mediaElement.appendChild(f.mediaElement.originalNode)}f.mediaElement.id=h,f.mediaElement.renderers={},f.mediaElement.renderer=null,f.mediaElement.rendererName=null,f.mediaElement.changeRenderer=function(a,b){var c=d;if(void 0!==c.mediaElement.renderer&&null!==c.mediaElement.renderer&&c.mediaElement.renderer.name===a)return c.mediaElement.renderer.pause(),c.mediaElement.renderer.stop&&c.mediaElement.renderer.stop(),c.mediaElement.renderer.show(),c.mediaElement.renderer.setSrc(b[0].src),!0;void 0!==c.mediaElement.renderer&&null!==c.mediaElement.renderer&&(c.mediaElement.renderer.pause(),c.mediaElement.renderer.stop&&c.mediaElement.renderer.stop(),c.mediaElement.renderer.hide());var e=c.mediaElement.renderers[a],f=null;if(void 0!==e&&null!==e)return e.show(),e.setSrc(b[0].src),c.mediaElement.renderer=e,c.mediaElement.rendererName=a,!0;for(var g=c.mediaElement.options.renderers.length?c.mediaElement.options.renderers:n.renderer.order,h=0,i=g.length;i>h;h++){var j=g[h];if(j===a){var k=n.renderer.renderers;f=k[j];var l=Object.assign(f.options,c.mediaElement.options);return e=f.create(c.mediaElement,l,b),e.name=a,c.mediaElement.renderers[f.name]=e,c.mediaElement.renderer=e,c.mediaElement.rendererName=a,e.show(),!0}}return!1},f.mediaElement.setSize=function(a,b){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&f.mediaElement.renderer.setSize(a,b)},f.mediaElement.createErrorMessage=function(a){a=Array.isArray(a)?a:[];var b=i["default"].createElement("div");b.className="me_cannotplay",b.style.width="100%",b.style.height="100%";var c=f.mediaElement.options.customError;if(!c){var d=f.mediaElement.originalNode.getAttribute("poster");d&&(c+='<img src="'+d+'" width="100%" height="100%" alt="'+k["default"].i18n.t("mejs.download-file")+'">');for(var e=0,g=a.length;g>e;e++){var h=a[e];c+='<a href="'+h.src+'" data-type="'+h.type+'"><span>'+k["default"].i18n.t("mejs.download-file")+": "+h.src+"</span></a>"}}b.innerHTML=c,f.mediaElement.originalNode.parentNode.insertBefore(b,f.mediaElement.originalNode),f.mediaElement.originalNode.style.display="none",j=!0};var r=k["default"].html5media.properties,s=k["default"].html5media.methods,t=function(a,b,c,d){var e=a[b],f=function(){return c.apply(a,[e])},g=function(b){return e=d.apply(a,[b])};Object.defineProperty(a,b,{get:f,set:g})},u=function(a){if("src"!==a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1),c=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer?f.mediaElement.renderer["get"+b]():null},d=function(a){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&f.mediaElement.renderer["set"+b](a)};t(f.mediaElement,a,c,d),f.mediaElement["get"+b]=c,f.mediaElement["set"+b]=d}},v=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer?f.mediaElement.renderer.getSrc():null},w=function(a){var b=[];if("string"==typeof a)b.push({src:a,type:a?m.getTypeFromFile(a):""});else for(var c=0,d=a.length;d>c;c++){var e=m.absolutizeUrl(a[c].src),g=a[c].type;b.push({src:e,type:""!==g&&null!==g&&void 0!==g||!e?g:m.getTypeFromFile(e)})}var h=n.renderer.select(b,f.mediaElement.options.renderers.length?f.mediaElement.options.renderers:[]),i=void 0;return f.mediaElement.paused||(f.mediaElement.pause(),i=l.createEvent("pause",f.mediaElement),f.mediaElement.dispatchEvent(i)),f.mediaElement.originalNode.setAttribute("src",b[0].src||""),f.mediaElement.querySelector(".me_cannotplay")&&f.mediaElement.querySelector(".me_cannotplay").remove(),null===h?(f.mediaElement.createErrorMessage(b),i=l.createEvent("error",f.mediaElement),i.message="No renderer found",void f.mediaElement.dispatchEvent(i)):(f.mediaElement.changeRenderer(h.rendererName,b),void 0===f.mediaElement.renderer||null===f.mediaElement.renderer?(i=l.createEvent("error",f.mediaElement),i.message="Error creating renderer",f.mediaElement.dispatchEvent(i),void f.mediaElement.createErrorMessage(b)):void 0)},x=function(a){f.mediaElement[a]=function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];if(void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&"function"==typeof f.mediaElement.renderer[a])try{f.mediaElement.renderer[a](c)}catch(e){f.mediaElement.createErrorMessage()}return null}};t(f.mediaElement,"src",v,w),f.mediaElement.getSrc=v,f.mediaElement.setSrc=w;for(var y=0,z=r.length;z>y;y++)u(r[y]);for(var A=0,B=s.length;B>A;A++)x(s[A]);f.mediaElement.events={},f.mediaElement.addEventListener=function(a,b){f.mediaElement.events[a]=f.mediaElement.events[a]||[],f.mediaElement.events[a].push(b)},f.mediaElement.removeEventListener=function(a,b){if(!a)return f.mediaElement.events={},!0;var c=f.mediaElement.events[a];if(!c)return!0;if(!b)return f.mediaElement.events[a]=[],!0;for(var d=0;d<c.length;d++)if(c[d]===b)return f.mediaElement.events[a].splice(d,1),!0;return!1},f.mediaElement.dispatchEvent=function(a){var b=f.mediaElement.events[a.type];if(b)for(var c=0;c<b.length;c++)b[c].apply(null,[a])};var C=function(a,b){if(~k["default"].html5media.mediaTypes.indexOf(b)&&"https:"===g["default"].location.protocol&&o.IS_IOS&&!g["default"].MSStream){var c=new XMLHttpRequest;c.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var b=g["default"].URL||g["default"].webkitURL,c=b.createObjectURL(this.response);return f.mediaElement.originalNode.setAttribute("src",c),c}return a},c.open("GET",a),c.responseType="blob",c.send()}return a},D=void 0;if(null!==c)D=c;else if(null!==f.mediaElement.originalNode)switch(D=[],f.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":D.push({type:"",src:f.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var E=f.mediaElement.originalNode.childNodes.length,F=f.mediaElement.originalNode.getAttribute("src");if(F){var G=f.mediaElement.originalNode,H=m.formatType(F,G.getAttribute("type"));D.push({type:H,src:C(F,H)})}for(var I=0;E>I;I++){var J=f.mediaElement.originalNode.childNodes[I];if(J.nodeType===Node.ELEMENT_NODE&&"source"===J.tagName.toLowerCase()){var K=J.getAttribute("src"),L=m.formatType(K,J.getAttribute("type"));D.push({type:L,src:C(K,L)})}}}return D.length&&(f.mediaElement.src=D),f.mediaElement.options.success&&f.mediaElement.options.success(f.mediaElement,f.mediaElement.originalNode),j&&f.mediaElement.options.error&&f.mediaElement.options.error(f.mediaElement,f.mediaElement.originalNode),f.mediaElement};g["default"].MediaElement=p,c["default"]=p},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],6:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0});var e=a(3),f=d(e),g={};g.version="4.1.1",g.html5media={properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","progress","suspend","abort","error","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]},f["default"].mejs=g,c["default"]=g},{3:3}],7:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0}),c.renderer=void 0;var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=a(6),i=d(h),j=function(){function a(){e(this,a),this.renderers={},this.order=[]}return g(a,[{key:"add",value:function(a){if(void 0===a.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[a.name]=a,this.order.push(a.name)}},{key:"select",value:function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=b.length;if(b=b.length?b:this.order,!c){var d=[/^(html5|native)/i,/^flash/i,/iframe$/i],e=function(a){for(var b=0,c=d.length;c>b;b++)if(d[b].test(a))return b;return d.length};b.sort(function(a,b){return e(a)-e(b)})}for(var f=0,g=b.length;g>f;f++){var h=b[f],i=this.renderers[h];if(null!==i&&void 0!==i)for(var j=0,k=a.length;k>j;j++)if("function"==typeof i.canPlayType&&"string"==typeof a[j].type&&i.canPlayType(a[j].type))return{rendererName:i.name,src:a[j].src}}return null}},{key:"order",set:function(a){if(!Array.isArray(a))throw new TypeError("order must be an array of strings.");this._order=a},get:function(){return this._order}},{key:"renderers",set:function(a){if(null!==a&&"object"!==("undefined"==typeof a?"undefined":f(a)))throw new TypeError("renderers must be an array of objects.");this._renderers=a},get:function(){return this._renderers}}]),a}(),k=c.renderer=new j;i["default"].Renderers=k},{6:6}],8:[function(a,b,c){"use strict";/*!
* This is a `i18n` language object.

@@ -34,3 +34,3 @@ *

*/
Object.defineProperty(c,"__esModule",{value:!0});c.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],9:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(17),n=a(15),o={isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof dashjs)o.createInstance(a);else if(!o.isScriptLoaded){a.options.path="string"==typeof a.options.path?a.options.path:"//cdn.dashjs.org/latest/dash.mediaplayer.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isScriptLoaded=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isScriptLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=dashjs.MediaPlayer().create();f["default"]["__ready__"+a.id](b)}},p={name:"native_dash",options:{prefix:"native_dash",dash:{path:"//cdn.dashjs.org/latest/dash.mediaplayer.min.js",debug:!1}},canPlayType:function(a){return n.HAS_MSE&&["application/dash+xml"].includes(a)},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=d.getAttribute("preload"),h=d.autoplay,i=null,m=null;i=d.cloneNode(!0),b=Object.assign(b,a.options);for(var n=j["default"].html5media.properties,p=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);i["get"+b]=function(){return null!==m?i[a]:null},i["set"+b]=function(b){j["default"].html5media.readOnlyProperties.includes(a)||null!==m&&("src"===a&&(m.attachSource(b),h&&i.play()),i[a]=b)}},q=0,r=n.length;r>q;q++)p(n[q]);if(f["default"]["__ready__"+e]=function(c){a.dashPlayer=m=c,m.getDebug().setLogToBrowserConsole(b.dash.debug),m.setAutoPlay(g&&"auto"===g||h),m.setScheduleWhilePaused(g&&"auto"===g||h);for(var d=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),e=dashjs.MediaPlayer.events,f=function(b){"loadedmetadata"===b&&m.initialize(i,i.src,!1),i.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},k=0,n=d.length;n>k;k++)f(d[k]);var o=function(b){var c=l.createEvent(b.type,i);c.data=b,a.dispatchEvent(c),"error"===b.type.toLowerCase()&&console.error(b)};for(var p in e)e.hasOwnProperty(p)&&m.on(e[p],o)},c&&c.length>0)for(var s=0,t=c.length;t>s;s++)if(k.renderer.renderers[b.prefix].canPlayType(c[s].type)){i.setAttribute("src",c[s].src);break}i.setAttribute("id",e),d.parentNode.insertBefore(i,d),d.autoplay=!1,d.style.display="none",o.prepareSettings({options:b.dash,id:e}),i.setSize=function(a,b){return i.style.width=a+"px",i.style.height=b+"px",i},i.hide=function(){return i.pause(),i.style.display="none",i},i.show=function(){return i.style.display="",i};var u=l.createEvent("rendererready",i);return a.dispatchEvent(u),i}};m.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes(".mpd")?"application/dash+xml":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],10:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0}),c.PluginDetector=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(4),m=d(l),n=a(7),o=a(16),p=a(15),q=a(17),r=c.PluginDetector={plugins:[],hasPluginVersion:function(a,b){var c=r.plugins[a];return b[1]=b[1]||0,b[2]=b[2]||0,c[0]>b[0]||c[0]===b[0]&&c[1]>b[1]||c[0]===b[0]&&c[1]===b[1]&&c[2]>=b[2]},addPlugin:function(a,b,c,d,e){r.plugins[a]=r.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var f=[0,0,0],h=void 0,i=void 0;if(null!==p.NAV.plugins&&void 0!==p.NAV.plugins&&"object"===e(p.NAV.plugins[a])){if(h=p.NAV.plugins[a].description,h&&("undefined"==typeof p.NAV.mimeTypes||!p.NAV.mimeTypes[b]||p.NAV.mimeTypes[b].enabledPlugin)){f=h.replace(a,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(var j=0,k=f.length;k>j;j++)f[j]=parseInt(f[j].match(/\d+/),10)}}else if(void 0!==g["default"].ActiveXObject)try{i=new ActiveXObject(c),i&&(f=d(i))}catch(l){}return f}};r.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(a){var b=[],c=a.GetVariable("$version");return c&&(c=c.split(" ")[1].split(","),b=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]),b});var s={create:function(a,b,c){var d={};d.options=b,d.id=a.id+"_"+d.options.prefix,d.mediaElement=a,d.flashState={},d.flashApi=null,d.flashApiStack=[];for(var e=k["default"].html5media.properties,f=function(a){d.flashState[a]=null;var b=""+a.substring(0,1).toUpperCase()+a.substring(1);d["get"+b]=function(){if(null!==d.flashApi){if(void 0!==d.flashApi["get_"+a]){var b=d.flashApi["get_"+a]();return"buffered"===a?{start:function(){return 0},end:function(){return b},length:1}:b}return null}return null},d["set"+b]=function(b){"src"===a&&(b=q.absolutizeUrl(b)),null!==d.flashApi&&void 0!==d.flashApi["set_"+a]?d.flashApi["set_"+a](b):d.flashApiStack.push({type:"set",propName:a,value:b})}},h=0,j=e.length;j>h;h++)f(e[h]);var l=k["default"].html5media.methods,r=function(a){d[a]=function(){if(null!==d.flashApi){if(d.flashApi["fire_"+a])try{d.flashApi["fire_"+a]()}catch(b){}}else d.flashApiStack.push({type:"call",methodName:a})}};l.push("stop");for(var s=0,t=l.length;t>s;s++)r(l[s]);for(var u=["rendererready"],v=0,w=u.length;w>v;v++){var x=o.createEvent(u[v],d);a.dispatchEvent(x)}g["default"]["__ready__"+d.id]=function(){if(d.flashReady=!0,d.flashApi=i["default"].getElementById("__"+d.id),d.flashApiStack.length)for(var a=0,b=d.flashApiStack.length;b>a;a++){var c=d.flashApiStack[a];if("set"===c.type){var e=c.propName,f=""+e.substring(0,1).toUpperCase()+e.substring(1);d["set"+f](c.value)}else"call"===c.type&&d[c.methodName]()}},g["default"]["__event__"+d.id]=function(a,b){var c=o.createEvent(a,d);c.message=b||"",d.mediaElement.dispatchEvent(c)},d.flashWrapper=i["default"].createElement("div"),["always","sameDomain"].includes(d.options.shimScriptAccess)||(d.options.shimScriptAccess="sameDomain");var y=a.originalNode.autoplay,z=["uid="+d.id,"autoplay="+y,"allowScriptAccess="+d.options.shimScriptAccess],A=null!==a.originalNode&&"video"===a.originalNode.tagName.toLowerCase(),B=A?a.originalNode.height:1,C=A?a.originalNode.width:1;a.originalNode.getAttribute("src")&&z.push("src="+a.originalNode.getAttribute("src")),d.options.enablePseudoStreaming===!0&&(z.push("pseudostreamstart="+d.options.pseudoStreamingStartQueryParam),z.push("pseudostreamtype="+d.options.pseudoStreamingType)),a.appendChild(d.flashWrapper),null!==a.originalNode&&(a.originalNode.style.display="none");var D=[];if(p.IS_IE){var E=i["default"].createElement("div");d.flashWrapper.appendChild(E),D=['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+d.id+'"','width="'+C+'"','height="'+B+'"'],A||D.push('style="clip: rect(0 0 0 0); position: absolute;"'),E.outerHTML="<object "+D.join(" ")+">"+('<param name="movie" value="'+d.options.pluginPath+d.options.filename+"?x="+new Date+'" />')+('<param name="flashvars" value="'+z.join("&amp;")+'" />')+'<param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" />'+('<param name="allowScriptAccess" value="'+d.options.shimScriptAccess+'" />')+'<param name="allowFullScreen" value="true" />'+("<div>"+m["default"].t("mejs.install-flash")+"</div>")+"</object>"}else D=['id="__'+d.id+'"','name="__'+d.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+d.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+d.options.pluginPath+d.options.filename+'"','flashvars="'+z.join("&")+'"','width="'+C+'"','height="'+B+'"'],A||D.push('style="clip: rect(0 0 0 0); position: absolute;"'),d.flashWrapper.innerHTML="<embed "+D.join(" ")+">";if(d.flashNode=d.flashWrapper.lastChild,d.hide=function(){A&&(d.flashNode.style.display="none")},d.show=function(){A&&(d.flashNode.style.display="")},d.setSize=function(a,b){d.flashNode.style.width=a+"px",d.flashNode.style.height=b+"px",null!==d.flashApi&&"function"==typeof d.flashApi.fire_setSize&&d.flashApi.fire_setSize(a,b)},d.destroy=function(){d.flashNode.remove()},c&&c.length>0)for(var F=0,G=c.length;G>F;F++)if(n.renderer.renderers[b.prefix].canPlayType(c[F].type)){d.setSrc(c[F].src);break}return d}},t=r.hasPluginVersion("flash",[10,0,0]);if(t){q.typeChecks.push(function(a){return a=a.toLowerCase(),a.startsWith("rtmp")?a.includes(".mp3")?"audio/rtmp":"video/rtmp":a.includes(".oga")||a.includes(".ogg")?"audio/ogg":a.includes(".m3u8")?"application/x-mpegURL":a.includes(".mpd")?"application/dash+xml":a.includes(".flv")?"video/flv":null});var u={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte"},canPlayType:function(a){return["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].includes(a.toLowerCase())},create:s.create};n.renderer.add(u);var v={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(a){return["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].includes(a.toLowerCase())},create:s.create};n.renderer.add(v);var w={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(a){return["application/dash+xml"].includes(a.toLowerCase())},create:s.create};n.renderer.add(w);var x={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(a){return["audio/mp3"].includes(a.toLowerCase())},create:s.create};n.renderer.add(x);var y={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(a){return["audio/ogg","audio/oga","audio/ogv"].includes(a.toLowerCase())},create:s.create};n.renderer.add(y)}},{15:15,16:16,17:17,2:2,3:3,4:4,6:6,7:7}],11:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n=a(17),o={isMediaStarted:!1,isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof flvjs)o.createInstance(a);else if(!o.isMediaStarted){a.options.path="string"==typeof a.options.path?a.options.path:"//cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isMediaStarted=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isMediaLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=flvjs.createPlayer(a.options);f["default"]["__ready__"+a.id](b)}},p={name:"native_flv",options:{prefix:"native_flv",flv:{path:"//cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js",cors:!0}},canPlayType:function(a){return m.HAS_MSE&&["video/x-flv","video/flv"].includes(a)},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=null,h=null;g=d.cloneNode(!0),b=Object.assign(b,a.options);for(var i=j["default"].html5media.properties,m=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);g["get"+b]=function(){return null!==h?g[a]:null},g["set"+b]=function(b){j["default"].html5media.readOnlyProperties.includes(a)||null!==h&&(g[a]=b,"src"===a&&(h.unload(),h.detachMediaElement(),h.attachMediaElement(g),h.load()))}},n=0,p=i.length;p>n;n++)m(i[n]);if(f["default"]["__ready__"+e]=function(b){a.flvPlayer=h=b;for(var c=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),d=function(b){"loadedmetadata"===b&&(h.unload(),h.detachMediaElement(),h.attachMediaElement(g),h.load()),g.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},e=0,f=c.length;f>e;e++)d(c[e])},c&&c.length>0)for(var q=0,r=c.length;r>q;q++)if(k.renderer.renderers[b.prefix].canPlayType(c[q].type)){g.setAttribute("src",c[q].src);break}g.setAttribute("id",e),d.parentNode.insertBefore(g,d),d.autoplay=!1,d.style.display="none",b.flv.type="flv",b.flv.url=g.getAttribute("src"),o.prepareSettings({options:b.flv,id:e}),g.setSize=function(a,b){return g.style.width=a+"px",g.style.height=b+"px",g},g.hide=function(){return null!==h&&h.pause(),g.style.display="none",g},g.show=function(){return g.style.display="",g},g.destroy=function(){null!==h&&h.destroy()};var s=l.createEvent("rendererready",g);return a.dispatchEvent(s),g}};n.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes(".flv")?"video/flv":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],12:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n=a(17),o={isMediaStarted:!1,isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof Hls)o.createInstance(a);else if(!o.isMediaStarted){a.options.path="string"==typeof a.options.path?a.options.path:"//cdn.jsdelivr.net/hls.js/latest/hls.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isMediaStarted=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isMediaLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=new Hls(a.options);return f["default"]["__ready__"+a.id](b),b}},p={name:"native_hls",options:{prefix:"native_hls",hls:{path:"//cdn.jsdelivr.net/hls.js/latest/hls.min.js",autoStartLoad:!1,debug:!1}},canPlayType:function(a){return m.HAS_MSE&&["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].includes(a.toLowerCase())},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=d.getAttribute("preload"),h=d.autoplay,i=null,m=null;m=d.cloneNode(!0),b=Object.assign(b,a.options),b.hls.autoStartLoad=g&&"none"!==g||h;for(var n=j["default"].html5media.properties,p=function(a){var c=""+a.substring(0,1).toUpperCase()+a.substring(1);m["get"+c]=function(){return null!==i?m[a]:null},m["set"+c]=function(c){j["default"].html5media.readOnlyProperties.includes(a)||null!==i&&(m[a]=c,"src"===a&&(i.destroy(),i=o.createInstance({options:b.hls,id:e}),i.loadSource(c),i.attachMedia(m)))}},q=0,r=n.length;r>q;q++)p(n[q]);if(f["default"]["__ready__"+e]=function(b){a.hlsPlayer=i=b;for(var c=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),d=Hls.Events,e=function(b){if("loadedmetadata"===b){var c=a.originalNode.src;i.detachMedia(),i.loadSource(c),i.attachMedia(m)}m.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},f=0,g=c.length;g>f;f++)e(c[f]);var h=void 0,k=void 0,n=function(b,c){var d=l.createEvent(b,m);if(d.data=c,a.dispatchEvent(d),"hlsError"===b&&(console.warn(b,c),c.fatal))switch(c.type){case"mediaError":var e=(new Date).getTime();!h||e-h>3e3?(h=(new Date).getTime(),i.recoverMediaError()):!k||e-k>3e3?(k=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),i.swapAudioCodec(),i.recoverMediaError()):console.error("Cannot recover, last media error recovery failed");break;case"networkError":console.error("Network error");break;default:i.destroy()}};for(var o in d)d.hasOwnProperty(o)&&i.on(d[o],n)},c&&c.length>0)for(var s=0,t=c.length;t>s;s++)if(k.renderer.renderers[b.prefix].canPlayType(c[s].type)){m.setAttribute("src",c[s].src);break}"auto"===g||h||(m.addEventListener("play",function(){null!==i&&i.startLoad()}),m.addEventListener("pause",function(){null!==i&&i.stopLoad()})),m.setAttribute("id",e),d.parentNode.insertBefore(m,d),d.autoplay=!1,d.style.display="none",o.prepareSettings({options:b.hls,id:e}),m.setSize=function(a,b){return m.style.width=a+"px",m.style.height=b+"px",m},m.hide=function(){return m.pause(),m.style.display="none",m},m.show=function(){return m.style.display="",m},m.destroy=function(){null!==i&&i.destroy()},m.stop=function(){null!==i&&i.stopLoad()};var u=l.createEvent("rendererready",m);return a.dispatchEvent(u),m}};n.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes(".m3u8")?"application/x-mpegURL":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],13:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n={name:"html5",options:{prefix:"html5"},canPlayType:function(a){var b=h["default"].createElement("video");return m.IS_ANDROID&&null!==a.match(/\/mp(3|4)$/gi)||["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].includes(a.toLowerCase())&&m.SUPPORTS_NATIVE_HLS?"yes":b.canPlayType?b.canPlayType(a).replace(/no/,""):""},create:function(a,b,c){var d=a.id+"_"+b.prefix,e=null;void 0===a.originalNode||null===a.originalNode?(e=h["default"].createElement("audio"),a.appendChild(e)):e=a.originalNode,e.setAttribute("id",d);for(var f=j["default"].html5media.properties,g=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);e["get"+b]=function(){return e[a]},e["set"+b]=function(b){j["default"].html5media.readOnlyProperties.includes(a)||(e[a]=b)}},i=0,m=f.length;m>i;i++)g(f[i]);for(var n=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),o=function(b){e.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},p=0,q=n.length;q>p;p++)o(n[p]);if(e.setSize=function(a,b){return e.style.width=a+"px",e.style.height=b+"px",e},e.hide=function(){return e.style.display="none",e},e.show=function(){return e.style.display="",e},c&&c.length>0)for(var r=0,s=c.length;s>r;r++)if(k.renderer.renderers[b.prefix].canPlayType(c[r].type)){e.setAttribute("src",c[r].src);break}var t=l.createEvent("rendererready",e);return a.dispatchEvent(t),e}};f["default"].HtmlMediaElement=j["default"].HtmlMediaElement=n,k.renderer.add(n)},{15:15,16:16,2:2,3:3,6:6,7:7}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(7),m=a(16),n=a(17),o={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){o.isLoaded="undefined"!=typeof YT&&YT.loaded,o.isLoaded?o.createIframe(a):(o.loadIframeApi(),o.iframeQueue.push(a))},loadIframeApi:function(){if(!o.isIframeStarted){var a=i["default"].createElement("script");a.src="//www.youtube.com/player_api";var b=i["default"].getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),o.isIframeStarted=!0}},iFrameReady:function(){for(o.isLoaded=!0,o.isIframeLoaded=!0;o.iframeQueue.length>0;){var a=o.iframeQueue.pop();o.createIframe(a)}},createIframe:function(a){return new YT.Player(a.containerId,a)},getYouTubeId:function(a){var b="";return a.indexOf("?")>0?(b=o.getYouTubeIdFromParam(a),""===b&&(b=o.getYouTubeIdFromUrl(a))):b=o.getYouTubeIdFromUrl(a),b},getYouTubeIdFromParam:function(a){if(void 0===a||null===a||!a.trim().length)return null;for(var b=a.split("?"),c=b[1].split("&"),d="",e=0,f=c.length;f>e;e++){var g=c[e].split("=");if("v"===g[0]){d=g[1];break}}return d},getYouTubeIdFromUrl:function(a){if(void 0===a||null===a||!a.trim().length)return null;var b=a.split("?");return a=b[0],a.substring(a.lastIndexOf("/")+1)},getYouTubeNoCookieUrl:function(a){if(void 0===a||null===a||!a.trim().length||!a.includes("//www.youtube"))return a;var b=a.split("/");return b[2]=b[2].replace(".com","-nocookie.com"),b.join("/")}},p={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1}},canPlayType:function(a){return["video/youtube","video/x-youtube"].includes(a)},create:function(a,b,c){var d={},e=[],f=4,h=null,j=!0,l=!1,n=null,p=1;d.options=b,d.id=a.id+"_"+b.prefix,d.mediaElement=a;for(var q=k["default"].html5media.properties,r=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);d["get"+c]=function(){if(null!==h){var a=null;switch(b){case"currentTime":return h.getCurrentTime();case"duration":return h.getDuration();case"volume":return p=h.getVolume()/100;case"paused":return j;case"ended":return l;case"muted":return h.isMuted();case"buffered":var c=h.getVideoLoadedFraction(),d=h.getDuration();return{start:function(){return 0},end:function(){return c*d},length:1};case"src":return h.getVideoUrl();case"readyState":return f}return a}return null},d["set"+c]=function(c){if(null!==h)switch(b){case"src":var f="string"==typeof c?c:c[0].src,g=o.getYouTubeId(f);a.originalNode.autoplay?h.loadVideoById(g):h.cueVideoById(g);break;case"currentTime":h.seekTo(c);break;case"muted":c?h.mute():h.unMute(),setTimeout(function(){var b=m.createEvent("volumechange",d);a.dispatchEvent(b)},50);break;case"volume":p=c,h.setVolume(100*c),setTimeout(function(){var b=m.createEvent("volumechange",d);a.dispatchEvent(b)},50);break;case"readyState":var i=m.createEvent("canplay",d);a.dispatchEvent(i)}else e.push({type:"set",propName:b,value:c})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=k["default"].html5media.methods,v=function(a){d[a]=function(){if(null!==h)switch(a){case"play":return j=!1,h.playVideo();case"pause":return j=!0,h.pauseVideo();case"load":return null}else e.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);var y=i["default"].createElement("div");y.id=d.id,d.options.youtube.nocookie&&a.originalNode.setAttribute("src",o.getYouTubeNoCookieUrl(c[0].src)),a.originalNode.parentNode.insertBefore(y,a.originalNode),a.originalNode.style.display="none";var z="audio"===a.originalNode.tagName.toLowerCase(),A=z?"0":a.originalNode.height,B=z?"0":a.originalNode.width,C=o.getYouTubeId(c[0].src),D={id:d.id,containerId:y.id,videoId:C,height:A,width:B,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,playsinline:0,start:0,end:0,iv_load_policy:3},d.options.youtube),origin:g["default"].location.host,events:{onReady:function(b){if(a.youTubeApi=h=b.target,a.youTubeState={paused:!0,ended:!1},e.length)for(var c=0,f=e.length;f>c;c++){var g=e[c];if("set"===g.type){var i=g.propName,j=""+i.substring(0,1).toUpperCase()+i.substring(1);d["set"+j](g.value)}else"call"===g.type&&d[g.methodName]()}n=h.getIframe();for(var k=["mouseover","mouseout"],l=function(b){var c=m.createEvent(b.type,d);a.dispatchEvent(c)},o=0,p=k.length;p>o;o++)n.addEventListener(k[o],l,!1);for(var q=["rendererready","loadeddata","loadedmetadata","canplay"],r=0,s=q.length;s>r;r++){var t=m.createEvent(q[r],d);a.dispatchEvent(t)}},onStateChange:function(b){var c=[];switch(b.data){case-1:c=["loadedmetadata"],j=!0,l=!1;break;case 0:c=["ended"],j=!1,l=!0,d.stopInterval();break;case 1:c=["play","playing"],j=!1,l=!1,d.startInterval();break;case 2:c=["pause"],j=!0,l=!1,d.stopInterval();break;case 3:c=["progress"],l=!1;break;case 5:c=["loadeddata","loadedmetadata","canplay"],j=!0,l=!1}for(var e=0,f=c.length;f>e;e++){var g=m.createEvent(c[e],d);a.dispatchEvent(g)}},onError:function(b){var c=m.createEvent("error",d);c.data=b.data,a.dispatchEvent(c)}}};return z&&(D.playerVars.playsinline=1),o.enqueueIframe(D),d.onEvent=function(b,c,d){null!==d&&void 0!==d&&(a.youTubeState=d)},d.setSize=function(a,b){null!==h&&h.setSize(a,b)},d.hide=function(){d.stopInterval(),d.pause(),n&&(n.style.display="none")},d.show=function(){n&&(n.style.display="")},d.destroy=function(){h.destroy()},d.interval=null,d.startInterval=function(){d.interval=setInterval(function(){var b=m.createEvent("timeupdate",d);a.dispatchEvent(b)},250)},d.stopInterval=function(){d.interval&&clearInterval(d.interval)},d}};g["default"].postMessage&&e(g["default"].addEventListener)&&(g["default"].onYouTubePlayerAPIReady=function(){o.iFrameReady()},n.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//www.youtube")||a.includes("//youtu.be")?"video/x-youtube":null}),l.renderer.add(p))},{16:16,17:17,2:2,3:3,6:6,7:7}],15:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0}),c.cancelFullScreen=c.requestFullScreen=c.isFullScreen=c.FULLSCREEN_EVENT_NAME=c.HAS_NATIVE_FULLSCREEN_ENABLED=c.HAS_TRUE_NATIVE_FULLSCREEN=c.HAS_IOS_FULLSCREEN=c.HAS_MS_NATIVE_FULLSCREEN=c.HAS_MOZ_NATIVE_FULLSCREEN=c.HAS_WEBKIT_NATIVE_FULLSCREEN=c.HAS_NATIVE_FULLSCREEN=c.SUPPORTS_NATIVE_HLS=c.SUPPORT_POINTER_EVENTS=c.HAS_MSE=c.IS_STOCK_ANDROID=c.IS_SAFARI=c.IS_FIREFOX=c.IS_CHROME=c.IS_EDGE=c.IS_IE=c.IS_ANDROID=c.IS_IOS=c.IS_IPHONE=c.IS_IPAD=c.UA=c.NAV=void 0;for(var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=c.NAV=f["default"].navigator,l=c.UA=k.userAgent.toLowerCase(),m=c.IS_IPAD=null!==l.match(/ipad/i),n=c.IS_IPHONE=null!==l.match(/iphone/i),o=(c.IS_IOS=n||m,c.IS_ANDROID=null!==l.match(/android/i)),p=c.IS_IE=k.appName.toLowerCase().includes("microsoft")||null!==k.appName.toLowerCase().match(/trident/gi),q=(c.IS_EDGE="msLaunchUri"in k&&!("documentMode"in h["default"])),r=c.IS_CHROME=null!==l.match(/chrome/gi),s=c.IS_FIREFOX=null!==l.match(/firefox/gi),t=c.IS_SAFARI=null!==l.match(/safari/gi)&&!r,u=c.IS_STOCK_ANDROID=null!==l.match(/^mozilla\/\d+\.\d+\s\(linux;\su;/gi),v=(c.HAS_MSE="MediaSource"in f["default"]),w=(c.SUPPORT_POINTER_EVENTS=function(){var a=h["default"].createElement("x"),b=h["default"].documentElement,c=f["default"].getComputedStyle;if(!("pointerEvents"in a.style))return!1;a.style.pointerEvents="auto",a.style.pointerEvents="x",b.appendChild(a);var d=c&&"auto"===c(a,"").pointerEvents;return a.remove(),!!d}()),x=["source","track","audio","video"],y=void 0,z=0,A=x.length;A>z;z++)y=h["default"].createElement(x[z]);var B=c.SUPPORTS_NATIVE_HLS=t||o&&(r||u)||p&&null!==l.match(/edge/gi),C=void 0!==y.webkitEnterFullscreen,D=void 0!==y.requestFullscreen;C&&l.match(/mac os x 10_5/i)&&(D=!1,C=!1);var E=void 0!==y.webkitRequestFullScreen,F=void 0!==y.mozRequestFullScreen,G=void 0!==y.msRequestFullscreen,H=E||F||G,I=H,J="",K=void 0,L=void 0,M=void 0;F?I=h["default"].mozFullScreenEnabled:G&&(I=h["default"].msFullscreenEnabled),r&&(C=!1),H&&(E?J="webkitfullscreenchange":F?J="mozfullscreenchange":G&&(J="MSFullscreenChange"),c.isFullScreen=K=function(){return F?h["default"].mozFullScreen:E?h["default"].webkitIsFullScreen:G?null!==h["default"].msFullscreenElement:void 0},c.requestFullScreen=L=function(a){E?a.webkitRequestFullScreen():F?a.mozRequestFullScreen():G&&a.msRequestFullscreen()},c.cancelFullScreen=M=function(){E?h["default"].webkitCancelFullScreen():F?h["default"].mozCancelFullScreen():G&&h["default"].msExitFullscreen()});var N=c.HAS_NATIVE_FULLSCREEN=D,O=c.HAS_WEBKIT_NATIVE_FULLSCREEN=E,P=c.HAS_MOZ_NATIVE_FULLSCREEN=F,Q=c.HAS_MS_NATIVE_FULLSCREEN=G,R=c.HAS_IOS_FULLSCREEN=C,S=c.HAS_TRUE_NATIVE_FULLSCREEN=H,T=c.HAS_NATIVE_FULLSCREEN_ENABLED=I,U=c.FULLSCREEN_EVENT_NAME=J;c.isFullScreen=K,c.requestFullScreen=L,c.cancelFullScreen=M,j["default"].Features=j["default"].Features||{},j["default"].Features.isiPad=m,j["default"].Features.isiPhone=n,j["default"].Features.isiOS=j["default"].Features.isiPhone||j["default"].Features.isiPad,j["default"].Features.isAndroid=o,j["default"].Features.isIE=p,j["default"].Features.isEdge=q,j["default"].Features.isChrome=r,j["default"].Features.isFirefox=s,j["default"].Features.isSafari=t,j["default"].Features.isStockAndroid=u,j["default"].Features.hasMSE=v,j["default"].Features.supportsNativeHLS=B,j["default"].Features.supportsPointerEvents=w,j["default"].Features.hasiOSFullScreen=R,j["default"].Features.hasNativeFullscreen=N,j["default"].Features.hasWebkitNativeFullScreen=O,j["default"].Features.hasMozNativeFullScreen=P,j["default"].Features.hasMsNativeFullScreen=Q,j["default"].Features.hasTrueNativeFullScreen=S,j["default"].Features.nativeFullScreenEnabled=T,j["default"].Features.fullScreenEventName=U,j["default"].Features.isFullScreen=K,j["default"].Features.requestFullScreen=L,j["default"].Features.cancelFullScreen=M},{2:2,3:3,6:6}],16:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if("string"!=typeof a)throw new Error("Argument passed must be a string");var b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return a.replace(/[&<>"]/g,function(a){return b[a]})}function f(a,b){var c=this,d=arguments,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!1;
if("function"!=typeof a)throw new Error("First argument must be a function");if("number"!=typeof b)throw new Error("Second argument must be a numeric value");var f=void 0;return function(){var g=c,h=d,i=function(){f=null,e||a.apply(g,h)},j=e&&!f;clearTimeout(f),f=setTimeout(i,b),j&&a.apply(g,h)}}function g(a){return Object.getOwnPropertyNames(a).length<=0}function h(a,b){var c=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,d={d:[],w:[]};return(a||"").split(" ").forEach(function(a){var e=""+a+(b?"."+b:"");e.startsWith(".")?(d.d.push(e),d.w.push(e)):d[c.test(a)?"w":"d"].push(e)}),d.d=d.d.join(" "),d.w=d.w.join(" "),d}function i(a,b){if("string"!=typeof a)throw new Error("Event name must be a string");var c=a.match(/[a-z]+\.([a-z]+)/),d={target:b};return null!==c&&(a=c[0],d.namespace=c[1]),new window.CustomEvent(a,{detail:d})}function j(a,b){return!!(a&&b&&2&a.compareDocumentPosition(b))}function k(a){return"string"==typeof a}Object.defineProperty(c,"__esModule",{value:!0}),c.escapeHTML=e,c.debounce=f,c.isObjectEmpty=g,c.splitEvents=h,c.createEvent=i,c.isNodeAfter=j,c.isString=k;var l=a(6),m=d(l);m["default"].Utils=m["default"].Utils||{},m["default"].Utils.escapeHTML=e,m["default"].Utils.debounce=f,m["default"].Utils.isObjectEmpty=g,m["default"].Utils.splitEvents=h,m["default"].Utils.createEvent=i,m["default"].Utils.isNodeAfter=j,m["default"].Utils.isString=k},{6:6}],17:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");var b=document.createElement("div");return b.innerHTML='<a href="'+m.escapeHTML(a)+'">x</a>',b.firstChild.href}function f(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a&&!b?h(a):g(b)}function g(a){if("string"!=typeof a)throw new Error("`type` argument must be a string");return a&&~a.indexOf(";")?a.substr(0,a.indexOf(";")):a}function h(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");for(var b=0,c=n.length;c>b;b++){var d=n[b](a);if(d)return d}var e=i(a),f=j(e),g="video/mp4";return f&&(["mp4","m4v","ogg","ogv","webm","flv","mpeg","mov"].includes(f)?g="video/"+f:["mp3","oga","wav","mid","midi"].includes(f)&&(g="audio/"+f)),g}function i(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");var b=a.split("?")[0],c=b.split("\\").pop().split("/").pop();return c.indexOf(".")>-1?c.substring(c.lastIndexOf(".")+1):""}function j(a){if("string"!=typeof a)throw new Error("`extension` argument must be a string");switch(a){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return a}}Object.defineProperty(c,"__esModule",{value:!0}),c.typeChecks=void 0,c.absolutizeUrl=e,c.formatType=f,c.getMimeFromType=g,c.getTypeFromFile=h,c.getExtension=i,c.normalizeExtension=j;var k=a(6),l=d(k),m=a(16),n=c.typeChecks=[];l["default"].Utils=l["default"].Utils||{},l["default"].Utils.typeChecks=n,l["default"].Utils.absolutizeUrl=e,l["default"].Utils.formatType=f,l["default"].Utils.getMimeFromType=g,l["default"].Utils.getTypeFromFile=h,l["default"].Utils.getExtension=i,l["default"].Utils.normalizeExtension=j},{16:16,6:6}],18:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(2),f=d(e);!function(a){a.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype]),function(){function a(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=f["default"].createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}return"function"==typeof window.CustomEvent?!1:(a.prototype=window.Event.prototype,void(window.CustomEvent=a))}(),"function"!=typeof Object.assign&&(Object.assign=function(a){if(null===a||void 0===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1,d=arguments.length;d>c;c++){var e=arguments[c];if(null!==e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=e[f])}return b}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(a,b){if(null===this||void 0===this)throw new TypeError('"this" is null or not defined');var c=Object(this),d=c.length>>>0;if(0===d)return!1;for(var e=0|b,f=Math.max(e>=0?e:d-Math.abs(e),0);d>f;){if(c[f]===a)return!0;f++}return!1}}),String.prototype.includes||(String.prototype.includes=function(a,b){return"number"!=typeof b&&(b=0),b+a.length>this.length?!1:-1!==this.indexOf(a,b)}),String.prototype.startsWith||(String.prototype.startsWith=function(a,b){return b=b||0,this.substr(b,a.length)===a}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length-1;--c>=0&&b.item(c)!==this;);return c>-1}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(a){var b=(this.document||this.ownerDocument).querySelectorAll(a),c=void 0,d=this;do for(c=b.length;--c>=0&&b.item(c)!==d;);while(0>c&&(d=d.parentElement));return d}),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-a)),e=window.setTimeout(function(){b(c+d)},d);return a=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}(),/firefox/i.test(navigator.userAgent)&&(window.oldGetComputedStyle=window.getComputedStyle,window.getComputedStyle=function(a,b){var c=window.oldGetComputedStyle(a,b);return null===c?{getPropertyValue:function(){}}:c})},{2:2}]},{},[18,5,4,8,13,10,9,11,12,14]);
Object.defineProperty(c,"__esModule",{value:!0});c.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],9:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(17),n=a(15),o={isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof dashjs)o.createInstance(a);else if(!o.isScriptLoaded){a.options.path="string"==typeof a.options.path?a.options.path:"https://cdn.dashjs.org/latest/dash.mediaplayer.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isScriptLoaded=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isScriptLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=dashjs.MediaPlayer().create();f["default"]["__ready__"+a.id](b)}},p={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.mediaplayer.min.js",debug:!1}},canPlayType:function(a){return n.HAS_MSE&&~["application/dash+xml"].indexOf(a.toLowerCase())},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=d.getAttribute("preload"),h=d.autoplay,i=null,m=null;i=d.cloneNode(!0),b=Object.assign(b,a.options);for(var n=j["default"].html5media.properties,p=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);i["get"+b]=function(){return null!==m?i[a]:null},i["set"+b]=function(b){-1===j["default"].html5media.readOnlyProperties.indexOf(a)&&null!==m&&("src"===a&&(m.attachSource(b),h&&i.play()),i[a]=b)}},q=0,r=n.length;r>q;q++)p(n[q]);if(f["default"]["__ready__"+e]=function(c){a.dashPlayer=m=c,m.getDebug().setLogToBrowserConsole(b.dash.debug),m.setAutoPlay(g&&"auto"===g||h),m.setScheduleWhilePaused(g&&"auto"===g||h);for(var d=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),e=dashjs.MediaPlayer.events,f=function(b){"loadedmetadata"===b&&m.initialize(i,i.src,!1),i.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},k=0,n=d.length;n>k;k++)f(d[k]);var o=function(b){var c=l.createEvent(b.type,i);c.data=b,a.dispatchEvent(c),"error"===b.type.toLowerCase()&&console.error(b)};for(var p in e)e.hasOwnProperty(p)&&m.on(e[p],o)},c&&c.length>0)for(var s=0,t=c.length;t>s;s++)if(k.renderer.renderers[b.prefix].canPlayType(c[s].type)){i.setAttribute("src",c[s].src);break}i.setAttribute("id",e),d.parentNode.insertBefore(i,d),d.autoplay=!1,d.style.display="none",o.prepareSettings({options:b.dash,id:e}),i.setSize=function(a,b){return i.style.width=a+"px",i.style.height=b+"px",i},i.hide=function(){return i.pause(),i.style.display="none",i},i.show=function(){return i.style.display="",i};var u=l.createEvent("rendererready",i);return a.dispatchEvent(u),i}};m.typeChecks.push(function(a){return~a.toLowerCase().indexOf(".mpd")?"application/dash+xml":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],10:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0}),c.PluginDetector=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(4),m=d(l),n=a(7),o=a(16),p=a(15),q=a(17),r=c.PluginDetector={plugins:[],hasPluginVersion:function(a,b){var c=r.plugins[a];return b[1]=b[1]||0,b[2]=b[2]||0,c[0]>b[0]||c[0]===b[0]&&c[1]>b[1]||c[0]===b[0]&&c[1]===b[1]&&c[2]>=b[2]},addPlugin:function(a,b,c,d,e){r.plugins[a]=r.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var f=[0,0,0],h=void 0,i=void 0;if(null!==p.NAV.plugins&&void 0!==p.NAV.plugins&&"object"===e(p.NAV.plugins[a])){if(h=p.NAV.plugins[a].description,h&&("undefined"==typeof p.NAV.mimeTypes||!p.NAV.mimeTypes[b]||p.NAV.mimeTypes[b].enabledPlugin)){f=h.replace(a,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(var j=0,k=f.length;k>j;j++)f[j]=parseInt(f[j].match(/\d+/),10)}}else if(void 0!==g["default"].ActiveXObject)try{i=new ActiveXObject(c),i&&(f=d(i))}catch(l){}return f}};r.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(a){var b=[],c=a.GetVariable("$version");return c&&(c=c.split(" ")[1].split(","),b=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]),b});var s={create:function(a,b,c){var d={};d.options=b,d.id=a.id+"_"+d.options.prefix,d.mediaElement=a,d.flashState={},d.flashApi=null,d.flashApiStack=[];for(var e=k["default"].html5media.properties,f=function(a){d.flashState[a]=null;var b=""+a.substring(0,1).toUpperCase()+a.substring(1);d["get"+b]=function(){if(null!==d.flashApi){if(void 0!==d.flashApi["get_"+a]){var b=d.flashApi["get_"+a]();return"buffered"===a?{start:function(){return 0},end:function(){return b},length:1}:b}return null}return null},d["set"+b]=function(b){"src"===a&&(b=q.absolutizeUrl(b)),null!==d.flashApi&&void 0!==d.flashApi["set_"+a]?d.flashApi["set_"+a](b):d.flashApiStack.push({type:"set",propName:a,value:b})}},h=0,j=e.length;j>h;h++)f(e[h]);var l=k["default"].html5media.methods,r=function(a){d[a]=function(){if(null!==d.flashApi){if(d.flashApi["fire_"+a])try{d.flashApi["fire_"+a]()}catch(b){}}else d.flashApiStack.push({type:"call",methodName:a})}};l.push("stop");for(var s=0,t=l.length;t>s;s++)r(l[s]);for(var u=["rendererready"],v=0,w=u.length;w>v;v++){var x=o.createEvent(u[v],d);a.dispatchEvent(x)}g["default"]["__ready__"+d.id]=function(){if(d.flashReady=!0,d.flashApi=i["default"].getElementById("__"+d.id),d.flashApiStack.length)for(var a=0,b=d.flashApiStack.length;b>a;a++){var c=d.flashApiStack[a];if("set"===c.type){var e=c.propName,f=""+e.substring(0,1).toUpperCase()+e.substring(1);d["set"+f](c.value)}else"call"===c.type&&d[c.methodName]()}},g["default"]["__event__"+d.id]=function(a,b){var c=o.createEvent(a,d);c.message=b||"",d.mediaElement.dispatchEvent(c)},d.flashWrapper=i["default"].createElement("div"),-1===["always","sameDomain"].indexOf(d.options.shimScriptAccess)&&(d.options.shimScriptAccess="sameDomain");var y=a.originalNode.autoplay,z=["uid="+d.id,"autoplay="+y,"allowScriptAccess="+d.options.shimScriptAccess],A=null!==a.originalNode&&"video"===a.originalNode.tagName.toLowerCase(),B=A?a.originalNode.height:1,C=A?a.originalNode.width:1;a.originalNode.getAttribute("src")&&z.push("src="+a.originalNode.getAttribute("src")),d.options.enablePseudoStreaming===!0&&(z.push("pseudostreamstart="+d.options.pseudoStreamingStartQueryParam),z.push("pseudostreamtype="+d.options.pseudoStreamingType)),a.appendChild(d.flashWrapper),null!==a.originalNode&&(a.originalNode.style.display="none");var D=[];if(p.IS_IE){var E=i["default"].createElement("div");d.flashWrapper.appendChild(E),D=['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+d.id+'"','width="'+C+'"','height="'+B+'"'],A||D.push('style="clip: rect(0 0 0 0); position: absolute;"'),E.outerHTML="<object "+D.join(" ")+">"+('<param name="movie" value="'+d.options.pluginPath+d.options.filename+"?x="+new Date+'" />')+('<param name="flashvars" value="'+z.join("&amp;")+'" />')+'<param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" />'+('<param name="allowScriptAccess" value="'+d.options.shimScriptAccess+'" />')+'<param name="allowFullScreen" value="true" />'+("<div>"+m["default"].t("mejs.install-flash")+"</div>")+"</object>"}else D=['id="__'+d.id+'"','name="__'+d.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+d.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+d.options.pluginPath+d.options.filename+'"','flashvars="'+z.join("&")+'"','width="'+C+'"','height="'+B+'"'],A||D.push('style="clip: rect(0 0 0 0); position: absolute;"'),d.flashWrapper.innerHTML="<embed "+D.join(" ")+">";if(d.flashNode=d.flashWrapper.lastChild,d.hide=function(){A&&(d.flashNode.style.display="none")},d.show=function(){A&&(d.flashNode.style.display="")},d.setSize=function(a,b){d.flashNode.style.width=a+"px",d.flashNode.style.height=b+"px",null!==d.flashApi&&"function"==typeof d.flashApi.fire_setSize&&d.flashApi.fire_setSize(a,b)},d.destroy=function(){d.flashNode.remove()},c&&c.length>0)for(var F=0,G=c.length;G>F;F++)if(n.renderer.renderers[b.prefix].canPlayType(c[F].type)){d.setSrc(c[F].src);break}return d}},t=r.hasPluginVersion("flash",[10,0,0]);if(t){q.typeChecks.push(function(a){return a=a.toLowerCase(),a.startsWith("rtmp")?~a.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(a)?"audio/ogg":~a.indexOf(".m3u8")?"application/x-mpegURL":~a.indexOf(".mpd")?"application/dash+xml":~a.indexOf(".flv")?"video/flv":null});var u={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte"},canPlayType:function(a){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(a.toLowerCase())},create:s.create};n.renderer.add(u);var v={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(a){return~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(a.toLowerCase())},create:s.create};n.renderer.add(v);var w={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(a){return~["application/dash+xml"].indexOf(a.toLowerCase())},create:s.create};n.renderer.add(w);var x={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(a){return~["audio/mp3"].indexOf(a.toLowerCase())},create:s.create};n.renderer.add(x);var y={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(a){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(a.toLowerCase())},create:s.create};n.renderer.add(y)}},{15:15,16:16,17:17,2:2,3:3,4:4,6:6,7:7}],11:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n=a(17),o={isMediaStarted:!1,isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof flvjs)o.createInstance(a);else if(!o.isMediaStarted){a.options.path="string"==typeof a.options.path?a.options.path:"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isMediaStarted=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isMediaLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=flvjs.createPlayer(a.options);f["default"]["__ready__"+a.id](b)}},p={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js",cors:!0}},canPlayType:function(a){return m.HAS_MSE&&~["video/x-flv","video/flv"].indexOf(a.toLowerCase())},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=null,h=null;g=d.cloneNode(!0),b=Object.assign(b,a.options);for(var i=j["default"].html5media.properties,m=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);g["get"+b]=function(){return null!==h?g[a]:null},g["set"+b]=function(b){-1===j["default"].html5media.readOnlyProperties.indexOf(a)&&null!==h&&(g[a]=b,"src"===a&&(h.unload(),h.detachMediaElement(),h.attachMediaElement(g),h.load()))}},n=0,p=i.length;p>n;n++)m(i[n]);if(f["default"]["__ready__"+e]=function(b){a.flvPlayer=h=b;for(var c=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),d=function(b){"loadedmetadata"===b&&(h.unload(),h.detachMediaElement(),h.attachMediaElement(g),h.load()),g.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},e=0,f=c.length;f>e;e++)d(c[e])},c&&c.length>0)for(var q=0,r=c.length;r>q;q++)if(k.renderer.renderers[b.prefix].canPlayType(c[q].type)){g.setAttribute("src",c[q].src);break}g.setAttribute("id",e),d.parentNode.insertBefore(g,d),d.autoplay=!1,d.style.display="none",b.flv.type="flv",b.flv.url=g.getAttribute("src"),o.prepareSettings({options:b.flv,id:e}),g.setSize=function(a,b){return g.style.width=a+"px",g.style.height=b+"px",g},g.hide=function(){return null!==h&&h.pause(),g.style.display="none",g},g.show=function(){return g.style.display="",g},g.destroy=function(){null!==h&&h.destroy()};var s=l.createEvent("rendererready",g);return a.dispatchEvent(s),g}};n.typeChecks.push(function(a){return~a.toLowerCase().indexOf(".flv")?"video/flv":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],12:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n=a(17),o={isMediaStarted:!1,isMediaLoaded:!1,creationQueue:[],prepareSettings:function(a){o.isLoaded?o.createInstance(a):(o.loadScript(a),o.creationQueue.push(a))},loadScript:function(a){if("undefined"!=typeof Hls)o.createInstance(a);else if(!o.isMediaStarted){a.options.path="string"==typeof a.options.path?a.options.path:"https://cdn.jsdelivr.net/hls.js/latest/hls.min.js";var b=h["default"].createElement("script"),c=h["default"].getElementsByTagName("script")[0],d=!1;b.src=a.options.path,b.onload=b.onreadystatechange=function(){d||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(d=!0,o.mediaReady(),b.onload=b.onreadystatechange=null)},c.parentNode.insertBefore(b,c),o.isMediaStarted=!0}},mediaReady:function(){for(o.isLoaded=!0,o.isMediaLoaded=!0;o.creationQueue.length>0;){var a=o.creationQueue.pop();o.createInstance(a)}},createInstance:function(a){var b=new Hls(a.options);return f["default"]["__ready__"+a.id](b),b}},p={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/hls.js/latest/hls.min.js",autoStartLoad:!1,debug:!1}},canPlayType:function(a){return m.HAS_MSE&&~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(a.toLowerCase())},create:function(a,b,c){var d=a.originalNode,e=a.id+"_"+b.prefix,g=d.getAttribute("preload"),h=d.autoplay,i=null,m=null;m=d.cloneNode(!0),b=Object.assign(b,a.options),b.hls.autoStartLoad=g&&"none"!==g||h;for(var n=j["default"].html5media.properties,p=function(a){var c=""+a.substring(0,1).toUpperCase()+a.substring(1);m["get"+c]=function(){return null!==i?m[a]:null},m["set"+c]=function(c){-1===j["default"].html5media.readOnlyProperties.indexOf(a)&&null!==i&&(m[a]=c,"src"===a&&(i.destroy(),i=o.createInstance({options:b.hls,id:e}),i.loadSource(c),i.attachMedia(m)))}},q=0,r=n.length;r>q;q++)p(n[q]);if(f["default"]["__ready__"+e]=function(b){a.hlsPlayer=i=b;for(var c=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),d=Hls.Events,e=function(b){if("loadedmetadata"===b){var c=a.originalNode.src;i.detachMedia(),i.loadSource(c),i.attachMedia(m)}m.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},f=0,g=c.length;g>f;f++)e(c[f]);var h=void 0,k=void 0,n=function(b,c){var d=l.createEvent(b,m);if(d.data=c,a.dispatchEvent(d),"hlsError"===b&&(console.warn(b,c),c.fatal))switch(c.type){case"mediaError":var e=(new Date).getTime();!h||e-h>3e3?(h=(new Date).getTime(),i.recoverMediaError()):!k||e-k>3e3?(k=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),i.swapAudioCodec(),i.recoverMediaError()):console.error("Cannot recover, last media error recovery failed");break;case"networkError":console.error("Network error");break;default:i.destroy()}};for(var o in d)d.hasOwnProperty(o)&&i.on(d[o],n)},c&&c.length>0)for(var s=0,t=c.length;t>s;s++)if(k.renderer.renderers[b.prefix].canPlayType(c[s].type)){m.setAttribute("src",c[s].src);break}"auto"===g||h||(m.addEventListener("play",function(){null!==i&&i.startLoad()}),m.addEventListener("pause",function(){null!==i&&i.stopLoad()})),m.setAttribute("id",e),d.parentNode.insertBefore(m,d),d.autoplay=!1,d.style.display="none",o.prepareSettings({options:b.hls,id:e}),m.setSize=function(a,b){return m.style.width=a+"px",m.style.height=b+"px",m},m.hide=function(){return m.pause(),m.style.display="none",m},m.show=function(){return m.style.display="",m},m.destroy=function(){null!==i&&i.destroy()},m.stop=function(){null!==i&&i.stopLoad()};var u=l.createEvent("rendererready",m);return a.dispatchEvent(u),m}};n.typeChecks.push(function(a){return~a.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null}),k.renderer.add(p)},{15:15,16:16,17:17,2:2,3:3,6:6,7:7}],13:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=a(7),l=a(16),m=a(15),n={name:"html5",options:{prefix:"html5"},canPlayType:function(a){var b=h["default"].createElement("video");return m.IS_ANDROID&&/\/mp(3|4)$/i.test(a)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(a.toLowerCase())&&m.SUPPORTS_NATIVE_HLS?"yes":b.canPlayType?b.canPlayType(a.toLowerCase()).replace(/no/,""):""},create:function(a,b,c){var d=a.id+"_"+b.prefix,e=null;void 0===a.originalNode||null===a.originalNode?(e=h["default"].createElement("audio"),a.appendChild(e)):e=a.originalNode,e.setAttribute("id",d);for(var f=j["default"].html5media.properties,g=function(a){var b=""+a.substring(0,1).toUpperCase()+a.substring(1);e["get"+b]=function(){return e[a]},e["set"+b]=function(b){-1===j["default"].html5media.readOnlyProperties.indexOf(a)&&(e[a]=b)}},i=0,m=f.length;m>i;i++)g(f[i]);for(var n=j["default"].html5media.events.concat(["click","mouseover","mouseout"]),o=function(b){e.addEventListener(b,function(b){var c=l.createEvent(b.type,a);a.dispatchEvent(c)})},p=0,q=n.length;q>p;p++)o(n[p]);if(e.setSize=function(a,b){return e.style.width=a+"px",e.style.height=b+"px",e},e.hide=function(){return e.style.display="none",e},e.show=function(){return e.style.display="",e},c&&c.length>0)for(var r=0,s=c.length;s>r;r++)if(k.renderer.renderers[b.prefix].canPlayType(c[r].type)){e.setAttribute("src",c[r].src);break}var t=l.createEvent("rendererready",e);return a.dispatchEvent(t),e}};f["default"].HtmlMediaElement=j["default"].HtmlMediaElement=n,k.renderer.add(n)},{15:15,16:16,2:2,3:3,6:6,7:7}],14:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(3),g=d(f),h=a(2),i=d(h),j=a(6),k=d(j),l=a(7),m=a(16),n=a(17),o={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){o.isLoaded="undefined"!=typeof YT&&YT.loaded,o.isLoaded?o.createIframe(a):(o.loadIframeApi(),o.iframeQueue.push(a))},loadIframeApi:function(){if(!o.isIframeStarted){var a=i["default"].createElement("script");a.src="https://www.youtube.com/player_api";var b=i["default"].getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),o.isIframeStarted=!0}},iFrameReady:function(){for(o.isLoaded=!0,o.isIframeLoaded=!0;o.iframeQueue.length>0;){var a=o.iframeQueue.pop();o.createIframe(a)}},createIframe:function(a){return new YT.Player(a.containerId,a)},getYouTubeId:function(a){var b="";return a.indexOf("?")>0?(b=o.getYouTubeIdFromParam(a),""===b&&(b=o.getYouTubeIdFromUrl(a))):b=o.getYouTubeIdFromUrl(a),b},getYouTubeIdFromParam:function(a){if(void 0===a||null===a||!a.trim().length)return null;for(var b=a.split("?"),c=b[1].split("&"),d="",e=0,f=c.length;f>e;e++){var g=c[e].split("=");if("v"===g[0]){d=g[1];break}}return d},getYouTubeIdFromUrl:function(a){if(void 0===a||null===a||!a.trim().length)return null;var b=a.split("?");return a=b[0],a.substring(a.lastIndexOf("/")+1)},getYouTubeNoCookieUrl:function(a){if(void 0===a||null===a||!a.trim().length||-1===a.indexOf("//www.youtube"))return a;var b=a.split("/");return b[2]=b[2].replace(".com","-nocookie.com"),b.join("/")}},p={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1}},canPlayType:function(a){return~["video/youtube","video/x-youtube"].indexOf(a.toLowerCase())},create:function(a,b,c){var d={},e=[],f=4,h=null,j=!0,l=!1,n=null,p=1;d.options=b,d.id=a.id+"_"+b.prefix,d.mediaElement=a;for(var q=k["default"].html5media.properties,r=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);d["get"+c]=function(){if(null!==h){var a=null;switch(b){case"currentTime":return h.getCurrentTime();case"duration":return h.getDuration();case"volume":return p=h.getVolume()/100;case"paused":return j;case"ended":return l;case"muted":return h.isMuted();case"buffered":var c=h.getVideoLoadedFraction(),d=h.getDuration();return{start:function(){return 0},end:function(){return c*d},length:1};case"src":return h.getVideoUrl();case"readyState":return f}return a}return null},d["set"+c]=function(c){if(null!==h)switch(b){case"src":var f="string"==typeof c?c:c[0].src,g=o.getYouTubeId(f);a.originalNode.autoplay?h.loadVideoById(g):h.cueVideoById(g);break;case"currentTime":h.seekTo(c);break;case"muted":c?h.mute():h.unMute(),setTimeout(function(){var b=m.createEvent("volumechange",d);a.dispatchEvent(b)},50);break;case"volume":p=c,h.setVolume(100*c),setTimeout(function(){var b=m.createEvent("volumechange",d);a.dispatchEvent(b)},50);break;case"readyState":var i=m.createEvent("canplay",d);a.dispatchEvent(i)}else e.push({type:"set",propName:b,value:c})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=k["default"].html5media.methods,v=function(a){d[a]=function(){if(null!==h)switch(a){case"play":return j=!1,h.playVideo();case"pause":return j=!0,h.pauseVideo();case"load":return null}else e.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);var y=i["default"].createElement("div");y.id=d.id,d.options.youtube.nocookie&&a.originalNode.setAttribute("src",o.getYouTubeNoCookieUrl(c[0].src)),a.originalNode.parentNode.insertBefore(y,a.originalNode),a.originalNode.style.display="none";var z="audio"===a.originalNode.tagName.toLowerCase(),A=z?"1":a.originalNode.height,B=z?"1":a.originalNode.width,C=o.getYouTubeId(c[0].src),D={id:d.id,containerId:y.id,videoId:C,height:A,width:B,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,playsinline:0,start:0,end:0,iv_load_policy:3},d.options.youtube),origin:g["default"].location.host,events:{onReady:function(b){if(a.youTubeApi=h=b.target,a.youTubeState={paused:!0,ended:!1},e.length)for(var c=0,f=e.length;f>c;c++){var g=e[c];if("set"===g.type){var i=g.propName,j=""+i.substring(0,1).toUpperCase()+i.substring(1);d["set"+j](g.value)}else"call"===g.type&&d[g.methodName]()}n=h.getIframe();for(var k=["mouseover","mouseout"],l=function(b){var c=m.createEvent(b.type,d);a.dispatchEvent(c)},o=0,p=k.length;p>o;o++)n.addEventListener(k[o],l,!1);for(var q=["rendererready","loadeddata","loadedmetadata","canplay"],r=0,s=q.length;s>r;r++){var t=m.createEvent(q[r],d);a.dispatchEvent(t)}},onStateChange:function(b){var c=[];switch(b.data){case-1:c=["loadedmetadata"],j=!0,l=!1;break;case 0:c=["ended"],j=!1,l=!0,d.stopInterval();break;case 1:c=["play","playing"],j=!1,l=!1,d.startInterval();break;case 2:c=["pause"],j=!0,l=!1,d.stopInterval();break;case 3:c=["progress"],l=!1;break;case 5:c=["loadeddata","loadedmetadata","canplay"],j=!0,l=!1}for(var e=0,f=c.length;f>e;e++){var g=m.createEvent(c[e],d);a.dispatchEvent(g)}},onError:function(b){var c=m.createEvent("error",d);c.data=b.data,a.dispatchEvent(c)}}};return z&&(D.playerVars.playsinline=1),o.enqueueIframe(D),d.onEvent=function(b,c,d){null!==d&&void 0!==d&&(a.youTubeState=d)},d.setSize=function(a,b){null!==h&&h.setSize(a,b)},d.hide=function(){d.stopInterval(),d.pause(),n&&(n.style.display="none")},d.show=function(){n&&(n.style.display="")},d.destroy=function(){h.destroy()},d.interval=null,d.startInterval=function(){d.interval=setInterval(function(){var b=m.createEvent("timeupdate",d);a.dispatchEvent(b)},250)},d.stopInterval=function(){d.interval&&clearInterval(d.interval)},d}};g["default"].postMessage&&e(g["default"].addEventListener)&&(g["default"].onYouTubePlayerAPIReady=function(){o.iFrameReady()},n.typeChecks.push(function(a){return/\/\/(www\.youtube|youtu\.be)/i.test(a)?"video/x-youtube":null}),l.renderer.add(p))},{16:16,17:17,2:2,3:3,6:6,7:7}],15:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(c,"__esModule",{value:!0}),c.cancelFullScreen=c.requestFullScreen=c.isFullScreen=c.FULLSCREEN_EVENT_NAME=c.HAS_NATIVE_FULLSCREEN_ENABLED=c.HAS_TRUE_NATIVE_FULLSCREEN=c.HAS_IOS_FULLSCREEN=c.HAS_MS_NATIVE_FULLSCREEN=c.HAS_MOZ_NATIVE_FULLSCREEN=c.HAS_WEBKIT_NATIVE_FULLSCREEN=c.HAS_NATIVE_FULLSCREEN=c.SUPPORTS_NATIVE_HLS=c.SUPPORT_POINTER_EVENTS=c.HAS_MSE=c.IS_STOCK_ANDROID=c.IS_SAFARI=c.IS_FIREFOX=c.IS_CHROME=c.IS_EDGE=c.IS_IE=c.IS_ANDROID=c.IS_IOS=c.IS_IPHONE=c.IS_IPAD=c.UA=c.NAV=void 0;for(var e=a(3),f=d(e),g=a(2),h=d(g),i=a(6),j=d(i),k=c.NAV=f["default"].navigator,l=c.UA=k.userAgent.toLowerCase(),m=c.IS_IPAD=/ipad/i.test(l),n=c.IS_IPHONE=/iphone/i.test(l),o=(c.IS_IOS=n||m,c.IS_ANDROID=/android/i.test(l)),p=c.IS_IE=/(trident|microsoft)/i.test(k.appName),q=(c.IS_EDGE="msLaunchUri"in k&&!("documentMode"in h["default"])),r=c.IS_CHROME=/chrome/i.test(l),s=c.IS_FIREFOX=/firefox/i.test(l),t=c.IS_SAFARI=/safari/i.test(l)&&!r,u=c.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(l),v=(c.HAS_MSE="MediaSource"in f["default"]),w=(c.SUPPORT_POINTER_EVENTS=function(){var a=h["default"].createElement("x"),b=h["default"].documentElement,c=f["default"].getComputedStyle;if(!("pointerEvents"in a.style))return!1;a.style.pointerEvents="auto",a.style.pointerEvents="x",b.appendChild(a);var d=c&&"auto"===c(a,"").pointerEvents;return a.remove(),!!d}()),x=["source","track","audio","video"],y=void 0,z=0,A=x.length;A>z;z++)y=h["default"].createElement(x[z]);var B=c.SUPPORTS_NATIVE_HLS=t||o&&(r||u)||p&&/edge/i.test(l),C=void 0!==y.webkitEnterFullscreen,D=void 0!==y.requestFullscreen;C&&/mac os x 10_5/i.test(l)&&(D=!1,C=!1);var E=void 0!==y.webkitRequestFullScreen,F=void 0!==y.mozRequestFullScreen,G=void 0!==y.msRequestFullscreen,H=E||F||G,I=H,J="",K=void 0,L=void 0,M=void 0;F?I=h["default"].mozFullScreenEnabled:G&&(I=h["default"].msFullscreenEnabled),r&&(C=!1),H&&(E?J="webkitfullscreenchange":F?J="mozfullscreenchange":G&&(J="MSFullscreenChange"),c.isFullScreen=K=function(){return F?h["default"].mozFullScreen:E?h["default"].webkitIsFullScreen:G?null!==h["default"].msFullscreenElement:void 0},c.requestFullScreen=L=function(a){E?a.webkitRequestFullScreen():F?a.mozRequestFullScreen():G&&a.msRequestFullscreen()},c.cancelFullScreen=M=function(){E?h["default"].webkitCancelFullScreen():F?h["default"].mozCancelFullScreen():G&&h["default"].msExitFullscreen()});var N=c.HAS_NATIVE_FULLSCREEN=D,O=c.HAS_WEBKIT_NATIVE_FULLSCREEN=E,P=c.HAS_MOZ_NATIVE_FULLSCREEN=F,Q=c.HAS_MS_NATIVE_FULLSCREEN=G,R=c.HAS_IOS_FULLSCREEN=C,S=c.HAS_TRUE_NATIVE_FULLSCREEN=H,T=c.HAS_NATIVE_FULLSCREEN_ENABLED=I,U=c.FULLSCREEN_EVENT_NAME=J;c.isFullScreen=K,c.requestFullScreen=L,c.cancelFullScreen=M,j["default"].Features=j["default"].Features||{},j["default"].Features.isiPad=m,j["default"].Features.isiPhone=n,j["default"].Features.isiOS=j["default"].Features.isiPhone||j["default"].Features.isiPad,j["default"].Features.isAndroid=o,j["default"].Features.isIE=p,j["default"].Features.isEdge=q,j["default"].Features.isChrome=r,j["default"].Features.isFirefox=s,j["default"].Features.isSafari=t,j["default"].Features.isStockAndroid=u,j["default"].Features.hasMSE=v,j["default"].Features.supportsNativeHLS=B,j["default"].Features.supportsPointerEvents=w,j["default"].Features.hasiOSFullScreen=R,j["default"].Features.hasNativeFullscreen=N,j["default"].Features.hasWebkitNativeFullScreen=O,j["default"].Features.hasMozNativeFullScreen=P,j["default"].Features.hasMsNativeFullScreen=Q,j["default"].Features.hasTrueNativeFullScreen=S,j["default"].Features.nativeFullScreenEnabled=T,j["default"].Features.fullScreenEventName=U,j["default"].Features.isFullScreen=K,j["default"].Features.requestFullScreen=L,j["default"].Features.cancelFullScreen=M},{2:2,3:3,6:6}],16:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if("string"!=typeof a)throw new Error("Argument passed must be a string");var b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return a.replace(/[&<>"]/g,function(a){return b[a]})}function f(a,b){var c=this,d=arguments,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!1;if("function"!=typeof a)throw new Error("First argument must be a function");
if("number"!=typeof b)throw new Error("Second argument must be a numeric value");var f=void 0;return function(){var g=c,h=d,i=function(){f=null,e||a.apply(g,h)},j=e&&!f;clearTimeout(f),f=setTimeout(i,b),j&&a.apply(g,h)}}function g(a){return Object.getOwnPropertyNames(a).length<=0}function h(a,b){var c=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,d={d:[],w:[]};return(a||"").split(" ").forEach(function(a){var e=""+a+(b?"."+b:"");e.startsWith(".")?(d.d.push(e),d.w.push(e)):d[c.test(a)?"w":"d"].push(e)}),d.d=d.d.join(" "),d.w=d.w.join(" "),d}function i(a,b){if("string"!=typeof a)throw new Error("Event name must be a string");var c=a.match(/([a-z]+\.([a-z]+))/i),d={target:b};return null!==c&&(a=c[1],d.namespace=c[2]),new window.CustomEvent(a,{detail:d})}function j(a,b){return!!(a&&b&&2&a.compareDocumentPosition(b))}function k(a){return"string"==typeof a}Object.defineProperty(c,"__esModule",{value:!0}),c.escapeHTML=e,c.debounce=f,c.isObjectEmpty=g,c.splitEvents=h,c.createEvent=i,c.isNodeAfter=j,c.isString=k;var l=a(6),m=d(l);m["default"].Utils=m["default"].Utils||{},m["default"].Utils.escapeHTML=e,m["default"].Utils.debounce=f,m["default"].Utils.isObjectEmpty=g,m["default"].Utils.splitEvents=h,m["default"].Utils.createEvent=i,m["default"].Utils.isNodeAfter=j,m["default"].Utils.isString=k},{6:6}],17:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");var b=document.createElement("div");return b.innerHTML='<a href="'+m.escapeHTML(a)+'">x</a>',b.firstChild.href}function f(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a&&!b?h(a):g(b)}function g(a){if("string"!=typeof a)throw new Error("`type` argument must be a string");return a&&~a.indexOf(";")?a.substr(0,a.indexOf(";")):a}function h(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");for(var b=0,c=n.length;c>b;b++){var d=n[b](a);if(d)return d}var e=i(a),f=j(e),g="video/mp4";return f&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg","mov"].indexOf(f)?g="video/"+f:~["mp3","oga","wav","mid","midi"].indexOf(f)&&(g="audio/"+f)),g}function i(a){if("string"!=typeof a)throw new Error("`url` argument must be a string");var b=a.split("?")[0],c=b.split("\\").pop().split("/").pop();return~c.indexOf(".")?c.substring(c.lastIndexOf(".")+1):""}function j(a){if("string"!=typeof a)throw new Error("`extension` argument must be a string");switch(a){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return a}}Object.defineProperty(c,"__esModule",{value:!0}),c.typeChecks=void 0,c.absolutizeUrl=e,c.formatType=f,c.getMimeFromType=g,c.getTypeFromFile=h,c.getExtension=i,c.normalizeExtension=j;var k=a(6),l=d(k),m=a(16),n=c.typeChecks=[];l["default"].Utils=l["default"].Utils||{},l["default"].Utils.typeChecks=n,l["default"].Utils.absolutizeUrl=e,l["default"].Utils.formatType=f,l["default"].Utils.getMimeFromType=g,l["default"].Utils.getTypeFromFile=h,l["default"].Utils.getExtension=i,l["default"].Utils.normalizeExtension=j},{16:16,6:6}],18:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a(2),f=d(e);!function(a){a.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype]),function(){function a(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=f["default"].createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c}return"function"==typeof window.CustomEvent?!1:(a.prototype=window.Event.prototype,void(window.CustomEvent=a))}(),"function"!=typeof Object.assign&&(Object.assign=function(a){if(null===a||void 0===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1,d=arguments.length;d>c;c++){var e=arguments[c];if(null!==e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=e[f])}return b}),String.prototype.startsWith||(String.prototype.startsWith=function(a,b){return b=b||0,this.substr(b,a.length)===a}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length-1;--c>=0&&b.item(c)!==this;);return c>-1}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(a){var b=(this.document||this.ownerDocument).querySelectorAll(a),c=void 0,d=this;do for(c=b.length;--c>=0&&b.item(c)!==d;);while(0>c&&(d=d.parentElement));return d}),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-a)),e=window.setTimeout(function(){b(c+d)},d);return a=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}(),/firefox/i.test(navigator.userAgent)&&(window.mediaElementJsOldGetComputedStyle=window.getComputedStyle,window.getComputedStyle=function(a,b){var c=window.mediaElementJsOldGetComputedStyle(a,b);return null===c?{getPropertyValue:function(){}}:c})},{2:2}]},{},[18,5,4,8,13,10,9,11,12,14]);

@@ -59,3 +59,3 @@ /*!

e.async = true;
e.src = '//api.dmcdn.net/all.js';
e.src = 'https://api.dmcdn.net/all.js';
var s = document.getElementsByTagName('script')[0];

@@ -146,3 +146,3 @@ s.parentNode.insertBefore(e, s);

canPlayType: function canPlayType(type) {
return ['video/dailymotion', 'video/x-dailymotion'].includes(type);
return ~['video/dailymotion', 'video/x-dailymotion'].indexOf(type.toLowerCase());
},

@@ -481,4 +481,4 @@

mejs.Utils.typeChecks.push(function (url) {
url = url.toLowerCase();
return url.includes('//dailymotion.com') || url.includes('www.dailymotion.com') || url.includes('//dai.ly') ? 'video/x-dailymotion' : null;
return (/\/\/((www\.)?dailymotion\.com|dai\.ly)/i.test(url) ? 'video/x-dailymotion' : null
);
});

@@ -485,0 +485,0 @@

@@ -22,2 +22,2 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isSDKStarted){var a=document.createElement("script");a.async=!0,a.src="//api.dmcdn.net/all.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),d.isSDKStarted=!0}},apiReady:function(){for(d.isLoaded=!0,d.isSDKLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=DM.player(a.container,{height:a.height||"100%",width:a.width||"100%",video:a.videoId,params:Object.assign({api:!0},a.params),origin:location.host});b.addEventListener("apiready",function(){window["__ready__"+a.id](b,{paused:!0,ended:!1})})},getDailyMotionId:function(a){var b=a.split("/"),c=b[b.length-1],d=c.split("_");return d[0]}},e={name:"dailymotion_iframe",options:{prefix:"dailymotion_iframe",dailymotion:{width:"100%",height:"100%",params:{autoplay:!1,chromeless:1,info:0,logo:0,related:0}}},canPlayType:function(a){return["video/dailymotion","video/x-dailymotion"].includes(a)},create:function(a,b,c){var e={},f=[],g=4,h=void 0,i=null,j=null;e.options=b,e.id=a.id+"_"+b.prefix,e.mediaElement=a;for(var k=mejs.html5media.properties,l=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);e["get"+c]=function(){if(null!==i){var c=null;switch(b){case"currentTime":return i.currentTime;case"duration":return isNaN(i.duration)?0:i.duration;case"volume":return i.volume;case"paused":return i.paused;case"ended":return i.ended;case"muted":return i.muted;case"buffered":var d=i.bufferedTime,e=i.duration;return{start:function(){return 0},end:function(){return d/e},length:1};case"src":return a.originalNode.getAttribute("src");case"readyState":return g}return c}return null},e["set"+c]=function(c){if(null!==i)switch(b){case"src":var g="string"==typeof c?c:c[0].src;i.load(d.getDailyMotionId(g));break;case"currentTime":i.seek(c);break;case"muted":c?i.setMuted(!0):i.setMuted(!1),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"volume":i.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"readyState":var h=mejs.Utils.createEvent("canplay",e);a.dispatchEvent(h)}else f.push({type:"set",propName:b,value:c})}},m=0,n=k.length;n>m;m++)l(k[m]);for(var o=mejs.html5media.methods,p=function(a){e[a]=function(){if(null!==i)switch(a){case"play":return i.play();case"pause":return i.pause();case"load":return null}else f.push({type:"call",methodName:a})}},q=0,r=o.length;r>q;q++)p(o[q]);window["__ready__"+e.id]=function(b){if(a.dmPlayer=i=b,f.length)for(var c=0,d=f.length;d>c;c++){var g=f[c];if("set"===g.type){var k=g.propName,l=""+k.substring(0,1).toUpperCase()+k.substring(1);e["set"+l](g.value)}else"call"===g.type&&e[g.methodName]()}j=document.getElementById(e.id),h=["mouseover","mouseout"];for(var m=function(b){var c=mejs.Utils.createEvent(b.type,e);a.dispatchEvent(c)},n=0,o=h.length;o>n;n++)j.addEventListener(h[n],m,!1);h=mejs.html5media.events,h=h.concat(["click","mouseover","mouseout"]);for(var p=function(b){"ended"!==b&&i.addEventListener(b,function(b){var c=mejs.Utils.createEvent(b.type,i);a.dispatchEvent(c)})},q=0,r=h.length;r>q;q++)p(h[q]);i.addEventListener("ad_start",function(){var b=mejs.Utils.createEvent("play",i);a.dispatchEvent(b),b=mejs.Utils.createEvent("progress",i),a.dispatchEvent(b),b=mejs.Utils.createEvent("timeupdate",i),a.dispatchEvent(b)}),i.addEventListener("ad_timeupdate",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)}),i.addEventListener("ad_pause",function(){var b=mejs.Utils.createEvent("pause",i);a.dispatchEvent(b)}),i.addEventListener("ad_end",function(){var b=mejs.Utils.createEvent("ended",i);a.dispatchEvent(b)}),i.addEventListener("video_start",function(){var b=mejs.Utils.createEvent("play",i);a.dispatchEvent(b),b=mejs.Utils.createEvent("timeupdate",i),a.dispatchEvent(b)}),i.addEventListener("video_end",function(){var b=mejs.Utils.createEvent("ended",i);a.dispatchEvent(b)}),i.addEventListener("progress",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)}),i.addEventListener("durationchange",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)});for(var s=["rendererready","loadeddata","loadedmetadata","canplay"],t=0,u=s.length;u>t;t++){var v=mejs.Utils.createEvent(s[t],e);a.dispatchEvent(v)}};var s=document.createElement("div");s.id=e.id,a.appendChild(s),a.originalNode&&(s.style.width=a.originalNode.style.width,s.style.height=a.originalNode.style.height),a.originalNode.style.display="none";var t=d.getDailyMotionId(c[0].src),u=Object.assign({id:e.id,container:s,videoId:t,autoplay:a.originalNode.autoplay},e.options.dailymotion);return d.enqueueIframe(u),e.hide=function(){e.stopInterval(),e.pause(),j&&(j.style.display="none")},e.show=function(){j&&(j.style.display="")},e.setSize=function(a,b){j.width=a,j.height=b},e.destroy=function(){i.destroy()},e.interval=null,e.startInterval=function(){e.interval=setInterval(function(){d.sendEvent(e.id,i,"timeupdate",{paused:!1,ended:!1})},250)},e.stopInterval=function(){e.interval&&clearInterval(e.interval)},e}};mejs.Utils.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//dailymotion.com")||a.includes("www.dailymotion.com")||a.includes("//dai.ly")?"video/x-dailymotion":null}),window.dmAsyncInit=function(){d.apiReady()},mejs.Renderers.add(e)},{}]},{},[1]);
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isSDKStarted){var a=document.createElement("script");a.async=!0,a.src="https://api.dmcdn.net/all.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),d.isSDKStarted=!0}},apiReady:function(){for(d.isLoaded=!0,d.isSDKLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=DM.player(a.container,{height:a.height||"100%",width:a.width||"100%",video:a.videoId,params:Object.assign({api:!0},a.params),origin:location.host});b.addEventListener("apiready",function(){window["__ready__"+a.id](b,{paused:!0,ended:!1})})},getDailyMotionId:function(a){var b=a.split("/"),c=b[b.length-1],d=c.split("_");return d[0]}},e={name:"dailymotion_iframe",options:{prefix:"dailymotion_iframe",dailymotion:{width:"100%",height:"100%",params:{autoplay:!1,chromeless:1,info:0,logo:0,related:0}}},canPlayType:function(a){return~["video/dailymotion","video/x-dailymotion"].indexOf(a.toLowerCase())},create:function(a,b,c){var e={},f=[],g=4,h=void 0,i=null,j=null;e.options=b,e.id=a.id+"_"+b.prefix,e.mediaElement=a;for(var k=mejs.html5media.properties,l=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);e["get"+c]=function(){if(null!==i){var c=null;switch(b){case"currentTime":return i.currentTime;case"duration":return isNaN(i.duration)?0:i.duration;case"volume":return i.volume;case"paused":return i.paused;case"ended":return i.ended;case"muted":return i.muted;case"buffered":var d=i.bufferedTime,e=i.duration;return{start:function(){return 0},end:function(){return d/e},length:1};case"src":return a.originalNode.getAttribute("src");case"readyState":return g}return c}return null},e["set"+c]=function(c){if(null!==i)switch(b){case"src":var g="string"==typeof c?c:c[0].src;i.load(d.getDailyMotionId(g));break;case"currentTime":i.seek(c);break;case"muted":c?i.setMuted(!0):i.setMuted(!1),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"volume":i.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"readyState":var h=mejs.Utils.createEvent("canplay",e);a.dispatchEvent(h)}else f.push({type:"set",propName:b,value:c})}},m=0,n=k.length;n>m;m++)l(k[m]);for(var o=mejs.html5media.methods,p=function(a){e[a]=function(){if(null!==i)switch(a){case"play":return i.play();case"pause":return i.pause();case"load":return null}else f.push({type:"call",methodName:a})}},q=0,r=o.length;r>q;q++)p(o[q]);window["__ready__"+e.id]=function(b){if(a.dmPlayer=i=b,f.length)for(var c=0,d=f.length;d>c;c++){var g=f[c];if("set"===g.type){var k=g.propName,l=""+k.substring(0,1).toUpperCase()+k.substring(1);e["set"+l](g.value)}else"call"===g.type&&e[g.methodName]()}j=document.getElementById(e.id),h=["mouseover","mouseout"];for(var m=function(b){var c=mejs.Utils.createEvent(b.type,e);a.dispatchEvent(c)},n=0,o=h.length;o>n;n++)j.addEventListener(h[n],m,!1);h=mejs.html5media.events,h=h.concat(["click","mouseover","mouseout"]);for(var p=function(b){"ended"!==b&&i.addEventListener(b,function(b){var c=mejs.Utils.createEvent(b.type,i);a.dispatchEvent(c)})},q=0,r=h.length;r>q;q++)p(h[q]);i.addEventListener("ad_start",function(){var b=mejs.Utils.createEvent("play",i);a.dispatchEvent(b),b=mejs.Utils.createEvent("progress",i),a.dispatchEvent(b),b=mejs.Utils.createEvent("timeupdate",i),a.dispatchEvent(b)}),i.addEventListener("ad_timeupdate",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)}),i.addEventListener("ad_pause",function(){var b=mejs.Utils.createEvent("pause",i);a.dispatchEvent(b)}),i.addEventListener("ad_end",function(){var b=mejs.Utils.createEvent("ended",i);a.dispatchEvent(b)}),i.addEventListener("video_start",function(){var b=mejs.Utils.createEvent("play",i);a.dispatchEvent(b),b=mejs.Utils.createEvent("timeupdate",i),a.dispatchEvent(b)}),i.addEventListener("video_end",function(){var b=mejs.Utils.createEvent("ended",i);a.dispatchEvent(b)}),i.addEventListener("progress",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)}),i.addEventListener("durationchange",function(){var b=mejs.Utils.createEvent("timeupdate",i);a.dispatchEvent(b)});for(var s=["rendererready","loadeddata","loadedmetadata","canplay"],t=0,u=s.length;u>t;t++){var v=mejs.Utils.createEvent(s[t],e);a.dispatchEvent(v)}};var s=document.createElement("div");s.id=e.id,a.appendChild(s),a.originalNode&&(s.style.width=a.originalNode.style.width,s.style.height=a.originalNode.style.height),a.originalNode.style.display="none";var t=d.getDailyMotionId(c[0].src),u=Object.assign({id:e.id,container:s,videoId:t,autoplay:a.originalNode.autoplay},e.options.dailymotion);return d.enqueueIframe(u),e.hide=function(){e.stopInterval(),e.pause(),j&&(j.style.display="none")},e.show=function(){j&&(j.style.display="")},e.setSize=function(a,b){j.width=a,j.height=b},e.destroy=function(){i.destroy()},e.interval=null,e.startInterval=function(){e.interval=setInterval(function(){d.sendEvent(e.id,i,"timeupdate",{paused:!1,ended:!1})},250)},e.stopInterval=function(){e.interval&&clearInterval(e.interval)},e}};mejs.Utils.typeChecks.push(function(a){return/\/\/((www\.)?dailymotion\.com|dai\.ly)/i.test(a)?"video/x-dailymotion":null}),window.dmAsyncInit=function(){d.apiReady()},mejs.Renderers.add(e)},{}]},{},[1]);

@@ -40,3 +40,3 @@ /*!

canPlayType: function canPlayType(type) {
return ['video/facebook', 'video/x-facebook'].includes(type);
return ~['video/facebook', 'video/x-facebook'].indexOf(type.toLowerCase());
},

@@ -370,3 +370,3 @@

js.id = id;
js.src = '//connect.facebook.net/en_US/sdk.js';
js.src = 'https://connect.facebook.net/en_US/sdk.js';
fjs.parentNode.insertBefore(js, fjs);

@@ -423,4 +423,3 @@ })(document, 'script', 'facebook-jssdk');

mejs.Utils.typeChecks.push(function (url) {
url = url.toLowerCase();
return url.includes('//www.facebook') ? 'video/x-facebook' : null;
return ~url.toLowerCase().indexOf('//www.facebook') ? 'video/x-facebook' : null;
});

@@ -427,0 +426,0 @@

@@ -22,2 +22,2 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={name:"facebook",options:{prefix:"facebook",facebook:{appId:"{your-app-id}",xfbml:!0,version:"v2.6"}},canPlayType:function(a){return["video/facebook","video/x-facebook"].includes(a)},create:function(a,b,c){function d(b){for(var c=0,d=b.length;d>c;c++){var e=mejs.Utils.createEvent(b[c],f);a.dispatchEvent(e)}}function e(b,c){k=b,p=document.createElement("div"),p.id=f.id,p.className="fb-video",p.setAttribute("data-href",b),p.setAttribute("data-allowfullscreen","true"),p.setAttribute("data-controls","false"),a.originalNode.parentNode.insertBefore(p,a.originalNode),a.originalNode.style.display="none",window.fbAsyncInit=function(){FB.init(c),FB.Event.subscribe("xfbml.ready",function(b){if("video"===b.type){o=b.instance;var c=p.getElementsByTagName("iframe")[0],e=c.offsetWidth,i=c.offsetHeight,k=["mouseover","mouseout"],q=function(b){var c=mejs.Utils.createEvent(b.type,f);a.dispatchEvent(c)};f.setSize(e,i),j&&o.play();for(var r=0,s=k.length;s>r;r++)c.addEventListener(k[r],q,!1);for(var t=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],u=0,v=t.length;v>u;u++){var w=t[u],x=h[w];void 0===x||null===x||mejs.Utils.isObjectEmpty(x)||"function"!=typeof x.removeListener||x.removeListener(w)}if(g.length)for(var y=0,z=g.length;z>y;y++){var A=g[y];if("set"===A.type){var B=A.propName,C=""+B.substring(0,1).toUpperCase()+B.substring(1);f["set"+C](A.value)}else"call"===A.type&&f[A.methodName]()}d(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var D=void 0;h.startedPlaying=o.subscribe("startedPlaying",function(){n||(n=!0),l=!1,m=!1,d(["play","playing","timeupdate"]),D=setInterval(function(){o.getCurrentPosition(),d(["timeupdate"])},250)}),h.paused=o.subscribe("paused",function(){l=!0,m=!1,d(["pause"])}),h.finishedPlaying=o.subscribe("finishedPlaying",function(){l=!0,m=!0,d(["ended"]),clearInterval(D),D=null}),h.startedBuffering=o.subscribe("startedBuffering",function(){d(["progress","timeupdate"])}),h.finishedBuffering=o.subscribe("finishedBuffering",function(){d(["progress","timeupdate"])})}})},function(a,b,c){var d=a.getElementsByTagName(b)[0];if(!a.getElementById(c)){var e=a.createElement(b);e.id=c,e.src="//connect.facebook.net/en_US/sdk.js",d.parentNode.insertBefore(e,d)}}(document,"script","facebook-jssdk")}var f={},g=[],h={},i=4,j=a.originalNode.autoplay,k="",l=!0,m=!1,n=!1,o=null,p=null;b=Object.assign(b,a.options),f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=mejs.html5media.properties,r=function(c){var d=""+c.substring(0,1).toUpperCase()+c.substring(1);f["get"+d]=function(){if(null!==o){var a=null;switch(c){case"currentTime":return o.getCurrentPosition();case"duration":return o.getDuration();case"volume":return o.getVolume();case"paused":return l;case"ended":return m;case"muted":return o.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return k;case"readyState":return i}return a}return null},f["set"+d]=function(d){if(null!==o)switch(c){case"src":var h="string"==typeof d?d:d[0].src;p.remove(),e(h,b.facebook),FB.XFBML.parse(),j&&o.play();break;case"currentTime":o.seek(d);break;case"muted":d?o.mute():o.unmute(),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"volume":o.setVolume(d),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"readyState":var i=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(i)}else g.push({type:"set",propName:c,value:d})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=mejs.html5media.methods,v=function(a){f[a]=function(){if(null!==o)switch(a){case"play":return o.play();case"pause":return o.pause();case"load":return null}else g.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);return c.length>0&&e(c[0].src,f.options.facebook),f.hide=function(){f.stopInterval(),f.pause(),p&&(p.style.display="none")},f.show=function(){p&&(p.style.display="")},f.setSize=function(a,b){null===o||isNaN(a)||isNaN(b)||(p.style.width=a,p.style.height=b)},f.destroy=function(){},f.interval=null,f.startInterval=function(){f.interval=setInterval(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},250)},f.stopInterval=function(){f.interval&&clearInterval(f.interval)},f}};mejs.Utils.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(d)},{}]},{},[1]);
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={name:"facebook",options:{prefix:"facebook",facebook:{appId:"{your-app-id}",xfbml:!0,version:"v2.6"}},canPlayType:function(a){return~["video/facebook","video/x-facebook"].indexOf(a.toLowerCase())},create:function(a,b,c){function d(b){for(var c=0,d=b.length;d>c;c++){var e=mejs.Utils.createEvent(b[c],f);a.dispatchEvent(e)}}function e(b,c){k=b,p=document.createElement("div"),p.id=f.id,p.className="fb-video",p.setAttribute("data-href",b),p.setAttribute("data-allowfullscreen","true"),p.setAttribute("data-controls","false"),a.originalNode.parentNode.insertBefore(p,a.originalNode),a.originalNode.style.display="none",window.fbAsyncInit=function(){FB.init(c),FB.Event.subscribe("xfbml.ready",function(b){if("video"===b.type){o=b.instance;var c=p.getElementsByTagName("iframe")[0],e=c.offsetWidth,i=c.offsetHeight,k=["mouseover","mouseout"],q=function(b){var c=mejs.Utils.createEvent(b.type,f);a.dispatchEvent(c)};f.setSize(e,i),j&&o.play();for(var r=0,s=k.length;s>r;r++)c.addEventListener(k[r],q,!1);for(var t=["startedPlaying","paused","finishedPlaying","startedBuffering","finishedBuffering"],u=0,v=t.length;v>u;u++){var w=t[u],x=h[w];void 0===x||null===x||mejs.Utils.isObjectEmpty(x)||"function"!=typeof x.removeListener||x.removeListener(w)}if(g.length)for(var y=0,z=g.length;z>y;y++){var A=g[y];if("set"===A.type){var B=A.propName,C=""+B.substring(0,1).toUpperCase()+B.substring(1);f["set"+C](A.value)}else"call"===A.type&&f[A.methodName]()}d(["rendererready","loadeddata","canplay","progress","loadedmetadata","timeupdate"]);var D=void 0;h.startedPlaying=o.subscribe("startedPlaying",function(){n||(n=!0),l=!1,m=!1,d(["play","playing","timeupdate"]),D=setInterval(function(){o.getCurrentPosition(),d(["timeupdate"])},250)}),h.paused=o.subscribe("paused",function(){l=!0,m=!1,d(["pause"])}),h.finishedPlaying=o.subscribe("finishedPlaying",function(){l=!0,m=!0,d(["ended"]),clearInterval(D),D=null}),h.startedBuffering=o.subscribe("startedBuffering",function(){d(["progress","timeupdate"])}),h.finishedBuffering=o.subscribe("finishedBuffering",function(){d(["progress","timeupdate"])})}})},function(a,b,c){var d=a.getElementsByTagName(b)[0];if(!a.getElementById(c)){var e=a.createElement(b);e.id=c,e.src="https://connect.facebook.net/en_US/sdk.js",d.parentNode.insertBefore(e,d)}}(document,"script","facebook-jssdk")}var f={},g=[],h={},i=4,j=a.originalNode.autoplay,k="",l=!0,m=!1,n=!1,o=null,p=null;b=Object.assign(b,a.options),f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=mejs.html5media.properties,r=function(c){var d=""+c.substring(0,1).toUpperCase()+c.substring(1);f["get"+d]=function(){if(null!==o){var a=null;switch(c){case"currentTime":return o.getCurrentPosition();case"duration":return o.getDuration();case"volume":return o.getVolume();case"paused":return l;case"ended":return m;case"muted":return o.isMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return k;case"readyState":return i}return a}return null},f["set"+d]=function(d){if(null!==o)switch(c){case"src":var h="string"==typeof d?d:d[0].src;p.remove(),e(h,b.facebook),FB.XFBML.parse(),j&&o.play();break;case"currentTime":o.seek(d);break;case"muted":d?o.mute():o.unmute(),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"volume":o.setVolume(d),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"readyState":var i=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(i)}else g.push({type:"set",propName:c,value:d})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=mejs.html5media.methods,v=function(a){f[a]=function(){if(null!==o)switch(a){case"play":return o.play();case"pause":return o.pause();case"load":return null}else g.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);return c.length>0&&e(c[0].src,f.options.facebook),f.hide=function(){f.stopInterval(),f.pause(),p&&(p.style.display="none")},f.show=function(){p&&(p.style.display="")},f.setSize=function(a,b){null===o||isNaN(a)||isNaN(b)||(p.style.width=a,p.style.height=b)},f.destroy=function(){},f.interval=null,f.startInterval=function(){f.interval=setInterval(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},250)},f.stopInterval=function(){f.interval&&clearInterval(f.interval)},f}};mejs.Utils.typeChecks.push(function(a){return~a.toLowerCase().indexOf("//www.facebook")?"video/x-facebook":null}),mejs.Renderers.add(d)},{}]},{},[1]);

@@ -62,3 +62,3 @@ /*!

script.src = '//w.soundcloud.com/player/api.js';
script.src = 'https://w.soundcloud.com/player/api.js';

@@ -121,3 +121,3 @@ // Attach handlers for all browsers

canPlayType: function canPlayType(type) {
return ['video/soundcloud', 'video/x-soundcloud'].includes(type);
return ~['video/soundcloud', 'video/x-soundcloud'].indexOf(type.toLowerCase());
},

@@ -438,4 +438,4 @@

mejs.Utils.typeChecks.push(function (url) {
url = url.toLowerCase();
return url.includes('//soundcloud.com') || url.includes('//w.soundcloud.com') ? 'video/x-soundcloud' : null;
return (/\/\/(w\.)?soundcloud.com/i.test(url) ? 'video/x-soundcloud' : null
);
});

@@ -442,0 +442,0 @@

@@ -22,2 +22,2 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isSDKStarted){var a=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script"),c=!1;b.src="//w.soundcloud.com/player/api.js",b.onload=b.onreadystatechange=function(){c||d.readyState&&"loaded"!==d.readyState&&"complete"!==d.readyState||(c=!0,d.apiReady(),b.onload=b.onreadystatechange=null,b.remove())},a.appendChild(b),d.isSDKStarted=!0}},apiReady:function(){for(d.isLoaded=!0,d.isSDKLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=SC.Widget(a.iframe);window["__ready__"+a.id](b)}},e={name:"soundcloud_iframe",options:{prefix:"soundcloud_iframe"},canPlayType:function(a){return["video/soundcloud","video/x-soundcloud"].includes(a)},create:function(a,b,c){var e={},f=[],g=4,h=a.originalNode.autoplay,i=0,j=0,k=0,l=1,m=!1,n=!0,o=!1,p=null,q=null;e.options=b,e.id=a.id+"_"+b.prefix,e.mediaElement=a;for(var r=mejs.html5media.properties,s=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);e["get"+c]=function(){if(null!==p){var a=null;switch(b){case"currentTime":return j;case"duration":return i;case"volume":return l;case"paused":return n;case"ended":return o;case"muted":return m;case"buffered":return{start:function(){return 0},end:function(){return k*i},length:1};case"src":return q?q.src:"";case"readyState":return g}return a}return null},e["set"+c]=function(c){if(null!==p)switch(b){case"src":var d="string"==typeof c?c:c[0].src;p.load(d),h&&p.play();break;case"currentTime":p.seekTo(1e3*c);break;case"muted":c?p.setVolume(0):p.setVolume(1),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"volume":p.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"readyState":var g=mejs.Utils.createEvent("canplay",e);a.dispatchEvent(g)}else f.push({type:"set",propName:b,value:c})}},t=0,u=r.length;u>t;t++)s(r[t]);for(var v=mejs.html5media.methods,w=function(a){e[a]=function(){if(null!==p)switch(a){case"play":return p.play();case"pause":return p.pause();case"load":return null}else f.push({type:"call",methodName:a})}},x=0,y=v.length;y>x;x++)w(v[x]);window["__ready__"+e.id]=function(b){if(a.scPlayer=p=b,h&&p.play(),f.length)for(var c=0,d=f.length;d>c;c++){var g=f[c];if("set"===g.type){var l=g.propName,m=""+l.substring(0,1).toUpperCase()+l.substring(1);e["set"+m](g.value)}else"call"===g.type&&e[g.methodName]()}p.bind(SC.Widget.Events.PLAY_PROGRESS,function(){n=!1,o=!1,p.getPosition(function(b){j=b/1e3;var c=mejs.Utils.createEvent("timeupdate",e);a.dispatchEvent(c)})}),p.bind(SC.Widget.Events.PAUSE,function(){n=!0;var b=mejs.Utils.createEvent("pause",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.PLAY,function(){n=!1,o=!1;var b=mejs.Utils.createEvent("play",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.FINISHED,function(){n=!1,o=!0;var b=mejs.Utils.createEvent("ended",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.READY,function(){p.getDuration(function(b){i=b/1e3;var c=mejs.Utils.createEvent("loadedmetadata",e);a.dispatchEvent(c)})}),p.bind(SC.Widget.Events.LOAD_PROGRESS,function(){p.getDuration(function(b){if(i>0){k=i*b;var c=mejs.Utils.createEvent("progress",e);a.dispatchEvent(c)}}),p.getDuration(function(b){i=b;var c=mejs.Utils.createEvent("loadedmetadata",e);a.dispatchEvent(c)})});for(var q=["rendererready","loadeddata","loadedmetadata","canplay"],r=0,s=q.length;s>r;r++){var t=mejs.Utils.createEvent(q[r],e);a.dispatchEvent(t)}},q=document.createElement("iframe"),q.id=e.id,q.width=10,q.height=10,q.frameBorder=0,q.style.visibility="hidden",q.src=c[0].src,q.scrolling="no",a.appendChild(q),a.originalNode.style.display="none";var z={iframe:q,id:e.id};return d.enqueueIframe(z),e.setSize=function(){},e.hide=function(){e.pause(),q&&(q.style.display="none")},e.show=function(){q&&(q.style.display="")},e.destroy=function(){p.destroy()},e}};mejs.Utils.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//soundcloud.com")||a.includes("//w.soundcloud.com")?"video/x-soundcloud":null}),mejs.Renderers.add(e)},{}]},{},[1]);
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isSDKStarted:!1,isSDKLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isSDKStarted){var a=document.getElementsByTagName("head")[0]||document.documentElement,b=document.createElement("script"),c=!1;b.src="https://w.soundcloud.com/player/api.js",b.onload=b.onreadystatechange=function(){c||d.readyState&&"loaded"!==d.readyState&&"complete"!==d.readyState||(c=!0,d.apiReady(),b.onload=b.onreadystatechange=null,b.remove())},a.appendChild(b),d.isSDKStarted=!0}},apiReady:function(){for(d.isLoaded=!0,d.isSDKLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=SC.Widget(a.iframe);window["__ready__"+a.id](b)}},e={name:"soundcloud_iframe",options:{prefix:"soundcloud_iframe"},canPlayType:function(a){return~["video/soundcloud","video/x-soundcloud"].indexOf(a.toLowerCase())},create:function(a,b,c){var e={},f=[],g=4,h=a.originalNode.autoplay,i=0,j=0,k=0,l=1,m=!1,n=!0,o=!1,p=null,q=null;e.options=b,e.id=a.id+"_"+b.prefix,e.mediaElement=a;for(var r=mejs.html5media.properties,s=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);e["get"+c]=function(){if(null!==p){var a=null;switch(b){case"currentTime":return j;case"duration":return i;case"volume":return l;case"paused":return n;case"ended":return o;case"muted":return m;case"buffered":return{start:function(){return 0},end:function(){return k*i},length:1};case"src":return q?q.src:"";case"readyState":return g}return a}return null},e["set"+c]=function(c){if(null!==p)switch(b){case"src":var d="string"==typeof c?c:c[0].src;p.load(d),h&&p.play();break;case"currentTime":p.seekTo(1e3*c);break;case"muted":c?p.setVolume(0):p.setVolume(1),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"volume":p.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",e);a.dispatchEvent(b)},50);break;case"readyState":var g=mejs.Utils.createEvent("canplay",e);a.dispatchEvent(g)}else f.push({type:"set",propName:b,value:c})}},t=0,u=r.length;u>t;t++)s(r[t]);for(var v=mejs.html5media.methods,w=function(a){e[a]=function(){if(null!==p)switch(a){case"play":return p.play();case"pause":return p.pause();case"load":return null}else f.push({type:"call",methodName:a})}},x=0,y=v.length;y>x;x++)w(v[x]);window["__ready__"+e.id]=function(b){if(a.scPlayer=p=b,h&&p.play(),f.length)for(var c=0,d=f.length;d>c;c++){var g=f[c];if("set"===g.type){var l=g.propName,m=""+l.substring(0,1).toUpperCase()+l.substring(1);e["set"+m](g.value)}else"call"===g.type&&e[g.methodName]()}p.bind(SC.Widget.Events.PLAY_PROGRESS,function(){n=!1,o=!1,p.getPosition(function(b){j=b/1e3;var c=mejs.Utils.createEvent("timeupdate",e);a.dispatchEvent(c)})}),p.bind(SC.Widget.Events.PAUSE,function(){n=!0;var b=mejs.Utils.createEvent("pause",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.PLAY,function(){n=!1,o=!1;var b=mejs.Utils.createEvent("play",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.FINISHED,function(){n=!1,o=!0;var b=mejs.Utils.createEvent("ended",e);a.dispatchEvent(b)}),p.bind(SC.Widget.Events.READY,function(){p.getDuration(function(b){i=b/1e3;var c=mejs.Utils.createEvent("loadedmetadata",e);a.dispatchEvent(c)})}),p.bind(SC.Widget.Events.LOAD_PROGRESS,function(){p.getDuration(function(b){if(i>0){k=i*b;var c=mejs.Utils.createEvent("progress",e);a.dispatchEvent(c)}}),p.getDuration(function(b){i=b;var c=mejs.Utils.createEvent("loadedmetadata",e);a.dispatchEvent(c)})});for(var q=["rendererready","loadeddata","loadedmetadata","canplay"],r=0,s=q.length;s>r;r++){var t=mejs.Utils.createEvent(q[r],e);a.dispatchEvent(t)}},q=document.createElement("iframe"),q.id=e.id,q.width=10,q.height=10,q.frameBorder=0,q.style.visibility="hidden",q.src=c[0].src,q.scrolling="no",a.appendChild(q),a.originalNode.style.display="none";var z={iframe:q,id:e.id};return d.enqueueIframe(z),e.setSize=function(){},e.hide=function(){e.pause(),q&&(q.style.display="none")},e.show=function(){q&&(q.style.display="")},e.destroy=function(){p.destroy()},e}};mejs.Utils.typeChecks.push(function(a){return/\/\/(w\.)?soundcloud.com/i.test(a)?"video/x-soundcloud":null}),mejs.Renderers.add(e)},{}]},{},[1]);

@@ -65,3 +65,3 @@ /*!

script.src = '//player.twitch.tv/js/embed/v1.js';
script.src = 'https://player.twitch.tv/js/embed/v1.js';

@@ -154,6 +154,6 @@ // Attach handlers for all browsers

var paramParts = parameters[i].split('=');
if (paramParts[0].includes('channel=')) {
if (~paramParts[0].indexOf('channel=')) {
twitchId = paramParts[1];
break;
} else if (paramParts[0].includes('video=')) {
} else if (~paramParts[0].indexOf('video=')) {
twitchId = 'v' + paramParts[1];

@@ -184,3 +184,4 @@ break;

var id = url.substring(url.lastIndexOf('/') + 1);
return id.match(/^\d+$/i) !== null ? 'v' + id : id;
return (/^\d+$/i.test(id) !== null ? 'v' + id : id
);
},

@@ -196,3 +197,4 @@

getTwitchType: function getTwitchType(id) {
return id.match(/^v\d+/i) !== null ? 'video' : 'channel';
return (/^v\d+/i.test(id) !== null ? 'video' : 'channel'
);
}

@@ -215,3 +217,3 @@ };

canPlayType: function canPlayType(type) {
return ['video/twitch', 'video/x-twitch'].includes(type);
return ~['video/twitch', 'video/x-twitch'].indexOf(type.toLowerCase());
},

@@ -536,4 +538,4 @@

mejs.Utils.typeChecks.push(function (url) {
url = url.toLowerCase();
return url.includes('//www.twitch.tv') || url.includes('//player.twitch.tv') ? 'video/x-twitch' : null;
return (/\/\/(www|player).twitch.tv/i.test(url) ? 'video/x-twitch' : null
);
});

@@ -540,0 +542,0 @@

@@ -22,2 +22,2 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded="undefined"!=typeof Twitch,d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isIframeStarted){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0],c=!1;a.src="//player.twitch.tv/js/embed/v1.js",a.onload=a.onreadystatechange=function(){c||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c=!0,d.iFrameReady(),a.onload=a.onreadystatechange=null)},b.parentNode.insertBefore(a,b),d.isIframeStarted=!0}},iFrameReady:function(){for(d.isLoaded=!0,d.isIframeLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=new Twitch.Player(a.id,a);window["__ready__"+a.id](b)},getTwitchId:function(a){var b="";return a.indexOf("?")>0?(b=d.getTwitchIdFromParam(a),""===b&&(b=d.getTwitchIdFromUrl(a))):b=d.getTwitchIdFromUrl(a),b},getTwitchIdFromParam:function(a){if(void 0===a||null===a||!a.trim().length)return null;for(var b=a.split("?"),c=b[1].split("&"),d="",e=0,f=c.length;f>e;e++){var g=c[e].split("=");if(g[0].includes("channel=")){d=g[1];break}if(g[0].includes("video=")){d="v"+g[1];break}}return d},getTwitchIdFromUrl:function(a){if(void 0===a||null===a||!a.trim().length)return null;var b=a.split("?");a=b[0];var c=a.substring(a.lastIndexOf("/")+1);return null!==c.match(/^\d+$/i)?"v"+c:c},getTwitchType:function(a){return null!==a.match(/^v\d+/i)?"video":"channel"}},e={name:"twitch_iframe",options:{prefix:"twitch_iframe"},canPlayType:function(a){return["video/twitch","video/x-twitch"].includes(a)},create:function(a,b,c){function e(b){for(var c=0,d=b.length;d>c;c++){var e=mejs.Utils.createEvent(b[c],f);a.dispatchEvent(e)}}var f={},g=[],h=4,i=d.getTwitchId(c[0].src),j=null,k=!0,l=!1,m=!1,n=1,o=1/0,p=0;f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=mejs.html5media.properties,r=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);f["get"+c]=function(){if(null!==j){var a=null;switch(b){case"currentTime":return p=j.getCurrentTime();case"duration":return o=j.getDuration();case"volume":return n=j.getVolume();case"paused":return k=j.isPaused();case"ended":return l=j.getEnded();case"muted":return j.getMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return"channel"===d.getTwitchType(i)?j.getChannel():j.getVideo();case"readyState":return h}return a}return null},f["set"+c]=function(c){if(null!==j)switch(b){case"src":var e="string"==typeof c?c:c[0].src,h=d.getTwitchId(e);"channel"===d.getTwitchType(i)?j.setChannel(h):j.setVideo(h);break;case"currentTime":j.seek(c),setTimeout(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},50);break;case"muted":j.setMuted(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"volume":n=c,j.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"readyState":var k=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(k)}else g.push({type:"set",propName:b,value:c})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=mejs.html5media.methods,v=function(a){f[a]=function(){if(null!==j)switch(a){case"play":return k=!1,j.play();case"pause":return k=!0,j.pause();case"load":return null}else g.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);window["__ready__"+f.id]=function(b){if(a.twitchPlayer=j=b,g.length)for(var c=0,d=g.length;d>c;c++){var h=g[c];if("set"===h.type){var i=h.propName,n=""+i.substring(0,1).toUpperCase()+i.substring(1);f["set"+n](h.value)}else"call"===h.type&&f[h.methodName]()}var o=document.getElementById(f.id).firstChild;o.style.width="100%",o.style.height="100%";for(var p=["mouseover","mouseout"],q=function(b){var c=createEvent(b.type,f);a.dispatchEvent(c)},r=0,s=p.length;s>r;r++)o.addEventListener(p[r],q,!1);var t=void 0;j.addEventListener("ready",function(){k=!1,l=!1,e(["rendererready","loadedmetadata","loadeddata","canplay"])}),j.addEventListener("play",function(){m||(m=!0),k=!1,l=!1,e(["play","playing","progress"]),t=setInterval(function(){j.getCurrentTime(),e(["timeupdate"])},250)}),j.addEventListener("pause",function(){k=!0,l=!1,j.getEnded()||e(["pause"])}),j.addEventListener("ended",function(){k=!0,l=!0,e(["ended"]),clearInterval(t),m=!1,t=null})};var y=a.originalNode.height,z=a.originalNode.width,A=document.createElement("div"),B=d.getTwitchType(i),C={id:f.id,width:z,height:y,playsinline:!1,autoplay:a.originalNode.autoplay};return C[B]=i,A.id=f.id,A.style.width="100%",A.style.height="100%",a.originalNode.parentNode.insertBefore(A,a.originalNode),a.originalNode.style.display="none",a.originalNode.autoplay=!1,d.enqueueIframe(C),f.setSize=function(a,b){null===d||isNaN(a)||isNaN(b)||(A.setAttribute("width",a),A.setAttribute("height",b))},f.hide=function(){f.pause(),A.style.display="none"},f.show=function(){A.style.display=""},f.destroy=function(){},f}};mejs.Utils.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//www.twitch.tv")||a.includes("//player.twitch.tv")?"video/x-twitch":null}),mejs.Renderers.add(e)},{}]},{},[1]);
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded="undefined"!=typeof Twitch,d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isIframeStarted){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0],c=!1;a.src="https://player.twitch.tv/js/embed/v1.js",a.onload=a.onreadystatechange=function(){c||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c=!0,d.iFrameReady(),a.onload=a.onreadystatechange=null)},b.parentNode.insertBefore(a,b),d.isIframeStarted=!0}},iFrameReady:function(){for(d.isLoaded=!0,d.isIframeLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=new Twitch.Player(a.id,a);window["__ready__"+a.id](b)},getTwitchId:function(a){var b="";return a.indexOf("?")>0?(b=d.getTwitchIdFromParam(a),""===b&&(b=d.getTwitchIdFromUrl(a))):b=d.getTwitchIdFromUrl(a),b},getTwitchIdFromParam:function(a){if(void 0===a||null===a||!a.trim().length)return null;for(var b=a.split("?"),c=b[1].split("&"),d="",e=0,f=c.length;f>e;e++){var g=c[e].split("=");if(~g[0].indexOf("channel=")){d=g[1];break}if(~g[0].indexOf("video=")){d="v"+g[1];break}}return d},getTwitchIdFromUrl:function(a){if(void 0===a||null===a||!a.trim().length)return null;var b=a.split("?");a=b[0];var c=a.substring(a.lastIndexOf("/")+1);return null!==/^\d+$/i.test(c)?"v"+c:c},getTwitchType:function(a){return null!==/^v\d+/i.test(a)?"video":"channel"}},e={name:"twitch_iframe",options:{prefix:"twitch_iframe"},canPlayType:function(a){return~["video/twitch","video/x-twitch"].indexOf(a.toLowerCase())},create:function(a,b,c){function e(b){for(var c=0,d=b.length;d>c;c++){var e=mejs.Utils.createEvent(b[c],f);a.dispatchEvent(e)}}var f={},g=[],h=4,i=d.getTwitchId(c[0].src),j=null,k=!0,l=!1,m=!1,n=1,o=1/0,p=0;f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=mejs.html5media.properties,r=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);f["get"+c]=function(){if(null!==j){var a=null;switch(b){case"currentTime":return p=j.getCurrentTime();case"duration":return o=j.getDuration();case"volume":return n=j.getVolume();case"paused":return k=j.isPaused();case"ended":return l=j.getEnded();case"muted":return j.getMuted();case"buffered":return{start:function(){return 0},end:function(){return 0},length:1};case"src":return"channel"===d.getTwitchType(i)?j.getChannel():j.getVideo();case"readyState":return h}return a}return null},f["set"+c]=function(c){if(null!==j)switch(b){case"src":var e="string"==typeof c?c:c[0].src,h=d.getTwitchId(e);"channel"===d.getTwitchType(i)?j.setChannel(h):j.setVideo(h);break;case"currentTime":j.seek(c),setTimeout(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},50);break;case"muted":j.setMuted(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"volume":n=c,j.setVolume(c),setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50);break;case"readyState":var k=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(k)}else g.push({type:"set",propName:b,value:c})}},s=0,t=q.length;t>s;s++)r(q[s]);for(var u=mejs.html5media.methods,v=function(a){f[a]=function(){if(null!==j)switch(a){case"play":return k=!1,j.play();case"pause":return k=!0,j.pause();case"load":return null}else g.push({type:"call",methodName:a})}},w=0,x=u.length;x>w;w++)v(u[w]);window["__ready__"+f.id]=function(b){if(a.twitchPlayer=j=b,g.length)for(var c=0,d=g.length;d>c;c++){var h=g[c];if("set"===h.type){var i=h.propName,n=""+i.substring(0,1).toUpperCase()+i.substring(1);f["set"+n](h.value)}else"call"===h.type&&f[h.methodName]()}var o=document.getElementById(f.id).firstChild;o.style.width="100%",o.style.height="100%";for(var p=["mouseover","mouseout"],q=function(b){var c=createEvent(b.type,f);a.dispatchEvent(c)},r=0,s=p.length;s>r;r++)o.addEventListener(p[r],q,!1);var t=void 0;j.addEventListener("ready",function(){k=!1,l=!1,e(["rendererready","loadedmetadata","loadeddata","canplay"])}),j.addEventListener("play",function(){m||(m=!0),k=!1,l=!1,e(["play","playing","progress"]),t=setInterval(function(){j.getCurrentTime(),e(["timeupdate"])},250)}),j.addEventListener("pause",function(){k=!0,l=!1,j.getEnded()||e(["pause"])}),j.addEventListener("ended",function(){k=!0,l=!0,e(["ended"]),clearInterval(t),m=!1,t=null})};var y=a.originalNode.height,z=a.originalNode.width,A=document.createElement("div"),B=d.getTwitchType(i),C={id:f.id,width:z,height:y,playsinline:!1,autoplay:a.originalNode.autoplay};return C[B]=i,A.id=f.id,A.style.width="100%",A.style.height="100%",a.originalNode.parentNode.insertBefore(A,a.originalNode),a.originalNode.style.display="none",a.originalNode.autoplay=!1,d.enqueueIframe(C),f.setSize=function(a,b){null===d||isNaN(a)||isNaN(b)||(A.setAttribute("width",a),A.setAttribute("height",b))},f.hide=function(){f.pause(),A.style.display="none"},f.show=function(){A.style.display=""},f.destroy=function(){},f}};mejs.Utils.typeChecks.push(function(a){return/\/\/(www|player).twitch.tv/i.test(a)?"video/x-twitch":null}),mejs.Renderers.add(e)},{}]},{},[1]);

@@ -69,7 +69,7 @@ /*!

script.src = '//player.vimeo.com/api/player.js';
script.src = 'https://player.vimeo.com/api/player.js';
// Attach handlers for all browsers
script.onload = script.onreadystatechange = function () {
if (!done && (!undefined.readyState || undefined.readyState === undefined || undefined.readyState === 'loaded' || undefined.readyState === 'complete')) {
if (!done && (!this.readyState || this.readyState === undefined || this.readyState === 'loaded' || this.readyState === 'complete')) {
done = true;

@@ -146,3 +146,3 @@ vimeoApi.iFrameReady();

canPlayType: function canPlayType(type) {
return ['video/vimeo', 'video/x-vimeo'].includes(type);
return ~['video/vimeo', 'video/x-vimeo'].indexOf(type.toLowerCase());
},

@@ -479,3 +479,3 @@

standardUrl = '//player.vimeo.com/video/' + vimeoApi.getVimeoId(mediaFiles[0].src),
queryArgs = mediaFiles[0].src.includes('?') ? '?' + mediaFiles[0].src.slice(mediaFiles[0].src.indexOf('?') + 1) : '';
queryArgs = ~mediaFiles[0].src.indexOf('?') ? '?' + mediaFiles[0].src.slice(mediaFiles[0].src.indexOf('?') + 1) : '';

@@ -526,4 +526,4 @@ // Create Vimeo <iframe> markup

mejs.Utils.typeChecks.push(function (url) {
url = url.toLowerCase();
return url.includes('//player.vimeo') || url.includes('vimeo.com') ? 'video/x-vimeo' : null;
return (/(\/\/player\.vimeo|vimeo\.com)/i.test(url) ? 'video/x-vimeo' : null
);
});

@@ -530,0 +530,0 @@

@@ -22,2 +22,2 @@ /*!

*/
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isIframeStarted){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0],c=!1;a.src="//player.vimeo.com/api/player.js",a.onload=a.onreadystatechange=function(){c||(void 0).readyState&&void 0!==(void 0).readyState&&"loaded"!==(void 0).readyState&&"complete"!==(void 0).readyState||(c=!0,d.iFrameReady(),a.onload=a.onreadystatechange=null)},b.parentNode.insertBefore(a,b),d.isIframeStarted=!0}},iFrameReady:function(){for(d.isLoaded=!0,d.isIframeLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=new Vimeo.Player(a.iframe);window["__ready__"+a.id](b)},getVimeoId:function(a){if(void 0===a||null===a)return null;var b=a.split("?");return a=b[0],parseInt(a.substring(a.lastIndexOf("/")+1))}},e={name:"vimeo_iframe",options:{prefix:"vimeo_iframe"},canPlayType:function(a){return["video/vimeo","video/x-vimeo"].includes(a)},create:function(a,b,c){var e=[],f={},g=4,h=!0,i=1,j=i,k=0,l=0,m=!1,n=0,o=null,p="";f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=function(b,c){var d=mejs.Utils.createEvent("error",c);d.message=b.name+": "+b.message,a.dispatchEvent(d)},r=mejs.html5media.properties,s=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);f["get"+c]=function(){if(null!==o){var a=null;switch(b){case"currentTime":return k;case"duration":return n;case"volume":return i;case"muted":return 0===i;case"paused":return h;case"ended":return m;case"src":return o.getVideoUrl().then(function(a){p=a}),p;case"buffered":return{start:function(){return 0},end:function(){return l*n},length:1};case"readyState":return g}return a}return null},f["set"+c]=function(c){if(null!==o)switch(b){case"src":var g="string"==typeof c?c:c[0].src,h=d.getVimeoId(g);o.loadVideo(h).then(function(){a.originalNode.autoplay&&o.play()})["catch"](function(a){q(a,f)});break;case"currentTime":o.setCurrentTime(c).then(function(){k=c,setTimeout(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"volume":o.setVolume(c).then(function(){i=c,j=i,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"loop":o.setLoop(c)["catch"](function(a){q(a,f)});break;case"muted":c?o.setVolume(0).then(function(){i=0,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)}):o.setVolume(j).then(function(){i=j,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"readyState":var l=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(l)}else e.push({type:"set",propName:b,value:c})}},t=0,u=r.length;u>t;t++)s(r[t]);for(var v=mejs.html5media.methods,w=function(a){f[a]=function(){if(null!==o)switch(a){case"play":return h=!1,o.play();case"pause":return h=!0,o.pause();case"load":return null}else e.push({type:"call",methodName:a})}},x=0,y=v.length;y>x;x++)w(v[x]);window["__ready__"+f.id]=function(b){if(a.vimeoPlayer=o=b,e.length)for(var c=0,d=e.length;d>c;c++){var g=e[c];if("set"===g.type){var i=g.propName,j=""+i.substring(0,1).toUpperCase()+i.substring(1);f["set"+j](g.value)}else"call"===g.type&&f[g.methodName]()}var p=document.getElementById(f.id),r=void 0;r=["mouseover","mouseout"];for(var s=function(b){var c=mejs.Utils.createEvent(b.type,f);a.dispatchEvent(c)},t=0,u=r.length;u>t;t++)p.addEventListener(r[t],s,!1);o.on("loaded",function(){o.getDuration().then(function(b){n=b,n>0&&(l=n*b);var c=mejs.Utils.createEvent("loadedmetadata",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("progress",function(){o.getDuration().then(function(b){n=b,n>0&&(l=n*b);var c=mejs.Utils.createEvent("progress",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("timeupdate",function(){o.getCurrentTime().then(function(b){k=b;var c=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("play",function(){h=!1,m=!1;var b=mejs.Utils.createEvent("play",f);a.dispatchEvent(b)}),o.on("pause",function(){h=!0,m=!1;var b=mejs.Utils.createEvent("pause",f);a.dispatchEvent(b)}),o.on("ended",function(){h=!1,m=!0;var b=mejs.Utils.createEvent("ended",f);a.dispatchEvent(b)}),r=["rendererready","loadeddata","loadedmetadata","canplay"];for(var v=0,w=r.length;w>v;v++){var x=mejs.Utils.createEvent(r[v],f);a.dispatchEvent(x)}};var z=a.originalNode.height,A=a.originalNode.width,B=document.createElement("iframe"),C="//player.vimeo.com/video/"+d.getVimeoId(c[0].src),D=c[0].src.includes("?")?"?"+c[0].src.slice(c[0].src.indexOf("?")+1):"";return B.setAttribute("id",f.id),B.setAttribute("width",A),B.setAttribute("height",z),B.setAttribute("frameBorder","0"),B.setAttribute("src",""+C+D),B.setAttribute("webkitallowfullscreen",""),B.setAttribute("mozallowfullscreen",""),B.setAttribute("allowfullscreen",""),a.originalNode.parentNode.insertBefore(B,a.originalNode),a.originalNode.style.display="none",d.enqueueIframe({iframe:B,id:f.id}),f.hide=function(){f.pause(),o&&(B.style.display="none")},f.setSize=function(a,b){B.setAttribute("width",a),B.setAttribute("height",b)},f.show=function(){o&&(B.style.display="")},f}};mejs.Utils.typeChecks.push(function(a){return a=a.toLowerCase(),a.includes("//player.vimeo")||a.includes("vimeo.com")?"video/x-vimeo":null}),mejs.Renderers.add(e)},{}]},{},[1]);
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(a){d.isLoaded?d.createIframe(a):(d.loadIframeApi(),d.iframeQueue.push(a))},loadIframeApi:function(){if(!d.isIframeStarted){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0],c=!1;a.src="https://player.vimeo.com/api/player.js",a.onload=a.onreadystatechange=function(){c||this.readyState&&void 0!==this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c=!0,d.iFrameReady(),a.onload=a.onreadystatechange=null)},b.parentNode.insertBefore(a,b),d.isIframeStarted=!0}},iFrameReady:function(){for(d.isLoaded=!0,d.isIframeLoaded=!0;d.iframeQueue.length>0;){var a=d.iframeQueue.pop();d.createIframe(a)}},createIframe:function(a){var b=new Vimeo.Player(a.iframe);window["__ready__"+a.id](b)},getVimeoId:function(a){if(void 0===a||null===a)return null;var b=a.split("?");return a=b[0],parseInt(a.substring(a.lastIndexOf("/")+1))}},e={name:"vimeo_iframe",options:{prefix:"vimeo_iframe"},canPlayType:function(a){return~["video/vimeo","video/x-vimeo"].indexOf(a.toLowerCase())},create:function(a,b,c){var e=[],f={},g=4,h=!0,i=1,j=i,k=0,l=0,m=!1,n=0,o=null,p="";f.options=b,f.id=a.id+"_"+b.prefix,f.mediaElement=a;for(var q=function(b,c){var d=mejs.Utils.createEvent("error",c);d.message=b.name+": "+b.message,a.dispatchEvent(d)},r=mejs.html5media.properties,s=function(b){var c=""+b.substring(0,1).toUpperCase()+b.substring(1);f["get"+c]=function(){if(null!==o){var a=null;switch(b){case"currentTime":return k;case"duration":return n;case"volume":return i;case"muted":return 0===i;case"paused":return h;case"ended":return m;case"src":return o.getVideoUrl().then(function(a){p=a}),p;case"buffered":return{start:function(){return 0},end:function(){return l*n},length:1};case"readyState":return g}return a}return null},f["set"+c]=function(c){if(null!==o)switch(b){case"src":var g="string"==typeof c?c:c[0].src,h=d.getVimeoId(g);o.loadVideo(h).then(function(){a.originalNode.autoplay&&o.play()})["catch"](function(a){q(a,f)});break;case"currentTime":o.setCurrentTime(c).then(function(){k=c,setTimeout(function(){var b=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"volume":o.setVolume(c).then(function(){i=c,j=i,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"loop":o.setLoop(c)["catch"](function(a){q(a,f)});break;case"muted":c?o.setVolume(0).then(function(){i=0,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)}):o.setVolume(j).then(function(){i=j,setTimeout(function(){var b=mejs.Utils.createEvent("volumechange",f);a.dispatchEvent(b)},50)})["catch"](function(a){q(a,f)});break;case"readyState":var l=mejs.Utils.createEvent("canplay",f);a.dispatchEvent(l)}else e.push({type:"set",propName:b,value:c})}},t=0,u=r.length;u>t;t++)s(r[t]);for(var v=mejs.html5media.methods,w=function(a){f[a]=function(){if(null!==o)switch(a){case"play":return h=!1,o.play();case"pause":return h=!0,o.pause();case"load":return null}else e.push({type:"call",methodName:a})}},x=0,y=v.length;y>x;x++)w(v[x]);window["__ready__"+f.id]=function(b){if(a.vimeoPlayer=o=b,e.length)for(var c=0,d=e.length;d>c;c++){var g=e[c];if("set"===g.type){var i=g.propName,j=""+i.substring(0,1).toUpperCase()+i.substring(1);f["set"+j](g.value)}else"call"===g.type&&f[g.methodName]()}var p=document.getElementById(f.id),r=void 0;r=["mouseover","mouseout"];for(var s=function(b){var c=mejs.Utils.createEvent(b.type,f);a.dispatchEvent(c)},t=0,u=r.length;u>t;t++)p.addEventListener(r[t],s,!1);o.on("loaded",function(){o.getDuration().then(function(b){n=b,n>0&&(l=n*b);var c=mejs.Utils.createEvent("loadedmetadata",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("progress",function(){o.getDuration().then(function(b){n=b,n>0&&(l=n*b);var c=mejs.Utils.createEvent("progress",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("timeupdate",function(){o.getCurrentTime().then(function(b){k=b;var c=mejs.Utils.createEvent("timeupdate",f);a.dispatchEvent(c)})["catch"](function(a){q(a,f)})}),o.on("play",function(){h=!1,m=!1;var b=mejs.Utils.createEvent("play",f);a.dispatchEvent(b)}),o.on("pause",function(){h=!0,m=!1;var b=mejs.Utils.createEvent("pause",f);a.dispatchEvent(b)}),o.on("ended",function(){h=!1,m=!0;var b=mejs.Utils.createEvent("ended",f);a.dispatchEvent(b)}),r=["rendererready","loadeddata","loadedmetadata","canplay"];for(var v=0,w=r.length;w>v;v++){var x=mejs.Utils.createEvent(r[v],f);a.dispatchEvent(x)}};var z=a.originalNode.height,A=a.originalNode.width,B=document.createElement("iframe"),C="//player.vimeo.com/video/"+d.getVimeoId(c[0].src),D=~c[0].src.indexOf("?")?"?"+c[0].src.slice(c[0].src.indexOf("?")+1):"";return B.setAttribute("id",f.id),B.setAttribute("width",A),B.setAttribute("height",z),B.setAttribute("frameBorder","0"),B.setAttribute("src",""+C+D),B.setAttribute("webkitallowfullscreen",""),B.setAttribute("mozallowfullscreen",""),B.setAttribute("allowfullscreen",""),a.originalNode.parentNode.insertBefore(B,a.originalNode),a.originalNode.style.display="none",d.enqueueIframe({iframe:B,id:f.id}),f.hide=function(){f.pause(),o&&(B.style.display="none")},f.setSize=function(a,b){B.setAttribute("width",a),B.setAttribute("height",b)},f.show=function(){o&&(B.style.display="")},f}};mejs.Utils.typeChecks.push(function(a){return/(\/\/player\.vimeo|vimeo\.com)/i.test(a)?"video/x-vimeo":null}),mejs.Renderers.add(e)},{}]},{},[1]);

@@ -84,3 +84,3 @@ # Guidelines for Contributors

*/
canPlayType: (type) => ['video/mime_type1', 'video/mime_type2', 'video/mime_type3' ...].includes(type),
canPlayType: (type) => ~['video/mime_type1', 'video/mime_type2', 'video/mime_type3' ...].indexOf(type.toLowerCase()),

@@ -276,6 +276,3 @@ /**

*/
typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('.file_extension') ? 'video/mime_type1' : null;
});
typeChecks.push((url) => ~(url.toLowerCase()).indexOf('.file_extension') ? 'video/mime_type1' : null);

@@ -282,0 +279,0 @@ renderer.add([camelCaseRendererName]);

@@ -24,2 +24,3 @@ # Resources

* https://gist.github.com/rafa8626/2ce220b30b7e2ef2dc2e277df6a697ce
* [MediaElement.js: Skip to next source if previous cannot be played](https://gist.github.com/rafa8626/2ce220b30b7e2ef2dc2e277df6a697ce)
* [MediaElementPlayer.js: use `AudioContext.decodeAudioData()`](https://gist.github.com/rafa8626/e6afe41dd00742a75c4d25cc387a7d61)
Package.describe({
name: 'johndyer:mediaelement',
summary: '*Official* MediaElement.js: <video> and <audio> made easy. One file. Any browser. Same UI.',
version: '4.1.0',
version: '4.1.1',
git: 'https://github.com/mediaelement/mediaelement'

@@ -6,0 +6,0 @@ });

{
"name": "mediaelement",
"license": "MIT",
"version": "4.1.0",
"version": "4.1.1",
"main": "full.js",

@@ -6,0 +6,0 @@ "repository": {

@@ -29,3 +29,3 @@ 'use strict';

if (!args[0].match(/^[a-z]{2}(\-[a-z]{2})?$/i)) {
if (!/^[a-z]{2}(\-[a-z]{2})?$/i.test(args[0])) {
throw new TypeError('Language code must have format `xx` or `xx-xx`');

@@ -32,0 +32,0 @@ }

@@ -9,2 +9,3 @@ 'use strict';

import {renderer} from './renderer';
import {IS_IOS} from '../utils/constants';

@@ -87,3 +88,3 @@ /**

const tagName = t.mediaElement.originalNode.tagName.toLowerCase();
if (['video', 'audio'].includes(tagName) && !t.mediaElement.originalNode.getAttribute('preload')) {
if (~['video', 'audio'].indexOf(tagName) && !t.mediaElement.originalNode.getAttribute('preload')) {
t.mediaElement.originalNode.setAttribute('preload', 'none');

@@ -423,2 +424,31 @@ }

/**
* Convert a URL to BLOB to avoid issues with regular media types playing under a HTTPS website
* @see https://poodll.com/ios-10-and-html5-video-and-html5-audio-on-https-sites/
* @private
*/
const processURL = (url, type) => {
if (~mejs.html5media.mediaTypes.indexOf(type) && window.location.protocol === 'https:' &&
IS_IOS && !window.MSStream){
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) {
const
url = window.URL || window.webkitURL,
blobUrl = url.createObjectURL(this.response)
;
t.mediaElement.originalNode.setAttribute('src', blobUrl);
return blobUrl;
}
return url;
};
xhr.open('GET', url);
xhr.responseType = 'blob';
xhr.send();
}
return url;
};
let mediaFiles;

@@ -451,6 +481,9 @@

if (nodeSource) {
const node = t.mediaElement.originalNode;
const
node = t.mediaElement.originalNode,
type = formatType(nodeSource, node.getAttribute('type'))
;
mediaFiles.push({
type: formatType(nodeSource, node.getAttribute('type')),
src: nodeSource
type: type,
src: processURL(nodeSource, type)
});

@@ -467,3 +500,3 @@ }

;
mediaFiles.push({type: type, src: src});
mediaFiles.push({type: type, src: processURL(src, type)});
}

@@ -470,0 +503,0 @@ }

@@ -9,3 +9,3 @@ 'use strict';

// version number
mejs.version = '4.1.0';
mejs.version = '4.1.1';

@@ -50,3 +50,3 @@ // Basic HTML5 settings

'audio/mp3', 'audio/ogg', 'audio/oga', 'audio/wav', 'audio/x-wav', 'audio/wave', 'audio/x-pn-wav', 'audio/mpeg', 'audio/mp4',
'video/mp4', 'video/webm', 'video/ogg'
'video/mp4', 'video/webm', 'video/ogg', 'video/ogv'
]

@@ -53,0 +53,0 @@ };

@@ -54,9 +54,9 @@ 'use strict';

rendererIndicator = [
/^(html5|native)/,
/^flash/,
/iframe$/,
/^(html5|native)/i,
/^flash/i,
/iframe$/i,
],
rendererRanking = (renderer) => {
for (let i = 0, total = rendererIndicator.length; i < total; i++) {
if (renderer.match(rendererIndicator[i]) !== null) {
if (rendererIndicator[i].test(renderer)) {
return i;

@@ -63,0 +63,0 @@ }

@@ -107,3 +107,3 @@ 'use strict';

t.globalBind('keydown', (e) => {
let key = e.which || e.keyCode || 0;
const key = e.which || e.keyCode || 0;
if (key === 27 && ((Features.HAS_TRUE_NATIVE_FULLSCREEN && Features.IS_FULLSCREEN) || t.isFullScreen)) {

@@ -156,3 +156,3 @@ player.exitFullScreen();

t = this,
isNative = t.media.rendererName !== null && t.media.rendererName.match(/(native|html5)/) !== null
isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName)
;

@@ -193,3 +193,3 @@

t = this,
isNative = t.media.rendererName !== null && t.media.rendererName.match(/(html5|native)/) !== null,
isNative = t.media.rendererName !== null && /(html5|native)/i.test(t.media.rendererName),
containerStyles = getComputedStyle(t.container)

@@ -311,3 +311,3 @@ ;

t = this,
isNative = t.media.rendererName !== null && t.media.rendererName.match(/(native|html5)/) !== null
isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName)
;

@@ -353,4 +353,6 @@

removeClass(t.fullscreenBtn, `${t.options.classPrefix}unfullscreen`);
addClass(t.fullscreenBtn, `${t.options.classPrefix}fullscreen`);
if (t.fullscreenBtn) {
removeClass(t.fullscreenBtn, `${t.options.classPrefix}unfullscreen`);
addClass(t.fullscreenBtn, `${t.options.classPrefix}fullscreen`);
}

@@ -357,0 +359,0 @@ t.setControlsSize();

@@ -89,3 +89,3 @@ 'use strict';

// `loadedmetadata` in Flash is executed simultaneously with `play`, so avoid it
if (media.rendererName.match(/flash/) === null) {
if (media.rendererName.indexOf('flash') === -1) {
togglePlayPause('pse');

@@ -92,0 +92,0 @@ }

@@ -351,3 +351,3 @@ 'use strict';

// shim gets the startvolume as a parameter, but we have to set it on the native <video> and <audio> elements
const isNative = t.media.rendererName !== null && t.media.rendererName.match(/(native|html5)/) !== null;
const isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName);

@@ -354,0 +354,0 @@ if (isNative) {

@@ -49,3 +49,3 @@ 'use strict';

"mejs.captions-subtitles": "Überschriften/Untertitel",
// "mejs.captions-chapters": "Chapters",
"mejs.captions-chapters": "Kapitel",
"mejs.none": "Keine",

@@ -52,0 +52,0 @@ "mejs.afrikaans": "Afrikanisch",

@@ -514,3 +514,3 @@ 'use strict';

if (t.options[tagType + 'Width'] > 0 || t.options[tagType + 'Width'].toString().indexOf('%') > -1) {
if (t.options[tagType + 'Width'] > 0 || ~t.options[tagType + 'Width'].toString().indexOf('%')) {
t.width = t.options[tagType + 'Width'];

@@ -525,3 +525,3 @@ } else if (t.node.style.width !== '' && t.node.style.width !== null) {

if (t.options[tagType + 'Height'] > 0 || t.options[tagType + 'Height'].toString().indexOf('%') > -1) {
if (t.options[tagType + 'Height'] > 0 || ~t.options[tagType + 'Height'].toString().indexOf('%')) {
t.height = t.options[tagType + 'Height'];

@@ -567,3 +567,3 @@ } else if (t.node.style.height !== '' && t.node.style.height !== null) {

if (t.controlsAreVisible) {
if (t.controlsAreVisible || !t.isVideo) {
return;

@@ -589,2 +589,3 @@ }

t.controls.style.display = '';
t.controls.style.opacity = 1;

@@ -642,2 +643,3 @@ // any additional controls people might add and want to hide

t.controls.style.display = '';
t.controls.style.opacity = 0;

@@ -711,3 +713,3 @@ // hide others

autoplay = !(autoplayAttr === undefined || autoplayAttr === null || autoplayAttr === 'false'),
isNative = media.rendererName !== null && media.rendererName.match(/(native|html5)/) !== null
isNative = media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName)
;

@@ -719,3 +721,3 @@

if (t.container.querySelector(`.${t.options.classPrefix}overlay-play`)) {
if (t.container && t.container.querySelector(`.${t.options.classPrefix}overlay-play`)) {
t.container.querySelector(`.${t.options.classPrefix}overlay-play`).style.display = '';

@@ -985,2 +987,15 @@ }

// Disable focus outline to improve look-and-feel for regular users
t.container.addEventListener('click', function (e) {
dom.addClass(e.currentTarget, `${t.options.classPrefix}container-keyboard-inactive`);
});
// Enable focus outline for Accessibility purposes
t.container.addEventListener('focusin', function (e) {
dom.removeClass(e.currentTarget, `${t.options.classPrefix}container-keyboard-inactive`);
if (t.controlsEnabled && !t.options.alwaysShowControls) {
t.showControls(false);
}
});
t.container.addEventListener('focusout', (e) => {

@@ -990,3 +1005,3 @@ setTimeout(() => {

if (e.relatedTarget) {
if (t.keyboardAction && !e.relatedTarget.closest('.mejs-container')) {
if (t.keyboardAction && !e.relatedTarget.closest(`.${t.options.classPrefix}container`)) {
t.keyboardAction = false;

@@ -1019,20 +1034,2 @@ if (t.isVideo && !t.options.alwaysShowControls) {

});
// Disable focus outline to improve look-and-feel for regular users
t.globalBind('click', (e) => {
if (e.target.matches(`.${t.options.classPrefix}container`)) {
dom.addClass(e.target, `${t.options.classPrefix}container-keyboard-inactive`);
} else if (e.target.closest(`.${t.options.classPrefix}container`)) {
dom.addClass(e.target.closest(`.${t.options.classPrefix}container`), `${t.options.classPrefix}container-keyboard-inactive`);
}
});
// Enable focus outline for Accessibility purposes
t.globalBind('keydown', (e) => {
if (e.target.matches(`.${t.options.classPrefix}container`)) {
dom.removeClass(e.target, `${t.options.classPrefix}container-keyboard-inactive`);
} else if (e.target.closest(`.${t.options.classPrefix}container`)) {
dom.removeClass(event.target.closest(`.${t.options.classPrefix}container`), `${t.options.classPrefix}container-keyboard-inactive`);
}
});
}

@@ -1125,3 +1122,3 @@

// detect 100% mode - use currentStyle for IE since css() doesn't return percentages
return (t.height.toString().includes('%') || (t.node && t.node.style.maxWidth && t.node.style.maxWidth !== 'none' &&
return (~t.height.toString().indexOf('%') || (t.node && t.node.style.maxWidth && t.node.style.maxWidth !== 'none' &&
t.node.style.maxWidth !== t.width) || (t.node && t.node.currentStyle && t.node.currentStyle.maxWidth === '100%'));

@@ -1140,8 +1137,5 @@ }

try {
if (window.self !== window.top) {
if (window.frameElement !== null) {
return window.frameElement;
} else {
parentEl = window.frameElement.parentNode;
}
// Firefox has an issue calculating dimensions on hidden iframes
if (IS_FIREFOX && el.tagName.toLowerCase() === 'html' && window.self !== window.top && window.frameElement !== null) {
return window.frameElement;
} else {

@@ -1265,7 +1259,11 @@ parentEl = el.parentElement;

let parent;
let
parent,
isIframe = false
;
try {
if (window.self !== window.top) {
parent = window.frameElement.parentNode;
isIframe = true;
parent = window.frameElement;
} else {

@@ -1304,7 +1302,8 @@ parent = t.outerContainer;

if (!parseFloat(parentStyles.width)) {
// Avoid overriding width/height if element is inside an iframe
if (!isIframe && !parseFloat(parentStyles.width)) {
parent.style.width = `${t.media.offsetWidth}px`;
}
if (!parseFloat(parentStyles.height)) {
if (!isIframe && !parseFloat(parentStyles.height)) {
parent.style.height = `${t.media.offsetHeight}px`;

@@ -1362,4 +1361,4 @@ }

width = isString(width) && width.includes('%') ? width : `${parseFloat(width)}px`;
height = isString(height) && height.includes('%') ? height : `${parseFloat(height)}px`;
width = isString(width) && ~width.indexOf('%') ? width : `${parseFloat(width)}px`;
height = isString(height) && ~height.indexOf('%') ? height : `${parseFloat(height)}px`;

@@ -1442,3 +1441,3 @@ t.container.style.width = width;

if (t.isVideo && t.media.rendererName !== null && t.media.rendererName.match(/iframe/i) !== null && !document.getElementById(`${t.media.id}-iframe-overlay`)) {
if (t.isVideo && t.media.rendererName !== null && ~t.media.rendererName.indexOf('iframe') && !document.getElementById(`${t.media.id}-iframe-overlay`)) {

@@ -1663,5 +1662,16 @@ const

});
// Allow keyboard to execute action on play button
bigPlay.addEventListener('keydown', function (e) {
const keyPressed = e.keyCode || e.which || 0;
// On Enter, play media
if (keyPressed === 13 || (IS_FIREFOX && keyPressed === 32)) {
const event = createEvent('click', bigPlay);
bigPlay.dispatchEvent(event);
return false;
}
});
layers.appendChild(bigPlay);
if (t.media.rendererName !== null && ((t.media.rendererName.match(/(youtube|facebook)/) &&
if (t.media.rendererName !== null && ((/(youtube|facebook)/i.test(t.media.rendererName) &&
!(player.media.originalNode.getAttribute('poster') || player.options.poster)) || IS_STOCK_ANDROID)) {

@@ -1914,3 +1924,3 @@ bigPlay.style.display = 'none';

if (nativeWidth) {
if (nativeWidth.match('%') === null) {
if (nativeWidth.indexOf('%') === -1) {
nativeWidth = `${nativeWidth}px`;

@@ -1922,3 +1932,3 @@ }

if (nativeHeight) {
if (nativeHeight.match('%') === null) {
if (nativeHeight.indexOf('%') === -1) {
nativeHeight = `${nativeHeight}px`;

@@ -1946,3 +1956,3 @@ }

// If <iframe>, remove overlay
if (rendererName.match(/iframe/i) !== null) {
if (~rendererName.indexOf('iframe')) {
const layer = document.getElementById(`${t.media.id}-iframe-overlay`);

@@ -1949,0 +1959,0 @@ layer.remove();

@@ -47,3 +47,3 @@ 'use strict';

e.async = true;
e.src = '//api.dmcdn.net/all.js';
e.src = 'https://api.dmcdn.net/all.js';
const s = document.getElementsByTagName('script')[0];

@@ -136,3 +136,3 @@ s.parentNode.insertBefore(e, s);

*/
canPlayType: (type) => ['video/dailymotion', 'video/x-dailymotion'].includes(type),
canPlayType: (type) => ~['video/dailymotion', 'video/x-dailymotion'].indexOf(type.toLowerCase()),

@@ -488,6 +488,3 @@ /**

*/
mejs.Utils.typeChecks.push((url) => {
url = url.toLowerCase();
return (url.includes('//dailymotion.com') || url.includes('www.dailymotion.com') || url.includes('//dai.ly')) ? 'video/x-dailymotion' : null;
});
mejs.Utils.typeChecks.push((url) => /\/\/((www\.)?dailymotion\.com|dai\.ly)/i.test(url) ? 'video/x-dailymotion' : null);

@@ -494,0 +491,0 @@ window.dmAsyncInit = () => {

@@ -57,3 +57,3 @@ 'use strict';

settings.options.path = typeof settings.options.path === 'string' ?
settings.options.path : '//cdn.dashjs.org/latest/dash.mediaplayer.min.js';
settings.options.path : 'https://cdn.dashjs.org/latest/dash.mediaplayer.min.js';

@@ -119,3 +119,3 @@ const

// Special config: used to set the local path/URL of dash.js player library
path: '//cdn.dashjs.org/latest/dash.mediaplayer.min.js',
path: 'https://cdn.dashjs.org/latest/dash.mediaplayer.min.js',
debug: false

@@ -130,3 +130,3 @@ }

*/
canPlayType: (type) => HAS_MSE && ['application/dash+xml'].includes(type),
canPlayType: (type) => HAS_MSE && ~['application/dash+xml'].indexOf(type.toLowerCase()),

@@ -166,3 +166,3 @@ /**

node[`set${capName}`] = (value) => {
if (!mejs.html5media.readOnlyProperties.includes(propName)) {
if (mejs.html5media.readOnlyProperties.indexOf(propName) === -1) {
if (dashPlayer !== null) {

@@ -292,7 +292,4 @@ if (propName === 'src') {

*/
typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('.mpd') ? 'application/dash+xml' : null;
});
typeChecks.push((url) => ~(url.toLowerCase()).indexOf('.mpd') ? 'application/dash+xml' : null);
renderer.add(DashNativeRenderer);

@@ -27,3 +27,3 @@ 'use strict';

*/
canPlayType: (type) => ['video/facebook', 'video/x-facebook'].includes(type),
canPlayType: (type) => ~['video/facebook', 'video/x-facebook'].indexOf(type.toLowerCase()),

@@ -379,3 +379,3 @@ /**

js.id = id;
js.src = '//connect.facebook.net/en_US/sdk.js';
js.src = 'https://connect.facebook.net/en_US/sdk.js';
fjs.parentNode.insertBefore(js, fjs);

@@ -432,7 +432,4 @@ })(document, 'script', 'facebook-jssdk'));

*/
mejs.Utils.typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('//www.facebook') ? 'video/x-facebook' : null;
});
mejs.Utils.typeChecks.push((url) => ~(url.toLowerCase()).indexOf('//www.facebook') ? 'video/x-facebook' : null);
mejs.Renderers.add(FacebookRenderer);

@@ -291,3 +291,3 @@ 'use strict';

// If the access script flag does not have any of the valid values, set to `sameDomain` by default
if (!['always', 'sameDomain'].includes(flash.options.shimScriptAccess)) {
if (['always', 'sameDomain'].indexOf(flash.options.shimScriptAccess) === -1) {
flash.options.shimScriptAccess = 'sameDomain';

@@ -426,3 +426,3 @@ }

if (url.startsWith('rtmp')) {
if (url.includes('.mp3')) {
if (~url.indexOf('.mp3')) {
return 'audio/rtmp';

@@ -432,9 +432,9 @@ } else {

}
} else if (url.includes('.oga') || url.includes('.ogg')) {
} else if (/\.og(a|g)/i.test(url)) {
return 'audio/ogg';
} else if (url.includes('.m3u8')) {
} else if (~url.indexOf('.m3u8')) {
return 'application/x-mpegURL';
} else if (url.includes('.mpd')) {
} else if (~url.indexOf('.mpd')) {
return 'application/dash+xml';
} else if (url.includes('.flv')) {
} else if (~url.indexOf('.flv')) {
return 'video/flv';

@@ -466,4 +466,4 @@ }else {

*/
canPlayType: (type) => ['video/mp4', 'video/rtmp', 'audio/rtmp', 'rtmp/mp4', 'audio/mp4', 'video/flv',
'video/x-flv'].includes(type.toLowerCase()),
canPlayType: (type) => ~['video/mp4', 'video/rtmp', 'audio/rtmp', 'rtmp/mp4', 'audio/mp4', 'video/flv',
'video/x-flv'].indexOf(type.toLowerCase()),

@@ -489,4 +489,4 @@ create: FlashMediaElementRenderer.create

*/
canPlayType: (type) => ['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].includes(type.toLowerCase()),
canPlayType: (type) => ~['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].indexOf(type.toLowerCase()),

@@ -511,3 +511,3 @@ create: FlashMediaElementRenderer.create

*/
canPlayType: (type) => ['application/dash+xml'].includes(type.toLowerCase()),
canPlayType: (type) => ~['application/dash+xml'].indexOf(type.toLowerCase()),

@@ -532,3 +532,3 @@ create: FlashMediaElementRenderer.create

*/
canPlayType: (type) => ['audio/mp3'].includes(type.toLowerCase()),
canPlayType: (type) => ~['audio/mp3'].indexOf(type.toLowerCase()),

@@ -553,3 +553,3 @@ create: FlashMediaElementRenderer.create

*/
canPlayType: (type) => ['audio/ogg', 'audio/oga', 'audio/ogv'].includes(type.toLowerCase()),
canPlayType: (type) => ~['audio/ogg', 'audio/oga', 'audio/ogv'].indexOf(type.toLowerCase()),

@@ -556,0 +556,0 @@ create: FlashMediaElementRenderer.create

@@ -61,3 +61,3 @@ 'use strict';

settings.options.path = typeof settings.options.path === 'string' ?
settings.options.path : '//cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js';
settings.options.path : 'https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js';

@@ -120,3 +120,3 @@ const

// Special config: used to set the local path/URL of flv.js library
path: '//cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js',
path: 'https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.2.0/flv.min.js',
// To modify more elements from FLV player,

@@ -133,3 +133,3 @@ // see https://github.com/Bilibili/flv.js/blob/master/docs/api.md#config

*/
canPlayType: (type) => HAS_MSE && ['video/x-flv', 'video/flv'].includes(type),
canPlayType: (type) => HAS_MSE && ~['video/x-flv', 'video/flv'].indexOf(type.toLowerCase()),

@@ -167,3 +167,3 @@ /**

node[`set${capName}`] = (value) => {
if (!mejs.html5media.readOnlyProperties.includes(propName)) {
if (mejs.html5media.readOnlyProperties.indexOf(propName) === -1) {
if (flvPlayer !== null) {

@@ -280,7 +280,4 @@ node[propName] = value;

*/
typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('.flv') ? 'video/flv' : null;
});
typeChecks.push((url) => ~(url.toLowerCase()).indexOf('.flv') ? 'video/flv' : null);
renderer.add(FlvNativeRenderer);

@@ -61,3 +61,3 @@ 'use strict';

settings.options.path = typeof settings.options.path === 'string' ?
settings.options.path : '//cdn.jsdelivr.net/hls.js/latest/hls.min.js';
settings.options.path : 'https://cdn.jsdelivr.net/hls.js/latest/hls.min.js';

@@ -122,3 +122,3 @@ const

// Special config: used to set the local path/URL of hls.js library
path: '//cdn.jsdelivr.net/hls.js/latest/hls.min.js',
path: 'https://cdn.jsdelivr.net/hls.js/latest/hls.min.js',
// To modify more elements from hls.js,

@@ -137,4 +137,4 @@ // see https://github.com/dailymotion/hls.js/blob/master/API.md#user-content-fine-tuning

*/
canPlayType: (type) => HAS_MSE && ['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].includes(type.toLowerCase()),
canPlayType: (type) => HAS_MSE && ~['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].indexOf(type.toLowerCase()),

@@ -176,3 +176,3 @@ /**

node[`set${capName}`] = (value) => {
if (!mejs.html5media.readOnlyProperties.includes(propName)) {
if (mejs.html5media.readOnlyProperties.indexOf(propName) === -1) {
if (hlsPlayer !== null) {

@@ -364,7 +364,4 @@ node[propName] = value;

*/
typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('.m3u8') ? 'application/x-mpegURL' : null;
});
typeChecks.push((url) => ~(url.toLowerCase()).indexOf('.m3u8') ? 'application/x-mpegURL' : null);
renderer.add(HlsNativeRenderer);
renderer.add(HlsNativeRenderer);

@@ -35,8 +35,8 @@ 'use strict';

// also consider URLs that might have obfuscated URLs
if ((IS_ANDROID && type.match(/\/mp(3|4)$/gi) !== null) ||
(['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].includes(type.toLowerCase()) && SUPPORTS_NATIVE_HLS)) {
if ((IS_ANDROID && /\/mp(3|4)$/i.test(type)) ||
(~['application/x-mpegurl', 'vnd.apple.mpegurl', 'audio/mpegurl', 'audio/hls',
'video/hls'].indexOf(type.toLowerCase()) && SUPPORTS_NATIVE_HLS)) {
return 'yes';
} else if (mediaElement.canPlayType) {
return mediaElement.canPlayType(type).replace(/no/, '');
return mediaElement.canPlayType(type.toLowerCase()).replace(/no/, '');
} else {

@@ -80,3 +80,3 @@ return '';

node[`set${capName}`] = (value) => {
if (!mejs.html5media.readOnlyProperties.includes(propName)) {
if (mejs.html5media.readOnlyProperties.indexOf(propName) === -1) {
node[propName] = value;

@@ -83,0 +83,0 @@ }

@@ -52,3 +52,3 @@ 'use strict';

script.src = '//w.soundcloud.com/player/api.js';
script.src = 'https://w.soundcloud.com/player/api.js';

@@ -110,3 +110,3 @@ // Attach handlers for all browsers

*/
canPlayType: (type) => ['video/soundcloud', 'video/x-soundcloud'].includes(type),
canPlayType: (type) => ~['video/soundcloud', 'video/x-soundcloud'].indexOf(type.toLowerCase()),

@@ -437,7 +437,4 @@ /**

*/
mejs.Utils.typeChecks.push((url) => {
url = url.toLowerCase();
return (url.includes('//soundcloud.com') || url.includes('//w.soundcloud.com')) ? 'video/x-soundcloud' : null;
});
mejs.Utils.typeChecks.push((url) => /\/\/(w\.)?soundcloud.com/i.test(url) ? 'video/x-soundcloud' : null);
mejs.Renderers.add(SoundCloudIframeRenderer);

@@ -55,3 +55,3 @@ 'use strict';

script.src = '//player.twitch.tv/js/embed/v1.js';
script.src = 'https://player.twitch.tv/js/embed/v1.js';

@@ -147,6 +147,6 @@ // Attach handlers for all browsers

const paramParts = parameters[i].split('=');
if (paramParts[0].includes('channel=')) {
if (~paramParts[0].indexOf('channel=')) {
twitchId = paramParts[1];
break;
} else if (paramParts[0].includes('video=')) {
} else if (~paramParts[0].indexOf('video=')) {
twitchId = `v${paramParts[1]}`;

@@ -178,3 +178,3 @@ break;

const id = url.substring(url.lastIndexOf('/') + 1);
return id.match(/^\d+$/i) !== null ? 'v' + id : id;
return /^\d+$/i.test(id) !== null ? 'v' + id : id;
},

@@ -190,3 +190,3 @@

getTwitchType: (id) => {
return id.match(/^v\d+/i) !== null ? 'video' : 'channel';
return /^v\d+/i.test(id) !== null ? 'video' : 'channel';
}

@@ -208,3 +208,3 @@ };

*/
canPlayType: (type) => ['video/twitch', 'video/x-twitch'].includes(type),
canPlayType: (type) => ~['video/twitch', 'video/x-twitch'].indexOf(type.toLowerCase()),

@@ -547,7 +547,4 @@ /**

mejs.Utils.typeChecks.push((url) => {
url = url.toLowerCase();
return (url.includes('//www.twitch.tv') || url.includes('//player.twitch.tv')) ? 'video/x-twitch' : null;
});
mejs.Utils.typeChecks.push((url) => /\/\/(www|player).twitch.tv/i.test(url) ? 'video/x-twitch' : null);
mejs.Renderers.add(TwitchIframeRenderer);

@@ -59,6 +59,6 @@ 'use strict';

script.src = '//player.vimeo.com/api/player.js';
script.src = 'https://player.vimeo.com/api/player.js';
// Attach handlers for all browsers
script.onload = script.onreadystatechange = () => {
script.onload = script.onreadystatechange = function() {
if (!done && (!this.readyState || this.readyState === undefined ||

@@ -136,3 +136,3 @@ this.readyState === 'loaded' || this.readyState === 'complete')) {

*/
canPlayType: (type) => ['video/vimeo', 'video/x-vimeo'].includes(type),
canPlayType: (type) => ~['video/vimeo', 'video/x-vimeo'].indexOf(type.toLowerCase()),

@@ -484,3 +484,3 @@ /**

standardUrl = `//player.vimeo.com/video/${vimeoApi.getVimeoId(mediaFiles[0].src)}`,
queryArgs = mediaFiles[0].src.includes('?') ? `?${mediaFiles[0].src.slice(mediaFiles[0].src.indexOf('?') + 1)}` : ''
queryArgs = ~mediaFiles[0].src.indexOf('?') ? `?${mediaFiles[0].src.slice(mediaFiles[0].src.indexOf('?') + 1)}` : ''
;

@@ -531,7 +531,4 @@

*/
mejs.Utils.typeChecks.push((url) => {
url = url.toLowerCase();
return url.includes('//player.vimeo') || url.includes('vimeo.com') ? 'video/x-vimeo' : null;
});
mejs.Utils.typeChecks.push((url) => /(\/\/player\.vimeo|vimeo\.com)/i.test(url) ? 'video/x-vimeo' : null);
mejs.Renderers.add(vimeoIframeRenderer);

@@ -57,3 +57,3 @@ 'use strict';

const tag = document.createElement('script');
tag.src = '//www.youtube.com/player_api';
tag.src = 'https://www.youtube.com/player_api';
const firstScriptTag = document.getElementsByTagName('script')[0];

@@ -173,3 +173,3 @@ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

getYouTubeNoCookieUrl: (url) => {
if (url === undefined || url === null || !url.trim().length || !url.includes('//www.youtube')) {
if (url === undefined || url === null || !url.trim().length || url.indexOf('//www.youtube') === -1) {
return url;

@@ -218,3 +218,3 @@ }

*/
canPlayType: (type) => ['video/youtube', 'video/x-youtube'].includes(type),
canPlayType: (type) => ~['video/youtube', 'video/x-youtube'].indexOf(type.toLowerCase()),

@@ -423,4 +423,4 @@ /**

isAudio = mediaElement.originalNode.tagName.toLowerCase() === 'audio',
height = isAudio ? '0' : mediaElement.originalNode.height,
width = isAudio ? '0' : mediaElement.originalNode.width,
height = isAudio ? '1' : mediaElement.originalNode.height,
width = isAudio ? '1' : mediaElement.originalNode.width,
videoId = YouTubeApi.getYouTubeId(mediaFiles[0].src),

@@ -625,8 +625,5 @@ youtubeSettings = {

typeChecks.push((url) => {
url = url.toLowerCase();
return (url.includes('//www.youtube') || url.includes('//youtu.be')) ? 'video/x-youtube' : null;
});
typeChecks.push((url) => /\/\/(www\.youtube|youtu\.be)/i.test(url) ? 'video/x-youtube' : null);
renderer.add(YouTubeIframeRenderer);
}

@@ -10,12 +10,12 @@ 'use strict';

export const IS_IPAD = (UA.match(/ipad/i) !== null);
export const IS_IPHONE = (UA.match(/iphone/i) !== null);
export const IS_IPAD = /ipad/i.test(UA);
export const IS_IPHONE = /iphone/i.test(UA);
export const IS_IOS = IS_IPHONE || IS_IPAD;
export const IS_ANDROID = (UA.match(/android/i) !== null);
export const IS_IE = (NAV.appName.toLowerCase().includes('microsoft') || NAV.appName.toLowerCase().match(/trident/gi) !== null);
export const IS_ANDROID = /android/i.test(UA);
export const IS_IE = /(trident|microsoft)/i.test(NAV.appName);
export const IS_EDGE = ('msLaunchUri' in NAV && !('documentMode' in document));
export const IS_CHROME = (UA.match(/chrome/gi) !== null);
export const IS_FIREFOX = (UA.match(/firefox/gi) !== null);
export const IS_SAFARI = (UA.match(/safari/gi) !== null) && !IS_CHROME;
export const IS_STOCK_ANDROID = (UA.match(/^mozilla\/\d+\.\d+\s\(linux;\su;/gi) !== null);
export const IS_CHROME = /chrome/i.test(UA);
export const IS_FIREFOX = /firefox/i.test(UA);
export const IS_SAFARI = /safari/i.test(UA) && !IS_CHROME;
export const IS_STOCK_ANDROID = /^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(UA);

@@ -51,3 +51,3 @@ export const HAS_MSE = ('MediaSource' in window);

// Test if browsers support HLS natively (right now Safari, Android's Chrome and Stock browsers, and MS Edge)
export const SUPPORTS_NATIVE_HLS = (IS_SAFARI || (IS_ANDROID && (IS_CHROME || IS_STOCK_ANDROID)) || (IS_IE && UA.match(/edge/gi) !== null));
export const SUPPORTS_NATIVE_HLS = (IS_SAFARI || (IS_ANDROID && (IS_CHROME || IS_STOCK_ANDROID)) || (IS_IE && /edge/i.test(UA)));

@@ -63,3 +63,3 @@ // Detect native JavaScript fullscreen (Safari/Firefox only, Chrome still fails)

// OS X 10.5 can't do this even if it says it can :(
if (hasiOSFullScreen && UA.match(/mac os x 10_5/i)) {
if (hasiOSFullScreen && /mac os x 10_5/i.test(UA)) {
hasNativeFullscreen = false;

@@ -66,0 +66,0 @@ hasiOSFullScreen = false;

@@ -127,4 +127,4 @@ 'use strict';

if (!type.includes('application/x-www-form-urlencoded')) {
accept = type + ', */*; q=0.01';
if (type !== 'application/x-www-form-urlencoded') {
accept = `${type}, */*; q=0.01`;
}

@@ -131,0 +131,0 @@

@@ -112,3 +112,3 @@ 'use strict';

const
eventFrags = eventName.match(/[a-z]+\.([a-z]+)/),
eventFrags = eventName.match(/([a-z]+\.([a-z]+))/i),
detail = {

@@ -120,4 +120,4 @@ target: target

if (eventFrags !== null) {
eventName = eventFrags[0];
detail.namespace = eventFrags[1];
eventName = eventFrags[1];
detail.namespace = eventFrags[2];
}

@@ -124,0 +124,0 @@

@@ -82,5 +82,5 @@ 'use strict';

if (normalizedExt) {
if (['mp4', 'm4v', 'ogg', 'ogv', 'webm', 'flv', 'mpeg', 'mov'].includes(normalizedExt)) {
if (~['mp4', 'm4v', 'ogg', 'ogv', 'webm', 'flv', 'mpeg', 'mov'].indexOf(normalizedExt)) {
mime = `video/${normalizedExt}`;
} else if (['mp3', 'oga', 'wav', 'mid', 'midi'].includes(normalizedExt)) {
} else if (~['mp3', 'oga', 'wav', 'mid', 'midi'].indexOf(normalizedExt)) {
mime = `audio/${normalizedExt}`;

@@ -108,3 +108,3 @@ }

return baseName.indexOf('.') > -1 ? baseName.substring(baseName.lastIndexOf('.') + 1) : '';
return ~baseName.indexOf('.') ? baseName.substring(baseName.lastIndexOf('.') + 1) : '';
}

@@ -111,0 +111,0 @@

@@ -8,3 +8,3 @@ 'use strict';

*
* Mimics the missing methods like Object.assign, Array.includes, etc., as a way to avoid including the whole list
* Mimics the missing methods like Object.assign, CustomEvent, etc., as a way to avoid including the whole list
* of polyfills provided by Babel.

@@ -76,69 +76,2 @@ */

// Array.includes polyfill
// Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes#Polyfill
if (!Array.prototype.includes) {
Object.defineProperty(Array.prototype, 'includes', {
value: function(searchElement, fromIndex) {
// 1. const O be ? ToObject(this value).
if (this === null || this === undefined) {
throw new TypeError('"this" is null or not defined');
}
const o = Object(this);
// 2. const len be ? ToLength(? Get(O, "length")).
const len = o.length >>> 0;
// 3. If len is 0, return false.
if (len === 0) {
return false;
}
// 4. const n be ? ToInteger(fromIndex).
// (If fromIndex is undefined, this step produces the value 0.)
const n = fromIndex | 0;
// 5. If n ≥ 0, then
// a. const k be n.
// 6. Else n < 0,
// a. const k be len + n.
// b. If k < 0, const k be 0.
let k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
// 7. Repeat, while k < len
while (k < len) {
// a. const elementK be the result of ? Get(O, ! ToString(k)).
// b. If SameValueZero(searchElement, elementK) is true, return true.
// c. Increase k by 1.
// NOTE: === provides the correct "SameValueZero" comparison needed here.
if (o[k] === searchElement) {
return true;
}
k++;
}
// 8. Return false
return false;
}
});
}
// String.includes polyfill
// Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
if (!String.prototype.includes) {
String.prototype.includes = function(search, start) {
'use strict';
if (typeof start !== 'number') {
start = 0;
}
if (start + search.length > this.length) {
return false;
} else {
return this.indexOf(search, start) !== -1;
}
};
}
// String.startsWith polyfill

@@ -221,7 +154,7 @@ // Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith#Polyfill

if (/firefox/i.test(navigator.userAgent)) {
window.oldGetComputedStyle = window.getComputedStyle;
window.mediaElementJsOldGetComputedStyle = window.getComputedStyle;
window.getComputedStyle = (el, pseudoEl) => {
const t = window.oldGetComputedStyle(el, pseudoEl);
const t = window.mediaElementJsOldGetComputedStyle(el, pseudoEl);
return (t === null) ? {getPropertyValue: function () {}} : t;
}
}
}

@@ -110,3 +110,3 @@ 'use strict';

if (!time.match(/\d{2}(\:\d{2}){0,3}/)) {
if (!/\d{2}(\:\d{2}){0,3}/i.test(time)) {
throw new TypeError('Time code must have the format `00:00:00`');

@@ -198,3 +198,3 @@ }

for (let i = 0, len = lis.length; i < len; i++) {
if (format.indexOf(lis[i][1]) > -1) {
if (~format.indexOf(lis[i][1])) {
required = true;

@@ -243,3 +243,3 @@ }

const decimalLen = (SMPTE.indexOf('.') > -1) ? SMPTE.split('.')[1].length : 0;
const decimalLen = ~SMPTE.indexOf('.') ? SMPTE.split('.')[1].length : 0;

@@ -246,0 +246,0 @@ let

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc