|
|
|
!function r(a,s,l){function d(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var o=new Error("Cannot find module '"+n+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return d(t||e)},i,i.exports,r,a,s,l)}return s[n].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)d(l[e]);return d}({1:[function(e,t,n){},{}],2:[function(i,r,e){(function(e){var t,n=void 0!==e?e:"undefined"!=typeof window?window:{},o=i(1);"undefined"!=typeof document?t=document:(t=n["__GLOBAL_DOCUMENT_CACHE@4"])||(t=n["__GLOBAL_DOCUMENT_CACHE@4"]=o),r.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(e,n,t){(function(e){var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,n,t){!function(e){var t=setTimeout;function o(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function i(n,o){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,r._immediateFn(function(){var e=1===n._state?o.onFulfilled:o.onRejected;if(null!==e){var t;try{t=e(n._value)}catch(e){return void s(o.promise,e)}a(o.promise,t)}else(1===n._state?a:s)(o.promise,n._value)})):n._deferreds.push(o)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((o=n,i=e,function(){o.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var o,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,s(t,e))})}catch(e){if(n)return;n=!0,s(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.all=function(e){var s=Array.prototype.slice.call(e);return new r(function(o,i){if(0===s.length)return o([]);var r=s.length;function a(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},i)}s[t]=e,0==--r&&o(s)}catch(e){i(e)}}for(var e=0;e<s.length;e++)a(e,s[e])})},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(n){return new r(function(e,t){t(n)})},r.race=function(i){return new r(function(e,t){for(var n=0,o=i.length;n<o;n++)i[n].then(e,t)})},r._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},r._setImmediateFn=function(e){r._immediateFn=e},r._setUnhandledRejectionFn=function(e){r._unhandledRejectionFn=e},void 0!==n&&n.exports?n.exports=r:e.Promise||(e.Promise=r)}(this)},{}],5:[function(e,t,n){var o,i;o=this,i=function(){function v(e,t,n){if(n){var o=document.createDocumentFragment(),i=!t.hasAttribute("viewBox")&&n.getAttribute("viewBox");i&&t.setAttribute("viewBox",i);for(var r=n.cloneNode(!0);r.childNodes.length;)o.appendChild(r.firstChild);e.appendChild(o)}}function g(o){o.onreadystatechange=function(){if(4===o.readyState){var n=o._cachedDocument;n||((n=o._cachedDocument=document.implementa
|
|
|
|
!function n(a,o,r){function p(e,t){if(!o[e]){if(!a[e]){var l="function"==typeof require&&require;if(!t&&l)return l(e,!0);if(c)return c(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var i=o[e]={exports:{}};a[e][0].call(i.exports,function(t){return p(a[e][1][t]||t)},i,i.exports,n,a,o,r)}return o[e].exports}for(var c="function"==typeof require&&require,t=0;t<r.length;t++)p(r[t]);return p}({1:[function(t,e,l){"use strict";mejs.i18n.en["mejs.playlist"]="Toggle Playlist",mejs.i18n.en["mejs.playlist-prev"]="Previous",mejs.i18n.en["mejs.playlist-next"]="Next",mejs.i18n.en["mejs.playlist-loop"]="Loop",mejs.i18n.en["mejs.playlist-shuffle"]="Shuffle",Object.assign(mejs.MepDefaults,{playlist:[],showPlaylist:!0,autoClosePlaylist:!1,prevText:null,nextText:null,loopText:null,shuffleText:null,playlistTitle:null,currentMessage:null}),Object.assign(MediaElementPlayer.prototype,{buildplaylist:function(a,t,e,l){var s=mejs.i18n.t("mejs.playlist"),i=mejs.Utils.isString(a.options.playlistTitle)?a.options.playlistTitle:s;if(!a.createPlayList_()){if(a.currentPlaylistItem=0,a.originalControlsIndex=t.style.zIndex,t.style.zIndex=5,a.endedCallback=function(){a.currentPlaylistItem<a.listItems.length&&(a.setSrc(a.playlist[++a.currentPlaylistItem]),a.load(),setTimeout(function(){a.play()},200))},l.addEventListener("ended",a.endedCallback),!a.isVideo){var n=document.createElement("div"),o=function(){n.innerHTML="",void 0!==a.playlist[a.currentPlaylistItem]["data-playlist-thumbnail"]&&(n.innerHTML+='<img tabindex="-1" src="'+a.playlist[a.currentPlaylistItem]["data-playlist-thumbnail"]+'">'),n.innerHTML+="<p>"+(a.options.currentMessage||"")+' <span class="'+a.options.classPrefix+'playlist-current-title">'+a.playlist[a.currentPlaylistItem].title+"</span>",void 0!==a.playlist[a.currentPlaylistItem].description&&(n.innerHTML+=' - <span class="'+a.options.classPrefix+'playlist-current-description">'+a.playlist[a.currentPlaylistItem].description+"</span>"),n.innerHTML+="</p>",a.resetSize()};n.className=a.options.classPrefix+"playlist-current "+a.options.classPrefix+"layer",o(),e.insertBefore(n,e.firstChild),l.addEventListener("play",o)}if(a.options.showPlaylist){a.playlistLayer=document.createElement("div"),a.playlistLayer.className=a.options.classPrefix+"playlist-layer "+a.options.classPrefix+"layer "+(a.isVideo?a.options.classPrefix+"playlist-hidden":"")+" "+a.options.classPrefix+"playlist-selector",a.playlistLayer.innerHTML='<ul class="'+a.options.classPrefix+'playlist-selector-list"></ul>',e.insertBefore(a.playlistLayer,e.firstChild);for(var r=0,p=a.listItems.length;r<p;r++)a.playlistLayer.querySelector("ul").innerHTML+=a.listItems[r];if(a.isVideo)a.playlistButton=document.createElement("div"),a.playlistButton.className=a.options.classPrefix+"button "+a.options.classPrefix+"playlist-button",a.playlistButton.innerHTML='<button type="button" aria-controls="'+a.id+'" title="'+i+'" aria-label="'+i+'" tabindex="0"></button>',a.playlistButton.addEventListener("click",function(){mejs.Utils.toggleClass(a.playlistLayer,a.options.classPrefix+"playlist-hidden")}),a.addControlElement(a.playlistButton,"playlist");else{var c=a.playlistLayer.querySelectorAll("li");if(c.length<=10){for(var u=0,f=0,y=c.length;f<y;f++)u+=c[f].offsetHeight;a.container.style.height=u+"px"}}for(var d=a.playlistLayer.querySelectorAll("."+a.options.classPrefix+"playlist-selector-list-item"),m=a.playlistLayer.querySelectorAll("input[type=radio]"),v=0,x=m.length;v<x;v++)m[v].disabled=!1,m[v].addEventListener("click",function(){for(var t=a.playlistLayer.querySelectorAll('input[type="radio"]'),e=a.playlistLayer.querySelectorAll("."+a.options.classPrefix+"playlist-selected"),l=0,s=t.length;l<s;l++)t[l].checked=!1;for(var i=0,n=e.length;i<n;i++)mejs.Utils.removeClass(e[i],a.options.classPrefix+"playlist-selected"),e[i].querySelector("label").querySelector("span").remove();this.checked=!0,this.closest("."+a.options.classPrefix+"playlist-selector-list-item").querySelector("label").innerHTML="<span>▶</span> "+this.closest("."+a.options.classPrefix+"playlist-sel
|