1!function(t){"use strict";if(void 0!==window.dike_plc&&!window.dike_plc("lcweb",lcmg.dike_slug))return console.error("Media Grid - validate the license"),!1;let e,i,_;window.$mg_sel_grid=!1;let a={},n={},s=!1,m=!1,o=!1;window.mg_lb_video_h_ratio=.55;let l={},r={},g={},d={},c={},f={};window.mg_grid_filters={};let p={},h={};window.mg_slider_autoplay={};let u={},v={},b={},w=!1,y=!1,x="",C="",k="";const T='<div class="mg_loader"><div class="mgl_1"></div><div class="mgl_2"></div><div class="mgl_3"></div><div class="mgl_4"></div></div>',z=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t(document).ready((function(t){N(),X(!0)})),window.mg_init_grid=function(e,i){if(!t("#"+e).length)return!1;l[e]=t("#"+e).data("grid-id"),r[e]=!1,d[e]=i,I(e)},window.mg_async_init=function(t,e){mg_init_grid(t,e)};const I=function(e){j(e,!0),q(e),lcmg.show_filter_match&&mg_matches_per_filter(e),O(e),t(window).trigger("mg_pre_grid_init",[e]),setTimeout((function(){A(e,!0),M(e)}),60)},j=function(e,i){var _=t(void 0===e?".mg_items_container":"#"+e+" .mg_items_container");if(!_.length)return!1;if(1==_.length){if(!_.outerWidth()||_.outerWidth()%2==0)return!0;_.toggleClass("mg_not_even_w"),void 0===i&&E(e)}else _.each((function(){j(t(this).parents(".mg_grid_wrap").attr("id"))}))},O=function(e,i,_){var a=t("#"+e),s=!t("#"+e+".mg_muurified").length,m="object"==typeof i,o=!s&&!m,l=void 0===lcmg.mobile_thold?800:lcmg.mobile_thold;void 0!==t("#"+e).attr("data-mobile-treshold")&&(l=parseInt(t("#"+e).data("mobile-treshold"),10));var r=m?i.find(".mgi_main_thumb"):t("#"+e+" .mg_box").not(".mg_pag_hide, .mg_cat_hide, .mg_search_hide").find(".mgi_main_thumb"),g=t("#"+e).parent().width();return!!g&&(void 0===n[e]&&(n[e]=!1),g<l&&(!n[e]||s||m||_)?(r.each((function(){t(this).css("background-image","url('"+t(this).data("mobileurl")+"')")})),n[e]=!0,a.addClass("mg_mobile_mode"),o&&t(window).trigger("mg_mobile_mode_switch",[e]),!0):g>=l&&(n[e]||s||m||_)?(r.each((function(){t(this).css("background-image","url('"+t(this).data("fullurl")+"')")})),n[e]=!1,a.removeClass("mg_mobile_mode"),o&&t(window).trigger("mg_mobile_mode_switch",[e]),!0):void 0)},A=function(e,i){const _=t("#"+e+" .mg_grid_title_under .mg_has_txt_under");if(!_.length)return!0;_.each((function(){var e=t(this),i=e.attr("id"),_=void 0!==p[i]&&p[i],a=e.find(".mgi_txt_under").outerHeight(!0);!1!==_&&_==a||(p[i]=a,e.css("margin-bottom",a))})),void 0!==i&&E(e)},M=function(e){if(!t("#"+e+" .mg_items_container").length||t("#"+e+".mg_muurified").length)return!1;a[e]=new Muuri(t("#"+e+" .mg_items_container")[0],{items:t("#"+e+" .mg_items_container")[0].getElementsByClassName("mg_box"),containerClass:"mg-muuri",itemClass:"mg-muuri-item",itemVisibleClass:"mg-muuri-shown",itemHiddenClass:"mg-muuri-hidden",layoutOnResize:!1,layout:{fillGaps:!0,alignRight:lcmg.rtl,rounding:!1},layoutDuration:450,layoutEasing:"ease-out",showDuration:450,showEasing:"ease-out",hideDuration:450,hideEasing:"ease-out",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"}}),t("#"+e).addClass("mg_muurified"),mg_exec_filters(e,!0)},E=function(e){void 0===e?t(".mg_muurified").each((function(){E(t(this).attr("id"))})):void 0!==a[e]&&(a[e].refreshItems(),a[e].layout(!0))};t(document).ready((function(){setInterval((function(){t(".mg_grid_wrap").each((function(){var e=t(this).attr("id"),i=Math.round(t(this).width());if(void 0===g[e])return g[e]=i,!0;g[e]!=i&&(g[e]=i,i&&t(window).trigger("mg_resize_grid",[e]))}))}),210)})),t(window).on("mg_resize_grid",(function(e,i){t("#"+i+".mg_muurified").length?(E(i),O(i,!1,!0),j(i),q(i),q(i,!0),A(i),nt(i)):I(i)}));const D=function(e,i,_){nt(e),t("#"+e+".mg_no_results").removeClass("mg_no_results");var a=i;if(a.not(".mgi_ready, .mg_inl_slider, .mg_inl_text").find(".mgi_main_thumb").length){t("#"+e+" .mg_loader").is(":hidden")&&function(e){t("#"+e+" .mg_items_container").stop().fadeTo(300,.25),t("#"+e).find(".mg_loader").stop().fadeIn(300)}(e);var s=t("<div></div>");a.not(".mgi_ready").find(".mgi_main_thumb").each((function(){var i=n[e]?t(this).attr("data-mobileurl"):t(this).attr("data-fullurl");s.append('<img src="'+i+'" />')})),lc_lazyload(s.find("img"),{allLoaded:function(t){a.mg_display_boxes(e),"function"==typeof _&&_.call()}})}else a.mg_display_boxes(e),"function"==typeof _&&_.call()};t.fn.mg_display_boxes=function(e){var i=!!r[e];!function(e){t("#"+e+" .mg_items_container").stop().fadeTo(300,1),t("#"+e).find(".mg_loader").stop().fadeOut(300)}(e);var _=0,a=lcmg.delayed_fx&&!r[e]?170:0,n=this.length*a;return this.each((function(e,i){var n=t(this),s=a*_;n.addClass("mgi_ready"),setTimeout((function(){if(n.addClass("mgi_shown"),n.hasClass("mg_to_kenburn")&&n.find(".mgi_main_thumb").mg_kenburns(),n.hasClass("mg_inl_slider")){var t=n.find(".mg_inl_slider_wrap").attr("id");Y(t)}if(n.find(".mg_self-hosted-video").length){var e="#"+n.find(".mg_sh_inl_video").attr("id");mg_video_player(e,!0)}if(n.hasClass("mg_inl_video")&&!n.find(".mg_sh_inl_video").length&&(-1==navigator.userAgent.indexOf("Chrome/")&&-1==navigator.appVersion.indexOf("Safari/")||setTimeout((function(){n.find(".mg_shadow_div").css("transform","none").css("animation","none").css("-webkit-transform","none").css("-webkit-animation","none").css("opacity",1)}),350)),n.hasClass("mg_inl_audio")&&n.find(".mg_inl_audio_player").length){setTimeout((function(){var t="#"+n.find(".mg_inl_audio_player").attr("id");it(t)}),350)}if(n.find(".mg_inl_txt_video_bg").length){var i=n.find(".mg_inl_txt_video_bg")[0];i.currentTime=0,i.play()}}),s),_++})),setTimeout((function(){i||(r[e]=!0,t("#"+e+" .mg_no_init_loader").removeClass("mg_no_init_loader"),t("#"+e).addClass("mgi_shown"),t(window).trigger("mg_grid_shown",[e])),st(e)}),n),t(window).trigger("mg_items_ready",[e,this,i]),!0},window.mg_exec_filters=function(e,i){const _=t("#"+e),n=parseInt(_.data("filtered-per-page"),10);if("object"!=typeof mg_grid_filters[e]||_.hasClass("mg_is_filtering"))return!1;var s=mg_grid_filters[e];_.addClass("mg_is_filtering"),_.find(".mg_no_results").removeClass("mg_no_results"),_.find(".mg_box").removeClass("mg_filtered mg_hidden_pag");var m=t("#"+e+" .mg_box"),o=m;if(!lcmg.monopage_filter&&Object.keys(s).length>1&&void 0!==s.mg_pag_){_.find(".mg_pag_wrap").fadeOut(400);var l=!0}else{_.find(".mg_pag_wrap").fadeIn(400);l=!1}var r="standard";"standard"!=lcmg.filters_behav&&(_.find(".mg_pag_wrap").length&&!lcmg.monopage_filter||(r=lcmg.filters_behav));var g=Object.keys(mg_grid_filters[e]);t.each(g,(function(i,_){var a=mg_grid_filters[e][_];if("object"!=typeof a.val||!a.val.length||void 0===a.condition)return!0;
1if(l&&"mg_pag_"==_)return!0;if("AND"==a.condition){var n="";t.each(a.val,(function(t,e){n+="."+_+e}))}else{n=[];t.each(a.val,(function(t,e){n.push("."+_+e)})),n=n.join(" , ")}o=o.filter(n),"mg_pag_"==_&&m.not(n).addClass("mg_hidden_pag")})),o.addClass("mg_filtered");var d="standard"==r?o:m.not(".mg_hidden_pag"),c="standard"==r?".mg_filtered":"*:not(.mg_hidden_pag)";if(O(e,d),"standard"!=r){var f="0_opacity"==r?0:.4;m.not(".mg_filtered").addClass("mgi_low_opacity_f").fadeTo(450,f),o.removeClass("mgi_low_opacity_f").fadeTo(450,1)}L(e,_,g,n,c)&&(d=d.filter(":not(.mg_fpp_hidden)"),c+=":not(.mg_fpp_hidden)"),void 0!==i?(_.find(".mg_items_container").removeClass("mgic_pre_show"),D(e,d),a[e].filter(c),H(e),_.removeClass("mg_is_filtering")):(D(e,d,(function(){void 0!==a[e]&&(a[e].filter(c),_.removeClass("mg_is_filtering"),t(window).trigger("mg_filtered_grid",[e]),setTimeout((function(){A(e,!0),H(e)}),85))})),mg_pause_inl_players(e))};const L=function(e,i,_,a,n){const s=i.find(".mg_box.mg_filtered"),m=i.find(".mg_fpp_pag_wrap");if(!m.length)return!1;if(void 0===c[e]&&(c[e]=1,f[e]=m.html()),s.removeClass("mg_fpp_hidden"),c[e]=1,m.attr("data-init-pag",1),a&&s.length>a&&(-1===t.inArray("mg_pag_",_)&&_.length||-1!==t.inArray("mg_pag_",_)&&_.length>1)){const t=Math.ceil(s.length/a);if(m.attr("data-tot-pag",t),m.find(".mg_fpp_tot_pag").text(t),m.find(".mg_fpp_pag_btn").length){m.html(f[e]);let i=m.find(".mg_fpp_pag_btn")[0].outerHTML.replace("mg_sel_pag","");for(let e=1;e<t;e++)m.append(i.replace(/[1]/g,e+1));q(e,!0)}else m.find(".mg_fpp_curr_pag").text(1),m.find(".mg_prev_page").addClass("mg_pag_disabled"),m.find(".mg_next_page").removeClass("mg_pag_disabled"),m.hasClass("mg_inf_scroll")&&(i[0].style.paddingBottom="");s.slice(a).addClass("mg_fpp_hidden"),m.fadeIn(200)}else i.find(".mg_fpp_pag_wrap").hide();return!0},H=function(e){t("#"+e+" .mg-muuri-shown").length?t("#"+e+" .mg_items_container").removeClass("mg_no_results"):t("#"+e+" .mg_items_container").addClass("mg_no_results")};let S;t(document).on("click",".mg_mobile_mode .mg_dd_mobile_filters .mgf_inner",(function(e){_=!0;var i=t(this);S&&clearTimeout(S),S=setTimeout((function(){i.toggleClass("mgf_dd_expanded")}),50)})),t(document).ready((function(){t(document).on("click",".mg_next_page:not(.mg_pag_disabled), .mg_prev_page:not(.mg_pag_disabled)",(function(){_=!0;var e=t(this).hasClass("mg_next_page")?"next":"prev";t(this).parents(".mg_fpp_pag_wrap").length?P(e,t(this).parents(".mg_grid_wrap").attr("id")):$(e,t(this).parents(".mg_grid_wrap").attr("id"))})),t(document).on("click",".mg_pag_btn_nums > div:not(.mg_sel_pag), .mg_pag_btn_dots > div:not(.mg_sel_pag)",(function(){_=!0;var e=t(this).data("pag"),i=t(this).parents(".mg_grid_wrap").attr("id");t(this).parents(".mg_pag_wrap").find("> div").removeClass("mg_sel_pag"),t(this).addClass("mg_sel_pag"),t(this).parents(".mg_fpp_pag_wrap").length?(q(i,!0),P(e,i)):(q(i),$(e,i))}))}));const $=function(e,i){var _=i,a=t("#"+_).data("grid-id"),n=parseInt(t("#mgp_"+_).data("tot-pag"),10),s=parseInt(d[_],10);if(-1!==t.inArray(e,["next","prev"])){if("next"==e&&s>=n||"prev"==e&&s<=1)return!1;var m="next"==e?s+1:s-1}else{if((m=parseInt(e))<1||m>n||m==s)return!1}d[_]=m,1==m?mg_remove_deeplink("page","mgp_"+a):mg_set_deeplink("page","mgp_"+a,m),1==m?t("#mgp_"+_+" .mg_prev_page").addClass("mg_pag_disabled"):t("#mgp_"+_+" .mg_prev_page").removeClass("mg_pag_disabled"),m==n?t("#mgp_"+_+" .mg_next_page").addClass("mg_pag_disabled"):t("#mgp_"+_+" .mg_next_page").removeClass("mg_pag_disabled"),t("#mgp_"+_+" .mg_nav_mid span").length&&t("#mgp_"+_+" .mg_nav_mid span").text(m),mg_grid_filters[_].mg_pag_={condition:"AND",val:[m]},mg_exec_filters(_),t(window).trigger("mg_resize_grid",[_]),lcmg.scrolltop_on_pag&&t("html, body").animate({scrollTop:t("#"+_).offset().top-15},300)},P=function(e,i){if(t("#"+i).hasClass("mg_is_filtering"))return!1;let _=i,n=t("#"+_),s=(n.data("grid-id"),n.find(".mg_box.mg_filtered")),m=n.find(".mg_fpp_pag_wrap"),o=parseInt(m.attr("data-tot-pag"),10),l=c[_],r=n.data("filtered-per-page");if(-1!==t.inArray(e,["next","prev"])){if("next"==e&&l>=o||"prev"==e&&l<=1)return!1;var g="next"==e?l+1:l-1}else{if((g=parseInt(e))<1||g>o||g==l)return!1}c[_]=g,m.find(".mg_fpp_curr_pag").text(g),1==g?m.find(".mg_prev_page").addClass("mg_pag_disabled"):m.find(".mg_prev_page").removeClass("mg_pag_disabled"),g==o?m.find(".mg_next_page").addClass("mg_pag_disabled"):m.find(".mg_next_page").removeClass("mg_pag_disabled"),s.addClass("mg_fpp_hidden");const d=(g-1)*r,f=d+r;s.slice(d,f).removeClass("mg_fpp_hidden"),D(i,s,(function(){a[i].filter(".mg_filtered:not(.mg_fpp_hidden)")})),t(window).trigger("mg_resize_grid",[_]),t("html, body").animate({scrollTop:t("#"+_).offset().top-15},300)},q=function(e,i=!1){if(!t("#"+e).find(".mg_pag_btn_nums, .mg_pag_btn_dots").length)return!1;var _=i?t("#"+e).find(".mg_fpp_pag_wrap"):t("#"+e).find(".mg_pag_wrap:not(.mg_fpp_pag_wrap)"),a=_.find("> div");if(_.removeClass("mg_hpb_after mg_hpb_before"),a.removeClass("mg_hidden_pb"),a.length<=5)return!1;var n=0;if(a.each((function(){n+=t(this).outerWidth(!0)+1})),n>_.outerWidth()){var s=t("#"+e+" .mg_sel_pag"),m=parseInt(s.data("pag")),o=parseInt(a.last().data("pag")),l=n+(m<=2||m>=o-1?26:52)-_.outerWidth(),r=a.last().outerWidth(!0),g=Math.ceil(l/r);if(m<=2||m>=o-1){var d=[];if(m<=2){_.addClass("mg_hpb_after");for(let t=0;t<g;t++)d.push("[data-pag="+(o-t)+"]")}else if(m>=o-1){_.addClass("mg_hpb_before");for(let t=0;t<g;t++)d.push("[data-pag="+(1+t)+"]")}a.filter(d.join(",")).addClass("mg_hidden_pb")}else{_.addClass("mg_hpb_before mg_hpb_after");
1var c=["[data-pag="+m+"]"],f=o-1-g,p=Math.floor(f/2),h=Math.ceil(f/2),u=m-p,v=m+h;u<=1?(_.removeClass("mg_hpb_before"),h+=-1*u+1):v>=o&&(_.removeClass("mg_hpb_after"),p+=v-(o-1));for(let t=1;t<=p;t++)c.push("[data-pag="+(m-t)+"]");for(let t=1;t<=h;t++)c.push("[data-pag="+(m+t)+"]");a.not(c.join(",")).addClass("mg_hidden_pb")}}};let W;t(document).ready((function(){t(document).on("click",".mg_load_more_btn",(function(){_=!0;let e=t(this).parents(".mg_grid_wrap").attr("id"),i=!!t(this).parents(".mg_fpp_pag_wrap").length,n=i?t("#"+e).find(".mg_fpp_pag_wrap"):t("#"+e).find(".mg_pag_wrap:not(.mg_fpp_pag_wrap)"),s=parseInt(n.attr("data-init-pag"),10),m=parseInt(n.attr("data-tot-pag"),10);if(!n.hasClass("mg_fpp_pag_wrap")&&t("#"+e).hasClass("mg_is_filtering")||s>=m)return!1;var o=s+1;if(n.attr("data-init-pag",o),i){let i=t("#"+e),_=i.find(".mg_box.mg_filtered"),n=o*i.data("filtered-per-page"),s=n>_.length?_:_.slice(0,n);_.addClass("mg_fpp_hidden"),s.removeClass("mg_fpp_hidden"),a[e].filter(".mg_filtered:not(.mg_fpp_hidden)"),t(window).trigger("mg_resize_grid",[e])}else{var l=[];for(let t=1;t<=o;t++)l.push(t);mg_grid_filters[e].mg_pag_={condition:"OR",val:l},mg_exec_filters(e)}o>=m&&n.fadeOut(300,(function(){t("#"+e).animate({paddingBottom:0},400),i||n.remove()}))})),t(window).scroll((function(){var e=t(this).scrollTop();t(".mg_auto_inf_scroll:not(:hidden) .mg_load_more_btn").each((function(){if(t(this).parents(".mg_fpp_pag_wrap").length)return!0;var i=t(this),_=i.offset().top,a=i.outerHeight(),n=t(window).height();e>_+a-n&&i.trigger("click")}))}))})),t(document).ready((function(){t(document).on("click",".mgf:not(.mgf_selected)",(function(e){e.preventDefault(),_=!0;var i=t(this).parents(".mg_grid_wrap"),a=i.attr("id"),n=i.data("grid-id"),s=t(this).data("filter-id"),m=t(this).text();return i.hasClass("mg_is_filtering")||(i.find(".mgf").removeClass("mgf_selected"),t(this).addClass("mgf_selected"),s&&"*"!=s?(mg_grid_filters[a].mgc_={condition:"AND",val:[s]},mg_set_deeplink("category","mgc_"+n,s,m)):(delete mg_grid_filters[a].mgc_,mg_remove_deeplink("category","mgc_"+n)),mg_exec_filters(a),i.find(".mgf_noall_placeh").length&&i.find(".mgf_noall_placeh").remove(),t(this).parents(".mgf_dd_expanded").length&&t(this).parents(".mgf_dd_expanded").removeClass("mgf_dd_expanded")),!1}))})),window.mg_matches_per_filter=function(e){const i=t("#"+e);i.find(".mgf_inner .mgf").length?i.find(".mgf").not(".mgf_all").each((function(){const e=t(this).data("filter-id");e&&!t(this).find(".mg_filter_count").length&&t(this).append('<font class="mg_filter_count">'+i.find(".mg_box.mgc_"+e).length+"</font>")})):i.find(".mgaf_sect").length&&i.find('.mgaf_sect:not([data-type="range"])').each((function(){const e="mg_item_categories"==t(this).data("sect")?".mgc_":"."+t(this).data("sect")+"_";t(this).find(".mgaf_opts_list li:not(.mgaf_fake_dd_search), .mgaf_fdd_opt").each((function(){if(t(this).hasClass("mgc_reset_filter"))return;const _=t(this).data("val").substr(4);_&&!t(this).find(".mg_filter_count").length&&t(this).append('<font class="mg_filter_count">'+i.find(".mg_box"+e+_).length+"</font>")}))}))},t(document).on("keyup",".mgf_search_form input",(function(){W&&clearTimeout(W);var e=t(this);W=setTimeout((function(){var i=e.parents(".mg_grid_wrap"),_=i.attr("id"),a=i.data("grid-id"),n=t.trim(e.val());if(i.find(".mg_box").removeClass("mg_search_res"),n&&n.length>2){i.find(".mgf_search_form").addClass("mgs_has_txt");var s="any_word"==lcmg.search_behav?n.toLowerCase().split(" "):[n.toLowerCase()],m=[];i.find(".mg_box:not(.mg_spacer)").each((function(){var e=t(this).data("mg-search").toLowerCase(),i=t(this).data("item-id");t.each(s,(function(t,_){if(-1!==e.indexOf(_))return m.push(i),!1}))})),t.each(m,(function(t,e){i.find(".mg_box[data-item-id="+e+"]").addClass("mg_search_res")})),mg_grid_filters[_].mg_search_res={condition:"AND",val:[""]},mg_set_deeplink("search","mgs_"+a,n)}else i.find(".mgf_search_form").removeClass("mgs_has_txt"),i.find(".mg_no_results").removeClass("mg_no_results"),delete mg_grid_filters[_].mg_search_res,mg_remove_deeplink("search","mgs_"+a);mg_exec_filters(_)}),300)})),t(document).on("click",".mgf_search_form.mgs_has_txt i",(function(){_=!0;var e=t(this).parents(".mg_grid_wrap"),i=e.find(".mgf_search_form input");if(e.hasClass("mg_is_filtering"))return!1;t.trim(i.val())&&i.val().length>2&&(i.val(""),i.trigger("keyup"))})),t(document).on("keypress",".mgf_search_form input",(function(t){return 13!=t.keyCode})),t(document).on("click",".mgi_txt_under",(function(e){const i=t(this).parents(".mg_box").find(".mg_box_inner");if(t(e.target).hasClass("mg_custom_behav_btn")||t(e.target).parents(".mg_custom_behav_btn").length)return!0;
1if(i.is("a")){const t=i[0].hasAttribute("target")?i.attr("target"):"__self";window.open(i.attr("href"),t)}})),t(document).ready((function(){t(document).on("click",".mg_inl_video:not(.mgi_iv_shown)",(function(e){var i=t(this);if(_=!0,i.find(".mgi_overlays").length&&z&&!i.hasClass("mg_mobile_hovered"))return i.parents(".mg_grid_wrap").find(".mg_box").removeClass("mg_mobile_hovered"),i.addClass("mg_mobile_hovered"),!1;if(i.removeClass("mg_mobile_hovered"),i.addClass("mgi_iv_shown"),i.find(".mg_video_iframe").length){var a=i.find(".mg_video_iframe").data("autoplay-url");i.find(".mg_video_iframe").attr("src",a).show(),setTimeout((function(){i.find(".mgi_thumb_wrap, .mgi_overlays").fadeTo(350,0,(function(){i.parents(".mg_video_iframe").css("z-index",100),t(this).remove()}))}),50)}else i.find(".mgi_thumb_wrap, .mgi_overlays").fadeTo(350,0,(function(){t(this).remove();var e="#"+i.find(".mg_sh_inl_video").attr("id");u[e].play()}))})),t(document).on("click","#mg_lb_video_poster, #mg_ifp_ol",(function(e){_=!0;var i=t("#mg_lb_video_poster").data("autoplay-url");void 0!==i&&t("#mg_lb_video_wrap").find("iframe").attr("src",i),t("#mg_ifp_ol").fadeOut(120),t("#mg_lb_video_poster").fadeOut(400)}))})),t(document).ready((function(e){t(document).on("click",".mg_box.mg_inl_audio:not(.mgi_ia_shown)",(function(){var e=t(this);if(_=!0,e.find(".mgi_overlays").length&&z&&!e.hasClass("mg_mobile_hovered"))return e.parents(".mg_grid_wrap").find(".mg_box").removeClass("mg_mobile_hovered"),e.addClass("mg_mobile_hovered"),!1;if(e.removeClass("mg_mobile_hovered"),e.addClass("mgi_ia_shown"),e.find(".mg_audio_embed").length){var i=e.find(".mg_audio_embed").data("lazy-src");e.find(".mg_audio_embed").attr("src",i).removeData("lazy-src"),setTimeout((function(){e.find(".mgi_overlays").fadeTo(350,0,(function(){e.find(".mg_audio_embed").css("z-index",100),t(this).remove()}))}),50)}else{var a="#"+e.find(".mg_inl_audio_player").attr("id");it(a,!0),e.find(".mgi_overlays").fadeOut(350,(function(){t(this).remove()}))}}))}));const N=function(){return void 0!==lcmg.lightbox_mode&&(t("#mg_deeplinked_lb").length?(e=t("#mg_lb_contents"),t("html").addClass("mg_lb_shown"),s=!0,R(),!0):(t("#mg_lb_wrap").length&&t("#mg_lb_wrap, #mg_lb_background").remove(),t("body").append(`\n <div id="mg_lb_wrap">\n <div id="mg_lb_loader">${T}</div>\n <div id="mg_lb_contents" class="mg_lb_pre_show_next"></div>\n <div id="mg_lb_scroll_helper" class="${lcmg.lightbox_mode}"></div>\n </div>\n <div id="mg_lb_background" class="${lcmg.lightbox_mode}"></div>`),e=t("#mg_lb_contents"),void R()))},R=function(){if(!lcmg.lb_touchswipe)return!1;new lc_swiper("#mg_lb_wrap",(function(e,i,_){const a=t(_);if(a.hasClass("mg_lb_lcms_slider")||a.parents(".mg_lb_lcms_slider").length||a.hasClass("mg_is_zooming_img")||a.parents(".mg_is_zooming_img").length||a.hasClass("mg_noswipe_el")||a.parents(".mg_noswipe_el").length)return!1;e.right>60?t(".mg_nav_prev > *").trigger("click"):e.left>60&&t(".mg_nav_next > *").trigger("click")}))};t(document).ready((function(){t(document).on("click",".mgi_has_lb:not(.mg-muuri-hidden, .mgi_low_opacity_f)",(function(e){_=!0;var i=t(e.target);if(!(s||i.hasClass("mgom_fb")||i.hasClass("mgom_tw")||i.hasClass("mgom_pt")||i.hasClass("mgom_wa")||i.hasClass("mg_quick_edit_btn")||i.hasClass("mg_custom_behav_btn"))){const e=t(this);if(e.find(".mgi_overlays").length&&z&&!e.hasClass("mg_mobile_hovered"))return e.parents(".mg_grid_wrap").find(".mg_box").removeClass("mg_mobile_hovered"),e.addClass("mg_mobile_hovered"),!1;e.removeClass("mg_mobile_hovered");const i=e.data("item-id");$mg_sel_grid=e.parents(".mg_grid_wrap");const _=!!$mg_sel_grid.hasClass("mg_use_mf_lb");mg_open_item(i,!1,_)}}))}));window.mg_open_item=function(i,_,a){!function(){C=void 0!==t("html").attr("style")?t("html").attr("style"):"",k=void 0!==t("body").attr("style")?t("body").attr("style"):"";var e=t(window).width();t("html").css({overflow:"hidden","touch-action":"none"}),t("body").css({overflow:"visible","touch-action":"none"}),t("html").css("margin-right",t(window).width()-e)}(),a?(t("#mg_lb_wrap").addClass("mg_mf_lb"),t("#mg_lb_wrap").attr("mg_mf_lb",1)):(t("#mg_lb_wrap").removeClass("mg_mf_lb"),t("#mg_lb_wrap").removeAttr("mg_mf_lb")),t("#mg_lb_wrap").removeClass("mg_displaynone"),t("#mg_lb_wrap").css("display","flex"),t(window).width()<1e3&&setTimeout((()=>{e.trigger("click")}),20),void 0!==_&&_||setTimeout((function(){t("#mg_lb_loader, #mg_lb_background").addClass("mg_lb_shown"),V(i,a)}),50)};const V=async function(i,_,a,n=!1){var o=$mg_sel_grid.attr("id"),l=$mg_sel_grid.data("grid-id");if(!n){e.removeClass("mg_lb_shown"),t("#mg_lb_wrap").data("item-id",i).data("grid-id",o);var r=t(".mgi_"+i+" .mgi_main_thumb").data("item-title");mg_set_deeplink("item","mgi_"+l,i,r)}var g=[],d=0;if($mg_sel_grid.find(".mgi_has_lb").not(".mg-muuri-hidden").each((function(e,_){var a=t(this).data("item-id");g.push(a),a==i&&(d=e)})),lcmg.lb_carousel)var c=0!==d?g[d-1]:g[g.length-1],f=d!=g.length-1?g[d+1]:g[0];else c=0!==d?g[d-1]:0,f=d!=g.length-1?g[d+1]:0;var p=""+c+i+f+_;if(void 0===h[p]){let t=new FormData;return t.append("action","mg_lb_contents"),t.append("pid",i),t.append("prev_id",c),t.append("next_id",f),t.append("mf_mode",_?1:0),m=new AbortController,await fetch(lcmg.ajax_url,{method:"POST",credentials:"same-origin",keepalive:!1,signal:m.signal,body:t}).then((async t=>{if(!t.ok)return Promise.reject(t);t=await t.text(),p&&(h[p]=t),n||(U(t),void 0!==window.mg_not_preload_np_lb_items&&window.mg_not_preload_np_lb_items||(c&&V(c,_,!0,!0),f&&V(f,_,!0,!0)),_&&B())})).catch((t=>!(!t.status||n)&&(console.error(t),U("Error retrieving contents. Try again please"))))}return n||(void 0!==window.mg_not_preload_np_lb_items&&window.mg_not_preload_np_lb_items||(c&&V(c,_,!1,!0),f&&V(f,_,!1,!0)),setTimeout((function(){U(h[p]),_&&B()}),void 0===a||a||s?320:0)),!0},B=function(){t(".mg_lb_lb_text").length||t(".mg_no_feat_lb").length?(t("#mg_lb_wrap").removeClass("mg_mf_lb"),t("#mg_lb_wrap").css("display","flex")):(t("#mg_lb_wrap").addClass("mg_mf_lb"),t("#mg_lb_wrap").css("display","flex"))},U=function(i){o||(o="next"),e.html(i).attr("class","mg_lb_pre_show_"+o),t(".mg_item_featured .mg_me_player_wrap.mg_self-hosted-video").length&&!t(".mg_item_featured .mg_me_player_wrap.mg_self-hosted-video > img").length&&mg_video_player("#mg_lb_video_wrap");const _=t(".mg_lb_layout").data("item-id");t(window).trigger("mg_lb_contents_shown",[_]),setTimeout((function(){t("#mg_lb_loader").removeClass("mg_lb_shown"),e.attr("class","mg_lb_shown").focus(),t("html").addClass("mg_lb_shown"),s=!0,o=!1}),50)};t(document).ready((function(){t(document).on("click",".mg_nav_active > *",(function(){_=!0,o=t(this).parents(".mg_nav_active").hasClass("mg_nav_next")?"next":"prev";const e=parseInt(t(this).parents(".mg_nav_active").data("item-id"),10);F(e)}))})),t(document).keydown((function(e){if(!s)return!0;
1if(37==e.keyCode&&t(".mg_nav_prev.mg_nav_active").length){var i=parseInt(t(".mg_nav_prev.mg_nav_active").data("item-id"),10);o="prev",F(i)}if(39==e.keyCode&&t(".mg_nav_next.mg_nav_active").length){i=parseInt(t(".mg_nav_next.mg_nav_active").data("item-id"),10);o="next",F(i)}}));const F=function(i){t("#mg_lb_loader").addClass("mg_lb_shown"),e.attr("class","mg_lb_switching_"+o),t("#mg_lb_top_nav, .mg_side_nav, .mg_lb_nav_side_basic, #mg_top_close").fadeOut(350,(function(){t(this).remove()}));const _=!!t("#mg_lb_wrap")[0].hasAttribute("mg_mf_lb");setTimeout((function(){Q(),e.empty(),V(i,_),s=!1}),400)},G=function(){m&&m.abort(),Q(),J&&clearInterval(J),t("#mg_lb_loader").removeClass("mg_lb_shown"),e.attr("class","mg_closing_lb"),setTimeout((()=>{t("#mg_lb_background").removeClass("mg_lb_shown")}),120),t("#mg_lb_top_nav, .mg_side_nav, #mg_top_close").fadeOut(350),setTimeout((function(){t("#mg_lb_top_nav, .mg_side_nav, #mg_top_close").remove()}),351),setTimeout((function(){t("#mg_lb_wrap").hide(),e.empty(),void 0!==C?t("html").attr("style",C):t("html").removeAttr("style"),void 0!==k?t("body").attr("style",k):t("body").removeAttr("style"),"undefined"!=typeof mg_scroll_helper_h&&clearTimeout(mg_scroll_helper_h),t("#mg_lb_scroll_helper").removeAttr("style"),e.attr("class","mg_lb_pre_show_next"),t("html").removeClass("mg_lb_shown"),s=!1}),500),$mg_sel_grid&&mg_remove_deeplink("item","mgi_"+$mg_sel_grid.data("grid-id"))};t(document).ready((function(){t(document).on("click","#mg_lb_background.mg_classic_lb, #mg_lb_scroll_helper.mg_classic_lb, .mg_close_lb",(function(){_=!0,G()}))})),t(document).keydown((function(e){t("#mg_lb_contents .mg_close_lb").length&&27==e.keyCode&&G()}));var Q=function(){J&&(clearInterval(J),t("#mg_lb_scroll_helper").css("margin-top",0))};let J;window.mg_lb_lazyload=function(){const e=t(".mg_item_featured > div > img, #mg_lb_video_wrap img, .mg_lb_ext_audio_w_img img");if(!e.length)return!0;e.fadeTo(0,0),lc_lazyload(e,{allLoaded:function(_){if(i=_,e.fadeTo(300,1),t(".mg_item_featured .mg_loader").fadeOut("fast"),t("#mg_lb_feat_img_wrap").length&&t("#mg_lb_feat_img_wrap").fadeTo(300,1),t("#mg_ifp_ol").length&&(setTimeout((()=>{t("#mg_ifp_ol").fadeIn(300)}),300),setInterval((function(){t("#mg_lb_video_wrap > img").css("display","block")}),200)),t(".mg_item_featured .mg_self-hosted-video").length&&(t("#mg_lb_video_wrap").fadeTo(0,0),mg_video_player("#mg_lb_video_wrap"),t("#mg_lb_video_wrap").fadeTo(300,1)),t(".mg_item_featured .mg_lb_audio_player").length){var a="#"+t(".mg_lb_audio_player").attr("id");tt(a),t(".mg_item_featured .mg_lb_audio_player").fadeIn()}}})},window.mg_lb_realtime_actions=function(){J&&clearInterval(J),J=setInterval((function(){const e=t(".mg_item_featured"),_=t("#mg_lb_wrap").hasClass("mg_mf_lb");let a=Math.round(t(".mg_item_content").outerHeight()),n=0;if(_){const e=t("#mg_lb_ins_cmd_wrap").data("data-cmd-mode");n=t(window).width()>860&&-1===t.inArray(e,["inside","ins_hidden"])?Math.round(t(window).height()-(t("#mg_lb_contents").outerHeight(!0)-t("#mg_lb_contents").height())):Math.round(t(window).height()-(t("#mg_lb_contents").outerHeight(!0)-t("#mg_lb_contents").height())/2)+25}if(t("#mg_lb_scroll_helper").css("margin-top",t("#mg_lb_wrap").scrollTop()),!_)if(t("#mg_lb_contents").outerHeight(!0)>t(window).height()){t("#mg_lb_wrap").addClass("mg_lb_has_scroll");var s=t(window).width()-t("#mg_lb_scroll_helper").outerWidth(!0);s>0&&t("#mg_top_close, .mg_side_nav_next").css("right",s)}else t("#mg_lb_wrap").removeClass("mg_lb_has_scroll"),t("#mg_top_close, .mg_side_nav_next").css("right",0);if(t(".mg_lb_video").length){if(t(".mg_item_featured .mg_video_iframe").length)var m=t("#mg_lb_video_wrap, #mg_lb_video_wrap .mg_video_iframe");else m=t(".mg_item_featured .mg_self-hosted-video .mejs-container, .mg_item_featured .mg_self-hosted-video video, .mejs-overlay");var o=Math.ceil(e.width()*mg_lb_video_h_ratio);_&&o>n&&(o=n)}if(t(".mg_mf_lb_zoom_btn").length){const e=t(".mg_zoomable_img img");t(".mg_mf_lb_zoomed").length||e.width()<e.data("w")&&e.height()<e.data("h")?t(".mg_mf_lb_zoom_btn").show():t(".mg_mf_lb_zoom_btn").hide()}if(t(window).width()<=860&&!t(".mg_lb_layout.mg_lb_lb_text").length?t(".mg_item_content").css("max-width",t(".mg_item_featured").width()):t(".mg_item_content").length&&(t(".mg_item_content")[0].style.maxWidth=""),t(".mg_lb_feat_match_txt").length&&t("#mg_lb_contents").outerHeight(!0)<t(window).height()&&t(window).width()>860&&!_){if(e.addClass("mg_lb_feat_matched"),i){var l=0;t(".mg_lb_audio").length&&(l=t(".mg_lb_audio .mg_audio_embed").length?t(".mg_lb_audio .mg_audio_embed").height():t(".mg_lb_audio_player").outerHeight(!0));var r=i[Object.keys(i)[0]];Math.round(r.h*e.width()/r.w)+l!=a&&e.find("img").not(".mg_lb_zoomed_img").css("height",a-l).addClass("mg_lb_img_fill")}if(t(".mg_lb_video").length&&(o!=a&&(o=a),m.height()!=o&&(t(".mg_item_featured .mg_video_iframe").length?m.attr("height",o):m.css("height",o).css("max-height",o).css("min-height",o))),t(".mg_lb_audio .mg_lb_spotify_wrap").length&&!e.find("img").length){if(t(".mg_item_featured").height()!=a){const e=t(".mg_lb_spotify_wrap .mg_spotify_embed");e.attr("height",a-parseInt(e.css("margin-top"),10)-parseInt(t(".mg_item_featured").css("padding-bottom"),10))}}}else{if(_||(e.removeClass("mg_lb_feat_matched"),e.find("img").not(".mg_lb_zoomed_img").removeAttr("style").removeClass("mg_lb_img_fill"),i&&e.hasClass("mg_lb_feat_matched")&&(e.removeClass("mg_lb_feat_matched"),e.find("img").not(".mg_lb_zoomed_img").removeAttr("style").removeClass("mg_lb_img_fill"))),t(".mg_lb_video").length&&m.height()!=o&&(m.is("div")?m.css("height",o).css("max-height",o).css("min-height",o):m.attr("height",o)),t(".mg_lb_spotify_wrap").length){let e="px"==t(".mg_lb_spotify_wrap").data("h-type")?parseInt(t(".mg_lb_spotify_wrap").data("h-val"),10):Math.ceil(t(".mg_lb_spotify_wrap").width()*(t(".mg_lb_spotify_wrap").data("h-val")/100));_&&e>n&&(e=n),t(".mg_lb_spotify_wrap .mg_spotify_embed").height()!=e&&t(".mg_lb_spotify_wrap .mg_spotify_embed").attr("height",e)}if(_){const e=t(".mg_lb_lcms_slider").outerHeight();let i=e>n?n:e;i-=parseInt(t(".mg_lb_lcms_slider .lcms_wrap").css("margin-bottom"),10),t(".mg_lb_lcms_slider .lcms_wrap").css("height",i)}}t(window).trigger("mg_lb_realtime_actions")}),20)},window.mg_lb_slider=function(e,i){const _=t("#"+e),a=_.data("extra-nav");"thumbs"==a&&_[0].addEventListener("lcms_ready",(function(){_.find(".lcms_nav_dots span").each((function(){const e=t(this).data("image").split(","),i=e.reduce(((t,e)=>{let[i,_]=e.trim().split(" ");return _=parseInt(_,10),_<t.width?{width:_,url:i}:t}),{width:9999,url:e[0].split(" ")[0]}).url;t(this).css("background-image","url('"+i+"')")})),_.find(".mg_lb_lcms_toggle_thumbs").on("click",(function(){_.toggleClass("mg_lb_lcms_thumbs_shown").toggleClass("mg_lb_lcms_thumbs_hidden")}))}
1)),"none"!=a&&(_[0].addEventListener("lcms_ready",(function(){lc_mouseDrag("#"+e+" .lcms_nav_dots",.3,!1,!0)})),_[0].addEventListener("lcms_changing_slide",(function(i){let _=(i.detail.new_index-3)*t("#"+e+" .lcms_nav_dots span").outerWidth(!0);_<0&&(_=0),t("#"+e+" .lcms_nav_dots")[0].scroll({behavior:"smooth",left:_})}))),_[0].addEventListener("lcms_first_populated",(function(t){mg_lcms_setup_mediael(_,0,t.detail.slide_data)})),_[0].addEventListener("lcms_changing_slide",(function(t){if(mg_lcms_setup_mediael(_,t.detail.new_index,t.detail.slide_data),lcmg.lb_slider_counter){const e=_.find(".mg_lb_lcms_counter");let i=e.text().split(" / ");i[0]=t.detail.new_index+1,e.text(i.join(" / "))}}));new lc_micro_slider(_,{slide_fx:lcmg.lb_slider_fx,slide_easing:lcmg.lb_slider_easing,nav_arrows:!0,nav_dots:"none"!=a,slideshow_cmd:_.data("ss-cmd"),autoplay:_.data("autoplay"),animation_time:parseInt(lcmg.lb_slider_fx_time,10),slideshow_time:parseInt(lcmg.lb_slider_intval,10),extra_cmd_code:i,loader_code:T,addit_classes:["mg_lcms_slider"]})},t(document).on("click",".mg_lb_zoom_in_btn",(function(e){const i=t(this).parents("#mg_lb_feat_img_wrap"),_=i.data("zoom-image"),a=!!t("#mg_lb_wrap")[0].hasAttribute("mg_mf_lb");t(".mg_lb_zoom_wrap").length||(i.prepend('<div class="mg_lb_zoom_wrap"><img src="'+_+'" class="mg_lb_zoomed_img" style="width: 100%;" /><div>'),i.find(".mg_lb_zoom_out_btn").removeClass("mg_displaynone"),lc_mouseDrag(i.find(".mg_lb_zoom_wrap")[0],.3));const n=parseInt(i.attr("data-zoom-ratio"),10)+20;i.addClass("mg_is_zooming_img").attr("data-zoom-ratio",n),i.find(".mg_lb_zoomed_img").css("width",n+"%"),a&&t("#mg_lb_feat_img_wrap").css("height",i.find(".mg_lb_zoomed_img").height())})),t(document).on("click",".mg_lb_zoom_out_btn",(function(e){const i=t(this).parents("#mg_lb_feat_img_wrap"),_=(i.data("zoom-image"),!!t("#mg_lb_wrap")[0].hasAttribute("mg_mf_lb")),a=parseInt(i.attr("data-zoom-ratio"),10)-20;a<=100?(i.find(".mg_lb_zoom_wrap").remove(),i.find(".mg_lb_zoom_out_btn").addClass("mg_displaynone"),i.removeClass("mg_is_zooming_img"),_&&t("#mg_lb_feat_img_wrap").css("height","auto")):(i.attr("data-zoom-ratio",a),i.find(".mg_lb_zoomed_img").css("width",a+"%"),_&&t("#mg_lb_feat_img_wrap").css("height",i.find(".mg_lb_zoomed_img").height()))})),t(document).on("change","#mg_woo_cart_btn_wrap [name=mg_wc_atc_variations_dd]",(function(e){var i=t(this),_=t(this).val(),a=t("#mg_woo_cart_btn_wrap .mg_wc_atc_wrap"),n=t(this).find('option[value="'+_+'"]');a.slideUp(200,(function(){t(this).empty()})),t("#mg_woo_cart_btn_wrap .mg_wc_atc_response").slideUp(200,(function(){t(this).remove()})),setTimeout((function(){if(n.data("avail")){var e=t.trim(n.data("descr"))?'<div class="mg_wc_atc_descr">'+t.trim(n.data("descr"))+"</div>":"",_=n.data("max")&&n.data("max")<=1?"":'<br/><input name="mg_wc_atc_quantity" type="number" min="'+n.data("min")+'" max="'+n.data("max")+'" step="1" value="'+n.data("min")+'" autocomplete="off" />';a.html(n.data("price")+_+'<a href="javascript:void(0)" class="mg_wc_atc_btn"><i class="fa fa-shopping-cart" aria-hidden="true"></i> '+lcmg.add_to_cart_str+"</a>"+e)}else a.html(n.data("price")+'<a href="javascript:void(0)" class="mg_wc_atc_btn mg_wc_atc_btn_disabled">'+lcmg.out_of_stock_str+"</a>");a.slideDown(200),t(".mg_lb_lcms_slider").length||(t("#mg_lb_feat_img_wrap > img").attr("src",n.data("img")),i.find("option").each((function(){(new Image).src=t(this).data("img")})))}),210)})),t(document).on("keyup","#mg_woo_cart_btn_wrap [name=mg_wc_atc_quantity]",(function(e){var i=t(this),_=parseInt(t(this).attr("min"));max=!!t(this).attr("max")&&parseInt(t(this).attr("max")),"undefined"!=typeof mg_wc_atc_q_tout&&clearTimeout(mg_wc_atc_q_tout),mg_wc_atc_q_tout=setTimeout((function(){var t=parseInt(i.val());(isNaN(t)||t<_)&&i.val(_),max&&t>max&&i.val(max)}),300)})),t(document).on("click",".mg_wc_atc_btn:not(.mg_wc_atc_btn_disabled, .mg_wc_atc_btn_acting, .mg_wc_external_link_btn)",(function(e){e.preventDefault();var i=t(this).parents("#mg_woo_cart_btn_wrap"),_=t(this);i.find(".mg_wc_atc_response").slideUp(200,(function(){t(this).remove()}));var a=i.find("[name=mg_wc_atc_quantity]").length?parseInt(i.find("[name=mg_wc_atc_quantity]").val()):1;if(isNaN(a)||!a)return alert("Quantity required"),!1;_.addClass("mg_wc_atc_btn_acting");var n={mg_wc_atc:i.data("product"),atc_quantity:a,atc_var_id:!!i.find("[name=mg_wc_atc_variations_dd]").length&&i.find("[name=mg_wc_atc_variations_dd]").val()};t.post(location.href,n,(function(t){i.append(t),i.find(".mg_wc_atc_response").slideDown(200)})).fail((function(t){console.error(t),alert("error adding product to cart")})).always((function(){_.removeClass("mg_wc_atc_btn_acting")}))}));const K=function(){if(y=decodeURIComponent(window.location.href),-1!==y.indexOf("#")){var e=y.split("#");y=e[0],x="#"+e[1]}var i={},_=y.slice(y.indexOf("?")+1).split("&");return t.each(_,(function(t,e){var _=e.split("=");i[_[0]]=_[1]})),i};window.mg_set_deeplink=function(e,i,_,a){if(!lcmg.deepl_elems.length||-1===t.inArray(e,lcmg.deepl_elems))return!1;var n=K(),s=void 0!==a&&a?_+"/"+function(t){t=(t=t.toString().replace(/^\s+|\s+$/g,"")).toLowerCase();for(var e="à áäâèéëêìÃïîòóöôùúüûñç·/_,:;",i=0;i<28;i++)t=t.replace(new RegExp(e.charAt(i),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(i));return t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}(a):_,m=i+"="+s+x;if(-1===y.indexOf("?"))history.pushState(null,null,y+"?"+m);else{if(void 0!==n[i]&&n[i]==s)return!0;var o=y.slice(0,y.indexOf("?")+1),l=0,r=!1,g=!1;t.each(n,(function(t,e){void 0!==t&&(l>0&&(o+="&"),t!=i?(o+=e?t+"="+e:t,r=!0,l++):g=!0)})),r&&(o+="&"),o+=m,w&&g&&!lcmg.full_deepl?history.replaceState(null,null,o):(history.pushState(null,null,o),w=!0)}};const X=function(e){var i=K();t.each(i,(function(i,_){if(void 0!==_){var a=i.substr(4),n=_.split("/");
1if(_=n[0],!e){if(-1!==i.indexOf("mgi_")){if(!t(".mg_grid_"+a+" .mgi_has_lb.mgi_"+_).length)return;if(t(".mg_item_content").length){if(t("#mg_lb_wrap").data("item-id")==_&&t("#mg_lb_wrap").data("grid-id")==a)return;$mg_sel_grid=t(".mg_grid_"+a).first(),t("#mg_lb_loader").addClass("mg_lb_shown");const e=!!t("#mg_lb_wrap").hasClass("mg_mf_lb");V(_,e,!0)}else t(".mg_grid_"+a+" .mgi_"+_).trigger("click")}if(-1!==i.indexOf("mgc_")){var s=t("*"==_?"#mgf_"+a+" .mgf_all":"#mgf_"+a+" .mgf_id_"+_);if(!s.not(".mg_cats_selected").length)return;s.trigger("click")}if(-1!==i.indexOf("mgp_")&&t("#mgp_"+a).length){if(void 0===d["mg_grid_"+a]||d["mg_grid_"+a]==_)return;i=d["mg_grid_"+a]>_?".mg_prev_page":".mg_next_page";t("#mgp_"+a+" "+i).not(".mg_pag_disabled").trigger("click")}}-1!==i.indexOf("mgs_")&&(void 0===e?t("#mgs_"+a+" input").val(decodeURIComponent(_)).submit():setTimeout((function(){t("#mgs_"+a+" input").submit()}),20))}})),-1===y.indexOf("mgi_")&&t(".mg_item_content").length&&t(".mg_close_lb").trigger("click"),t(".mg_grid_wrap").each((function(){var e=t(this).attr("id").substr(8),i=t(this).find(".mg_cats_selected");-1===y.indexOf("mgc_"+e)&&i.length&&!i.hasClass("mg_def_filter")&&t(this).find(".mg_def_filter").trigger("click"),-1===y.indexOf("mgp_"+e)&&t("#mgp_"+e).length&&t("#mgs_"+e+" input").val()&&mavo_to_pag_1(e,t("#mgp_"+e+" .mg_prev_page")),-1===y.indexOf("mgs_"+e)&&t("#mgs_"+e).length&&t("#mgs_"+e+" input").val()&&t("#mgs_"+e+" input").val("").submit()}))};window.mg_remove_deeplink=function(e,i){if(!lcmg.deepl_elems.length||-1===t.inArray(e,lcmg.deepl_elems))return!1;var _=K();if(void 0===_[i])return!1;var a=[];t.each(_,(function(t,e){if(void 0!==t&&t&&t!=i){var _=e?t+"="+e:t;a.push(_)}}));var n=a.length?"?":"",s=y.slice(0,y.indexOf("?"))+n+a.join("&")+x;history.pushState(null,null,s),-1===y.indexOf("mgi_")&&-1===y.indexOf("mgc_")&&-1===y.indexOf("mgp_")&&-1===y.indexOf("mgs_")&&(w=!1)},window.addEventListener("popstate",(function(t){X(),-1===y.indexOf("mgi_")&&-1===y.indexOf("mgc_")&&-1===y.indexOf("mgp_")&&-1===y.indexOf("mgs_")&&(w=!1)}));const Y=function(e){const i=t("#"+e);new lc_micro_slider(i,{slide_fx:lcmg.inl_slider_fx,slide_easing:lcmg.inl_slider_easing,nav_arrows:!0,nav_dots:!1,slideshow_cmd:i.data("ss-cmd"),autoplay:i.data("autoplay"),animation_time:parseInt(lcmg.inl_slider_fx_time,10),slideshow_time:parseInt(lcmg.inl_slider_intval,10),pause_on_video_play:!1,loader_code:T,addit_classes:["mg_lcms_slider"]}),i.data("kenburns")&&i[0].addEventListener("lcms_slide_shown",(t=>{const e=i.find('.lcms_slide[data-index="'+t.detail.slide_index+'"]');"image"==e.data("type")&&e.find(".lcms_bg").mg_kenburns()}))};window.mg_lcms_setup_mediael=function(e,i,_){const a=e.find(".lcms_slide[data-index="+i+"]");if("video"==_.type&&-1!==_.content.indexOf("<video")){const e=Math.random().toString(36).substr(2,9);a.find(".lcms_content").attr("id",e).addClass("mg_lcms_mediael mg_me_player_wrap"),mg_video_player("#"+e,!1),t(".mg_lcms_slider .mejs-mediaelement video").attr("poster",lcmg.video_poster_trick),a.on("click touchend",(function(){a.find(".mg_me_player_wrap").addClass("mg_clicked_poster")}))}},t(document).on("click touchend",".mg_lcms_iframe_icon",(function(){const e=t(this).parents(".lcms_slide"),i=e.find(".mg_video_iframe");e.addClass("mg_clicked_poster"),e.find(".mg_lcms_iframe_icon").remove(),i.attr("src",i.data("src")),i.removeAttr("data-src")})),window.mg_video_player=function(e,i){if(!t(e).length)return!1;if("function"!=typeof MediaElementPlayer)return setTimeout((function(){mg_video_player(e,i)}),50),!1;if(void 0===i)var a=["playpause","current","progress","duration","volume","fullscreen"];else a=["playpause","current","progress","volume","fullscreen"];t(e+" video").mediaelementplayer({audioVolume:"vertical",startVolume:1,features:a,success:function(a,n,s){u[e]=a,t(e).hasClass("mg_video_autoplay")&&(!_&&t(e).hasClass("mg_muted_autoplay")&&a.setMuted(!0),void 0===i?a.play():Z(e,a)),t(e).on("click touchend",(function(){t(e).addClass("mg_clicked_poster")}))}})};const Z=function(e,i){if(!t(e).parents(".mg_box").hasClass("mgi_shown"))return setTimeout((function(){Z(e,i)}),100),!0;i.play()},tt=function(e,i){let _;if("function"!=typeof MediaElementPlayer)return setTimeout((function(){tt(e,i)}),50),!1;if(t(e).find("source").length>1){if(v[e]=[],t(e).find("source").each((function(i,_){v[e].push(t(this).attr("src"))})),void 0===i)var a=["mg_prev","playpause","mg_next","current","progress","duration","mg_loop","volume","mg_tracklist"];else a=["mg_prev","playpause","mg_next","current","progress","mg_loop","volume","mg_tracklist"];_=function(e,i,_){var a="#"+t(i).parents(".mg_me_player_wrap").attr("id");u[a]=e,e.addEventListener("ended",(function(t){et(a,"next",!0)}),!1),t(a).hasClass("mg_audio_autoplay")&&e.play()}}else{a=["playpause","current","progress","duration","mg_loop","volume"];_=function(e,i,_){var a="#"+t(i).parents(".mg_me_player_wrap").attr("id");u[a]=e,t(a).hasClass("mg_audio_autoplay")&&e.play()}}t(e+" audio").mediaelementplayer({audioVolume:"vertical",startVolume:1,features:a,loop:lcmg.audio_loop,success:_,alwaysShowControls:!0}),b[e]=0},et=function(e,i,_){var a=v[e],n=b[e];if("prev"==i){var s=a[m=n?n-1:a.length-1];b[e]=m}else if("next"==i){if(!t(e+" .mejs-mg-loop-on").length&&t(e+"-tl .mg_current_track").is(":last-child"))return!1;var m;s=a[m=n==a.length-1?0:n+1];b[e]=m}else{s=a[i-1];b[e]=i-1}var o=u[e];o.pause(),o.setSrc(s),o.play(),t(e+"-tl li").removeClass("mg_current_track"),t(e+"-tl li[data-track-num="+(b[e]+1)+"]").addClass("mg_current_track")},it=function(e,i){tt(e,!0),t(e).addClass("mg_inl_audio_shown"),t(e+"-tl").length&&t(e+"-tl").show(),setTimeout((function(){(at(),void 0!==i)&&u[e].play()}),300)};t(window).on("mg_resize_grid",(function(t,e){at()})),t(document).ready((function(t){_t()}));const _t=function(){if("function"!=typeof MediaElementPlayer)return setTimeout((function(){_t()}),50),!1;MediaElementPlayer.prototype.buildmg_prev=function(e,i,_,a){t('<div class="mejs-button mejs-mg-prev" title="previous track"><button type="button"></button></div>').appendTo(i).click((function(){var i="#"+t("#"+e.id).parent().attr("id");et(i,"prev")}))},MediaElementPlayer.prototype.buildmg_next=function(e,i,_,a){t('<div class="mejs-button mejs-mg-next" title="previous track"><button type="button"></button></div>').appendTo(i).click((function(){var i="#"+t("#"+e.id).parent().attr("id");et(i,"next")}))},MediaElementPlayer.prototype.buildmg_tracklist=function(e,i,_,a){var n=t('<div class="mejs-button mejs-mg-tracklist-button '+(t("#"+e.id).parent().hasClass("mg_show_tracklist")?"mejs-mg-tracklist-on":"mejs-mg-tracklist-off")+'" title="'+(t("#"+e.id).parent().hasClass("mg_show_tracklist")?"hide":"show")+' tracklist"><button type="button"></button></div>').appendTo(i).click((function(){t("#"+e.id).find(".mejs-mg-tracklist-on").length?(t("#"+e.id).parents(".mg_media_wrap").find(".mg_audio_tracklist").removeClass("mg_iat_shown"),n.removeClass("mejs-mg-tracklist-on").addClass("mejs-mg-tracklist-off").attr("title","show tracklist")):(t("#"+e.id).parents(".mg_media_wrap").find(".mg_audio_tracklist").addClass("mg_iat_shown"),n.removeClass("mejs-mg-tracklist-off").addClass("mejs-mg-tracklist-on").attr("title","hide tracklist"))}))},MediaElementPlayer.prototype.buildmg_loop=function(e,i,_,a){var n=t('<div class="mejs-button mejs-mg-loop-button '+(e.options.loop?"mejs-mg-loop-on":"mejs-mg-loop-off")+'" title="'+(e.options.loop?"disable":"enable")+' loop"><button type="button"></button></div>').appendTo(i).click((function(){e.options.loop=!e.options.loop,e.options.loop?n.removeClass("mejs-mg-loop-off").addClass("mejs-mg-loop-on").attr("title","disable loop"):n.removeClass("mejs-mg-loop-on").addClass("mejs-mg-loop-off").attr("title","enable loop")}))}};t(document).ready((function(e){t(document).on("click",".mg_audio_tracklist li:not(.mg_current_track)",(function(){_=!0;var e="#"+t(this).parents("ol").attr("id").replace("-tl",""),i=t(this).attr("rel");et(e,i)}))})),window.mg_pause_inl_players=function(e){var i=t("#"+e+" .mg-muuri-hidden, #"+e+" .mgi_low_opacity_f");i.find(".mg_sh_inl_video, .mg_inl_audio_player").each((function(){void 0!==u&&void 0!==u["#"+this.id]&&u["#"+this.id].pause()})),i.find(".mg_inl_txt_video_bg").each((function(){t(this)[0].pause()}
1)),i.find(".mg_inl_slider_wrap .lcms_wrap").each((function(){lcms_stop(t("#"+t(this).parents(".mg_inl_slider_wrap").attr("id"))[0])}))};const at=function(){t(".mg_inl_audio").not(".mg-muuri-hidden").each((function(){var e=t(this).find(".mg_inl_audio_player").find(".mejs-time, .mejs-time-rail");t(this).find(".mg_media_wrap").width()>=250?e.show():e.hide()}))};if(t("body.mg_no_rclick").length&&t(document).on("contextmenu",".mg_grid_wrap *, #mg_lb_wrap *, #mg_wp_video_wrap .wp-video *, #mg_lb_contents img, #mg_lb_contents .wp-video *",(function(t){t.preventDefault()})),"custom"==lcmg.touch_ol_behav&&z){t("body").addClass("mg_cust_touch_ol_behav");let e=0;t(document).on("touchstart",".mg_box",(function(i){t(this).addClass("mg_ctob_show");const _=new Date;e=_.getTime()})).on("touchend",".mg_box",(function(i){t(this).removeClass("mg_ctob_show"),t(this).parents(".mg_grid_wrap").trigger("tap");(new Date).getTime()-e<250&&t(this).hasClass("mgi_has_lb")&&(t(this).find("a.mg_box_inner").length?window.open(t(this).find("a.mg_box_inner").attr("href"),t(this).find("a.mg_box_inner").attr("target")):t(this).trigger("click"))}))}t.fn.mg_kenburns=function(){this.each((function(){const e=t(this);e.addClass("mg_kenburnsed_item");let i=null;const _=function(){const t=["top","bottom"],i=["left","right"],a=t[Math.floor(Math.random()*t.length)],n=i[Math.floor(Math.random()*i.length)];""==a+n&&_();let s={top:0,right:0,bottom:0,left:0};s[a]="-20%",s[n]="-20%",e[0].animate(s,{duration:parseInt(lcmg.kenburns_timing,10),iterations:1,fill:"forwards"})};i&&clearInterval(i),i=setInterval((()=>{_()}),lcmg.kenburns_timing),_()}))};const nt=function(e){var i=t("#"+e+" .mg_inl_txt_rb_txt_resize .mg_inl_txt_contents").find("p, b, div, span, strong, em, i, h6, h5, h4, h3, h2, h1");t("#"+e+" .mg_inl_txt_wrap").removeClass("mg_it_resized"),i.each((function(){void 0===t(this).data("orig-size")&&(t(this).data("orig-size",t(this).css("font-size")),t(this).data("orig-lheight",t(this).css("line-height"))),t(this).removeClass("mg_min_reached mg_inl_txt_top_margin_fix mg_inl_txt_btm_margin_fix mg_inl_txt_top_padding_fix mg_inl_txt_btm_padding_fix"),t(this).css("font-size",t(this).data("orig-size")),t(this).css("line-height",t(this).data("orig-lheight"))})),t("#"+e+" .mg_inl_txt_contents").each((function(){if(!n[e]&&!t(this).parents(".mg_box").hasClass("mgis_h_auto")||n[e]&&!t(this).parents(".mg_box").hasClass("mgis_m_h_auto")){var _=t(this).parents(".mg_media_wrap").height();if(_<t(this).outerHeight()){t("#"+e+" .mg_inl_txt_wrap").addClass("mg_it_resized");for(var a=0;_<t(this).outerHeight()&&a<100;){if(0==a)i.each((function(e,i){parseInt(t(this).css("margin-top"))>10&&t(this).addClass("mg_inl_txt_top_margin_fix"),parseInt(t(this).css("margin-bottom"))>10&&t(this).addClass("mg_inl_txt_btm_margin_fix"),parseInt(t(this).css("padding-top"))>10&&t(this).addClass("mg_inl_txt_top_padding_fix"),parseInt(t(this).css("padding-bottom"))>10&&t(this).addClass("mg_inl_txt_btm_padding_fix")}));else if(i.each((function(e,i){var _=parseFloat(t(this).css("font-size"))-1;_<11&&(_=11);var a=parseInt(t(this).css("line-height"))-1;a<14&&(a=14),t(this).css("font-size",_).css("line-height",a+"px"),11==_&&14==a&&t(this).addClass("mg_min_reached")})),t("#"+e+" .mg_inl_txt_contents .mg_min_reached").length==i.length)return!1;a++}}}}))},st=function(e){"WebkitAppearance"in document.documentElement.style&&(t("#mg_wbe_fix_"+e).remove(),setTimeout((function(){t("head").append('<style type="text/css" id="mg_wbe_fix_'+e+'">.mg_'+e+" .mg_box_inner {-webkit-font-smoothing: subpixel-antialiased;}</style>")}),600))}}(jQuery); 2 3 4 5 6// LC Mouse Drag v1.0.1 7(function(){if("function"==typeof window.lc_mouseDrag)return!0;window.lc_mouseDrag=function(p,d,f,g){d=void 0===d?.3:d;f=void 0===f?!1:f;g=void 0===g?!1:g;if(!p)return console.error("You must provide a valid selector or DOM object as first argument");var u=function(a){var e=f?!1:!0,q=g?!1:!0,h=!1,r=0,t=0,k=0,l=0,m=null;a.addEventListener("mousedown",function(b){b.preventDefault();h=!0;k=parseInt(a.scrollTop,10);l=parseInt(a.scrollLeft,10);r=b.clientY;t=b.clientX});a.addEventListener("mouseup",function(b){if(!d)return!0; 8b=a.scrollTop;b+=-1*(k-b)*d;var c=a.scrollLeft;c+=-1*(l-c)*d;var n={behavior:"smooth"};q&&(n.top=b);
8e&&(n.left=c);m=a.scroll(n)});document.body.addEventListener("mouseup",function(b){h=!1});a.addEventListener("mousemove",function(b){if(!0===h){m&&m.pause();var c={behavior:"auto"};q&&(c.top=k+(r-b.clientY));e&&(c.left=l+(t-b.clientX));a.scroll(c)}})};(function(a){if("string"!=typeof a)return a instanceof Element?[a]:Object.values(a);(a.match(/(#[0-9][^\s:,]*)/g)||[]).forEach(function(e){a=a.replace(e, 9'[id="'+e.replace("#","")+'"]')});return document.querySelectorAll(a)})(p).forEach(function(a){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return document.body.classList.add("lc_mousedrag_is_mobile"),!0;u(a)})}})(); 10 11 12 13// LC Swiper v1.0.1 14(function(){if("function"==typeof window.lc_swiper)return!0;window.lc_swiper=function(e,f){if(!e)return console.error("You must provide a valid selector or DOM object as first argument");if("function"!=typeof f)return console.error("please use a valid callback");this.$target_el=null;this.$elements=[];this.uniqid=Math.random().toString(36).substr(2,9);this.get_elems=function(a){if("string"!=typeof a)return a instanceof Element?[a]:Object.values(a);(a.match(/(#[0-9][^\s:,]*)/g)||[]).forEach(function(b){a= 15a.replace(b,'[id="'+b.replace("#","")+'"]')});return document.querySelectorAll(a)};this.init=function(){var a=this;this.$elements=this.get_elems(e);this.$elements.forEach(function(b){"undefined"==typeof b.lcswiper_cb&&(b.lcswiper_cb={});b.lcswiper_cb[a.uniqid]=f;b.addEventListener("touchstart",function(c){a.$target_el=c.target;
15b.lcswiper_xDown=c.touches[0].clientX;b.lcswiper_yDown=c.touches[0].clientY});b.addEventListener("touchend",function(c){a.handleTouchDiff(b,c)})})};this.handleTouchDiff=function(a, 16b){if("undefined"!=typeof a.lcswiper_xDown&&a.lcswiper_xDown&&"undefined"!=typeof a.lcswiper_yDown&&a.lcswiper_yDown&&"undefined"!=typeof a.lcswiper_cb[this.uniqid]){var c=b.changedTouches[0].clientY,d=parseInt(a.lcswiper_xDown-b.changedTouches[0].clientX,10);c=parseInt(a.lcswiper_yDown-c,10);0===Math.abs(d)&&0===Math.abs(c)||a.lcswiper_cb[this.uniqid].call(this,{up:0<c?c:0,right:0>d?Math.abs(d):0,down:0>c?Math.abs(c):0,left:0<d?d:0},a,this.$target_el);a.lcswiper_xDown=0;a.lcswiper_yDown=0}};this.destroy= 17function(a){var b=this;(a?this.get_elems(a):this.$elements).forEach(function(c){"undefined"!=typeof c.lcswiper_cb&&"undefined"!=typeof c.lcswiper_cb[b.uniqid]&&delete c.lcswiper_cb[b.uniqid]})};this.init();return this}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.