'use strict';(function(b,c){b._EPYT_=b._EPYT_||{ajaxurl:"/wp-admin/admin-ajax.php",security:"",gallery_scrolloffset:100,eppathtoscripts:"/wp-content/plugins/youtube-embed-plus/scripts/",eppath:"/wp-content/plugins/youtube-embed-plus/",epresponsiveselector:["iframe.__youtube_prefs_widget__"],epdovol:!0,evselector:'iframe.__youtube_prefs__[src], iframe[src*="youtube.com/embed/"], iframe[src*="youtube-nocookie.com/embed/"]',stopMobileBuffer:!0,ajax_compat:!1,usingdefault:!0,ytapi_load:"light",pause_others:!1, facade_mode:!1,not_live_on_channel:!1};b._EPYT_.touchmoved=!1;b._EPYT_.apiVideos=b._EPYT_.apiVideos||{};0===b.location.toString().indexOf("https://")&&(b._EPYT_.ajaxurl=b._EPYT_.ajaxurl.replace("http://","https://"));b._EPYT_.pageLoaded=!1;c(b).on("load._EPYT_",function(){b._EPYT_.pageLoaded=!0});document.querySelectorAll||(document.querySelectorAll=function(a){var d=document,e=d.documentElement.firstChild,g=d.createElement("STYLE");e.appendChild(g);d.__qsaels=[];g.styleSheet.cssText=a+"{x:expression(document.__qsaels.push(this))}"; b.scrollBy(0,0);return d.__qsaels});"undefined"===typeof b._EPADashboard_&&(b._EPADashboard_={initStarted:!1,checkCount:0,onPlayerReady:function(a){try{if("undefined"!==typeof _EPYT_.epdovol&&_EPYT_.epdovol){var d=parseInt(a.target.getIframe().getAttribute("data-vol"));isNaN(d)||(0===d?a.target.mute():(a.target.isMuted()&&a.target.unMute(),a.target.setVolume(d)))}var e=parseInt(a.target.getIframe().getAttribute("data-epautoplay"));isNaN(e)||1!==e||a.target.playVideo()}catch(h){}try{var g=a.target.getIframe(), f=g.getAttribute("id");b._EPYT_.apiVideos[f]=a.target;b._EPYT_.not_live_on_channel&&0a.naturalHeight)if(d=c(a).attr("src"))c(a).attr("src",d.replace("maxresdefault","hqdefault")),c(a).off("load.epyt");2k?c("html, body").animate({scrollTop:k},500,function(){b._EPADashboard_.setVidSrc(d,h)}):b._EPADashboard_.setVidSrc(d,h)}}).on("touchmove",function(f){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved= !1}).on("keydown",".epyt-gallery-list .epyt-gallery-thumb, .epyt-pagebutton",function(f){var h=f.which;if(13===h||32===h)f.preventDefault(),c(this).trigger("click")});a.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){c(this).addClass("hover")});a.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){c(this).removeClass("hover")});a.on("click touchend",".epyt-pagebutton",function(f){if(!b._EPYT_.touchmoved&&!a.find(".epyt-gallery-list").hasClass("epyt-loading")){a.find(".epyt-gallery-list").addClass("epyt-loading"); var h="undefined"!==typeof f.originalEvent;f={action:"my_embedplus_gallery_page",security:_EPYT_.security,options:{playlistId:c(this).data("playlistid"),pageToken:c(this).data("pagetoken"),pageSize:c(this).data("pagesize"),columns:c(this).data("epcolumns"),showTitle:c(this).data("showtitle"),showPaging:c(this).data("showpaging"),autonext:c(this).data("autonext"),thumbplay:c(this).data("thumbplay")}};var k=c(this).hasClass("epyt-next"),n=parseInt(a.data("currpage")+"");a.data("currpage",n+(k?1:-1)); c.post(_EPYT_.ajaxurl,f,function(l){a.find(".epyt-gallery-list").html(l);a.find(".epyt-current").each(function(){c(this).text(a.data("currpage"))});a.find('.epyt-gallery-thumb[data-videoid="'+a.data("currvid")+'"]').addClass("epyt-current-video");"1"!=a.find(".epyt-pagebutton").first().data("autonext")||h||a.find(".epyt-gallery-thumb").first().trigger("click")}).fail(function(){alert("Sorry, there was an error loading the next page.")}).always(function(){a.find(".epyt-gallery-list").removeClass("epyt-loading"); if("1"!=a.find(".epyt-pagebutton").first().data("autonext")){var l=Math.max(c("body").scrollTop(),c("html").scrollTop()),m=a.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);l>m&&c("html, body").animate({scrollTop:m},500)}})}}).on("touchmove",function(f){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1})}});c(".__youtube_prefs_gdpr__.epyt-is-override").each(function(){c(this).parent(".wp-block-embed__wrapper").addClass("epyt-is-override__wrapper")}); c("button.__youtube_prefs_gdpr__").on("click",function(a){a.preventDefault();c.cookie&&(c.cookie("ytprefs_gdpr_consent","1",{expires:30,path:"/"}),b.top.location.reload())});c("img.epyt-facade-poster").on("load.epyt",function(){b._EPADashboard_.resolveFacadeQuality(this,!1)}).on("error",function(){b._EPADashboard_.resolveFacadeQuality(this,!0)}).each(function(){this.complete&&c(this).trigger("load")});c(".epyt-facade-play").each(function(){c(this).find("svg").length||c(this).append('')}); c(".epyt-facade-poster[data-facadeoembed]").each(function(){var a=c(this);if(!a.data("facadeoembedcomplete")){a.data("facadeoembedcomplete","1");var d="https://www.youtube.com/"+a.data("facadeoembed");c.get("https://youtube.com/oembed",{url:d,format:"json"},function(e){a.attr("src",e.thumbnail_url.replace("hqdefault","maxresdefault"))},"json").fail(function(){}).always(function(){})}});c(document).on("click",".epyt-facade",function(a){a=c(this);var d=a.attr("data-facadesrc");d=b._EPADashboard_.cleanSrc(d); for(var e=document.createElement("iframe"),g=0;g