/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(1108)),o=c(n(1109)),l=c(n(1117));function c(e){return e&&e.__esModule?e:{default:e}}let d;t.default=(e,t={},n=!1)=>{const c=(0,r.default)();if(d||(d=(0,l.default)(c)),t.events)throw new Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw new Error('Element "'+e+'" does not exist.');t.events=o.default.proxyEvents(c);const f=new Promise((n=>{if("object"==typeof e&&e.playVideo instanceof Function){n(e)}else d.then((r=>{const o=new r.Player(e,t);return c.on("ready",(()=>{n(o)})),null}))})),y=o.default.promisifyPlayer(f,n);return y.on=c.on,y.off=c.off,y},e.exports=t.default},1108:function(e,t,n){"use strict";var r;r=function(){var e={},t={};return e.on=function(e,n){var r={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(r),r},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,data){var i,n=t[e];if(n)for(i=n.length;i--;)n[i].handler(data)},e},e.exports=r},1109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(1110)),o=d(n(1113)),l=d(n(1115)),c=d(n(1116));function d(e){return e&&e.__esModule?e:{default:e}}const f=(0,r.default)("youtube-player"),y={proxyEvents:e=>{const t={};for(const n of l.default){const r="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[r]=t=>{f('event "%s"',r,t),e.trigger(n,t)}}return t},promisifyPlayer:(e,t=!1)=>{const n={};for(const r of c.default)t&&o.default[r]?n[r]=(...t)=>e.then((e=>{const n=o.default[r],l=e.getPlayerState(),c=e[r].apply(e,t);return n.stateChangeRequired||Array.isArray(n.acceptableStates)&&!n.acceptableStates.includes(l)?new Promise((t=>{const r=()=>{const o=e.getPlayerState();let l;"number"==typeof n.timeout&&(l=setTimeout((()=>{e.removeEventListener("onStateChange",r),t()}),n.timeout)),Array.isArray(n.acceptableStates)&&n.acceptableStates.includes(o)&&(e.removeEventListener("onStateChange",r),clearTimeout(l),t())};e.addEventListener("onStateChange",r)})).then((()=>c)):c})):n[r]=(...t)=>e.then((e=>e[r].apply(e,t)));return n}};t.default=y,e.exports=t.default},1110:function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(1111)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(186))},1111:function(e,t,n){e.exports=function(e){function t(e){let n,o,l,c=null;function d(...e){if(!d.enabled)return;const r=d,o=Number(new Date),l=o-(n||o);r.diff=l,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let c=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";c++;const l=t.formatters[o];if("function"==typeof l){const t=e[c];n=l.call(r,t),e.splice(c,1),c--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return d.namespace=e,d.useColors=t.useColors(),d.color=t.selectColor(e),d.extend=r,d.destroy=t.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==c?c:(o!==t.namespaces&&(o=t.namespaces,l=t.enabled(e)),l),set:e=>{c=e}}),"function"==typeof t.init&&t.init(d),d}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let i;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let i,n;for(i=0,n=t.skips.length;i<n;i++)if(t.skips[i].test(e))return!1;for(i=0,n=t.names.length;i<n;i++)if(t.names[i].test(e))return!0;return!1},t.humanize=n(1112),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let i=0;i<e.length;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},1112:function(e,t){var s=1e3,n=60*s,r=60*n,o=24*r,l=7*o,c=365.25*o;function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var f=typeof e;if("string"===f&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var d=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*c;case"weeks":case"week":case"w":return d*l;case"days":case"day":case"d":return d*o;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}(e);if("number"===f&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return d(e,t,o,"day");if(t>=r)return d(e,t,r,"hour");if(t>=n)return d(e,t,n,"minute");if(t>=s)return d(e,t,s,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=r)return Math.round(e/r)+"h";if(t>=n)return Math.round(e/n)+"m";if(t>=s)return Math.round(e/s)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1114),l=(r=o)&&r.__esModule?r:{default:r};t.default={pauseVideo:{acceptableStates:[l.default.ENDED,l.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[l.default.ENDED,l.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[l.default.ENDED,l.default.PLAYING,l.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},1114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},1115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},1116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=t.default},1117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1118),l=(r=o)&&r.__esModule?r:{default:r};t.default=e=>new Promise((t=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);{const t="http:"===window.location.protocol?"http:":"https:";(0,l.default)(t+"//www.youtube.com/iframe_api",(t=>{t&&e.trigger("error",t)}))}const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{n&&n(),t(window.YT)}})),e.exports=t.default},1118:function(e,t){function n(script,e){script.onload=function(){this.onerror=this.onload=null,e(null,script)},script.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),script)}}function r(script,e){script.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,script))}}e.exports=function(e,t,o){var head=document.head||document.getElementsByTagName("head")[0],script=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},script.type=t.type||"text/javascript",script.charset=t.charset||"utf8",script.async=!("async"in t)||!!t.async,script.src=e,t.attrs&&function(script,e){for(var t in e)script.setAttribute(t,e[t])}(script,t.attrs),t.text&&(script.text=""+t.text),("onload"in script?n:r)(script,o),script.onload||n(script,o),head.appendChild(script)}},712:function(e,t,n){"use strict";var r=n(2),o=(n(66),n(1107)),l=n.n(o),c={name:"wr-youtube",props:{playerVars:{type:Object,default:function(){return{}}},videoId:{type:String,default:null},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640}},data:function(){return{events:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},-1,"unstarted"),1,"playing"),2,"paused"),0,"ended"),3,"buffering"),5,"cued"),player:{}}},beforeUnmount:function(){null!==this.player&&this.player.destroy&&(this.player.destroy(),delete this.player)},mounted:function(){this.player=l()(this.$el,{width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange)},methods:{playerStateChange:function(e){null!==e.data&&-1!==e.data&&(this.checkLoop(e.data),this.$emit(this.events[e.data],e.target))},checkLoop:function(e){var t;0===e&&null!==(t=this.playerVars)&&void 0!==t&&t.loop&&this.playVideo()},playVideo:function(){this.player.playVideo()},pauseVideo:function(){this.player.pauseVideo()},stopVideo:function(){this.player.stopVideo()},setSize:function(e,t){this.player.setSize(e,t)},playerReady:function(e){this.$emit("ready",e.target)}}},d=n(0),component=Object(d.a)(c,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{attrs:{id:e.videoId}})}),[],!1,null,null,null);t.a=component.exports}}]);