/* Minification failed. Returning unminified contents.
(1,477-478): run-time error JS1195: Expected expression: >
(1,721-722): run-time error JS1195: Expected expression: )
(1,1320-1321): run-time error JS1195: Expected expression: )
(1,1322-1323): run-time error JS1195: Expected expression: >
(1,1355-1356): run-time error JS1195: Expected expression: )
(1,1391-1392): run-time error JS1004: Expected ';': {
 */
const videoModules=Array.from(document.querySelectorAll(".js-video_module")),loadYoutubeAPI=0<document.querySelectorAll(".js-video_module--youtube").length;if(0<videoModules.length&&!window.YT&&(loadYoutubeAPI||766<document.documentElement.clientWidth)){const a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";const b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}function onYouTubeIframeAPIReady(){videoModules.map((a)=>{const b=a.querySelector(".js-video");if(""!=b.dataset.provider&&"Youtube"!=b.dataset.provider)"Vimeo"==b.dataset.provider&&loadVimeoPlayer(b,a);else if("hero"!=b.dataset.videoType||767<window.innerWidth){const c=createPlayer(b,a);a.player=c}})}function loadVimeoPlayer(a,b){var c=new Vimeo.Player(a);const d=b.querySelector(".js-media_video__overlay");c.on("play",function(){d.style.opacity=0}),c.on("ended",function(){d.style.opacity=1}),c.on("pause",function(){d.style.opacity=1})}function createPlayer(a,b){const c=a.dataset.videoId;if(c){var d=0,e=0,f=null,g=0;if("hero"==a.dataset.videoType){var d=1,g=1;e=1;var f=c}return new YT.Player(a.id,{height:"675",width:"1200",videoId:c,playerVars:{mute:g,autoplay:d,controls:0,autohide:1,showinfo:0,enablejsapi:1,wmode:"opaque",rel:0,loop:e,modestbranding:1,playlist:f},events:{onStateChange:()=>{onPlayerStateChange(event,b)}}})}}function onPlayerStateChange(a,b){const c=JSON.parse(a.data),d=b.querySelector(".js-media_video__copy"),e=b.querySelector("iframe");d?1===c.info?d.style.opacity=0:d.style.opacity=1:e&&(1===c.info?e.style.opacity=1:e.style.opacity=1)};
