!function(){vare={2953:function(e,t,n){"use strict";vari=n(2667),a=(n(5101),n(5466)),o=(n(6116),n(9518)),r=n(3074),s=n.n(r),l=n(920),c=n.n(l),u=n(2276),d=n(2787),p=n(4426),m=n(3811);functionf(e){vart=null,n=e.split(".");if(n.length)switch(n=n[n.length-1]){case"webm":t="audio/webm";break;case"flac":t="audio/flac";break;case"wave":t="audio/wave";break;case"wav":t="audio/wav";break;case"ogg":case"ogg":t="audio/ogg";break;case"mp3":case"mpeg":t="audio/mpeg"}returnt}n(2322),n(9268);varh=n(9688),y=n(5793),g=n(6983),b=n(9450);functionv(e){return(v="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionw(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functionE(e,t){return(E=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}function_(e,t){return!t||"object"!==v(t)&&"function"!=typeoft?k(e):t}functionk(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionP(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}newb.Z;varS=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(s,e);vart,n,i,o,r=(i=s,o=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){vare,t=P(i);if(o){varn=P(this).constructor;e=Reflect.construct(t,arguments,n)}elsee=t.apply(this,arguments);return_(this,e)});functions(e){vart;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,s),t=r.call(this,e);varn=u.Z.get("media-data");t.AudioPlayerData={},t.audioStartedPlaying=!1;vari=(0,h.U)(n.original_media_url,p.Z.get("config-site").url);t.videoSources=[{src:i,type:f(i)}],t.videoPoster=n.poster_url,t.videoPoster=t.videoPoster?t.videoPoster:n.thumbnail_url,t.videoPoster=t.videoPoster?(0,h.U)(t.videoPoster,p.Z.get("config-site").url):"",t.updatePlayerVolume=t.updatePlayerVolume.bind(k(t)),t.onAudioEnd=t.onAudioEnd.bind(k(t)),t.onAudioRestart=t.onAudioRestart.bind(k(t)),p.Z.on("switched_media_auto_play",t.onUpdateMediaAutoPlay.bind(k(t))),t.wrapperClick=t.wrapperClick.bind(k(t));vara=newb.Z;returna.update(u.Z.get("media-data").duration),t.durationISO8601=a.ISO8601(),t}returnt=s,(n=[{key:"componentDidMount",value:function(){this.videoSources.length||console.warn("Audio DEBUG:","Audio file doesn't exist"),this.recommendedMedia=u.Z.get("media-data").related_media.length?newg.Z(u.Z.get("media-data").related_media,this.refs.AudioElem.parentNode,this.props.inEmbed):null,this.upNextLoaderView=!this.props.inEmbed&&u.Z.get("media-data").related_media.length?newy.Z(u.Z.get("media-data").related_media[0]):null,document.hasFocus()||"visible"===document.visibilityState?this.initPlayerInstance():(this.initPlayerInstance=this.initPlayerInstance.bind(this),window.addEventListener("focus",this.initPlayerInstance),document.addEventListener("visibilitychange",this.initPlayerInstance))}},{key:"componentWillUnmount",value:function(){this.recommendedMedia&&(this.AudioPlayerData.instance.player.off("fullscreenchange",this.recommendedMedia.onResize),p.Z.removeListener("window_resize",this.recommendedMedia.onResize),d.Z.removeListener("changed_viewer_mode",this.recommendedMedia.onResize),this.recommendedMedia.destroy()),videojs(this.refs.AudioElem).dispose(),this.AudioPlayerData.instance=null,deletethis.AudioPlayerData.instance}},{key:"initPlayerInstance",value:function(){window.removeEventListener("focus",this.initPlayerInstance