(function(f){let h=window.WPD.ajaxsearchpro.helpers;f.fn.extend(window.WPD.ajaxsearchpro.plugin,{liveLoad:function(c,e,b,n,r){function q(k){let d=h.Hooks.applyFilters("asp/live_load/raw_data",k,a);var m=new DOMParser;let t=m.parseFromString(d,"text/html"),p=f(t);a.o.statistics&&a.stat_addKeyword(a.o.id,a.n.text.val());if(""!=d&&0f(g).length&&(y.forEach(function(k,d){if(0f(g).length))return console.log("Ajax Search Pro: The live search selector does not exist on the page."),!1;g=h.Hooks.applyFilters("asp/live_load/selector",g,this);let l=f(g).first();a.searchAbort();l.css("opacity",.4);h.Hooks.applyFilters("asp/live_load/start",e,a,g,l.get(0));n||1!=a.n.searchsettings.find("input[name=filters_initial]").val()||""!=a.n.text.val()?"undefined"!=typeof r?q(r.html):(a.searching=!0,a.post=f.fn.ajax({url:e,method:"GET",success:function(k){q(k)},dataType:"html",fail:function(k){l.css("opacity", 1);k.aborted||(l.html("This request has failed. Please check your connection."),a.hideLoader(),a.searching=!1,a.n.proclose.css({display:"block"}))}})):window.WPD.intervalUntilExecute(function(){q(ASP.pageHTML)},function(){return""!=ASP.pageHTML})},getCurrentLiveURL:function(){var c="asp_ls="+h.nicePhrase(this.n.text.val());let e="&",b=window.location.href;b=-1{e=c.getLiveLoadCache();!1!==e&&(c.n.text.val(e.phrase),h.formData(f("form",c.n.searchsettings),e.settings),c.resetNoUISliderFilters(), c.liveLoad(e.selector,document.location.href,!1,!1,e))})},setLiveLoadCache:function(c,e){0==this.liveLoadCache.filter(b=>b.href==document.location.href).length&&this.liveLoadCache.push({href:document.location.href,phrase:c==ASP.pageHTML?"":this.n.text.val(),selector:e,html:c,settings:c==ASP.pageHTML?this.originalFormData:h.formData(f("form",this.n.searchsettings))})},getLiveLoadCache:function(){let c=this.liveLoadCache.filter(e=>e.href==document.location.href);return 0