text: (window.webpackJsonp=window.webpackJsonp||[]).push([[12],{19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r,o=n(17),a=(r=o)&&r.__esModule?r:{default:r};var i=a.default.string,l=a.default.bool,u=a.default.number,s=a.default.array,c=a.default.oneOfType,p=a.default.shape,f=a.default.object,y=a.default.func;t.propTypes={url:c([i,s,f]),playing:l,loop:l,controls:l,volume:u,muted:l,playbackRate:u,width:c([i,u]),height:c([i,u]),style:f,progressInterval:u,playsinline:l,pip:l,light:c([l,i]),wrapper:c([i,y,p({render:y.isRequired})]),config:p({soundcloud:p({options:f,preload:l}),youtube:p({playerVars:f,embedOptions:f,preload:l}),facebook:p({appId:i}),dailymotion:p({params:f,preload:l}),vimeo:p({playerOptions:f,preload:l}),file:p({attributes:f,tracks:s,forceVideo:l,forceAudio:l,forceHLS:l,forceDASH:l,hlsOptions:f,hlsVersion:i,dashVersion:i}),wistia:p({options:f}),mixcloud:p({options:f}),twitch:p({options:f})}),onReady:y,onStart:y,onPlay:y,onPause:y,onBuffer:y,onEnded:y,onError:y,onDuration:y,onSeek:y,onProgress:y,onEnablePIP:y,onDisablePIP:y},t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,light:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{},hlsVersion:"0.10.1",dashVersion:"2.9.2"},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{}}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){},onEnablePIP:function(){},onDisablePIP:function(){}},t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},27:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTube=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(0),l=c(i),u=n(3),s=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f="YT",y=/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/,d=/list=([a-zA-Z0-9_-]+)/;function h(e){if(d.test(e)){var t=e.match(d);return{listType:"playlist",list:a(t,2)[1]}}return{}}var v=t.YouTube=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=u.callPlayer,r.onStateChange=function(e){var t=e.data,n=r.props,o=n.onPlay,a=n.onPause,i=n.onBuffer,l=n.onEnded,u=n.onReady,s=n.loop,c=window[f].PlayerState,p=c.PLAYING,y=c.PAUSED,d=c.BUFFERING,h=c.ENDED,v=c.CUED;if(t===p&&o(),t===y&&a(),t===d&&i(),t===h){var m=!!r.callPlayer("getPlaylist");s&&!m&&r.play(),l()}t===v&&u()},r.mute=function(){r.callPlayer("mute")},r.unmute=function(){r.callPlayer("unMute")},r.ref=function(e){r.container=e},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),o(t,[{key:"load",value:function(e,t){var n=this,o=this.props,a=o.playing,i=o.muted,l=o.playsinline,s=o.controls,c=o.loop,p=o.config,v=o.onError,m=p.youtube,b=m.playerVars,g=m.embedOptions,P=e&&e.match(y)[1];if(t)return d.test(e)?void this.player.loadPlaylist(h(e)):void this.player.cueVideoById({videoId:P,startSeconds:(0,u.parseStartTime)(e)||b.start,endSeconds:(0,u.parseEndTime)(e)||b.end});(0,u.getSDK)("https://www.youtube.com/iframe_api",f,"onYouTubeIframeAPIReady",function(e){return e.loaded}).then(function(t){n.container&&(n.player=new t.Player(n.container,r({width:"100%",height:"100%",videoId:P,playerVars:r({autoplay:a?1:0,mute:i?1:0,controls:s?1:0,start:(0,u.parseStartTime)(e),end:(0,u.parseEndTime)(e),origin:window.location.origin,playsinline:l},h(e),b),events:{onReady:n.props.onReady,onStateChange:n.onStateChange,onError:function(e){return v(e.data)}}},g)),c&&n.player.setLoop(!0))},v)}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",e),this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e=r({width:"100%",height:"100%"},this.props.style);return l.default.createElement("div",{style:e},l.default.createElement("div",{ref:this.ref}))}}]),t}();v.displayName="YouTube",v.canPlay=function(e){return y.test(e)},t.default=(0,s.default)(v)},28:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=(r=i)&&r.__esModule?r:{default:r},u=n(19),s=n(3);function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.mounted=!1,r.isReady=!1,r.isPlaying=!1,r.isLoading=!0,r.loadOnReady=null,r.startOnPlay=!0,r.seekOnPlay=null,r.onDurationCalled=!1,r.getInternalPlayer=function(e){return r.player?r.player[e]:null},r.progress=function(){if(r.props.url&&r.player&&r.isReady){var e=r.getCurrentTime()||0,t=r.getSecondsLoaded(),n=r.getDuration();if(n){var o={playedSeconds:e,played:e/n};null!==t&&(o.loadedSeconds=t,o.loaded=t/n),o.played===r.prevPlayed&&o.loaded===r.prevLoaded||r.props.onProgress(o),r.prevPlayed=o.played,r.prevLoaded=o.loaded}}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency||r.props.progressInterval)},r.onReady=function(){if(r.mounted){r.isReady=!0,r.isLoading=!1;var e=r.props,t=e.onReady,n=e.playing,o=e.volume,a=e.muted;t(),a||null===o||r.player.setVolume(o),r.loadOnReady?(r.player.load(r.loadOnReady,!0),r.loadOnReady=null):n&&r.player.play(),r.onDurationCheck()}},r.onPlay=function(){r.isPlaying=!0,r.isLoading=!1;var e=r.props,t=e.onStart,n=e.onPlay,o=e.playbackRate;r.startOnPlay&&(r.player.setPlaybackRate&&r.player.setPlaybackRate(o),t(),r.startOnPlay=!1),n(),r.seekOnPlay&&(r.seekTo(r.seekOnPlay),r.seekOnPlay=null),r.onDurationCheck()},r.onPause=function(e){r.isPlaying=!1,r.isLoading||r.props.onPause(e)},r.onEnded=function(){var e=r.props,t=e.activePlayer,n=e.loop,o=e.onEnded;t.loopOnEnded&&n&&r.seekTo(0),n||(r.isPlaying=!1,o())},r.onError=function(e){r.isLoading=!1,r.props.onError(e)},r.onDurationCheck=function(){clearTimeout(r.durationCheckTimeout);var e=r.getDuration();e?r.onDurationCalled||(r.props.onDuration(e),r.onDurationCalled=!0):r.durationCheckTimeout=setTimeout(r.onDurationCheck,100)},r.onLoaded=function(){r.isLoading=!1},r.ref=function(e){e&&(r.player=e)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.player.load(this.props.url),this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.player.stop(),this.player.disablePIP&&this.player.disablePIP(),this.mounted=!1}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.url,o=n.playing,a=n.volume,i=n.muted,l=n.playbackRate,u=n.pip,c=n.loop;if(!(0,s.isEqual)(r,e.url)){if(this.isLoading)return console.warn("ReactPlayer: the attempt to load "+e.url+" is being deferred until the player has loaded"),void(this.loadOnReady=e.url);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(e.url,this.isReady)}o||!e.playing||this.isPlaying||this.player.play(),o&&!e.playing&&this.isPlaying&&this.player.pause(),!u&&e.pip&&this.player.enablePIP?this.player.enablePIP():u&&!e.pip&&this.player.disablePIP&&this.player.disablePIP(),a!==e.volume&&null!==e.volume&&this.player.setVolume(e.volume),i!==e.muted&&(e.muted?this.player.mute():(this.player.unmute(),null!==e.volume&&setTimeout(function(){return t.player.setVolume(e.volume)}))),l!==e.playbackRate&&this.player.setPlaybackRate&&this.player.setPlaybackRate(e.playbackRate),c!==e.loop&&this.player.setLoop&&this.player.setLoop(e.loop)}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t){var n=this;if(!this.isReady&&0!==e)return this.seekOnPlay=e,void setTimeout(function(){n.seekOnPlay=null},5e3);if(t?"fraction"===t:e>0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?l.default.createElement(e,o({},this.props,{ref:this.ref,onReady:this.onReady,onPlay:this.onPlay,onPause:this.onPause,onEnded:this.onEnded,onLoaded:this.onLoaded,onError:this.onError})):null}}]),t}();p.displayName="Player",p.propTypes=u.propTypes,p.defaultProps=u.defaultProps,t.default=p},29:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SoundCloud=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=/(soundcloud\.com|snd\.sc)\/.+$/,f=t.SoundCloud=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=l.callPlayer,r.duration=null,r.currentTime=null,r.fractionLoaded=null,r.mute=function(){r.setVolume(0)},r.unmute=function(){null!==r.props.volume&&r.setVolume(r.props.volume)},r.ref=function(e){r.iframe=e},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"load",value:function(e,t){var n=this;(0,l.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(function(o){if(n.iframe){var a=o.Widget.Events,i=a.PLAY,l=a.PLAY_PROGRESS,u=a.PAUSE,s=a.FINISH,c=a.ERROR;t||(n.player=o.Widget(n.iframe),n.player.bind(i,n.props.onPlay),n.player.bind(u,n.props.onPause),n.player.bind(l,function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress}),n.player.bind(s,function(){return n.props.onEnded()}),n.player.bind(c,function(e){return n.props.onError(e)})),n.player.load(e,r({},n.props.config.soundcloud.options,{callback:function(){n.player.getDuration(function(e){n.duration=e/1e3,n.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",1e3*e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e=r({width:"100%",height:"100%"},this.props.style);return i.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url="+encodeURIComponent(this.props.url),style:e,frameBorder:0})}}]),t}();f.displayName="SoundCloud",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=(0,u.default)(f)},3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.parseStartTime=function(e){return d(e,c)},t.parseEndTime=function(e){return d(e,p)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map(function(t){return t+"="+e[t]}).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.default;if(window[t]&&r(window[t]))return Promise.resolve(window[t]);return new Promise(function(r,a){if(h[e])h[e].push(r);else{h[e]=[r];var i=function(t){h[e].forEach(function(e){return e(t)})};if(n){var l=window[n];window[n]=function(){l&&l(),i(window[t])}}o(e,function(e){e&&a(e),n||i(window[t])})}})},t.getConfig=function(e,t,n){var r=(0,i.default)(t.config,e.config),o=!0,a=!1,u=void 0;try{for(var c,p=l.DEPRECATED_CONFIG_PROPS[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var f=c.value;if(e[f]){var y=f.replace(/Config$/,"");if(r=(0,i.default)(r,s({},y,e[f])),n){var d="ReactPlayer: %c"+f+" %cis deprecated, please use the config prop instead – https://github.com/CookPete/react-player#config-prop";console.warn(d,"font-weight: bold","")}}}}catch(e){a=!0,u=e}finally{try{!o&&p.return&&p.return()}finally{if(a)throw u}}return r},t.omit=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=(t=[]).concat.apply(t,r),i={},l=Object.keys(e),u=!0,s=!1,c=void 0;try{for(var p,f=l[Symbol.iterator]();!(u=(p=f.next()).done);u=!0){var y=p.value;-1===a.indexOf(y)&&(i[y]=e[y])}}catch(e){s=!0,c=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return i},t.callPlayer=function(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: "+this.constructor.displayName+" player could not call %c"+e+"%c – ";return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return(t=this.player)[e].apply(t,o)},t.isObject=v,t.isEqual=function e(t,n){if("function"==typeof t&&"function"==typeof n)return!0;if(t instanceof Array&&n instanceof Array){if(t.length!==n.length)return!1;for(var r=0;r!==t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if(v(t)&&v(n)){if(Object.keys(t).length!==Object.keys(n).length)return!1;var o=!0,a=!1,i=void 0;try{for(var l,u=Object.keys(t)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var s=l.value;if(!e(t[s],n[s]))return!1}}catch(e){a=!0,i=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw i}}return!0}return t===n},t.isMediaStream=function(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream};var a=u(n(61)),i=u(n(62)),l=n(19);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=/[?&#](?:start|t)=([0-9hms]+)/,p=/[?&#]end=([0-9hms]+)/,f=/(\d+)(h|m|s)/g,y=/^\d+$/;function d(e,t){var n=e.match(t);if(n){var r=n[1];if(r.match(f))return function(e){var t=0,n=f.exec(e);for(;null!==n;){var r=n,a=o(r,3),i=a[1],l=a[2];"h"===l&&(t+=60*parseInt(i,10)*60),"m"===l&&(t+=60*parseInt(i,10)),"s"===l&&(t+=parseInt(i,10)),n=f.exec(e)}return t}(r);if(y.test(r))return parseInt(r)}}var h={};function v(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))}},30:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vimeo=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=/vimeo\.com\/.+/,f=/vimeo\.com\/external\/.+\.mp4/,y=t.Vimeo=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=l.callPlayer,r.duration=null,r.currentTime=null,r.secondsLoaded=null,r.mute=function(){r.setVolume(0)},r.unmute=function(){null!==r.props.volume&&r.setVolume(r.props.volume)},r.ref=function(e){r.container=e},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"load",value:function(e){var t=this;this.duration=null,(0,l.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(function(n){t.container&&(t.player=new n.Player(t.container,r({url:e,autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline},t.props.config.vimeo.playerOptions)),t.player.ready().then(function(){var e=t.container.querySelector("iframe");e.style.width="100%",e.style.height="100%"}).catch(t.props.onError),t.player.on("loaded",function(){t.props.onReady(),t.refreshDuration()}),t.player.on("play",function(){t.props.onPlay(),t.refreshDuration()}),t.player.on("pause",t.props.onPause),t.player.on("seeked",function(e){return t.props.onSeek(e.seconds)}),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.seconds;t.currentTime=n}),t.player.on("progress",function(e){var n=e.seconds;t.secondsLoaded=n}))},this.props.onError)}},{key:"refreshDuration",value:function(){var e=this;this.player.getDuration().then(function(t){e.duration=t})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=r({width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black"},this.props.style);return i.default.createElement("div",{key:this.props.url,ref:this.ref,style:e})}}]),t}();y.displayName="Vimeo",y.canPlay=function(e){return!f.test(e)&&p.test(e)},t.default=(0,u.default)(y)},31:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DailyMotion=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=c(i),u=n(3),s=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/,y=t.DailyMotion=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=u.callPlayer,r.onDurationChange=function(){var e=r.getDuration();r.props.onDuration(e)},r.mute=function(){r.callPlayer("setMuted",!0)},r.unmute=function(){r.callPlayer("setMuted",!1)},r.ref=function(e){r.container=e},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),a(t,[{key:"load",value:function(e){var t=this,n=this.props,a=n.controls,i=n.config,l=n.onError,s=n.playing,c=e.match(f),p=o(c,2)[1];this.player?this.player.load(p,{start:(0,u.parseStartTime)(e),autoplay:s}):(0,u.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(e){return e.player}).then(function(n){if(t.container){var o=n.player;t.player=new o(t.container,{width:"100%",height:"100%",video:p,params:r({controls:a,autoplay:t.props.playing,mute:t.props.muted,start:(0,u.parseStartTime)(e),origin:window.location.origin},i.dailymotion.params),events:{apiready:t.props.onReady,seeked:function(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function(e){return l(e)}}})}},l)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e=r({width:"100%",height:"100%",backgroundColor:"black"},this.props.style);return l.default.createElement("div",{style:e},l.default.createElement("div",{ref:this.ref}))}}]),t}();y.displayName="DailyMotion",y.canPlay=function(e){return f.test(e)},y.loopOnEnded=!0,t.default=(0,s.default)(y)},332:function(e,t,n){__NEXT_REGISTER_PAGE("/lesson",function(){return e.exports=n(333),{page:e.exports.default}})},333:function(e,t,n){"use strict";n.r(t);var r=n(97);t.default=r.default},38:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Facebook=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=u(o),i=n(3),l=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c="//connect.facebook.net/en_US/sdk.js",p=/facebook\.com\/([^\/?].+\/)?video(s|\.php)[\/?].*$/,f="facebook-player-",y=t.Facebook=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=i.callPlayer,r.playerID=f+(0,i.randomString)(),r.mute=function(){r.callPlayer("mute")},r.unmute=function(){r.callPlayer("unmute")},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"load",value:function(e,t){var n=this;t?(0,i.getSDK)(c,"FB","fbAsyncInit").then(function(e){return e.XFBML.parse()}):(0,i.getSDK)(c,"FB","fbAsyncInit").then(function(e){e.init({appId:n.props.config.facebook.appId,xfbml:!0,version:"v2.5"}),e.Event.subscribe("xfbml.render",function(e){n.props.onLoaded()}),e.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("error",n.props.onError),n.props.muted||n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return a.default.createElement("div",{style:{width:"100%",height:"100%",backgroundColor:"black"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"})}}]),t}();y.displayName="Facebook",y.canPlay=function(e){return p.test(e)},y.loopOnEnded=!0,t.default=(0,l.default)(y)},39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Streamable=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=u(o),i=n(3),l=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=/streamable\.com\/([a-z0-9]+)$/,p=t.Streamable=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=i.callPlayer,r.duration=null,r.currentTime=null,r.secondsLoaded=null,r.mute=function(){r.callPlayer("mute")},r.unmute=function(){r.callPlayer("unmute")},r.ref=function(e){r.iframe=e},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),r(t,[{key:"load",value:function(e){var t=this;(0,i.getSDK)("//cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r}),t.player.on("buffered",function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)}),t.props.muted&&t.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(c)[1];return a.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/"+e,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allowFullScreen:!0})}}]),t}();p.displayName="Streamable",p.canPlay=function(e){return c.test(e)},t.default=(0,l.default)(p)},40:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wistia=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/,f=t.Wistia=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=l.callPlayer,r.mute=function(){r.callPlayer("mute")},r.unmute=function(){r.callPlayer("unmute")},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"getID",value:function(e){return e&&e.match(p)[1]}},{key:"load",value:function(e){var t=this,n=this.props,o=n.playing,a=n.muted,i=n.controls,u=n.onReady,s=n.onPlay,c=n.onPause,p=n.onSeek,f=n.onEnded,y=n.config;(0,l.getSDK)("//fast.wistia.com/assets/external/E-v1.js","Wistia").then(function(){window._wq=window._wq||[],window._wq.push({id:t.getID(e),options:r({autoPlay:o,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:i},y.wistia.options),onReady:function(e){t.player=e,t.unbind(),t.player.bind("play",s),t.player.bind("pause",c),t.player.bind("seek",p),t.player.bind("end",f),u()}})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"unbind",value:function(){var e=this.props,t=e.onPlay,n=e.onPause,r=e.onSeek,o=e.onEnded;this.player.unbind("play",t),this.player.unbind("pause",n),this.player.unbind("seek",r),this.player.unbind("end",o)}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){this.callPlayer("time",e)}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.getID(this.props.url),t="wistia_embed wistia_async_"+e;return i.default.createElement("div",{key:e,className:t,style:{width:"100%",height:"100%"}})}}]),t}();f.displayName="Wistia",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=(0,u.default)(f)},41:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,f=/(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/,y="twitch-player-",d=t.Twitch=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=l.callPlayer,r.playerID=y+(0,l.randomString)(),r.mute=function(){r.callPlayer("setMuted",!0)},r.unmute=function(){r.callPlayer("setMuted",!1)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"load",value:function(e,t){var n=this,o=this.props,a=o.playsinline,i=o.onError,u=o.config,s=f.test(e),c=s?e.match(f)[1]:e.match(p)[1];t?s?this.player.setChannel(c):this.player.setVideo("v"+c):(0,l.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(function(e){n.player=new e.Player(n.playerID,r({video:s?"":c,channel:s?c:"",height:"100%",width:"100%",playsinline:a,autoplay:n.props.playing,muted:n.props.muted},u.twitch.options));var t=e.Player,o=t.READY,i=t.PLAYING,l=t.PAUSE,p=t.ENDED;n.player.addEventListener(o,n.props.onReady),n.player.addEventListener(i,n.props.onPlay),n.player.addEventListener(l,n.props.onPause),n.player.addEventListener(p,n.props.onEnded)},i)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return i.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}]),t}();d.displayName="Twitch",d.canPlay=function(e){return p.test(e)||f.test(e)},d.loopOnEnded=!0,t.default=(0,u.default)(d)},42:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mixcloud=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=/mixcloud\.com\/([^\/]+\/[^\/]+)/,f=t.Mixcloud=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.callPlayer=l.callPlayer,r.duration=null,r.currentTime=null,r.secondsLoaded=null,r.mute=function(){},r.unmute=function(){},r.ref=function(e){r.iframe=e},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"load",value:function(e){var t=this;(0,l.getSDK)("//widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then(function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on(function(e,n){t.currentTime=e,t.duration=n}),t.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.config,o=t.match(p)[1],a=(0,l.queryString)(r({},n.mixcloud.options,{feed:"/"+o+"/"}));return i.default.createElement("iframe",{key:o,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?"+a,frameBorder:"0"})}}]),t}();f.displayName="Mixcloud",f.canPlay=function(e){return p.test(e)},f.loopOnEnded=!0,t.default=(0,u.default)(f)},43:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilePlayer=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=s(a),l=n(3),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,y=/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i,d=/\.(m3u8)($|\?)/i,h=/\.(mpd)($|\?)/i,v=/www\.dropbox\.com\/.+/;function m(e){if(e instanceof Array){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if("string"==typeof i&&m(i))return!0;if(m(i.src))return!0}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return!1}return!!(0,l.isMediaStream)(e)||(f.test(e)||y.test(e)||d.test(e)||h.test(e))}var b=t.FilePlayer=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,l=Array(a),u=0;u<a;u++)l[u]=arguments[u];return n=o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.onDisablePIP=function(e){var t=o.props,n=t.onDisablePIP,r=t.playing;n(e),r&&o.play()},o.onSeek=function(e){o.props.onSeek(e.target.currentTime)},o.mute=function(){o.player.muted=!0},o.unmute=function(){o.player.muted=!1},o.renderSourceElement=function(e,t){return"string"==typeof e?i.default.createElement("source",{key:t,src:e}):i.default.createElement("source",r({key:t},e))},o.renderTrack=function(e,t){return i.default.createElement("track",r({key:t},e))},o.ref=function(e){o.player=e},c(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),p&&this.player.load()}},{key:"componentWillReceiveProps",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&this.removeListeners()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"addListeners",value:function(){var e=this.props,t=e.onReady,n=e.onPlay,r=e.onPause,o=e.onEnded,a=e.onError,i=e.playsinline,l=e.onEnablePIP;this.player.addEventListener("canplay",t),this.player.addEventListener("play",n),this.player.addEventListener("pause",r),this.player.addEventListener("seeked",this.onSeek),this.player.addEventListener("ended",o),this.player.addEventListener("error",a),this.player.addEventListener("enterpictureinpicture",l),this.player.addEventListener("leavepictureinpicture",this.onDisablePIP),i&&(this.player.setAttribute("playsinline",""),this.player.setAttribute("webkit-playsinline",""),this.player.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(){var e=this.props,t=e.onReady,n=e.onPlay,r=e.onPause,o=e.onEnded,a=e.onError,i=e.onEnablePIP;this.player.removeEventListener("canplay",t),this.player.removeEventListener("play",n),this.player.removeEventListener("pause",r),this.player.removeEventListener("seeked",this.onSeek),this.player.removeEventListener("ended",o),this.player.removeEventListener("error",a),this.player.removeEventListener("enterpictureinpicture",i),this.player.removeEventListener("leavepictureinpicture",this.onDisablePIP)}},{key:"shouldUseAudio",value:function(e){return!e.config.file.forceVideo&&(!e.config.file.attributes.poster&&(f.test(e.url)||e.config.file.forceAudio))}},{key:"shouldUseHLS",value:function(e){return d.test(e)&&!p||this.props.config.file.forceHLS}},{key:"shouldUseDASH",value:function(e){return h.test(e)||this.props.config.file.forceDASH}},{key:"load",value:function(e){var t=this,n=this.props.config.file,r=n.hlsVersion,o=n.dashVersion;if(this.shouldUseHLS(e)&&(0,l.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/hls.js/VERSION/hls.min.js".replace("VERSION",r),"Hls").then(function(n){t.hls=new n(t.props.config.file.hlsOptions),t.hls.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.hls,n)}),t.hls.loadSource(e),t.hls.attachMedia(t.player)}),this.shouldUseDASH(e)&&(0,l.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",o),"dashjs").then(function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.getDebug().setLogToBrowserConsole(!1)}),e instanceof Array)this.player.load();else if((0,l.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.hls&&this.hls.destroy(),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}},{key:"setPlaybackRate",value:function(e){this.player.playbackRate=e}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,l.isMediaStream)(e)||t||n))return v.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,o=e.loop,a=e.controls,l=e.muted,u=e.config,s=e.width,c=e.height,p=this.shouldUseAudio(this.props)?"audio":"video",f={width:"auto"===s?s:"100%",height:"auto"===c?c:"100%"};return i.default.createElement(p,r({ref:this.ref,src:this.getSource(t),style:f,preload:"auto",autoPlay:n||void 0,controls:a,muted:l,loop:o},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}]),t}();b.displayName="FilePlayer",b.canPlay=m,b.canEnablePIP=function(e){return m(e)&&!!document.pictureInPictureEnabled&&!f.test(e)},t.default=(0,u.default)(b)},44:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e.replace(/(-|:)(.)/g,function(e,t,n){return n.toUpperCase()})}e=e&&e.hasOwnProperty("default")?e.default:e;var n={for:"htmlFor",class:"className",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",datetime:"dateTime",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"},r={ELEMENT:1,TEXT:3,COMMENT:8},o=["table","tbody","thead","tfoot","tr"],a=document.createElement("div");function i(l,u,s){var c,p=s.transform._;if(l.nodeType===r.COMMENT)return null;if(l.nodeType===r.TEXT){var f=(c=l.textContent,a.innerHTML=c,a.textContent);return p?p(f):f}for(var y=l.tagName.toLowerCase(),d=s.transform[y],h={},v=0;v<l.attributes.length;v++){var m=l.attributes[v].name,b=l.attributes[v].value;h[m]=b}h.key=u.toString();for(var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];return Object.keys(e).reduce(function(o,a){if(/^on.*/.test(a))return o;var i=a;/^(data|aria)-/.test(a)||0===r.filter(function(e){return e instanceof RegExp?e.test(a):e===a}).length&&(i=t(a));var l=n[i]||i;return o[l]="style"===l?function(e){var n={};return e.split(";").filter(function(e){return""!==e.trim()}).forEach(function(e){var r,o=e.split(":");if(o.length>1){var a=function(e){return/^-ms-/.test(e)&&(e=e.substr(1)),t(e)}(o[0].trim()),i=(r=o.slice(1).join(":").trim(),/^\d+$/.test(r)?Number(r):r.replace(/'/g,'"'));n[a]=i}}),n}(e.style):e[a],o},{})}(h,s.preserveAttributes),P=[],w=0;w<l.childNodes.length;w++){var k=l.childNodes[w],O=u+"."+w;if(!(o.indexOf(y)>-1&&k.nodeType===r.TEXT&&(k.textContent=k.textContent.trim(),""===k.textContent))){var E=i(k,O,s);null!==E&&P.push(E)}}return"style"!==y||d||p?(0===P.length&&(P=null),d?e.createElement(d,g,P):p?p(y,g,P):e.createElement(y,g,P)):(g.dangerouslySetInnerHTML={__html:P[0]},e.createElement(y,g,null))}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new TypeError("Expected HTML string");var n={transform:t.transform||{},preserveAttributes:t.preserveAttributes||[]},r=document.createElement("div");r.innerHTML=e.trim();for(var o=[],a=0;a<r.childNodes.length;a++)o.push(r.childNodes[a]);var l=o.map(function(e,t){return i(e,t,n)}).filter(function(e){return null!==e});return 1===l.length?l[0]:l}}(n(0))},45:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilePlayer=t.Mixcloud=t.DailyMotion=t.Twitch=t.Wistia=t.Streamable=t.Facebook=t.Vimeo=t.SoundCloud=t.YouTube=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(27);Object.defineProperty(t,"YouTube",{enumerable:!0,get:function(){return O(a).default}});var i=n(29);Object.defineProperty(t,"SoundCloud",{enumerable:!0,get:function(){return O(i).default}});var l=n(30);Object.defineProperty(t,"Vimeo",{enumerable:!0,get:function(){return O(l).default}});var u=n(38);Object.defineProperty(t,"Facebook",{enumerable:!0,get:function(){return O(u).default}});var s=n(39);Object.defineProperty(t,"Streamable",{enumerable:!0,get:function(){return O(s).default}});var c=n(40);Object.defineProperty(t,"Wistia",{enumerable:!0,get:function(){return O(c).default}});var p=n(41);Object.defineProperty(t,"Twitch",{enumerable:!0,get:function(){return O(p).default}});var f=n(31);Object.defineProperty(t,"DailyMotion",{enumerable:!0,get:function(){return O(f).default}});var y=n(42);Object.defineProperty(t,"Mixcloud",{enumerable:!0,get:function(){return O(y).default}});var d=n(43);Object.defineProperty(t,"FilePlayer",{enumerable:!0,get:function(){return O(d).default}});var h=n(0),v=O(h),m=n(19),b=n(3),g=O(n(63)),P=O(n(28)),w=O(n(64)),k=O(n(65));function O(e){return e&&e.__esModule?e:{default:e}}function E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var j=Object.keys(m.propTypes),S=[],T=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.config=(0,b.getConfig)(r.props,m.defaultProps,!0),r.state={showPreview:!!r.props.light},r.onClickPreview=function(){r.setState({showPreview:!1})},r.getDuration=function(){return r.player?r.player.getDuration():null},r.getCurrentTime=function(){return r.player?r.player.getCurrentTime():null},r.getSecondsLoaded=function(){return r.player?r.player.getSecondsLoaded():null},r.getInternalPlayer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null},r.seekTo=function(e,t){if(!r.player)return null;r.player.seekTo(e,t)},r.onReady=function(){r.props.onReady(r)},r.wrapperRef=function(e){r.wrapper=e},r.activePlayerRef=function(e){r.player=e},_(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.Component),o(t,[{key:"componentDidMount",value:function(){if(this.props.progressFrequency){console.warn("ReactPlayer: %cprogressFrequency%c is deprecated, please use %cprogressInterval%c instead","font-weight: bold","","font-weight: bold","")}}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,b.isEqual)(this.props,e)||!(0,b.isEqual)(this.state,t)}},{key:"componentWillUpdate",value:function(e){this.config=(0,b.getConfig)(e,m.defaultProps),!this.props.light&&e.light&&this.setState({showPreview:!0})}},{key:"getActivePlayer",value:function(e){for(var t=[].concat(E(S),E(g.default)),n=0;n<t.length;n++){var r=t[n];if(r.canPlay(e))return r}return d.FilePlayer}},{key:"renderActivePlayer",value:function(e,t){return e?v.default.createElement(P.default,r({},this.props,{key:t.displayName,ref:this.activePlayerRef,config:this.config,activePlayer:t,onReady:this.onReady})):null}},{key:"sortPlayers",value:function(e,t){return e&&t?e.key<t.key?-1:1:0}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.controls,o=e.style,a=e.width,i=e.height,l=e.light,u=e.wrapper,s=this.state.showPreview&&t,c=(0,b.omit)(this.props,j,m.DEPRECATED_CONFIG_PROPS),p=this.getActivePlayer(t),f=this.renderActivePlayer(t,p),y=(0,k.default)(t,n,this.config),d=[f].concat(E(y)).sort(this.sortPlayers),h=v.default.createElement(w.default,{url:t,light:l,onClick:this.onClickPreview});return v.default.createElement(u,r({ref:this.wrapperRef,style:r({},o,{width:a,height:i})},c),s?h:d)}}]),t}();T.addCustomPlayer=function(e){S.push(e)},T.removeCustomPlayers=function(){S=[]},T.displayName="ReactPlayer",T.propTypes=m.propTypes,T.defaultProps=m.defaultProps,T.canPlay=function(e){for(var t=[].concat(E(S),E(g.default)),n=0;n<t.length;n++){if(t[n].canPlay(e))return!0}return!1},T.canEnablePIP=function(e){for(var t=[].concat(E(S),E(g.default)),n=0;n<t.length;n++){var r=t[n];if(r.canEnablePIP&&r.canEnablePIP(e))return!0}return!1},t.default=T},61:function(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,o){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async=!("async"in t)||!!t.async,i.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(i,t.attrs),t.text&&(i.text=""+t.text),("onload"in i?n:r)(i,o),i.onload||n(i,o),a.appendChild(i)}},62:function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e,t,r){var o={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){o[t]=n(e[t],r)}),Object.keys(t).forEach(function(i){r.isMergeableObject(t[i])&&e[i]?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,r)(e[i],t[i],r):o[i]=n(t[i],r)}),o}function a(t,a,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e;var l=Array.isArray(a),u=Array.isArray(t),s=l===u;return s?l?i.arrayMerge(t,a,i):o(t,a,i):n(a,i)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},a}()},63:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(29),a=n(30),i=n(38),l=n(39),u=n(40),s=n(41),c=n(31),p=n(42),f=n(43);t.default=[r.YouTube,o.SoundCloud,a.Vimeo,i.Facebook,l.Streamable,u.Wistia,s.Twitch,c.DailyMotion,p.Mixcloud,f.FilePlayer]},64:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),l=(r=i)&&r.__esModule?r:{default:r};function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={image:null},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),a(t,[{key:"componentDidMount",value:function(){this.fetchImage(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.props.url!==e.url&&this.fetchImage(e)}},{key:"fetchImage",value:function(e){var t=this,n=e.url,r=e.light;if("string"!=typeof r)return this.setState({image:null}),window.fetch("https://noembed.com/embed?url="+n).then(function(e){return e.json()}).then(function(e){if(e.thumbnail_url){var n=e.thumbnail_url.replace("height=100","height=480");t.setState({image:n})}});this.setState({image:r})}},{key:"render",value:function(){var e=this.props.onClick,t=this.state.image,n={display:"flex",alignItems:"center",justifyContent:"center"},r={preview:o({width:"100%",height:"100%",backgroundImage:t?"url("+t+")":void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},n),shadow:o({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:"64px",width:"64px",height:"64px"},n),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}};return l.default.createElement("div",{style:r.preview,className:"react-player__preview",onClick:e},l.default.createElement("div",{style:r.shadow,className:"react-player__shadow"},l.default.createElement("div",{style:r.playIcon,className:"react-player__play-icon"})))}}]),t}();t.default=s},65:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=[],i=!0,l=!1,u=void 0;try{for(var s,p=c[Symbol.iterator]();!(i=(s=p.next()).done);i=!0){var f=s.value;!f.Player.canPlay(e)&&n[f.configKey].preload&&a.push(r.default.createElement(o.default,{key:f.Player.displayName,activePlayer:f.Player,url:f.url,controls:t,playing:!0,muted:!0,style:{display:"none"}}))}}catch(e){l=!0,u=e}finally{try{!i&&p.return&&p.return()}finally{if(l)throw u}}return a};var r=s(n(0)),o=s(n(28)),a=n(27),i=n(29),l=n(30),u=n(31);function s(e){return e&&e.__esModule?e:{default:e}}var c=[{Player:a.YouTube,configKey:"youtube",url:"https://www.youtube.com/watch?v=GlCmAC4MHek"},{Player:i.SoundCloud,configKey:"soundcloud",url:"https://soundcloud.com/seucheu/john-cage-433-8-bit-version"},{Player:l.Vimeo,configKey:"vimeo",url:"https://vimeo.com/300970506"},{Player:u.DailyMotion,configKey:"dailymotion",url:"http://www.dailymotion.com/video/xqdpyk"}]},7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t,n;return n=t=function(t){function n(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=p(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),t=r,r.config=(0,u.getConfig)(r.props,l.defaultProps,!0),r.getDuration=function(){return r.player?r.player.getDuration():null},r.getCurrentTime=function(){return r.player?r.player.getCurrentTime():null},r.getSecondsLoaded=function(){return r.player?r.player.getSecondsLoaded():null},r.getInternalPlayer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return r.player?r.player.getInternalPlayer(e):null},r.seekTo=function(e,t){if(!r.player)return null;r.player.seekTo(e,t)},r.ref=function(e){r.player=e},p(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"shouldComponentUpdate",value:function(e){return!(0,u.isEqual)(this.props,e)}},{key:"componentWillUpdate",value:function(e){this.config=(0,u.getConfig)(e,l.defaultProps)}},{key:"render",value:function(){var t=this.config.file,n=t.forceVideo,o=t.forceAudio,a=t.forceHLS,c=t.forceDASH,p=n||o||a||c;if(!e.canPlay(this.props.url)&&!p)return null;var y=this.props,d=y.style,h=y.width,v=y.height,m=y.wrapper,b=(0,u.omit)(this.props,f,l.DEPRECATED_CONFIG_PROPS);return i.default.createElement(m,r({style:r({},d,{width:h,height:v})},b),i.default.createElement(s.default,r({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),n}(a.Component),t.displayName=e.displayName+"Player",t.propTypes=l.propTypes,t.defaultProps=l.defaultProps,t.canPlay=e.canPlay,n};var a=n(0),i=c(a),l=n(19),u=n(3),s=c(n(28));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=Object.keys(l.propTypes)},8:function(e,t,n){"use strict";var r=n(9);function o(e,t){return e===t}var a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=0,i=r.pop(),l=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),u=e.apply(void 0,[function(){return a++,i.apply(null,arguments)}].concat(n)),s=e(function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return u.apply(null,e)});return s.resultFunc=i,s.dependencies=l,s.recomputations=function(){return a},s.resetRecomputations=function(){return a=0},s}}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}});var i={getEntities:function(e){return e.entities}},l=n(13),u={getIsFetchingCourseModules:function(e){return e.course.isFetchingCourseModules},getIsFetchingCourses:function(e){return e.course.isFetchingCourses},getCourses:a([i.getEntities],function(e){return Object(r.a)(Object.keys(e.courses),[l.a],e)}),getCourseModules:a([i.getEntities],function(e){return Object(r.a)(Object.keys(e.modules),[l.c],e)})},s={getIsFetchingLessonView:function(e){return e.lesson.isFetchingLessonView}},c=function(e){return a([i.getEntities],function(t){var n=t.modules;return e in n?n[e].lessons:[]})},p={getCourseModuleLessons:c,getCourseModuleNextLesson:function(e,t){return a([c(e)],function(e){var n=e?e.filter(function(e){return e.id==Number(t)+1}):[];return n.length?n[0]:{}})},getIsFetchingCourseModuleLessons:function(e){return e.module.isFetchingCourseModuleLessons},getCourseModuleLessonsCount:function(e){return a([i.getEntities],function(t){var n=t.modules;return e in n?n[e].lessons.length:0})},getIsFetchingCourseModuleLessonView:function(e){return e.module.isFetchingCourseModuleLessonView}};n.d(t,"a",function(){return u}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return p})},97:function(e,t,n){"use strict";n.r(t),n.d(t,"LessonPage",function(){return L});var r=n(14),o=n.n(r),a=n(0),i=n(11),l=n(44),u=n.n(l),s=n(1),c=n(12),p=n.n(c),f=n(4),y=n.n(f),d=n(2),h=n(5),v=n(15),m=n(18),b=n(8),g=n(45),P=n.n(g),w=(n(134),n(174),n(6));function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function E(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){E(a,r,o,i,l,"next",e)}function l(e){E(a,r,o,i,l,"throw",e)}i(void 0)})}}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,n=!(o=S(t).call(this,e))||"object"!==k(o)&&"function"!=typeof o?C(r):o,I(C(C(n)),"courseId",null),I(C(C(n)),"moduleId",null),I(C(C(n)),"lessonId",null),I(C(C(n)),"moduleTitle",null),n.state={moduleProgression:0,ratingCumulative:0,lessonView:"<div></div>"},n.handleSaveJournalInput=n.handleSaveJournalInput.bind(C(C(n))),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(t,a["Component"]),n=t,(r=[{key:"refreshFeedback",value:function(e){var t=this,n=e.courseId,r=e.moduleId,o=e.lessonId;this.props.getJournalFeedback({course_id:n,module_id:r,lesson_id:o},function(e){var a=e[n][r][o],i=Object.keys(a).filter(function(e){return"rating"===a[e].type}),l=i.reduce(function(e,t,n){return parseInt(e)+parseInt(a[i[n]].answer)},0);t.setState({ratingCumulative:l})})}},{key:"renderModuleCardLink",value:function(e){var t=e.icon,n=e.title,r=t;return a.createElement("div",{className:"card d-flex flex-row module__link-card"},a.createElement("section",{className:"module__link-card__preview d-flex justify-content-center align-items-center"},a.createElement(r,null)),a.createElement("section",{className:"px-3 py-4 module__link-card__content"},a.createElement("h5",{className:"h6 module__link-card__title"},n)))}},{key:"renderUpcomingLinks",value:function(){var e=this.props,t=e.getCourseModuleNextLesson,n=e.router.query,r=n.course,o=n.module,i=t(this.moduleId,this.lessonId),l=Object.keys(i).length>0,u=l&&i.title,s=l&&i.type,c=l&&i.id;return a.createElement("section",null,l?a.createElement("div",{className:"mb-5"},a.createElement("h4",{className:"h5"},"You've Completed This Lesson"),a.createElement("h5",{className:"h6 mb-3 text-black-50"},"Let's move on to the next one."),a.createElement(y.a,{href:"/lesson?course=".concat(r,"&module=").concat(o,"&lesson=lesson-").concat(c),as:"/lesson/".concat(r,"/").concat(o,"/lesson-").concat(c)},a.createElement("a",null,this.renderModuleCardLink({icon:"lesson"===s?v.c:v.e,title:u})))):a.createElement("div",{className:"mb-5"},a.createElement("h4",{className:"h5 text-brand"},"Great! You've finished this module!"),a.createElement(a.Fragment,null,a.createElement("h5",{className:"h6 mb-3 text-black-50"},"Whoohoo! You have finished this module."),a.createElement(y.a,{prefetch:!0,as:"/course/".concat(r),href:"/course?course=".concat(r)},a.createElement("a",null,this.renderModuleCardLink({icon:v.c,title:"See all modules"}))))))}},{key:"handleSaveJournalInput",value:function(e,t){var n=this,r=e.question,o=e.type,a=e.value,i=e.tag;this.props.createJournalFeedback({question:r,answer:a,type:o,course_id:this.courseId,module_id:this.moduleId,lesson_id:this.lessonId,feedback_id:i},function(){n.refreshFeedback({courseId:n.courseId,moduleId:n.moduleId,lessonId:n.lessonId})})}},{key:"handleComponentMount",value:function(){var e=_(o.a.mark(function e(){var t,n,r,a,i,l,u,s,c,p,f,y,d,h,v=this;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.props,n=t.router,r=t.fetchLessonView,a=t.updateUserLesson,i=t.fetchCourseModuleLessons,l=n.query,u=l.course,s=l.lesson,c=l.module,p=parseInt(Object(w.b)(u)),f=parseInt(Object(w.b)(c)),y=parseInt(Object(w.b)(s)),d=Object(w.c)(u),h=Object(w.c)(c),this.courseId=p,this.moduleId=f,this.lessonId=y,r({courseSlug:d,moduleSlug:h,lessonId:y},function(e){i({moduleId:f}),v.setState({lessonView:e})}),a({courseId:p,moduleId:f,lessonId:y,progression:100},function(){var e=_(o.a.mark(function e(t){var n,r,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.userLessons,r=t.moduleLessonsCount,a=Object(w.a)(n,r),v.setState({moduleProgression:a});case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()),this.refreshFeedback({courseId:p,moduleId:f,lessonId:y});case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){var e=this;this.handleComponentMount(),this.props.router.events.on("routeChangeComplete",function(t){t.startsWith("/lesson")&&e.handleComponentMount()})}},{key:"componentWillUnmount",value:function(){this.handleSaveJournalInput=function(){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.app,r=t.isFetchingLessonView,o=t.router.query,i=n.coursemapModulesFeedback,l=Object.keys(i).length&&this.lessonId?i[this.courseId][this.moduleId][this.lessonId]:"",s=u()(this.state.lessonView,{transform:{reactplayer:function(e){return a.createElement(P.a,{url:e.url,width:"100%",light:!0,playing:!0})},ratingfeedback:function(t){var n=t.displaythreshold,r=e.state.ratingCumulative,o=void 0===r?0:r,a=O(n.split(":"),2),i=a[0],l=a[1];return o&&o>=parseInt(i)&&o<=parseInt(l)?t.children:null},journalinput:function(t){var n=parseInt(t.tag),r=l&&n in l?l[n].answer:"";return a.createElement(h.c,{onSaveJournalInput:e.handleSaveJournalInput,tag:n,type:t.type||"textarea",name:t.name,label:t.label,showLabel:!t.showlabel,value:r})}}}),c=o,f=c.course,y=c.module;return a.createElement("div",{className:"d-flex flex-column module",style:{paddingTop:"100px"}},a.createElement(p.a,null,a.createElement("title",null,"Lesson ",this.lessonId," | Module: ",this.moduleTitle)),a.createElement(h.b,{backlinkHref:{link:"/module?course=".concat(f,"&module=").concat(y),as:"/module/".concat(f,"/").concat(y)},title:"Lesson"},this.props.app.isUpdatingUserLesson?a.createElement(m.a,{width:"25px",height:"25px"}):a.createElement(h.g,{progression:this.state.moduleProgression||0})),a.createElement("section",null,a.createElement("div",null,r?a.createElement(h.f,{caption:"Fetching content..."}):a.createElement(a.Fragment,null,a.createElement("section",{className:"mb-5 container"},s),a.createElement("section",{className:"container"},this.renderUpcomingLinks())))))}}])&&j(n.prototype,r),i&&j(n,i),t}();t.default=Object(i.b)(function(e){return{app:e.app,isFetchingLessonView:b.b.getIsFetchingLessonView(e),getCourseModuleLessons:function(t){return b.c.getCourseModuleLessons(t)(e)},getCourseModuleLessonsCount:function(t){return b.c.getCourseModuleLessonsCount(t)(e)},getCourseModuleNextLesson:function(t,n){return b.c.getCourseModuleNextLesson(t,n)(e)}}},function(e){return{fetchCourseModuleLessons:Object(s.bindActionCreators)(d.g.fetchCourseModuleLessons,e),updateUserLesson:Object(s.bindActionCreators)(d.a.updateUserLesson,e),fetchLessonView:Object(s.bindActionCreators)(d.f.fetchLessonView,e),createJournalFeedback:Object(s.bindActionCreators)(d.a.createJournalFeedback,e),getJournalFeedback:Object(s.bindActionCreators)(d.a.getJournalFeedback,e)}})(Object(h.h)(L))}},[[332,0,1,2]]]);