- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
134 KiB
JavaScript
Executable File
14 lines
134 KiB
JavaScript
Executable File
(function(){var ge={993:function(o,w){(function(j,H){typeof w=="object"&&typeof o=="object"?o.exports=H():typeof define=="function"&&define.amd?define("DoMini",[],H):typeof w=="object"?w.DoMini=H():j.DoMini=H()})(window,()=>(()=>{"use strict";var j={d:(n,c)=>{for(var u in c)j.o(c,u)&&!j.o(n,u)&&Object.defineProperty(n,u,{enumerable:!0,get:c[u]})},o:(n,c)=>Object.prototype.hasOwnProperty.call(n,c)},H={};let D;j.d(H,{default:()=>te}),window.DoMini===void 0?(D=function(n,c){return arguments[2]!==void 0?this.constructor.call(this,n,c):arguments.length!==1||typeof arguments[0]!="function"?new D(n,c,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[D]):window.addEventListener("DOMContentLoaded",()=>{arguments[0].apply(this,[D])}))},D.prototype=D.fn={constructor:function(n,c){if(this.length=0,c!==void 0){if(c instanceof D)return c.find(n);if(this.isValidNode(c)||typeof c=="string")return D(c).find(n)}else if(typeof n=="string"&&n!=="")this.push(...this._(n));else{if(n instanceof D)return n;this.isValidNode(n)&&this.push(n)}return this},_:function(n){return n.charAt(0)==="<"?D._fn.createElementsFromHTML(n):[...document.querySelectorAll(n)]},isValidNode:n=>n instanceof Element||n instanceof Document||n instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},D.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],D._fn={},D.version="0.2.8"):D=window.DoMini;const h=D;h.fn.get=function(n){return n===void 0?Array.from(this):this[n]},h.fn.extend=function(){for(let n=1;n<arguments.length;n++)for(let c in arguments[n])arguments[n].hasOwnProperty(c)&&(arguments[0][c]=arguments[n][c]);return arguments[0]},h.fn.forEach=function(n){return this.get().forEach(function(c,u,f){n.apply(c,[c,u,f])}),this},h.fn.each=function(n){return this.get().forEach(function(c,u,f){n.apply(c,[u,c,f])}),this},h.fn.css=function(n,c){for(const u of this)if(arguments.length===1){if(typeof n!="object")return window.getComputedStyle(u)[n];Object.keys(n).forEach(function(f){u.style[f]=n[f]})}else u.style[n]=c;return this},h.fn.hasClass=function(n){let c=this.get(0);return c!=null&&c.classList.contains(n)},h.fn.addClass=function(n){let c=n;return typeof n=="string"&&(c=n.split(" ")),c=c.filter(function(u){return u.trim()!==""}),c.length>0&&this.forEach(function(u){u.classList.add.apply(u.classList,c)}),this},h.fn.removeClass=function(n){if(n!==void 0){let c=n;typeof n=="string"&&(c=n.split(" ")),c=c.filter(function(u){return u.trim()!==""}),c.length>0&&this.forEach(function(u){u.classList.remove.apply(u.classList,c)})}else this.forEach(function(c){c.classList.length>0&&c.classList.remove.apply(c.classList,c.classList)});return this},h.fn.isVisible=function(){let n,c=this.get(0),u=!0;for(;c!==null;){if(n=window.getComputedStyle(c),n.display==="none"||n.visibility==="hidden"||parseInt(n.opacity)===0){u=!1;break}c=c.parentElement}return u},h.fn.val=function(n){let c;if(arguments.length===1){for(const u of this)if(u.type==="select-multiple"){n=typeof n=="string"?n.split(","):n;for(let f,m=0,v=u.options.length;m<v;m++)f=u.options[m],f.selected=n.indexOf(f.value)!==-1}else u.value=n;c=this}else{let u=this.get(0);u!=null&&(c=u.type==="select-multiple"?Array.prototype.map.call(u.selectedOptions,function(f){return f.value}):u.value)}return c},h.fn.attr=function(n,c){let u;for(const f of this)if(arguments.length===2)f.setAttribute(n,c),u=this;else{if(typeof n!="object"){u=f.getAttribute(n);break}Object.keys(n).forEach(function(m){f.setAttribute(m,n[m])})}return u},h.fn.removeAttr=function(n){for(const c of this)c.removeAttribute(n);return this},h.fn.prop=function(n,c){let u;for(const f of this){if(arguments.length!==2){u=f[n]!==void 0?f[n]:null;break}f[n]=c}return arguments.length===2?this:u},h.fn.data=function(n,c){const u=n.replace(/-([a-z])/g,function(f){return f[1].toUpperCase()});if(arguments.length===2){for(const f of this)f!=null&&(f.dataset[u]=c);return this}{let f=this.get(0);return f!=null&&f.dataset[u]!==void 0?f.dataset[u]:""}},h.fn.html=function(n){if(arguments.length===1){for(const c of this)c.innerHTML=n;return this}{let c=this.get(0);return c==null?"":c.innerHTML}},h.fn.text=function(n){if(arguments.length===1){for(const c of this)c.textContent=n;return this}{let c=this.get(0);return c==null?"":c.textContent}},h.fn.position=function(){let n=this.get(0);return n!=null?{top:n.offsetTop,left:n.offsetLeft}:{top:0,left:0}},h.fn.offset=function(){let n=this.get(0);return n!=null?h._fn.hasFixedParent(n)?n.getBoundingClientRect():h._fn.absolutePosition(n):{top:0,left:0}},h.fn.outerWidth=function(n){n=n||!1;let c=this.get(0);return c!=null?n?parseInt(c.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(c.offsetWidth):0},h.fn.outerHeight=function(n){n=n||!1;let c=this.get(0);return c!=null?n?parseInt(c.offsetHeight)+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(c.offsetHeight):0},h.fn.noPaddingHeight=function(n){return n=n||!1,this.length>0?n?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},h.fn.noPaddingWidth=function(n){return n=n||!1,this.length>0?n?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},h.fn.innerWidth=function(){let n=this.get(0);if(n!=null){let c=window.getComputedStyle(n);return this.outerWidth()-parseFloat(c.borderLeftWidth)-parseFloat(c.borderRightWidth)}return 0},h.fn.innerHeight=function(){let n=this.get(0);if(n!=null){let c=window.getComputedStyle(n);return this.outerHeight()-parseFloat(c.borderTopWidth)-parseFloat(c.borderBottomtWidth)}return 0},h.fn.width=function(){return this.outerWidth()},h.fn.height=function(){return this.outerHeight()},h.fn.on=function(){let n=arguments,c=function(f,m){let v;if(m.type==="mouseenter"||m.type==="mouseleave"||m.type==="mouseover"){let b=document.elementFromPoint(m.clientX,m.clientY);if(!b.matches(f[1]))for(;(b=b.parentElement)&&!b.matches(f[1]););b!=null&&(v=h(b))}else v=h(m.target).closest(f[1]);if(v!=null&&v.closest(this).length>0){let b=[];if(b.push(m),f[4]!==void 0)for(let y=4;y<f.length;y++)b.push(f[y]);f[2].apply(v.get(0),b)}},u=n[0].split(" ");for(let f=0;f<u.length;f++){let m=u[f];if(typeof n[1]=="string")this.forEach(function(v){if(!h._fn.hasEventListener(v,m,n[2])){let b=c.bind(v,n);v.addEventListener(m,b,n[3]),v._domini_events=v._domini_events===void 0?[]:v._domini_events,v._domini_events.push({type:m,selector:n[1],func:b,trigger:n[2],args:n[3]})}});else for(let v=0;v<u.length;v++){let b=u[v];this.forEach(function(y){h._fn.hasEventListener(y,b,n[1])||(y.addEventListener(b,n[1],n[2]),y._domini_events=y._domini_events===void 0?[]:y._domini_events,y._domini_events.push({type:b,func:n[1],trigger:n[1],args:n[2]}))})}}return this},h.fn.off=function(n,c){return this.forEach(function(u){if(u._domini_events!==void 0&&u._domini_events.length>0)if(n===void 0){let f;for(;f=u._domini_events.pop();)u.removeEventListener(f.type,f.func,f.args);u._domini_events=[]}else n.split(" ").forEach(function(f){let m,v=[];for(;m=u._domini_events.pop();)m.type!==f||c!==void 0&&m.trigger!==c?v.push(m):u.removeEventListener(f,m.func,m.args);u._domini_events=v})}),this},h.fn.offForced=function(){let n=this;return this.forEach(function(c,u){let f=c.cloneNode(!0);c.parentNode.replaceChild(f,c),n[u]=f}),this},h.fn.trigger=function(n,c,u,f){return u=u||!1,f=f||!1,this.forEach(function(m){let v=!1;if(f&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(m,"events")!==void 0&&jQuery._data(m,"events")[n]!==void 0&&(jQuery(m).trigger(n,c),v=!0),!v&&u){let b=new Event(n);b.detail=c,m.dispatchEvent(b)}if(m._domini_events!==void 0)m._domini_events.forEach(function(b){if(b.type===n){let y=new Event(n);b.trigger.apply(m,[y].concat(c))}});else{let b=!1,y=m;for(;y=y.parentElement,y!=null&&(y._domini_events!==void 0&&y._domini_events.forEach(function(C){if(C.selector!==void 0){let T=h(y).find(C.selector);if(T.length>0&&T.get().indexOf(m)>=0&&C.type===n){let O=new Event(n);C.trigger.apply(m,[O].concat(c)),b=!0}}}),!b););}}),this},h.fn.clear=function(){for(const n of this)delete n._domini_events;return this},h.fn.clone=function(){let n=[];for(const c of this)n.push(c.cloneNode(!0));return h().add(n)},h.fn.detach=function(n){let c=this,u=[];n!==void 0&&(c=this.find(n));for(const f of c)f.parentElement!=null&&u.push(f.parentElement.removeChild(f));return h().add(u)},h.fn.remove=function(n){return this.detach(n).off().clear()},h.fn.prepend=function(n){if((n=h._fn.elementArrayFromAny(n)).length>0)for(const c of this)for(const u of n)c.insertBefore(u,c.children[0]);return this},h.fn.append=function(n){if((n=h._fn.elementArrayFromAny(n)).length>0)for(const c of this)for(const u of n)c.appendChild(u);return this},h.fn.is=function(n){let c=!1;for(const u of this)if(u.matches(n)){c=!0;break}return c},h.fn.parent=function(n){let c=[];for(const u of this){let f=u.parentElement;typeof n=="string"&&(f==null||f.matches(n)||(f=null)),c.push(f)}return h().add(c)},h.fn.copy=function(n,c){let u,f,m;if(typeof n!="object"||n===null)return u=n,u;for(f in u=new n.constructor,n)n.hasOwnProperty(f)&&(m=typeof n[f],c&&m==="object"&&n[f]!==null?u[f]=this.copy(n[f]):u[f]=n[f]);return u},h.fn.first=function(){return h(this[0])},h.fn.last=function(){return h(this[this.length-1])},h.fn.prev=function(n){let c=[];for(const u of this){let f;if(typeof n=="string")for(f=u.previousElementSibling;f!=null;){if(f.matches(n)){c.push(f);break}f=f.previousElementSibling}else c.push(u.previousElementSibling)}return h(null).add(c)},h.fn.next=function(n){let c=[];for(const u of this){let f;if(typeof n=="string")for(f=u.nextElementSibling;f!=null;){if(f.matches(n)){c.includes(f)||c.push(f);break}f=f.nextElementSibling}else c.push(u.nextElementSibling)}return h(null).add(c)},h.fn.closest=function(n){let c=[];for(let u of this)if(typeof n=="string"&&n!==""){for(;!u.matches(n)&&(u=u.parentElement););c.includes(u)||c.push(u)}else{if((n=n instanceof h?n.get(0):n)instanceof Element)for(;u!==n&&(u=u.parentElement););else u=null;c.includes(u)||c.push(u)}return h().add(c)},h.fn.add=function(n){let c=h._fn.elementArrayFromAny(n);for(const u of c)Array.from(this).includes(u)||this.push(u);return this},h.fn.find=function(n){const c=new h;if(typeof n=="string"){let u=[];this.get().forEach(function(f){const m=f.querySelectorAll?.(n)??[];u=u.concat(Array.from(m))}),u.length>0&&c.add(u)}return c},h._fn.bodyTransform=function(){let n=0,c=0;if(typeof WebKitCSSMatrix<"u"){let u=window.getComputedStyle(document.body);if(u.transform!==void 0){let f=new WebKitCSSMatrix(u.transform);f.m41!=="undefined"&&(n=f.m41),f.m42!=="undefined"&&(c=f.m42)}}return{x:n,y:c}},h._fn.bodyTransformY=function(){return this.bodyTransform().y},h._fn.bodyTransformX=function(){return this.bodyTransform().x},h._fn.hasFixedParent=function(n){if(h._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(n).position=="fixed")return!0;while(n=n.parentElement);return!1},h._fn.hasEventListener=function(n,c,u){if(n._domini_events===void 0)return!1;for(let f=0;f<n._domini_events.length;f++)if(n._domini_events[f].trigger===u&&n._domini_events[f].type===c)return!0;return!1},h._fn.allDescendants=function(n){let c=[],u=this;return Array.isArray(n)||(n=[n]),n.forEach(function(f){for(let m=0;m<f.childNodes.length;m++){let v=f.childNodes[m];c.push(v),c=c.concat(u.allDescendants(v))}}),c},h._fn.createElementsFromHTML=function(n){let c=document.createElement("template");return c.innerHTML=n.replace(/(\r\n|\n|\r)/gm,""),[...c.content.childNodes]},h._fn.elementArrayFromAny=function(n){if(typeof n=="string")n=h(n).get();else if(n instanceof h)n=n.get();else if(n instanceof Element)n=[n];else{if(!(n instanceof Array))return[];n=n.filter(c=>c instanceof Element)}return n},h._fn.ElementArrayFromAny=h._fn.elementArrayFromAny,h._fn.absolutePosition=function(n){if(!n.getClientRects().length)return{top:0,left:0};let c=n.getBoundingClientRect(),u=n.ownerDocument.defaultView;return{top:c.top+u.pageYOffset,left:c.left+u.pageXOffset}},h._fn.plugin=function(n,c){h.fn[n]=function(u){return u!==void 0&&c[u]?c[u].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach(function(f){f["domini_"+n]=Object.create(c).init(u,f)})}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const q=h;h.fn.animate=function(n,c,u){c=c||200,u=u||"easeInOutQuad";for(const f of this){let m,v,b,y,C,T=0,O=60,P={},R={};if(b=this.prop("_domini_animations"),b=b??[],n===!1)b.forEach(function(I){clearInterval(I)});else{let I=function(){T++,T>m?clearInterval(y):(v=C(T/m),Object.keys(R).forEach(function(E){E.indexOf("scroll")>-1?f[E]=P[E]+R[E]*v:f.style[E]=P[E]+R[E]*v+"px"}))};C=h.fn.animate.easing[u]??h.fn.animate.easing.easeInOutQuad,Object.keys(n).forEach(function(E){E.indexOf("scroll")>-1?(P[E]=f[E],R[E]=n[E]-P[E]):(P[E]=parseInt(window.getComputedStyle(f)[E]),R[E]=n[E]-P[E])}),m=c/1e3*O,y=setInterval(I,1e3/O),b.push(y),this.prop("_domini_animations",b)}}return this},h.fn.animate.easing={linear:function(n){return n},easeInOutQuad:function(n){return n<.5?2*n*n:1-Math.pow(-2*n+2,2)/2},easeOutQuad:function(n){return 1-(1-n)*(1-n)}},h.fn.unhighlight=function(n){let c={className:"highlight",element:"span"};return h.fn.extend(c,n),this.find(c.element+"."+c.className).forEach(function(){let u=this.parentNode;u.replaceChild(this.firstChild,this),u.normalize()})},h.fn.highlight=function(n,c){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const u=h,f={...this.defaults,...c};if(n.constructor===String&&(n=[n]),(n=n.filter(function(C){return C!==""})).forEach(function(C,T,O){O[T]=C.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),n.length===0)return this;let m=f.caseSensitive?"":"i",v="("+n.join("|")+")";f.wordsOnly&&(v="(?:,|^|\\s)"+v+"(?:,|$|\\s)");let b=new RegExp(v,m);function y(C,T,O,P,R){if(R=R===""?u.fn.highlight.defaults:R,C.nodeType===3){if(!u(C.parentNode).is(R)){let I=C.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(T);if(I){let E,Q=document.createElement(O||"span");Q.className=P||"highlight",E=/\.|,|\s/.test(I[0].charAt(0))?I.index+1:I.index;let Y=C.splitText(E);Y.splitText(I[1].length);let J=Y.cloneNode(!0);return Q.appendChild(J),Y.parentNode.replaceChild(Q,Y),1}}}else if(C.nodeType===1&&C.childNodes&&!/(script|style)/i.test(C.tagName)&&!u(C).closest(R).length>0&&(C.tagName!==O.toUpperCase()||C.className!==P))for(let I=0;I<C.childNodes.length;I++)I+=y(C.childNodes[I],T,O,P,R);return 0}return this.forEach(function(C){y(C,b,f.element,f.className,f.excludeParents)})},h.fn.serialize=function(){let n=this.get(0);if(!n||n.nodeName!=="FORM")return"";let c,u,f=[];for(c=n.elements.length-1;c>=0;c-=1)if(n.elements[c].name!=="")switch(n.elements[c].nodeName){case"INPUT":switch(n.elements[c].type){case"checkbox":case"radio":n.elements[c].checked&&f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].value));break;case"file":break;default:f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].value))}break;case"TEXTAREA":f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].value));break;case"SELECT":switch(n.elements[c].type){case"select-one":f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].value));break;case"select-multiple":for(u=n.elements[c].options.length-1;u>=0;u-=1)n.elements[c].options[u].selected&&f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].options[u].value))}break;case"BUTTON":switch(n.elements[c].type){case"reset":case"submit":case"button":f.push(n.elements[c].name+"="+encodeURIComponent(n.elements[c].value))}}return f.join("&")},h.fn.serializeObject=function(n,c){let u,f=[];for(u in n)if(n.hasOwnProperty(u)){let m=c?c+"["+u+"]":u,v=n[u];f.push(v!==null&&typeof v=="object"?h.fn.serializeObject(v,m):encodeURIComponent(m)+"="+encodeURIComponent(v))}return f.join("&")},h.fn.inViewPort=function(n,c){let u,f,m=this.get(0);if(m==null)return!1;n=n===void 0?0:n,c=c===void 0?window:typeof c=="string"?document.querySelector(c):c;let v=m.getBoundingClientRect(),b=v.top,y=v.bottom,C=v.left,T=v.right,O=!1;if(c==null&&(c=window),c===window)u=window.innerWidth||0,f=window.innerHeight||0;else{u=c.clientWidth,f=c.clientHeight;let P=c.getBoundingClientRect();b-=P.top,y-=P.top,C-=P.left,T-=P.left}return n=~~Math.round(parseFloat(n)),T<=0||C>=u||(O=n>0?b>=n&&y<f-n:(y>0&&b<=f-n)|(b<=0&&y>n)),O},h.fn.ajax=function(n){if((n=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},n)).cors==="cors"){let c=new XMLHttpRequest;return c.onreadystatechange=function(){n.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&n.success(this.responseText),n.fail!=null&&this.readyState===4&&this.status>=400&&n.fail(this)},c.open(n.method.toUpperCase(),n.url,!0),c.setRequestHeader("Content-type",n.contentType),c.setRequestHeader("Accept",n.accept),c.send(this.serializeObject(n.data)),c}{let c="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){let m=16*Math.random()|0;return(f==="x"?m:3&m|8).toString(16)}).replaceAll("-","");h.fn[c]=function(){n.success.apply(this,arguments),delete h.fn[n.data.fn]},n.data.callback="DoMini.fn."+c,n.data.fn=c;let u=document.createElement("script");u.type="text/javascript",u.src=n.url+"?"+this.serializeObject(n.data),u.onload=function(){this.remove()},document.body.appendChild(u)}};const te=q;return H.default})())}},ee={};function W(o){var w=ee[o];if(w!==void 0)return w.exports;var j=ee[o]={exports:{}};return ge[o].call(j.exports,j,j.exports,W),j.exports}(function(){W.n=function(o){var w=o&&o.__esModule?function(){return o.default}:function(){return o};return W.d(w,{a:w}),w}})(),function(){W.d=function(o,w){for(var j in w)W.o(w,j)&&!W.o(o,j)&&Object.defineProperty(o,j,{enumerable:!0,get:w[j]})}}(),function(){W.o=function(o,w){return Object.prototype.hasOwnProperty.call(o,w)}}();var me={};(function(){"use strict";var o=W(993),w=W.n(o),H={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){return btoa(this._utf8_encode(e))},decode:function(e){return this._utf8_decode(atob(e.replace(/[^A-Za-z0-9\+\/\=]/g,"")))},_utf8_encode:function(e){e=e.replace(/\r\n/g,`
|
|
`);let t="";for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);a<128?t+=String.fromCharCode(a):a>127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(a&63|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(a&63|128))}return t},_utf8_decode:function(e){let t="",i=0,a=0,r,s;for(;i<e.length;)a=e.charCodeAt(i),a<128?(t+=String.fromCharCode(a),i++):a>191&&a<224?(r=e.charCodeAt(i+1),t+=String.fromCharCode((a&31)<<6|r&63),i+=2):(r=e.charCodeAt(i+1),s=e.charCodeAt(i+2),t+=String.fromCharCode((a&15)<<12|(r&63)<<6|s&63),i+=3);return t}};const D={filters:{},addFilter:function(e,t,i,a){i=typeof i>"u"?10:i,a=typeof a>"u"?null:a,D.filters[e]=D.filters[e]||[],D.filters[e].push({priority:i,scope:a,callback:t})},removeFilter:function(e,t){typeof D.filters[e]<"u"&&(typeof t>"u"?D.filters[e]=[]:D.filters[e].forEach(function(i,a){i.callback===t&&D.filters[e].splice(a,1)}))},applyFilters:function(e){let t=[],i=Array.prototype.slice.call(arguments),a=arguments[1];return typeof D.filters[e]<"u"&&D.filters[e].length>0&&(D.filters[e].forEach(function(r){t[r.priority]=t[r.priority]||[],t[r.priority].push({scope:r.scope,callback:r.callback})}),i.splice(0,2),t.forEach(function(r){r.forEach(function(s){a=s.callback.apply(s.scope,[a].concat(i))})})),a}};var h=D;function q(e,t,i=100,a=50){let r,s=0,l=typeof t=="function"?t():t;if(l===!1)r=setInterval(function(){if(l=typeof t=="function"?t():t,s++,s>a)return clearInterval(r),!1;if(l!==!1)return clearInterval(r),e(l)},i);else return e(l)}/**
|
|
* swiped-events.js - v@version@
|
|
* Pure JavaScript swipe events
|
|
* https://github.com/john-doherty/swiped-events
|
|
* @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
|
|
* @author John Doherty <www.johndoherty.info>
|
|
* @license MIT
|
|
*/(function(e,t){"use strict";typeof e.CustomEvent!="function"&&(e.CustomEvent=function(S,k){k=k||{bubbles:!1,cancelable:!1,detail:void 0};var A=t.createEvent("CustomEvent");return A.initCustomEvent(S,k.bubbles,k.cancelable,k.detail),A},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",g,!1),t.addEventListener("touchmove",x,!1),t.addEventListener("touchend",p,!1);var i=null,a=null,r=null,s=null,l=null,d=null;function p(S){if(d===S.target){var k=parseInt(_(d,"data-swipe-threshold","20"),10),A=parseInt(_(d,"data-swipe-timeout","500"),10),L=Date.now()-l,N="",he=S.changedTouches||S.touches||[];if(Math.abs(r)>Math.abs(s)?Math.abs(r)>k&&L<A&&(r>0?N="swiped-left":N="swiped-right"):Math.abs(s)>k&&L<A&&(s>0?N="swiped-up":N="swiped-down"),N!==""){var pe={dir:N.replace(/swiped-/,""),xStart:parseInt(i,10),xEnd:parseInt((he[0]||{}).clientX||-1,10),yStart:parseInt(a,10),yEnd:parseInt((he[0]||{}).clientY||-1,10)};d.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:pe})),d.dispatchEvent(new CustomEvent(N,{bubbles:!0,cancelable:!0,detail:pe}))}i=null,a=null,l=null}}function g(S){S.target.getAttribute("data-swipe-ignore")!=="true"&&(d=S.target,l=Date.now(),i=S.touches[0].clientX,a=S.touches[0].clientY,r=0,s=0)}function x(S){if(!(!i||!a)){var k=S.touches[0].clientX,A=S.touches[0].clientY;r=i-k,s=a-A}}function _(S,k,A){for(;S&&S!==t.documentElement;){var L=S.getAttribute(k);if(L)return L;S=S.parentNode}return A}})(window,document),window.WPD=window.WPD||{},window.WPD.dom=o,window.WPD.domini=window.WPD.dom,window.WPD.DoMini=window.WPD.dom,window.DoMini=window.WPD.dom,window.WPD.Base64=window.WPD.Base64||H,window.WPD.Hooks=window.WPD.Hooks||h,window.WPD.intervalUntilExecute=window.WPD.intervalUntilExecute||q;var n=new function(){this.helpers={},this.plugin={},this.addons={addons:[],add:function(e){if(this.addons.indexOf(e)===-1){let t=this.addons.push(e);this.addons[t-1].init()}},remove:function(e){this.addons.filter(function(t){return t.name===e?(typeof t.destroy<"u"&&t.destroy(),!1):!0})}}};n.helpers.Hooks=window.WPD.Hooks,n.helpers.deviceType=function(){let e=window.innerWidth;return e<=640?"phone":e<=1024?"tablet":"desktop"},n.helpers.detectIOS=function(){return typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1},n.helpers.isMobile=function(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}},n.helpers.isTouchDevice=function(){return"ontouchstart"in window},n.helpers.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},n.helpers.escapeHtml=function(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")},n.helpers.whichjQuery=function(e){let t=!1;return typeof window.$<"u"&&(typeof e>"u"||typeof window.$.fn[e]<"u")&&(t=window.$),t===!1&&typeof window.jQuery<"u"&&(t=window.jQuery,(typeof e>"u"||typeof window.jQuery.fn[e]<"u")&&(t=window.jQuery)),t},n.helpers.formData=function(e,t){let i=this,a=e.find("input,textarea,select,button").get();return arguments.length===1?(t={},a.forEach(function(r){r.name&&!r.disabled&&(r.checked||/select|textarea/i.test(r.nodeName)||/text/i.test(r.type)||o(r).hasClass("hasDatepicker")||o(r).hasClass("asp_slider_hidden"))&&(t[r.name]===void 0&&(t[r.name]=[]),o(r).hasClass("hasDatepicker")?t[r.name].push(o(r).parent().find(".asp_datepicker_hidden").val()):t[r.name].push(o(r).val()))}),JSON.stringify(t)):(typeof t!="object"&&(t=JSON.parse(t)),a.forEach(function(r){if(r.name)if(t[r.name]){let s=t[r.name],l=o(r);if(Object.prototype.toString.call(s)!=="[object Array]"&&(s=[s]),r.type==="checkbox"||r.type==="radio"){let d=l.val(),p=!1;for(let g=0;g<s.length;g++)if(s[g]===d){p=!0;break}l.prop("checked",p)}else l.val(s[0]),o(r).hasClass("asp_gochosen")||o(r).hasClass("asp_goselect2")?WPD.intervalUntilExecute(function(d){d(r).trigger("change.asp_select2")},function(){return i.whichjQuery("asp_select2")},50,3):o(r).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(d){let p=s[0],g=d(l.get(0)).datepicker("option","dateFormat");d(l.get(0)).datepicker("option","dateFormat","yy-mm-dd"),d(l.get(0)).datepicker("setDate",p),d(l.get(0)).datepicker("option","dateFormat",g),d(l.get(0)).trigger("selectnochange")},function(){return i.whichjQuery("datepicker")},50,3)}else(r.type==="checkbox"||r.type==="radio")&&o(r).prop("checked",!1)}),e)},n.helpers.submitToUrl=function(e,t,i,a){let r;r=o('<form style="display: none;" />'),r.attr("action",e),r.attr("method",t),o("body").append(r),typeof i<"u"&&i!==null&&Object.keys(i).forEach(function(s){let l=i[s],d=o('<input type="hidden" />');d.attr("name",s),d.attr("value",l),r.append(d)}),typeof a<"u"&&a==="new"&&r.attr("target","_blank"),r.get(0).submit()},n.helpers.openInNewTab=function(e){Object.assign(document.createElement("a"),{target:"_blank",href:e}).click()},n.helpers.isScrolledToBottom=function(e,t){return e.scrollHeight-e.scrollTop-o(e).outerHeight()<t},n.helpers.getWidthFromCSSValue=function(e,t){let i=100,a;return e=e+"",e.indexOf("px")>-1?a=parseInt(e,10):e.indexOf("%")>-1&&typeof t<"u"&&t!=null?a=Math.floor(parseInt(e,10)/100*t):a=parseInt(e,10),a<100?i:a},n.helpers.nicePhrase=function(e){return encodeURIComponent(e).replace(/\%20/g,"+")},n.helpers.inputToFloat=function(e){return e.replace(/^[.]/g,"").replace(/[^0-9.-]/g,"").replace(/^[-]/g,"x").replace(/[-]/g,"").replace(/[x]/g,"-").replace(/(\..*?)\..*/g,"$1")},n.helpers.addThousandSeparators=function(e,t){return t!==""?(t=t||",",String(e).replace(/(?:^|[^.\d])\d+/g,function(i){return i.replace(/\B(?=(?:\d{3})+\b)/g,t)})):e},n.helpers.decodeHTMLEntities=function(e){let t=document.createElement("div");return e&&typeof e=="string"&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),t.innerHTML=e,e=t.textContent,t.textContent=""),e},n.helpers.isScrolledToRight=function(e){return e.scrollWidth-o(e).outerWidth()===e.scrollLeft},n.helpers.isScrolledToLeft=function(e){return e.scrollLeft===0};var c=null;n.plugin.addAnimation=function(){let e=this,t=0,i=1,a=25,r=!0;if(e.call_num>0||e._no_animations)return e.n("results").find(".item, .asp_group_header").removeClass("opacityZero").removeClass("asp_an_"+e.animOptions.items),!1;e.n("results").find(".item, .asp_group_header").forEach(function(){let s=this;if(i===1&&(r=o(s).inViewPort(0)),i>1&&r&&!o(s).inViewPort(0)||i>80)return o(s).removeClass("opacityZero"),!0;if(e.o.resultstype==="isotopic"&&i>e.il.itemsPerPage){o(s).removeClass("opacityZero");return}setTimeout(function(){o(s).addClass("asp_an_"+e.animOptions.items),o(s).removeClass("opacityZero")},t+a),t=t+45,i++})},n.plugin.removeAnimation=function(){let e=this;this.n("items").forEach(function(){o(this).removeClass("asp_an_"+e.animOptions.items)})};var u=null;let f=n.helpers;n.plugin.setFilterStateInput=function(e){let t=this;typeof e>"u"&&(e=65);let i=function(){JSON.stringify(t.originalFormData)!==JSON.stringify(f.formData(o("form",t.n("searchsettings"))))?t.n("searchsettings").find("input[name=filters_initial]").val(0):t.n("searchsettings").find("input[name=filters_initial]").val(1)};e===0?i():setTimeout(function(){i()},e)},n.plugin.resetSearchFilters=function(){let e=this;f.formData(o("form",e.n("searchsettings")),e.originalFormData),e.resetNoUISliderFilters(),typeof e.select2jQuery<"u"&&e.select2jQuery(e.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2"),e.n("text").val(""),e.n("textAutocomplete").val(""),e.n("proloading").css("display","none"),e.hideLoader(),e.searchAbort(),e.setFilterStateInput(0),e.n("searchsettings").trigger("set_option_checked")},n.plugin.resetNoUISliderFilters=function(){this.noUiSliders.length>0&&this.noUiSliders.forEach(function(e){if(typeof e.noUiSlider<"u"){let t=[];o(e).parent().find(".asp_slider_hidden").forEach(function(i){t.push(o(i).val())}),t.length>0&&e.noUiSlider.set(t)}})};var m=null;n.plugin.showMoreResLoader=function(){this.n("resultsDiv").addClass("asp_more_res_loading")},n.plugin.showLoader=function(e){let t=this;if(e=typeof e<"u"?e:!1,t.o.loaderLocation!=="none"){if(!t.n("search").hasClass("hiddend")&&t.o.loaderLocation!=="results"&&t.n("proloading").css({display:"block"}),e!==!1)return!1;(t.n("search").hasClass("hiddend")&&t.o.loaderLocation!=="search"||!t.n("search").hasClass("hiddend")&&(t.o.loaderLocation==="both"||t.o.loaderLocation==="results"))&&(t.usingLiveLoader()||(t.n("resultsDiv").find(".asp_results_top").length>0&&t.n("resultsDiv").find(".asp_results_top").css("display","none"),t.showResultsBox(),o(".asp_res_loader",t.n("resultsDiv")).removeClass("hiddend"),t.n("results").css("display","none"),t.n("showmoreContainer").css("display","none"),typeof t.hidePagination<"u"&&t.hidePagination()))}},n.plugin.hideLoader=function(){let e=this;e.n("proloading").css({display:"none"}),o(".asp_res_loader",e.n("resultsDiv")).addClass("hiddend"),e.n("results").css("display",""),e.n("resultsDiv").removeClass("asp_more_res_loading")};var v=null;n.plugin.loadASPFonts=function(){ASP.font_url!==!1&&(new FontFace("asppsicons2","url("+ASP.font_url+")",{style:"normal",weight:"normal",display:"swap"}).load().then(function(t){document.fonts.add(t)}).catch(function(t){}),ASP.font_url=!1)},n.plugin.updateHref=function(e){if(e=e||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:""));let t=this.getStateURL()+(this.resultsOpened?"&asp_s=":"&asp_ls=")+this.n("text").val()+e;history.replaceState("","",t.replace(location.origin,""))}},n.plugin.stat_addKeyword=function(e,t){let i={action:"ajaxsearchpro_addkeyword",id:e,keyword:t};o.fn.ajax({url:ASP.ajaxurl,method:"POST",data:i,success:function(a){}})},n.plugin.fixClonedSelf=function(){let e=this,t=String(e.o.iid),i=String(e.o.rid);for(;!ASP.instances.set(e)&&(++e.o.iid,!(e.o.iid>50)););t!==e.o.iid&&(e.o.rid=e.o.id+"_"+e.o.iid,e.n("search").get(0).id="ajaxsearchpro"+e.o.rid,e.n("search").removeClass("asp_m_"+i).addClass("asp_m_"+e.o.rid).data("instance",e.o.iid),e.n("container").removeClass("asp_w_container_"+i).addClass("asp_w_container_"+e.o.rid).data("instance",e.o.iid),e.n("searchsettings").get(0).id=e.n("searchsettings").get(0).id.replace("settings"+i,"settings"+e.o.rid),e.n("searchsettings").hasClass("asp_s_"+i)?e.n("searchsettings").removeClass("asp_s_"+i).addClass("asp_s_"+e.o.rid).data("instance",e.o.iid):e.n("searchsettings").removeClass("asp_sb_"+i).addClass("asp_sb_"+e.o.rid).data("instance",e.o.iid),e.n("resultsDiv").get(0).id=e.n("resultsDiv").get(0).id.replace("prores"+i,"prores"+e.o.rid),e.n("resultsDiv").removeClass("asp_r_"+i).addClass("asp_r_"+e.o.rid).data("instance",e.o.iid),e.n("container").find(".asp_init_data").data("instance",e.o.iid),e.n("container").find(".asp_init_data").get(0).id=e.n("container").find(".asp_init_data").get(0).id.replace("asp_init_id_"+i,"asp_init_id_"+e.o.rid),e.n("prosettings").data("opened",0))},n.plugin.destroy=function(){let e=this;Object.keys(e.nodes).forEach(function(t){e.nodes[t].off?.()}),typeof e.n("searchsettings").get(0).referenced<"u"?(--e.n("searchsettings").get(0).referenced,e.n("searchsettings").get(0).referenced<0&&e.n("searchsettings").remove()):e.n("searchsettings").remove(),typeof e.n("resultsDiv").get(0).referenced<"u"?(--e.n("resultsDiv").get(0).referenced,e.n("resultsDiv").get(0).referenced<0&&e.n("resultsDiv").remove?.()):e.n("resultsDiv").remove?.(),e.n("trythis").remove?.(),e.n("search").remove?.(),e.n("container").remove?.(),e.documentEventHandlers.forEach(function(t){o(t.node).off(t.event,t.handler)})};var b=null;let y=n.helpers;n.plugin.isRedirectToFirstResult=function(){let e=this;return(o(".asp_res_url",e.n("resultsDiv")).length>0||o(".asp_es_"+e.o.id+" a").length>0||e.o.resPage.useAjax&&o(e.o.resPage.selector+"a").length>0)&&(e.o.redirectOnClick&&e.ktype==="click"&&e.o.trigger.click==="first_result"||e.o.redirectOnEnter&&(e.ktype==="input"||e.ktype==="keyup")&&e.keycode===13&&e.o.trigger.return==="first_result"||e.ktype==="button"&&e.o.sb.redirect_action==="first_result")},n.plugin.doRedirectToFirstResult=function(){let e=this,t,i;return e.ktype==="click"?t=e.o.trigger.click_location:e.ktype==="button"?t=e.o.sb.redirect_location:t=e.o.trigger.return_location,o(".asp_res_url",e.n("resultsDiv")).length>0?i=o(o(".asp_res_url",e.n("resultsDiv")).get(0)).attr("href"):o(".asp_es_"+e.o.id+" a").length>0?i=o(o(".asp_es_"+e.o.id+" a").get(0)).attr("href"):e.o.resPage.useAjax&&o(e.o.resPage.selector+"a").length>0&&(i=o(o(e.o.resPage.selector+"a").get(0)).attr("href")),i!==""&&(t==="same"?location.href=i:y.openInNewTab(i),e.hideLoader(),e.hideResults()),!1},n.plugin.doRedirectToResults=function(e){let t=this,i;if(typeof t.reportSettingsValidity<"u"&&!t.reportSettingsValidity())return t.showNextInvalidFacetMessage?.(),!1;e==="click"?i=t.o.trigger.click_location:e==="button"?i=t.o.sb.redirect_location:i=t.o.trigger.return_location;let a=t.getRedirectURL(e);if(t.o.overridewpdefault){if(t.o.resPage.useAjax)return t.hideResults(),t.liveLoad(t.o.resPage.selector,a),t.showLoader(),t.att("blocking")===!1&&t.hideSettings?.(),!1;t.o.override_method==="post"?y.submitToUrl(a,"post",{asp_active:1,p_asid:t.o.id,p_asp_data:o("form",t.n("searchsettings")).serialize()},i):i==="same"?location.href=a:y.openInNewTab(a)}else y.submitToUrl(a,"post",{np_asid:t.o.id,np_asp_data:o("form",t.n("searchsettings")).serialize()},i);t.n("proloading").css("display","none"),t.hideLoader(),t.att("blocking")===!1&&t.hideSettings?.(),t.hideResults(),t.searchAbort()},n.plugin.getRedirectURL=function(e){let t=this,i,a,r,s;if(e=typeof e<"u"?e:"enter",e==="click"?a=t.o.trigger.click:e==="button"?a=t.o.sb.redirect_action:a=t.o.trigger.return,a==="results_page"?i="?s="+y.nicePhrase(t.n("text").val()):a==="woo_results_page"?i="?post_type=product&s="+y.nicePhrase(t.n("text").val()):e==="button"?(s=a==="elementor_page"?t.o.sb.elementor_url:t.o.sb.redirect_url,s=y.decodeHTMLEntities(s),i=t.parseCustomRedirectURL(s,t.n("text").val())):(s=a==="elementor_page"?t.o.trigger.elementor_url:t.o.trigger.redirect_url,s=y.decodeHTMLEntities(s),i=t.parseCustomRedirectURL(s,t.n("text").val())),t.o.homeurl.indexOf("?")>1&&i.indexOf("?")===0&&(i=i.replace("?","&")),t.o.overridewpdefault&&t.o.override_method!=="post"){let l="&";(t.o.homeurl.indexOf("?")===-1||a==="elementor_page")&&i.indexOf("?")===-1&&(l="?");let d=i+l+"asp_active=1&p_asid="+t.o.id+"&p_asp_data=1&"+o("form",t.n("searchsettings")).serialize();a==="elementor_page"?r=d:r=t.o.homeurl+d}else a==="elementor_page"?r=i:r=t.o.homeurl+i;return r=r.replace("https://","https:///"),r=r.replace("http://","http:///"),r=r.replace(/\/\//g,"/"),y.Hooks.applyFilters("asp_redirect_url",r,t.o.id,t.o.iid)},n.plugin.parseCustomRedirectURL=function(e,t){let i=this,a=y.decodeHTMLEntities(e).replace(/{phrase}/g,y.nicePhrase(t)),r=a.match(/{(.*?)}/g);return r!==null&&r.forEach(function(s){s=s.replace(/[{}]/g,"");let l=o('input[type=radio][name*="aspf['+s+'_"]:checked',i.n("searchsettings"));if(l.length===0&&(l=o('input[type=text][name*="aspf['+s+'_"]',i.n("searchsettings"))),l.length===0&&(l=o('input[type=hidden][name*="aspf['+s+'_"]',i.n("searchsettings"))),l.length===0&&(l=o('select[name*="aspf['+s+'_"]:not([multiple])',i.n("searchsettings"))),l.length===0&&(l=o('input[type=radio][name*="termset['+s+'"]:checked',i.n("searchsettings"))),l.length===0&&(l=o('input[type=text][name*="termset['+s+'"]',i.n("searchsettings"))),l.length===0&&(l=o('input[type=hidden][name*="termset['+s+'"]',i.n("searchsettings"))),l.length===0&&(l=o('select[name*="termset['+s+'"]:not([multiple])',i.n("searchsettings"))),l.length===0)return!0;let d=l.val();d=""+d,a=a.replace("{"+s+"}",d)}),a};var C=null;let T=n.helpers;n.plugin.showResults=function(){let e=this;switch(T.Hooks.applyFilters("asp/results/show/start",e),e.initResults(),e.o.resultstype==="horizontal"?e.createHorizontalScroll():e.o.resultstype==="vertical"&&e.createVerticalScroll(),e.o.resultstype){case"horizontal":e.showHorizontalResults();break;case"vertical":e.showVerticalResults();break;case"polaroid":e.showPolaroidResults();break;case"isotopic":e.showIsotopicResults();break;default:e.showHorizontalResults();break}e.showAnimatedImages(),e.hideLoader(),e.n("proclose").css({display:"block"}),T.isMobile()&&e.o.mobile.hide_keyboard&&!e.resultsOpened&&document.activeElement.blur(),e.o.settingsHideOnRes&&e.att("blocking")===!1&&e.hideSettings?.(),e.eh.resulsDivHoverMouseEnter=e.eh.resulsDivHoverMouseEnter||function(){o(".item",e.n("resultsDiv")).removeClass("hovered"),o(this).addClass("hovered")},e.eh.resulsDivHoverMouseLeave=e.eh.resulsDivHoverMouseLeave||function(){o(".item",e.n("resultsDiv")).removeClass("hovered")},e.n("resultsDiv").find(".item").on("mouseenter",e.eh.resulsDivHoverMouseEnter),e.n("resultsDiv").find(".item").on("mouseleave",e.eh.resulsDivHoverMouseLeave),e.fixSettingsAccessibility(),e.resultsOpened=!0,T.Hooks.addFilter("asp/results/show/end",e)},n.plugin.hideResults=function(e){let t=this;if(e=typeof e>"u"?!0:e,t.initResults(),!t.resultsOpened)return!1;t.n("resultsDiv").removeClass(t.resAnim.showClass).addClass(t.resAnim.hideClass),setTimeout(function(){t.n("resultsDiv").css(t.resAnim.hideCSS)},t.resAnim.duration),t.n("proclose").css({display:"none"}),T.isMobile()&&e&&document.activeElement.blur(),t.resultsOpened=!1,typeof t.ptstack<"u"&&delete t.ptstack,t.hideArrowBox?.(),t.n("s").trigger("asp_results_hide",[t.o.id,t.o.iid],!0,!0)},n.plugin.updateResults=function(e){let t=this;if(e.replace(/^\s*[\r\n]/gm,"")===""||o(e).hasClass("asp_nores")||o(e).find(".asp_nores").length>0)t.n("showmoreContainer").css("display","none"),o("span",t.n("showmore")).html("");else if(t.o.resultstype==="isotopic"&&t.call_num>0&&t.isotopic!=null&&typeof t.isotopic.appended<"u"&&t.n("items").length>0){let i=o(e),a=t.n("items").last(),r=parseInt(t.n("items").last().attr("data-itemnum"));i.get().forEach(function(s){o(s).attr("data-itemnum",++r).css({width:a.css("width"),height:a.css("height")})}),t.n("resdrg").append(i),t.isotopic.appended(i.get()),t.nodes.items=o(".item",t.n("resultsDiv")).length>0?o(".item",t.n("resultsDiv")):o(".photostack-flip",t.n("resultsDiv"))}else t.call_num>0&&t.o.resultstype==="vertical"?t.n("resdrg").html(t.n("resdrg").html()+'<div class="asp_v_spacer"></div>'+e):t.n("resdrg").html(t.n("resdrg").html()+e)},n.plugin.showResultsBox=function(){let e=this;e.initResults(),e.n("s").trigger("asp_results_show",[e.o.id,e.o.iid],!0,!0),e.n("resultsDiv").css({display:"block",height:"auto"}),e.n("results").find(".item, .asp_group_header").addClass(e.animationOpacity),e.n("resultsDiv").css(e.resAnim.showCSS),e.n("resultsDiv").removeClass(e.resAnim.hideClass).addClass(e.resAnim.showClass),e.fixResultsPosition(!0)},n.plugin.keywordHighlight=function(){const e=this;if(!e.o.highlight)return;const t=e.n("text").val().replace(/["']/g,"");if(t===""||t.length<e.o.trigger.minWordLength)return;const i=t.trim().split(" ").filter(a=>a.length>=e.o.trigger.minWordLength);e.n("resultsDiv").find("figcaption, div.item").highlight([t.trim()],{element:"span",className:"highlighted",wordsOnly:e.o.highlightWholewords}),i.length>0&&e.n("resultsDiv").find("figcaption, div.item").highlight(i,{element:"span",className:"highlighted",wordsOnly:e.o.highlightWholewords})},n.plugin.addHighlightString=function(e){let t=this,i=t.n("text").val().replace(/["']/g,"");e=typeof e>"u"?t.n("items").find("a.asp_res_url"):e,t.o.singleHighlight&&i!==""&&e.length>0&&e.forEach(function(){try{const a=new URL(o(this).attr("href"));a.searchParams.set("asp_highlight",i),a.searchParams.set("p_asid",t.o.id),o(this).attr("href",a.href)}catch{}})},n.plugin.scrollToResults=function(){let e=this,t=Math.floor(window.innerHeight*.1),i;if(!e.resultsOpened||e.call_num>0||!e.o.scrollToResults.enabled||e.n("search").closest(".asp_preview_data").length>0||e.o.compact.enabled||e.n("resultsDiv").inViewPort(t))return;e.o.resultsposition==="hover"?i=e.n("probox").offset().top-20:i=e.n("resultsDiv").offset().top-20,i=i+e.o.scrollToResults.offset;let a=o("#wpadminbar");a.length>0&&(i-=a.height()),i=i<0?0:i,window.scrollTo({top:i,behavior:"smooth"})},n.plugin.scrollToResult=function(e){let t=o(e);t.length&&!t.inViewPort(40)&&t.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},n.plugin.showAnimatedImages=function(){this.n("items").forEach(function(){let t=o(this).find(".asp_image[data-src]"),i=t.data("src");if(typeof i<"u"&&i!=null&&i!==""&&i.indexOf(".gif")>-1&&t.find("canvas").length===0){t.prepend(o('<div class="asp_item_canvas"><canvas></canvas></div>').get(0));let a=o(this).find("canvas").get(0),r=o(this).find(".asp_item_canvas"),s=a.getContext("2d"),l=new Image;l.crossOrigin="anonymous",l.onload=function(){o(a).attr({width:l.width,height:l.height}),s.drawImage(l,0,0,l.width,l.height),r.css({"background-image":"url("+a.toDataURL()+")"})},l.src=i}})},n.plugin.updateNoResultsHeader=function(){let e=this,t=e.n("resdrg").find(".asp_nores"),i;t.length>0&&(t=t.detach()),i=e.n("resultsDiv").find(".asp_nores"),i.length>0&&i.remove(),t.length>0&&(e.n("resultsDiv").prepend(t),e.n("resultsDiv").find(".asp_keyword").on("click",function(){e.n("text").val(T.decodeHTMLEntities(o(this).text())),e.n("textAutocomplete").val(""),(!e.o.redirectOnClick||!e.o.redirectOnEnter||e.o.trigger.type)&&e.search()}))},n.plugin.updateInfoHeader=function(e){let t=this,i="",a=t.n("resultsDiv").find(".asp_results_top"),r=t.n("text").val().trim();if(a.length>0)if(t.n("items").length<=0||t.n("resultsDiv").find(".asp_nores").length>0)a.css("display","none");else{if(typeof t.updateInfoHeader.resInfoBoxTxt>"u"&&(t.updateInfoHeader.resInfoBoxTxt=t.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").length>0?t.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").html():"",t.updateInfoHeader.resInfoBoxTxtNoPhrase=t.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").length>0?t.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").html():""),r!==""&&t.updateInfoHeader.resInfoBoxTxt!==""?i=t.updateInfoHeader.resInfoBoxTxt:r===""&&t.updateInfoHeader.resInfoBoxTxtNoPhrase!==""&&(i=t.updateInfoHeader.resInfoBoxTxtNoPhrase),i===void 0)return;i!==""?(i=i.replaceAll("{phrase}",T.escapeHtml(t.n("text").val())),i=i.replaceAll("{results_count}",t.n("items").length),i=i.replaceAll("{results_count_total}",e),a.html(i),a.css("display","block")):a.css("display","none")}};let O=n.helpers;n.plugin.createResultsScroll=function(e){let t=this,i,a=t.n("results");e=typeof e>"u"?"vertical":e,a.on("scroll",function(){t.o.show_more.infinite&&(clearTimeout(i),i=setTimeout(function(){t.checkAndTriggerInfiniteScroll(e)},60))})},n.plugin.createVerticalScroll=function(){this.createResultsScroll("vertical")},n.plugin.createHorizontalScroll=function(){this.createResultsScroll("horizontal")},n.plugin.checkAndTriggerInfiniteScroll=function(e){let t=this,i=o(".item",t.n("resultsDiv"));if(e=typeof e>"u"?"window":e,t.n("showmore").length===0||t.n("showmoreContainer").css("display")==="none")return!1;if(e==="window"||e==="horizontal"){if(t.o.resultstype==="isotopic"&&o("nav.asp_navigation",t.n("resultsDiv")).css("display")!=="none")return!1;let a=i.last().inViewPort(0,t.n("resultsDiv").get(0)),r=i.last().inViewPort(0);!t.searching&&i.length>0&&a&&r&&t.n("showmore").find("a.asp_showmore").trigger("click")}else if(e==="vertical"){let a=t.n("results");O.isScrolledToBottom(a.get(0),20)&&t.n("showmore").find("a.asp_showmore").trigger("click")}else e==="isotopic"&&!t.searching&&i.length>0&&t.n("resultsDiv").find("nav.asp_navigation ul li").last().hasClass("asp_active")&&t.n("showmore").find("a.asp_showmore").trigger("click")};let P=n.helpers;n.plugin.isDuplicateSearchTriggered=function(){let e=this;for(let t=0;t<25;t++)if(e.o.id+"_"+t!==e.o.rid&&window.ASP.instances.get(e.o.id,t)!==!1)return window.ASP.instances.get(e.o.id,t).searching;return!1},n.plugin.searchAbort=function(){let e=this;e.post!=null&&(e.post.abort(),e.isAutoP=!1)},n.plugin.searchWithCheck=function(e){let t=this;typeof e>"u"&&(e=50),!(t.n("text").val().length<t.o.charcount)&&(t.searchAbort(),clearTimeout(t.timeouts.searchWithCheck),t.timeouts.searchWithCheck=setTimeout(function(){t.search()},e))},n.plugin.search=function(e,t,i,a,r){let s=this,l=!1;if(s.isDuplicateSearchTriggered())return!1;i=typeof i>"u"?!1:i,a=typeof a>"u"?!1:a,r=typeof r>"u"?!1:r;let d={action:"ajaxsearchpro_search",aspp:s.n("text").val(),asid:s.o.id,asp_inst_id:s.o.rid,options:o("form",s.n("searchsettings")).serialize()};if(d=P.Hooks.applyFilters("asp_search_data",d,s.o.id,s.o.iid),s.hideArrowBox?.(),typeof s.reportSettingsValidity<"u"&&!s.isAutoP&&!s.reportSettingsValidity()&&(r||(s.showNextInvalidFacetMessage?.(),s.scrollToNextInvalidFacetMessage?.()),l=!0),s.isAutoP&&(d.autop=1),!i&&!a&&JSON.stringify(d)===JSON.stringify(s.lastSearchData)){if(!s.resultsOpened&&!s.usingLiveLoader()&&s.showResults(),s.isRedirectToFirstResult())return s.doRedirectToFirstResult(),!1;l=!0}if(l)return s.hideLoader(),s.searchAbort(),!1;s.n("s").trigger("asp_search_start",[s.o.id,s.o.iid,s.n("text").val()],!0,!0),s.searching=!0,s.n("proclose").css({display:"none"}),s.showLoader(i),!s.att("blocking")&&!s.o.trigger.facet&&s.hideSettings?.(),i?(s.call_num++,d.asp_call_num=s.call_num,s.autopStartedTheSearch&&(d.options+="&"+o.fn.serializeObject(s.autopData),--d.asp_call_num)):(s.call_num=0,s.autopStartedTheSearch=!!d.autop);let p=o('form[name="asp_data"]');p.length>0&&(d.asp_preview_options=p.serialize()),typeof e<"u"&&e!==!1&&(d.options+="&force_count="+parseInt(e)),typeof t<"u"&&t!==!1&&(d.options+="&force_order="+parseInt(t)),s.gaEvent?.("search_start"),o(".asp_es_"+s.o.id).length>0?s.liveLoad(".asp_es_"+s.o.id,s.getCurrentLiveURL(),s.o.trigger.update_href):s.o.resPage.useAjax?s.liveLoad(s.o.resPage.selector,s.getRedirectURL()):s.o.wooShop.useAjax?s.liveLoad(s.o.wooShop.selector,s.getLiveURLbyBaseLocation(s.o.wooShop.url)):s.o.taxArchive.useAjax?s.liveLoad(s.o.taxArchive.selector,s.getLiveURLbyBaseLocation(s.o.taxArchive.url)):s.o.cptArchive.useAjax?s.liveLoad(s.o.cptArchive.selector,s.getLiveURLbyBaseLocation(s.o.cptArchive.url)):s.post=o.fn.ajax({url:window.ASP.ajaxurl,method:"POST",data:d,success:function(g){s.searching=!1,g=g.replace(/^\s*[\r\n]/gm,"");let x=g.match(/___ASPSTART_HTML___(.*[\s\S]*)___ASPEND_HTML___/),_=g.match(/___ASPSTART_DATA___(.*[\s\S]*)___ASPEND_DATA___/);if(x==null||typeof x!="object"||typeof x[1]>"u")return s.hideLoader(),alert(`Ajax Search Pro Error:\r
|
|
\r
|
|
Please look up "The response data is missing" from the documentation at\r
|
|
\r
|
|
documentation.ajaxsearchpro.com`),!1;if(x=x[1],x=P.Hooks.applyFilters("asp_search_html",x,s.o.id,s.o.iid),_=JSON.parse(_[1]),s.n("s").trigger("asp_search_end",[s.o.id,s.o.iid,s.n("text").val(),_],!0,!0),s.autopStartedTheSearch)if(typeof d.autop<"u"){if(s.autopData.not_in={},s.autopData.not_in_count=0,typeof _.results<"u"){let S=[];typeof _.results.groups<"u"?Object.keys(_.results.groups).forEach(function(k){if(typeof _.results.groups[k].items<"u"){let A=_.results.groups[k].items;Array.isArray(A)&&A.forEach(function(L){S.push(L)})}}):S=Array.isArray(_.results)?_.results:S,S.forEach(function(k){typeof s.autopData.not_in[k.content_type]>"u"&&(s.autopData.not_in[k.content_type]=[]),s.autopData.not_in[k.content_type].push(k.id),++s.autopData.not_in_count})}}else _.full_results_count+=s.autopData.not_in_count;if(i?(s.updateResults(x),s.results_num+=_.results_count):(s.initResults(),s.n("resdrg").html(""),s.n("resdrg").html(x),s.results_num=_.results_count,s.o.statistics&&s.stat_addKeyword(s.o.id,s.n("text").val())),s.updateNoResultsHeader(),s.nodes.items=o(".item",s.n("resultsDiv")).length>0?o(".item",s.n("resultsDiv")):o(".photostack-flip",s.n("resultsDiv")),s.addHighlightString(),s.gaEvent?.("search_end",{results_count:s.n("items").length}),s.isRedirectToFirstResult())return s.doRedirectToFirstResult(),!1;if(s.hideLoader(),s.showResults(),window.location.hash!==""&&window.location.hash.indexOf("#asp-res-")>-1&&o(window.location.hash).length>0?s.scrollToResult(window.location.hash):s.scrollToResults(),s.lastSuccesfulSearch=o("form",s.n("searchsettings")).serialize()+s.n("text").val().trim(),s.lastSearchData=d,s.updateInfoHeader(_.full_results_count),s.updateHref(),s.n("showmore").length>0)if(o("span",s.n("showmore")).length>0&&_.results_count>0&&_.full_results_count-s.results_num>0){s.n("showmore").data("text")===""&&s.n("showmore").data("text",s.n("showmore").html()),s.n("showmore").html(s.n("showmore").data("text").replaceAll("{phrase}",P.escapeHtml(s.n("text").val()))),s.n("showmoreContainer").css("display","block"),s.n("showmore").css("display","block"),o("span",s.n("showmore")).html("("+(_.full_results_count-s.results_num)+")");let S=o("a",s.n("showmore"));S.attr("href",""),S.off(),S.on(s.clickTouchend,function(k){if(k.preventDefault(),k.stopImmediatePropagation(),s.o.show_more.action==="ajax"){if(s.searching)return!1;s.showMoreResLoader(),s.search(!1,!1,!0)}else{let A,L;if(o(this).off(),s.o.show_more.action==="results_page"?A="?s="+P.nicePhrase(s.n("text").val()):s.o.show_more.action==="woo_results_page"?A="?post_type=product&s="+P.nicePhrase(s.n("text").val()):(s.o.show_more.action==="elementor_page"?A=s.parseCustomRedirectURL(s.o.show_more.elementor_url,s.n("text").val()):A=s.parseCustomRedirectURL(s.o.show_more.url,s.n("text").val()),A=o("<textarea />").html(A).text()),s.o.show_more.action!=="elementor_page"&&s.o.homeurl.indexOf("?")>1&&A.indexOf("?")===0&&(A=A.replace("?","&")),L=s.o.show_more.action==="elementor_page"?A:s.o.homeurl+A,s.o.overridewpdefault)if(s.o.override_method==="post")P.submitToUrl(L,"post",{asp_active:1,p_asid:s.o.id,p_asp_data:o("form",s.n("searchsettings")).serialize()},s.o.show_more.location);else{let N=L+"&asp_active=1&p_asid="+s.o.id+"&p_asp_data=1&"+o("form",s.n("searchsettings")).serialize();s.o.show_more.location==="same"?location.href=N:P.openInNewTab(N)}else P.submitToUrl(L,"post",{np_asid:s.o.id,np_asp_data:o("form",s.n("searchsettings")).serialize()},s.o.show_more.location)}})}else s.n("showmoreContainer").css("display","none"),o("span",s.n("showmore")).html("");s.isAutoP=!1,P.Hooks.applyFilters("asp/search/end",s,d)},fail:function(g){g.aborted||(s.n("resdrg").html(""),s.n("resdrg").html('<div class="asp_nores">The request failed. Please check your connection! Status: '+g.status+"</div>"),s.nodes.item=o(".item",s.n("resultsDiv")).length>0?o(".item",s.n("resultsDiv")):o(".photostack-flip",s.n("resultsDiv")),s.results_num=0,s.searching=!1,s.hideLoader(),s.showResults(),s.scrollToResults(),s.isAutoP=!1)}})};var R=null;let I=n.helpers;n.plugin.searchFor=function(e){typeof e<"u"&&this.n("text").val(e),this.n("textAutocomplete").val(""),this.search(!1,!1,!1,!0)},n.plugin.searchRedirect=function(e){let t=this.parseCustomRedirectURL(this.o.trigger.redirect_url,e);this.o.homeurl.indexOf("?")>1&&t.indexOf("?")===0&&(t=t.replace("?","&")),this.o.overridewpdefault?this.o.override_method==="post"?I.submitToUrl(this.o.homeurl+t,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:o("form",this.n("searchsettings")).serialize()}):location.href=this.o.homeurl+t+"&asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+o("form",this.n("searchsettings")).serialize():I.submitToUrl(this.o.homeurl+t,"post",{np_asid:this.o.id,np_asp_data:o("form",this.n("searchsettings")).serialize()})},n.plugin.toggleSettings=function(e){typeof e<"u"?e==="show"?this.showSettings?.():this.hideSettings?.():this.n("prosettings").data("opened")==="1"?this.hideSettings?.():this.showSettings?.()},n.plugin.closeResults=function(e){typeof e<"u"&&e&&(this.n("text").val(""),this.n("textAutocomplete").val("")),this.hideResults(),this.n("proloading").css("display","none"),this.hideLoader(),this.searchAbort()},n.plugin.getStateURL=function(){let e=location.href,t;return e=e.split("p_asid"),e=e[0],e=e.replace("&asp_active=1",""),e=e.replace("?asp_active=1",""),e=e.slice(-1)==="?"?e.slice(0,-1):e,e=e.slice(-1)==="&"?e.slice(0,-1):e,t=e.indexOf("?")>1?"&":"?",e+t+"p_asid="+this.o.id+"&p_asp_data=1&"+o("form",this.n("searchsettings")).serialize()},n.plugin.resetSearch=function(){this.resetSearchFilters()},n.plugin.filtersInitial=function(){return this.n("searchsettings").find("input[name=filters_initial]").val()==="1"},n.plugin.filtersChanged=function(){return this.n("searchsettings").find("input[name=filters_changed]").val()==="1"};var E=null;let Q=n.helpers;n.plugin.detectAndFixFixedPositioning=function(){let e=this,t=!1,i=e.n("search").get(0);for(;i;)if(i=i.parentElement,i!=null&&window.getComputedStyle(i).position==="fixed"){t=!0;break}t||e.n("search").css("position")==="fixed"?(e.n("resultsDiv").css("position")==="absolute"&&e.n("resultsDiv").css({position:"fixed","z-index":2147483646}),e.att("blocking")||e.n("searchsettings").css({position:"fixed","z-index":2147483646})):(e.n("resultsDiv").css("position")==="fixed"&&e.n("resultsDiv").css("position","absolute"),e.att("blocking")||e.n("searchsettings").css("position","absolute"))},n.plugin.fixSettingsAccessibility=function(){this.n("searchsettings").find("input.asp_select2-search__field").attr("aria-label","Select2 search")},n.plugin.fixTryThisPosition=function(){let e=this;e.n("trythis").css({left:e.n("search").position().left})},n.plugin.fixResultsPosition=function(e){e=typeof e>"u"?!1:e;let t=this,i=o("body"),a=0,r=t.n("resultsDiv").css("position");if((o._fn.bodyTransformY()!==0||i.css("position")!=="static")&&(a=i.offset().top),o._fn.bodyTransformY()!==0&&r==="fixed"&&(r="absolute",t.n("resultsDiv").css("position","absolute")),r==="fixed"&&(a=0),!(r!=="fixed"&&r!=="absolute")&&(e||t.n("resultsDiv").css("visibility")==="visible")){let s=t.n("search").offset(),l=0;if((o._fn.bodyTransformX()!==0||i.css("position")!=="static")&&(l=i.offset().left),typeof s<"u"){let d,p=0;Q.deviceType()==="phone"?d=t.o.results.width_phone:Q.deviceType()==="tablet"?d=t.o.results.width_tablet:d=t.o.results.width,d==="auto"&&(d=t.n("search").outerWidth()<240?240:t.n("search").outerWidth()),t.n("resultsDiv").css("width",isNaN(d)?d:d+"px"),t.o.resultsSnapTo==="right"?p=t.n("resultsDiv").outerWidth()-t.n("search").outerWidth():t.o.resultsSnapTo==="center"&&(p=Math.floor((t.n("resultsDiv").outerWidth()-parseInt(t.n("search").outerWidth()))/2)),t.n("resultsDiv").css({top:s.top+t.n("search").outerHeight(!0)-a+"px",left:s.left-p-l+"px"})}}},n.plugin.fixSettingsPosition=function(e){e=typeof e>"u"?!1:e;let t=this,i=o("body"),a=0,r=t.n("searchsettings").css("position");if((o._fn.bodyTransformY()!==0||i.css("position")!=="static")&&(a=i.offset().top),o._fn.bodyTransformY()!==0&&r==="fixed"&&(r="absolute",t.n("searchsettings").css("position","absolute")),r==="fixed"&&(a=0),(e||t.n("prosettings").data("opened")==="1")&&t.att("blocking")!==!0){let s,l,d,p,g=0;(o._fn.bodyTransformX()!==0||i.css("position")!=="static")&&(g=i.offset().left),t.fixSettingsWidth(),t.n("prosettings").css("display")!=="none"?s=t.n("prosettings"):s=t.n("promagnifier"),l=s.offset(),d=l.top+s.height()-2-a+"px",p=t.o.settingsimagepos==="left"?l.left:l.left+s.width()-t.n("searchsettings").width(),p=p-g+"px",t.n("searchsettings").css({display:"block",top:d,left:p})}},n.plugin.fixSettingsWidth=function(){let e=this;if(!(e.att("blocking")||e.o.fss_layout==="masonry")&&(e.n("searchsettings").css({width:"100%"}),e.n("searchsettings").width()%o("fieldset",e.n("searchsettings")).outerWidth(!0)>10)){let t=Math.floor(e.n("searchsettings").width()/o("fieldset",e.n("searchsettings")).outerWidth(!0));t=t<=0?1:t,e.n("searchsettings").css({width:t*o("fieldset",e.n("searchsettings")).outerWidth(!0)+8+"px"})}},n.plugin.hideOnInvisibleBox=function(){let e=this;e.o.detectVisibility&&!e.o.compact.enabled&&!e.n("search").hasClass("hiddend")&&!e.n("search").isVisible()&&(e.hideSettings?.(),e.hideResults())};var Y=null;let J=n.helpers;n.plugin.initMagnifierEvents=function(){let e=this,t;e.n("promagnifier").on("click",function(i){let a=e.n("search").attr("data-asp-compact")||"closed";if(e.keycode=i.keyCode||i.which,e.ktype=i.type,e.o.compact.enabled&&(a==="closed"||e.o.compact.closeOnMagnifier&&a==="open"))return!1;if(e.gaEvent?.("magnifier"),e.n("text").val().length>=e.o.charcount&&e.o.redirectOnClick&&e.o.trigger.click!=="first_result")return e.doRedirectToResults("click"),clearTimeout(t),!1;if(!(e.o.trigger.click==="ajax_search"||e.o.trigger.click==="first_result"))return!1;e.searchAbort(),clearTimeout(e.timeouts.search),e.n("proloading").css("display","none"),e.n("text").val().length>=e.o.charcount&&(e.timeouts.search=setTimeout(function(){o("form",e.n("searchsettings")).serialize()+e.n("text").val().trim()!==e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader()?e.search():e.isRedirectToFirstResult()?e.doRedirectToFirstResult():e.n("proclose").css("display","block")},e.o.trigger.delay))})},n.plugin.initButtonEvents=function(){let e=this;e.n("searchsettings").find("button.asp_s_btn").on("click",function(t){if(e.ktype="button",t.preventDefault(),e.n("text").val().length>=e.o.charcount){if(e.o.sb.redirect_action!=="ajax_search")if(e.o.sb.redirect_action!=="first_result")e.doRedirectToResults("button");else{if(e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;e.search()}else(o("form",e.n("searchsettings")).serialize()+e.n("text").val().trim()!==e.lastSuccesfulSearch||!e.resultsOpened)&&e.search();clearTimeout(e.timeouts.search)}}),e.n("searchsettings").find("button.asp_r_btn").on("click",function(t){let i=J.formData(o("form",e.n("searchsettings"))),a=e.n("text").val();t.preventDefault(),e.resetSearchFilters(),e.o.rb.action==="live"&&(JSON.stringify(i)!==JSON.stringify(J.formData(o("form",e.n("searchsettings"))))||a!=="")?e.search(!1,!1,!1,!0,!0):e.o.rb.action==="close"&&e.hideResults()})};var qe=null;let _e=n.helpers;n.plugin.initInputEvents=function(){let e=this,t=!1,i=function(){e.n("text").off("mousedown touchstart keydown",i),t||(e._initFocusInput(),e.o.trigger.type&&e._initSearchInput(),e._initEnterEvent(),e._initFormEvent(),e.initAutocompleteEvent?.(),t=!0)};e.n("text").on("mousedown touchstart keydown",i,{passive:!0})},n.plugin._initFocusInput=function(){let e=this;e.n("text").on("click",function(t){if(t.stopPropagation(),t.stopImmediatePropagation(),o(this).trigger("focus"),e.gaEvent?.("focus"),o("form",e.n("searchsettings")).serialize()+e.n("text").val().trim()===e.lastSuccesfulSearch)return!e.resultsOpened&&!e.usingLiveLoader()&&(e._no_animations=!0,e.showResults(),e._no_animations=!1),!1}),e.n("text").on("focus input",function(){e.searching||(o(this).val()!==""?e.n("proclose").css("display","block"):e.n("proclose").css({display:"none"}))})},n.plugin._initSearchInput=function(){let e=this;e.n("text").on("input",function(t){if(e.keycode=t.keyCode||t.which,e.ktype=t.type,e.updateHref(),!e.o.trigger.type)return e.searchAbort(),clearTimeout(e.timeouts.search),e.hideLoader(),!1;if(e.hideArrowBox?.(),e.n("text").val().length<e.o.charcount)return e.n("proloading").css("display","none"),e.att("blocking")||e.hideSettings?.(),e.hideResults(!1),e.searchAbort(),clearTimeout(e.timeouts.search),!1;e.searchAbort(),clearTimeout(e.timeouts.search),e.n("textAutocomplete").val(""),e.n("proloading").css("display","none"),e.timeouts.search=setTimeout(function(){o("form",e.n("searchsettings")).serialize()+e.n("text").val().trim()!==e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader()?e.search():e.isRedirectToFirstResult()?e.doRedirectToFirstResult():e.n("proclose").css("display","block")},e.o.trigger.delay)})},n.plugin._initEnterEvent=function(){let e=this,t,i=!1;e.n("text").on("keyup",function(a){if(e.keycode=a.keyCode||a.which,e.ktype=a.type,e.keycode===13){if(clearTimeout(t),t=setTimeout(function(){i=!1},300),i)return!1;i=!0}let r=o(this).hasClass("orig");e.n("text").val().length>=e.o.charcount&&r&&e.keycode===13&&(e.gaEvent?.("return"),e.o.redirectOnEnter?e.o.trigger.return!=="first_result"?e.doRedirectToResults(e.ktype):e.search():e.o.trigger.return==="ajax_search"&&(o("form",e.n("searchsettings")).serialize()+e.n("text").val().trim()!==e.lastSuccesfulSearch||!e.resultsOpened)&&e.search(),clearTimeout(e.timeouts.search))})},n.plugin._initFormEvent=function(){let e=this;o(e.n("text").closest("form").get(0)).on("submit",function(t,i){if(t.preventDefault(),_e.isMobile())if(e.o.redirectOnEnter){let a=new Event("keyup");a.keyCode=a.which=13,this.n("text").get(0).dispatchEvent(a)}else e.search(),document.activeElement.blur();else typeof i<"u"&&i==="ajax"&&e.search()})};var Ye=null;n.plugin.initNavigationEvents=function(){let e=this,t=function(i){let a=i.keyCode||i.which;if(o(".item",e.n("resultsDiv")).length>0&&e.n("resultsDiv").css("display")!=="none"&&e.o.resultstype==="vertical"){if(a===40||a===38){let r=e.n("resultsDiv").find(".item.hovered");if(e.n("text").trigger("blur"),r.length===0?e.n("resultsDiv").find(".item").first().addClass("hovered"):(a===40&&(r.next(".item").length===0?e.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):r.removeClass("hovered").next(".item").addClass("hovered")),a===38&&(r.prev(".item").length===0?e.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):r.removeClass("hovered").prev(".item").addClass("hovered"))),i.stopPropagation(),i.preventDefault(),!e.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,e.n("resultsDiv").get(0))){let s=e.n("resultsDiv").find(".resdrg .item.hovered").get(0);s!=null&&typeof s.scrollIntoView<"u"&&s.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}a===13&&o(".item.hovered",e.n("resultsDiv")).length>0&&(i.stopPropagation(),i.preventDefault(),o(".item.hovered a.asp_res_url",e.n("resultsDiv")).get(0).click())}};e.documentEventHandlers.push({node:document,event:"keydown",handler:t}),o(document).on("keydown",t)};var Je=null;const Xe=()=>{let e=window.innerWidth;return e<=640?"phone":e<=1024?"tablet":"desktop"},ve=()=>typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1,Ke=()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}},Ge=()=>"ontouchstart"in window,Ze=navigator.userAgent.toLowerCase().includes("firefox"),ie=navigator.userAgent,et=/AppleWebKit/.test(ie)&&!/Edge/.test(ie);let z;const X=e=>{if(!ve()){e?.focus();return}(e===void 0||z===void 0)&&(z=document.createElement("input"),z.setAttribute("type","text"),z.style.position="absolute",z.style.opacity="0",z.style.height="0",z.style.fontSize="16px",document.body.prepend(z)),e===void 0?z.focus():e.focus()};let B=n.helpers;n.plugin.initOtherEvents=function(){let e=this,t,i;e.o.preventEvents&&typeof jQuery<"u"&&jQuery(e.n("search").get(0)).closest("a, li").off(),B.isMobile()&&B.detectIOS()&&e.n("text").on("touchstart",function(){e.savedScrollTop=window.scrollY,e.savedContainerTop=e.n("search").offset().top}),e.o.focusOnPageload&&o(window).on("load",function(){e.n("text").get(0).focus()},{options:{once:!0}}),e.n("proclose").on(e.clickTouchend,function(a){if(a.preventDefault(),a.stopImmediatePropagation(),e.n("text").val(""),e.n("textAutocomplete").val(""),e.hideResults(),e.n("text").trigger("focus"),e.n("proloading").css("display","none"),e.hideLoader(),e.searchAbort(),o(".asp_es_"+e.o.id).length>0)e.showLoader(),e.liveLoad(".asp_es_"+e.o.id,e.getCurrentLiveURL(),e.o.trigger.update_href);else{const r=["resPage","wooShop","taxArchive","cptArchive"];for(let s=0;s<r.length;s++)if(e.o[r[s]].useAjax){e.showLoader(),e.liveLoad(e.o[r[s]].selector,e.getCurrentLiveURL());break}}e.n("text").get(0).focus()}),B.isMobile()?(t=function(){e.orientationChange(),setTimeout(function(){e.orientationChange()},600)},e.documentEventHandlers.push({node:window,event:"orientationchange",handler:t}),o(window).on("orientationchange",t)):(t=function(){e.resize()},e.documentEventHandlers.push({node:window,event:"resize",handler:t}),o(window).on("resize",t,{passive:!0})),i=function(){e.scrolling(!1)},e.documentEventHandlers.push({node:window,event:"scroll",handler:i}),o(window).on("scroll",i,{passive:!0}),B.isMobile()&&e.o.mobile.menu_selector!==""&&o(e.o.mobile.menu_selector).on("touchend",function(a){let r=this;X(),setTimeout(function(){let s=o(r).find("input.orig");s=s.length===0?o(r).next().find("input.orig"):s,s=s.length===0?o(r).parent().find("input.orig"):s,s=s.length===0?e.n("text"):s,e.n("search").inViewPort()&&X(s.get(0))},1e3)}),B.detectIOS()&&B.isMobile()&&B.isTouchDevice()&&parseInt(e.n("text").css("font-size"))<16&&(e.n("text").data("fontSize",e.n("text").css("font-size")).css("font-size","16px"),e.n("textAutocomplete").css("font-size","16px"),o("body").append("<style>#ajaxsearchpro"+e.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},n.plugin.orientationChange=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition(),e.fixTryThisPosition(),e.o.resultstype==="isotopic"&&e.n("resultsDiv").css("visibility")==="visible"&&(e.calculateIsotopeRows(),e.showPagination(!0),e.removeAnimation())},n.plugin.resize=function(){this.hideArrowBox?.(),this.orientationChange()},n.plugin.scrolling=function(e){let t=this;t.detectAndFixFixedPositioning(),t.hideOnInvisibleBox(),t.fixSettingsPosition(e),t.fixResultsPosition(e)},n.plugin.initTryThisEvents=function(){let e=this;e.n("trythis").find("a").length>0&&(e.n("trythis").find("a").on("click touchend",function(t){t.preventDefault(),t.stopImmediatePropagation(),e.o.compact.enabled&&(e.n("search").attr("data-asp-compact")||"closed")==="closed"&&e.n("promagnifier").trigger("click"),document.activeElement.blur(),e.n("textAutocomplete").val(""),e.n("text").val(o(this).html()),e.gaEvent?.("try_this"),e.o.trigger.type&&e.searchWithCheck(80)}),e.n("trythis").css({visibility:"visible"}))},n.plugin.initSelect2=function(){let e=this;window.WPD.intervalUntilExecute(function(t){typeof t.fn.asp_select2<"u"&&(e.select2jQuery=t,o("select.asp_gochosen, select.asp_goselect2",e.n("searchsettings")).forEach(function(){o(this).removeAttr("data-asp_select2-id"),o(this).find('option[value=""]').val("__any__"),e.select2jQuery(this).asp_select2({width:"100%",theme:"flat",allowClear:o(this).find('option[value=""]').length>0,language:{noResults:function(){return e.o.select2.nores}}}),e.select2jQuery(this).on("change",function(){o(this).trigger("change")})}))},function(){return B.whichjQuery("asp_select2")})};var tt=null;n.plugin.initResultsEvents=function(){let e=this;e.n("resultsDiv").css({opacity:"0"});let t=function(i){let a=i.keyCode||i.which,r=i.type;if(o(i.target).closest(".asp_w").length===0&&(e.hideOnInvisibleBox(),e.hideArrowBox?.(),r!=="click"||r!=="touchend"||a!==3)){if(e.o.compact.enabled){let s=e.n("search").attr("data-asp-compact")||"closed";e.o.compact.closeOnDocument&&s==="open"&&!e.resultsOpened&&(e.closeCompact(),e.searchAbort(),e.hideLoader())}else if(!e.resultsOpened||!e.o.closeOnDocClick)return;e.dragging||(e.hideLoader(),e.searchAbort(),e.hideResults())}};e.documentEventHandlers.push({node:document,event:e.clickTouchend,handler:t}),o(document).on(e.clickTouchend,t),e.n("resultsDiv").on("click",".results .item",function(){o(this).attr("id")!==""&&e.updateHref("#"+o(this).attr("id")),e.gaEvent?.("result_click",{result_title:o(this).find("a.asp_res_url").text(),result_url:o(this).find("a.asp_res_url").attr("href")})}),e.o.resultstype==="isotopic"&&(e.n("resultsDiv").on("swiped-left",function(){e.visiblePagination()&&e.n("resultsDiv").find("a.asp_next").trigger("click")}),e.n("resultsDiv").on("swiped-right",function(){e.visiblePagination()&&e.n("resultsDiv").find("a.asp_prev").trigger("click")}))};var it=null;n.plugin.monitorTouchMove=function(){let e=this;e.dragging=!1,o("body").on("touchmove",function(){e.dragging=!0}).on("touchstart",function(){e.dragging=!1})};var nt=null;let ye=n.helpers;n.plugin.initAutop=function(){let e=this;if(e.o.autop.state==="disabled")return!1;let t=window.location.href;if(t.indexOf("asp_ls=")>-1||t.indexOf("asp_ls&")>-1)return!1;let a=e.o.show_more.enabled&&e.o.show_more.action==="ajax"?!1:e.o.autop.count;e.isAutoP=!0,e.o.compact.enabled&&e.openCompact(),e.o.autop.state==="phrase"?(e.o.is_results_page||e.n("text").val(ye.decodeHTMLEntities(e.o.autop.phrase)),e.search(a)):e.o.autop.state==="latest"?e.search(a,1):e.search(a,2)};var st=null;let we=n.helpers;n.plugin.initEtc=function(){let e=this;e.il={columns:3,rows:e.o.isotopic.pagination?e.o.isotopic.rows:1e4,itemsPerPage:6,lastVisibleItem:-1},e.filterFns={number:function(t,i){(typeof i>"u"||typeof t=="object")&&(i=t);const a=o(i).attr("data-itemnum"),r=e.currentPage,s=e.il.itemsPerPage;return a%(e.il.columns*e.il.rows)<e.il.columns*(e.il.rows-1)?o(i).addClass("asp_gutter_bottom"):o(i).removeClass("asp_gutter_bottom"),parseInt(a,10)<s*r&&parseInt(a,10)>=s*(r-1)}},we.Hooks.applyFilters("asp/init/etc",e)},n.plugin.initInfiniteScroll=function(){let e=this;if(e.o.show_more.infinite&&e.o.resultstype!=="polaroid"){let t,i;i=function(){clearTimeout(t),t=setTimeout(function(){e.checkAndTriggerInfiniteScroll("window")},80)},e.documentEventHandlers.push({node:window,event:"scroll",handler:i}),o(window).on("scroll",i),e.n("results").on("scroll",i);let a;e.n("resultsDiv").on("nav_switch",function(){clearTimeout(a),a=setTimeout(function(){e.checkAndTriggerInfiniteScroll("isotopic")},800)})}},n.plugin.hooks=function(){let e=this;e.n("s").on("asp_elementor_results",function(t,i){parseInt(e.o.id)===parseInt(i)&&typeof window.jetpackLazyImagesModule=="function"&&setTimeout(function(){window.jetpackLazyImagesModule()},300)})};var ot=null;let ne=n.helpers;n.plugin.init=function(e,t){let i=this;return i.searching=!1,i.triggerPrevState=!1,i.isAutoP=!1,i.autopStartedTheSearch=!1,i.autopData={},i.settingsInitialized=!1,i.resultsInitialized=!1,i.settingsChanged=!1,i.resultsOpened=!1,i.post=null,i.postAuto=null,i.savedScrollTop=0,i.savedContainerTop=0,i.disableMobileScroll=!1,i.clickTouchend="click touchend",i.mouseupTouchend="mouseup touchend",i.noUiSliders=[],i.timeouts={compactBeforeOpen:null,compactAfterOpen:null,search:null,searchWithCheck:null},i.eh={},i.documentEventHandlers=[],i.currentPage=1,i.currentPageURL=location.href,i.isotopic=null,i.sIsotope=null,i.lastSuccesfulSearch="",i.lastSearchData={},i._no_animations=!1,i.call_num=0,i.results_num=0,i.o=o.fn.extend({},e),i.dynamicAtts={},i.nodes={},i.nodes.search=o(t),ne.isMobile()?i.animOptions=i.o.animations.mob:i.animOptions=i.o.animations.pc,i.initNodeVariables(),i.animationOpacity=i.animOptions.items.indexOf("In")<0?"opacityOne":"opacityZero",i.o.resPage.useAjax=i.o.compact.enabled?0:i.o.resPage.useAjax,ne.isMobile()&&(i.o.trigger.type=i.o.mobile.trigger_on_type,i.o.trigger.click=i.o.mobile.click_action,i.o.trigger.click_location=i.o.mobile.click_action_location,i.o.trigger.return=i.o.mobile.return_action,i.o.trigger.return_location=i.o.mobile.return_action_location,i.o.trigger.redirect_url=i.o.mobile.redirect_url,i.o.trigger.elementor_url=i.o.mobile.elementor_url),i.o.redirectOnClick=i.o.trigger.click!=="ajax_search"&&i.o.trigger.click!=="nothing",i.o.redirectOnEnter=i.o.trigger.return!=="ajax_search"&&i.o.trigger.return!=="nothing",i.usingLiveLoader()&&(i.o.trigger.type=i.o.resPage.trigger_type,i.o.trigger.facet=i.o.resPage.trigger_facet,i.o.resPage.trigger_magnifier&&(i.o.redirectOnClick=0,i.o.trigger.click="ajax_search"),i.o.resPage.trigger_return&&(i.o.redirectOnEnter=0,i.o.trigger.return="ajax_search")),i.o.compact.overlay&&o("#asp_absolute_overlay").length===0&&o("body").append("<div id='asp_absolute_overlay'></div>"),i.usingLiveLoader()&&i.initLiveLoaderPopState?.(),typeof i.initCompact<"u"&&i.initCompact(),i.monitorTouchMove(),i.initEvents(),i.initAutop(),i.initEtc(),i.hooks(),i.n("s").trigger("asp_init_search_bar",[i.o.id,i.o.iid],!0,!0),this},n.plugin.n=function(e){if(typeof this.nodes[e]<"u")return this.nodes[e];switch(e){case"s":this.nodes[e]=this.nodes.search;break;case"container":this.nodes[e]=this.nodes.search.closest(".asp_w_container");break;case"searchsettings":this.nodes[e]=o(".asp_ss",this.n("container"));break;case"resultsDiv":this.nodes[e]=o(".asp_r",this.n("container"));break;case"probox":this.nodes[e]=o(".probox",this.nodes.search);break;case"proinput":this.nodes[e]=o(".proinput",this.nodes.search);break;case"text":this.nodes[e]=o(".proinput input.orig",this.nodes.search);break;case"textAutocomplete":this.nodes[e]=o(".proinput input.autocomplete",this.nodes.search);break;case"proloading":this.nodes[e]=o(".proloading",this.nodes.search);break;case"proclose":this.nodes[e]=o(".proclose",this.nodes.search);break;case"promagnifier":this.nodes[e]=o(".promagnifier",this.nodes.search);break;case"prosettings":this.nodes[e]=o(".prosettings",this.nodes.search);break;case"settingsAppend":this.nodes[e]=o("#wpdreams_asp_settings_"+this.o.id);break;case"resultsAppend":this.nodes[e]=o("#wpdreams_asp_results_"+this.o.id);break;case"trythis":this.nodes[e]=o("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[e]=o(".asp_hidden_data",this.n("container"));break;case"aspItemOverlay":this.nodes[e]=o(".asp_item_overlay",this.n("hiddenContainer"));break;case"showmoreContainer":this.nodes[e]=o(".asp_showmore_container",this.n("resultsDiv"));break;case"showmore":this.nodes[e]=o(".showmore",this.n("resultsDiv"));break;case"items":this.nodes[e]=o(".item",this.n("resultsDiv")).length>0?o(".item",this.n("resultsDiv")):o(".photostack-flip",this.n("resultsDiv"));break;case"results":this.nodes[e]=o(".results",this.n("resultsDiv"));break;case"resdrg":this.nodes[e]=o(".resdrg",this.n("resultsDiv"));break}return this.nodes[e]},n.plugin.att=function(e){if(typeof this.dynamicAtts[e]<"u")return this.dynamicAtts[e];switch(e){case"blocking":this.dynamicAtts[e]=this.n("searchsettings").hasClass("asp_sb")}return this.dynamicAtts[e]},n.plugin.initNodeVariables=function(){let e=this;e.o.id=e.nodes.search.data("id"),e.o.iid=e.nodes.search.data("instance"),e.o.rid=e.o.id+"_"+e.o.iid,e.fixClonedSelf()},n.plugin.initEvents=function(){this.initSettingsSwitchEvents?.(),this.initOtherEvents(),this.initTryThisEvents(),this.initMagnifierEvents(),this.initInputEvents(),this.o.compact.enabled&&this.initCompactEvents()};var at=null;let be=n.helpers;n.plugin.initResults=function(){this.resultsInitialized||(this.initResultsBox(),this.initResultsEvents(),this.o.resultstype==="vertical"&&this.initNavigationEvents?.(),this.o.resultstype==="isotopic"&&this.initIsotopicPagination?.())},n.plugin.initResultsBox=function(){let e=this;e.initResultsAnimations(),be.isMobile()&&e.o.mobile.force_res_hover?(e.o.resultsposition="hover",e.nodes.resultsDiv=e.n("resultsDiv").clone(),o("body").append(e.nodes.resultsDiv),e.n("resultsDiv").css({position:"absolute"})):e.o.resultsposition==="hover"&&e.n("resultsAppend").length<=0?(e.nodes.resultsDiv=e.n("resultsDiv").clone(),o("body").append(e.nodes.resultsDiv)):(e.o.resultsposition="block",e.n("resultsDiv").css({position:"static"}),e.n("resultsAppend").length>0&&(e.n("resultsAppend").find(".asp_r_"+e.o.id).length>0?(e.nodes.resultsDiv=e.n("resultsAppend").find(".asp_r_"+e.o.id),typeof e.nodes.resultsDiv.get(0).referenced<"u"?++e.nodes.resultsDiv.get(0).referenced:e.nodes.resultsDiv.get(0).referenced=1):(e.nodes.resultsDiv=e.nodes.resultsDiv.clone(),e.nodes.resultsAppend.append(e.nodes.resultsDiv)))),e.nodes.showmore=o(".showmore",e.nodes.resultsDiv),e.nodes.items=o(".item",e.n("resultsDiv")).length>0?o(".item",e.nodes.resultsDiv):o(".photostack-flip",e.nodes.resultsDiv),e.nodes.results=o(".results",e.nodes.resultsDiv),e.nodes.resdrg=o(".resdrg",e.nodes.resultsDiv),e.nodes.resultsDiv.get(0).id=e.nodes.resultsDiv.get(0).id.replace("__original__",""),e.detectAndFixFixedPositioning(),e.initInfiniteScroll(),e.resultsInitialized=!0},n.plugin.initResultsAnimations=function(){let e=this,t=e.n("resultsDiv").css("position"),i=t!=="fixed"&&t!=="absolute";e.resAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":e.animOptions.results.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:e.animOptions.results.dur+"ms"},e.animOptions.results.anim==="fade"&&(e.resAnim.showClass="asp_an_fadeIn",e.resAnim.hideClass="asp_an_fadeOut"),e.animOptions.results.anim==="fadedrop"&&!i?(e.resAnim.showClass="asp_an_fadeInDrop",e.resAnim.hideClass="asp_an_fadeOutDrop"):e.animOptions.results.anim==="fadedrop"&&(e.resAnim.showClass="asp_an_fadeIn",e.resAnim.hideClass="asp_an_fadeOut"),e.n("resultsDiv").css({"-webkit-animation-duration":e.resAnim.duration+"ms","animation-duration":e.resAnim.duration+"ms"})};var rt=null;o(function(){o(".ajaxsearchprotop").forEach(function(){let e=JSON.parse(o(this).data("aspdata")),t=e.id;e.action===0?o("a",o(this)).on("click",function(i){i.preventDefault()}):e.action===2?o("a",o(this)).on("click",function(i){i.preventDefault(),window.ASP.api(t,"searchFor",o(this).html()),o("html").animate({scrollTop:o("div[id*=ajaxsearchpro"+t+"_]").first().offset().top-40},500)}):e.action===1&&o("a",o(this)).on("click",function(i){if(window.ASP.api(t,"exists"))return i.preventDefault(),window.ASP.api(t,"searchRedirect",o(this).html())})})});var xe=n;n.plugin.autocompleteCheck=function(e=""){if(this.n("text").val()==="")return this.n("textAutocomplete").val(""),!1;let t=this.n("textAutocomplete").val();return!(t!==""&&t.indexOf(e)===0)},n.plugin.autocomplete=function(){let e=this,t=e.n("text").val();if(e.autocompleteCheck(t)&&e.n("text").val().length>=e.o.autocomplete.trigger_charcount){let i={action:"ajaxsearchpro_autocomplete",asid:e.o.id,sauto:e.n("text").val(),asp_inst_id:e.o.rid,options:o("form",e.n("searchsettings")).serialize()};e.postAuto=o.fn.ajax({url:ASP.ajaxurl,method:"POST",data:i,success:function(a){a.length>0&&(a=o("<textarea />").html(a).text(),a=a.replace(/^\s*[\r\n]/gm,""),a=t+a.substring(t.length)),e.n("textAutocomplete").val(a),e.fixAutocompleteScrollLeft()}})}},n.plugin.autocompleteGoogleOnly=function(){let e=this,t=e.n("text").val();if(!e.autocompleteCheck(t))return;let i=e.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(a){o('input[name="'+a+'"]',e.n("searchsettings")).length>0&&o('input[name="'+a+'"]',e.n("searchsettings")).val().length>1&&(i=o('input[name="'+a+'"]',e.n("searchsettings")).val())}),e.n("text").val().length>=e.o.autocomplete.trigger_charcount&&o.fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:t,hl:i,nolabels:"t",client:"hp",ds:""},success:function(a){if(a[1].length>0){let r=a[1][0][0].replace(/(<([^>]+)>)/ig,"");r=o("<textarea />").html(r).text(),r=r.substring(t.length),e.n("textAutocomplete").val(t+r),e.fixAutocompleteScrollLeft()}}})},n.plugin.fixAutocompleteScrollLeft=function(){this.n("textAutocomplete").get(0).scrollLeft=this.n("text").get(0).scrollLeft};var lt=null;let se=n.helpers;n.plugin.initAutocompleteEvent=function(){let e=this,t;(e.o.autocomplete.enabled&&!se.isMobile()||e.o.autocomplete.mobile&&se.isMobile())&&(e.n("text").on("keydown",function(i){(i.keyCode||i.which)===9&&e.n("textAutocomplete").val()!==""&&e.n("textAutocomplete").val()!==o(this).val()&&i.preventDefault()}),e.n("text").on("keyup",function(i){e.keycode=i.keyCode||i.which,e.ktype=i.type;let a=39;o("body").hasClass("rtl")&&(a=37),(e.keycode===a||e.keycode===9)&&e.n("textAutocomplete").val()!==""?(i.preventDefault(),e.n("text").val(e.n("textAutocomplete").val()),e.o.trigger.type&&(e.searchAbort(),e.search())):(clearTimeout(t),e.postAuto!=null&&e.postAuto.abort(),e.o.autocomplete.googleOnly?e.autocompleteGoogleOnly():t=setTimeout(function(){e.autocomplete(),t=null},e.o.trigger.autocomplete_delay))}),e.n("text").on("keyup mouseup input blur select",function(){e.fixAutocompleteScrollLeft()}))};var ct=null,ut=null;n.plugin.initCompact=function(){let e=this;e.o.compact.enabled&&e.o.compact.position!=="fixed"&&(e.o.compact.overlay=0),e.o.compact.enabled&&e.n("trythis").css({display:"none"}),e.o.compact.enabled&&e.o.compact.position==="fixed"&&window.WPD.intervalUntilExecute(function(){let t=o("body");e.nodes.container=e.n("search").closest(".asp_w_container"),t.append(e.n("search").detach()),t.append(e.n("trythis").detach()),e.n("search").css({top:e.n("search").position().top+"px"})},function(){return e.n("search").css("position")==="fixed"})};var dt=null;let K=n.helpers;n.plugin.openCompact=function(){let e=this;e.n("search").is("[data-asp-compact-w]")||(e.n("probox").attr("data-asp-compact-w",e.n("probox").innerWidth()),e.n("search").attr("data-asp-compact-w",e.n("search").innerWidth())),e.n("search").css({width:e.n("search").width()+"px"}),e.n("probox").css({width:"auto"}),setTimeout(function(){e.n("search").find(".probox>div:not(.promagnifier)").removeClass("hiddend")},80),clearTimeout(e.timeouts.compactBeforeOpen),e.timeouts.compactBeforeOpen=setTimeout(function(){let t;K.deviceType()==="phone"?t=e.o.compact.width_phone:K.deviceType()==="tablet"?t=e.o.compact.width_tablet:t=e.o.compact.width,t=K.Hooks.applyFilters("asp_compact_width",t,e.o.id,e.o.iid),t=isNaN(t)?t:t+"px",e.o.compact.position!=="static"?e.n("search").css({"max-width":t,width:t}):(e.n("container").css({"max-width":t,width:t}),e.n("search").css({"max-width":"100%",width:"100%"})),e.o.compact.overlay&&(e.n("search").css("z-index",999999),e.n("searchsettings").css("z-index",999999),e.n("resultsDiv").css("z-index",999999),e.n("trythis").css("z-index",999998),o("#asp_absolute_overlay").css({opacity:1,width:"100%",height:"100%","z-index":999990})),e.n("search").attr("data-asp-compact","open")},50),e.o.compact.focus&&X(),clearTimeout(e.timeouts.compactAfterOpen),e.timeouts.compactAfterOpen=setTimeout(function(){e.resize(),e.n("trythis").css({display:"block"}),e.o.compact.enabled&&e.o.compact.position!=="static"&&e.n("trythis").css({top:e.n("search").offset().top+e.n("search").outerHeight(!0)+"px",left:e.n("search").offset().left+"px"}),e.o.compact.focus&&X(e.n("text").get(0)),e.n("text").trigger("focus"),e.scrolling()},500)},n.plugin.closeCompact=function(){let e=this;clearTimeout(e.timeouts.compactBeforeOpen),clearTimeout(e.timeouts.compactAfterOpen),e.timeouts.compactBeforeOpen=setTimeout(function(){e.n("search").attr("data-asp-compact","closed")},50),e.n("search").find(".probox>div:not(.promagnifier)").addClass("hiddend"),e.o.compact.position!=="static"?e.n("search").css({width:"auto"}):(e.n("container").css({width:"auto"}),e.n("search").css({"max-width":"unset",width:"auto"})),e.n("probox").css({width:e.n("probox").attr("data-asp-compact-w")+"px"}),e.n("trythis").css({left:e.n("search").position().left,display:"none"}),e.o.compact.overlay&&(e.n("search").css("z-index",""),e.n("searchsettings").css("z-index",""),e.n("resultsDiv").css("z-index",""),e.n("trythis").css("z-index",""),o("#asp_absolute_overlay").css({opacity:0,width:0,height:0,"z-index":0}))};var ft=null;n.plugin.initCompactEvents=function(){let e=this,t=0;e.n("promagnifier").on("click",function(){let i=e.n("search").attr("data-asp-compact")||"closed";if(t=window.scrollY,e.hideSettings?.(),e.hideResults(),i==="closed")e.openCompact(),e.n("text").trigger("focus");else{if(!e.o.compact.closeOnMagnifier)return;e.closeCompact(),e.searchAbort(),e.n("proloading").css("display","none")}})};var ht=null,pt=null;n.plugin.gaEvent=function(e,t){let i=this,a=i.gaGetTrackingID();if(typeof ASP.analytics>"u"||ASP.analytics.method!=="event")return!1;let r=typeof window.gtag=="function"?window.gtag:!1;if(r===!1&&typeof window.dataLayer>"u")return!1;if(typeof ASP.analytics.event[e]<"u"&&ASP.analytics.event[e].active){let s={search_id:i.o.id,search_name:i.n("search").data("name"),phrase:i.n("text").val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},l={event_category:ASP.analytics.event[e].category,event_label:ASP.analytics.event[e].label,value:ASP.analytics.event[e].value};t=o.fn.extend(s,t),Object.keys(t).forEach(function(d){let p=t[d];p=String(p).replace(/[\s\n\r]+/g," ").trim(),Object.keys(l).forEach(function(g){let x=new RegExp("{"+d+"}","gmi");l[g]=l[g].replace(x,p)})}),r!==!1?a!==!1?a.forEach(function(d){l.send_to=d,r("event",ASP.analytics.event[e].action,l)}):r("event",ASP.analytics.event[e].action,l):typeof window.dataLayer.push<"u"&&window.dataLayer.push({event:"asp_event",event_name:ASP.analytics.event[e].action,event_category:l.event_category,event_label:l.event_label,event_value:l.value})}},n.plugin.gaGetTrackingID=function(){let e=!1;if(typeof ASP.analytics>"u")return e;if(typeof ASP.analytics.tracking_id<"u"&&ASP.analytics.tracking_id!=="")return[ASP.analytics.tracking_id];if((typeof window.gtag=="function"?window.gtag:!1)===!1&&typeof window.ga<"u"&&typeof window.ga.getAll<"u"){let i=[];return window.ga.getAll().forEach(function(a){i.push(a.get("trackingId"))}),i.length>0?i:!1}return e};var gt=null,mt=null;let F=n.helpers;n.plugin.liveLoad=function(e,t,i,a,r){let s=e;if(s==="body"||s==="html")return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;let l=this;ASP.pageHTML!==""&&l.setLiveLoadCache(ASP.pageHTML,e);function d(x){let _=F.Hooks.applyFilters("asp/live_load/raw_data",x,l),S=new DOMParser,k=S.parseFromString(_,"text/html"),A=o(k);if(l.o.statistics&&l.stat_addKeyword(l.o.id,l.n("text").val()),_!==""&&A.length>0&&A.find(s).length>0){_=_.replace(/&asp_force_reset_pagination=1/gmi,""),_=_.replace(/%26asp_force_reset_pagination%3D1/gmi,""),_=_.replace(/&asp_force_reset_pagination=1/gmi,""),F.isSafari()&&(_=_.replace(/srcset/gmi,"nosrcset")),_=F.Hooks.applyFilters("asp_live_load_html",_,l.o.id,l.o.iid),A=o(S.parseFromString(_,"text/html"));let L=A.find(s).get(0);L=F.Hooks.applyFilters("asp/live_load/replacement_node",L,l,g.get(0),_),L!=null&&g.get(0).parentNode.replaceChild(L,g.get(0)),g=o(s).first(),i&&(document.title=k.title,history.pushState({},null,t)),o(s).first().find(".woocommerce-ordering select.orderby").on("change",function(){o(this).closest("form").length>0&&o(this).closest("form").get(0).submit()}),l.o.highlight&&g.highlight(l.n("text").val().replace(/["']/g,"").split(" "),{element:"span",className:"asp_single_highlighted_"+l.o.id,wordsOnly:!!l.o.highlightWholewords}),l.addHighlightString(o(s).find("a")),F.Hooks.applyFilters("asp/live_load/finished",t,l,s,g.get(0)),ASP.initialize(),l.lastSuccesfulSearch=o("form",l.n("searchsettings")).serialize()+l.n("text").val().trim(),l.lastSearchData=_,l.setLiveLoadCache(x,e)}l.n("s").trigger("asp_search_end",[l.o.id,l.o.iid,l.n("text").val(),_],!0,!0),l.gaEvent?.("search_end",{results_count:"unknown"}),l.hideLoader(),g.css("opacity",1),l.searching=!1,l.n("text").val()!==""&&l.n("proclose").css({display:"block"})}i=typeof i>"u"?!0:i,a=typeof a>"u"?!0:a;let p=l.getLiveLoadAltSelectors();if(s!=="#main"&&p.unshift("#main"),o(s).length<1){for(const x of p)if(o(x).length>0){s=x;break}if(o(s).length<1)return console.log("Ajax Search Pro: The live search selector does not exist on the page."),!1}s=F.Hooks.applyFilters("asp/live_load/selector",s,this);let g=o(s).first();l.searchAbort(),g.css("opacity",.4),t=F.Hooks.applyFilters("asp/live_load/url",t,l,s,g.get(0)),F.Hooks.applyFilters("asp/live_load/start",t,l,s,g.get(0)),!a&&l.n("searchsettings").find("input[name=filters_initial]").val()==="1"&&l.n("text").val()===""?window.WPD.intervalUntilExecute(function(){d(ASP.pageHTML)},function(){return ASP.pageHTML!==""}):typeof r<"u"?d(r.html):(l.searching=!0,l.post=o.fn.ajax({url:t,method:"GET",success:function(x){d(x),l.isAutoP=!1},dataType:"html",fail:function(x){g.css("opacity",1),!x.aborted&&(g.html("This request has failed. Please check your connection."),l.hideLoader(),l.searching=!1,l.n("proclose").css({display:"block"}),l.isAutoP=!1)}}))},n.plugin.getLiveLoadAltSelectors=function(){return[".search-content","#content #posts-container","#content","#Content","div[role=main]","main[role=main]","div.theme-content","div.td-ss-main-content","main#page-content","main.l-content","#primary","#main-content",".main-content",".search section .bde-post-loop",".archive section .bde-post-loop",".search section .bde-post-list",".archive section .bde-post-list","main .wp-block-query","main"]},n.plugin.usingLiveLoader=function(){const e=this;if(e._usingLiveLoader!==void 0)return e._usingLiveLoader;const t=e.o,i="asp_es_"+t.id,a=this.getLiveLoadAltSelectors().join(",");if(document.getElementsByClassName(i).length)return e._usingLiveLoader=!0;const r=["resPage","wooShop","cptArchive","taxArchive"];return e._usingLiveLoader=r.some(s=>{const l=t[s];return l.useAjax&&(document.querySelector(l.selector)||a&&document.querySelector(a))}),e._usingLiveLoader},n.plugin.getLiveURLbyBaseLocation=function(e){let t=this,i="asp_ls="+F.nicePhrase(t.n("text").val()),a="&";e.indexOf("?")===-1&&(a="?");let r=e+a+i+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+t.o.id+"&p_asp_data=1&"+o("form",t.n("searchsettings")).serialize();return r=r.replace("?&","?"),r=r.replace("&&","&"),r},n.plugin.getCurrentLiveURL=function(){const e=this,t=new URL(window.location.href);let i;return t.hash="",i=t.href,i=i.replace(/([?&])query-\w+-page=\d+/,"$1"),i=i.indexOf("asp_ls=")>-1?i.slice(0,i.indexOf("asp_ls=")):i,i=i.indexOf("asp_ls&")>-1?i.slice(0,i.indexOf("asp_ls&")):i,i=i.indexOf("p_asid=")>-1?i.slice(0,i.indexOf("p_asid=")):i,i=i.indexOf("asp_")>-1?i.slice(0,i.indexOf("asp_")):i,e.getLiveURLbyBaseLocation(i)},n.plugin.initLiveLoaderPopState=function(){let e=this;e.liveLoadCache=[],window.addEventListener("popstate",()=>{let t=e.getLiveLoadCache();t!==!1&&(e.n("text").val(t.phrase),F.formData(o("form",e.n("searchsettings")),t.settings),e.resetNoUISliderFilters(),e.liveLoad(t.selector,document.location.href,!1,!1,t))}),ASP.pageHTML===""&&typeof ASP._ajax_page_html>"u"&&(ASP._ajax_page_html=!0,o.fn.ajax({url:e.currentPageURL,method:"GET",success:function(t){ASP.pageHTML=t},dataType:"html"}))},n.plugin.setLiveLoadCache=function(e,t){let i=this;i.liveLoadCache.filter(a=>a.href===document.location.href).length===0&&i.liveLoadCache.push({href:e===ASP.pageHTML?i.currentPageURL:document.location.href,phrase:e===ASP.pageHTML?"":i.n("text").val(),selector:t,html:e,settings:e===ASP.pageHTML?i.originalFormData:F.formData(o("form",i.n("searchsettings")))})},n.plugin.getLiveLoadCache=function(){let t=this.liveLoadCache.filter(i=>i.href===document.location.href);return t.length>0?t[0]:!1};var _t=null,vt=null;let oe=n.helpers;n.plugin.showHorizontalResults=function(){let e=this;if(e.showResultsBox(),e.n("items").css("opacity",e.animationOpacity),e.o.resultsposition==="hover"&&e.n("resultsDiv").css("width",e.n("search").width()-(e.n("resultsDiv").outerWidth(!0)-e.n("resultsDiv").width())+"px"),e.n("items").length>0&&e.o.scrollBar.horizontal.enabled){let t=parseInt(e.n("items").css("marginLeft")),i=e.n("items").outerWidth()+t*2;e.n("resdrg").css("width",e.n("items").length*i+t*2+"px")}else e.n("results").css("overflowX","hidden"),e.n("resdrg").css("width","auto");if(e.keywordHighlight(),e.call_num<1){let t=e.n("results");if(t.get(0).scrollLeft=0,e.o.scrollBar.horizontal.enabled){let i=0,a=Date.now();t.off("mousewheel"),t.on("mousewheel",function(r){let s=typeof r.deltaFactor<"u"?r.deltaFactor:65,l=r.deltaY>0?1:-1,d=Date.now()-a,p=d>100?1:3-2*d/100;i!==r.deltaY&&(p=1),o(this).animate(!1).animate({scrollLeft:this.scrollLeft+l*s*2*p},250,"easeOutQuad"),i=r.deltaY,a=Date.now(),oe.isScrolledToRight(t.get(0))&&l===1||oe.isScrolledToLeft(t.get(0))&&l===-1||r.preventDefault()})}}e.showResultsBox(),e.addAnimation(),e.searching=!1};var yt=null,wt=null;let Se=n.helpers;n.plugin.initIsotopicPagination=function(){let e=this;e.n("resultsDiv").on(e.clickTouchend+" click_trigger","nav>a",function(t){t.preventDefault(),t.stopImmediatePropagation();let i=o(this).closest("nav").find("li.asp_active");(o(this).hasClass("asp_prev")?"prev":"next")==="next"?i.next("li").length>0?i.next("li").trigger("click"):o(this).closest("nav").find("li").first().trigger("click"):i.prev("li").length>0?i.prev("li").trigger("click"):o(this).closest("nav").find("li").last().trigger("click")}),e.n("resultsDiv").on(e.clickTouchend+" click_trigger","nav>ul li",function(t){t.preventDefault(),t.stopImmediatePropagation();let i=this,a=1;Se.isMobile()&&(e.n("text").trigger("blur"),a=300),setTimeout(function(){e.currentPage=parseInt(o(i).find("span").html(),10),o("nav>ul li",e.n("resultsDiv")).removeClass("asp_active"),o("nav",e.n("resultsDiv")).forEach(function(r){o(o(r).find("ul li").get(e.currentPage-1)).addClass("asp_active")}),t.type==="click_trigger"?e.isotopic.arrange({transitionDuration:0,filter:e.filterFns.number}):e.isotopic.arrange({transitionDuration:400,filter:e.filterFns.number}),e.isotopicPagerScroll(),e.removeAnimation(),e.n("resultsDiv").trigger("nav_switch")},a)})};var bt=null;let M=n.helpers;n.plugin.showIsotopicResults=function(){let e=this;if(e._no_animations)return e.showResultsBox(),e.addAnimation(),e.searching=!1,!0;if(e.preProcessIsotopicResults(),e.showResultsBox(),e.n("items").length>0&&(e.n("results").css({height:"auto"}),e.keywordHighlight()),e.call_num===0&&e.calculateIsotopeRows(),e.showPagination(),e.isotopicPagerScroll(),e.n("items").length===0)e.n("results").css({height:"11110px"}),e.n("results").css({height:"auto"}),e.n("resdrg").css({height:"auto"});else if(typeof rpp_isotope<"u"){if(e.isotopic!=null&&typeof e.isotopic.destroy<"u"&&e.call_num===0&&e.isotopic.destroy(),e.call_num===0||e.isotopic==null){let t="#ajaxsearchprores"+e.o.rid+" .resdrg";o(t).length===0&&(t="div[id^=ajaxsearchprores"+e.o.id+"] .resdrg"),e.isotopic=new rpp_isotope(t,{isOriginLeft:!o("body").hasClass("rtl"),itemSelector:"div.item",layoutMode:"masonry",filter:e.filterFns.number,masonry:{gutter:e.o.isotopic.gutter}})}}else return!1;e.addAnimation(),e.initIsotopicClick(),e.searching=!1},n.plugin.initIsotopicClick=function(){let e=this;e.eh.isotopicClickhandle=e.eh.isotopicClickhandle||function(t){if(!e.dragging){let i=o(this).find(".asp_content a.asp_res_url"),a=i.attr("href");a!==""&&(t.preventDefault(),t.which===2||i.attr("target")==="_blank"?M.openInNewTab(a):location.href=a)}},e.n("resultsDiv").find(".asp_isotopic_item").on("click",e.eh.isotopicClickhandle)},n.plugin.preProcessIsotopicResults=function(){let e=this,t=0,i="";e.o.isotopic.showOverlay&&e.n("aspItemOverlay").length>0&&(i=e.n("aspItemOverlay").get(0).outerHTML),e.n("items").forEach(function(a){let r="",s="",l=o(a).find(".asp_image").length>0,d=o(a).find(".asp_image");if(l){let p=d.data("src"),g=e.o.isotopic.blurOverlay&&!M.isMobile()?"aspblur":"no_aspblur";s=o("<div data-src='"+p+"' ></div>"),s.css({"background-image":"url("+p+")"}),s.css({filter:"url(#"+g+")","-webkit-filter":"url(#"+g+")","-moz-filter":"url(#"+g+")","-o-filter":"url(#"+g+")","-ms-filter":"url(#"+g+")"}).addClass("asp_item_overlay_img"),s=s.get(0).outerHTML}o(a).prepend(s+i+r),o(a).attr("data-itemnum",t),t++})},n.plugin.isotopicPagerScroll=function(){let e=this;if(o("nav>ul li.asp_active",e.n("resultsDiv")).length<=0)return!1;let t=o("nav>ul li.asp_active",e.n("resultsDiv")).offset().left,i=o("nav>ul li.asp_active",e.n("resultsDiv")).outerWidth(!0),a=o("nav>a.asp_next",e.n("resultsDiv")).offset().left,r=o("nav>a.asp_prev",e.n("resultsDiv")).offset().left;if(i<=0)return;let s=Math.ceil((r-t+2*i)/i);if(s>0){if(o("nav>ul li.asp_active",e.n("resultsDiv")).prev().length===0){o("nav>ul",e.n("resultsDiv")).css({left:i+"px"});return}o("nav>ul",e.n("resultsDiv")).css({left:o("nav>ul",e.n("resultsDiv")).position().left+i*s+"px"})}else{let l;o("nav>ul li.asp_active",e.n("resultsDiv")).next().length===0?l=Math.ceil((t-a+i)/i):l=Math.ceil((t-a+2*i)/i),l>0&&o("nav>ul",e.n("resultsDiv")).css({left:o("nav>ul",e.n("resultsDiv")).position().left-i*l+"px"})}},n.plugin.showPagination=function(e){let t=this;if(e=typeof e<"u"?e:!1,!t.o.isotopic.pagination)return t.isotopic!=null&&e&&t.isotopic.arrange({transitionDuration:0,filter:t.filterFns.number}),!1;if((t.call_num<1||e)&&o("nav.asp_navigation ul li",t.n("resultsDiv")).remove(),o("nav.asp_navigation",t.n("resultsDiv")).css("display","none"),t.n("items").length>0){let i=1;t.call_num>0&&!e&&(i=t.n("resultsDiv").find("nav.asp_navigation ul").first().find("li").length+1);let a=Math.ceil(t.n("items").length/t.il.itemsPerPage);if(a>1){let r=e&&t.il.lastVisibleItem>0?Math.ceil(t.il.lastVisibleItem/t.il.itemsPerPage):1;r=r<=0?1:r;for(let s=i;s<=a;s++)s===r?o("nav.asp_navigation ul",t.n("resultsDiv")).append("<li class='asp_active'><span>"+s+"</span></li>"):o("nav.asp_navigation ul",t.n("resultsDiv")).append("<li><span>"+s+"</span></li>");o("nav.asp_navigation",t.n("resultsDiv")).css("display","block"),e?o("nav.asp_navigation ul li.asp_active",t.n("resultsDiv")).trigger("click_trigger"):o("nav.asp_navigation ul li.asp_active",t.n("resultsDiv")).trigger("click")}else t.isotopic!=null&&e&&t.isotopic.arrange({transitionDuration:0,filter:t.filterFns.number})}},n.plugin.hidePagination=function(){o("nav.asp_navigation",this.n("resultsDiv")).css("display","none")},n.plugin.visiblePagination=function(){return o("nav.asp_navigation",this.n("resultsDiv")).css("display")!=="none"},n.plugin.calculateIsotopeRows=function(){let e=this,t,i,a=parseFloat(e.n("results").width());M.deviceType()==="desktop"?(t=M.getWidthFromCSSValue(e.o.isotopic.itemWidth,a),i=M.getWidthFromCSSValue(e.o.isotopic.itemHeight,a)):M.deviceType()==="tablet"?(t=M.getWidthFromCSSValue(e.o.isotopic.itemWidthTablet,a),i=M.getWidthFromCSSValue(e.o.isotopic.itemHeightTablet,a)):(t=M.getWidthFromCSSValue(e.o.isotopic.itemWidthPhone,a),i=M.getWidthFromCSSValue(e.o.isotopic.itemHeightPhone,a));let r=a/t,s=e.o.isotopic.gutter,l=Math.floor(r);l<=0&&(l=1),Math.abs(a/l-t)>Math.abs(a/(l+1)-t)&&l++;let d=a/l-(l-1)*s/l,p=d/t*i;e.il.columns=l,e.il.itemsPerPage=l*e.il.rows,e.il.lastVisibleItem=0,e.n("results").find(".asp_isotopic_item").forEach(function(g,x){o(g).css("display")!=="none"&&(e.il.lastVisibleItem=x)}),!isNaN(e.il.columns)&&!isNaN(e.il.itemsPerPage)&&(e.n("resultsDiv").data("colums",e.il.columns),e.n("resultsDiv").data("itemsperpage",e.il.itemsPerPage)),e.currentPage=1,e.n("items").css({width:Math.floor(d)+"px",height:Math.floor(p)+"px"})};var xt=null,St=null;n.plugin.showPolaroidResults=function(){let e=this;this.loadASPFonts?.(),e.n("results").addClass("photostack"),o(".photostack>nav",e.n("resultsDiv")).remove();let t=o("figure",e.n("resultsDiv"));if(e.showResultsBox(),t.length>0)if(e.n("results").css({height:e.o.prescontainerheight}),e.keywordHighlight(),typeof Photostack<"u")e.ptstack=new Photostack(e.n("results").get(0),{callback:function(i){}});else return!1;t.length===0&&(e.n("results").css({height:"11110px"}),e.n("results").css({height:"auto"})),e.addAnimation(),e.fixResultsPosition(!0),e.searching=!1,e.initPolaroidEvents(t)},n.plugin.initPolaroidEvents=function(e){let t=this,i=1,a=".photostack>nav span";e.forEach(function(){i>1&&o(this).removeClass("photostack-current"),o(this).attr("idx",i),i++}),e.on("click",function(l){if(o(this).hasClass("photostack-current"))return;l.preventDefault();let d=o(this).attr("idx");o(".photostack>nav span:nth-child("+d+")",t.n("resultsDiv")).trigger("click",[],!0)});const r=()=>{o(a+".current",t.n("resultsDiv")).next().length>0?o(a+".current",t.n("resultsDiv")).next().trigger("click",[],!0):o(a+":nth-child(1)",t.n("resultsDiv")).trigger("click",[],!0)},s=()=>{o(a+".current",t.n("resultsDiv")).prev().length>0?o(a+".current",t.n("resultsDiv")).prev().trigger("click",[],!0):o(a+":nth-last-child(1)",t.n("resultsDiv")).trigger("click",[],!0)};e.on("mousewheel",function(l){l.preventDefault(),(l.deltaY>0?1:-1)>=1?r():s()}),t.n("resultsDiv").on("swiped-left",r),t.n("resultsDiv").on("swiped-right",s)};var kt=null,At=null;n.plugin.showVerticalResults=function(){let e=this;if(e.showResultsBox(),e.n("items").length>0){let t=e.n("items").length<e.o.itemscount?e.n("items").length:e.o.itemscount;t=t<=0?9999:t;let i=o(".asp_group_header",e.n("resultsDiv"));if(e.o.itemscount===0||e.n("items").length<=e.o.itemscount)e.n("results").css({height:"auto"});else if(e.call_num<1&&e.n("results").css({height:"30px"}),e.call_num<1){let a=0,r=0,s=0,l=0;e.n("items").forEach(function(){r+=o(this).outerHeight(!0),o(this).outerHeight(!0)>l&&(l=o(this).outerHeight(!0)),a++}),s=l*t,s>r&&(s=r),a=a<1?1:a,r=r/a*t,i.length>0&&i.forEach(function(d,p){let g=Array.prototype.slice.call(d.parentNode.children).indexOf(d);g-p-Math.floor(g/3)<t&&(s+=o(this).outerHeight(!0))}),e.n("results").css({height:s+"px"})}e.n("items").last().addClass("asp_last_item"),e.n("results").find(".asp_group_header").prev(".item").addClass("asp_last_item"),e.keywordHighlight()}if(e.resize(),e.n("items").length===0&&e.n("results").css({height:"auto"}),e.call_num<1&&(e.n("results").get(0).scrollTop=0),e.o.preventBodyScroll){let t,i=o("body"),a=i.css("overflow"),r=typeof i.attr("style")>"u";e.n("results").off("touchstart"),e.n("results").off("touchend"),e.n("results").on("touchstart",function(){clearTimeout(t),o("body").css("overflow","hidden")}).on("touchend",function(){clearTimeout(t),t=setTimeout(function(){r?o("body").removeAttr("style"):o("body").css("overflow",a)},300)})}e.addAnimation(),e.fixResultsPosition(!0),e.searching=!1};var Ct=null,Dt=null;let ae=n.helpers;n.plugin.showSettings=function(e){let t=this;if(t.initSettings?.(),e=typeof e>"u"?!0:e,t.n("s").trigger("asp_settings_show",[t.o.id,t.o.iid],!0,!0),e?(t.n("searchsettings").css(t.settAnim.showCSS),t.n("searchsettings").removeClass(t.settAnim.hideClass).addClass(t.settAnim.showClass)):t.n("searchsettings").css({display:"block",visibility:"visible",opacity:1}),t.o.fss_layout==="masonry"&&t.sIsotope==null&&!(ae.isMobile()&&ae.detectIOS()))if(typeof rpp_isotope<"u")setTimeout(function(){let i=t.n("searchsettings").attr("id");t.n("searchsettings").css("width","100%"),t.sIsotope=new rpp_isotope("#"+i+" form",{isOriginLeft:!o("body").hasClass("rtl"),itemSelector:"fieldset",layoutMode:"masonry",transitionDuration:0,masonry:{columnWidth:t.n("searchsettings").find("fieldset:not(.hiddend)").outerWidth()}})},20);else return!1;typeof t.select2jQuery<"u"&&t.select2jQuery(t.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2"),t.n("prosettings").data("opened",1),t.fixSettingsPosition(!0),t.fixSettingsAccessibility()},n.plugin.hideSettings=function(){let e=this;e.initSettings?.(),e.n("s").trigger("asp_settings_hide",[e.o.id,e.o.iid],!0,!0),e.n("searchsettings").removeClass(e.settAnim.showClass).addClass(e.settAnim.hideClass),setTimeout(function(){e.n("searchsettings").css(e.settAnim.hideCSS)},e.settAnim.duration),e.n("prosettings").data("opened",0),e.sIsotope!=null&&setTimeout(function(){e.sIsotope.destroy(),e.sIsotope=null},e.settAnim.duration),typeof e.select2jQuery<"u"&&typeof e.select2jQuery.fn.asp_select2<"u"&&e.select2jQuery(e.n("searchsettings").get(0)).find(".asp_gochosen,.asp_goselect2").asp_select2("close"),e.hideArrowBox?.()},n.plugin.reportSettingsValidity=function(){let e=this,t=!0;return e.n("searchsettings").css("visibility")==="hidden"?!0:(e.n("searchsettings").find("fieldset.asp_required").forEach(function(){let i=o(this),a=!0;i.find("input[type=text]:not(.asp_select2-search__field)").forEach(function(){o(this).val()===""&&(a=!1)}),i.find("select").forEach(function(){const r=o(this).val();(r==null||r===""||Array.isArray(r)&&r.length===0||o(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&parseInt(o(this).val())===-1)&&(a=!1)}),i.find("input[type=checkbox]").length>0&&(i.find("input[type=checkbox]:checked").length===0||i.find("input[type=checkbox]:checked").length===1&&i.find("input[type=checkbox]:checked").val()==="")&&(a=!1),i.find("input[type=radio]").length>0&&(i.find("input[type=radio]:checked").length===0&&(a=!1),a&&i.find("input[type=radio]").forEach(function(){o(this).prop("checked")&&(o(this).val()===""||o(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&parseInt(o(this).val())===-1)&&(a=!1)})),a?i.removeClass("asp-invalid"):(i.addClass("asp-invalid"),t=!1)}),t||e.n("searchsettings").find("button.asp_s_btn").prop("disabled",!0),e.n("searchsettings").find("button.asp_s_btn").prop("disabled",!1),t)},n.plugin.showArrowBox=function(e,t){let i=this,a,r,s=o("body"),l=s.find(".asp_arrow_box");l.length===0&&(s.append("<div class='asp_arrow_box'></div>"),l=s.find(".asp_arrow_box"),l.on("mouseout",function(){i.hideArrowBox?.()}));let d=o(e).offset().top-window.scrollY,p=!1,g=e;for(;g;)if(g=g.parentElement,g!=null&&window.getComputedStyle(g).position==="fixed"){p=!0;break}p?(l.css("position","fixed"),a=0):(l.css("position","absolute"),a=window.scrollY),l.html(t),l.css("display","block"),r=e.getBoundingClientRect().left+o(e).outerWidth()/2-l.outerWidth()/2+"px",d>100?(l.removeClass("asp_arrow_box_bottom"),l.css({top:a+e.getBoundingClientRect().top-l.outerHeight()-4+"px",left:r})):(l.addClass("asp_arrow_box_bottom"),l.css({top:a+e.getBoundingClientRect().bottom+4+"px",left:r}))},n.plugin.hideArrowBox=function(){o("body").find(".asp_arrow_box").css("display","none")},n.plugin.showNextInvalidFacetMessage=function(){let e=this;e.n("searchsettings").find(".asp-invalid").length>0&&e.showArrowBox(e.n("searchsettings").find(".asp-invalid").first().get(0),e.n("searchsettings").find(".asp-invalid").first().data("asp_invalid_msg"))},n.plugin.scrollToNextInvalidFacetMessage=function(){let e=this;if(e.n("searchsettings").find(".asp-invalid").length>0){let t=e.n("searchsettings").find(".asp-invalid").first();if(!t.inViewPort(0))if(typeof t.get(0).scrollIntoView<"u")t.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});else{let i=t.offset().top-20,a=o("#wpadminbar");a.length>0&&(i-=a.height()),i=i<0?0:i,window.scrollTo({top:i,behavior:"smooth"})}}},n.plugin.settingsCheckboxToggle=function(e,t){let i=this;t=typeof t>"u"?!0:t;let a=e,r=e.find('input[type="checkbox"]'),s=parseInt(e.data("lvl"))+1,l=0;for(;a=a.next(),a.length>0&&typeof a.data("lvl")<"u"&&parseInt(a.data("lvl"))>=s;){t&&i.o.settings.unselectChildren&&a.find('input[type="checkbox"]').prop("checked",r.prop("checked")),i.o.settings.hideChildren&&(r.prop("checked")?a.removeClass("hiddend"):a.addClass("hiddend"));if(l++,l>400)break}};var Pt=null;let G=n.helpers;n.plugin.initDatePicker=function(){let e=this;q(function(t){function i(a,r,s,l,d){let p;s!=null?p=t(s):p=t("#"+r.id);let g=t(".asp_datepicker_hidden",t(p).parent()).val(),x="";if(p.datepicker("getDate")==null)t(".asp_datepicker_hidden",t(p).parent()).val("");else{let _=String(p.datepicker("getDate")),S=new Date(_.match(/(.*?)00:/)[1].trim()),k=String(S.getFullYear()),A=("0"+(S.getMonth()+1)).slice(-2),L=("0"+String(S.getDate())).slice(-2);x=k+"-"+A+"-"+L,t(".asp_datepicker_hidden",t(p).parent()).val(x)}(typeof d>"u"||l==null)&&x!==g&&o(p.get(0)).trigger("change")}t(".asp_datepicker, .asp_datepicker_field",e.n("searchsettings").get(0)).each(function(){let a=t(".asp_datepicker_format",t(this).parent()).val(),r=this,s=t(this).val();t(this).removeClass("hasDatepicker"),t(this).datepicker({changeMonth:!0,changeYear:!0,dateFormat:"yy-mm-dd",onSelect:i,beforeShow:function(){t("#ui-datepicker-div").addClass("asp-ui")}}),s===""?t(this).datepicker("setDate",""):t(this).datepicker("setDate",s),t(this).datepicker("option","dateFormat",a),i(null,null,r,!0),t(this).on("selectnochange",function(){i(null,null,r,!0)}),t(this).on("keyup",function(){t(r).datepicker("getDate")==null&&t(".asp_datepicker_hidden",t(r).parent()).val(""),t(r).datepicker("hide")})}),G.isMobile()&&G.detectIOS()&&t(window).on("pageshow",function(a){a.originalEvent.persisted&&setTimeout(function(){t(".asp_datepicker, .asp_datepicker_field",e.n("searchsettings").get(0)).each(function(){let r=t(this).datepicker("option","dateFormat");t(this).datepicker("option","dateFormat","yy-mm-dd"),t(this).datepicker("setDate",t(this).next(".asp_datepicker_hidden").val()),t(this).datepicker("option","dateFormat",r)})},100)})},function(){return G.whichjQuery("datepicker")})};var Et=null;let Z=n.helpers;n.plugin.initFacetEvents=function(){let e=this,t=null,i=null;o(".asp_custom_f input[type=text]:not(.asp_select2-search__field):not(.asp_datepicker_field):not(.asp_datepicker)",e.n("searchsettings")).on("input",function(a){let r=a.keyCode||a.which,s=this;if(e.ktype=a.type,r===13&&(a.preventDefault(),a.stopImmediatePropagation()),o(this).data("asp-type")==="number"&&this.value!==""){let l=this.value.replaceAll(o(this).data("asp-tsep"),""),d=Z.inputToFloat(this.value),p=this;if(p.value=d,d=d<parseFloat(o(this).data("asp-min"))?o(this).data("asp-min"):d,d=d>parseFloat(o(this).data("asp-max"))?o(this).data("asp-max"):d,clearTimeout(i),i=setTimeout(function(){p.value=Z.addThousandSeparators(d,o(p).data("asp-tsep"))},400),d.toString()!==l)return!1}clearTimeout(t),t=setTimeout(function(){e.gaEvent?.("facet_change",{option_label:o(s).closest("fieldset").find("legend").text(),option_value:o(s).val()})},1400),e.n("searchsettings").find("input[name=filters_changed]").val(1),e.setFilterStateInput(65),e.o.trigger.facet&&e.searchWithCheck(240)}),e.n("searchsettings").find(".asp-number-range[data-asp-tsep]").forEach(function(){this.value=Z.addThousandSeparators(this.value,o(this).data("asp-tsep"))}),e.o.trigger.facet&&(o("select",e.n("searchsettings")).on("change slidechange",function(a){e.ktype=a.type,e.n("searchsettings").find("input[name=filters_changed]").val(1),e.gaEvent?.("facet_change",{option_label:o(this).closest("fieldset").find("legend").text(),option_value:o(this).find("option:checked").get().map(function(r){return r.text}).join()}),e.setFilterStateInput(65),e.searchWithCheck(80),e.sIsotope!=null&&e.sIsotope.arrange()}),o("input:not([type=checkbox]):not([type=text]):not([type=radio])",e.n("searchsettings")).on("change slidechange",function(a){e.ktype=a.type,e.n("searchsettings").find("input[name=filters_changed]").val(1),e.gaEvent?.("facet_change",{option_label:o(this).closest("fieldset").find("legend").text(),option_value:o(this).val()}),e.setFilterStateInput(65),e.searchWithCheck(80)}),o("input[type=radio]",e.n("searchsettings")).on("change slidechange",function(a){e.ktype=a.type,e.n("searchsettings").find("input[name=filters_changed]").val(1),e.gaEvent?.("facet_change",{option_label:o(this).closest("fieldset").find("legend").text(),option_value:o(this).closest("label").text()}),e.setFilterStateInput(65),e.searchWithCheck(80)}),o("input[type=checkbox]",e.n("searchsettings")).on("asp_chbx_change",function(a){e.ktype=a.type,e.n("searchsettings").find("input[name=filters_changed]").val(1),e.gaEvent?.("facet_change",{option_label:o(this).closest("fieldset").find("legend").text(),option_value:o(this).closest(".asp_option").find(".asp_option_label").text()+(o(this).prop("checked")?"(checked)":"(unchecked)")}),e.setFilterStateInput(65),e.searchWithCheck(80)}),o("input.asp_datepicker, input.asp_datepicker_field",e.n("searchsettings")).on("change",function(a){e.ktype=a.type,e.n("searchsettings").find("input[name=filters_changed]").val(1),e.gaEvent?.("facet_change",{option_label:o(this).closest("fieldset").find("legend").text(),option_value:o(this).val()}),e.setFilterStateInput(65),e.searchWithCheck(80)}),o('div[id*="-handles"]',e.n("searchsettings")).forEach(function(a){e.ktype=a.type,typeof this.noUiSlider<"u"&&this.noUiSlider.on("change",function(r){let s=typeof this.target<"u"?this.target:this;e.gaEvent?.("facet_change",{option_label:o(s).closest("fieldset").find("legend").text(),option_value:r}),e.n("searchsettings").find("input[name=filters_changed]").val(1),e.setFilterStateInput(65),e.searchWithCheck(80)})}))};var Tt=null;n.plugin.initNoUIEvents=function(){let e=this,t=e.nodes.searchsettings,i;t.find("div[class*=noui-slider-json]").forEach(function(a,r){let s=o(this).data("aspnoui");if(typeof s>"u"||(s=WPD.Base64.decode(s),typeof s>"u"||s===""))return!1;let l=JSON.parse(s);if(Object.keys(l.links).forEach(function(d){l.links[d].target="#"+t.get(0).id+" "+l.links[d].target}),o(l.node,t).length>0){i=o(l.node,t).get(0);let d=o(a).parent().find(".asp_slider_hidden");if(d.length>1?l.main.start=[d.first().val(),d.last().val()]:l.main.start=[d.first().val()],typeof noUiSlider<"u")typeof i.noUiSlider<"u"&&i.noUiSlider.destroy(),i.innerHTML="",noUiSlider.create(i,l.main);else return!1;e.noUiSliders[r]=i,i.noUiSlider.on("update",function(p,g){let x=p[g];g?l.links.forEach(function(_){let S=wNumb(_.wNumb);_.handle==="upper"&&(o(_.target,t).is("input")?o(_.target,t).val(x):o(_.target,t).html(S.to(parseFloat(x)))),o(l.node,t).on("slide",function(k){k.preventDefault()})}):l.links.forEach(function(_){let S=wNumb(_.wNumb);_.handle==="lower"&&(o(_.target,t).is("input")?o(_.target,t).val(x):o(_.target,t).html(S.to(parseFloat(x)))),o(l.node,t).on("slide",function(k){k.preventDefault()})})})}})};var Lt=null;let re=n.helpers;n.plugin.initSettingsSwitchEvents=function(){let e=this;e.n("prosettings").on("click",function(){e.n("prosettings").data("opened")==="0"?e.showSettings?.():e.hideSettings?.()}),re.isMobile()?(e.o.mobile.force_sett_state==="open"||e.o.mobile.force_sett_state==="none"&&e.o.settingsVisible)&&e.showSettings?.(!1):e.o.settingsVisible&&e.showSettings?.(!1)},n.plugin.initSettingsEvents=function(){let e=this,t,i=function(){typeof e.originalFormData>"u"&&(e.originalFormData=re.formData(o("form",e.n("searchsettings")))),e.n("searchsettings").off("mousedown touchstart mouseover",i)};e.n("searchsettings").on("mousedown touchstart mouseover",i);let a=function(s){o(s.target).closest(".asp_w").length===0&&!e.att("blocking")&&!e.dragging&&o(s.target).closest(".ui-datepicker").length===0&&o(s.target).closest(".noUi-handle").length===0&&o(s.target).closest(".asp_select2").length===0&&o(s.target).closest(".asp_select2-container").length===0&&e.hideSettings?.()};e.documentEventHandlers.push({node:document,event:e.clickTouchend,handler:a}),o(document).on(e.clickTouchend,a);const r=()=>{e.n("searchsettings").find(".asp_option, .asp_label").forEach(function(s){o(s).find("input").prop("checked")?o(s).addClass("asp_option_checked").attr("aria-checked",!0):o(s).removeClass("asp_option_checked").attr("aria-checked",!1)})};r(),e.n("searchsettings").on("click",function(){e.settingsChanged=!0}),e.n("searchsettings").on("set_option_checked",function(){r()}),e.n("searchsettings").on(e.clickTouchend,function(s){e.dragging||e.updateHref(),(typeof s.target<"u"&&!o(s.target).hasClass("noUi-handle")||s.type==="click")&&s.stopImmediatePropagation()}),o('.asp_option input[type="checkbox"]',e.n("searchsettings")).on("asp_chbx_change",function(){e.settingsCheckboxToggle(o(this).closest(".asp_option_cat"));const s=o(this).data("targetclass");typeof s=="string"&&s!==""&&o(this).closest("fieldset").find("input."+s).prop("checked",o(this).prop("checked"))}),e.n("searchsettings").find('input[type="checkbox"]').on("asp_chbx_change",function(){r()}),o('input[type="radio"]',e.n("searchsettings")).on("change",function(){r()}),o(".asp_option_cat",e.n("searchsettings")).forEach(function(s){e.settingsCheckboxToggle(o(s),!1)}),o("div.asp_option",e.n("searchsettings")).on(e.mouseupTouchend,function(s){if(s.preventDefault(),s.stopImmediatePropagation(),e.dragging)return!1;o(this).find('input[type="checkbox"]').prop("checked",!o(this).find('input[type="checkbox"]').prop("checked")),clearTimeout(t);let l=this;t=setTimeout(function(){o(l).find('input[type="checkbox"]').trigger("asp_chbx_change")},50)}),o("div.asp_option",e.n("searchsettings")).on("keyup",function(s){s.preventDefault();let l=s.keyCode||s.which;(l===13||l===32)&&o(this).trigger("mouseup")}),o("fieldset.asp_checkboxes_filter_box",e.n("searchsettings")).forEach(function(){let s=!0;o(this).find('.asp_option:not(.asp_option_selectall) input[type="checkbox"]').forEach(function(){if(o(this).prop("checked"))return s=!1,!1}),s&&o(this).find('.asp_option_selectall input[type="checkbox"]').prop("checked",!1).removeAttr("data-origvalue")}),o("fieldset",e.n("searchsettings")).forEach(function(){o(this).find(".asp_option:not(.hiddend)").last().addClass("asp-o-last")})};var It=null;let ke=n.helpers;n.plugin.initSettings=function(){this.settingsInitialized||(this.loadASPFonts?.(),this.initSettingsBox?.(),this.initSettingsEvents?.(),this.initButtonEvents?.(),this.initNoUIEvents?.(),this.initDatePicker?.(),this.initSelect2?.(),this.initFacetEvents?.())},n.plugin.initSettingsBox=function(){let e=this,t=function(r){let s=e.n("searchsettings").get(0);e.nodes.searchsettings=e.nodes.searchsettings.clone(),r.append(e.nodes.searchsettings),o(s).find("*[id]").forEach(function(l){l.id.indexOf("__original__")<0&&(l.id="__original__"+l.id)}),e.n("searchsettings").find("*[id]").forEach(function(l){l.id.indexOf("__original__")>-1&&(l.id=l.id.replace("__original__",""))})},i=function(){e.n("searchsettings").attr("id",e.n("searchsettings").attr("id").replace("prosettings","probsettings")),e.n("searchsettings").removeClass("asp_s asp_s_"+e.o.id+" asp_s_"+e.o.rid).addClass("asp_sb asp_sb_"+e.o.id+" asp_sb_"+e.o.rid),e.dynamicAtts.blocking=!0},a=function(){e.n("searchsettings").attr("id",e.n("searchsettings").attr("id").replace("probsettings","prosettings")),e.n("searchsettings").removeClass("asp_sb asp_sb_"+e.o.id+" asp_sb_"+e.o.rid).addClass("asp_s asp_s_"+e.o.id+" asp_s_"+e.o.rid),e.dynamicAtts.blocking=!1};e.initSettingsAnimations?.(),e.o.compact.enabled&&e.o.compact.position==="fixed"||ke.isMobile()&&e.o.mobile.force_sett_hover?(a(),t(o("body")),e.n("searchsettings").css({position:"absolute"}),e.dynamicAtts.blocking=!1):e.n("settingsAppend").length>0?e.n("settingsAppend").find(".asp_ss_"+e.o.id).length>0?(e.nodes.searchsettings=e.nodes.settingsAppend.find(".asp_ss_"+e.o.id),typeof e.nodes.searchsettings.get(0).referenced<"u"?++e.nodes.searchsettings.get(0).referenced:e.nodes.searchsettings.get(0).referenced=1):(e.att("blocking")||i(),t(e.nodes.settingsAppend)):e.att("blocking")||t(o("body")),e.n("searchsettings").get(0).id=e.n("searchsettings").get(0).id.replace("__original__",""),e.detectAndFixFixedPositioning(),e.settingsInitialized=!0},n.plugin.initSettingsAnimations=function(){let e=this;e.settAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":e.animOptions.settings.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:e.animOptions.settings.dur+"ms"},e.animOptions.settings.anim==="fade"&&(e.settAnim.showClass="asp_an_fadeIn",e.settAnim.hideClass="asp_an_fadeOut"),e.animOptions.settings.anim==="fadedrop"&&!e.att("blocking")?(e.settAnim.showClass="asp_an_fadeInDrop",e.settAnim.hideClass="asp_an_fadeOutDrop"):e.animOptions.settings.anim==="fadedrop"&&(e.settAnim.showClass="asp_an_fadeIn",e.settAnim.hideClass="asp_an_fadeOut"),e.n("searchsettings").css({"-webkit-animation-duration":e.settAnim.duration+"ms","animation-duration":e.settAnim.duration+"ms"})};var jt=null,Ot=null;const Ae=n.helpers;class Ce{name="Elementor Widget Fixes";init(){const{Hooks:t}=Ae;t.addFilter("asp/live_load/finished",this.fixImages.bind(this),11,this)}fixImages(t,i){window?.bricksLazyLoad?.()}}n.addons.add(new Ce);var Rt=null,Ft=null;function De(e){try{return decodeURIComponent(e)}catch{return e}}function Pe(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Ee(e,t,i){const a=t.length,r=a-1;for(let s=0;s<a;s++){let l=t[s];!l&&Array.isArray(e)&&(l=e.length.toString()),l=["__proto__","constructor","prototype"].includes(l)?l.toUpperCase():l;const d=!isNaN(Number(t[s+1]));e[l]=s===r?i:e[l]||(d?[]:{}),Array.isArray(e[l])&&!d&&(e[l]={...e[l]}),e=e[l]}}function le(e){return(Pe(e)||"").replace(/\+/g,"%20").split("&").reduce((t,i)=>{const[a,r=""]=i.split("=").filter(Boolean).map(De);if(a){const s=a.replace(/\]/g,"").split("[");Ee(t,s,r)}return t},Object.create(null))}function ce(e){let t="";const i=Object.entries(e);let a;for(;a=i.shift();){let[r,s]=a;if(Array.isArray(s)||s&&s.constructor===Object){const d=Object.entries(s).reverse();for(const[p,g]of d)i.unshift([`${r}[${p}]`,g])}else s!==void 0&&(s===null&&(s=""),t+="&"+[r,s].map(encodeURIComponent).join("="))}return t.substr(1)}function Te(e,...t){const i=e.replace(/^[^#]*/,"");e=e.replace(/#.*/,"");const a=e.indexOf("?");if(a===-1)return e+i;const r=le(e),s=e.substr(0,a);t.forEach(p=>delete r[p]);const l=ce(r);return(l?s+"?"+l:s)+i}function Le(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}function Ie(e="",t){if(!t||!Object.keys(t).length)return e;const i=Le(e)||"";let a=e.replace(i,"");const r=e.indexOf("?");return r!==-1&&(t=Object.assign(le(e),t),a=a.substr(0,r)),a+"?"+ce(t)+i}const je=n.helpers;class Oe{name="Elementor Widget Fixes";init(){const{Hooks:t}=je;t.addFilter("asp/live_load/url",this.addQueryIdToUrl.bind(this),11,this)}addQueryIdToUrl(t,i,a,r){return!r.classList.contains("wp-block-blocksy-query")||r.dataset.id===void 0?t:(t=Te(t,"query-"+r.dataset.id),Ie(t,{unique_id:r.dataset.id}))}}n.addons.add(new Oe);var $t=null,Ht=null;const ue=n.helpers;class Re{name="Divi Widget Fixes";init(){ue.Hooks.addFilter("asp/init/etc",this.diviBodyCommerceResultsPage,10,this),ue.Hooks.addFilter("asp/live_load/finished",this.diviBlogModuleTriggerInit.bind(this),10,this)}diviBodyCommerceResultsPage(t){return t.o.divi.bodycommerce&&t.o.is_results_page&&window.WPD.intervalUntilExecute(function(i){setTimeout(function(){i("#divi_filter_button").trigger("click")},50)},function(){return typeof jQuery<"u"?jQuery:!1}),t}diviBlogModuleTriggerInit(t,i,a,r){jQuery!==void 0&&jQuery(r).hasClass("et_pb_module")&&jQuery(window).trigger("load")}}n.addons.add(new Re);var Mt=null,Nt=null;const Fe=n.helpers;class $e{name="Elementor Widget Fixes";init(){const{Hooks:t}=Fe;t.addFilter("asp/live_load/finished",this.finished.bind(this),10,this)}finished(t,i,a,r){const l=w()(r).find(".jet-listing div[data-nav]");if(!a.includes("asp_es_")||l.length===0)return;const d=l.get(0);if(d?.dataset?.nav===void 0||d?.dataset?.nav===null)return;const p=JSON.parse(d.dataset.nav);p.query===void 0&&(p.query={}),p.query.s=i.n("text").val().trim(),p.query.asp_id=i.o.id,d.dataset.nav=JSON.stringify(p)}}n.addons.add(new $e);var Wt=null;const He=n.helpers;class Me{name="Elementor Widget Fixes";init(){const{Hooks:t}=He;t.addFilter("asp/init/etc",this.fixElementorPostPagination.bind(this),10,this),t.addFilter("asp/live_load/start",this.start.bind(this),10,this),t.addFilter("asp/live_load/finished",this.finished.bind(this),10,this),t.addFilter("asp/live_load/finished",this.fixImages.bind(this),11,this)}fixImages(t,i){w()(".asp_es_"+i.o.id).find("img[nosrcset]").forEach(r=>{w()(r).attr("srcset",w()(r).attr("nosrcset")).removeAttr("nosrcset")})}start(t,i,a,r){const s=i.n("searchsettings").find("form").serialize(),l=i.n("text").val().trim();!(s+l!==i.lastSuccesfulSearch)&&w()(r).find(".e-load-more-spinner").length>0&&w()(r).css("opacity","1"),w()(a).removeClass("e-load-more-pagination-end")}finished(t,i,a,r){const s=w()(r);if(a.includes("asp_es_")&&typeof elementorFrontend<"u"&&typeof elementorFrontend.init<"u"&&s.find(".asp_elementor_nores").length===0){const l=s.data("widget_type")||"";l!==""&&typeof jQuery<"u"&&elementorFrontend.hooks.doAction("frontend/element_ready/"+l,jQuery(s.get(0))),this.fixElementorPostPagination(i,t),i.o.scrollToResults.enabled&&this.scrollToResultsIfNeeded(s),i.n("s").trigger("asp_elementor_results",[i.o.id,i.o.iid,s.get(0)],!0,!0)}}scrollToResultsIfNeeded(t){const i=t.find(".elementor-post, .product").first();i.length&&!i.isInViewport(40)&&i.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}fixElementorPostPagination(t,i){const a=w()(".asp_es_"+t.o.id);if(i=i||location.href,!a.length)return t;const r=new URL(i);if(!r.searchParams.size)return t;this.elementorHideSpinner(a.get(0)),r.searchParams.delete("asp_force_reset_pagination");const s=a.find(".e-load-more-anchor"),l=a.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a");if(s.length>0&&!l.length){const d=a.find(".elementor-widget-container").get(0),p=()=>{const g=s.data("page"),x=g?parseInt(g,10)+1:2;r.searchParams.set("page",x.toString()),s.data("next-page",r.href),s.next(".elementor-button-wrapper").find("a").attr("href",r.href)};d&&new MutationObserver(()=>{p(),console.log("Mutation observed: fixing anchor.")}).observe(d,{childList:!0,subtree:!0}),p()}else l.each(function(){const d=w()(this),p=d.attr("href")||"",g=new URL(p,window.location.origin);g.searchParams.has("asp_ls")?g.searchParams.delete("asp_force_reset_pagination"):r.searchParams.forEach((x,_)=>g.searchParams.set(_,x)),d.attr("href",g.href)});return t}elementorHideSpinner(t){w()(t).removeClass("e-load-more-pagination-loading").find(".eicon-animation-spin").removeClass("eicon-animation-spin")}}n.addons.add(new Me);var zt=null,Ut=null;const Ne=n.helpers;class We{init(){Ne.Hooks.addFilter("asp/search/end",this.finished.bind(this),10,this)}finished(t){typeof wc_add_to_cart_params>"u"||typeof jQuery>"u"||(this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),jQuery(t.n("resdrg").get(0)).find(".add-to-cart-button:not(.wc-interactive)").off().on("click",{addToCartHandler:this},this.onAddToCart))}addRequest(t){this.requests.push(t),this.requests.length===1&&this.run()}run(){const t=this,i=t.requests[0].complete;t.requests[0].complete=function(){typeof i=="function"&&i(),t.requests.shift(),t.requests.length>0&&t.run()},jQuery.ajax(this.requests[0])}onAddToCart(t){const i=jQuery(this);if(i.is(".ajax-add-to-cart")){if(!i.attr("data-product_id"))return!0;if(t.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),t.preventDefault(),i.removeClass("added"),i.addClass("loading"),jQuery(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[i])===!1)return jQuery(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,i]),!0;const a={};jQuery.each(i.data(),function(s,l){a[s]=l}),jQuery.each(i[0].dataset,function(s,l){a[s]=l});const r=i.closest(".add-to-cart-container").find(".add-to-cart-quantity");r.length>0&&(a.quantity=r.get(0).value),jQuery(document.body).trigger("adding_to_cart",[i,a]),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:a,success:function(s){if(s){if(s.error&&s.product_url){window.location=s.product_url;return}if(wc_add_to_cart_params.cart_redirect_after_add==="yes"){window.location=wc_add_to_cart_params.cart_url;return}jQuery(document.body).trigger("added_to_cart",[s.fragments,s.cart_hash,i])}},dataType:"json"})}}createLiveRegion(){const t=jQuery(".widget_shopping_cart_live_region");return t.length?t:jQuery('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo("body")}}n.addons.add(new We);var Bt=null,Qt=null;window._asp_instances_storage=window._asp_instances_storage||[];var V={instances:window._asp_instances_storage,get:function(e,t){if(this.clean(),typeof e>"u"||e===0)return this.instances;if(typeof t>"u"){let i=[];for(let a=0;a<this.instances.length;a++)parseInt(this.instances[a].o.id)===e&&i.push(this.instances[a]);return i.length>0?i:!1}else for(let i=0;i<this.instances.length;i++)if(parseInt(this.instances[i].o.id)===e&&parseInt(this.instances[i].o.iid)===t)return this.instances[i];return!1},set:function(e){return this.exist(e.o.id,e.o.iid)?!1:(this.instances.push(e),!0)},exist:function(e,t){this.clean();for(let i=0;i<this.instances.length;i++)if(parseInt(this.instances[i].o.id)===parseInt(e)){if(typeof t>"u")return!0;if(parseInt(this.instances[i].o.iid)===parseInt(t))return!0}return!1},clean:function(){let e=[],t=this;this.instances.forEach(function(i,a){o(".asp_m_"+i.o.rid).length===0&&e.push(a)}),e.forEach(function(i){typeof t.instances[i]<"u"&&(t.instances[i].destroy(),t.instances.splice(i,1))})},destroy:function(e,t){let i=this.get(e,t);if(i!==!1)if(Array.isArray(i))i.forEach(function(a){a.destroy()}),this.instances=[];else{let a=0;this.instances.forEach(function(r,s){parseInt(r.o.id)===e&&parseInt(r.o.iid)===t&&(a=s)}),i.destroy(),this.instances.splice(a,1)}}};function ze(){"use strict";const e=function(a,r,s,l){let d=V.get(a,r);return d!==!1&&d[s].apply(d,[l])},t=function(a,r,s){let l;if(typeof r=="number"&&isFinite(r))return l=V.get(a,r),l!==!1&&l[s].apply(l);if(typeof r=="string")return l=V.get(a),l!==!1&&l.forEach(function(d){const p=d[r];typeof p=="function"&&p.apply(d,[s])})},i=function(a,r){let s;return r==="exists"?V.exist(a):(s=V.get(a),s!==!1&&s.forEach(function(l){const d=l[r];typeof d=="function"&&d.apply(l)}))};if(arguments.length===4)return e.apply(this,arguments);if(arguments.length===3)return t.apply(this,arguments);if(arguments.length===2)return i.apply(this,arguments);arguments.length===0&&(console.log("Usage: ASP.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))}const qt=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),de=e=>{let t=!1;return typeof window.$<"u"&&(typeof e>"u"||typeof window.$.fn[e]<"u")&&(t=window.$),t===!1&&typeof window.jQuery<"u"&&(t=window.jQuery,(typeof e>"u"||typeof window.jQuery.fn[e]<"u")&&(t=window.jQuery)),t},Yt=function(e,t){let i=e.find("input,textarea,select,button").get();if(arguments.length===1){const a={};return i.forEach(function(r){r.name&&!r.disabled&&(r.checked||/select|textarea/i.test(r.nodeName)||/text/i.test(r.type)||$(r).hasClass("hasDatepicker")||$(r).hasClass("asp_slider_hidden"))&&(a[r.name]===void 0&&(a[r.name]=[]),$(r).hasClass("hasDatepicker")?a[r.name].push($(r).parent().find(".asp_datepicker_hidden").val()):a[r.name].push($(r).val()))}),JSON.stringify(a)}else if(t!==void 0){const a=typeof t!="object"?JSON.parse(t):t;return i.forEach(function(r){if(r.name)if(a[r.name]){let s=a[r.name],l=$(r);if(Object.prototype.toString.call(s)!=="[object Array]"&&(s=[s]),r.type==="checkbox"||r.type==="radio"){let d=l.val(),p=!1;for(let g=0;g<s.length;g++)if(s[g]===d){p=!0;break}l.prop("checked",p)}else l.val(s[0]),$(r).hasClass("asp_gochosen")||$(r).hasClass("asp_goselect2")?intervalUntilExecute(function(d){d(r).trigger("change.asp_select2")},function(){return de("asp_select2")},50,3):$(r).hasClass("hasDatepicker")&&intervalUntilExecute(function(d){const p=l.get(0);if(p===void 0)return;let g=s[0],x=d(p).datepicker("option","dateFormat");d(p).datepicker("option","dateFormat","yy-mm-dd"),d(p).datepicker("setDate",g),d(p).datepicker("option","dateFormat",x),d(p).trigger("selectnochange")},function(){return de("datepicker")},50,3)}else(r.type==="checkbox"||r.type==="radio")&&$(r).prop("checked",!1)}),e}},Jt=function(e,t,i,a="self"){let r;r=$('<form style="display: none;" />'),r.attr("action",e),r.attr("method",t),$("body").append(r),typeof i<"u"&&i!==null&&Object.keys(i).forEach(function(s){let l=i[s],d=$('<input type="hidden" />');d.attr("name",s),d.attr("value",l),r.append(d)}),a=="new"&&r.attr("target","_blank"),r.get(0).submit()},Xt=function(e){Object.assign(document.createElement("a"),{target:"_blank",href:e}).click()},fe=function(e,t=0){for(const i of e)if(Ue(i))return window.scrollTo({top:i.getBoundingClientRect().top-120+window.pageYOffset+t,behavior:"smooth"}),!0;return!1},Ue=function(e){if(typeof e.checkVisibility>"u")return!0;let t=e,i=!0;for(;t!==null;){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0})){i=!1;break}t=t.parentElement}return i};var Be=e=>{let t=!1;const i=()=>document.readyState==="complete"||document.readyState==="interactive"||document.readyState==="loaded",a=()=>{window.removeEventListener("DOMContentLoaded",s),document.removeEventListener("readystatechange",l)},r=()=>{t||(t=!0,e(),a())},s=()=>{r()},l=()=>{i()&&r()};i()?r():(window.addEventListener("DOMContentLoaded",s),document.addEventListener("readystatechange",l))};const U=window.ASP;var Qe={instances:V,instance_args:[],api:ze,initialized:!1,initializeAllSearches:function(){this.getInstances().forEach(function(t,i){w().fn._(".asp_m_"+i).forEach(function(a){return typeof a.hasAsp<"u"?!0:(a.hasAsp=!0,w()(a).ajaxsearchpro(t))})})},initializeSearchByID:function(e,t=0){const i=this.getInstance(e),a=t===0?".asp_m_"+e:".asp_m_"+e+"_"+t;w().fn._(a).forEach(function(r){return typeof r.hasAsp<"u"?!0:(r.hasAsp=!0,w()(r).ajaxsearchpro(i))})},getInstances:function(){return w().fn._(".asp_init_data").forEach(e=>{const t=parseInt(e.dataset.aspId||"");let i;if(typeof e.dataset.aspdata<"u"&&(i=H.decode(e.dataset.aspdata)),typeof i>"u"||i==="")return!0;this.instance_args[t]=JSON.parse(i)}),this.instance_args},getInstance:function(e){return typeof this.instance_args[e]<"u"?this.instance_args[e]:this.getInstances()[e]},initialize:function(e){if(typeof U.version>"u")return!1;if(U.script_async_load||U.init_only_in_viewport){const t=document.querySelectorAll(".asp_w_container");if(t.length){const i=new IntersectionObserver(a=>{a.forEach(r=>{if(r.isIntersecting){const s=parseInt(r.target.dataset.id??"0"),l=parseInt(r.target.dataset.instance??"0");this.initializeSearchByID(s,l),i.unobserve(r.target)}})});t.forEach(function(a){typeof a._is_observed<"u"||(a._is_observed=!0,i.observe(a))})}this.getInstances().forEach((i,a)=>{i.compact.enabled&&this.initializeSearchByID(a)})}else typeof e>"u"?this.initializeAllSearches():this.initializeSearchByID(e);return this.initializeMutateDetector(),this.initializeHighlight(),this.initializeOtherEvents(),this.initialized=!0,!0},initializeHighlight:function(){if(!U.highlight.enabled)return;const e=U.highlight.data;let t=e.selector!==""&&w()(e.selector).length>0?e.selector:"article",i,a;t=w()(t).length>0?t:"body";const r=new URLSearchParams(location.search);if(a=r.get("s")??r.get("asp_highlight")??r.get("asp_s")??r.get("asp_ls")??"",w()(t).unhighlight({className:"asl_single_highlighted"}),a===null||(a=a.trim(),a===""))return;const s=a.trim().split(" ").map(l=>l.trim(".")).filter(l=>l.length>=e.minWordLength);w()(t).highlight([a.trim()],{element:"span",className:"asp_single_highlighted_"+e.id+" asp_single_highlighted_exact",wordsOnly:e.whole,excludeParents:".asp_w, .asp-try"}),s.length>0&&w()(t).highlight(s,{element:"span",className:"asp_single_highlighted_"+e.id,wordsOnly:e.whole,excludeParents:".asp_w, .asp-try, .asp_single_highlighted_"+e.id}),e.scroll&&(fe(w()(".asp_single_highlighted_"+e.id+".asp_single_highlighted_exact").get(),e.scroll_offset)||fe(w()(".asp_single_highlighted_"+e.id).get(),e.scroll_offset))},initializeOtherEvents:function(){let e,t;const i=w()("body");t="#menu-item-search, .fa-search, .fa, .fas",t=t+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open",t=t+", #search_button",t=t+", .mini-search.popup-search",t=t+", .icon-search",t=t+", .menu-item-search-dropdown",t=t+", .mobile-menu-button",t=t+", .td-icon-search, .tdb-search-icon",t=t+", .side_menu_button, .search_button",t=t+", .raven-search-form-toggle",t=t+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button",t=t+", i[class*=-search], a[class*=-search]",i.on("click touchend",t,()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},300)}),typeof window.jQuery<"u"&&window.jQuery(document).on("elementor/popup/show",()=>{setTimeout(()=>{this.initializeAllSearches()},10)})},initializeMutateDetector:function(){let e;if(typeof U.detect_ajax<"u"&&U.detect_ajax){const t=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},500)}),i=document.querySelector("body");if(i==null)return;t.observe(i,{subtree:!0,childList:!0})}},loadScriptStack:function(e){let t;if(e.length>0){const i=e.shift();if(i===void 0)return;t=document.createElement("script"),t.src=i.src,t.onload=()=>{e.length>0?this.loadScriptStack(e):(typeof window.WPD.AjaxSearchPro<"u"&&w()._fn.plugin("ajaxsearchpro",window.WPD.AjaxSearchPro.plugin),this.ready())},document.body.appendChild(t)}},ready:function(){const e=this;Be(()=>{e.initialize()})},init:function(){U.script_async_load?this.loadScriptStack(U.additional_scripts):typeof window.WPD.AjaxSearchPro<"u"&&this.ready()}};function Ve(){typeof window.WPD.AjaxSearchPro<"u"&&o._fn.plugin("ajaxsearchpro",window.WPD.AjaxSearchPro.plugin),window.ASP={...window.ASP,...Qe},q(()=>window.ASP.init(),function(){return typeof window.ASP.version<"u"})}window.WPD.AjaxSearchPro=xe,function(){navigator.userAgent.indexOf("Chrome-Lighthouse")===-1&&typeof window.WPD<"u"&&typeof window.WPD.dom<"u"&&Ve()}()})(),window.AjaxSearchPro=me.default})();
|