'use strict';(function(b,d){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,maxres_facade:"eager"};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;d(b).on("load._EPYT_",function(){b._EPYT_.pageLoaded=!0});document.querySelectorAll||(document.querySelectorAll=function(a){var c=document,e=c.documentElement.firstChild,g=c.createElement("STYLE");e.appendChild(g);c.__qsaels=[];g.styleSheet.cssText= a+"{x:expression(document.__qsaels.push(this))}";b.scrollBy(0,0);return c.__qsaels});"undefined"===typeof b._EPADashboard_&&(b._EPADashboard_={initStarted:!1,checkCount:0,onPlayerReady:function(a){try{if("undefined"!==typeof _EPYT_.epdovol&&_EPYT_.epdovol){var c=parseInt(a.target.getIframe().getAttribute("data-vol"));isNaN(c)||(0===c?a.target.mute():(a.target.isMuted()&&a.target.unMute(),a.target.setVolume(c)))}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(c=d(a).attr("src"))d(a).attr("src",c.replace("maxresdefault","hqdefault")),d(a).off("load.epyt");2 c.indexOf("maxresdefault")){c=c.replace("hqdefault","maxresdefault");var e=new Image;e.src=c;d(e).on("load.epyt",function(){d(e).off("load.epyt");200k?d("html, body").animate({scrollTop:k},500,function(){b._EPADashboard_.setVidSrc(c,h)}):b._EPADashboard_.setVidSrc(c,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(),d(this).trigger("click")});a.on("mouseenter",".epyt-gallery-list .epyt-gallery-thumb",function(){d(this).addClass("hover")});a.on("mouseleave",".epyt-gallery-list .epyt-gallery-thumb",function(){d(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:d(this).data("playlistid"),pageToken:d(this).data("pagetoken"),pageSize:d(this).data("pagesize"),columns:d(this).data("epcolumns"),showTitle:d(this).data("showtitle"),showPaging:d(this).data("showpaging"),autonext:d(this).data("autonext"),thumbplay:d(this).data("thumbplay")}};var k=d(this).hasClass("epyt-next"),n=parseInt(a.data("currpage")+"");a.data("currpage",n+(k?1:-1)); d.post(_EPYT_.ajaxurl,f,function(l){a.find(".epyt-gallery-list").html(l);a.find(".epyt-current").each(function(){d(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(d("body").scrollTop(),d("html").scrollTop()),m=a.find(".epyt-gallery-list").offset().top-parseInt(_EPYT_.gallery_scrolloffset);l>m&&d("html, body").animate({scrollTop:m},500)}})}}).on("touchmove",function(f){b._EPYT_.touchmoved=!0}).on("touchstart",function(){b._EPYT_.touchmoved=!1})}});d(".__youtube_prefs_gdpr__.epyt-is-override").each(function(){d(this).parent(".wp-block-embed__wrapper").addClass("epyt-is-override__wrapper")}); d("button.__youtube_prefs_gdpr__").on("click",function(a){a.preventDefault();d.cookie&&(d.cookie("ytprefs_gdpr_consent","1",{expires:30,path:"/"}),b.top.location.reload())});"eager"===b._EPYT_.maxres_facade?d("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&&d(this).trigger("load")}):"soft"===b._EPYT_.maxres_facade&&d("img.epyt-facade-poster").on("load.epyt", function(){b._EPADashboard_.maximizeFacadeQuality(this)}).each(function(){this.complete&&d(this).trigger("load")});d(".epyt-facade-play").each(function(){d(this).find("svg").length||d(this).append('')}); d(".epyt-facade-poster[data-facadeoembed]").each(function(){var a=d(this);if(!a.data("facadeoembedcomplete")){a.data("facadeoembedcomplete","1");var c="https://www.youtube.com/"+a.data("facadeoembed");d.get("https://youtube.com/oembed",{url:c,format:"json"},function(e){e="eager"===b._EPYT_.maxres_facade?e.thumbnail_url.replace("hqdefault","maxresdefault"):e.thumbnail_url;a.attr("src",e)},"json").fail(function(){}).always(function(){})}});d(document).on("click",".epyt-facade",function(a){a=d(this); var c=a.attr("data-facadesrc");c=b._EPADashboard_.cleanSrc(c);for(var e=document.createElement("iframe"),g=0;g