(function(){var U={91:function(k,d,x){"use strict";x.r(d),x.d(d,{Hooks:function(){return D}});const D={filters:{},addFilter:function(g,l,S=10,w=null){this.filters[g]=this.filters[g]||[],this.filters[g].push({priority:S,scope:w,callback:l})},removeFilter:function(g,l){if(typeof this.filters[g]<"u")if(typeof l>"u")this.filters[g]=[];else{const S=this;this.filters[g].forEach(function(w,t){w.callback===l&&S.filters[g].splice(t,1)})}},applyFilters:function(g){let l=[],S=Array.prototype.slice.call(arguments),w=arguments[1];return typeof this.filters[g]<"u"&&this.filters[g].length>0&&(this.filters[g].forEach(function(t){l[t.priority]=l[t.priority]||[],l[t.priority].push({scope:t.scope,callback:t.callback})}),S.splice(0,2),l.forEach(function(t){t.forEach(function(i){w=i.callback.apply(i.scope,[w].concat(S))})})),w}}},271:function(k,d,x){var D={"./base64.ts":806,"./browser.ts":665,"./device.ts":451,"./hooks-filters.ts":91,"./index.ts":685,"./interval-until-execute.ts":919,"./other.ts":627};function g(S){var w=l(S);return x(w)}function l(S){if(!x.o(D,S)){var w=new Error("Cannot find module '"+S+"'");throw w.code="MODULE_NOT_FOUND",w}return D[S]}g.keys=function(){return Object.keys(D)},g.resolve=l,k.exports=g,g.id=271},451:function(k,d,x){"use strict";x.r(d),x.d(d,{detectIOS:function(){return g},deviceType:function(){return D},isMobile:function(){return l},isTouchDevice:function(){return S}});const D=()=>{let w=window.innerWidth;return w<=640?"phone":w<=1024?"tablet":"desktop"},g=()=>typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1,l=()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}},S=()=>"ontouchstart"in window},627:function(k,d,x){"use strict";x.r(d),x.d(d,{isNumeric:function(){return g},nicePhrase:function(){return D}});const D=function(l){return encodeURIComponent(l).replace(/\%20/g,"+")};function g(l){if(typeof l=="number"&&!isNaN(l))return!0;if(typeof l=="string"){const S=l.trim();if(S==="")return!1;const w=Number(S);return!isNaN(w)&&S===String(w).trim()}return!1}},665:function(k,d,x){"use strict";x.r(d),x.d(d,{formData:function(){return t},isSafari:function(){return S},openInNewTab:function(){return r},submitToUrl:function(){return i},whichjQuery:function(){return w}});var D=x(993),g=x.n(D),l=x(919);const S=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),w=o=>{let m=!1;return typeof window.$<"u"&&(typeof o>"u"||typeof window.$.fn[o]<"u")&&(m=window.$),m===!1&&typeof window.jQuery<"u"&&(m=window.jQuery,(typeof o>"u"||typeof window.jQuery.fn[o]<"u")&&(m=window.jQuery)),m},t=function(o,m){let _=o.find("input,textarea,select,button").get();if(arguments.length===1){const v={};return _.forEach(function(p){p.name&&!p.disabled&&(p.checked||/select|textarea/i.test(p.nodeName)||/text/i.test(p.type)||g()(p).hasClass("hasDatepicker")||g()(p).hasClass("asp_slider_hidden"))&&(v[p.name]===void 0&&(v[p.name]=[]),g()(p).hasClass("hasDatepicker")?v[p.name].push(g()(p).parent().find(".asp_datepicker_hidden").val()):v[p.name].push(g()(p).val()))}),JSON.stringify(v)}else if(m!==void 0){const v=typeof m!="object"?JSON.parse(m):m;return _.forEach(function(p){if(p.name)if(v[p.name]){let b=v[p.name],L=g()(p);if(Object.prototype.toString.call(b)!=="[object Array]"&&(b=[b]),p.type==="checkbox"||p.type==="radio"){let C=L.val(),E=!1;for(let T=0;T'),p.attr("action",o),p.attr("method",m),g()("body").append(p),typeof _<"u"&&_!==null&&Object.keys(_).forEach(function(b){let L=_[b],C=g()('');C.attr("name",b),C.attr("value",L),p.append(C)}),v=="new"&&p.attr("target","_blank"),p.get(0).submit()},r=function(o){Object.assign(document.createElement("a"),{target:"_blank",href:o}).click()}},685:function(k,d,x){"use strict";const D={},g=x(271);g.keys().forEach(l=>{if(l==="./index.ts")return;const S=g(l);Object.keys(S).forEach(w=>{D[w]=S[w]})}),window.WPD.utils=D},806:function(k,d,x){"use strict";x.r(d),x.d(d,{Base64:function(){return D}});const D={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(g){return btoa(this._utf8_encode(g))},decode:function(g){return this._utf8_decode(atob(g.replace(/[^A-Za-z0-9\+\/\=]/g,"")))},_utf8_encode:function(g){g=g.replace(/\r\n/g,` `);let l="";for(let S=0;S127&&w<2048?(l+=String.fromCharCode(w>>6|192),l+=String.fromCharCode(w&63|128)):(l+=String.fromCharCode(w>>12|224),l+=String.fromCharCode(w>>6&63|128),l+=String.fromCharCode(w&63|128))}return l},_utf8_decode:function(g){let l="",S=0,w=0,t,i;for(;S191&&w<224?(t=g.charCodeAt(S+1),l+=String.fromCharCode((w&31)<<6|t&63),S+=2):(t=g.charCodeAt(S+1),i=g.charCodeAt(S+2),l+=String.fromCharCode((w&15)<<12|(t&63)<<6|i&63),S+=3);return l}}},919:function(k,d,x){"use strict";x.r(d),x.d(d,{intervalUntilExecute:function(){return D}});function D(g,l,S=100,w=50){let t,i=0,r=typeof l=="function"?l():l;if(r===!1)t=setInterval(function(){if(r=typeof l=="function"?l():l,i++,i>w)return clearInterval(t),!1;if(r!==!1)return clearInterval(t),g(r)},S);else return g(r)}},993:function(k,d){(function(x,D){typeof d=="object"&&typeof k=="object"?k.exports=D():typeof define=="function"&&define.amd?define("DoMini",[],D):typeof d=="object"?d.DoMini=D():x.DoMini=D()})(window,()=>(()=>{"use strict";var x={d:(t,i)=>{for(var r in i)x.o(i,r)&&!x.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(t,i)=>Object.prototype.hasOwnProperty.call(t,i)},D={};let g;x.d(D,{default:()=>w}),window.DoMini===void 0?(g=function(t,i){return arguments[2]!==void 0?this.constructor.call(this,t,i):arguments.length!==1||typeof arguments[0]!="function"?new g(t,i,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[g]):window.addEventListener("DOMContentLoaded",()=>{arguments[0].apply(this,[g])}))},g.prototype=g.fn={constructor:function(t,i){if(this.length=0,i!==void 0){if(i instanceof g)return i.find(t);if(this.isValidNode(i)||typeof i=="string")return g(i).find(t)}else if(typeof t=="string"&&t!=="")this.push(...this._(t));else{if(t instanceof g)return t;this.isValidNode(t)&&this.push(t)}return this},_:function(t){return t.charAt(0)==="<"?g._fn.createElementsFromHTML(t):[...document.querySelectorAll(t)]},isValidNode:t=>t instanceof Element||t instanceof Document||t instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},g.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],g._fn={},g.version="0.2.8"):g=window.DoMini;const l=g;l.fn.get=function(t){return t===void 0?Array.from(this):this[t]},l.fn.extend=function(){for(let t=1;t0&&this.forEach(function(r){r.classList.add.apply(r.classList,i)}),this},l.fn.removeClass=function(t){if(t!==void 0){let i=t;typeof t=="string"&&(i=t.split(" ")),i=i.filter(function(r){return r.trim()!==""}),i.length>0&&this.forEach(function(r){r.classList.remove.apply(r.classList,i)})}else this.forEach(function(i){i.classList.length>0&&i.classList.remove.apply(i.classList,i.classList)});return this},l.fn.isVisible=function(){let t,i=this.get(0),r=!0;for(;i!==null;){if(t=window.getComputedStyle(i),t.display==="none"||t.visibility==="hidden"||parseInt(t.opacity)===0){r=!1;break}i=i.parentElement}return r},l.fn.val=function(t){let i;if(arguments.length===1){for(const r of this)if(r.type==="select-multiple"){t=typeof t=="string"?t.split(","):t;for(let o,m=0,_=r.options.length;m<_;m++)o=r.options[m],o.selected=t.indexOf(o.value)!==-1}else r.value=t;i=this}else{let r=this.get(0);r!=null&&(i=r.type==="select-multiple"?Array.prototype.map.call(r.selectedOptions,function(o){return o.value}):r.value)}return i},l.fn.attr=function(t,i){let r;for(const o of this)if(arguments.length===2)o.setAttribute(t,i),r=this;else{if(typeof t!="object"){r=o.getAttribute(t);break}Object.keys(t).forEach(function(m){o.setAttribute(m,t[m])})}return r},l.fn.removeAttr=function(t){for(const i of this)i.removeAttribute(t);return this},l.fn.prop=function(t,i){let r;for(const o of this){if(arguments.length!==2){r=o[t]!==void 0?o[t]:null;break}o[t]=i}return arguments.length===2?this:r},l.fn.data=function(t,i){const r=t.replace(/-([a-z])/g,function(o){return o[1].toUpperCase()});if(arguments.length===2){for(const o of this)o!=null&&(o.dataset[r]=i);return this}{let o=this.get(0);return o!=null&&o.dataset[r]!==void 0?o.dataset[r]:""}},l.fn.html=function(t){if(arguments.length===1){for(const i of this)i.innerHTML=t;return this}{let i=this.get(0);return i==null?"":i.innerHTML}},l.fn.text=function(t){if(arguments.length===1){for(const i of this)i.textContent=t;return this}{let i=this.get(0);return i==null?"":i.textContent}},l.fn.position=function(){let t=this.get(0);return t!=null?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}},l.fn.offset=function(){let t=this.get(0);return t!=null?l._fn.hasFixedParent(t)?t.getBoundingClientRect():l._fn.absolutePosition(t):{top:0,left:0}},l.fn.outerWidth=function(t){t=t||!1;let i=this.get(0);return i!=null?t?parseInt(i.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(i.offsetWidth):0},l.fn.outerHeight=function(t){t=t||!1;let i=this.get(0);return i!=null?t?parseInt(i.offsetHeight)+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(i.offsetHeight):0},l.fn.noPaddingHeight=function(t){return t=t||!1,this.length>0?t?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},l.fn.noPaddingWidth=function(t){return t=t||!1,this.length>0?t?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},l.fn.innerWidth=function(){let t=this.get(0);if(t!=null){let i=window.getComputedStyle(t);return this.outerWidth()-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}return 0},l.fn.innerHeight=function(){let t=this.get(0);if(t!=null){let i=window.getComputedStyle(t);return this.outerHeight()-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomtWidth)}return 0},l.fn.width=function(){return this.outerWidth()},l.fn.height=function(){return this.outerHeight()},l.fn.on=function(){let t=arguments,i=function(o,m){let _;if(m.type==="mouseenter"||m.type==="mouseleave"||m.type==="mouseover"){let v=document.elementFromPoint(m.clientX,m.clientY);if(!v.matches(o[1]))for(;(v=v.parentElement)&&!v.matches(o[1]););v!=null&&(_=l(v))}else _=l(m.target).closest(o[1]);if(_!=null&&_.closest(this).length>0){let v=[];if(v.push(m),o[4]!==void 0)for(let p=4;p0)if(t===void 0){let o;for(;o=r._domini_events.pop();)r.removeEventListener(o.type,o.func,o.args);r._domini_events=[]}else t.split(" ").forEach(function(o){let m,_=[];for(;m=r._domini_events.pop();)m.type!==o||i!==void 0&&m.trigger!==i?_.push(m):r.removeEventListener(o,m.func,m.args);r._domini_events=_})}),this},l.fn.offForced=function(){let t=this;return this.forEach(function(i,r){let o=i.cloneNode(!0);i.parentNode.replaceChild(o,i),t[r]=o}),this},l.fn.trigger=function(t,i,r,o){return r=r||!1,o=o||!1,this.forEach(function(m){let _=!1;if(o&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(m,"events")!==void 0&&jQuery._data(m,"events")[t]!==void 0&&(jQuery(m).trigger(t,i),_=!0),!_&&r){let v=new Event(t);v.detail=i,m.dispatchEvent(v)}if(m._domini_events!==void 0)m._domini_events.forEach(function(v){if(v.type===t){let p=new Event(t);v.trigger.apply(m,[p].concat(i))}});else{let v=!1,p=m;for(;p=p.parentElement,p!=null&&(p._domini_events!==void 0&&p._domini_events.forEach(function(b){if(b.selector!==void 0){let L=l(p).find(b.selector);if(L.length>0&&L.get().indexOf(m)>=0&&b.type===t){let C=new Event(t);b.trigger.apply(m,[C].concat(i)),v=!0}}}),!v););}}),this},l.fn.clear=function(){for(const t of this)delete t._domini_events;return this},l.fn.clone=function(){let t=[];for(const i of this)t.push(i.cloneNode(!0));return l().add(t)},l.fn.detach=function(t){let i=this,r=[];t!==void 0&&(i=this.find(t));for(const o of i)o.parentElement!=null&&r.push(o.parentElement.removeChild(o));return l().add(r)},l.fn.remove=function(t){return this.detach(t).off().clear()},l.fn.prepend=function(t){if((t=l._fn.elementArrayFromAny(t)).length>0)for(const i of this)for(const r of t)i.insertBefore(r,i.children[0]);return this},l.fn.append=function(t){if((t=l._fn.elementArrayFromAny(t)).length>0)for(const i of this)for(const r of t)i.appendChild(r);return this},l.fn.is=function(t){let i=!1;for(const r of this)if(r.matches(t)){i=!0;break}return i},l.fn.parent=function(t){let i=[];for(const r of this){let o=r.parentElement;typeof t=="string"&&(o==null||o.matches(t)||(o=null)),i.push(o)}return l().add(i)},l.fn.copy=function(t,i){let r,o,m;if(typeof t!="object"||t===null)return r=t,r;for(o in r=new t.constructor,t)t.hasOwnProperty(o)&&(m=typeof t[o],i&&m==="object"&&t[o]!==null?r[o]=this.copy(t[o]):r[o]=t[o]);return r},l.fn.first=function(){return l(this[0])},l.fn.last=function(){return l(this[this.length-1])},l.fn.prev=function(t){let i=[];for(const r of this){let o;if(typeof t=="string")for(o=r.previousElementSibling;o!=null;){if(o.matches(t)){i.push(o);break}o=o.previousElementSibling}else i.push(r.previousElementSibling)}return l(null).add(i)},l.fn.next=function(t){let i=[];for(const r of this){let o;if(typeof t=="string")for(o=r.nextElementSibling;o!=null;){if(o.matches(t)){i.includes(o)||i.push(o);break}o=o.nextElementSibling}else i.push(r.nextElementSibling)}return l(null).add(i)},l.fn.closest=function(t){let i=[];for(let r of this)if(typeof t=="string"&&t!==""){for(;!r.matches(t)&&(r=r.parentElement););i.includes(r)||i.push(r)}else{if((t=t instanceof l?t.get(0):t)instanceof Element)for(;r!==t&&(r=r.parentElement););else r=null;i.includes(r)||i.push(r)}return l().add(i)},l.fn.add=function(t){let i=l._fn.elementArrayFromAny(t);for(const r of i)Array.from(this).includes(r)||this.push(r);return this},l.fn.find=function(t){const i=new l;if(typeof t=="string"){let r=[];this.get().forEach(function(o){const m=o.querySelectorAll?.(t)??[];r=r.concat(Array.from(m))}),r.length>0&&i.add(r)}return i},l._fn.bodyTransform=function(){let t=0,i=0;if(typeof WebKitCSSMatrix<"u"){let r=window.getComputedStyle(document.body);if(r.transform!==void 0){let o=new WebKitCSSMatrix(r.transform);o.m41!=="undefined"&&(t=o.m41),o.m42!=="undefined"&&(i=o.m42)}}return{x:t,y:i}},l._fn.bodyTransformY=function(){return this.bodyTransform().y},l._fn.bodyTransformX=function(){return this.bodyTransform().x},l._fn.hasFixedParent=function(t){if(l._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(t).position=="fixed")return!0;while(t=t.parentElement);return!1},l._fn.hasEventListener=function(t,i,r){if(t._domini_events===void 0)return!1;for(let o=0;oi instanceof Element)}return t},l._fn.ElementArrayFromAny=l._fn.elementArrayFromAny,l._fn.absolutePosition=function(t){if(!t.getClientRects().length)return{top:0,left:0};let i=t.getBoundingClientRect(),r=t.ownerDocument.defaultView;return{top:i.top+r.pageYOffset,left:i.left+r.pageXOffset}},l._fn.plugin=function(t,i){l.fn[t]=function(r){return r!==void 0&&i[r]?i[r].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach(function(o){o["domini_"+t]=Object.create(i).init(r,o)})}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const S=l;l.fn.animate=function(t,i,r){i=i||200,r=r||"easeInOutQuad";for(const o of this){let m,_,v,p,b,L=0,C=60,E={},T={};if(v=this.prop("_domini_animations"),v=v??[],t===!1)v.forEach(function(P){clearInterval(P)});else{let P=function(){L++,L>m?clearInterval(p):(_=b(L/m),Object.keys(T).forEach(function(A){A.indexOf("scroll")>-1?o[A]=E[A]+T[A]*_:o.style[A]=E[A]+T[A]*_+"px"}))};b=l.fn.animate.easing[r]??l.fn.animate.easing.easeInOutQuad,Object.keys(t).forEach(function(A){A.indexOf("scroll")>-1?(E[A]=o[A],T[A]=t[A]-E[A]):(E[A]=parseInt(window.getComputedStyle(o)[A]),T[A]=t[A]-E[A])}),m=i/1e3*C,p=setInterval(P,1e3/C),v.push(p),this.prop("_domini_animations",v)}}return this},l.fn.animate.easing={linear:function(t){return t},easeInOutQuad:function(t){return t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2},easeOutQuad:function(t){return 1-(1-t)*(1-t)}},l.fn.unhighlight=function(t){let i={className:"highlight",element:"span"};return l.fn.extend(i,t),this.find(i.element+"."+i.className).forEach(function(){let r=this.parentNode;r.replaceChild(this.firstChild,this),r.normalize()})},l.fn.highlight=function(t,i){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const r=l,o={...this.defaults,...i};if(t.constructor===String&&(t=[t]),(t=t.filter(function(b){return b!==""})).forEach(function(b,L,C){C[L]=b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),t.length===0)return this;let m=o.caseSensitive?"":"i",_="("+t.join("|")+")";o.wordsOnly&&(_="(?:,|^|\\s)"+_+"(?:,|$|\\s)");let v=new RegExp(_,m);function p(b,L,C,E,T){if(T=T===""?r.fn.highlight.defaults:T,b.nodeType===3){if(!r(b.parentNode).is(T)){let P=b.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(L);if(P){let A,z=document.createElement(C||"span");z.className=E||"highlight",A=/\.|,|\s/.test(P[0].charAt(0))?P.index+1:P.index;let F=b.splitText(A);F.splitText(P[1].length);let M=F.cloneNode(!0);return z.appendChild(M),F.parentNode.replaceChild(z,F),1}}}else if(b.nodeType===1&&b.childNodes&&!/(script|style)/i.test(b.tagName)&&!r(b).closest(T).length>0&&(b.tagName!==C.toUpperCase()||b.className!==E))for(let P=0;P=0;i-=1)if(t.elements[i].name!=="")switch(t.elements[i].nodeName){case"INPUT":switch(t.elements[i].type){case"checkbox":case"radio":t.elements[i].checked&&o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"file":break;default:o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value))}break;case"TEXTAREA":o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"SELECT":switch(t.elements[i].type){case"select-one":o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"select-multiple":for(r=t.elements[i].options.length-1;r>=0;r-=1)t.elements[i].options[r].selected&&o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].options[r].value))}break;case"BUTTON":switch(t.elements[i].type){case"reset":case"submit":case"button":o.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value))}}return o.join("&")},l.fn.serializeObject=function(t,i){let r,o=[];for(r in t)if(t.hasOwnProperty(r)){let m=i?i+"["+r+"]":r,_=t[r];o.push(_!==null&&typeof _=="object"?l.fn.serializeObject(_,m):encodeURIComponent(m)+"="+encodeURIComponent(_))}return o.join("&")},l.fn.inViewPort=function(t,i){let r,o,m=this.get(0);if(m==null)return!1;t=t===void 0?0:t,i=i===void 0?window:typeof i=="string"?document.querySelector(i):i;let _=m.getBoundingClientRect(),v=_.top,p=_.bottom,b=_.left,L=_.right,C=!1;if(i==null&&(i=window),i===window)r=window.innerWidth||0,o=window.innerHeight||0;else{r=i.clientWidth,o=i.clientHeight;let E=i.getBoundingClientRect();v-=E.top,p-=E.top,b-=E.left,L-=E.left}return t=~~Math.round(parseFloat(t)),L<=0||b>=r||(C=t>0?v>=t&&p0&&v<=o-t)|(v<=0&&p>t)),C},l.fn.ajax=function(t){if((t=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},t)).cors==="cors"){let i=new XMLHttpRequest;return i.onreadystatechange=function(){t.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&t.success(this.responseText),t.fail!=null&&this.readyState===4&&this.status>=400&&t.fail(this)},i.open(t.method.toUpperCase(),t.url,!0),i.setRequestHeader("Content-type",t.contentType),i.setRequestHeader("Accept",t.accept),i.send(this.serializeObject(t.data)),i}{let i="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){let m=16*Math.random()|0;return(o==="x"?m:3&m|8).toString(16)}).replaceAll("-","");l.fn[i]=function(){t.success.apply(this,arguments),delete l.fn[t.data.fn]},t.data.callback="DoMini.fn."+i,t.data.fn=i;let r=document.createElement("script");r.type="text/javascript",r.src=t.url+"?"+this.serializeObject(t.data),r.onload=function(){this.remove()},document.body.appendChild(r)}};const w=S;return D.default})())}},$={};function O(k){var d=$[k];if(d!==void 0)return d.exports;var x=$[k]={exports:{}};return U[k].call(x.exports,x,x.exports,O),x.exports}(function(){O.n=function(k){var d=k&&k.__esModule?function(){return k.default}:function(){return k};return O.d(d,{a:d}),d}})(),function(){O.d=function(k,d){for(var x in d)O.o(d,x)&&!O.o(k,x)&&Object.defineProperty(k,x,{enumerable:!0,get:d[x]})}}(),function(){O.o=function(k,d){return Object.prototype.hasOwnProperty.call(k,d)}}(),function(){O.r=function(k){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})}}();var Q={};(function(){"use strict";var k=O(993),d=O.n(k);window.WPD=window.WPD||{},window.WPD.global={utils:{}},window.WPD.dom=d(),window.DoMini=d(),window.WPD.domini=window.WPD.dom,window.WPD.DoMini=window.WPD.dom;var x=O(685);window._asl_instances_storage=window._asl_instances_storage||[];var g={instances:window._asl_instances_storage,get:function(e,n){if(this.clean(),typeof e>"u"||e===0)return this.instances;if(typeof n>"u"){let s=[];for(let a=0;a0?s:!1}else for(let s=0;s"u")return!0;if(this.instances[s].o.iid===n)return!0}return!1},clean:function(){let e=[],n=this;this.instances.forEach(function(s,a){d()(".asl_m_"+s.o.rid).length===0&&e.push(a)}),e.forEach(function(s){typeof n.instances[s]<"u"&&(n.instances[s].destroy(),n.instances.splice(s,1))})},destroy:function(e,n){let s=this.get(e,n);if(s!==!1)if(Array.isArray(s))s.forEach(function(a){a.destroy()}),this.instances=[];else{let a=0;this.instances.forEach(function(c,u){c.o.id===e&&c.o.iid===n&&(a=u)}),s.destroy(),this.instances.splice(a,1)}}};function l(){"use strict";const e=function(a,c,u,f){let h=g.get(a,c);if(h!==!1&&!Array.isArray(h)){const y=h[u];typeof y=="function"&&y.bind(h).apply(h,[f])}},n=function(a,c,u){let f;if(typeof c=="number"&&isFinite(c)){if(f=g.get(a,c),f!==!1&&!Array.isArray(f)){const h=f[u];if(typeof h=="function")return h.bind(f).apply(u)}}else if(typeof c=="string")return f=g.get(a),f!==!1&&Array.isArray(f)&&f.forEach(function(h){const y=h[c];typeof y=="function"&&y.bind(f).apply(h,[u])})},s=function(a,c){let u;return c==="exists"?g.exist(a):(u=g.get(a),u!==!1&&Array.isArray(u)&&u.forEach(function(f){const h=f[c];typeof h=="function"&&h.bind(f).apply(f)}))};if(arguments.length===4)return e.apply(this,arguments);if(arguments.length===3)return n.apply(this,arguments);if(arguments.length===2)return s.apply(this,arguments);arguments.length===0&&(console.log("Usage: ASL.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))}var w=e=>{let n=!1;const s=()=>document.readyState==="complete"||document.readyState==="interactive"||document.readyState==="loaded",a=()=>{window.removeEventListener("DOMContentLoaded",u),document.removeEventListener("readystatechange",f)},c=()=>{n||(n=!0,e(),a())},u=()=>{c()},f=()=>{s()&&c()};s()?c():(window.addEventListener("DOMContentLoaded",u),document.addEventListener("readystatechange",f))};window.ASL={...window.ASL,instances:g,instance_args:[],api:l,initialized:!1,initializeAllSearches:function(){this.getInstances().forEach(function(n,s){d().fn._(".asl_m_"+s).forEach(function(a){return typeof a.hasAsp<"u"?!0:(a.hasAsp=!0,d()(a).ajaxsearchlite(n))})})},initializeSearchByID:function(e,n=0){const s=this.getInstance(e),a=n===0?".asl_m_"+e:".asl_m_"+e+"_"+n;d().fn._(a).forEach(function(c){return typeof c.hasAsp<"u"?!0:(c.hasAsp=!0,d()(c).ajaxsearchlite(s))})},getInstances:function(){return d().fn._(".asl_init_data").forEach(e=>{const n=parseInt(e.dataset.aslId||"");typeof e.dataset.settings<"u"&&(this.instance_args[n]=JSON.parse(e.dataset.settings))}),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 window.ASL.version>"u")return!1;if(window.ASL.script_async_load||window.ASL.init_only_in_viewport){const n=document.querySelectorAll(".asl_w_container");if(n.length){const s=new IntersectionObserver(a=>{a.forEach(c=>{if(c.isIntersecting){const u=parseInt(c.target.dataset.id??"0"),f=parseInt(c.target.dataset.instance??"0");this.initializeSearchByID(u,f),s.unobserve(c.target)}})});n.forEach(function(a){const c=a;typeof c._is_observed<"u"||(c._is_observed=!0,s.observe(c))})}}else typeof e>"u"?this.initializeAllSearches():this.initializeSearchByID(e);return this.initializeMutateDetector(),this.initializeHighlight(),this.initializeOtherEvents(),this.initialized=!0,!0},initializeHighlight:function(){if(window.ASL.highlight.enabled)for(const e of window.ASL.highlight.data){let n=e.selector!==""&&d()(e.selector).length>0?e.selector:"article",s,a;n=d()(n).length>0?n:"body";const c=new URLSearchParams(location.search);if(a=c.get("s")??c.get("asl_highlight")??c.get("asl_s")??c.get("asl_ls")??"",d()(n).unhighlight({className:"asl_single_highlighted"}),a===null||(a=a.trim(),a===""))return;const u=a.trim().split(" ");if(d()(n).highlight([a.trim()],{element:"span",className:"asl_single_highlighted asl_single_highlighted_exact",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try"}),u.length>0&&d()(n).highlight(u,{element:"span",className:"asl_single_highlighted",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try, .asl_single_highlighted"}),s=d()(".asl_single_highlighted_exact"),s.length===0&&(s=d()(".asl_single_highlighted")),s.length>0&&e.scroll){let f=s.offset().top-120;const h=d()("#wpadminbar");h.length>0&&(f-=h.height()),f=f+e.scroll_offset,f=f<0?0:f,d()("html").animate({scrollTop:f},500)}}},initializeOtherEvents:function(){let e,n;const s=d()("body");n="#menu-item-search, .fa-search, .fa, .fas",n=n+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open",n=n+", #search_button",n=n+", .mini-search.popup-search",n=n+", .icon-search",n=n+", .menu-item-search-dropdown",n=n+", .mobile-menu-button",n=n+", .td-icon-search, .tdb-search-icon",n=n+", .side_menu_button, .search_button",n=n+", .raven-search-form-toggle",n=n+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button",n=n+", i[class*=-search], a[class*=-search]",s.on("click touchend",n,()=>{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 window.ASL.detect_ajax<"u"&&window.ASL.detect_ajax){const n=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},500)}),s=document.querySelector("body");if(s==null)return;n.observe(s,{subtree:!0,childList:!0})}},loadScriptStack:function(e){let n;if(e.length>0){const s=e.shift();if(s===void 0)return;n=document.createElement("script"),n.src=s.src,n.onload=()=>{e.length>0?this.loadScriptStack(e):this.ready()},document.body.appendChild(n)}},ready:function(){const e=this;w(()=>{e.initialize()})},init:function(){window.ASL.script_async_load?this.loadScriptStack(window.ASL.additional_scripts):typeof window.WPD.AjaxSearchLite<"u"&&this.ready()}};class t{call_num=0;settingsInitialized=!1;resultsInitialized=!1;searching=!1;post=void 0;postAuto=void 0;lastSuccesfulSearch="";lastSearchData={};ktype="";keycode=0;_usingLiveLoader=void 0;nodes={};documentEventHandlers=[];resultsOpened=!1;savedScrollTop=0;savedContainerTop=0;clickTouchend="click touchend";mouseupTouchend="mouseup touchend";dragging=!1;settingsChanged=!1;isAutoP=!1;resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};timeouts={searchWithCheck:void 0,search:void 0};o={id:1,iid:1,rid:"1_1",name:"Search name",homeurl:"",resultstype:"vertical",resultsposition:"hover",itemscount:10,charcount:0,highlight:!0,blocking:!1,detectVisibility:!1,redirectOnClick:!0,redirectOnEnter:!0,highlightWholewords:!0,singleHighlight:!1,settingsVisible:0,scrollToResults:{enabled:1,offset:0},resultareaclickable:0,autocomplete:{enabled:1,lang:"en",trigger_charcount:0},mobile:{menu_selector:"#mobile-menu",force_res_hover:0},trigger:{click:"ajax_search",click_location:"same",update_href:!1,return:"ajax_search",return_location:"same",facet:1,type:1,redirect_url:"/search",delay:300},animations:{pc:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"},mob:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"}},autop:{state:"disabled",phrase:"",count:10},resPage:{useAjax:0,selector:".search-results",trigger_type:1,trigger_facet:1,trigger_magnifier:1,trigger_return:1},resultsSnapTo:"left",results:{width:"auto",width_tablet:"auto",width_phone:"auto"},settingsimagepos:"left",closeOnDocClick:!0,overridewpdefault:!1,override_method:"get"}}window.WPD.global.AslPlugin=t;var i=O(665);t.prototype.setFilterStateInput=function(e){let n=this;typeof e>"u"&&(e=65);let s=function(){JSON.stringify(n.originalFormData)!=JSON.stringify((0,i.formData)(n.n("searchsettings").find("form")))?n.n("searchsettings").find("input[name=filters_initial]").val(0):n.n("searchsettings").find("input[name=filters_initial]").val(1)};e==0?s():setTimeout(function(){s()},e)};var r=null;const o=window.ASL;t.prototype.gaPageview=function(e){let n=this,s=n.gaGetTrackingID();if(typeof o.analytics>"u"||o.analytics.method!="pageview")return!1;if(o.analytics.string!=""){let a=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1,c=typeof window.gtag=="function"?window.gtag:!1,u=n.o.homeurl.replace(window.location.origin,"");if(c!==!1)s!==!1&&s.forEach(function(f){c("config",f,{page_path:u+o.analytics.string.replace("{asl_term}",e)})});else if(a!==!1){let f={page:u+o.analytics.string.replace("{asl_term}",e),title:"Ajax Search"};s!==!1?s.forEach(function(h){a("create",h,"auto"),a("send","pageview",f)}):a("send","pageview",f)}}},t.prototype.gaEvent=function(e,n){let s=this,a=s.gaGetTrackingID();if(typeof o.analytics>"u"||o.analytics.method!="event")return!1;let c=typeof window.gtag=="function"?window.gtag:!1,u=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1;if(c===!1&&u===!1&&typeof window.dataLayer>"u")return!1;if(typeof o.analytics.event[e]<"u"&&o.analytics.event[e].active){let f={search_id:s.o.id,search_name:s.o.name,phrase:s.n("text").val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},h={event_category:o.analytics.event[e].category,event_label:o.analytics.event[e].label,value:o.analytics.event[e].value,send_to:""};const y={...f,...n};Object.keys(y).forEach(function(R){let j=y[R];j=String(j).replace(/[\s\n\r]+/g," ").trim(),Object.keys(h).forEach(function(I){let N=new RegExp("{"+R+"}","gmi");h[I]=h[I].replace(N,j)})}),u!==!1?a!==!1?a.forEach(function(R){u("create",R,"auto"),u("send","event",h.event_category,o.analytics.event[e].action,h.event_label,h.value)}):u("send","event",h.event_category,o.analytics.event[e].action,h.event_label,h.value):c!==!1?a!==!1?a.forEach(function(R){h.send_to=R,c("event",o.analytics.event[e].action,h)}):c("event",o.analytics.event[e].action,h):window?.dataLayer?.push!==void 0&&window.dataLayer.push({event:"gaEvent",eventCategory:h.event_category,eventAction:o.analytics.event[e].action,eventLabel:h.event_label})}},t.prototype.gaGetTrackingID=function(){let e=!1;if(typeof o.analytics>"u")return e;if(typeof o.analytics.tracking_id<"u"&&o.analytics.tracking_id!="")return[o.analytics.tracking_id];if((typeof window.gtag=="function"?window.gtag:!1)===!1&&typeof window.ga<"u"&&typeof window.ga.getAll<"u"){let s=[];return window.ga.getAll().forEach(function(a){s.push(a.get("trackingId"))}),s.length>0?s:!1}return e};var m=null,_=O(627),v=O(919),p=O(91);const b=window.ASL;t.prototype.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"]},t.prototype.usingLiveLoader=function(){const e=this;if(e._usingLiveLoader!==void 0)return e._usingLiveLoader;const n=e.o,s="asp_es_"+n.id,a=this.getLiveLoadAltSelectors().join(",");if(document.getElementsByClassName(s).length)return e._usingLiveLoader=!0;const c=["resPage"];return e._usingLiveLoader=c.some(u=>{const f=n[u];return f.useAjax&&(document.querySelector(f.selector)||a&&document.querySelector(a))}),e._usingLiveLoader},t.prototype.liveLoad=function(e,n,s,a){if(e=="body"||e=="html")return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;b.pageHTML==""&&(b._ajax_page_html||(b._ajax_page_html=!0,d().fn.ajax({url:location.href,method:"GET",success:function(y){b.pageHTML=y},dataType:"html"})));function c(y){y=p.Hooks.applyFilters("asl/live_load/raw_data",y,h);let R=new DOMParser,j=R.parseFromString(y,"text/html"),I=d()(j);if(y!=""&&I.length>0&&I.find(e).length>0){y=y.replace(/&asl_force_reset_pagination=1/gmi,""),y=y.replace(/%26asl_force_reset_pagination%3D1/gmi,""),y=y.replace(/&asl_force_reset_pagination=1/gmi,""),(0,i.isSafari)()&&(y=y.replace(/srcset/gmi,"nosrcset")),y=p.Hooks.applyFilters("asl/live_load/html",y,h.o.id,h.o.iid),I=d()(R.parseFromString(y,"text/html"));let N=I.find(e).get(0);if(N=p.Hooks.applyFilters("asl/live_load/replacement_node",N,h,f.get(0),y),N!=null){const W=f.get(0);W!==void 0&&f.get(0)?.parentNode?.replaceChild(N,W)}f=d()(e).first(),s&&(document.title=j.title,history.pushState({},"",n)),d()(e).first().find(".woocommerce-ordering").on("change","select.orderby",function(){d()(this).closest("form").trigger("submit")}),h.addHighlightString(d()(e).find("a")),p.Hooks.applyFilters("asl/live_load/finished",n,h,e,f.get(0)),b.initialize(),h.lastSuccesfulSearch=h.n("searchsettings").find("form").serialize()+h.n("text").val().trim(),h.lastSearchData=y}h.n("s").trigger("asl_search_end",[h.o.id,h.o.iid,h.n("text").val(),y],!0,!0),h.gaEvent?.("search_end",{results_count:"unknown"}),h.gaPageview?.(h.n("text").val()),h.hideLoader(),f.css("opacity",1),h.searching=!1,h.n("text").val()!=""&&h.n("proclose").css({display:"block"})}s=typeof s>"u"?this.o.trigger.update_href:s,a=typeof a>"u"?!1:a;let u=this.getLiveLoadAltSelectors();if(e!="#main"&&u.unshift("#main"),d()(e).length<1&&(u.forEach(function(y){if(d()(y).length>0)return e=y,!1}),d()(e).length<1))return console.log("Ajax Search Lite: The live search selector does not exist on the page."),!1;e=p.Hooks.applyFilters("asl/live_load/selector",e,this);let f=d()(e).first(),h=this;h.searchAbort(),f.css("opacity",.4),p.Hooks.applyFilters("asl/live_load/start",n,h,e,f.get(0)),!a&&h.n("searchsettings").find("input[name=filters_initial]").val()==1&&h.n("text").val()==""?(0,v.intervalUntilExecute)(function(){c(b.pageHTML)},function(){return b.pageHTML!=""}):(h.searching=!0,h.post=d().fn.ajax({url:n,method:"GET",success:function(y){c(y)},dataType:"html",fail:function(y){f.css("opacity",1),!(y.status===0&&y.readyState===y.UNSENT)&&(f.html("This request has failed. Please check your connection."),h.hideLoader(),h.searching=!1,h.n("proclose").css({display:"block"}))}}))},t.prototype.getCurrentLiveURL=function(){let e=this,n="asl_ls="+(0,_.nicePhrase)(e.n("text").val()),s="&",a=window.location.href;a=a.indexOf("asl_ls=")>-1?a.slice(0,a.indexOf("asl_ls=")):a,a=a.indexOf("asl_ls&")>-1?a.slice(0,a.indexOf("asl_ls&")):a,a=a.indexOf("p_asid=")>-1?a.slice(0,a.indexOf("p_asid=")):a,a=a.indexOf("asl_")>-1?a.slice(0,a.indexOf("asl_")):a,a.indexOf("?")===-1&&(s="?");let c=a+s+n+"&asl_active=1&asl_force_reset_pagination=1&p_asid="+e.o.id+"&p_asl_data=1&"+e.n("searchsettings").find("form").serialize();return c=c.replace("?&","?"),c};var L=null;t.prototype.showLoader=function(){this.n("proloading").css({display:"block"})},t.prototype.hideLoader=function(){let e=this;e.n("proloading").css({display:"none"}),e.n("results").css("display","")};var C=null;const E=window.ASL;t.prototype.loadASLFonts=function(){E.font_url!==!1&&(new FontFace("aslsicons2","url("+E.font_url+")",{style:"normal",weight:"normal",display:"swap"}).load().then(function(n){document.fonts.add(n)}).catch(function(n){}),E.font_url=!1)},t.prototype.updateHref=function(){if(this.o.trigger.update_href&&!this.usingLiveLoader()){let e=this.getStateURL()+(this.resultsOpened?"&asl_s=":"&asl_ls=")+this.n("text").val();history.replaceState("","",e.replace(location.origin,""))}},t.prototype.fixClonedSelf=function(){let e=this,n=e.o.iid,s=e.o.rid;for(;!E.instances.set(e)&&(++e.o.iid,!(e.o.iid>50)););if(n!=e.o.iid){e.o.rid=e.o.id+"_"+e.o.iid;const a=e.n("search").get(0);a!==void 0&&(a.id="ajaxsearchlite"+e.o.rid,e.n("search").removeClass("asl_m_"+s).addClass("asl_m_"+e.o.rid).data("instance",e.o.iid));const c=e.n("searchsettings").get(0);c!==void 0&&(c.id=c.id.replace("settings"+s,"settings"+e.o.rid)),e.n("searchsettings").hasClass("asl_s_"+s)?e.n("searchsettings").removeClass("asl_s_"+s).addClass("asl_s_"+e.o.rid).data("instance",e.o.iid):e.n("searchsettings").removeClass("asl_sb_"+s).addClass("asl_sb_"+e.o.rid).data("instance",e.o.iid);const u=e.n("resultsDiv").get(0);u!==void 0&&(u.id=u.id.replace("prores"+s,"prores"+e.o.rid),e.n("resultsDiv").removeClass("asl_r_"+s).addClass("asl_r_"+e.o.rid).data("instance",e.o.iid));const f=e.n("container").find(".asl_init_data").get(0);f!==void 0&&(e.n("container").find(".asl_init_data").data("instance",e.o.iid),f.id=f.id.replace("asl_init_id_"+s,"asl_init_id_"+e.o.rid)),e.n("prosettings").data("opened",0)}},t.prototype.destroy=function(){let e=this;Object.keys(e.nodes).forEach(function(n){e.nodes[n].off?.()}),e.n("searchsettings").remove?.(),e.n("resultsDiv").remove?.(),e.n("search").remove?.(),e.n("container").remove?.(),e.documentEventHandlers.forEach(function(n){d()(n.node).off(n.event,n.handler)})};var T=null;t.prototype.isRedirectToFirstResult=function(){return!!((this.n("resultsDiv").find(".asl_res_url").length>0||d()(".asl_es_"+this.o.id+" a").length>0||this.o.resPage.useAjax&&d()(this.o.resPage.selector+"a").length>0)&&(this.o.redirectOnClick&&this.ktype=="click"&&this.o.trigger.click=="first_result"||this.o.redirectOnEnter&&(this.ktype=="input"||this.ktype=="keyup")&&this.keycode==13&&this.o.trigger.return=="first_result"))},t.prototype.doRedirectToFirstResult=function(){let e,n="";return this.ktype=="click"?e=this.o.trigger.click_location:e=this.o.trigger.return_location,this.n("resultsDiv").find(".asl_res_url").length>0?n=d()(this.n("resultsDiv").find(".asl_res_url").get(0)).attr("href"):d()(".asl_es_"+this.o.id+" a").length>0?n=d()(d()(".asl_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&d()(this.o.resPage.selector+"a").length>0&&(n=d()(d()(this.o.resPage.selector+"a").get(0)).attr("href")),n!==""&&(e=="same"?window.location.href=n:(0,i.openInNewTab)(n),this.hideLoader(),this.hideResults()),!1},t.prototype.doRedirectToResults=function(e){let n;e=="click"?n=this.o.trigger.click_location:n=this.o.trigger.return_location;let s=this.getRedirectURL(e);if(this.o.overridewpdefault){if(this.o.resPage.useAjax)return this.hideResults(),this.liveLoad(this.o.resPage.selector,s),this.showLoader(),!1;this.o.override_method=="post"?(0,i.submitToUrl)(s,"post",{asl_active:1,p_asl_data:this.n("searchsettings").find("form").serialize()},n):n=="same"?location.href=s:(0,i.openInNewTab)(s)}else(0,i.submitToUrl)(s,"post",{np_asl_data:this.n("searchsettings").find("form").serialize()},n);this.n("proloading").css("display","none"),this.hideLoader(),this.hideResults(),this.searchAbort()},t.prototype.getRedirectURL=function(e="enter"){let n,s,a,c;if(e=="click"?s=this.o.trigger.click:s=this.o.trigger.return,s=="results_page"||s=="ajax_search"?n="?s="+(0,_.nicePhrase)(this.n("text").val()):s=="woo_results_page"?n="?post_type=product&s="+(0,_.nicePhrase)(this.n("text").val()):(c=this.o.trigger.redirect_url,n=c.replace(/{phrase}/g,(0,_.nicePhrase)(this.n("text").val()))),this.o.homeurl.indexOf("?")>1&&n.indexOf("?")===0&&(n=n.replace("?","&")),this.o.overridewpdefault&&this.o.override_method!="post"){let u="&";this.o.homeurl.indexOf("?")===-1&&n.indexOf("?")===-1&&(u="?");let f=n+u+"asl_active=1&p_asl_data=1&"+this.n("searchsettings").find("form").serialize();a=this.o.homeurl+f}else a=this.o.homeurl+n;return a=a.replace("https://","https:///"),a=a.replace("http://","http:///"),a=a.replace(/\/\//g,"/"),a=p.Hooks.applyFilters("asl/redirect/url",a,this.o.id,this.o.iid),a};var P=null,A=O(451);t.prototype.showResults=function(){let e=this;e.initResults(),e.showVerticalResults(),e.hideLoader(),e.n("proclose").css({display:"block"}),e.n("showmore")!=null&&(e.n("items").length>0?e.n("showmore").css({display:"block"}):e.n("showmore").css({display:"none"})),e.resultsOpened=!0},t.prototype.hideResults=function(e=!0){let n=this;if(!n.resultsOpened)return!1;n.n("resultsDiv").removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass),setTimeout(function(){n.n("resultsDiv").css(n.resAnim.hideCSS)},n.resAnim.duration),n.n("proclose").css({display:"none"}),(0,A.isMobile)()&&e&&document.activeElement?.blur(),n.resultsOpened=!1,n.n("s").trigger("asl_results_hide",[n.o.id,n.o.iid],!0,!0)},t.prototype.showResultsBox=function(){let e=this;e.n("s").trigger("asl_results_show",[e.o.id,e.o.iid],!0,!0),e.n("resultsDiv").css({display:"block",height:"auto"}),e.n("resultsDiv").css(e.resAnim.showCSS),e.n("resultsDiv").removeClass(e.resAnim.hideClass).addClass(e.resAnim.showClass),e.fixResultsPosition(!0)},t.prototype.addHighlightString=function(e){let n=this,s=n.n("text").val().replace(/["']/g,"");e=typeof e>"u"?n.n("items").find("a.asl_res_url"):e,n.o.singleHighlight&&s!=""&&e.length>0&&e.forEach(function(a){try{const c=new URL(d()(a).attr("href"));c.searchParams.set("asl_highlight",s),c.searchParams.set("p_asid",String(n.o.id)),d()(a).attr("href",c.href)}catch{}})},t.prototype.scrollToResults=function(){let e=this,n=Math.floor(window.innerHeight*.1),s;if(!e.resultsOpened||!e.o.scrollToResults.enabled||e.n("resultsDiv").inViewPort(n))return;e.o.resultsposition=="hover"?s=e.n("probox").offset().top-20:s=e.n("resultsDiv").offset().top-20,s=s+e.o.scrollToResults.offset;let a=d()("#wpadminbar");a.length>0&&(s-=a.height()),s=s<0?0:s,window.scrollTo({top:s,behavior:"smooth"})};var z=null;const F=window.ASL;t.prototype.searchAbort=function(){let e=this;e.post!=null&&e.post.abort()},t.prototype.searchWithCheck=function(e=50){let n=this;n.n("text").val().length0?e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1):e.o.resPage.useAjax?e.liveLoad(e.o.resPage.selector,e.getRedirectURL()):e.post=d().fn.ajax({url:F.ajaxurl,method:"POST",data:n,success:function(s){let a=s.replace(/^\s*[\r\n]/gm,"");const c=a.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/);if(c===null){e.hideLoader(),console.warn("The response inner data is missing!");return}if(a=c[1],a=p.Hooks.applyFilters("asl/search/html",a),e.n("resdrg").html(""),e.n("resdrg").html(a),e.n("resdrg").find(".asl_keyword").on("click",function(){e.n("text").val(d()(this).html()),e.n("container").find("input.orig").val(d()(this).html()).trigger("keydown"),e.n("container").find("form").trigger("submit",["ajax"]),e.search()}),e.nodes.items=e.n("resultsDiv").find(".item"),e.addHighlightString(),e.gaEvent?.("search_end",{results_count:e.n("items").length}),e.gaPageview?.(e.n("text").val()),e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;e.hideLoader(),e.showResults(),e.scrollToResults(),e.lastSuccesfulSearch=e.n("searchsettings").find("form").serialize()+e.n("text").val().trim(),e.lastSearchData=n,e.updateHref(),e.n("items").length==0?e.n("showmore")!=null&&e.n("showmore").css("display","none"):e.n("showmore")!=null&&(e.n("showmore").css("display","block"),e.n("showmore").find("span").off(),e.n("showmore").find("span").on("click",function(){let u=e.o.trigger.click,f;u=="results_page"?f="?s="+(0,_.nicePhrase)(e.n("text").val()):u=="woo_results_page"?f="?post_type=product&s="+(0,_.nicePhrase)(e.n("text").val()):f=e.o.trigger.redirect_url.replace("{phrase}",(0,_.nicePhrase)(e.n("text").val())),e.o.overridewpdefault?e.o.override_method=="post"?(0,i.submitToUrl)(e.o.homeurl+f,"post",{asl_active:1,p_asl_data:e.n("searchsettings").find("form").serialize()}):location.href=e.o.homeurl+f+"&asl_active=1&p_asid="+e.o.id+"&p_asl_data=1&"+e.n("searchsettings").find("form").serialize():(0,i.submitToUrl)(e.o.homeurl+f,"post",{np_asl_data:e.n("searchsettings").find("form").serialize()})})),p.Hooks.applyFilters("asl/search/end",e,n)},fail:function(s){e.n("resdrg").html(""),e.n("resdrg").html('
The request failed. Please check your connection! Status: '+s.status+"
"),e.nodes.items=e.n("resultsDiv").find(".item"),e.hideLoader(),e.showResults(),e.scrollToResults()}})};var M=null;t.prototype.searchFor=function(e){typeof e<"u"&&this.n("text").val(e),this.n("textAutocomplete").val(""),this.search()},t.prototype.toggleSettings=function(e){typeof e<"u"?e=="show"?this.showSettings():this.hideSettings():parseInt(this.n("prosettings").data("opened"))===1?this.hideSettings():this.showSettings()},t.prototype.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()},t.prototype.getStateURL=function(){let e,n;return e=location.href.split("p_asid")[0],e=e.replace("&asl_active=1",""),e=e.replace("?asl_active=1",""),e=e.slice(-1)=="?"?e.slice(0,-1):e,e=e.slice(-1)=="&"?e.slice(0,-1):e,n=e.indexOf("?")>1?"&":"?",e+n+"p_asid="+this.o.id+"&p_asl_data=1&"+this.n("searchsettings").find("form").serialize()},t.prototype.filtersInitial=function(){return this.n("searchsettings").find("input[name=filters_initial]").val()==1},t.prototype.filtersChanged=function(){return this.n("searchsettings").find("input[name=filters_changed]").val()==1};var Y=null;t.prototype.detectAndFixFixedPositioning=function(){let e=this,n=!1,s=e.n("search").get(0);for(;s;)if(s=s.parentElement,s!=null&&window.getComputedStyle(s).position==="fixed"){n=!0;break}n||e.n("search").css("position")=="fixed"?(e.n("resultsDiv").css("position")=="absolute"&&e.n("resultsDiv").css({position:"fixed","z-index":2147483647}),e.o.blocking||e.n("searchsettings").css({position:"fixed","z-index":2147483647})):(e.n("resultsDiv").css("position")=="fixed"&&e.n("resultsDiv").css("position","absolute"),e.o.blocking||e.n("searchsettings").css("position","absolute"))},t.prototype.fixResultsPosition=function(e=!1){let n=this,s=d()("body"),a=0,c=n.n("resultsDiv").css("position");if((d()._fn.bodyTransformY()!=0||s.css("position")!="static")&&(a=s.offset().top),d()._fn.bodyTransformY()!=0&&c=="fixed"&&(c="absolute",n.n("resultsDiv").css("position","absolute")),c=="fixed"&&(a=0),!(c!="fixed"&&c!="absolute")&&(e||n.n("resultsDiv").css("visibility")=="visible")){let u=n.n("search").offset(),f=0;if((d()._fn.bodyTransformX()!=0||s.css("position")!="static")&&(f=s.offset().left),typeof u<"u"){let h,y=0;(0,A.deviceType)()==="phone"?h=n.o.results.width_phone:(0,A.deviceType)()=="tablet"?h=n.o.results.width_tablet:h=n.o.results.width,h=="auto"&&(h=n.n("search").outerWidth()<240?240:n.n("search").outerWidth()),n.n("resultsDiv").css("width",(0,_.isNumeric)(h)?h+"px":h),n.o.resultsSnapTo=="right"?y=n.n("resultsDiv").outerWidth()-n.n("search").outerWidth():n.o.resultsSnapTo=="center"&&(y=Math.floor((n.n("resultsDiv").outerWidth()-parseInt(String(n.n("search").outerWidth())))/2)),n.n("resultsDiv").css({top:u.top+n.n("search").outerHeight(!0)-a+"px",left:u.left-y-f+"px"})}}},t.prototype.fixSettingsPosition=function(e=!1){let n=this,s=d()("body"),a=0,c=n.n("searchsettings").css("position");if((d()._fn.bodyTransformY()!=0||s.css("position")!="static")&&(a=s.offset().top),d()._fn.bodyTransformY()!=0&&c=="fixed"&&(c="absolute",n.n("searchsettings").css("position","absolute")),c=="fixed"&&(a=0),e||n.n("prosettings").data("opened")!=="0"){let u,f,h,y,R=0;(d()._fn.bodyTransformX()!=0||s.css("position")!="static")&&(R=s.offset().left),n.fixSettingsWidth(),n.n("prosettings").css("display")!="none"?u=n.n("prosettings"):u=n.n("promagnifier"),f=u.offset(),h=f.top+u.height()-2-a+"px",y=n.o.settingsimagepos=="left"?f.left:f.left+u.width()-n.n("searchsettings").width(),y=y-R+"px",n.n("searchsettings").css({display:"block",top:h,left:y})}},t.prototype.fixSettingsWidth=function(){},t.prototype.hideOnInvisibleBox=function(){let e=this;e.o.detectVisibility&&!e.n("search").hasClass("hiddend")&&(e.n("search").is(":hidden")||!e.n("search").is(":visible"))&&(e.hideSettings?.(),e.hideResults())};var G=null;t.prototype.initMagnifierEvents=function(){let e=this,n;e.n("promagnifier").on("click",function(s){if(e.keycode=s.keyCode||s.which,e.ktype=s.type,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(n),!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.timeouts.search=setTimeout(function(){e.n("searchsettings").find("form").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)})};var J=null;t.prototype.initInputEvents=function(){let e=this,n=!1,s=function(){e.n("text").off("mousedown touchstart keydown",s),n||(e._initFocusInput(),e.o.trigger.type&&e._initSearchInput(),e._initEnterEvent(),e._initFormEvent(),e.initAutocompleteEvent?.(),n=!0)};e.n("text").on("mousedown touchstart keydown",s,{passive:!0})},t.prototype._initFocusInput=function(){let e=this;e.n("text").on("click",function(n){if(n.stopPropagation(),n.stopImmediatePropagation(),d()(this).trigger("focus",[]),e.gaEvent?.("focus"),e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()==e.lastSuccesfulSearch)return!e.resultsOpened&&!e.usingLiveLoader()&&e.showResults(),!1}),e.n("text").on("focus input",function(n){e.searching||(d()(this).val()!=""?e.n("proclose").css("display","block"):e.n("proclose").css({display:"none"}))})},t.prototype._initSearchInput=function(){let e=this;e.n("text").on("input",function(n){if(e.keycode=n.keyCode||n.which,e.ktype=n.type,e.updateHref(),e.n("text").val().length=e.o.charcount&&c&&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"&&(e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()!=e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader())&&e.search(),clearTimeout(e.timeouts.search))})},t.prototype._initFormEvent=function(){let e=this;d()(e.n("text").closest("form").get(0)).on("submit",function(n,s){if(n.preventDefault(),(0,A.isMobile)())if(e.o.redirectOnEnter){let a=new Event("keyup");a.keyCode=a.which=13,e.n("text").get(0).dispatchEvent(a)}else e.search(),document?.activeElement?.blur();else typeof s<"u"&&s=="ajax"&&e.search()})},t.prototype.initNavigationEvents=function(){let e=this,n=function(s){let a=s.keyCode||s.which;if(d()(".item",e.n("resultsDiv")).length>0&&e.n("resultsDiv").css("display")!="none"&&e.o.resultstype=="vertical"){if(a==40||a==38){let c=e.n("resultsDiv").find(".item.hovered");if(e.n("text").trigger("blur",[]),c.length==0?e.n("resultsDiv").find(".item").first().addClass("hovered"):(a==40&&(c.next(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):c.removeClass("hovered").next(".item").addClass("hovered")),a==38&&(c.prev(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):c.removeClass("hovered").prev(".item").addClass("hovered"))),s.stopPropagation(),s.preventDefault(),!e.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,e.n("resultsDiv").get(0))){let u=e.n("resultsDiv").find(".resdrg .item.hovered").get(0);u!=null&&typeof u.scrollIntoView<"u"&&u.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}a==13&&e.n("resultsDiv").find(".item.hovered").length>0&&(s.stopPropagation(),s.preventDefault(),e.n("resultsDiv").find(".item.hovered a.asl_res_url").get(0).click())}};e.documentEventHandlers.push({node:document,event:"keydown",handler:n}),d()(document).on("keydown",n)},t.prototype.initOtherEvents=function(){let e=this,n,s;(0,A.isMobile)()&&(0,A.detectIOS)()&&e.n("text").on("touchstart",function(){e.savedScrollTop=window.scrollY,e.savedContainerTop=e.n("search").offset().top}),e.n("proclose").on(e.clickTouchend,function(a){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(),d()(".asl_es_"+e.o.id).length>0?(e.showLoader(),e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1)):e.o.resPage.useAjax&&(e.showLoader(),e.liveLoad(e.o.resPage.selector,e.getRedirectURL())),e.n("text").get(0).focus()}),(0,A.isMobile)()?(n=function(){e.orientationChange(),setTimeout(function(){e.orientationChange()},600)},e.documentEventHandlers.push({node:window,event:"orientationchange",handler:n}),d()(window).on("orientationchange",n)):(n=function(){e.resize()},e.documentEventHandlers.push({node:window,event:"resize",handler:n}),d()(window).on("resize",n,{passive:!0})),s=function(){e.scrolling(!1)},e.documentEventHandlers.push({node:window,event:"scroll",handler:s}),d()(window).on("scroll",s,{passive:!0}),(0,A.isMobile)()&&e.o.mobile.menu_selector!=""&&d()(e.o.mobile.menu_selector).on("touchend",function(){let a=this;setTimeout(function(){let c=d()(a).find("input.orig");c=c.length==0?d()(a).next().find("input.orig"):c,c=c.length==0?d()(a).parent().find("input.orig"):c,c=c.length==0?e.n("text"):c,e.n("search").inViewPort()&&c.get(0).focus()},300)}),(0,A.detectIOS)()&&(0,A.isMobile)()&&(0,A.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"),d()("body").append(""))},t.prototype.orientationChange=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},t.prototype.resize=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},t.prototype.scrolling=function(e){let n=this;n.detectAndFixFixedPositioning(),n.hideOnInvisibleBox(),n.fixSettingsPosition(e),n.fixResultsPosition(e)},t.prototype.initResultsEvents=function(){let e=this;e.n("resultsDiv").css({opacity:"0"});let n=function(s){let a=s.keyCode||s.which,c=s.type;if(d()(s.target).closest(".asl_w").length==0&&(e.hideOnInvisibleBox(),c!="click"||c!="touchend"||a!=3)){if(!e.resultsOpened||!e.o.closeOnDocClick)return;e.dragging||(e.hideLoader(),e.searchAbort(),e.hideResults())}};e.documentEventHandlers.push({node:document,event:e.clickTouchend,handler:n}),d()(document).on(e.clickTouchend,n),e.n("resultsDiv").on("click",".results .item",function(){e.gaEvent?.("result_click",{result_title:d()(this).find("a.asl_res_url").text(),result_url:d()(this).find("a.asl_res_url").attr("href")})})};var K=null;t.prototype.monitorTouchMove=function(){let e=this;e.dragging=!1,d()("body").on("touchmove",function(){e.dragging=!0}).on("touchstart",function(){e.dragging=!1})};var X=null;t.prototype.init=function(e,n){return this.o={...this.o,...e},this.nodes={},this.nodes.search=d()(n),this.initNodeVariables(),this.o.redirectOnClick=this.o.trigger.click!="ajax_search"&&this.o.trigger.click!="nothing",this.o.redirectOnEnter=this.o.trigger.return!="ajax_search"&&this.o.trigger.return!="nothing",this.usingLiveLoader()&&(this.o.trigger.type=this.o.resPage.trigger_type,this.o.trigger.facet=this.o.resPage.trigger_facet,this.o.resPage.trigger_magnifier&&(this.o.redirectOnClick=!1,this.o.trigger.click="ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=!1,this.o.trigger.return="ajax_search")),this.monitorTouchMove(),this.initEvents(),this.n("s").trigger("asl_init_search_bar",[this.o.id,this.o.iid],!0,!0),this},t.prototype.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(".asl_w_container");break;case"searchsettings":this.nodes[e]=this.n("container").find(".asl_s");break;case"resultsDiv":this.nodes[e]=this.n("container").find(".asl_r");break;case"probox":this.nodes[e]=this.nodes.search.find(".probox");break;case"proinput":this.nodes[e]=this.nodes.search.find(".proinput");break;case"text":this.nodes[e]=this.nodes.search.find(".proinput input.orig");break;case"textAutocomplete":this.nodes[e]=this.nodes.search.find(".proinput input.autocomplete");break;case"proloading":this.nodes[e]=this.nodes.search.find(".proloading");break;case"proclose":this.nodes[e]=this.nodes.search.find(".proclose");break;case"promagnifier":this.nodes[e]=this.nodes.search.find(".promagnifier");break;case"prosettings":this.nodes[e]=this.nodes.search.find(".prosettings");break;case"settingsAppend":this.nodes[e]=d()("#wpdreams_asl_settings_"+this.o.id);break;case"resultsAppend":this.nodes[e]=d()("#wpdreams_asl_results_"+this.o.id);break;case"trythis":this.nodes[e]=d()("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[e]=this.n("container").find(".asl_hidden_data");break;case"aspItemOverlay":this.nodes[e]=this.n("hiddenContainer").find(".asl_item_overlay");break;case"showmore":this.nodes[e]=this.n("resultsDiv").find(".showmore");break;case"items":this.nodes[e]=this.n("resultsDiv").find(".item").length>0?this.n("resultsDiv").find(".item"):this.n("resultsDiv").find(".photostack-flip");break;case"results":this.nodes[e]=this.n("resultsDiv").find(".results");break;case"resdrg":this.nodes[e]=this.n("resultsDiv").find(".resdrg");break}return this.nodes[e]},t.prototype.initNodeVariables=function(){let e=this;e.o.id=parseInt(e.nodes.search.data("id")),e.o.iid=parseInt(e.nodes.search.data("instance")),e.o.rid=e.o.id+"_"+e.o.iid,e.fixClonedSelf()},t.prototype.initEvents=function(){this.initSettingsSwitchEvents?.(),this.initOtherEvents(),this.initMagnifierEvents(),this.initInputEvents()};var Z=null;t.prototype.initResults=function(){this.resultsInitialized||(this.initResultsBox(),this.initResultsEvents(),this.initNavigationEvents?.())},t.prototype.initResultsBox=function(){let e=this;e.initResultsAnimations(),(0,A.isMobile)()&&e.o.mobile.force_res_hover==1?(e.o.resultsposition="hover",e.nodes.resultsDiv=e.n("resultsDiv").clone(),d()("body").append(e.nodes.resultsDiv),e.nodes.resultsDiv.css({position:"absolute"}),e.detectAndFixFixedPositioning()):e.o.resultsposition=="hover"&&e.n("resultsAppend").length<=0?(e.nodes.resultsDiv=e.n("resultsDiv").clone(),d()("body").append(e.n("resultsDiv"))):(e.o.resultsposition="block",e.n("resultsDiv").css({position:"static"}),e.n("resultsAppend").length>0&&(e.n("resultsAppend").find(".asl_w").length>0?e.nodes.resultsDiv=e.n("resultsAppend").find(".asl_w"):(e.nodes.resultsDiv=e.n("resultsDiv").clone(),e.nodes.resultsAppend.append(e.n("resultsDiv"))))),e.nodes.showmore=e.n("resultsDiv").find(".showmore"),e.nodes.items=e.n("resultsDiv").find(".item").length>0?e.n("resultsDiv").find(".item"):e.n("resultsDiv").find(".photostack-flip"),e.nodes.results=e.n("resultsDiv").find(".results"),e.nodes.resdrg=e.n("resultsDiv").find(".resdrg"),e.n("resultsDiv").get(0).id=e.n("resultsDiv").get(0).id.replace("__original__",""),e.detectAndFixFixedPositioning(),e.resultsInitialized=!0},t.prototype.initResultsAnimations=function(){this.n("resultsDiv").css({"-webkit-animation-duration":this.resAnim.duration+"ms","animation-duration":this.resAnim.duration+"ms"})};var ee=null;t.prototype.autocompleteGoogleOnly=function(){const e=this,n=String(e.n("text").val());if(e.n("text").val()==""){e.n("textAutocomplete").val("");return}let s=String(e.n("textAutocomplete").val());if(s!=""&&s.indexOf(n)==0)return;e.n("textAutocomplete").val("");let a=e.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(c){e.n("searchsettings").find('input[name="'+c+'"]').length>0&&String(e.n("searchsettings").find('input[name="'+c+'"]').val()).length>1&&(a=String(e.n("searchsettings").find('input[name="'+c+'"]').val()))}),String(e.n("text").val()).length>=e.o.autocomplete.trigger_charcount&&d().fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:n,hl:a,nolabels:"t",client:"hp",ds:""},success:function(c){if(c[1].length>0){let u=c[1][0][0].replace(/(<([^>]+)>)/ig,"");u=d()("