!function(e){"use strict";e(function(){e(".wprev-slider").each(function(){if("yes"==e(this).attr("data-onemobil")&&(/Mobi|Android/i.test(navigator.userAgent)||600>e(window).width())){var t=e(this).children("ul");if(t.length>0){var r=t.find(".w3_wprs-col"),i=r.get(),s=r.parent().attr("class"),o=r.attr("class");if(void 0!==o){o=o.replace(/[a-z]\d\b/g,"l12");var n,a="";for(n=0;n
'+i[n].innerHTML+"
":a+='
  • '+i[n].innerHTML+"
  • ";void 0!==e(this).find(".wprevpro_load_more_div")[0]&&(a+="
  • "+e(this).find(".wprevpro_load_more_div")[0].outerHTML+"
  • "),a+="",t.html(a)}}}});var t,r,i={},s={},o={},n={},a={};function p(t){if(e(t).find(".divwprsrdmore").length){if(!e(t).is(":visible"))return setTimeout(function(){p(t)},1e3),!1;e(t).find(".readmoretextdiv").each(function(){if(e(this).next(".divwprsrdmore").find(".wprs_rd_less").is(":hidden")){var t=e(this).attr("data-lines"),r=l(this),s=e(this).closest(".wprevpro").attr("id");i[s]=parseInt(t)*r,this.scrollHeight<=this.clientHeight+4?e(this).next(".divwprsrdmore").hide():(e(this).next(".divwprsrdmore").css("opacity",1),e(this).next(".divwprsrdmore").show()),this.clientHeight>i[s]?(e(this).css("max-height",this.clientHeight),i[s]=this.clientHeight):e(this).css("max-height",i[s])}})}}function l(e){let t=window.getComputedStyle(e),r=t.getPropertyValue("line-height"),i;return i="normal"===r?1.4*parseFloat(t.getPropertyValue("font-size")):parseFloat(r)}function d(t){var r=e(t).parent().prev(".readmoretextdiv");e(t).attr("data-revid");var p=e(t).closest(".wprevpro").attr("id");if(r.css("max-height",i[p]),e(t).hide("fast"),e(t).prev(".wprs_rd_more").show("fast"),!e(t).closest(".wprevpro").hasClass("revnotsameheight")||e(t).closest(".wprevpro").hasClass("wprs_unslider-fade")||e(t).closest(".wprevpro").hasClass("animateheight")){var p=e(t).closest(".wprevpro").attr("id"),l=p+"-"+e(t).closest(".w3_wprs-col").index();setTimeout(function(){e(t).closest(".indrevdiv").css("height",s[l])},500),e(t).closest(".wprev-slider").animate({height:o[l]},500),e(t).closest(".wprev-slider-widget").animate({height:n[l]},500)}setTimeout(function(){r.addClass("indrevlineclamp")},500);var d=e(t).closest(".wprevgoslick").attr("data-slickwprev");d&&!0==JSON.parse(d).adaptiveHeight&&e(t).closest(".slickwprev-list").animate({height:prevslickreadmoreheight},500);var v=e(t).closest(".wprevpro").attr("id");if(void 0!==a[v])var c=1,h=setInterval(function(){a[v].layout(),c<=20?c++:clearInterval(h)},25)}function v(t){var r,i,s,o=!1;if(""==t)var n=e(".wprevpro_form");else var n=e("#wprevpro_div_form_"+t);var a=n.find("#wprev_Formonesub").val(),p=n.find("#wprevpro_fid").val(),l=n.find("#wprev_postid").val(),d="";if(("nop"==a||"nof"==a)&&JSON.parse(localStorage.getItem("wprevformses")||"[]").forEach(function(e,t){"yes"==e.submitted&&("nop"==a&&e.pid==l&&(o=!0,d=e.unbrid),"nof"==a&&e.fid==p&&(o=!0,d=e.unbrid))}),o){n.find(".wprevpro_btn_show_form").length||(n.find(".wprevpro_form_submitone_msg").show(),n.find(".wprevpro_form_inner").hide()),r=d,i=n,s={action:"wprp_check_unbrid",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,cache:!1,processData:!1,contentType:!1,unbrid:r},jQuery.post(wprevpublicjs_script_vars.wpfb_ajaxurl,s,function(e){"notfound"==e&&(i.find(".wprevpro_form_submitone_msg").hide(),i.find(".wprevpro_form_inner").show())})}if(console.log("autopop"),!o&&(console.log("autopop1"),"yes"==n.attr("autopopup")||"yes"==n.attr("autoclick"))){console.log("autopop2"),n.find(".wprevpro_form_submitone_msg").hide();var v=n.find(".wprevmodal_modal");v.show(),v.css("visibility","visible"),n.find(".wprevpro_form_inner").show()}return o}function c(e,t,r){var t=wprevpublicjs_script_vars.page_id,i=JSON.parse(localStorage.getItem("wprevformses")||"[]");i.push({fid:e,pid:t,submitted:"yes",unbrid:r}),localStorage.setItem("wprevformses",JSON.stringify(i))}function h(e,t){!0==t?(e.hide(),e.next(".wprev_loader").show()):(e.show(),e.next(".wprev_loader").hide())}function w(t){e(t).trigger("reset")}function f(t){t.length&&setTimeout(function(){t.next().find(".wprevpro_form_inner").toggle(1e3),e("html, body").animate({scrollTop:e(".wprevpro_btn_show_form").offset().top-200},1e3)},1500)}function u(e,t){var r=t.closest(".wprevpro-rating").find("#wppro_fvoteup"),i=t.closest(".wprevpro-rating").find("#wppro_fvotedown");"up"==e?r.hasClass("svg-wprsp-thumbs-o-up")?(r.removeClass("svg-wprsp-thumbs-o-up"),r.addClass("svg-wprsp-thumbs-up"),i.removeClass("svg-wprsp-thumbs-down"),i.addClass("svg-wprsp-thumbs-o-down")):(r.hasClass("svg-wprsp-smile-o")||r.hasClass(" svg-smileselect"))&&(r.addClass("svg-smileselect"),i.removeClass("svg-smileselect")):"down"==e&&(r.hasClass("svg-wprsp-thumbs-up")||r.hasClass("svg-wprsp-thumbs-o-up")?(r.addClass("svg-wprsp-thumbs-o-up"),r.removeClass("svg-wprsp-thumbs-up"),i.addClass("svg-wprsp-thumbs-down"),i.removeClass("svg-wprsp-thumbs-o-down")):(i.hasClass("svg-wprsp-frown-o")||i.hasClass(" svg-smileselect"))&&(i.addClass("svg-smileselect"),r.removeClass("svg-smileselect")))}function g(t,r){var i=e(t).closest("form").find("#wprev_globshowval").val(),s=e(t).closest("form").find("#wprev_globhiderest").val();""!=i&&(r>i?(e(t).closest("form").find(".wprevpro-field-social_links").removeClass("wprevhideme"),e(t).closest("form").find(".wprevpro-field-social_links").hide(),e(t).closest("form").find(".wprevpro-field-social_links").show("2000"),"hide"==s&&e(t).closest("form").find(".rofform").hide()):(e(t).closest("form").find(".wprevpro-field-social_links").hide("2000"),"hide"==s&&e(t).closest("form").find(".rofform").show("2000")))}e(".indrevtextscroll").each(function(){var t=e(this).attr("data-lines"),r=e(this).attr("data-ahover"),s=l(this),o=e(this).closest(".wprevpro").attr("id");if(i[o]=parseInt(t)*s,e(this).css("max-height",i[o]),"yes"==r){var n,a=e(this);a.prop("scrollHeight"),e(this).on("mouseenter",function(){n=window.setInterval(function(){a.scrollTop(a.scrollTop()+1)},70)}).on("mouseleave",function(){n&&(window.clearInterval(n),n=!1)})}}),e(".wprev-no-slider").each(function(){p(this)}),e(".wprev_pro_slideout_outerdiv").each(function(){setTimeout(()=>{p(this)},500)}),e("body").on("click",".wprs_rd_more",function(t){t.preventDefault(),function t(r){var i=e(r).parent().prev(".readmoretextdiv"),p=i.prop("scrollHeight"),l=e(r).closest(".outerrevdiv").height(),d=e(r).closest(".wprevpro").height(),v=p-i.prop("clientHeight"),c=l+v,h=v+d;if(!e(r).closest(".wprevpro").hasClass("revnotsameheight")||e(r).closest(".wprevpro").hasClass("wprs_unslider-fade")||e(r).closest(".wprevpro").hasClass("animateheight")){var w=e(r).closest(".wprevpro").attr("id")+"-"+e(r).closest(".w3_wprs-col").index();s[w]=e(r).closest(".indrevdiv").css("height"),o[w]=e(r).closest(".wprev-slider").css("height"),n[w]=e(r).closest(".wprev-slider-widget").css("height"),e(r).closest(".indrevdiv").css("height","auto"),e(r).closest(".indrevdiv").parent().css("height","auto"),d1)e(r).closest(".slickwprev-list").css("height","auto");else{var m=e(r).closest(".slickwprev-list").height();m"),e("body").find("#wprevrdmoremodelcontainer").append(r),r.show()}),e("body").on("click",".wprevmodal_modal_rdmore",function(t){e(t.target).closest(".wprevmodal_modal_rdmore-content").length||e(this).hide()}),e("body").on("click",".wprevmodal_rdmore_close",function(t){e(this).closest(".wprevmodal_modal_rdmore").hide()}),v(""),!function t(){var r=e(".wprevpro_form").find("#wprev_ipFormInput");"yes"==r.val()&&fetch("https://api.ipify.org?format=json").then(e=>e.json()).then(e=>{let t=e.ip;r.val(t)}).catch(e=>{console.error("Error getting IP Address: ${err}")});let i=new URLSearchParams(window.location.search);if(i.has("wrtg")){let s=i.get("wrtg");e(".wprevpro_form").find("#wprev_urltag").val(s)}}(),document.querySelectorAll(".wprevpro_multiselect").forEach(e=>{new WPRevProCustomSelect(e)}),e(".bnrevuspopform").on("click",function(t){var r=e(this).attr("data-formid"),i=v(r);e("#wprevpro_div_form_"+r).find(".wprevpro_form_msg").hide(),e("#wprevmodal_myModal_"+r).css("visibility","visible"),i?e("#wprevpro_div_form_"+r).find(".wprevpro_form_submitone_msg").show():e("#wprevpro_div_form_inner_"+r).show()}),e(".wprevpro_btn_show_form").on("click",function(t){var r=e(this).attr("formid"),i=v(r);(e(this).closest("#wprevpro_div_form_"+r).find(".wprevpro_form_msg").hide(),"yes"==e(this).attr("ispopup"))?(e("#wprevmodal_myModal_"+r).css("visibility","visible"),i?e(this).closest("#wprevpro_div_form_"+r).find(".wprevpro_form_submitone_msg").show():e("#wprevpro_div_form_inner_"+r).show()):("yes"==e(this).closest("#wprevpro_div_form_"+r).attr("autopopup")&&(e(this).closest("#wprevpro_div_form_"+r).find(".wprevmodal_modal").unbind(),e(this).closest("#wprevpro_div_form_"+r).find(".wprevmodal_modal").show(),e(this).closest("#wprevpro_div_form_"+r).find(".wprevmodal_modal").removeClass("wprevmodal_modal"),e(this).closest("#wprevpro_div_form_"+r).find(".wprevmodal_modal-content").removeClass("wprevmodal_modal-content"),e(this).closest("#wprevpro_div_form_"+r).find(".wprevmodal_close").html("")),i?e(this).closest("#wprevpro_div_form_"+r).find(".wprevpro_form_submitone_msg").toggle(1e3):(e(this).next().find(".wprev_review_form").show(),e(this).next().find(".wprevpro_form_inner").toggle(1e3)))}),e(".wprevmodal_modal").on("click",function(t){e(t.target).closest(".wprevmodal_modal-content").length||(e(this).find(".wprevpro_form_inner").hide(),e(this).css("visibility","hidden"))}),e(".wprevmodal_close").on("click",function(t){e(this).closest(".wprevmodal_modal").find(".wprevpro_form_inner").hide(),e(this).closest(".wprevmodal_modal").css("visibility","hidden")}),e(".wprev_review_form").on("submit",function(t){var r="";if("yes"==(r=e(this).find("#wprevpro_rating_req").val())){var i=e("input[name=wprevpro_review_rating]:checked").val();if(!e("input[name=wprevpro_review_rating]:checked").length||"0"==i)return alert("Please select a rating."),e(".wprevpro-rating").focus(),t.preventDefault(),!1}e(this).find(".btnwprevsubmit").hide(),e(this).find(".btnwprevsubmit").closest(".wprevform-field").next(".wprev_loader").show();var s=e(this).find("#wprevpro_fid").val(),o=e(this).find("#wprev_postid").val(),n=e(this).find("#wprev_unique_id").val();c(s,o,n)}),e(".wprevpro-rating").on("click",function(t){e(this).closest(".wprevpro-rating-wrapper").hasClass("hideafterclick")&&e(this).closest(".wprevpro-field-review_rating").hide()}),e(".wprevpro-rating-radio-lbl").on("click",function(){var t=e(this).prev().val(),r=e(this);g(r,t)}),e(".wprevpro_form").on("click","#wppro_fvoteup",function(){var t=e(this);e("#wprevpro_review_rating-star5").prop("checked",!0),u("up",t),g(t,5)}),e(".wprevpro_form").on("click","#wppro_fvotedown",function(){var t=e(this);e("#wprevpro_review_rating-star2").prop("checked",!0),u("down",t),g(t,2)}),e(".wprevpro_selpage").on("change",function(t){var r=e(this).find("option:selected").text();e(this).next(".wprevpro_selpagename").val(r)}),e(".wprevpro_selpage").on("click",function(t){var r=e(this).find("option:selected").text();e(this).next(".wprevpro_selpagename").val(r)}),e("#wprevpro_submit_ajax").on("click",function(t){var r=e(this).closest("form"),i=e(this).closest(".wprevpro_form"),s=i.find(".wprevpro_form_msg"),o=r.find(".wprevpro_submit"),n=i.find(".wprevpro_btn_show_form"),a=r.find("#wprevpro_fid").val(),p=r.find("#wprev_postid").val(),l=r.find("#wprev_unique_id").val();h(o,!0),s.removeClass("wprevpro_submitsuccess"),s.removeClass("wprevpro_submiterror");var d=r.find("#wprevpro_review_avatar"),v=!1,u=d.val(),g=!!window.FormData;if(""!=u&&!1==g)return!1;if(t.preventDefault(),!1==g&&(v=!0),!0==v){var m=r.serialize(),b={action:"wprp_save_review",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,cache:!1,processData:!1,contentType:!1,data:m};jQuery.post(wprevpublicjs_script_vars.wpfb_ajaxurl,b,function(t){var i=e.parseJSON(t);"no"==i.error?(h(o,!1),s.html(i.successmsg),s.addClass("wprevpro_submitsuccess"),s.show("slow"),w(r),f(n),c(a,p,l)):(h(o,!1),s.html(i.dbmsg),s.addClass("wprevpro_submiterror"),s.show("slow"))}).fail(function(){h(o,!1),s.html(jsondata.dbmsg),s.addClass("wprevpro_submiterror"),s.show("slow"),h(o,!1)})}else{var $=new FormData(r[0]);$.append("action","wprp_save_review"),$.append("wpfb_nonce",wprevpublicjs_script_vars.wpfb_nonce),e.ajax({url:wprevpublicjs_script_vars.wpfb_ajaxurl,action:"wprp_save_review",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,type:"POST",data:$,contentType:!1,processData:!1,success:function(t){console.log(t);var i=e.parseJSON(t);"no"==i.error?(h(o,!1),s.html(i.successmsg),s.addClass("wprevpro_submitsuccess"),s.show("slow"),w(r),f(n),c(a,p,l)):(h(o,!1),s.html(i.dbmsg),s.addClass("wprevpro_submiterror"),s.show("slow"))},error:function(t){console.log(t);var r=e.parseJSON(t);console.log(r),h(o,!1),s.html(r.dbmsg),s.addClass("wprevpro_submiterror"),s.show("slow")}})}}),e(".wprevpro_badge_container").on("click",function(t){var r=e(this).attr("data-onc"),i=e(this).attr("data-oncurl"),s=e(this).attr("data-oncurltarget"),o=e(this).attr("data-badgeid");if(e(".wprevpro_slideout_container").each(function(){var t=e(this).parent().attr("id"),r=e(this).attr("id");Number(r=r.replace("wprevpro_badge_slide_",""))!=Number(o)&&e(this).is(":visible")&&"preview_badge_outer"!=t&&e(this).css("visibility","hidden")}),!e(t.target).closest(".wprs_unslider-arrow").length&&!e(t.target).closest(".wprs_rd_less").length&&!e(t.target).closest(".wprs_rd_more").length&&!e(t.target).closest(".wprevpro_btn_show_rdpop").length&&!e(t.target).closest(".wprs_unslider-nav").length&&!e(t.target).closest("a").length&&!e(t.target).closest(".wprevpro_load_more_btn").length&&!e(t.target).closest(".wprev_pro_float_outerdiv-close").length&&!e(t.target).hasClass("slickwprev-arrow")&&!e(t.target).closest(".slickwprev-dots").length){if("url"==r){if(""!=i){if("same"==s)var n=window.open(i,"_self");else var n=window.open(i,"_blank");n?n.focus():alert("Please allow popups for this website")}else alert("Please enter a Link to URL value.");return!1}if("slideout"==r){"visible"===e("#wprevpro_badge_slide_"+o).css("visibility")?e("#wprevpro_badge_slide_"+o).css("visibility","hidden"):e("#wprevpro_badge_slide_"+o).css("visibility","visible");var a=e("#wprevpro_badge_slide_"+o).find(".wprevpro");if(!a.hasClass("revnotsameheight")){var p=a.find("div");a.hasClass("wprev-no-slider")?M(p):a.hasClass("wprev-slider")&&G(p)}return a.hasClass("wprev-slick-slider")&&(a.find(".wprevgoslick").slickwprev("unslickwprev"),D(a.find(".wprevgoslick"))),L(),!1}if("popup"==r){"visible"===e("#wprevpro_badge_pop_"+o).css("visibility")?e("#wprevpro_badge_pop_"+o).css("visibility","hidden"):e("#wprevpro_badge_pop_"+o).css("visibility","visible"),e("#wprevpro_badge_pop_"+o).find(".wprs_unslider").css("margin-left","25px"),e("#wprevpro_badge_pop_"+o).find(".wprs_unslider").css("margin-right","25px"),e("#wprevpro_badge_pop_"+o).find(".wprev-slider").css("height","unset"),e("#wprevpro_badge_pop_"+o).find(".wprevgoslick").css("margin-left","12px"),e("#wprevpro_badge_pop_"+o).find(".wprevgoslick").css("margin-right","12px");var a=e("#wprevpro_badge_pop_"+o).find(".wprevpro");if(!a.hasClass("revnotsameheight")){var p=a.find("div");a.hasClass("wprev-no-slider")?M(p):a.hasClass("wprev-slider")&&G(p)}return a.hasClass("wprev-slick-slider")&&(a.find(".wprevgoslick").slickwprev("unslickwprev"),D(a.find(".wprevgoslick"))),L(),!1}}}),e(document).on("click",function(t){!(!e(t.target).closest(".wprevpro_slideout_container").length&&!e(t.target).closest(".updatesliderinput").length&&!e(t.target).closest(".wprevpro_badge").length&&!e(t.target).closest(".lity").length&&e(".wprevpro_slideout_container").is(":visible"))||e(".wprevpro_slideout_container").css("visibility","hidden")}),e(".wprevslideout_close").on("click",function(t){e(this).closest(".wprevpro_slideout_container").css("visibility","hidden")}),e("#preview_badge_outer").on("click",".wprevpro_load_more_btn",function(e){T(this,"")});var m=1,b={},$={};e(".wppro_pagination").each(function(t){var r=Number(e(this).attr("data-tid"));if("yes"==e(this).attr("data-ismasonry"))var i=e(this).closest("div.wprevpro").find("div.wprs_masonry_js").clone();else var i=e(this).closest("div.wprevpro").clone();i.find(".wppro_pagination").remove();var s=i.html();b["tid"+r+"p1t"]=s});var y=null;function _(t){return e("#wprev_banner_id_"+t).find(".wprev_banner_top").attr("data-rtype",""),e("#wprev_banner_id_"+t).find(".wprev_banner_top_source").removeClass("cursel"),e("#wprev_search_sort_bar_id_"+t).find(".wprevpro_rtypes_div").attr("data-rtype"),e("#wprev_search_sort_bar_id_"+t).find(".wprevpro_stype_btn").removeClass("current"),!0}function x(t,i){if("start"==i){let s=!1;t.addClass("wprevflashingimage"),r=setInterval(()=>{s?t.removeClass("opaci2"):t.addClass("opaci2"),s=!s},200)}else clearInterval(r),setTimeout(function(){e(".wprevflashingimage").removeClass("opaci2"),e(".wprevflashingimage").removeClass("wprevflashingimage")},100)}function k(t,r){if("sli"==r.attr("data-slideshow")){var i=r.parent().prev(".wprevgoslick"),s=r;return s.attr("data-callnum","0"),s.attr("data-notinstring",""),T(s,i,"yes"),!1}if("yes"==r.attr("data-slideshow")){var s=r;if(s.attr("data-callnum","0"),s.attr("data-notinstring",""),s.attr("hideldbtn",""),s.parent().prev().length>0){var o=s.parent(".wprevpro_load_more_div"),n=s.closest("ul");o.detach(),n.children("li").last().append(o)}return T(s,"","yes"),!1}(t=">"==t?1+Number(m):"<"==t?Number(m)-1:Number(t))<2&&(t=1);var a=e(r).attr("data-perrow"),p=e(r).attr("data-nrows"),l=e(r).attr("data-tid"),d=e(r).attr("data-notinstring"),v=Number(e(r).attr("data-cpostid")),c=e(r).attr("data-shortcodepageid"),h=e(r).attr("data-shortcodelang"),w=e(r).attr("data-shortcodetag"),f=e(r).attr("data-ismasonry"),u=e(r).attr("data-revsameheight"),g=e(r).attr("data-lastslidenum"),$=e(r).attr("data-totalreviewsindb"),y=e(r).find(".wprppagination_loading_image"),_=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find(".wprev_search").val();""!=e(".wprevpro_stag.current").text()&&(_=e(".wprevpro_stag.current").text());var k=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_sort").val(),S=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_rating").val(),M=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_source").val(),G=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_langcodes").val(),H="";e("#wprev_search_sort_bar_id_"+l).find(".wprevpro_rtypes_div").attr("data-rtype")&&(H=e("#wprev_search_sort_bar_id_"+l).find(".wprevpro_rtypes_div").attr("data-rtype")),e("#wprev_banner_id_"+l).find(".wprev_banner_top").attr("data-rtype")&&(H=e("#wprev_banner_id_"+l).find(".wprev_banner_top").attr("data-rtype")),null==_&&(_=""),null==k&&(k=""),null==S&&(S=""),null==M&&(M=""),null==G&&(G=""),null==H&&(H=""),console.log(M);var X={action:"wprp_load_more_revs",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,cache:!1,processData:!1,contentType:!1,perrow:a,nrows:p,callnum:"",clickedpnum:t,notinstring:d,revid:l,onereview:"no",cpostid:v,shortcodepageid:c,shortcodelang:h,shortcodetag:w,textsearch:_,textsort:k,textrating:S,textsource:M,textlang:G,textrtype:H},P=!1,j="tid"+X.revid+"p"+X.clickedpnum+"t"+X.textsearch+X.textsort+X.textrating+X.textlang+X.textrtype+X.textsource,A=j+"-lcpn",L=j+"-lsn",z=j+"-ttrindb",I=j+"-trevppage";if(void 0!==b[j]&&(""==_||null==_)&&(P=!0),S||(S="unset"),G||(G="unset"),y.length||(r=r.parent(".wprevpro_load_more_div")),P){var E={};E.innerhtml=b[j],b[A]?E.clickedpnum=b[A]:E.clickedpnum=X.clickedpnum,b[L]?E.lastslidenum=b[L]:E.lastslidenum=g,b[z]?E.totalreviewsindb=b[z]:E.totalreviewsindb=$,b[I]?E.reviewsperpage=b[I]:E.reviewsperpage=Number(a)*Number(p),E.newnotinstring=b[j+"-notinstr"],C(X,y,f,u,r,E)}else!function t(r,i,s,o,n){jQuery.post(wprevpublicjs_script_vars.wpfb_ajaxurl,r,function(t){var a=!0,p=t.lastIndexOf("}");t=t.substring(0,p+1);try{var l=e.parseJSON(t)}catch(d){console.log("jsonparse error with return html"),a=!1,i.hide()}t&&""!=t&&a&&(e(n).attr("data-notinstring",l.newnotinstring),C(r,i,s,o,n,l))}).fail(function(){console.log("fail"),i.hide();var t=e(".wprevflashingimage");x(t,"stop")})}(X,y,f,u,r)}function C(t,r,i,s,o,n){var a="";if(""!=n){var l=n.innerhtml,d=n.newnotinstring;e(o).find(".wprevpro_load_more_btn").attr("data-notinstring",d);var v="tid"+t.revid+"p"+t.clickedpnum+"t"+t.textsearch+t.textsort+t.textrating+t.textlang+t.textrtype,c=v+"-notinstr",h=v+"-lcpn",w=v+"-lsn",f=v+"-ttrindb",u=v+"-trevppage";b[v]=l,b[c]=d,b[h]=n.clickedpnum,b[w]=n.lastslidenum,b[f]=n.totalreviewsindb,b[u]=n.reviewsperpage,e(".wprppagination_loading_image_search").hide(),e(".wprppagination_loading_image_tag").hide(),e(".wprppagination_rtypes_loading_img").hide();var g=e(o).closest(".wprevpro");"yes"==i?e(o).prevAll("div.wprs_masonry_js").fadeOut(200).promise().done(function(){e(o).prevAll("div.wprs_masonry_js").html(""),e(o).prevAll("div.wprs_masonry_js").append(l),e(o).prevAll("div.wprs_masonry_js").fadeIn(200).promise().done(function(){p(g),"yes"==s&&M(o),L()})}):e(o).prevAll("div.wprevprodiv").fadeOut(200).promise().done(function(){e(o).prevAll("div.wprevprodiv").remove(),e(o).closest("div.wprevpro").prepend(l),e(o).prevAll("div.wprevprodiv").fadeIn(200).promise().done(function(){p(g)}),"yes"==s&&M(o)}),m=Number(n.clickedpnum);var y=Number(n.lastslidenum),_=Number(n.totalreviewsindb),k=Number(n.reviewsperpage),C="";r.hide();var S=e(".wprevflashingimage");if(x(S,"stop"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||e(o).closest("div.wprevpro").height()>window.innerHeight){var T=e(o).closest("div.wprevpro").offset();e("html, body").animate({scrollTop:T.top-75},"slow")}if(r.length){if($[v])a=$[v];else{if(a='
      ',_>k){m>1&&(a+='
    • <
    • '),1==m&&(C="current"),a=a+'
    • 1
    • ',m>3&&(a+='
    • ');for(var G=2;G'+G+"");y-m>2&&(a+='
    • '),C="",y==m&&(C="current"),a=a+'
    • '+y+"
    • ",m!=y&&(a+='
    • >
    • ')}a=a+"
    "+r.get(0).outerHTML,$[v]=a}e(o).html(a)}else _<=k?e(o).find(".wprevpro_load_more_btn").hide():e(o).find(".wprevpro_load_more_btn").hasClass("forceloadmorehide")||e(o).find(".wprevpro_load_more_btn").show()}else{r.hide();var S=e(".wprevflashingimage");x(S,"stop")}}e(".wprev_search").on("input",function(){var t=e(this).val().length;clearTimeout(y),(t>1||0==t)&&(y=setTimeout((function(){var t=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wppro_pagination");t.length||(t=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wprevpro_load_more_btn")),t.length||(t=e(this).closest(".wprev_search_sort_bar").next(".wprs_unslider").find(".wprevpro_load_more_btn")),e(this).closest(".wprev_search_sort_bar").find(".wprppagination_loading_image_search").show(),k(1,t)}).bind(this),600))}),e(".wprev_sort").on("change",function(){var t=e(this).val().length;if(t>0||0==t){var r=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wppro_pagination");r.length||(r=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wprevpro_load_more_btn")),r.length||(r=e(this).closest(".wprev_search_sort_bar").next(".wprs_unslider").find(".wprevpro_load_more_btn")),e(this).closest(".wprev_search_sort_bar").find(".wprppagination_loading_image_search").show(),k(1,r)}}),e(".wprevpro_stag").on("click",function(){if(e(this).hasClass("current"))e(".wprev_search").val(""),e(this).removeClass("current");else{var t=e(this).text();e(".wprevpro_stag").removeClass("current"),e(this).addClass("current"),e(".wprev_search").val(t)}var r=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wppro_pagination");r.length||(r=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wprevpro_load_more_btn")).show(),r.length||(r=e(this).closest(".wprev_search_sort_bar").next(".wprs_unslider").find(".wprevpro_load_more_btn")),e(this).closest(".wprev_search_sort_bar").find(".wprppagination_loading_image_tag").show(),e(r).attr("data-notinstring",""),k(1,r)}),e(".wprevpro_stype_btn").on("click",function(){var t=e(this).text(),r=e(this).closest(".wprev_search_sort_bar").attr("data-tid");e(this).hasClass("current")?(e(this).parent().attr("data-rtype",""),e(this).removeClass("current")):_(r)&&(e(this).parent().attr("data-rtype",t),e(this).addClass("current"));var i=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wppro_pagination");i.length||(i=e(this).closest(".wprev_search_sort_bar").next(".wprevpro").find(".wprevpro_load_more_btn")),i.length||(i=e(this).closest(".wprev_search_sort_bar").next(".wprs_unslider").find(".wprevpro_load_more_btn")),e(this).closest(".wprev_search_sort_bar").find(".wprppagination_rtypes_loading_img").show(),k(1,i)}),e(".wppro_pagination").on("click",".wppro_page_numbers",function(t){t.stopPropagation(),t.preventDefault();var r=e(this).closest(".wppro_pagination"),i=e(this).text();!1==e(this).hasClass("current")&&(e(r).find(".wprppagination_loading_image").show(),k(i,r))}),e(".wprev_banner_top_source").on("click",function(){var t=e(this).attr("data-stype"),r=e(this).closest(".wprev_banner_outer").attr("data-tid");e(this).hasClass("cursel")?(e(this).parent().attr("data-rtype",""),e(this).removeClass("cursel"),e(this).parent().find(".wprev_banner_top_source").first().addClass("cursel")):_(r)&&(e(this).parent().attr("data-rtype",t),e(this).addClass("cursel"));var i=e(this).closest(".wprev_banner_outer").siblings(".wprevpro").find(".wppro_pagination");i.length||(i=e(this).closest(".wprev_banner_outer").siblings(".wprevpro").find(".wprevpro_load_more_btn")),i.length||(i=e(this).closest(".wprev_banner_outer").siblings(".wprs_unslider").find(".wprevpro_load_more_btn"));var s=e(this).find(".wppro_banner_icon");x(s,"start"),k(1,i)}),e(".wprevdropbtn").on("click",function(){e(this).next(".wprevdropdown-content").slideToggle()}),e(".wprevdropbtnb").on("click",function(){e(this).next(".wprevdropdown-content_badge").slideToggle()}),e(".wprevpro_load_more_btn").on("click",function(t){e(this).closest(".wprevpro").find(".wprs_rd_less:visible").trigger("click"),T(this,"")});var S=!1;function T(t,r,i="no",s=""){!0===S?setTimeout(T,1e3,t,r,i,s):function t(r,i,s="no",o=""){S=!0;var n=e(r).next(".wprploadmore_loading_image"),a=e(".wprevflashingimage"),l=e(r),d=e(r).attr("data-perrow"),v=e(r).attr("data-nrows"),c=e(r).attr("data-callnum"),h=e(r).attr("data-tid"),w=e(r).attr("data-notinstring"),f=e(r).attr("data-cpostid"),u=e(r).attr("data-shortcodepageid"),g=e(r).attr("data-shortcodelang"),m=e(r).attr("data-shortcodetag");if(/Mobi|Android/i.test(navigator.userAgent)||600>e(window).width())var b=e(r).attr("data-onemobil");else var b="no";var $=e(r).attr("data-slideshow"),y=e(r).attr("data-ismasonry"),_=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find(".wprev_search").val();"yes"==$&&(_=e(r).closest(".wprs_unslider").prev(".wprev_search_sort_bar").find(".wprev_search").val()),""!=e(".wprevpro_stag.current").text()&&(_=e(".wprevpro_stag.current").text());var k=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_sort").val();"yes"==$&&(k=e(r).closest(".wprs_unslider").prev(".wprev_search_sort_bar").find("#wprevpro_header_sort").val());var C=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_rating").val();"yes"==$&&(C=e(r).closest(".wprs_unslider").prev(".wprev_search_sort_bar").find("#wprevpro_header_rating").val());var T=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_source").val();"yes"==$&&(T=e(r).closest(".wprs_unslider").prev(".wprev_search_sort_bar").find("#wprevpro_header_source").val());var H=e(r).closest(".wprevpro").prev(".wprev_search_sort_bar").find("#wprevpro_header_langcodes").val();"yes"==$&&(H=e(r).closest(".wprs_unslider").prev(".wprev_search_sort_bar").find("#wprevpro_header_langcodes").val());var X="";e("#wprev_search_sort_bar_id_"+h).find(".wprevpro_rtypes_div").attr("data-rtype")&&(X=e("#wprev_search_sort_bar_id_"+h).find(".wprevpro_rtypes_div").attr("data-rtype")),e("#wprev_banner_id_"+h).find(".wprev_banner_top").attr("data-rtype")&&(X=e("#wprev_banner_id_"+h).find(".wprev_banner_top").attr("data-rtype")),""==i&&n.show(),l.hide();var P={action:"wprp_load_more_revs",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,cache:!1,processData:!1,contentType:!1,perrow:d,nrows:v,callnum:c,notinstring:w,revid:h,onereview:b,cpostid:f,shortcodepageid:u,shortcodelang:g,shortcodetag:m,textsearch:_,textsort:k,textrating:C,textsource:T,textlang:H,filterbar:s,textrtype:X};jQuery.post(wprevpublicjs_script_vars.wpfb_ajaxurl,P,function(t){var d=!0;try{var v=e.parseJSON(t)}catch(c){d=!1,n.hide(),x(a,"stop")}if(t&&""!=t&&d){var w=v.innerhtml,f=v.totalreviewsnum,u=v.hideldbtn,g=v.animateheight,m=v.newnotinstring;if(l.attr("data-notinstring",m),x(a,"stop"),"yes"==$){if("yes"==s){e(".wprppagination_loading_image_search").hide(),e(".wprppagination_loading_image_tag").hide(),e(".wprppagination_rtypes_loading_img").hide();var b=l.parent(".wprevpro_load_more_div").closest(".wprs_unslider-wrap"),_=l.parent(".wprevpro_load_more_div").closest("li");b.html('
  • '+w+"
  • "),b.append(_),I[h].data("wprs_unslider").calculateSlides(),e("#wprev-slider-"+h).siblings("nav").remove(),I[h].data("wprs_unslider").initNav(),e("#wprev-slider-"+h).siblings("nav").attr("id","wprs_nav_"+h),I[h].data("wprs_unslider").animate("first")}else{if(e("#wprev-slider-"+h).find("ul").append("
  • "),o.data("wprs_unslider").calculateSlides(),e("#wprev-slider-"+h).siblings("nav").remove(),o.data("wprs_unslider").initNav(),e("#wprev-slider-"+h).siblings("nav").find("li").last().prev().prev().addClass("wprs_unslider-active"),l.parent(".wprevpro_load_more_div").before(w),"yes"!=u){var k=l.closest("li").next("li"),_=l.parent(".wprevpro_load_more_div");_.detach(),k.append(_)}else l.closest(".wprs_unslider").find("ol li:last").remove();n.hide()}if("yes"==g){var C=e(r).closest("li").prev("li").css("height");e(r).closest(".wprev-slider").animate({height:C},750),e(r).closest(".wprev-slider-widget").animate({height:C},750)}var T=e(r).attr("data-revsameheight");"yes"==T&&G(r)}else if("sli"==$){if((W=!0,"yes"==s)?(e(".wprppagination_loading_image_search").hide(),e(".wprppagination_loading_image_tag").hide(),e(".wprppagination_rtypes_loading_img").hide(),e(i).slickwprev("unslickwprev"),e(i).html(w),D(i)):f>0&&(e(i).slickwprev("slickwprevAdd",w),0==JSON.parse(e(i).attr("data-slickwprev")).speed&&e(i).find(".slickwprev-active").css("transition-duration","0.5s")),f>0){var T=e(i).attr("data-revsameheight");"yes"==T&&setTimeout(()=>{z(i)},10),"yes"!=e(i).attr("data-wprevmasonry")&&setTimeout(()=>{var t,r,s;t=i,r=e(t).find(".w3_wprs-col").map(function(){if(!e(this).find(".wprs_rd_less").is(":visible"))return e(this).outerHeight()}).get(),s=Math.max.apply(null,r),s>0&&e(t).find(".w3_wprs-col").css("min-height",s)},20)}}else{"yes"==y?(l.parent(".wprevpro_load_more_div").prev(".wprs_masonry_js").append(w),L()):l.parent(".wprevpro_load_more_div").before(w),n.hide(),f>0&&l.show(),"yes"==u&&l.hide();var T=e(r).attr("data-revsameheight");"yes"==T&&M(r)}var H=Number(v.callnum)+1;l.attr("data-callnum",H),l.attr("hideldbtn",u);var X=l.closest(".wprevpro");setTimeout(()=>{p(X)},50),e(".wprev_media_div").length&&refreshFsLightbox()}else n.hide();S=!1}).fail(function(){console.log("fail"),n.hide(),l.show(),x(a,"stop"),S=!1})}(t,r,i,s)}function M(t){if(e(t).closest(".wprevpro").is(":visible")){var r=e(t).closest(".wprevpro").find(".indrevdiv").map(function(){return e(this).outerHeight()}).get(),i=Math.max.apply(null,r);e(t).closest(".wprevpro").find(".indrevdiv").css("height",i),e(t).closest(".wprevpro").find(".wprevmodal_modal_rdmore").find(".indrevdiv").css("height","")}}function G(t){var r=e(t).closest(".wprs_unslider").find(".indrevdiv").map(function(){if(!e(this).find(".wprs_rd_less").is(":visible"))return e(this).outerHeight()}).get(),i=Math.max.apply(null,r);e(t).closest(".wprs_unslider").find(".indrevdiv").each(function(){e(this).find(".wprs_rd_less").is(":hidden")&&e(this).css("height",i)})}e(".wprevpro.wprev-no-slider").each(function(t){e(this).hasClass("revnotsameheight")||e(this).closest(".wprevmodal_modal").length||e(this).closest(".wprevpro_float_outer").length||setTimeout(()=>{M(e(this).find("div"))},100)}),e(".wprev_pro_float_outerdiv-close").on("click",function(t){e(this).closest(".wprevpro_float_outer").hide("300");var r=e(this).attr("id"),i=JSON.parse(sessionStorage.getItem("wprevfloats")||"[]");i.push({id:r,clickedclose:"yes"}),sessionStorage.setItem("wprevfloats",JSON.stringify(i))}),e("div.wprevpro_float_outer").show(),(t=JSON.parse(sessionStorage.getItem("wprevfloats")||"[]")).forEach(function(t,r){("yes"==t.clickedclose||"yes"==t.firstvisithide)&&e("#"+t.id).closest(".wprevpro_float_outer").hide()}),e("div.wprevpro_badge_container[data-firstvisit='yes']").each(function(r){var i=e(this).find(".wprev_pro_float_outerdiv-close").attr("id");!1==t.filter(function(e){return"yes"==e.firstvisithide&&e.id==i})&&(t.push({id:i,firstvisithide:"yes"}),sessionStorage.setItem("wprevfloats",JSON.stringify(t)))});var H=1,X=!0,P=!1;function j(t,r,i,s){if(X&&!P&&("in"==i&&e(t).show(),"right"==r?"in"==i?e(t).animate({right:"10px"},1e3):"out"==i&&e(t).animate({right:"-110%"},1e3):"bottom"==r?"in"==i?e(t).animate({bottom:"10px"},1e3):"out"==i&&e(t).animate({bottom:"-1000px"},1e3):"left"==r?"in"==i?e(t).animate({left:"10px"},1e3):"out"==i&&e(t).animate({left:"-110%"},1e3):"fade"==r&&("in"==i?e(t).animate({opacity:1},500):"out"==i&&e(t).animate({opacity:"0"},500)),e(t).find(".slickwprev-active").length>0&&0==e(t).find(".slickwprev-active").width())){var o=e(t).find(".wprevgoslick");e(o).slickwprev("slickwprevGoTo",0)}}document.addEventListener("visibilitychange",function e(){X=!document.hidden},!1),e("div .wprev_pop_contain").on("mouseenter",function(){P=!0}).on("mouseleave",function(){P=!1}),e(".wprevpro_float_outer").each(function(){e(this).attr("id");var t=e(this).find(".wprevpro_badge_container").attr("data-animatedir"),r=1e3*Number(e(this).find(".wprevpro_badge_container").attr("data-animatedelay")),i=e(this).find(".wprev_pro_float_outerdiv");j(i,t,"out",0),r>0?setTimeout(function(){j(i,t,"in",1e3)},r):j(i,t,"in",1e3);var s=e(this).find(".wprevpro_badge_container").attr("data-autoclose"),o=1e3*Number(e(this).find(".wprevpro_badge_container").attr("data-autoclosedelay"))+r;if("yes"==s&&o>0&&setTimeout(function(){e(i).hide(),H=50},o),e(this).find(".wprevpro_outerrevdivpop").length){var n=e(this).find(".wprevpro_outerrevdivpop");setTimeout(function(){(function t(r,i,s){var o=!1;X&&!P?(j(r,s,"out",1e3),o=!1):o=!0,H+=1;var n=e(i).attr("data-formid"),a=e(i).attr("data-wtfloatid"),l={action:"wprp_get_float",wpfb_nonce:wprevpublicjs_script_vars.wpfb_nonce,fid:n,wtfid:a,wtftype:"pop",innerdivonly:"yes",startoffset:A};jQuery.post(wprevpublicjs_script_vars.wpfb_ajaxurl,l,function(n){(A+=1,!e.trim(n)||n.length<100)?H=50:H<50&&(X&&!P&&!1==o&&(e(r).find(".wprev_pop_contain").html(""),e(r).find(".wprev_pop_contain").html(n)),setTimeout(function(){j(r,s,"in",1e3)},6e3),setTimeout(function(){t(r,i,s)},14e3),p(r))})})(i,n,t)},r+8e3)}});var A=1;function L(){setTimeout(function(){e(".wprevpro").find(".wprs_masonry_js").each(function(t){(function t(r){if(!e(r).is(":visible"))return setTimeout(function(){t(r)},1e3),!1;var i=parseInt(e(r).attr("data-numcol")),s=parseInt(e(r).closest(".wprevpro").width()),o=parseInt(s/i)-30;o<200&&(o=200);var n=e(r).closest(".wprevpro").attr("id");if(i>0&&s>0){if(a[n]=new MiniMasonry({container:"#"+n+" .wprs_masonry_js",minify:!0,gutterX:20,gutterY:0,baseWidth:o}),e(r).find(".divwprsrdmore").length){var l=e(r).closest(".wprevpro");p(l),a[n].layout()}var d=e(location).attr("hash");if(d){var v=e(d).offset().top,c=e(d).offset().top+e("#element").outerHeight(),h=e(window).scrollTop()+e(window).innerHeight(),w=e(window).scrollTop();h>v&&w0&&e(t).find(".indrevdiv").css("min-height",i)}setTimeout(function(){L()},200);var I={};function E(t,r){var i=JSON.parse(e(t).attr("data-slideprops")),s=Number(i.sliderid);e(t).find("li").show(),e(t).show();var o=e(t).wprs_unslider({autoplay:i.autoplay,infinite:!1,delay:i.delay,speed:i.sliderspeed,animation:i.animation,arrows:i.arrows,animateHeight:i.animateHeight,activeClass:"wprs_unslider-active"});if(I[s]=o,o.on("wprs_unslider.change",function(r,i,s){e(t).find(".wprs_rd_less:visible").trigger("click")}),e(t).siblings(".wprs_unslider-nav").attr("id","wprs_nav_"+s),e(t).siblings(".wprs_unslider-arrow").addClass("wprs_nav_arrow_"+s),!0==i.autoplay&&o.on("mouseover",function(){o.data("wprs_unslider").stop()}).on("mouseout",function(){o.data("wprs_unslider").start()}),p(t),"yes"==i.forceheight){var n=e(t).find(".indrevdiv").map(function(){return e(this).outerHeight()}).get(),a=Math.max.apply(null,n);a>0&&e(t).find(".indrevdiv").css("min-height",a)}if(!0==i.animateHeight)o.data("wprs_unslider").animate("last"),setTimeout(function(){o.data("wprs_unslider").animate(0)},100);else if("fade"==i.animation){var l=e("#wprev-slider-"+s).find("li").map(function(){return e(this).outerHeight()}).get(),d=Math.max.apply(null,l);e("#wprev-slider-"+s).height(d)}if("yes"==i.sliderarrowheight){var v=e("#wprev-slider-"+s).siblings("span.next,span.prev"),c=v.offset();c.top>0&&v.offset({top:c.top})}if("yes"==i.loadmorersli&&i.totalreviewsarray>i.reviewsperpage){var h="";!0==i.iswidget&&(h="_widget"),I[s].on("wprs_unslider.change",function(t,r,i){if("yes"!=e("#wprev_load_more_btn_"+s).attr("loopnow")){var n,a,p,l,d=e("#wprev-slider-"+s+h).find("li").length;-1==r&&(r=d-1),d-2==r&&(n=r+1,a=d+1,p=s,l=e("#wprev_load_more_btn_"+p),"yes"!=l.attr("hideldbtn")?T(l,"","lastslide",o):(l.attr("loopnow","yes"),e("#wprev-slider-"+p+h).find("ul li:last").remove(),o.data("wprs_unslider").calculateSlides(),e("#wprev-slider-"+p+h).siblings("nav").remove(),o.data("wprs_unslider").initNav(),e("#wprev-slider-"+p+h).siblings("nav").find("li").last().prev().addClass("wprs_unslider-active"),setTimeout(function(){o.data("wprs_unslider").animate(0)},100)))}})}i.checkfloatdelay>0&&setTimeout(function(){o.data("wprs_unslider").animate(0)},i.checkfloatdelay)}e(".wprev-slider").each(function(e){E(this,"shortcode")}),e(".wprev-slider-widget").each(function(e){E(this,"widget")});let O=!1;e(".wprevgoslick").mouseover(function(){O=!0,"undefined"!=typeof slickwprev&&e(this).slickwprev("slickwprevPause")}).mouseout(function(){O=!1,!0==JSON.parse(e(this).attr("data-slickwprev")).autoplay&&"undefined"!=typeof slickwprev&&e(this).slickwprev("slickwprevPlay")}),e(".wprevgoslick").each(function(e){D(this)});var W=!0;function D(t){e(t).attr("id");var r=t;if(e(t).show(),!e(t).is(":visible"))return e(t).hide(),setTimeout(function(){D(t)},1e3),!1;"yes"==e(t).attr("data-revsameheight")&&setTimeout(()=>{z(r)},50);var i=JSON.parse(e(t).attr("data-slickwprev")),s=e(t).attr("data-wprevmasonry"),o=e(t).attr("data-avatarnav"),n=e(t).attr("data-revsperrow");if(i.rows>1&&"no"==s){var a=e(t).find(".outerrevdiv").map(function(){return e(this).outerHeight()}).get(),l=Math.max.apply(null,a);!0==n&&"1"==n||e(t).find(".outerrevdiv").css("min-height",l)}var v="50px",c="50px";if(i.centerPadding&&""!=i.centerPadding&&i.centerMode&&!0==i.centerMode&&(c="100px"),"no"==o&&i.slidesToShow>1)var h={responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:v}}]};else if("no"==o&&i.slidesToShow<2)var h={responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:c}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:v}}]};!0==i.adaptiveHeight&&i.slidesToShow>1?(e(r).on("init",function(e){N(r)}).on("beforeChange",function(e,t,i){N(r)}).slickwprev(h),e(r).find('div[aria-hidden="true"]').find("a").attr("tabindex","-1")):(e(r).slickwprev(h),e(r).find('div[aria-hidden="true"]').find("a").attr("tabindex","-1")),p(t),!0==i.centerMode&&(e(r).find(".slickwprev-slide").css("opacity","0.5"),e(r).find(".slickwprev-center").css("opacity","1"),e(r).on("beforeChange",function(t){e(r).find(".slickwprev-slide").fadeTo(100,.5)}),e(r).on("setPosition",function(t){e(r).find(".slickwprev-center").fadeTo(100,1)})),"yes"==o&&e(r).find(".avataronlyrevdiv").on("click",function(){var t=e(this).parent().parent().attr("data-slickwprev-index");e(r).slickwprev("slickwprevGoTo",t)}),e(r).next(".wprevpro_load_more_div").length&&e(r).on("afterChange",function(t){var s=e(r).slickwprev("slickwprevCurrentSlide"),o=e(r).find(".slickwprev-slide").length;if(s+i.slidesToShow>=o){var n=e(r).next(".wprevpro_load_more_div").find(".wprevpro_load_more_btn");0==i.speed&&e(r).find(".slickwprev-active").css("transition-duration","0s"),!0==W&&(W=!1,T(n,r,"lastslide"))}}),e(r).on("beforeChange",function(t){e(r).find(".wprs_rd_less:visible").trigger("click")}),e(r).on("swipe",function(t){d(e(r).find(".wprs_rd_less:visible"))}),e(r).on("afterChange",function(t){e(r).find('div[aria-hidden="true"]').find("a").attr("tabindex","-1")})}function N(t){let r=[],i=0;setTimeout(function(){e(".slickwprev-track .slickwprev-active",t).each(function(t){r[t]=e(this).outerHeight()}),r.forEach(function(e){e>i&&(i=e+15)}),e(".slickwprev-list",t).animate({height:i},500)},15)}setTimeout(function(){e(".wprev_media_div").length&&e.getScript(wprevpublicjs_script_vars.wprevpluginsurl+"/public/js/fslightbox.js",function(){})},500),setTimeout(function(){var t,r;t=e(".wprevpro_selpage"),r=e(".wprevpro_customselect"),(t.length||r.length)&&(e("",{rel:"stylesheet",type:"text/css",href:wprevpublicjs_script_vars.wprevpluginsurl+"/public/css/select2.min.css"}).appendTo("head"),e.getScript(wprevpublicjs_script_vars.wprevpluginsurl+"/public/js/select2.min.js",function(){console.log("select2 loaded"),t.length&&t.select2({}),r.length&&r.select2({})}))},600),e(".wprevpro").on("mouseenter touchstart",".wprevtooltip",function(t){var r=e(this).attr("data-wprevtooltip");e(this).data("tiptext",r).removeAttr("data-wprevtooltip"),e('

    ').text(r).appendTo("body").css("top",t.pageY-15+"px").css("left",t.pageX+10+"px").fadeIn("slow")}),e(".wprevpro").on("mouseleave touchend",".wprevtooltip",function(t){e(this).attr("data-wprevtooltip",e(this).data("tiptext")),e(".wprevpro_tooltip").remove()}),e(".wprevpro").on("mousemove",".wprevtooltip",function(t){e(".wprevpro_tooltip").css("top",t.pageY-15+"px").css("left",t.pageX+10+"px")}),e(".wprevpro_load_more_btn[data-endless='yes']").first().length&&e(window).scroll(function(t){var r=e(".wprevpro_load_more_btn[data-endless='yes']").first(),i=r.parent().prev(),s=i.offset().top+i.outerHeight();e(window).scrollTop()+e(window).height()>s+50&&!1==Y&&(e(r).closest(".wprevpro").find(".wprs_rd_less:visible").trigger("click"),T(r,""),Y=!0,setTimeout(function(){Y=!1},1e3))});var Y=!1})}(jQuery);var MiniMasonry=function(e){return this._sizes=[],this._columns=[],this._container=null,this._count=null,this._width=0,this._removeListener=null,this._currentGutterX=null,this._currentGutterY=null,this._resizeTimeout=null,this.conf={baseWidth:255,gutterX:null,gutterY:null,gutter:10,container:null,minify:!0,ultimateGutter:5,surroundingGutter:!0,direction:"ltr",wedge:!1},this.init(e),this};MiniMasonry.prototype.init=function(e){for(var t in this.conf)void 0!=e[t]&&(this.conf[t]=e[t]);if((null==this.conf.gutterX||null==this.conf.gutterY)&&(this.conf.gutterX=this.conf.gutterY=this.conf.gutter),this._currentGutterX=this.conf.gutterX,this._currentGutterY=this.conf.gutterY,this._container="object"==typeof this.conf.container&&this.conf.container.nodeName?this.conf.container:document.querySelector(this.conf.container),!this._container)throw Error("Container not found or missing");var r=this.resizeThrottler.bind(this);window.addEventListener("resize",r),this._removeListener=function(){window.removeEventListener("resize",r),null!=this._resizeTimeout&&(window.clearTimeout(this._resizeTimeout),this._resizeTimeout=null)},this.layout()},MiniMasonry.prototype.reset=function(){this._sizes=[],this._columns=[],this._count=null,this._width=this._container.clientWidth;var e=this.conf.baseWidth;this._widththis._sizes.length){var s=this._sizes.length*(e+this._currentGutterX)-this._currentGutterX;!1===this.conf.wedge?n="ltr"==this.conf.direction?(this._width-s)/2:this._width-(this._width-s)/2:"ltr"==this.conf.direction||(n=this._width-this._currentGutterX)}for(var o=0;o1?this.conf.gutterY:this.conf.ultimateGutter)}this._container.style.height=this._columns[this.getLongest()]-this._currentGutterY+"px"},MiniMasonry.prototype.getNextColumn=function(e){return e%this._columns.length},MiniMasonry.prototype.getShortest=function(){for(var e=0,t=0;tthis._columns[e]&&(e=t);return e},MiniMasonry.prototype.resizeThrottler=function(){this._resizeTimeout||(this._resizeTimeout=setTimeout((function(){this._resizeTimeout=null,this._container.clientWidth!=this._width&&this.layout()}).bind(this),33))},MiniMasonry.prototype.destroy=function(){"function"==typeof this._removeListener&&this._removeListener();for(var e=this._container.children,t=0;t{let t=document.createElement("div");t.classList.add("wprev_select__item"),t.textContent=e.textContent,this.customSelect.appendChild(t),e.selected&&this._select(t),t.addEventListener("click",()=>{this.originalSelect.multiple&&t.classList.contains("wprev_select__item--selected")?this._deselect(t):this._select(t)})}),this.originalSelect.insertAdjacentElement("afterend",this.customSelect),this.originalSelect.style.display="none"}_select(e){let t=Array.from(this.customSelect.children).indexOf(e);this.originalSelect.multiple||this.customSelect.querySelectorAll(".wprev_select__item").forEach(e=>{e.classList.remove("wprev_select__item--selected")}),this.originalSelect.querySelectorAll("option")[t].selected=!0,e.classList.add("wprev_select__item--selected")}_deselect(e){let t=Array.from(this.customSelect.children).indexOf(e);this.originalSelect.querySelectorAll("option")[t].selected=!1,e.classList.remove("wprev_select__item--selected")}}