(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};if("undefined"!=typeof WPD.dom)return!1;WPD.dom=function(){if("undefined"==typeof WPD.dom.fn||"undefined"==typeof WPD.dom.fn.a)WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(a){return"undefined"==typeof a?this.a.slice():"undefined"!=typeof this.a[a]?this.a[a]:null},_:function(a){return"<"===a.charAt(0)?WPD.dom._fn.createElementsFromHTML(a):Array.prototype.slice.call(document.querySelectorAll(a))},$:function(a,b){let c=this.copy(this,
!0);c.a="undefined"!=typeof b?null!==b?b.find(a).get():[]:"string"==typeof a?c._(a):null!==a?[a]:[];c.length=c.a.length;return c},extend:function(){for(let a=1;a<arguments.length;a++)for(let b in arguments[a])arguments[a].hasOwnProperty(b)&&(arguments[0][b]=arguments[a][b]);return arguments[0]},copy:function(a,b){let c,d,e;if("object"!=typeof a||null===a)return a;c=new a.constructor;for(d in a)a.hasOwnProperty(d)&&(e=typeof a[d],c[d]=b&&"object"===e&&null!==a[d]?this.copy(a[d]):a[d]);return c},parent:function(a){let b=
this.get(0),c=this.copy(this,!0);c.a=[];null!=b&&(b=b.parentElement,"undefined"!=typeof a?b.matches(a)&&(c.a=[b]):c.a=null==b?[]:[b]);return c},first:function(){let a=this.copy(this,!0);a.a="undefined"!=typeof a.a[0]?[a.a[0]]:[];a.length=a.a.length;return a},last:function(){let a=this.copy(this,!0);a.a=0<a.a.length?[a.a[a.a.length-1]]:[];a.length=a.a.length;return a},prev:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&null!=b.a[0].previousElementSibling?
[b.a[0].previousElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].previousElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=[c];break}c=c.previousElementSibling}}b.length=b.a.length;return b},next:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&null!=b.a[0].nextElementSibling?[b.a[0].nextElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].nextElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=[c];break}c=
c.nextElementSibling}}b.length=b.a.length;return b},closest:function(a){let b=this.get(0),c=this.copy(this,!0);c.a=[];if("string"===typeof a){if(null!==b&&"undefined"!=typeof b.matches&&""!==a){if(!b.matches(a))for(;(b=b.parentElement)&&!b.matches(a););c.a=null==b?[]:[b]}}else if(null!==b&&"undefined"!=typeof b.matches&&"undefined"!=typeof a.matches){if(b!==a)for(;(b=b.parentElement)&&b!==a;);c.a=null==b?[]:[b]}c.length=c.a.length;return c},add:function(a){if("undefined"!==typeof a)if("undefined"!==typeof a.nodeType)-1==this.a.indexOf(a)&&this.a.push(a);else if("undefined"!==typeof a.a){let b=this;a.a.forEach(function(c){-1==b.a.indexOf(c)&&b.a.push(c)})}return this},find:function(a){let b=this.copy(this,!0);b.a=[];this.forEach(function(c){null!==c&&"undefined"!=typeof c.querySelectorAll&&(b.a=b.a.concat(Array.prototype.slice.call(c.querySelectorAll(a))))});b.length=b.a.length;return b},forEach:function(a){this.a.forEach(function(b,c,d){a.apply(b,[b,c,d])});return this},each:function(a){return this.forEach(a)},
hasClass:function(a){let b=this.get(0);return null!=b?b.classList.contains(a):!1},addClass:function(a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.add.apply(c.classList,b)});return this},removeClass:function(a){if("undefined"!=typeof a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.remove.apply(c.classList,b)})}else this.forEach(function(b){0<
b.classList.length&&b.classList.remove.apply(b.classList,b.classList)});return this},is:function(a){let b=this.get(0);return null!=b?b.matches(a):!1},val:function(a){let b=this.get(0);if(null!=b)if(1==arguments.length)if("select-multiple"==b.type){a="string"===typeof a?a.split(","):a;for(let c=0,d=b.options.length,e;c<d;c++)e=b.options[c],e.selected=-1!=a.indexOf(e.value)}else b.value=a;else return"select-multiple"==b.type?Array.prototype.map.call(b.selectedOptions,function(c){return c.value}):b.value;
return this},isVisible:function(){let a=this.get(0),b=!0,c;for(;null!==a;){c=window.getComputedStyle(a);if("none"==c.display||"hidden"==c.visibility||0==c.opacity){b=!1;break}a=a.parentElement}return b},attr:function(a,b){let c,d=arguments,e=this;this.forEach(function(f){2==d.length?(f.setAttribute(a,b),c=e):"object"===typeof a?Object.keys(a).forEach(function(g){f.setAttribute(g,a[g])}):c=f.getAttribute(a)});return c},removeAttr:function(a){this.forEach(function(b){b.removeAttribute(a)});return this},
prop:function(a,b){let c,d=arguments;this.forEach(function(e){2==d.length?e[a]=b:c="undefined"!=typeof e[a]?e[a]:null});return 2==d.length?this:c},data:function(a,b){let c=this.get(0),d=a.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return null!=c?2==arguments.length?(c.dataset[d]=b,this):"undefined"==typeof c.dataset[d]?"":c.dataset[d]:""},html:function(a){let b=this.get(0);return null!=b?1==arguments.length?(b.innerHTML=a,this):b.innerHTML:""},text:function(a){let b=this.get(0);return null!=b?1==arguments.length?(b.textContent=a,this):b.textContent:""},css:function(a,b){let c=this.get(),d;for(let e=0;e<c.length;e++)if(d=c[e],1==arguments.length)if("object"==typeof a)Object.keys(a).forEach(function(f){d.style[f]=a[f]});else return window.getComputedStyle(d)[a];else d.style[a]=b;return this},position:function(){let a=this.get(0);return null!=a?{top:a.offsetTop,left:a.offsetLeft}:{top:0,left:0}},offset:function(){let a=this.get(0);return null!=a?WPD.dom._fn.hasFixedParent(a)?a.getBoundingClientRect():
WPD.dom._fn.absolutePosition(a):{top:0,left:0}},outerWidth:function(a){a=a||!1;let b=this.get(0);if(null!=b)return a?parseInt(b.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(b.offsetWidth)},outerHeight:function(a){return a?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))},innerWidth:function(){var a=this.get(0);return null!=a?(a=window.getComputedStyle(a),this.outerWidth()-parseFloat(a.borderLeftWidth)-
parseFloat(a.borderRightWidth)):0},width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let a=arguments,b=function(d,e){let f;if("mouseenter"==e.type||"mouseleave"==e.type||"hover"==e.type){var g=document.elementFromPoint(e.clientX,e.clientY);if(!g.matches(d[1]))for(;(g=g.parentElement)&&!g.matches(d[1]););null!=g&&(f=WPD.dom(g))}else f=WPD.dom(e.target).closest(d[1]);if(null!=f&&0<f.closest(this).length){g=[];g.push(e);if("undefined"!=typeof d[4])for(e=
4;e<d.length;e++)g.push(d[e]);d[2].apply(f.get(0),g)}},c=a[0].split(" ");for(let d=0;d<c.length;d++){let e=c[d];if("string"==typeof a[1])this.forEach(function(f){if(!WPD.dom._fn.hasEventListener(f,e,a[2])){let g=b.bind(f,a);f.addEventListener(e,g,a[3]);f._wpd_el="undefined"==typeof f._wpd_el?[]:f._wpd_el;f._wpd_el.push({type:e,selector:a[1],func:g,trigger:a[2],args:a[3]})}});else for(let f=0;f<c.length;f++){let g=c[f];this.forEach(function(h){WPD.dom._fn.hasEventListener(h,g,a[1])||(h.addEventListener(g,
a[1],a[2]),h._wpd_el="undefined"==typeof h._wpd_el?[]:h._wpd_el,h._wpd_el.push({type:g,func:a[1],trigger:a[1],args:a[2]}))})}}return this},off:function(a,b){this.forEach(function(c){if("undefined"!=typeof c._wpd_el&&0<c._wpd_el.length)if("undefined"===typeof a){let d;for(;d=c._wpd_el.pop();)c.removeEventListener(d.type,d.func,d.args);c._wpd_el=[]}else a.split(" ").forEach(function(d){if("undefined"==typeof b){let e;for(;e=c._wpd_el.pop();)c.removeEventListener(d,e.func,e.args);c._wpd_el=[]}else{let e=
[];c._wpd_el.forEach(function(f){f.type==d&&f.trigger==b?c.removeEventListener(d,f.func,f.args):e.push(f)});c._wpd_el=e}})});return this},offForced:function(){let a=this;this.forEach(function(b,c){let d=b.cloneNode(!0);b.parentNode.replaceChild(d,b);a.a[c]=d});return this},trigger:function(a,b,c,d){c=c||!1;d=d||!1;this.forEach(function(e){var f=!1;d&&"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery._data&&"undefined"!=typeof jQuery._data(e,"events")&&"undefined"!=typeof jQuery._data(e,"events")[a]&&
(jQuery(e).trigger(a,b),f=!0);!f&&c&&(f=new Event(a),f.detail=b,e.dispatchEvent(f));if("undefined"!=typeof e._wpd_el)e._wpd_el.forEach(function(g){if(g.type==a){let h=new Event(a);g.trigger.apply(e,[h].concat(b))}});else{let g=!1,h=e;for(;;){h=h.parentElement;if(null==h)break;"undefined"!=typeof h._wpd_el&&h._wpd_el.forEach(function(l){if("undefined"!==typeof l.selector){var k=WPD.dom(h).find(l.selector);0<k.length&&0<=k.get().indexOf(e)&&l.type==a&&(k=new Event(a),l.trigger.apply(e,[k].concat(b)),
g=!0)}});if(g)break}}});return this},clone:function(){let a=this.get(0);null!=a?(this.a=[a.cloneNode(!0)],this.length=this.a.length):this.a=[];this.length=this.a.length;return this},remove:function(a){if("undefined"!=typeof a)return a.parentElement.removeChild(a);this.forEach(function(b){if(null!=b.parentElement)return b.parentElement.removeChild(b)});this.a=[];this.length=this.a.length;return null},detach:function(){let a=this,b=[];this.forEach(function(c){c=a.remove(c);null!=c&&b.push(c)});this.a=
b;this.length=this.a.length;return this},prepend:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){"undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.insertBefore(d,b.children[0])}):b.insertBefore(c,b.children[0])})});return this},append:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){null!=c&&("undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.appendChild(d)}):b.appendChild(c.cloneNode(!0)))})});return this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}},WPD.dom._fn={bodyTransform:function(){let a=0,b=0;if("undefined"!==typeof WebKitCSSMatrix){var c=window.getComputedStyle(document.body);"undefined"!=typeof c.transform&&(c=new WebKitCSSMatrix(c.transform),"undefined"!=c.m41&&(a=c.m41),
"undefined"!=c.m42&&(b=c.m42))}return{x:a,y:b}},bodyTransformY:function(){return this.bodyTransform().y},bodyTransformX:function(){return this.bodyTransform().x},hasFixedParent:function(a){if(0!=WPD.dom._fn.bodyTransformY())return!1;do if("fixed"==window.getComputedStyle(a).position)return!0;while(a=a.parentElement);return!1},hasEventListener:function(a,b,c){if("undefined"==typeof a._wpd_el)return!1;for(let d=0;d<a._wpd_el.length;d++)if(a._wpd_el[d].trigger==c&&a._wpd_el[d].type==b)return!0;return!1},
allDescendants:function(a){let b=[],c=this;Array.isArray(a)||(a=[a]);a.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let f=d.childNodes[e];b.push(f);b=b.concat(c.allDescendants(f))}});return b},createElementsFromHTML:function(a){let b=document.createElement("template");b.innerHTML=a.replace(/(\r\n|\n|\r)/gm,"");return Array.prototype.slice.call(b.content.childNodes)},absolutePosition:function(a){if(!a.getClientRects().length)return{top:0,left:0};let b=a.getBoundingClientRect();a=a.ownerDocument.defaultView;
return{top:b.top+a.pageYOffset,left:b.left+a.pageXOffset}},plugin:function(a,b){WPD.dom.fn[a]=function(c){return"undefined"!=typeof c&&b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(d){d["wpd_dom_"+a]=Object.create(b).init(c,d)})}}},WPD.dom.version=1;return 1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn};WPD.dom();document.dispatchEvent(new Event("wpd-dom-core-loaded"))})();
(function(){if("undefined"!=typeof WPD.dom.fn.animate)return!1;WPD.dom.fn._animate={easing:{linear:function(a){return a},easeInOutQuad:function(a){return.5>a?2*a*a:1-Math.pow(-2*a+2,2)/2},easeOutQuad:function(a){return 1-(1-a)*(1-a)}}};WPD.dom.fn.animate=function(a,b,c){let d=this;b=b||200;c=c||"linear";this.forEach(function(e){let f,g=0,h,l={},k={},m,p,q;m=d.prop("_wpd_dom_animations");m=null==m?[]:m;!1===a?m.forEach(function(n){clearInterval(n)}):(q="undefined"!=typeof d._animate.easing[c]?d._animate.easing[c]:
d._animate.easing.easeInOutQuad,Object.keys(a).forEach(function(n){-1<n.indexOf("scroll")?l[n]=e[n]:l[n]=parseInt(window.getComputedStyle(e)[n]);k[n]=a[n]-l[n]}),f=b/1E3*60,p=setInterval(function(){g++;g>f?clearInterval(p):(h=q(g/f),Object.keys(k).forEach(function(n){-1<n.indexOf("scroll")?e[n]=l[n]+k[n]*h:e.style[n]=l[n]+k[n]*h+"px"}))},1E3/60),m.push(p),d.prop("_wpd_dom_animations",m))});return this};document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})();
(function(){let a=WPD.dom;if("undefined"!=typeof WPD.dom.fn.unhighlight)return!1;WPD.dom.fn.unhighlight=function(b){let c={className:"highlight",element:"span"};a.fn.extend(c,b);return this.find(c.element+"."+c.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this);d.normalize()})};WPD.dom.fn.highlight=function(b,c){function d(g,h,l,k,m){m=""==m?".exhghttt":m;if(3===g.nodeType){if(h=g.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(h))return l=document.createElement(l||
"span"),l.className=k||"highlight",k=/\.|,|\s/.test(h[0].charAt(0))?h.index+1:h.index,g=g.splitText(k),g.splitText(h[1].length),k=g.cloneNode(!0),l.appendChild(k),g.parentNode.replaceChild(l,g),1}else if(1===g.nodeType&&g.childNodes&&!/(script|style)/i.test(g.tagName)&&0< !a(g).closest(m).length&&(g.tagName!==l.toUpperCase()||g.className!==k))for(let p=0;p<g.childNodes.length;p++)p+=d(g.childNodes[p],h,l,k,m);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};
a.fn.extend(e,c);b.constructor===String&&(b=[b]);b=b.filter(function(g){return""!=g});b.forEach(function(g,h,l){l[h]=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==b.length)return this;c=e.caseSensitive?"":"i";b="("+b.join("|")+")";e.wordsOnly&&(b="(?:,|^|\\s)"+b+"(?:,|$|\\s)");let f=new RegExp(b,c);return this.each(function(g){d(g,f,e.element,e.className,e.excludeParents)})}})();
(function(){if("undefined"!=typeof WPD.dom.fn.serialize)return!1;WPD.dom.fn.serialize=function(){let a=this.get(0);if(a&&"FORM"===a.nodeName){var b,c,d=[];for(b=a.elements.length-1;0<=b;--b)if(""!==a.elements[b].name)switch(a.elements[b].nodeName){case "INPUT":switch(a.elements[b].type){case "text":case "hidden":case "password":case "button":case "reset":case "submit":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "checkbox":case "radio":a.elements[b].checked&&d.push(a.elements[b].name+
"="+encodeURIComponent(a.elements[b].value))}break;case "TEXTAREA":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "SELECT":switch(a.elements[b].type){case "select-one":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "select-multiple":for(c=a.elements[b].options.length-1;0<=c;--c)a.elements[b].options[c].selected&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].options[c].value))}break;case "BUTTON":switch(a.elements[b].type){case "reset":case "submit":case "button":d.push(a.elements[b].name+
"="+encodeURIComponent(a.elements[b].value))}}return d.join("&")}};WPD.dom.fn.serializeForAjax=function(a,b){let c=[],d;for(d in a)if(a.hasOwnProperty(d)){let e=b?b+"["+d+"]":d,f=a[d];c.push(null!==f&&"object"===typeof f?WPD.dom.fn.serializeForAjax(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return c.join("&")};document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})();
(function(){if("undefined"!=typeof WPD.dom.fn.inViewPort)return!1;WPD.dom.fn.inViewPort=function(a,b){var c=this.get(0);let d;if(null==c)return!1;a="undefined"==typeof a?0:a;b="undefined"==typeof b?window:"string"==typeof b?document.querySelector(b):b;var e=c.getBoundingClientRect();c=e.top;let f=e.bottom,g=e.left,h=e.right;null==b&&(b=window);b===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=b.clientWidth,d=b.clientHeight,b=b.getBoundingClientRect(),c-=b.top,f-=b.top,g-=b.left,h-=b.left);
a=~~Math.round(parseFloat(a));return 0>=h||g>=e?!1:0<a?c>=a&&f<d-a:(0<f&&c<=d-a)|(0>=c&&f>a)};document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})();
(function(){if("undefined"!=typeof WPD.dom.fn.ajax)return!1;WPD.dom.fn.ajax=function(a){a=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},a);if("cors"!=a.cors){var b="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[b]=function(){a.success.apply(this,arguments);delete WPD.dom.fn[a.data.fn]};a.data.callback="WPD.dom.fn."+b;a.data.fn=b;b=document.createElement("script");b.type="text/javascript";
b.src=a.url+"?"+this.serializeForAjax(a.data);b.onload=function(){this.remove()};document.body.appendChild(b)}else return b=new XMLHttpRequest,b.onreadystatechange=function(){null!=a.success&&4==this.readyState&&200==this.status&&a.success(this.responseText);null!=a.fail&&4==this.readyState&&400<=this.status&&a.fail(this)},b.open(a.method.toUpperCase(),a.url,!0),b.setRequestHeader("Content-type",a.contentType),b.setRequestHeader("Accept",a.accept),b.send(this.serializeForAjax(a.data)),b};document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})();
window.WPD=window.WPD||{};
window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){let b="";let c,d,e,f,g,h=0;for(a=this._utf8_encode(a);h<a.length;){var l=a.charCodeAt(h++);c=a.charCodeAt(h++);d=a.charCodeAt(h++);e=l>>2;l=(l&3)<<4|c>>4;f=(c&15)<<2|d>>6;g=d&63;isNaN(c)?f=g=64:isNaN(d)&&(g=64);b=b+this._keyStr.charAt(e)+this._keyStr.charAt(l)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return b},decode:function(a){let b="";let c,d,e,f=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,
"");f<a.length;){var g=this._keyStr.indexOf(a.charAt(f++));var h=this._keyStr.indexOf(a.charAt(f++));d=this._keyStr.indexOf(a.charAt(f++));e=this._keyStr.indexOf(a.charAt(f++));g=g<<2|h>>4;h=(h&15)<<4|d>>2;c=(d&3)<<6|e;b+=String.fromCharCode(g);64!=d&&(b+=String.fromCharCode(h));64!=e&&(b+=String.fromCharCode(c))}return b=this._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");let b="";for(let c=0;c<a.length;c++){let d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>
d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){let b="",c=0,d,e,f;for(;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}};
(function(){window.WPD=window.WPD||{};WPD.Hooks=WPD.Hooks||{};let a=WPD.Hooks;a.filters=a.filters||{};a.addFilter=function(b,c,d,e){a.filters[b]=a.filters[b]||[];a.filters[b].push({priority:"undefined"===typeof d?10:d,scope:"undefined"===typeof e?null:e,callback:c})};a.removeFilter=function(b,c){"undefined"!=typeof a.filters[b]&&("undefined"==typeof c?a.filters[b]=[]:a.filters[b].forEach(function(d,e){d.callback===c&&a.filters[b].splice(e,1)}))};a.applyFilters=function(b){let c=[],d=Array.prototype.slice.call(arguments),
e=arguments[1];"undefined"!==typeof a.filters[b]&&0<a.filters[b].length&&(a.filters[b].forEach(function(f){c[f.priority]=c[f.priority]||[];c[f.priority].push({scope:f.scope,callback:f.callback})}),d.splice(0,2),c.forEach(function(f){f.forEach(function(g){e=g.callback.apply(g.scope,[e].concat(d))})}));return e}})();window.WPD=window.WPD||{};
window.WPD.intervalUntilExecute=function(a,b,c,d){let e,f=0,g="function"===typeof b?b():b;c="undefined"==typeof c?100:c;d="undefined"==typeof d?50:d;if(!1===g)e=setInterval(function(){g="function"===typeof b?b():b;f++;if(f>d)return clearInterval(e),!1;if(!1!==g)return clearInterval(e),a(g)},c);else return a(g)};
(function(a,b){function c(k,m,p){for(;k&&k!==b.documentElement;){var q=k.getAttribute(m);if(q)return q;k=k.parentNode}return p}"function"!==typeof a.CustomEvent&&(a.CustomEvent=function(k,m){m=m||{bubbles:!1,cancelable:!1,detail:void 0};var p=b.createEvent("CustomEvent");p.initCustomEvent(k,m.bubbles,m.cancelable,m.detail);return p},a.CustomEvent.prototype=a.Event.prototype);b.addEventListener("touchstart",function(k){"true"!==k.target.getAttribute("data-swipe-ignore")&&(l=k.target,h=Date.now(),d=
k.touches[0].clientX,e=k.touches[0].clientY,g=f=0)},!1);b.addEventListener("touchmove",function(k){if(d&&e){var m=k.touches[0].clientY;f=d-k.touches[0].clientX;g=e-m}},!1);b.addEventListener("touchend",function(k){if(l===k.target){var m=parseInt(c(l,"data-swipe-threshold","20"),10),p=parseInt(c(l,"data-swipe-timeout","500"),10),q=Date.now()-h,n="";k=k.changedTouches||k.touches||[];Math.abs(f)>Math.abs(g)?Math.abs(f)>m&&q<p&&(n=0<f?"swiped-left":"swiped-right"):Math.abs(g)>m&&q<p&&(n=0<g?"swiped-up":
"swiped-down");""!==n&&(m={dir:n.replace(/swiped-/,""),xStart:parseInt(d,10),xEnd:parseInt((k[0]||{}).clientX||-1,10),yStart:parseInt(e,10),yEnd:parseInt((k[0]||{}).clientY||-1,10)},l.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),l.dispatchEvent(new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:m})));h=e=d=null}},!1);var d=null,e=null,f=null,g=null,h=null,l=null})(window,document);
(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchpro=new function(){this.firstIteration=!0;this.helpers={};this.plugin={};this.addons={addons:[],add:function(c){-1==this.addons.indexOf(c)&&(c=this.addons.push(c),this.addons[c-1].init())},remove:function(c){this.addons.filter(function(d){return d.name==c?("undefined"!=typeof d.destroy&&d.destroy(),!1):!0})}}}})();
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{addAnimation:function(){let d=this,a=0,b=1,g=!0;if(0<d.call_num||d._no_animations)return d.n("results").find(".item, .asp_group_header").removeClass("opacityZero").removeClass("asp_an_"+d.animOptions.items),!1;d.n("results").find(".item, .asp_group_header").each(function(){let f=this;1===b&&(g=c(f).inViewPort(0));if(1<b&&g&&!c(f).inViewPort(0)||80<b)return c(f).removeClass("opacityZero"),!0;"isotopic"==d.o.resultstype&&b>d.il.itemsPerPage?
c(f).removeClass("opacityZero"):(setTimeout(function(){c(f).addClass("asp_an_"+d.animOptions.items);c(f).removeClass("opacityZero")},a+25),a+=45,b++)})},removeAnimation:function(){let d=this;this.n("items").each(function(){c(this).removeClass("asp_an_"+d.animOptions.items)})}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{setFilterStateInput:function(a){let b=this;"undefined"==typeof a&&(a=65);let g=function(){JSON.stringify(b.originalFormData)!=JSON.stringify(d.formData(c("form",b.n("searchsettings"))))?b.n("searchsettings").find("input[name=filters_initial]").val(0):b.n("searchsettings").find("input[name=filters_initial]").val(1)};0==a?g():setTimeout(function(){g()},a)},resetSearchFilters:function(){d.formData(c("form",
this.n("searchsettings")),this.originalFormData);this.resetNoUISliderFilters();"undefined"!=typeof this.select2jQuery&&this.select2jQuery(this.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");this.n("text").val("");this.n("proloading").css("display","none");this.hideLoader();this.searchAbort();this.setFilterStateInput(0)},resetNoUISliderFilters:function(){0<this.noUiSliders.length&&this.noUiSliders.forEach(function(a){if("undefined"!=typeof a.noUiSlider){let b=
[];c(a).parent().find(".asp_slider_hidden").forEach(function(g){b.push(c(g).val())});0<b.length&&a.noUiSlider.set(b)}})}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showMoreResLoader:function(){this.n("resultsDiv").addClass("asp_more_res_loading")},showLoader:function(d){d="undefined"!==typeof d?d:!1;if("none"!=this.o.loaderLocation){this.n("search").hasClass("hiddend")||"results"==this.o.loaderLocation||this.n("proloading").css({display:"block"});if(!1!==d)return!1;(!this.n("search").hasClass("hiddend")||"search"==this.o.loaderLocation)&&(this.n("search").hasClass("hiddend")||"both"!=this.o.loaderLocation&&
"results"!=this.o.loaderLocation)||this.usingLiveLoader()||(0<this.n("resultsDiv").find(".asp_results_top").length&&this.n("resultsDiv").find(".asp_results_top").css("display","none"),this.showResultsBox(),c(".asp_res_loader",this.n("resultsDiv")).removeClass("hiddend"),this.n("results").css("display","none"),this.n("showmoreContainer").css("display","none"),"undefined"!==typeof this.hidePagination&&this.hidePagination())}},hideLoader:function(){this.n("proloading").css({display:"none"});c(".asp_res_loader",
this.n("resultsDiv")).addClass("hiddend");this.n("results").css("display","");this.n("resultsDiv").removeClass("asp_more_res_loading")}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{loadASPFonts:function(){!1!==ASP.font_url&&(this.fontsLoaded=!0,(new FontFace("asppsicons2","url("+ASP.font_url+")",{style:"normal",weight:"normal","font-display":"swap"})).load().then(function(d){document.fonts.add(d)}).catch(function(d){}),ASP.font_url=!1)},updateHref:function(d){d=d||window.location.hash;this.o.trigger.update_href&&!this.usingLiveLoader()&&(window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+
(window.location.port?":"+window.location.port:"")),d=this.getStateURL()+(this.resultsOpened?"&asp_s=":"&asp_ls=")+this.n("text").val()+d,history.replaceState("","",d.replace(location.origin,"")))},stat_addKeyword:function(d,a){c.fn.ajax({url:ASP.ajaxurl,method:"POST",data:{action:"ajaxsearchpro_addkeyword",id:d,keyword:a},success:function(b){}})},fixClonedSelf:function(){let d=this.o.iid,a=this.o.rid;for(;!ASP.instances.set(this)&&!(++this.o.iid,50<this.o.iid););d!=this.o.iid&&(this.o.rid=this.o.id+
"_"+this.o.iid,this.n("search").get(0).id="ajaxsearchpro"+this.o.rid,this.n("search").removeClass("asp_m_"+a).addClass("asp_m_"+this.o.rid).data("instance",this.o.iid),this.n("searchsettings").get(0).id=this.n("searchsettings").get(0).id.replace("settings"+a,"settings"+this.o.rid),this.n("searchsettings").hasClass("asp_s_"+a)?this.n("searchsettings").removeClass("asp_s_"+a).addClass("asp_s_"+this.o.rid).data("instance",this.o.iid):this.n("searchsettings").removeClass("asp_sb_"+a).addClass("asp_sb_"+
this.o.rid).data("instance",this.o.iid),this.n("resultsDiv").get(0).id=this.n("resultsDiv").get(0).id.replace("prores"+a,"prores"+this.o.rid),this.n("resultsDiv").removeClass("asp_r_"+a).addClass("asp_r_"+this.o.rid).data("instance",this.o.iid),this.n("container").find(".asp_init_data").data("instance",this.o.iid),this.n("container").find(".asp_init_data").get(0).id=this.n("container").find(".asp_init_data").get(0).id.replace("asp_init_id_"+a,"asp_init_id_"+this.o.rid),this.n("prosettings").data("opened",
0))},destroy:function(){let d=this;Object.keys(d.nodes).forEach(function(l){let k,r;null==(r=(k=d.nodes[l]).off)||r.call(k)});"undefined"!==typeof d.n("searchsettings").get(0).referenced?(--d.n("searchsettings").get(0).referenced,0>d.n("searchsettings").get(0).referenced&&d.n("searchsettings").remove()):d.n("searchsettings").remove();if("undefined"!==typeof d.n("resultsDiv").get(0).referenced){if(--d.n("resultsDiv").get(0).referenced,0>d.n("resultsDiv").get(0).referenced){let l,k;null==(k=(l=d.n("resultsDiv")).remove)||
k.call(l)}}else{let l,k;null==(k=(l=d.n("resultsDiv")).remove)||k.call(l)}let a,b;null==(b=(a=d.n("trythis")).remove)||b.call(a);let g,f;null==(f=(g=d.n("search")).remove)||f.call(g);let h,e;null==(e=(h=d.n("container")).remove)||e.call(h);d.documentEventHandlers.forEach(function(l){c(l.node).off(l.event,l.handler)})}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{isRedirectToFirstResult:function(){return(0<c(".asp_res_url",this.n("resultsDiv")).length||0<c(".asp_es_"+this.o.id+" a").length||this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length)&&(1==this.o.redirectOnClick&&"click"==this.ktype&&"first_result"==this.o.trigger.click||1==this.o.redirectOnEnter&&("input"==this.ktype||"keyup"==this.ktype)&&13==this.keycode&&"first_result"==this.o.trigger.return||
"button"==this.ktype&&"first_result"==this.o.sb.redirect_action)},doRedirectToFirstResult:function(){let a,b;a="click"==this.ktype?this.o.trigger.click_location:"button"==this.ktype?this.o.sb.redirect_location:this.o.trigger.return_location;0<c(".asp_res_url",this.n("resultsDiv")).length?b=c(c(".asp_res_url",this.n("resultsDiv")).get(0)).attr("href"):0<c(".asp_es_"+this.o.id+" a").length?b=c(c(".asp_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length&&
(b=c(c(this.o.resPage.selector+"a").get(0)).attr("href"));""!=b&&("same"==a?location.href=b:d.openInNewTab(b),this.hideLoader(),this.hideResults());return!1},doRedirectToResults:function(a){var b;if("undefined"!=typeof this.reportSettingsValidity&&!this.reportSettingsValidity())return null==(b=this.showNextInvalidFacetMessage)||b.call(this),!1;b="click"==a?this.o.trigger.click_location:"button"==a?this.o.sb.redirect_location:this.o.trigger.return_location;a=this.getRedirectURL(a);if(this.o.overridewpdefault){if(1==this.o.resPage.useAjax){this.hideResults();this.liveLoad(this.o.resPage.selector,a);this.showLoader();if(0==this.att("blocking")){let g;null==(g=this.hideSettings)||g.call(this)}return!1}"post"==this.o.override_method?d.submitToUrl(a,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:c("form",this.n("searchsettings")).serialize()},b):"same"==b?location.href=a:d.openInNewTab(a)}else d.submitToUrl(a,"post",{np_asid:this.o.id,np_asp_data:c("form",this.n("searchsettings")).serialize()},b);this.n("proloading").css("display",
"none");this.hideLoader();if(0==this.att("blocking")){let g;null==(g=this.hideSettings)||g.call(this)}this.hideResults();this.searchAbort()},getRedirectURL:function(a){a="undefined"!==typeof a?a:"enter";var b="click"==a?this.o.trigger.click:"button"==a?this.o.sb.redirect_action:this.o.trigger.return;"results_page"==b?a="?s="+d.nicePhrase(this.n("text").val()):"woo_results_page"==b?a="?post_type=product&s="+d.nicePhrase(this.n("text").val()):(a="button"==a?"elementor_page"==b?this.o.sb.elementor_url:
this.o.sb.redirect_url:"elementor_page"==b?this.o.trigger.elementor_url:this.o.trigger.redirect_url,a=d.decodeHTMLEntities(a),a=this.parseCustomRedirectURL(a,this.n("text").val()));1<this.o.homeurl.indexOf("?")&&0===a.indexOf("?")&&(a=a.replace("?","&"));if(this.o.overridewpdefault&&"post"!=this.o.override_method){let g="&";-1!==this.o.homeurl.indexOf("?")&&"elementor_page"!=b||-1!==a.indexOf("?")||(g="?");a=a+g+"asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize();
b="elementor_page"==b?a:this.o.homeurl+a}else b="elementor_page"==b?a:this.o.homeurl+a;b=b.replace("https://","https:///");b=b.replace("http://","http:///");b=b.replace(/\/\//g,"/");b=d.Hooks.applyFilters("asp_redirect_url",b,this.o.id,this.o.iid);return b=d.wp_hooks_apply_filters("asp_redirect_url",b,this.o.id,this.o.iid)},parseCustomRedirectURL:function(a,b){let g=this,f=d.decodeHTMLEntities(a).replace(/{phrase}/g,d.nicePhrase(b));a=f.match(/{(.*?)}/g);null!==a&&a.forEach(function(h){h=h.replace(/[{}]/g,
"");var e=c('input[type=radio][name*="aspf['+h+'_"]:checked',g.n("searchsettings"));0==e.length&&(e=c('input[type=text][name*="aspf['+h+'_"]',g.n("searchsettings")));0==e.length&&(e=c('input[type=hidden][name*="aspf['+h+'_"]',g.n("searchsettings")));0==e.length&&(e=c('select[name*="aspf['+h+'_"]:not([multiple])',g.n("searchsettings")));0==e.length&&(e=c('input[type=radio][name*="termset['+h+'"]:checked',g.n("searchsettings")));0==e.length&&(e=c('input[type=text][name*="termset['+h+'"]',g.n("searchsettings")));
0==e.length&&(e=c('input[type=hidden][name*="termset['+h+'"]',g.n("searchsettings")));0==e.length&&(e=c('select[name*="termset['+h+'"]:not([multiple])',g.n("searchsettings")));if(0==e.length)return!0;e=e.val();f=f.replace("{"+h+"}",""+e)});return f}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showResults:function(){let a=this;d.Hooks.applyFilters("asp/results/show/start",a);a.initResults();"horizontal"==a.o.resultstype?a.createHorizontalScroll():"vertical"==a.o.resultstype&&a.createVerticalScroll();switch(a.o.resultstype){case "horizontal":a.showHorizontalResults();break;case "vertical":a.showVerticalResults();break;case "polaroid":a.showPolaroidResults();break;case "isotopic":a.showIsotopicResults();
break;default:a.showHorizontalResults()}a.showAnimatedImages();a.hideLoader();a.n("proclose").css({display:"block"});d.isMobile()&&a.o.mobile.hide_keyboard&&!a.resultsOpened&&document.activeElement.blur();if(a.o.settingsHideOnRes&&0==a.att("blocking")){let b;null==(b=a.hideSettings)||b.call(a)}"undefined"!=typeof WPD.lazy&&setTimeout(function(){WPD.lazy(".asp_lazy")},100);a.eh.resulsDivHoverMouseEnter=a.eh.resulsDivHoverMouseEnter||function(){c(".item",a.n("resultsDiv")).removeClass("hovered");c(this).addClass("hovered")};
a.eh.resulsDivHoverMouseLeave=a.eh.resulsDivHoverMouseLeave||function(){c(".item",a.n("resultsDiv")).removeClass("hovered")};a.n("resultsDiv").find(".item").on("mouseenter",a.eh.resulsDivHoverMouseEnter);a.n("resultsDiv").find(".item").on("mouseleave",a.eh.resulsDivHoverMouseLeave);a.fixSettingsAccessibility();a.resultsOpened=!0;d.Hooks.addFilter("asp/results/show/end",a)},hideResults:function(a){let b=this;a="undefined"==typeof a?!0:a;b.initResults();if(!b.resultsOpened)return!1;b.n("resultsDiv").removeClass(b.resAnim.showClass).addClass(b.resAnim.hideClass);
setTimeout(function(){b.n("resultsDiv").css(b.resAnim.hideCSS)},b.resAnim.duration);b.n("proclose").css({display:"none"});d.isMobile()&&a&&document.activeElement.blur();b.resultsOpened=!1;"undefined"!=typeof b.ptstack&&delete b.ptstack;let g;null==(g=b.hideArrowBox)||g.call(b);b.n("s").trigger("asp_results_hide",[b.o.id,b.o.iid],!0,!0)},updateResults:function(a){if(""===a.replace(/^\s*[\r\n]/gm,"")||c(a).hasClass("asp_nores")||0<c(a).find(".asp_nores").length)this.n("showmoreContainer").css("display",
"none"),c("span",this.n("showmore")).html("");else if("isotopic"==this.o.resultstype&&0<this.call_num&&null!=this.isotopic&&"undefined"!=typeof this.isotopic.appended&&0<this.n("items").length){a=c(a);let b=this.n("items").last(),g=parseInt(this.n("items").last().attr("data-itemnum"));a.get().forEach(function(f){c(f).attr("data-itemnum",++g).css({width:b.css("width"),height:b.css("height")})});this.n("resdrg").append(a);this.isotopic.appended(a.get());this.nodes.items=0<c(".item",this.n("resultsDiv")).length?
c(".item",this.n("resultsDiv")):c(".photostack-flip",this.n("resultsDiv"))}else 0<this.call_num&&"vertical"==this.o.resultstype?this.n("resdrg").html(this.n("resdrg").html()+'<div class="asp_v_spacer"></div>'+a):this.n("resdrg").html(this.n("resdrg").html()+a)},showResultsBox:function(){this.initResults();this.n("s").trigger("asp_results_show",[this.o.id,this.o.iid],!0,!0);this.n("resultsDiv").css({display:"block",height:"auto"});this.n("results").find(".item, .asp_group_header").addClass(this.animationOpacity);
this.n("resultsDiv").css(this.resAnim.showCSS);this.n("resultsDiv").removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass);this.fixResultsPosition(!0)},addHighlightString:function(a){let b=this,g=b.n("text").val().replace(/["']/g,"");a="undefined"==typeof a?b.n("items").find("a.asp_res_url"):a;1==b.o.singleHighlight&&""!=g&&0<a.length&&a.forEach(function(){try{const f=new URL(c(this).attr("href"));f.searchParams.set("asp_highlight",g);f.searchParams.set("p_asid",b.o.id);c(this).attr("href",
f.href)}catch(f){}})},scrollToResults:function(){var a=Math.floor(.1*window.innerHeight);if(!(!this.resultsOpened||0<this.call_num||1!=this.o.scrollToResults.enabled||0<this.n("search").closest(".asp_preview_data").length||1==this.o.compact.enabled||this.n("resultsDiv").inViewPort(a))){a="hover"==this.o.resultsposition?this.n("probox").offset().top-20:this.n("resultsDiv").offset().top-20;a+=this.o.scrollToResults.offset;var b=c("#wpadminbar");0<b.length&&(a-=b.height());window.scrollTo({top:0>a?0:
a,behavior:"smooth"})}},scrollToResult:function(a){a=c(a);a.length&&!a.inViewPort(40)&&a.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},showAnimatedImages:function(){this.n("items").each(function(){let a=c(this).find(".asp_image[data-src]"),b=a.data("src");if("undefined"!=typeof b&&null!=b&&""!==b&&-1<b.indexOf(".gif")&&0==a.find("canvas").length){a.prepend(c('<div class="asp_item_canvas"><canvas></canvas></div>').get(0));let g=c(this).find("canvas").get(0),f=c(this).find(".asp_item_canvas"),
h=g.getContext("2d"),e=new Image;e.crossOrigin="anonymous";e.onload=function(){c(g).attr({width:e.width,height:e.height});h.drawImage(e,0,0,e.width,e.height);f.css({"background-image":"url("+g.toDataURL()+")"})};e.src=b}})},updateNoResultsHeader:function(){let a=this,b=a.n("resdrg").find(".asp_nores"),g;0<b.length&&(b=b.detach());g=a.n("resultsDiv").find(".asp_nores");0<g.length&&g.remove();0<b.length&&(a.n("resultsDiv").prepend(b),a.n("resultsDiv").find(".asp_keyword").on("click",function(){a.n("text").val(d.decodeHTMLEntities(c(this).text()));
a.n("textAutocomplete").val("");0!=a.o.redirectOnClick&&0!=a.o.redirectOnEnter&&1!=a.o.trigger.type||a.search()}))},updateInfoHeader:function(a){let b,g=this.n("resultsDiv").find(".asp_results_top"),f=this.n("text").val().trim();0<g.length&&(0>=this.n("items").length||0<this.n("resultsDiv").find(".asp_nores").length?g.css("display","none"):("undefined"==typeof this.resInfoBoxTxt&&(this.resInfoBoxTxt=0<this.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").length?this.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").html():
"",this.resInfoBoxTxtNoPhrase=0<this.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").length?this.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").html():""),""!==f&&""!==this.resInfoBoxTxt?b=this.resInfoBoxTxt:""===f&&""!==this.resInfoBoxTxtNoPhrase&&(b=this.resInfoBoxTxtNoPhrase),""!==b?(b=b.replaceAll("{phrase}",d.escapeHtml(this.n("text").val())),b=b.replaceAll("{results_count}",this.n("items").length),b=b.replaceAll("{results_count_total}",a),g.html(b),g.css("display","block")):
g.css("display","none")))}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{createResultsScroll:function(a){let b=this,g,f=b.n("results");a="undefined"==typeof a?"vertical":a;f.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"));b.o.show_more.infinite&&(clearTimeout(g),g=setTimeout(function(){b.checkAndTriggerInfiniteScroll(a)},60))})},createVerticalScroll:function(){this.createResultsScroll("vertical")},createHorizontalScroll:function(){this.createResultsScroll("horizontal")},checkAndTriggerInfiniteScroll:function(a){var b=
c(".item",this.n("resultsDiv"));a="undefined"==typeof a?"window":a;if(0==this.n("showmore").length||"none"==this.n("showmoreContainer").css("display"))return!1;if("window"==a||"horizontal"==a){if("isotopic"==this.o.resultstype&&"none"!=c("nav.asp_navigation",this.n("resultsDiv")).css("display"))return!1;a=b.last().inViewPort(0,this.n("resultsDiv").get(0));let g=b.last().inViewPort(0);!this.searching&&0<b.length&&a&&g&&this.n("showmore").find("a.asp_showmore").trigger("click")}else"vertical"==a?(b=
this.n("results"),d.isScrolledToBottom(b.get(0),20)&&this.n("showmore").find("a.asp_showmore").trigger("click")):"isotopic"==a&&!this.searching&&0<b.length&&this.n("resultsDiv").find("nav.asp_navigation ul li").last().hasClass("asp_active")&&this.n("showmore").find("a.asp_showmore").trigger("click")}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{isDuplicateSearchTriggered:function(){for(let a=0;25>a;a++)if(this.o.id+"_"+a!=this.o.rid&&!1!==ASP.instances.get(this.o.id,a))return ASP.instances.get(this.o.id,a).searching;return!1},searchAbort:function(){null!=this.post&&(this.post.abort(),this.isAutoP=!1)},searchWithCheck:function(a){let b=this;"undefined"==typeof a&&(a=50);b.n("text").val().length<b.o.charcount||(b.searchAbort(),clearTimeout(b.timeouts.searchWithCheck),
b.timeouts.searchWithCheck=setTimeout(function(){b.search()},a))},search:function(a,b,g,f,h){let e=this,l=!1;if(e.isDuplicateSearchTriggered())return!1;g="undefined"==typeof g?!1:g;f="undefined"==typeof f?!1:f;h="undefined"==typeof h?!1:h;let k={action:"ajaxsearchpro_search",aspp:e.n("text").val(),asid:e.o.id,asp_inst_id:e.o.rid,options:c("form",e.n("searchsettings")).serialize()};k=d.Hooks.applyFilters("asp_search_data",k,e.o.id,e.o.iid);k=d.wp_hooks_apply_filters("asp_search_data",k,e.o.id,e.o.iid);
let r;null==(r=e.hideArrowBox)||r.call(e);if("undefined"!=typeof e.reportSettingsValidity&&!e.isAutoP&&!e.reportSettingsValidity()){if(!h){let p;null==(p=e.showNextInvalidFacetMessage)||p.call(e);let q;null==(q=e.scrollToNextInvalidFacetMessage)||q.call(e)}l=!0}e.isAutoP&&(k.autop=1);if(!g&&!f&&JSON.stringify(k)===JSON.stringify(e.lastSearchData)){e.resultsOpened||e.usingLiveLoader()||e.showResults();if(e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;l=!0}if(l)return e.hideLoader(),
e.searchAbort(),!1;e.n("s").trigger("asp_search_start",[e.o.id,e.o.iid,e.n("text").val()],!0,!0);e.searching=!0;e.n("proclose").css({display:"none"});e.showLoader(g);if(0==e.att("blocking")&&0==e.o.trigger.facet){let p;null==(p=e.hideSettings)||p.call(e)}g?(e.call_num++,k.asp_call_num=e.call_num,e.autopStartedTheSearch&&(k.options+="&"+c.fn.serializeForAjax(e.autopData),--k.asp_call_num)):(e.call_num=0,e.autopStartedTheSearch=!!k.autop);f=c('form[name="asp_data"]');0<f.length&&(k.asp_preview_options=
f.serialize());"undefined"!=typeof a&&!1!==a&&(k.options+="&force_count="+parseInt(a));"undefined"!=typeof b&&!1!==b&&(k.options+="&force_order="+parseInt(b));let u;null==(u=e.gaEvent)||u.call(e,"search_start");0<c(".asp_es_"+e.o.id).length?e.liveLoad(".asp_es_"+e.o.id,e.getCurrentLiveURL(),e.o.trigger.update_href):e.o.resPage.useAjax?e.liveLoad(e.o.resPage.selector,e.getRedirectURL()):e.o.wooShop.useAjax?e.liveLoad(e.o.wooShop.selector,e.getLiveURLbyBaseLocation(e.o.wooShop.url)):e.o.taxArchive.useAjax?
e.liveLoad(e.o.taxArchive.selector,e.getLiveURLbyBaseLocation(e.o.taxArchive.url)):e.o.cptArchive.useAjax?e.liveLoad(e.o.cptArchive.selector,e.getLiveURLbyBaseLocation(e.o.cptArchive.url)):e.post=c.fn.ajax({url:ASP.ajaxurl,method:"POST",data:k,success:function(p){e.searching=!1;p=p.replace(/^\s*[\r\n]/gm,"");let q=p.match(/___ASPSTART_HTML___(.*[\s\S]*)___ASPEND_HTML___/),n=p.match(/___ASPSTART_DATA___(.*[\s\S]*)___ASPEND_DATA___/);if(null==q||"object"!=typeof q||"undefined"==typeof q[1])return e.hideLoader(),
alert('Ajax Search Pro Error:\r\n\r\nPlease look up "The response data is missing" from the documentation at\r\n\r\n documentation.ajaxsearchpro.com'),!1;q=q[1];q=d.Hooks.applyFilters("asp_search_html",q,e.o.id,e.o.iid);q=d.wp_hooks_apply_filters("asp_search_html",q,e.o.id,e.o.iid);n=JSON.parse(n[1]);e.n("s").trigger("asp_search_end",[e.o.id,e.o.iid,e.n("text").val(),n],!0,!0);if(e.autopStartedTheSearch)if("undefined"!=typeof k.autop){if(e.autopData.not_in={},e.autopData.not_in_count=0,"undefined"!=typeof n.results){let m=[];"undefined"!=typeof n.results.groups?Object.keys(n.results.groups).forEach(function(t){"undefined"!=typeof n.results.groups[t].items&&(t=n.results.groups[t].items,Array.isArray(t)&&t.forEach(function(w){m.push(w)}))}):m=Array.isArray(n.results)?n.results:m;m.forEach(function(t){"undefined"==typeof e.autopData.not_in[t.content_type]&&(e.autopData.not_in[t.content_type]=[]);e.autopData.not_in[t.content_type].push(t.id);++e.autopData.not_in_count})}}else n.full_results_count+=
e.autopData.not_in_count;g?(e.updateResults(q),e.results_num+=n.results_count):(e.initResults(),e.n("resdrg").html(""),e.n("resdrg").html(q),e.results_num=n.results_count,e.o.statistics&&e.stat_addKeyword(e.o.id,e.n("text").val()));e.updateNoResultsHeader();e.nodes.items=0<c(".item",e.n("resultsDiv")).length?c(".item",e.n("resultsDiv")):c(".photostack-flip",e.n("resultsDiv"));e.addHighlightString();let v;null==(v=e.gaEvent)||v.call(e,"search_end",{results_count:e.n("items").length});if(e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),
!1;e.hideLoader();e.showResults();""!=window.location.hash&&-1<window.location.hash.indexOf("#asp-res-")&&0<c(window.location.hash).length?e.scrollToResult(window.location.hash):e.scrollToResults();e.lastSuccesfulSearch=c("form",e.n("searchsettings")).serialize()+e.n("text").val().trim();e.lastSearchData=k;e.updateInfoHeader(n.full_results_count);e.updateHref();0<e.n("showmore").length&&(0<c("span",e.n("showmore")).length&&0<n.results_count&&0<n.full_results_count-e.results_num?(""==e.n("showmore").data("text")&&
e.n("showmore").data("text",e.n("showmore").html()),e.n("showmore").html(e.n("showmore").data("text").replaceAll("{phrase}",d.escapeHtml(e.n("text").val()))),e.n("showmoreContainer").css("display","block"),e.n("showmore").css("display","block"),c("span",e.n("showmore")).html("("+(n.full_results_count-e.results_num)+")"),p=c("a",e.n("showmore")),p.attr("href",""),p.off(),p.on(e.clickTouchend,function(m){m.preventDefault();m.stopImmediatePropagation();if("ajax"==e.o.show_more.action){if(e.searching)return!1;
e.showMoreResLoader();e.search(!1,!1,!0)}else c(this).off(),"results_page"==e.o.show_more.action?m="?s="+d.nicePhrase(e.n("text").val()):"woo_results_page"==e.o.show_more.action?m="?post_type=product&s="+d.nicePhrase(e.n("text").val()):(m="elementor_page"==e.o.show_more.action?e.parseCustomRedirectURL(e.o.show_more.elementor_url,e.n("text").val()):e.parseCustomRedirectURL(e.o.show_more.url,e.n("text").val()),m=c("<textarea />").html(m).text()),"elementor_page"!=e.o.show_more.action&&1<e.o.homeurl.indexOf("?")&&
0==m.indexOf("?")&&(m=m.replace("?","&")),m="elementor_page"==e.o.show_more.action?m:e.o.homeurl+m,e.o.overridewpdefault?"post"==e.o.override_method?d.submitToUrl(m,"post",{asp_active:1,p_asid:e.o.id,p_asp_data:c("form",e.n("searchsettings")).serialize()},e.o.show_more.location):(m=m+"&asp_active=1&p_asid="+e.o.id+"&p_asp_data=1&"+c("form",e.n("searchsettings")).serialize(),"same"==e.o.show_more.location?location.href=m:d.openInNewTab(m)):d.submitToUrl(m,"post",{np_asid:e.o.id,np_asp_data:c("form",
e.n("searchsettings")).serialize()},e.o.show_more.location)})):(e.n("showmoreContainer").css("display","none"),c("span",e.n("showmore")).html("")));e.isAutoP=!1},fail:function(p){p.aborted||(e.n("resdrg").html(""),e.n("resdrg").html('<div class="asp_nores">The request failed. Please check your connection! Status: '+p.status+"</div>"),e.nodes.item=0<c(".item",e.n("resultsDiv")).length?c(".item",e.n("resultsDiv")):c(".photostack-flip",e.n("resultsDiv")),e.results_num=0,e.searching=!1,e.hideLoader(),
e.showResults(),e.scrollToResults(),e.isAutoP=!1)}})}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{searchFor:function(a){"undefined"!=typeof a&&this.n("text").val(a);this.n("textAutocomplete").val("");this.search(!1,!1,!1,!0)},searchRedirect:function(a){a=this.parseCustomRedirectURL(this.o.trigger.redirect_url,a);1<this.o.homeurl.indexOf("?")&&0==a.indexOf("?")&&(a=a.replace("?","&"));this.o.overridewpdefault?"post"==this.o.override_method?d.submitToUrl(this.o.homeurl+a,"post",{asp_active:1,p_asid:this.o.id,
p_asp_data:c("form",this.n("searchsettings")).serialize()}):location.href=this.o.homeurl+a+"&asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize():d.submitToUrl(this.o.homeurl+a,"post",{np_asid:this.o.id,np_asp_data:c("form",this.n("searchsettings")).serialize()})},toggleSettings:function(a){if("undefined"!=typeof a)if("show"==a){let b;null==(b=this.showSettings)||b.call(this)}else{let b;null==(b=this.hideSettings)||b.call(this)}else if(1==this.n("prosettings").data("opened")){let b;
null==(b=this.hideSettings)||b.call(this)}else{let b;null==(b=this.showSettings)||b.call(this)}},closeResults:function(a){"undefined"!=typeof a&&a&&(this.n("text").val(""),this.n("textAutocomplete").val(""));this.hideResults();this.n("proloading").css("display","none");this.hideLoader();this.searchAbort()},getStateURL:function(){let a=location.href,b;a=a.split("p_asid");a=a[0];a=a.replace("&asp_active=1","");a=a.replace("?asp_active=1","");a="?"==a.slice(-1)?a.slice(0,-1):a;a="&"==a.slice(-1)?a.slice(0,
-1):a;b=1<a.indexOf("?")?"&":"?";return a+b+"p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize()},resetSearch:function(){this.resetSearchFilters()},filtersInitial:function(){return 1==this.n("searchsettings").find("input[name=filters_initial]").val()},filtersChanged:function(){return 1==this.n("searchsettings").find("input[name=filters_changed]").val()}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.helpers,{Hooks:window.WPD.Hooks,deviceType:function(){let d=window.innerWidth;return 640>=d?"phone":1024>=d?"tablet":"desktop"},detectIOS:function(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1},detectIE:function(){var d=window.navigator.userAgent;let a=d.indexOf("MSIE ");d=d.indexOf("Trident/");return 0<a||0<d?!0:!1},isMobile:function(){try{return document.createEvent("TouchEvent"),
!0}catch(d){return!1}},isTouchDevice:function(){return"ontouchstart"in window},isSafari:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},escapeHtml:function(d){return d.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")},whichjQuery:function(d){let a=!1;"undefined"!=typeof window.$&&("undefined"===typeof d?a=window.$:"undefined"!=typeof window.$.fn[d]&&(a=window.$));!1===a&&"undefined"!=typeof window.jQuery&&
(a=window.jQuery,"undefined"===typeof d?a=window.jQuery:"undefined"!=typeof window.jQuery.fn[d]&&(a=window.jQuery));return a},formData:function(d,a){let b=this,g=d.find("input,textarea,select,button").get();if(1===arguments.length)return a={},g.forEach(function(f){f.name&&!f.disabled&&(f.checked||/select|textarea/i.test(f.nodeName)||/text/i.test(f.type)||c(f).hasClass("hasDatepicker")||c(f).hasClass("asp_slider_hidden"))&&(void 0==a[f.name]&&(a[f.name]=[]),c(f).hasClass("hasDatepicker")?a[f.name].push(c(f).parent().find(".asp_datepicker_hidden").val()):
a[f.name].push(c(f).val()))}),JSON.stringify(a);"object"!=typeof a&&(a=JSON.parse(a));g.forEach(function(f){if(f.name)if(a[f.name]){let h=a[f.name],e=c(f);"[object Array]"!==Object.prototype.toString.call(h)&&(h=[h]);if("checkbox"==f.type||"radio"==f.type){let l=e.val(),k=!1;for(let r=0;r<h.length;r++)if(h[r]==l){k=!0;break}e.prop("checked",k)}else e.val(h[0]),c(f).hasClass("asp_gochosen")||c(f).hasClass("asp_goselect2")?WPD.intervalUntilExecute(function(l){l(f).trigger("change.asp_select2")},function(){return b.whichjQuery("asp_select2")},
50,3):c(f).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(l){let k=h[0],r=l(e.get(0)).datepicker("option","dateFormat");l(e.get(0)).datepicker("option","dateFormat","yy-mm-dd");l(e.get(0)).datepicker("setDate",k);l(e.get(0)).datepicker("option","dateFormat",r);l(e.get(0)).trigger("selectnochange")},function(){return b.whichjQuery("datepicker")},50,3)}else"checkbox"!=f.type&&"radio"!=f.type||c(f).prop("checked",!1)});return d},submitToUrl:function(d,a,b,g){let f;f=c('<form style="display: none;" />');
f.attr("action",d);f.attr("method",a);c("body").append(f);"undefined"!==typeof b&&null!==b&&Object.keys(b).forEach(function(h){let e=b[h],l=c('<input type="hidden" />');l.attr("name",h);l.attr("value",e);f.append(l)});"undefined"!=typeof g&&"new"==g&&f.attr("target","_blank");f.get(0).submit()},openInNewTab:function(d){Object.assign(document.createElement("a"),{target:"_blank",href:d}).click()},isScrolledToBottom:function(d,a){return d.scrollHeight-d.scrollTop-c(d).outerHeight()<a},getWidthFromCSSValue:function(d,
a){d+="";d=-1<d.indexOf("px")?parseInt(d,10):-1<d.indexOf("%")?"undefined"!=typeof a&&null!=a?Math.floor(parseInt(d,10)/100*a):parseInt(d,10):parseInt(d,10);return 100>d?100:d},nicePhrase:function(d){return encodeURIComponent(d).replace(/%20/g,"+")},unqoutePhrase:function(d){return d.replace(/["']/g,"")},inputToFloat(d){return d.replace(/^[.]/g,"").replace(/[^0-9.-]/g,"").replace(/^[-]/g,"x").replace(/[-]/g,"").replace(/[x]/g,"-").replace(/(\..*?)\..*/g,"$1")},addThousandSeparators(d,a){return""!=a?(a=a||",",String(d).replace(/(?:^|[^.\d])\d+/g,function(b){return b.replace(/\B(?=(?:\d{3})+\b)/g,a)})):d},decodeHTMLEntities:function(d){let a=document.createElement("div");d&&"string"===typeof d&&(d=d.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),d=d.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=d,d=a.textContent,a.textContent="");return d},isScrolledToRight:function(d){return d.scrollWidth-c(d).outerWidth()===d.scrollLeft},isScrolledToLeft:function(d){return 0===d.scrollLeft},
wp_hooks_apply_filters:function(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{detectAndFixFixedPositioning:function(){let a=!1,b=this.n("search").get(0);for(;b;)if(b=b.parentElement,null!=b&&"fixed"==window.getComputedStyle(b).position){a=!0;break}a||"fixed"==this.n("search").css("position")?("absolute"==this.n("resultsDiv").css("position")&&this.n("resultsDiv").css({position:"fixed","z-index":2147483647}),this.att("blocking")||this.n("searchsettings").css({position:"fixed","z-index":2147483647})):
("fixed"==this.n("resultsDiv").css("position")&&this.n("resultsDiv").css("position","absolute"),this.att("blocking")||this.n("searchsettings").css("position","absolute"))},fixSettingsAccessibility:function(){this.n("searchsettings").find("input.asp_select2-search__field").attr("aria-label","Select2 search")},fixTryThisPosition:function(){this.n("trythis").css({left:this.n("search").position().left})},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var b=c("body");let g=0;var f=this.n("resultsDiv").css("position");
if(0!=c._fn.bodyTransformY()||"static"!=b.css("position"))g=b.offset().top;0!=c._fn.bodyTransformY()&&"fixed"==f&&(f="absolute",this.n("resultsDiv").css("position","absolute"));"fixed"==f&&(g=0);if("fixed"==f||"absolute"==f)if(1==a||"visible"==this.n("resultsDiv").css("visibility")){a=this.n("search").offset();f=0;if(0!=c._fn.bodyTransformX()||"static"!=b.css("position"))f=b.offset().left;if("undefined"!=typeof a){let h=0;b="phone"==d.deviceType()?this.o.results.width_phone:"tablet"==d.deviceType()?
this.o.results.width_tablet:this.o.results.width;"auto"==b&&(b=240>this.n("search").outerWidth()?240:this.n("search").outerWidth());this.n("resultsDiv").css("width",isNaN(b)?b:b+"px");"right"==this.o.resultsSnapTo?h=this.n("resultsDiv").outerWidth()-this.n("search").outerWidth():"center"==this.o.resultsSnapTo&&(h=Math.floor((this.n("resultsDiv").outerWidth()-parseInt(this.n("search").outerWidth()))/2));this.n("resultsDiv").css({top:a.top+this.n("search").outerHeight(!0)-g+"px",left:a.left-h-f+"px"})}}},
fixSettingsPosition:function(a){a="undefined"==typeof a?!1:a;var b=c("body"),g=0,f=this.n("searchsettings").css("position");if(0!=c._fn.bodyTransformY()||"static"!=b.css("position"))g=b.offset().top;0!=c._fn.bodyTransformY()&&"fixed"==f&&(f="absolute",this.n("searchsettings").css("position","absolute"));"fixed"==f&&(g=0);if((1==a||0!=this.n("prosettings").data("opened"))&&1!=this.att("blocking")){a=0;if(0!=c._fn.bodyTransformX()||"static"!=b.css("position"))a=b.offset().left;this.fixSettingsWidth();
b="none"!=this.n("prosettings").css("display")?this.n("prosettings"):this.n("promagnifier");f=b.offset();g=f.top+b.height()-2-g+"px";b="left"==this.o.settingsimagepos?f.left:f.left+b.width()-this.n("searchsettings").width();b=b-a+"px";this.n("searchsettings").css({display:"block",top:g,left:b})}},fixSettingsWidth:function(){if(!this.att("blocking")&&"masonry"!=this.o.fss_layout&&(this.n("searchsettings").css({width:"100%"}),10<this.n("searchsettings").width()%c("fieldset",this.n("searchsettings")).outerWidth(!0))){let a=
Math.floor(this.n("searchsettings").width()/c("fieldset",this.n("searchsettings")).outerWidth(!0));a=0>=a?1:a;this.n("searchsettings").css({width:a*c("fieldset",this.n("searchsettings")).outerWidth(!0)+8+"px"})}},hideOnInvisibleBox:function(){if(1==this.o.detectVisibility&&0==this.o.compact.enabled&&!this.n("search").hasClass("hiddend")&&!this.n("search").isVisible()){let a;null==(a=this.hideSettings)||a.call(this);this.hideResults()}}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initMagnifierEvents:function(){let a=this;a.n("promagnifier").on("click",function(b){let g=a.n("search").attr("data-asp-compact")||"closed";a.keycode=b.keyCode||b.which;a.ktype=b.type;if(1==a.o.compact.enabled&&("closed"==g||1==a.o.compact.closeOnMagnifier&&"open"==g))return!1;let f;null==(f=a.gaEvent)||f.call(a,"magnifier");if(a.n("text").val().length>=a.o.charcount&&1==a.o.redirectOnClick&&"first_result"!=a.o.trigger.click)return a.doRedirectToResults("click"),clearTimeout(void 0),!1;if("ajax_search"!=a.o.trigger.click&&"first_result"!=a.o.trigger.click)return!1;a.searchAbort();clearTimeout(a.timeouts.search);a.n("proloading").css("display","none");a.n("text").val().length>=a.o.charcount&&(a.timeouts.search=setTimeout(function(){c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader()?a.search():a.isRedirectToFirstResult()?
a.doRedirectToFirstResult():a.n("proclose").css("display","block")},a.o.trigger.delay))})},initButtonEvents:function(){let a=this;a.n("searchsettings").find("button.asp_s_btn").on("click",function(b){a.ktype="button";b.preventDefault();if(a.n("text").val().length>=a.o.charcount){if("ajax_search"!=a.o.sb.redirect_action)if("first_result"!=a.o.sb.redirect_action)a.doRedirectToResults("button");else{if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.search()}else c("form",a.n("searchsettings")).serialize()+
a.n("text").val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search();clearTimeout(a.timeouts.search)}});a.n("searchsettings").find("button.asp_r_btn").on("click",function(b){let g=d.formData(c("form",a.n("searchsettings"))),f=a.n("text").val();b.preventDefault();a.resetSearchFilters();"live"!=a.o.rb.action||JSON.stringify(g)==JSON.stringify(d.formData(c("form",a.n("searchsettings"))))&&""==f?"close"==a.o.rb.action&&a.hideResults():a.search(!1,!1,!1,!0,!0)})}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initInputEvents:function(){let a=this,b=!1,g=function(){a.n("text").off("mousedown touchstart keydown",g);if(!b){a._initFocusInput();a.o.trigger.type&&a._initSearchInput();a._initEnterEvent();a._initFormEvent();let f;null==(f=a.initAutocompleteEvent)||f.call(a);b=!0}};a.n("text").on("mousedown touchstart keydown",g,{passive:!0})},_initFocusInput:function(){let a=this;a.n("text").on("click",function(b){b.stopPropagation();
b.stopImmediatePropagation();c(this).trigger("focus");let g;null==(g=a.gaEvent)||g.call(a,"focus");if(c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch)return a.resultsOpened||a.usingLiveLoader()||(a._no_animations=!0,a.showResults(),a._no_animations=!1),!1});a.n("text").on("focus input",function(){a.searching||(""!=c(this).val()?a.n("proclose").css("display","block"):a.n("proclose").css({display:"none"}))})},_initSearchInput:function(){let a=this,b=a.n("text").val();
a.n("text").on("input",function(g){a.keycode=g.keyCode||g.which;a.ktype=g.type;if(d.detectIE()){if(b==a.n("text").val())return!1;b=a.n("text").val()}a.updateHref();if(!a.o.trigger.type)return a.searchAbort(),clearTimeout(a.timeouts.search),a.hideLoader(),!1;let f;null==(f=a.hideArrowBox)||f.call(a);if(a.n("text").val().length<a.o.charcount){a.n("proloading").css("display","none");if(0==a.att("blocking")){let h;null==(h=a.hideSettings)||h.call(a)}a.hideResults(!1);a.searchAbort();clearTimeout(a.timeouts.search);
return!1}a.searchAbort();clearTimeout(a.timeouts.search);a.n("proloading").css("display","none");a.timeouts.search=setTimeout(function(){c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader()?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n("proclose").css("display","block")},a.o.trigger.delay)})},_initEnterEvent:function(){let a=this,b,g=!1;a.n("text").on("keyup",function(f){a.keycode=f.keyCode||f.which;
a.ktype=f.type;if(13==a.keycode){clearTimeout(b);b=setTimeout(function(){g=!1},300);if(g)return!1;g=!0}f=c(this).hasClass("orig");if(a.n("text").val().length>=a.o.charcount&&f&&13==a.keycode){let h;null==(h=a.gaEvent)||h.call(a,"return");1==a.o.redirectOnEnter?"first_result"!=a.o.trigger.return?a.doRedirectToResults(a.ktype):a.search():"ajax_search"==a.o.trigger.return&&(c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search());clearTimeout(a.timeouts.search)}})},
_initFormEvent:function(){let a=this;c(a.n("text").closest("form").get(0)).on("submit",function(b,g){b.preventDefault();d.isMobile()?a.o.redirectOnEnter?(b=new Event("keyup"),b.keyCode=b.which=13,this.n("text").get(0).dispatchEvent(b)):(a.search(),document.activeElement.blur()):"undefined"!=typeof g&&"ajax"==g&&a.search()})}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initNavigationEvents:function(){let d=this,a=function(b){let g=b.keyCode||b.which;if(0<c(".item",d.n("resultsDiv")).length&&"none"!=d.n("resultsDiv").css("display")&&"vertical"==d.o.resultstype){if(40==g||38==g){var f=d.n("resultsDiv").find(".item.hovered");d.n("text").trigger("blur");0==f.length?d.n("resultsDiv").find(".item").first().addClass("hovered"):(40==g&&(0==f.next(".item").length?d.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):
f.removeClass("hovered").next(".item").addClass("hovered")),38==g&&(0==f.prev(".item").length?d.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):f.removeClass("hovered").prev(".item").addClass("hovered")));b.stopPropagation();b.preventDefault();d.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,d.n("resultsDiv").get(0))||(f=d.n("resultsDiv").find(".resdrg .item.hovered").get(0),null!=f&&"undefined"!=typeof f.scrollIntoView&&f.scrollIntoView({behavior:"smooth",
block:"start",inline:"nearest"}))}13==g&&0<c(".item.hovered",d.n("resultsDiv")).length&&(b.stopPropagation(),b.preventDefault(),c(".item.hovered a.asp_res_url",d.n("resultsDiv")).get(0).click())}};d.documentEventHandlers.push({node:document,event:"keydown",handler:a});c(document).on("keydown",a)}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initOtherEvents:function(){let a=this;if(d.isMobile()&&d.detectIOS())a.n("text").on("touchstart",function(){a.savedScrollTop=window.scrollY;a.savedContainerTop=a.n("search").offset().top});if(a.o.focusOnPageload)c(window).on("load",function(){a.n("text").get(0).focus()},{options:{once:!0}});a.n("proclose").on(a.clickTouchend,function(g){g.preventDefault();g.stopImmediatePropagation();a.n("text").val("");
a.n("textAutocomplete").val("");a.hideResults();a.n("text").trigger("focus");a.n("proloading").css("display","none");a.hideLoader();a.searchAbort();if(0<c(".asp_es_"+a.o.id).length)a.showLoader(),a.liveLoad(".asp_es_"+a.o.id,a.getCurrentLiveURL(),a.o.trigger.update_href);else{g=["resPage","wooShop","taxArchive","cptArchive"];for(let f=0;f<g.length;f++)if(a.o[g[f]].useAjax){a.showLoader();a.liveLoad(a.o[g[f]].selector,a.getCurrentLiveURL());break}}a.n("text").get(0).focus()});if(d.isMobile()){var b=
function(){a.orientationChange();setTimeout(function(){a.orientationChange()},600)};a.documentEventHandlers.push({node:window,event:"orientationchange",handler:b});c(window).on("orientationchange",b)}else b=function(){a.resize()},a.documentEventHandlers.push({node:window,event:"resize",handler:b}),c(window).on("resize",b,{passive:!0});b=function(){a.scrolling(!1)};a.documentEventHandlers.push({node:window,event:"scroll",handler:b});c(window).on("scroll",b,{passive:!0});if(d.isMobile()&&""!=a.o.mobile.menu_selector)c(a.o.mobile.menu_selector).on("touchend",
function(){let g=this;setTimeout(function(){let f=c(g).find("input.orig");f=0==f.length?c(g).next().find("input.orig"):f;f=0==f.length?c(g).parent().find("input.orig"):f;f=0==f.length?a.n("text"):f;a.n("search").inViewPort()&&f.get(0).focus()},300)});d.detectIOS()&&d.isMobile()&&d.isTouchDevice()&&16>parseInt(a.n("text").css("font-size"))&&(a.n("text").data("fontSize",a.n("text").css("font-size")).css("font-size","16px"),a.n("textAutocomplete").css("font-size","16px"),c("body").append("<style>#ajaxsearchpro"+
a.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition();"isotopic"==this.o.resultstype&&"visible"==this.n("resultsDiv").css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();
this.fixTryThisPosition();let a;null==(a=this.hideArrowBox)||a.call(this);"isotopic"==this.o.resultstype&&"visible"==this.n("resultsDiv").css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(a){this.detectAndFixFixedPositioning();this.hideOnInvisibleBox();this.fixSettingsPosition(a);this.fixResultsPosition(a)},initTryThisEvents:function(){let a=this;0<a.n("trythis").find("a").length&&(a.n("trythis").find("a").on("click touchend",function(b){b.preventDefault();
b.stopImmediatePropagation();a.o.compact.enabled&&"closed"==(a.n("search").attr("data-asp-compact")||"closed")&&a.n("promagnifier").trigger("click");document.activeElement.blur();a.n("textAutocomplete").val("");a.n("text").val(c(this).html());let g;null==(g=a.gaEvent)||g.call(a,"try_this");a.o.trigger.type&&a.searchWithCheck(80)}),a.n("trythis").css({visibility:"visible"}))},initSelect2:function(){let a=this;window.WPD.intervalUntilExecute(function(b){"undefined"!==typeof b.fn.asp_select2&&(a.select2jQuery=
b,c("select.asp_gochosen, select.asp_goselect2",a.n("searchsettings")).each(function(){c(this).removeAttr("data-asp_select2-id");c(this).find('option[value=""]').val("__any__");a.select2jQuery(this).asp_select2({width:"100%",theme:"flat",allowClear:0<c(this).find('option[value=""]').length,language:{noResults:function(){return a.o.select2.nores}}});a.select2jQuery(this).on("change",function(){c(this).trigger("change")})}))},function(){return d.whichjQuery("asp_select2")})}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResultsEvents:function(){let d=this;d.n("resultsDiv").css({opacity:"0"});let a=function(b){let g=b.keyCode||b.which,f=b.type;if(0==c(b.target).closest(".asp_w").length){d.hideOnInvisibleBox();let h;null==(h=d.hideArrowBox)||h.call(d);if("click"!=f||"touchend"!=f||3!=g){if(d.o.compact.enabled)b=d.n("search").attr("data-asp-compact")||"closed",1!=d.o.compact.closeOnDocument||"open"!=b||d.resultsOpened||(d.closeCompact(),d.searchAbort(),d.hideLoader());
else if(0==d.resultsOpened||1!=d.o.closeOnDocClick)return;d.dragging||(d.hideLoader(),d.searchAbort(),d.hideResults())}}};d.documentEventHandlers.push({node:document,event:d.clickTouchend,handler:a});c(document).on(d.clickTouchend,a);d.n("resultsDiv").on("click",".results .item",function(){""!=c(this).attr("id")&&d.updateHref("#"+c(this).attr("id"));let b;null==(b=d.gaEvent)||b.call(d,"result_click",{result_title:c(this).find("a.asp_res_url").text(),result_url:c(this).find("a.asp_res_url").attr("href")})});
"isotopic"==d.o.resultstype&&(d.n("resultsDiv").on("swiped-left",function(){d.visiblePagination()&&d.n("resultsDiv").find("a.asp_next").trigger("click")}),d.n("resultsDiv").on("swiped-right",function(){d.visiblePagination()&&d.n("resultsDiv").find("a.asp_prev").trigger("click")}))}})})(WPD.dom);(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{monitorTouchMove:function(){let d=this;d.dragging=!1;c("body").on("touchmove",function(){d.dragging=!0}).on("touchstart",function(){d.dragging=!1})}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initAutop:function(){if("disabled"==this.o.autop.state)return!1;var d=window.location.href;if(-1<d.indexOf("asp_ls=")||-1<d.indexOf("asp_ls&"))return!1;d=this.o.show_more.enabled&&"ajax"==this.o.show_more.action?!1:this.o.autop.count;this.isAutoP=!0;1==this.o.compact.enabled&&this.openCompact();"phrase"==this.o.autop.state?(this.o.is_results_page||this.n("text").val(this.o.autop.phrase),this.search(d)):"latest"==this.o.autop.state?this.search(d,
1):this.search(d,2)}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initEtc:function(){let a=this;a.il={columns:3,rows:a.o.isotopic.pagination?a.o.isotopic.rows:1E4,itemsPerPage:6,lastVisibleItem:-1};a.filterFns={number:function(b,g){if("undefined"===typeof g||"object"===typeof b)g=b;b=c(g).attr("data-itemnum");const f=a.currentPage,h=a.il.itemsPerPage;b%(a.il.columns*a.il.rows)<a.il.columns*(a.il.rows-1)?c(g).addClass("asp_gutter_bottom"):c(g).removeClass("asp_gutter_bottom");
return parseInt(b,10)<h*f&&parseInt(b,10)>=h*(f-1)}};d.Hooks.applyFilters("asp/init/etc",a)},initInfiniteScroll:function(){let a=this;if(a.o.show_more.infinite&&"polaroid"!=a.o.resultstype){let b,g;g=function(){clearTimeout(b);b=setTimeout(function(){a.checkAndTriggerInfiniteScroll("window")},80)};a.documentEventHandlers.push({node:window,event:"scroll",handler:g});c(window).on("scroll",g);a.n("results").on("scroll",g);let f;a.n("resultsDiv").on("nav_switch",function(){clearTimeout(f);f=setTimeout(function(){a.checkAndTriggerInfiniteScroll("isotopic")},
800)})}},hooks:function(){let a=this;a.n("s").on("asp_elementor_results",function(b,g){a.o.id==g&&"function"==typeof jetpackLazyImagesModule&&setTimeout(function(){jetpackLazyImagesModule()},300)})}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{init:function(b,g){this.autopStartedTheSearch=this.isAutoP=this.triggerPrevState=this.searching=!1;this.autopData={};this.fontsLoaded=this.resultsOpened=this.settingsChanged=this.resultsInitialized=this.settingsInitialized=!1;this.postAuto=this.post=null;this.savedContainerTop=this.savedScrollTop=0;this.disableMobileScroll=!1;this.clickTouchend="click touchend";this.mouseupTouchend=
"mouseup touchend";this.noUiSliders=[];this.timeouts={compactBeforeOpen:null,compactAfterOpen:null,search:null,searchWithCheck:null};this.eh={};this.documentEventHandlers=[];this.currentPage=1;this.currentPageURL=location.href;this.sIsotope=this.isotopic=null;this.lastSuccesfulSearch="";this.lastSearchData={};this._no_animations=!1;this.results_num=this.call_num=0;this.o=c.fn.extend({},b);this.dynamicAtts={};this.nodes={};this.nodes.search=c(g);a.isMobile()?this.animOptions=this.o.animations.mob:
this.animOptions=this.o.animations.pc;this.initNodeVariables();this.animationOpacity=0>this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero";this.o.resPage.useAjax=this.o.compact.enabled?0:this.o.resPage.useAjax;a.isMobile()&&(this.o.trigger.type=this.o.mobile.trigger_on_type,this.o.trigger.click=this.o.mobile.click_action,this.o.trigger.click_location=this.o.mobile.click_action_location,this.o.trigger.return=this.o.mobile.return_action,this.o.trigger.return_location=this.o.mobile.return_action_location,
this.o.trigger.redirect_url=this.o.mobile.redirect_url,this.o.trigger.elementor_url=this.o.mobile.elementor_url);this.o.redirectOnClick="ajax_search"!=this.o.trigger.click&&"nothing"!=this.o.trigger.click;this.o.redirectOnEnter="ajax_search"!=this.o.trigger.return&&"nothing"!=this.o.trigger.return;this.usingLiveLoader()&&(this.o.trigger.type=this.o.resPage.trigger_type,this.o.trigger.facet=this.o.resPage.trigger_facet,this.o.resPage.trigger_magnifier&&(this.o.redirectOnClick=0,this.o.trigger.click=
"ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=0,this.o.trigger.return="ajax_search"));1==this.o.compact.overlay&&0==c("#asp_absolute_overlay").length&&c("body").append("<div id='asp_absolute_overlay'></div>");if(this.usingLiveLoader()){let f;null==(f=this.initLiveLoaderPopState)||f.call(this)}"undefined"!==typeof this.initCompact&&this.initCompact();this.monitorTouchMove();this.initEvents();this.initAutop();this.initEtc();this.hooks();d.firstIteration=!1;this.n("s").trigger("asp_init_search_bar",
[this.o.id,this.o.iid],!0,!0);return this},n:function(b){if("undefined"===typeof this.nodes[b])switch(b){case "s":this.nodes[b]=this.nodes.search;break;case "container":this.nodes[b]=this.nodes.search.closest(".asp_w_container");break;case "searchsettings":this.nodes[b]=c(".asp_ss",this.n("container"));break;case "resultsDiv":this.nodes[b]=c(".asp_r",this.n("container"));break;case "probox":this.nodes[b]=c(".probox",this.nodes.search);break;case "proinput":this.nodes[b]=c(".proinput",this.nodes.search);
break;case "text":this.nodes[b]=c(".proinput input.orig",this.nodes.search);break;case "textAutocomplete":this.nodes[b]=c(".proinput input.autocomplete",this.nodes.search);break;case "proloading":this.nodes[b]=c(".proloading",this.nodes.search);break;case "proclose":this.nodes[b]=c(".proclose",this.nodes.search);break;case "promagnifier":this.nodes[b]=c(".promagnifier",this.nodes.search);break;case "prosettings":this.nodes[b]=c(".prosettings",this.nodes.search);break;case "settingsAppend":this.nodes[b]=
c("#wpdreams_asp_settings_"+this.o.id);break;case "resultsAppend":this.nodes[b]=c("#wpdreams_asp_results_"+this.o.id);break;case "trythis":this.nodes[b]=c("#asp-try-"+this.o.rid);break;case "hiddenContainer":this.nodes[b]=c(".asp_hidden_data",this.n("container"));break;case "aspItemOverlay":this.nodes[b]=c(".asp_item_overlay",this.n("hiddenContainer"));break;case "showmoreContainer":this.nodes[b]=c(".asp_showmore_container",this.n("resultsDiv"));break;case "showmore":this.nodes[b]=c(".showmore",this.n("resultsDiv"));
break;case "items":this.nodes[b]=0<c(".item",this.n("resultsDiv")).length?c(".item",this.n("resultsDiv")):c(".photostack-flip",this.n("resultsDiv"));break;case "results":this.nodes[b]=c(".results",this.n("resultsDiv"));break;case "resdrg":this.nodes[b]=c(".resdrg",this.n("resultsDiv"))}return this.nodes[b]},att:function(b){if("undefined"===typeof this.dynamicAtts[b])switch(b){case "blocking":this.dynamicAtts[b]=this.n("searchsettings").hasClass("asp_sb")}return this.dynamicAtts[b]},initNodeVariables:function(){this.o.id=
this.nodes.search.data("id");this.o.iid=this.nodes.search.data("instance");this.o.rid=this.o.id+"_"+this.o.iid;this.fixClonedSelf()},initEvents:function(){let b;null==(b=this.initSettingsSwitchEvents)||b.call(this);this.initOtherEvents();this.initTryThisEvents();this.initMagnifierEvents();this.initInputEvents();1==this.o.compact.enabled&&this.initCompactEvents()}})})(WPD.dom);
(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResults:function(){if(!this.resultsInitialized){this.initResultsBox();this.initResultsEvents();if("vertical"==this.o.resultstype){let a;null==(a=this.initNavigationEvents)||a.call(this)}if("isotopic"==this.o.resultstype){let a;null==(a=this.initIsotopicPagination)||a.call(this)}}},initResultsBox:function(){this.initResultsAnimations();d.isMobile()&&1==this.o.mobile.force_res_hover?(this.o.resultsposition=
"hover",this.nodes.resultsDiv=this.n("resultsDiv").clone(),c("body").append(this.nodes.resultsDiv),this.n("resultsDiv").css({position:"absolute"})):"hover"==this.o.resultsposition&&0>=this.n("resultsAppend").length?(this.nodes.resultsDiv=this.n("resultsDiv").clone(),c("body").append(this.nodes.resultsDiv)):(this.o.resultsposition="block",this.n("resultsDiv").css({position:"static"}),0<this.n("resultsAppend").length&&(0<this.n("resultsAppend").find(".asp_r_"+this.o.id).length?(this.nodes.resultsDiv=
this.n("resultsAppend").find(".asp_r_"+this.o.id),"undefined"!==typeof this.nodes.resultsDiv.get(0).referenced?++this.nodes.resultsDiv.get(0).referenced:this.nodes.resultsDiv.get(0).referenced=1):(this.nodes.resultsDiv=this.nodes.resultsDiv.clone(),this.nodes.resultsAppend.append(this.nodes.resultsDiv))));this.nodes.showmore=c(".showmore",this.nodes.resultsDiv);this.nodes.items=0<c(".item",this.n("resultsDiv")).length?c(".item",this.nodes.resultsDiv):c(".photostack-flip",this.nodes.resultsDiv);this.nodes.results=
c(".results",this.nodes.resultsDiv);this.nodes.resdrg=c(".resdrg",this.nodes.resultsDiv);this.nodes.resultsDiv.get(0).id=this.nodes.resultsDiv.get(0).id.replace("__original__","");this.detectAndFixFixedPositioning();this.initInfiniteScroll();this.resultsInitialized=!0},initResultsAnimations:function(){let a=this.n("resultsDiv").css("position");this.resAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":this.animOptions.results.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",
opacity:0,display:"none"},duration:this.animOptions.results.dur+"ms"};"fade"==this.animOptions.results.anim&&(this.resAnim.showClass="asp_an_fadeIn",this.resAnim.hideClass="asp_an_fadeOut");"fadedrop"!=this.animOptions.results.anim||"fixed"!=a&&"absolute"!=a?"fadedrop"==this.animOptions.results.anim&&(this.resAnim.showClass="asp_an_fadeIn",this.resAnim.hideClass="asp_an_fadeOut"):(this.resAnim.showClass="asp_an_fadeInDrop",this.resAnim.hideClass="asp_an_fadeOutDrop");this.n("resultsDiv").css({"-webkit-animation-duration":this.resAnim.duration+
"ms","animation-duration":this.resAnim.duration+"ms"})}})})(WPD.dom);
(function(c){c(".ajaxsearchprotop").each(function(){let d=JSON.parse(c(this).data("aspdata")),a=d.id;if(0==d.action)c("a",c(this)).on("click",function(b){b.preventDefault()});else if(2==d.action)c("a",c(this)).on("click",function(b){b.preventDefault();ASP.api(a,"searchFor",c(this).html());c("html").animate({scrollTop:c("div[id*=ajaxsearchpro"+a+"_]").first().offset().top-40},500)});else if(1==d.action)c("a",c(this)).on("click",function(b){if(ASP.api(a,"exists"))return b.preventDefault(),ASP.api(a,
"searchRedirect",c(this).html())})})})(WPD.dom);window.ASP="undefined"!==typeof window.ASP?window.ASP:{};
window.ASP.api=function(){let c=function(b,g,f,h){b=ASP.instances.get(b,g);return!1!==b&&b[f].apply(b,[h])},d=function(b,g,f){if(!isNaN(parseFloat(g))&&isFinite(g))return b=ASP.instances.get(b,g),!1!==b&&b[f].apply(b);b=ASP.instances.get(b);return!1!==b&&b.forEach(function(h){h[g].apply(h,[f])})},a=function(b,g){if("exists"==g)return ASP.instances.exist(b);b=ASP.instances.get(b);return!1!==b&&b.forEach(function(f){f[g].apply(f)})};if(4==arguments.length)return c.apply(this,arguments);if(3==arguments.length)return d.apply(this,
arguments);if(2==arguments.length)return a.apply(this,arguments);0==arguments.length&&(console.log("Usage: ASP.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))};
(function(c){let k=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showSettings:function(a){let b=this,g;null==(g=b.initSettings)||g.call(b);a="undefined"==typeof a?!0:a;b.n("s").trigger("asp_settings_show",[b.o.id,b.o.iid],!0,!0);a?(b.n("searchsettings").css(b.settAnim.showCSS),b.n("searchsettings").removeClass(b.settAnim.hideClass).addClass(b.settAnim.showClass)):b.n("searchsettings").css({display:"block",visibility:"visible",opacity:1});if(!("masonry"!=b.o.fss_layout||
null!=b.sIsotope||k.isMobile()&&k.detectIOS()))if("undefined"!==typeof rpp_isotope)setTimeout(function(){let f=b.n("searchsettings").attr("id");b.n("searchsettings").css("width","100%");b.sIsotope=new rpp_isotope("#"+f+" form",{isOriginLeft:!c("body").hasClass("rtl"),itemSelector:"fieldset",layoutMode:"masonry",transitionDuration:0,masonry:{columnWidth:b.n("searchsettings").find("fieldset:not(.hiddend)").outerWidth()}})},20);else return!1;"undefined"!=typeof b.select2jQuery&&b.select2jQuery(b.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");
b.n("prosettings").data("opened",1);b.fixSettingsPosition(!0);b.fixSettingsAccessibility()},hideSettings:function(){let a=this,b;null==(b=a.initSettings)||b.call(a);a.n("s").trigger("asp_settings_hide",[a.o.id,a.o.iid],!0,!0);a.n("searchsettings").removeClass(a.settAnim.showClass).addClass(a.settAnim.hideClass);setTimeout(function(){a.n("searchsettings").css(a.settAnim.hideCSS)},a.settAnim.duration);a.n("prosettings").data("opened",0);null!=a.sIsotope&&setTimeout(function(){a.sIsotope.destroy();a.sIsotope=
null},a.settAnim.duration);"undefined"!=typeof a.select2jQuery&&"undefined"!=typeof a.select2jQuery.fn.asp_select2&&a.select2jQuery(a.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").asp_select2("close");let g;null==(g=a.hideArrowBox)||g.call(a)},reportSettingsValidity:function(){let a=!0;if("hidden"==this.n("searchsettings").css("visibility"))return!0;this.n("searchsettings").find("fieldset.asp_required").each(function(){let b=c(this),g=!0;b.find("input[type=text]:not(.asp_select2-search__field)").each(function(){""==c(this).val()&&(g=!1)});b.find("select").each(function(){if(null==c(this).val()||""==c(this).val()||c(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&"-1"==c(this).val())g=!1});0<b.find("input[type=checkbox]").length&&(0===b.find("input[type=checkbox]:checked").length?g=!1:1===b.find("input[type=checkbox]:checked").length&&""===b.find("input[type=checkbox]:checked").val()&&(g=!1));0<b.find("input[type=radio]").length&&(0===b.find("input[type=radio]:checked").length&&(g=
!1),g&&b.find("input[type=radio]").each(function(){c(this).prop("checked")&&(""==c(this).val()||c(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&"-1"==c(this).val())&&(g=!1)}));g?b.removeClass("asp-invalid"):(b.addClass("asp-invalid"),a=!1)});a||this.n("searchsettings").find("button.asp_s_btn").prop("disabled",!0);this.n("searchsettings").find("button.asp_s_btn").prop("disabled",!1);return a},showArrowBox:function(a,b){let g=this;var f=c("body");let d=f.find(".asp_arrow_box");
0===d.length&&(f.append("<div class='asp_arrow_box'></div>"),d=f.find(".asp_arrow_box"),d.on("mouseout",function(){let l;null==(l=g.hideArrowBox)||l.call(g)}));f=c(a).offset().top-window.scrollY;var e=!1;let h=a;for(;h;)if(h=h.parentElement,null!=h&&"fixed"==window.getComputedStyle(h).position){e=!0;break}e?(d.css("position","fixed"),e=0):(d.css("position","absolute"),e=window.scrollY);d.html(b);d.css("display","block");b=a.getBoundingClientRect().left+c(a).outerWidth()/2-d.outerWidth()/2+"px";100<
f?(d.removeClass("asp_arrow_box_bottom"),d.css({top:e+a.getBoundingClientRect().top-d.outerHeight()-4+"px",left:b})):(d.addClass("asp_arrow_box_bottom"),d.css({top:e+a.getBoundingClientRect().bottom+4+"px",left:b}))},hideArrowBox:function(){c("body").find(".asp_arrow_box").css("display","none")},showNextInvalidFacetMessage:function(){0<this.n("searchsettings").find(".asp-invalid").length&&this.showArrowBox(this.n("searchsettings").find(".asp-invalid").first().get(0),this.n("searchsettings").find(".asp-invalid").first().data("asp_invalid_msg"))},
scrollToNextInvalidFacetMessage:function(){if(0<this.n("searchsettings").find(".asp-invalid").length){var a=this.n("searchsettings").find(".asp-invalid").first();if(!a.inViewPort(0))if("undefined"!=typeof a.get(0).scrollIntoView)a.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});else{a=a.offset().top-20;let b=c("#wpadminbar");0<b.length&&(a-=b.height());a=0>a?0:a;window.scrollTo({top:a,behavior:"smooth"})}}},settingsCheckboxToggle:function(a,b){b="undefined"==typeof b?!0:
b;let g=a,f=a.find('input[type="checkbox"]');a=parseInt(a.data("lvl"))+1;let d=0;for(;;){g=g.next();if(0<g.length&&"undefined"!=typeof g.data("lvl")&&parseInt(g.data("lvl"))>=a)b&&g.find('input[type="checkbox"]').prop("checked",f.prop("checked")),this.o.settings.hideChildren&&(f.prop("checked")?g.removeClass("hiddend"):g.addClass("hiddend"));else break;d++;if(400<d)break}}})})(WPD.dom);
(function(c){let k=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initDatePicker:function(){let a=this;WPD.intervalUntilExecute(function(b){function g(f,d,e,h,l){f=null!=e?b(e):b("#"+d.id);d=b(".asp_datepicker_hidden",b(f).parent()).val();e="";if(null==f.datepicker("getDate"))b(".asp_datepicker_hidden",b(f).parent()).val("");else{e=String(f.datepicker("getDate"));var n=new Date(e.match(/(.*?)00:/)[1].trim());e=String(n.getFullYear());let m=("0"+(n.getMonth()+1)).slice(-2);
n=("0"+String(n.getDate())).slice(-2);e=e+"-"+m+"-"+n;b(".asp_datepicker_hidden",b(f).parent()).val(e)}"undefined"!=typeof l&&null!=h||e==d||c(f.get(0)).trigger("change")}b(".asp_datepicker, .asp_datepicker_field",a.n("searchsettings").get(0)).each(function(){let f=b(".asp_datepicker_format",b(this).parent()).val(),d=this,e=b(this).val();b(this).removeClass("hasDatepicker");b(this).datepicker({changeMonth:!0,changeYear:!0,dateFormat:"yy-mm-dd",onSelect:g,beforeShow:function(){b("#ui-datepicker-div").addClass("asp-ui")}});
""==e?b(this).datepicker("setDate",""):b(this).datepicker("setDate",e);b(this).datepicker("option","dateFormat",f);g(null,null,d,!0);b(this).on("selectnochange",function(){g(null,null,d,!0)});b(this).on("keyup",function(){null==b(d).datepicker("getDate")&&b(".asp_datepicker_hidden",b(d).parent()).val("");b(d).datepicker("hide")})});if(k.isMobile()&&k.detectIOS())b(window).on("pageshow",function(f){f.originalEvent.persisted&&setTimeout(function(){b(".asp_datepicker, .asp_datepicker_field",a.n("searchsettings").get(0)).each(function(){let d=
b(this).datepicker("option","dateFormat");b(this).datepicker("option","dateFormat","yy-mm-dd");b(this).datepicker("setDate",b(this).next(".asp_datepicker_hidden").val());b(this).datepicker("option","dateFormat",d)})},100)})},function(){return k.whichjQuery("datepicker")})}})})(WPD.dom);
(function(c){let k=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initFacetEvents:function(){let a=this,b=null,g=null;c(".asp_custom_f input[type=text]:not(.asp_select2-search__field):not(.asp_datepicker_field):not(.asp_datepicker)",a.n("searchsettings")).on("input",function(f){let d=f.keyCode||f.which,e=this;a.ktype=f.type;13==d&&(f.preventDefault(),f.stopImmediatePropagation());if("number"==c(this).data("asp-type")&&""!=this.value){f=this.value.replaceAll(c(this).data("asp-tsep"),
"");let h=k.inputToFloat(this.value),l=this;l.value=h;h=h<parseFloat(c(this).data("asp-min"))?c(this).data("asp-min"):h;h=h>parseFloat(c(this).data("asp-max"))?c(this).data("asp-max"):h;clearTimeout(g);g=setTimeout(function(){l.value=k.addThousandSeparators(h,c(l).data("asp-tsep"))},400);if(h.toString()!==f)return!1}clearTimeout(b);b=setTimeout(function(){let h;null==(h=a.gaEvent)||h.call(a,"facet_change",{option_label:c(e).closest("fieldset").find("legend").text(),option_value:c(e).val()})},1400);
a.n("searchsettings").find("input[name=filters_changed]").val(1);a.setFilterStateInput(65);0!=a.o.trigger.facet&&a.searchWithCheck(240)});a.n("searchsettings").find(".asp-number-range[data-asp-tsep]").forEach(function(){this.value=k.addThousandSeparators(this.value,c(this).data("asp-tsep"))});0!=a.o.trigger.facet&&(c("select",a.n("searchsettings")).on("change slidechange",function(f){a.ktype=f.type;a.n("searchsettings").find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,
"facet_change",{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).find("option:checked").get().map(function(e){return e.text}).join()});a.setFilterStateInput(65);a.searchWithCheck(80);null!=a.sIsotope&&a.sIsotope.arrange()}),c("input:not([type=checkbox]):not([type=text]):not([type=radio])",a.n("searchsettings")).on("change slidechange",function(f){a.ktype=f.type;a.n("searchsettings").find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,"facet_change",
{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).val()});a.setFilterStateInput(65);a.searchWithCheck(80)}),c("input[type=radio]",a.n("searchsettings")).on("change slidechange",function(f){a.ktype=f.type;a.n("searchsettings").find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,"facet_change",{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).closest("label").text()});a.setFilterStateInput(65);a.searchWithCheck(80)}),
c("input[type=checkbox]",a.n("searchsettings")).on("asp_chbx_change",function(f){a.ktype=f.type;a.n("searchsettings").find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,"facet_change",{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).closest(".asp_option").find(".asp_option_label").text()+(c(this).prop("checked")?"(checked)":"(unchecked)")});a.setFilterStateInput(65);a.searchWithCheck(80)}),c("input.asp_datepicker, input.asp_datepicker_field",
a.n("searchsettings")).on("change",function(f){a.ktype=f.type;a.n("searchsettings").find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,"facet_change",{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).val()});a.setFilterStateInput(65);a.searchWithCheck(80)}),c('div[id*="-handles"]',a.n("searchsettings")).each(function(f){a.ktype=f.type;if("undefined"!=typeof this.noUiSlider)this.noUiSlider.on("change",function(d){let e="undefined"!=typeof this.target?
this.target:this,h;null==(h=a.gaEvent)||h.call(a,"facet_change",{option_label:c(e).closest("fieldset").find("legend").text(),option_value:d});a.n("searchsettings").find("input[name=filters_changed]").val(1);a.setFilterStateInput(65);a.searchWithCheck(80)})}))}})})(WPD.dom);
(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initNoUIEvents:function(){let k=this,a=k.nodes.searchsettings,b;a.find("div[class*=noui-slider-json]").each(function(g,f){let d=c(this).data("aspnoui");if("undefined"===typeof d)return!1;d=WPD.Base64.decode(d);if("undefined"===typeof d||""==d)return!1;let e=JSON.parse(d);Object.keys(e.links).forEach(function(h){e.links[h].target="#"+a.get(0).id+" "+e.links[h].target});if(0<c(e.node,a).length){b=c(e.node,a).get(0);g=c(g).parent().find(".asp_slider_hidden");
e.main.start=1<g.length?[g.first().val(),g.last().val()]:[g.first().val()];if("undefined"!==typeof noUiSlider)"undefined"!=typeof b.noUiSlider&&b.noUiSlider.destroy(),b.innerHTML="",noUiSlider.create(b,e.main);else return!1;k.noUiSliders[f]=b;b.noUiSlider.on("update",function(h,l){let n=h[l];l?e.links.forEach(function(m){let p=wNumb(m.wNumb);"upper"==m.handle&&(c(m.target,a).is("input")?c(m.target,a).val(n):c(m.target,a).html(p.to(parseFloat(n))));c(e.node,a).on("slide",function(q){q.preventDefault()})}):
e.links.forEach(function(m){let p=wNumb(m.wNumb);"lower"==m.handle&&(c(m.target,a).is("input")?c(m.target,a).val(n):c(m.target,a).html(p.to(parseFloat(n))));c(e.node,a).on("slide",function(q){q.preventDefault()})})})}})}})})(WPD.dom);
(function(c){let k=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initSettingsSwitchEvents:function(){let a=this;a.n("prosettings").on("click",function(){if(0==a.n("prosettings").data("opened")){let b;null==(b=a.showSettings)||b.call(a)}else{let b;null==(b=a.hideSettings)||b.call(a)}});if(k.isMobile()){if("open"==a.o.mobile.force_sett_state||"none"==a.o.mobile.force_sett_state&&1==a.o.settingsVisible){let b;null==(b=a.showSettings)||b.call(a,!1)}}else if(1==a.o.settingsVisible){let b;
null==(b=a.showSettings)||b.call(a,!1)}},initSettingsEvents:function(){let a=this,b,g=function(){"undefined"===typeof a.originalFormData&&(a.originalFormData=k.formData(c("form",a.n("searchsettings"))));a.n("searchsettings").off("mousedown touchstart mouseover",g)};a.n("searchsettings").on("mousedown touchstart mouseover",g);let f=function(d){if(0==c(d.target).closest(".asp_w").length&&0==a.att("blocking")&&!a.dragging&&0==c(d.target).closest(".ui-datepicker").length&&0==c(d.target).closest(".noUi-handle").length&&
0==c(d.target).closest(".asp_select2").length&&0==c(d.target).closest(".asp_select2-container").length){let e;null==(e=a.hideSettings)||e.call(a)}};a.documentEventHandlers.push({node:document,event:a.clickTouchend,handler:f});c(document).on(a.clickTouchend,f);a.n("searchsettings").on("click",function(){a.settingsChanged=!0});a.n("searchsettings").on(a.clickTouchend,function(d){a.dragging||a.updateHref();"undefined"==typeof d.target||c(d.target).hasClass("noUi-handle")?"click"==d.type&&d.stopImmediatePropagation():
d.stopImmediatePropagation()});c('.asp_option_cat input[type="checkbox"]',a.n("searchsettings")).on("asp_chbx_change",function(){a.settingsCheckboxToggle(c(this).closest(".asp_option_cat"))});c(".asp_option_cat",a.n("searchsettings")).each(function(d){a.settingsCheckboxToggle(c(d),!1)});c("div.asp_option",a.n("searchsettings")).on(a.mouseupTouchend,function(d){d.preventDefault();d.stopImmediatePropagation();if(a.dragging)return!1;c(this).find('input[type="checkbox"]').prop("checked",!c(this).find('input[type="checkbox"]').prop("checked"));
clearTimeout(b);let e=this;b=setTimeout(function(){c(e).find('input[type="checkbox"]').trigger("asp_chbx_change")},50)});c("div.asp_option",a.n("searchsettings")).on("keyup",function(d){d.preventDefault();d=d.keyCode||d.which;13!=d&&32!=d||c(this).trigger("mouseup")});c("fieldset.asp_checkboxes_filter_box",a.n("searchsettings")).each(function(){let d=!0;c(this).find('.asp_option:not(.asp_option_selectall) input[type="checkbox"]').each(function(){if(1==c(this).prop("checked"))return d=!1});d&&c(this).find('.asp_option_selectall input[type="checkbox"]').prop("checked",
!1).removeAttr("data-origvalue")});c("fieldset",a.n("searchsettings")).each(function(){c(this).find(".asp_option:not(.hiddend)").last().addClass("asp-o-last")});c('.asp_option_cat input[type="checkbox"], .asp_option_cff input[type="checkbox"]',a.n("searchsettings")).on("asp_chbx_change",function(){let d=c(this).data("targetclass");"string"==typeof d&&""!=d&&c("input."+d,a.n("searchsettings")).prop("checked",c(this).prop("checked"))})}})})(WPD.dom);
(function(c){let k=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initSettings:function(){if(!this.settingsInitialized){let a;null==(a=this.loadASPFonts)||a.call(this);let b;null==(b=this.initSettingsBox)||b.call(this);let g;null==(g=this.initSettingsEvents)||g.call(this);let f;null==(f=this.initButtonEvents)||f.call(this);let d;null==(d=this.initNoUIEvents)||d.call(this);let e;null==(e=this.initDatePicker)||e.call(this);let h;null==(h=this.initSelect2)||h.call(this);
let l;null==(l=this.initFacetEvents)||l.call(this)}},initSettingsBox:function(){let a=this,b=function(f){let d=a.n("searchsettings").get(0);a.nodes.searchsettings=a.nodes.searchsettings.clone();f.append(a.nodes.searchsettings);c(d).find("*[id]").forEach(function(e){0>e.id.indexOf("__original__")&&(e.id="__original__"+e.id)});a.n("searchsettings").find("*[id]").forEach(function(e){-1<e.id.indexOf("__original__")&&(e.id=e.id.replace("__original__",""))})},g;null==(g=a.initSettingsAnimations)||g.call(a);
1==a.o.compact.enabled&&"fixed"==a.o.compact.position||k.isMobile()&&1==a.o.mobile.force_sett_hover?(a.n("searchsettings").attr("id",a.n("searchsettings").attr("id").replace("probsettings","prosettings")),a.n("searchsettings").removeClass("asp_sb asp_sb_"+a.o.id+" asp_sb_"+a.o.rid).addClass("asp_s asp_s_"+a.o.id+" asp_s_"+a.o.rid),a.dynamicAtts.blocking=!1,b(c("body")),a.n("searchsettings").css({position:"absolute"}),a.dynamicAtts.blocking=!1):0<a.n("settingsAppend").length?0<a.n("settingsAppend").find(".asp_ss_"+
a.o.id).length?(a.nodes.searchsettings=a.nodes.settingsAppend.find(".asp_ss_"+a.o.id),"undefined"!==typeof a.nodes.searchsettings.get(0).referenced?++a.nodes.searchsettings.get(0).referenced:a.nodes.searchsettings.get(0).referenced=1):(0==a.att("blocking")&&(a.n("searchsettings").attr("id",a.n("searchsettings").attr("id").replace("prosettings","probsettings")),a.n("searchsettings").removeClass("asp_s asp_s_"+a.o.id+" asp_s_"+a.o.rid).addClass("asp_sb asp_sb_"+a.o.id+" asp_sb_"+a.o.rid),a.dynamicAtts.blocking=
!0),b(a.nodes.settingsAppend)):0==a.att("blocking")&&b(c("body"));a.n("searchsettings").get(0).id=a.n("searchsettings").get(0).id.replace("__original__","");a.detectAndFixFixedPositioning();a.settingsInitialized=!0},initSettingsAnimations:function(){this.settAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":this.animOptions.settings.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:this.animOptions.settings.dur+"ms"};
"fade"==this.animOptions.settings.anim&&(this.settAnim.showClass="asp_an_fadeIn",this.settAnim.hideClass="asp_an_fadeOut");"fadedrop"!=this.animOptions.settings.anim||this.att("blocking")?"fadedrop"==this.animOptions.settings.anim&&(this.settAnim.showClass="asp_an_fadeIn",this.settAnim.hideClass="asp_an_fadeOut"):(this.settAnim.showClass="asp_an_fadeInDrop",this.settAnim.hideClass="asp_an_fadeOutDrop");this.n("searchsettings").css({"-webkit-animation-duration":this.settAnim.duration+"ms","animation-duration":this.settAnim.duration+
"ms"})}})})(WPD.dom);
(function(a){a.fn.extend(window.WPD.ajaxsearchpro.plugin,{showVerticalResults:function(){this.showResultsBox();if(0<this.n("items").length){let b=this.n("items").length<this.o.itemscount?this.n("items").length:this.o.itemscount;b=0>=b?9999:b;var e=a(".asp_group_header",this.n("resultsDiv"));if(0==this.o.itemscount||this.n("items").length<=this.o.itemscount)this.n("results").css({height:"auto"});else if(1>this.call_num&&this.n("results").css({height:"30px"}),1>this.call_num){let c=0,d=0,f=0,h=0;this.n("items").each(function(){d+=
a(this).outerHeight(!0);a(this).outerHeight(!0)>h&&(h=a(this).outerHeight(!0));c++});f=h*b;f>d&&(f=d);c=1>c?1:c;d=d/c*b;0<e.length&&e.each(function(g,k){g=Array.prototype.slice.call(g.parentNode.children).indexOf(g);g-k-Math.floor(g/3)<b&&(f+=a(this).outerHeight(!0))});this.n("results").css({height:f+"px"})}this.n("items").last().addClass("asp_last_item");this.n("results").find(".asp_group_header").prev(".item").addClass("asp_last_item");1==this.o.highlight&&a("div.item",this.n("resultsDiv")).highlight(this.n("text").val().split(" "),
{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})}this.resize();0==this.n("items").length&&this.n("results").css({height:"auto"});1>this.call_num&&(this.n("results").get(0).scrollTop=0);if(this.o.preventBodyScroll){let b;e=a("body");let c=e.css("overflow"),d="undefined"===typeof e.attr("style");this.n("results").off("touchstart");this.n("results").off("touchend");this.n("results").on("touchstart",function(){clearTimeout(b);a("body").css("overflow","hidden")}).on("touchend",
function(){clearTimeout(b);b=setTimeout(function(){d?a("body").removeAttr("style"):a("body").css("overflow",c)},300)})}this.addAnimation();this.fixResultsPosition(!0);this.searching=!1}})})(WPD.dom);
(function(d){let h=window.WPD.ajaxsearchpro.helpers;d.fn.extend(window.WPD.ajaxsearchpro.plugin,{liveLoad:function(b,e,c,n,r){function q(l){let f=h.Hooks.applyFilters("asp/live_load/raw_data",l,a);var m=new DOMParser;let t=m.parseFromString(f,"text/html"),p=d(t);a.o.statistics&&a.stat_addKeyword(a.o.id,a.n("text").val());""!=f&&0<p.length&&0<p.find(g).length&&(f=f.replace(/&asp_force_reset_pagination=1/gmi,""),f=f.replace(/%26asp_force_reset_pagination%3D1/gmi,""),f=f.replace(/&#038;asp_force_reset_pagination=1/gmi,
""),h.isSafari()&&(f=f.replace(/srcset/gmi,"nosrcset")),f=h.Hooks.applyFilters("asp_live_load_html",f,a.o.id,a.o.iid),f=h.wp_hooks_apply_filters("asp_live_load_html",f,a.o.id,a.o.iid),p=d(m.parseFromString(f,"text/html")),m=p.find(g).get(0),m=h.Hooks.applyFilters("asp/live_load/replacement_node",m,a,k.get(0),f),null!=m&&k.get(0).parentNode.replaceChild(m,k.get(0)),k=d(g).first(),c&&(document.title=t.title,history.pushState({},null,e)),d(g).first().find(".woocommerce-ordering select.orderby").on("change",
function(){0<d(this).closest("form").length&&d(this).closest("form").get(0).submit()}),a.addHighlightString(d(g).find("a")),h.Hooks.applyFilters("asp/live_load/finished",e,a,g,k.get(0)),ASP.initialize(),a.lastSuccesfulSearch=d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim(),a.lastSearchData=f,a.setLiveLoadCache(l,b));a.n("s").trigger("asp_search_end",[a.o.id,a.o.iid,a.n("text").val(),f],!0,!0);let u,v;null==(v=(u=a).gaEvent)||v.call(u,"search_end",{results_count:"unknown"});a.hideLoader();
k.css("opacity",1);a.searching=!1;""!=a.n("text").val()&&a.n("proclose").css({display:"block"})}let g=b;if("body"==g||"html"==g)return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;let a=this;""!=ASP.pageHTML&&a.setLiveLoadCache(ASP.pageHTML,b);c="undefined"==typeof c?!0:c;n="undefined"==typeof n?!1:n;let w=".search-content #content #Content div[role=main] main[role=main] div.theme-content div.td-ss-main-content main.l-content #primary".split(" ");"#main"!=g&&w.unshift("#main");if(1>d(g).length&&(w.forEach(function(l,f){if(0<d(l).length)return g=l,!1}),1>d(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 k=d(g).first();a.searchAbort();k.css("opacity",.4);e=h.Hooks.applyFilters("asp/live_load/url",e,a,g,k.get(0));h.Hooks.applyFilters("asp/live_load/start",e,a,g,k.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=d.fn.ajax({url:e,method:"GET",success:function(l){q(l);a.isAutoP=!1},dataType:"html",fail:function(l){k.css("opacity",1);l.aborted||(k.html("This request has failed. Please check your connection."),a.hideLoader(),a.searching=!1,a.n("proclose").css({display:"block"}),a.isAutoP=!1)}})):window.WPD.intervalUntilExecute(function(){q(ASP.pageHTML)},function(){return""!=ASP.pageHTML})},usingLiveLoader:function(){return this._usingLiveLoader=
"undefined"==typeof this._usingLiveLoader?0<d(".asp_es_"+this.o.id).length||this.o.resPage.useAjax&&0<d(this.o.resPage.selector).length||this.o.wooShop.useAjax&&0<d(this.o.wooShop.selector).length||this.o.cptArchive.useAjax&&0<d(this.o.cptArchive.selector).length||this.o.taxArchive.useAjax&&0<d(this.o.taxArchive.selector).length:this._usingLiveLoader},getLiveURLbyBaseLocation(b){let e="asp_ls="+h.nicePhrase(this.n("text").val()),c="&";-1===b.indexOf("?")&&(c="?");b=b+c+e+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+
this.o.id+"&p_asp_data=1&"+d("form",this.n("searchsettings")).serialize();b=b.replace("?&","?");return b=b.replace("&&","&")},getCurrentLiveURL:function(){var b="asp_ls="+h.nicePhrase(this.n("text").val());let e="&",c=window.location.href;c=-1<c.indexOf("asp_ls=")?c.slice(0,c.indexOf("asp_ls=")):c;c=-1<c.indexOf("asp_ls&")?c.slice(0,c.indexOf("asp_ls&")):c;c=-1<c.indexOf("p_asid=")?c.slice(0,c.indexOf("p_asid=")):c;c=-1<c.indexOf("asp_")?c.slice(0,c.indexOf("asp_")):c;-1===c.indexOf("?")&&(e="?");
b=c+e+b+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+this.o.id+"&p_asp_data=1&"+d("form",this.n("searchsettings")).serialize();b=b.replace("?&","?");return b=b.replace("&&","&")},initLiveLoaderPopState:function(){let b=this;b.liveLoadCache=[];window.addEventListener("popstate",e=>{e=b.getLiveLoadCache();!1!==e&&(b.n("text").val(e.phrase),h.formData(d("form",b.n("searchsettings")),e.settings),b.resetNoUISliderFilters(),b.liveLoad(e.selector,document.location.href,!1,!1,e))});""==ASP.pageHTML&&
"undefined"===typeof ASP._ajax_page_html&&(ASP._ajax_page_html=!0,d.fn.ajax({url:b.currentPageURL,method:"GET",success:function(e){ASP.pageHTML=e},dataType:"html"}))},setLiveLoadCache:function(b,e){0==this.liveLoadCache.filter(c=>c.href==document.location.href).length&&this.liveLoadCache.push({href:b==ASP.pageHTML?this.currentPageURL:document.location.href,phrase:b==ASP.pageHTML?"":this.n("text").val(),selector:e,html:b,settings:b==ASP.pageHTML?this.originalFormData:h.formData(d("form",this.n("searchsettings")))})},
getLiveLoadCache:function(){let b=this.liveLoadCache.filter(e=>e.href==document.location.href);return 0<b.length?b[0]:!1}})})(WPD.dom);
WPD.dom._fn.plugin("ajaxsearchpro",window.WPD.ajaxsearchpro.plugin);
window._ASP_load=function(){let e=WPD.dom;window.ASP.instances={instances:[],get:function(a,b){this.clean();if("undefined"===typeof a||0==a)return this.instances;if("undefined"===typeof b){b=[];for(var c=0;c<this.instances.length;c++)this.instances[c].o.id==a&&b.push(this.instances[c]);return 0<b.length?b:!1}for(c=0;c<this.instances.length;c++)if(this.instances[c].o.id==a&&this.instances[c].o.iid==b)return this.instances[c];return!1},set:function(a){if(this.exist(a.o.id,a.o.iid))return!1;this.instances.push(a);
return!0},exist:function(a,b){this.clean();for(let c=0;c<this.instances.length;c++)if(this.instances[c].o.id==a&&("undefined"===typeof b||this.instances[c].o.iid==b))return!0;return!1},clean:function(){let a=[],b=this;this.instances.forEach(function(c,d){0==e(".asp_m_"+c.o.rid).length&&a.push(d)});a.forEach(function(c){"undefined"!==typeof b.instances[c]&&(b.instances[c].destroy(),b.instances.splice(c,1))})},destroy:function(a,b){let c=this.get(a,b);if(!1!==c)if(Array.isArray(c))c.forEach(function(d){d.destroy()}),
this.instances=[];else{let d=0;this.instances.forEach(function(f,g){f.o.id==a&&f.o.iid==b&&(d=g)});c.destroy();this.instances.splice(d,1)}}};window.ASP.initialized=!1;window.ASP.initializeSearchByID=function(a){let b=ASP.getInstances();if("undefined"!==typeof a&&"object"!=typeof a)if("undefined"!==typeof b[a]){let c=[];c[a]=b[a];b=c}else return!1;b.forEach(function(c,d){e.fn._(".asp_m_"+d).forEach(function(f){if("undefined"!=typeof f.hasAsp)return!0;f.hasAsp=!0;return e(f).ajaxsearchpro(c)})})};window.ASP.getInstances=
function(){window.ASP_INSTANCES="undefined"!==typeof window.ASP_INSTANCES?window.ASP_INSTANCES:[];let a=window.ASP_INSTANCES;e.fn._(".asp_init_data").forEach(function(b){let c=b.dataset.aspId,d;"undefined"!=typeof b.dataset.aspdata&&(d=WPD.Base64.decode(b.dataset.aspdata));if("undefined"===typeof d||""==d)return!0;a[c]=JSON.parse(d)});return a};window.ASP.initialize=function(a){if("undefined"==typeof ASP.version)return!1;if(window.IntersectionObserver)if(ASP.script_async_load||ASP.init_only_in_viewport){a=
document.querySelectorAll(".asp_w_container, .asp_m");if(a.length){let b=new IntersectionObserver(function(c){c.forEach(function(d){d.isIntersecting&&(ASP.initializeSearchByID(d.target.dataset.id),b.unobserve(d.target))})});a.forEach(function(c){b.observe(c)})}ASP.getInstances().forEach(function(b,c){1==b.compact.enabled&&"fixed"==b.compact.position&&ASP.initializeSearchByID(c)})}else ASP.initializeSearchByID(a);else ASP.initializeSearchByID(a);ASP.initializeMutateDetector();ASP.initializeHighlight();
ASP.initializeOtherEvents();ASP.initialized=!0};window.ASP.initializeHighlight=function(){if(this.highlight.enabled){let c=this.highlight.data;var a=""!=c.selector&&0<e(c.selector).length?c.selector:"article";a=0<e(a).length?a:"body";var b=new URLSearchParams(location.search);b=b.get("s")||b.get("asp_highlight");e(a).unhighlight({className:"asp_single_highlighted_"+c.id});null!==b&&""!=b.trim()&&(e(a).highlight(b.trim().split(" "),{element:"span",className:"asp_single_highlighted_"+c.id,wordsOnly:c.whole,
excludeParents:".asp_w, .asp-try"}),a=e(".asp_single_highlighted_"+c.id),c.scroll&&0<a.length&&(a=a.offset().top-120,b=e("#wpadminbar"),0<b.length&&(a-=b.height()),a+=c.scroll_offset,a=0>a?0:a,e("html").animate({scrollTop:a},500)));return!1}};window.ASP.initializeOtherEvents=function(){let a,b=this;e("body").on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]",
function(){clearTimeout(a);a=setTimeout(function(){b.initializeSearchByID()},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){b.initializeSearchByID()},10)})};window.ASP.initializeMutateDetector=function(){let a;"undefined"!=typeof ASP.detect_ajax&&1==ASP.detect_ajax&&(new MutationObserver(function(){clearTimeout(a);a=setTimeout(function(){ASP.initializeSearchByID()},500)})).observe(document.querySelector("body"),{subtree:!0,childList:!0})};
window.ASP.ready=function(){if("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)this.initialize();else e(document).on("DOMContentLoaded",this.initialize)};window.ASP.loadScriptStack=function(a){let b;0<a.length&&(b=document.createElement("script"),b.src=a.shift().src,b.onload=function(){0<a.length?window.ASP.loadScriptStack(a):window.ASP.ready()},document.body.appendChild(b))};window.ASP.init=function(){ASP.script_async_load?window.ASP.loadScriptStack(ASP.additional_scripts):
"undefined"!==typeof WPD.ajaxsearchpro&&window.ASP.ready()};window.WPD.intervalUntilExecute(window.ASP.init,function(){return"undefined"!=typeof window.ASP.version&&"undefined"!=e.fn.ajaxsearchpro})};(function(){-1===navigator.userAgent.indexOf("Chrome-Lighthouse")&&("undefined"!=typeof WPD&&"undefined"!=typeof WPD.dom?window._ASP_load():document.addEventListener("wpd-dom-core-loaded",window._ASP_load))})();