PageSourceSearch

https://www.atinytrip.com/wp-content/cache/autoptimize/js/autoptimize_88568c051e21a47ca9467c643ecad836.js

js atinytrip.com collected 2026-10-04 21:06:30 UTC 91,020 bytes, 971 lines download raw bytes

1var breeze_prefetch={"local_url":"https://www.atinytrip.com","ignore_remote_prefetch":"1","ignore_list":["wp-admin","wp-login.php"]};
2/*! Created by Cloudways 
3 On 12-05-2026 */
4var timer,ready=e=>{"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)};function get_prefetch_key(e){return(-1!==e.indexOf("#")?e.substring(0,e.indexOf("#")):e).replace(/\/+$/,"")}function search_for_banned_links(e,r){if(!e.length)return!1;for(var t=-1!==(r=(r=r.startsWith("/")?r.substring(1):r).replace(/\/+$/,"")).indexOf("/")?r.indexOf("/"):r.indexOf("?"),n=-1!==t?r.substring(0,t):r,i=0;i<e.length;i++){var a=e[i].replace(/\/+$/,"");if("wp-admin"===a||"wp-login.php"===a){if(n===a)return!0}else if(r.includes(a)||a.includes(r))return!0}return!1}function breeze_ignore_special_links(e,r){var t=!0;if(-1!==r.indexOf("#")){var n=r.substring(0,r.indexOf("#")).replace(breeze_prefetch.local_url,"");if(search_for_banned_links(breeze_prefetch.ignore_list,n))return!1}return-1===r.indexOf("add-to-cart=")&&-1===r.indexOf("?remove_item=")||(t=!1),t=void 0!==e.dataset.product_id&&void 0!==e.dataset.quantity&&void 0!==e.dataset.product_sku?!1:t}ready(()=>{var c=[];addEventListener("mouseover",function(e){var i,a,l=e.target&&e.target.closest?e.target.closest("a"):null;l instanceof HTMLAnchorElement&&(i=new URL(breeze_prefetch.local_url).host,(a=l.attributes.href?l.attributes.href.value:null)&&(-1===a.indexOf(i)&&(a=l.href),timer=setTimeout(function(){var e,r,t,n;"#"!==a&&(n=(e=get_prefetch_key(a)).replace(breeze_prefetch.local_url,""),t=new URL(a).host,""!==a.trim()&&!1===c.includes(e)&&i===t&&!1===search_for_banned_links(breeze_prefetch.ignore_list,n)&&!0===breeze_ignore_special_links(l,a)&&(c.push(e),r=document.createElement("link"),t=get_prefetch_key(breeze_prefetch.local_url),n=-1!==a.indexOf("#")?a.substring(0,a.indexOf("#")):a,n=e===t?breeze_prefetch.local_url:n,e!==t&&"/"!==n.slice(-1)&&(n+="/"),r.href=n,r.rel="prefetch",document.head.appendChild(r)))},150)))}),addEventListener("mouseout",function(e){clearTimeout(timer)})});
5!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")}
5,this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-more-info"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))}),null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document);
6/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
7"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]}
7,n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
7,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
8(function(m,a,i,l,e,r){m['MailerLiteObject']=e;function f(){var c={a:arguments,q:[]};var r=this.push(c);return"number"!=typeof r?r:f.bind(c.q);}
9f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?'+(~~(new Date().getTime()/10000000));_.parentNode.insertBefore(r,_);})(window,document,'script','https://static.mailerlite.com/js/universal.js','ml');
9var ml_account=ml('accounts','1380740','z5r1w7d0h4','load');;
vendor: 119 bytes, lines 10-11
10window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
11gtag('js',new Date());gtag('config','
11UA-139130562-1
vendor: 4 bytes, line 11
11');
12(function(m,a,i,l,e,r){m['MailerLiteObject']=e;function f(){var c={a:arguments,q:[]};var r=this.push(c);return"number"!=typeof r?r:f.bind(c.q);}
13f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?v'+(~~(new Date().getTime()/1000000));_.parentNode.insertBefore(r,_);})(window,document,'script','https://static.mailerlite.com/js/universal.js','ml');var ml_account=ml('accounts','1380740','z5r1w7d0h4','load');
14var imported=document.createElement('script');imported.src='https://content.flexlinkspro.com/flexlinks_1231683.js';document.head.appendChild(imported);;
15/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
16var astra={"break_point":"921","isRtl":"","is_scroll_to_id":"","is_scroll_to_top":"","is_header_footer_builder_active":"1","responsive_cart_click":"flyout","is_dark_palette":""};
17var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)},astraTriggerEvent=((()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})(),function(e,t){t=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(t)});astraSmoothScroll=function(e,t){e.preventDefault(),window.scrollTo({top:t,left:0,behavior:"smooth"})},astScrollToTopHandler=function(e,t){var a=getComputedStyle(t).content,n=t.dataset.onDevices,a=a.replace(/[^0-9]/g,"");"both"==n||"desktop"==n&&"769"==a||"mobile"==n&&""==a?(n=window.pageYOffset||document.body.scrollTop,e&&e.length?n>e.offsetHeight+100?t.style.display="block":t.style.display="none":300<window.pageYOffset?t.style.display="block":t.style.display="none"):t.style.display="none"},(()=>{var r=document.querySelectorAll("#masthead .main-header-menu-toggle"),d=document.getElementById("masthead"),i={},c="",u=document.body,m="";function e(e){c=e.detail.type;e=document.querySelectorAll(".menu-toggle");"dropdown"===c&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g("updateHeader")),"off-canvas"===c&&e.forEach(function(e){e&&e.classList.contains("toggled")&&e.click()}),t(c)}function g(e){m=d.querySelector("#ast-mobile-header");if(null==m||"dropdown"!==m.dataset.type||"updateHeader"===e){(void 0!==e&&"updateHeader"!==e?e.closest(".ast-mobile-popup-inner"):document.querySelector("#ast-mobile-popup")).querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a<t.length;a++)t[a].classList.remove("toggled"),t[a].style.display="flex"}}function t(e){var a=document.querySelectorAll("#ast-mobile-header .menu-toggle"),n=document.querySelectorAll("#ast-desktop-header .menu-toggle");if(void 0===e&&null!==d)if(m=d.querySelector("#ast-mobile-header"))e=m.dataset.type;else{var o=d.querySelector("#ast-desktop-header");if(!o)return;e=o.dataset.toggleType}if("off-canvas"===e){var o=document.getElementById("menu-toggle-close"),s=document.querySelector(".ast-mobile-popup-inner");if(null==s)return;popupLinks=s.getElementsByTagName("a");for(var r=0;r<a.length;r++)a[r].removeEventListener("click",astraNavMenuToggle,!1),a[r].removeEventListener("click",popupTriggerClick),a[r].addEventListener("click",popupTriggerClick,!1),a[r].trigger_type="mobile";for(r=0;r<n.length;r++)n[r].removeEventListener("click",astraNavMenuToggle,!1),n[r].removeEventListener("click",popupTriggerClick),n[r].addEventListener("click",popupTriggerClick,!1),n[r].trigger_type="desktop";let t=document.querySelector(".ast-button-wrap .menu-toggle");o.addEventListener("click",function(e){document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(this),t?.focus()}
17),document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(),t?.focus())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-popup-drawer.active .ast-mobile-popup-overlay")&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(),t?.focus())});for(let e=0,t=popupLinks.length;e<t;e++)null!==popupLinks[e].getAttribute("href")&&(popupLinks[e].getAttribute("href").startsWith("#")||-1!==popupLinks[e].getAttribute("href").search("#"))&&(!popupLinks[e].parentElement.classList.contains("menu-item-has-children")||popupLinks[e].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&(popupLinks[e].addEventListener("click",p,!0),popupLinks[e].headerType="off-canvas");AstraToggleSetup()}else if("dropdown"===e){var t=document.querySelectorAll(".ast-mobile-header-content")||!1,s=document.querySelector(".ast-desktop-header-content")||!1;if(0<t.length)for(let e=0;e<t.length;e++){var l=t[e].getElementsByTagName("a");for(link=0,len=l.length;link<len;link++){var i=null===l[link].closest(".wp-block-uagb-tabs");null!==l[link].getAttribute("href")&&(l[link].getAttribute("href").startsWith("#")||-1!==l[link].getAttribute("href").search("#"))&&(!l[link].parentElement.classList.contains("menu-item-has-children")||l[link].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&i&&(l[link].addEventListener("click",p,!0),l[link].headerType="dropdown")}}if(s){var c=s.getElementsByTagName("a");for(link=0,len=c.length;link<len;link++)c[link].addEventListener("click",p,!0),c[link].headerType="dropdown"}for(r=0;r<a.length;r++)a[r].removeEventListener("click",popupTriggerClick,!1),a[r].removeEventListener("click",astraNavMenuToggle),a[r].addEventListener("click",astraNavMenuToggle,!1),a[r].trigger_type="mobile";for(r=0;r<n.length;r++)n[r].removeEventListener("click",popupTriggerClick,!1),n[r].removeEventListener("click",astraNavMenuToggle),n[r].addEventListener("click",astraNavMenuToggle,!1),n[r].trigger_type="desktop";AstraToggleSetup()}h()}function p(e){switch(e.currentTarget.headerType){case"dropdown":for(var t=document.querySelectorAll(".menu-toggle.toggled"),a=0;a<t.length;a++)t[a].click();break;case"off-canvas":document.getElementById("menu-toggle-close").click()}}""!==(m=null!=d?d.querySelector("#ast-mobile-header"):m)&&null!==m&&(c=m.dataset.type),document.addEventListener("astMobileHeaderTypeChange",e,!1),document.addEventListener("click",function(e){e=e.target.closest(".menu-toggle");if(e){e.classList.toggle("toggled");{e=document.querySelectorAll(".menu-toggle");let t=Array.from(e).every(e=>e.classList.contains("toggled"));e.forEach(e=>{t?e.classList.remove("toggled"):e.classList.add("toggled")})}}}),popupTriggerClick=function(e){var e=e.currentTarget.trigger_type,t=document.getElementById("ast-mobile-popup"),a=document.getElementById("menu-toggle-close");a&&a.focus(),u.classList.contains("ast-popup-nav-open")||u.classList.add("ast-popup-nav-open"),u.classList.contains("ast-main-header-nav-open")||"mobile"===e||u.classList.add("ast-main-header-nav-open"),document.documentElement.classList.contains("ast-off-canvas-active")||document.documentElement.classList.add("ast-off-canvas-active"),"desktop"===e&&(t.querySelector(".ast-mobile-popup-content").style.display="none",t.querySelector(".ast-desktop-popup-content").style.display="block"),"mobile"===e&&(t.querySelector(".ast-desktop-popup-content").style.display="none",t.querySelector(".ast-mobile-popup-content").style.display="block"),this.style.display="none",t.classList.add("active","show")},window.addEventListener("load",function(){t()}),document.addEventListener("astLayoutWidthChanged",function(){t()}),document.addEventListener("astPartialContentRendered",function(){r=document.querySelectorAll(".main-header-menu-toggle"),u.classList.remove("ast-main-header-nav-open"),document.addEventListener("astMobileHeaderTypeChange",e,!1),t(),h()});var o=null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualVie
17wport.width:window.innerWidth;window.addEventListener("resize",function(){var e,t,a,n;"INPUT"!==document.activeElement.tagName&&(e=document.getElementById("menu-toggle-close"),t=document.querySelector(".menu-toggle.toggled"),a=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==o&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),v(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0]||e.getElementsByTagName("a")[0];if(a&&!a.classList.contains("astra-search-icon")){var n=t.getElementsByTagName("ul")[0];if(n){if(n.className.includes("nav-menu")||(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===c&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){var e=t.className.includes("toggled");t.className=e?t.className.replace(" toggled",""):t.className+" toggled",a.setAttribute("aria-expanded",e?"false":"true"),n.setAttribute("aria-expanded",e?"false":"true")})}),a.onclick=function(){var e=t.className.includes("toggled");t.className=e?t.className.replace(" toggled",""):t.className+" toggled",a.setAttribute("aria-expanded",e?"false":"true"),n.setAttribute("aria-expanded",e?"false":"true")},!astra.is_header_footer_builder_active){for(var o=n.getElementsByTagName("a"),s=n.getElementsByTagName("ul"),r=0,l=s.length;r<l;r++)s[r].parentNode.setAttribute("aria-haspopup","true");for(r=0,l=o.length;r<l;r++)o[r].addEventListener("focus",E,!0),o[r].addEventListener("blur",E,!0),o[r].addEventListener("click",L,!0)}astra.is_header_footer_builder_active&&(()=>{let t=document.querySelectorAll("nav.site-navigation .menu-item-has-children > a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),o=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(o){if("Enter"===o.key){/Mobi|Android|iPad|iPhone/i.test(navigator.userAgent)&&(o.preventDefault(),o.stopPropagation());let t=o.target.closest("li"),a=t.querySelector(".sub-menu"),n=a&&a.classList.contains("astra-megamenu");setTimeout(()=>{n?(e=t.querySelector(".astra-full-megamenu-wrapper"),a&&a.classList.toggle("astra-megamenu-focus"),e&&e.classList.toggle("astra-megamenu-wrapper-focus")):a.classList.toggle("toggled-on"),t.classList.toggle("ast-menu-hover");var e=o.target.getAttribute("aria-expanded");o.target.setAttribute("aria-expanded","false"!==e&&e?"false":"true")},10)}})}),a||n)&&(document.addEventListener("click",function(e){b(a,t,n,o)},!1),document.addEventListener("keydown",function(e){"Escape"===e.key&&b(a,t,n,o)},!1));var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||b(a,t,n,o)},!1)})})()}else a.style.display="none"}}}});for(var a,n,s,l,v=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point<t||0===t){if(0<r.length)for(var a=0;a<r.length;a++)null!==r[a]&&r[a].classList.remove("toggled");u.classList.remove("ast-header-break-point"),u.classList.add("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-enabled")}else u.classList.add("ast-header-break-point"),u.classList.remove("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-disabled")},h=function(){var e,a=document.querySelectorAll(".ast-account-action-login");if(a.length){let t=document.querySelector("#ast-hb-account-login-wrap");t&&(e=document.querySelector("#ast-hb-login-close"),a.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.classList.add("show")})}),e)&&e.addEventListener("click",function(e){e.preventDefault(),t.classList.remove("show")})}},f=(v(),AstraToggleSubMenu=function(e){e.preventDefault(),"false"!==e.target.getAttribute("aria-expanded")&&e.target.getAttribute("aria-expanded")?e.target.setAttribute("aria-expanded","fal
17se"):e.target.setAttribute("aria-expanded","true");for(var t=this.parentNode,a=(t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||""!==(e=t.querySelector("a").getAttribute("href"))&&"#"!==e&&(window.location=e)),t.querySelectorAll(".menu-item-has-children")),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");var o=a[n].querySelector(".sub-menu, .children");null!==o&&(o.style.display="none")}for(var s=t.parentNode.querySelectorAll(".menu-item-has-children"),n=0;n<s.length;n++)if(s[n]!=t){s[n].classList.remove("ast-submenu-expanded");for(var r=s[n].querySelectorAll(".sub-menu"),l=0;l<r.length;l++)r[l].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraToggleSetup=function(){if("undefined"!=typeof astraAddon&&"function"==typeof astraToggleSetupPro)astraToggleSetupPro(c,u,i);else{var e,t,a,n=!1;if(0<(e="off-canvas"===c||"full-width"===c?(t=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length):(t=document.querySelectorAll("#ast-mobile-header"),(n=!(0<(e=(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:e))||n)for(var o=0;o<e;o++)if(n||(a[o].setAttribute("data-index",o),i[o])||(i[o]=a[o],a[o].removeEventListener("click",astraNavMenuToggle),a[o].addEventListener("click",astraNavMenuToggle,!1)),void 0!==t[o])for(var s,r=0;r<t.length;r++)if(0<(s=document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")?t[r].querySelectorAll("ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l<s.length;l++)s[l].removeEventListener("click",AstraToggleSubMenu),s[l].addEventListener("click",AstraToggleSubMenu,!1)}},astraNavMenuToggle=function(e){if("undefined"!=typeof astraAddon)astraNavMenuTogglePro(e,u,c,this);else{e.preventDefault();var e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");for(var o=a[n].querySelectorAll(".sub-menu"),s=0;s<o.length;s++)o[s].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(e[t],"toggle-on"),astraToggleClass(r[t],"toggled"),e[t].classList.contains("toggle-on")?(e[t].style.display="block",u.classList.add("ast-main-header-nav-open")):(e[t].style.display="",u.classList.remove("ast-main-header-nav-open")))}},u.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),n=0;n<a.length;n++)a[n].style.display="";for(var o=e[t].getElementsByClassName("children"),s=0;s<o.length;s++)o[s].style.display="";for(var r=e[t].getElementsByClassName("ast-search-menu-icon"),l=0;l<r.length;l++)r[l].classList.remove("ast-dropdown-active"),r[l].style.display=""}},!1),S=navigator.userAgent,n=S.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(n[1])?a=/\brv[ :]+(\d+)/g.exec(S)||[]:"Chrome"===n[1]&&null!=(a=S.match(/\bOPR|Edge\/(\d+)/))||(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(a=S.match(/version\/(\d+)/i))&&n.splice(1,1,a[1]),"Safari"===n[0]&&n[1]<11&&document.body.classList.add("ast-safari-browser-less-than-11")),document.getElementsByClassName("astra-search-icon")),y=0;y<f.length;y++)f[y].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};
17function b(e,t,a,n){e&&e.forEach(e=>{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function L(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},astra.is_header_footer_builder_active||"querySelector"in document&&"addEventListener"in window&&(u.addEventListener("mousedown",function(){u.classList.add("ast-mouse-clicked")}),u.addEventListener("keydown",function(){u.classList.remove("ast-mouse-clicked")})),astra.is_scroll_to_id){let o=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t};var k=e=>{let t=0;var a=document.querySelector(".site-header");a&&(0<(a=a.querySelectorAll("div[data-stick-support]")).length?a.forEach(e=>t+=e.clientHeight):"undefined"==typeof astraAddon||Number(astraAddon.sticky_hide_on_scroll)&&!document?.querySelector(".ast-header-sticked")||(a=document.querySelector("#ast-fixed-header"))&&(t=a?.clientHeight,Number(astraAddon?.header_main_shrink))&&(a?.querySelectorAll(".ast-above-header-wrap, .ast-below-header-wrap"))?.forEach(()=>t-=10),a=e.target.closest("a").hash)&&(a=document.querySelector(a))&&(a=(a=o(a))-(t="undefined"!=typeof astraAddon&&Number(astraAddon.sticky_hide_on_scroll)&&window?.scrollY<a?0:t))&&astraSmoothScroll(e,a)};let t=[];var S=document.querySelectorAll('a[href*="#"]:not([href="#"]):not([href="#0"]):not([href*="uagb-tab"]):not(.uagb-toc-link__trigger):not(.skip-link):not(.nav-links a):not([href*="tab-"])');if(S)for(let e of S)e.href.split("#")[0]!==location.href.split("#")[0]?t.push({hash:e.hash,url:e.href.split("#")[0]}):""!==e.hash&&e.addEventListener("click",k);window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=o(n)-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(s=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(s,l),window.addEventListener("scroll",function(){astScrollToTopHandler(s,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)}
17)),astra?.is_dark_palette?document.documentElement.classList.add("astra-dark-mode-enable"):document.documentElement.classList.remove("astra-dark-mode-enable"),window.addEventListener("DOMContentLoaded",e=>{var t=document.querySelector(".ast-woocommerce-store-notice-hanged");let a=()=>{var e=document.querySelector('.woocommerce-store-notice[data-position="hang-over-top"]');document.body.style.paddingTop=`${e?.clientHeight||0}px`};t&&(window.addEventListener("resize",a),setTimeout(()=>a(),0)),document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>{"undefined"!=typeof wp&&wp?.customize||(document.body.classList.remove("ast-woocommerce-store-notice-hanged"),window.removeEventListener("resize",a),document.body.style.paddingTop=0)})})})(),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".menu-link .dropdown-menu-toggle");function n(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-item-has-children > a").forEach(t=>{t.addEventListener("keydown",function(e){"Enter"===e.key&&(e=t.nextElementSibling)&&e.classList.contains("sub-menu")&&(e.classList.toggle("ast-visible"),e="false"===t.getAttribute("aria-expanded")?"true":"false",t.setAttribute("aria-expanded",e))})}),t.forEach(a=>{a.addEventListener("focus",()=>n(a)),a.addEventListener("blur",()=>n(a)),a.addEventListener("keydown",e=>{var t;"Enter"===e.key&&(e.preventDefault(),e=(e=a).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",e=>{"Escape"===e.key&&t.forEach(e=>n(e))}),window.addEventListener("orientationchange",()=>{setTimeout(()=>window.dispatchEvent(new Event("resize")),50)})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".astra-shop-thumbnail-wrap").forEach(t=>{let a=t.querySelectorAll("a, span");a.forEach(e=>{e.addEventListener("focus",()=>{t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="1",e.style.visibility="visible",e.style.borderStyle="none"})}),e.addEventListener("blur",()=>{Array.from(a).some(e=>e===document.activeElement)||t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="",e.style.visibility=""})})})})}),jQuery(document).on("click",".main-header-bar-navigation a",function(){jQuery("body").hasClass("ast-main-header-nav-open")&&(jQuery(".main-header-menu-toggle.toggled").removeClass("toggled"),jQuery(".main-header-bar-navigation.toggle-on").removeClass("toggle-on").css("display",""),jQuery("body").removeClass("ast-main-header-nav-open"))});
18var thirstyFunctions;jQuery(document).ready((function(t){thirstyFunctions={recordLinkStatEvents:function(){"yes"==thirsty_global_vars.enable_record_stats&&t("body").on("click","a",thirstyFunctions.recordLinkStat)},recordLinkStat:function(r){var a,e,i,o=t(this),n=o.attr("href"),s=o.data("linkid"),l=o[0].innerText,c=n?n.split("?")[1]:"";l||(l=o.text()),(thirstyFunctions.isThirstyLink(n)||s)&&(o.data("thirstypay")||(o.data("clicked")?r.preventDefault():(o.data("clicked",!0),!l&&o.find("img").length&&(l=(a=o.find("img").prop("src").split("/"))[a.length-1]),"yes"===thirsty_global_vars.enable_js_redirect&&1!=o.data("nojs")&&(r.preventDefault(),"_blank"!=o.prop("target")||thirstyFunctions.disableNewWindow()?window.MonsterInsightsObject&&setTimeout((function(){"function"==typeof window.onbeforeunload&&(i=window.onbeforeunload)}),50):e=window.open("","_blank")),t.post(thirsty_global_vars.ajax_url,{action:"ta_click_data_redirect",href:n,page:window.location.href,link_id:s,keyword:l,qs:c},(function(t){o.data("clicked",!1),"yes"===thirsty_global_vars.enable_js_redirect&&1!=o.data("nojs")&&(e?e.location.href=t||n:("function"==typeof i&&null===window.onbeforeunload&&(window.onbeforeunload=i),window.location.href=t||n))})).fail((function(){o.data("clicked",!1),"yes"===thirsty_global_vars.enable_js_redirect&&1!=o.data("nojs")&&(e?e.location.href=n:("function"==typeof i&&null===window.onbeforeunload&&(window.onbeforeunload=i),window.location.href=n))})))))},disableNewWindow:function(){var t=["FBAN","MessengerForiOS","FBAV","Instagram","Pinterest","Twitter","Electron","Steam"];for(var r in t)if(navigator.userAgent.indexOf(t[r])>=0)return!0;return!1}
18,isThirstyLink:function(a){if(a){var e,i,o=(a=a.replace("http:","{protocol}").replace("https:","{protocol}")).replace(thirsty_global_vars.home_url,"").replace("{protocol}","");return e=(o=0==o.indexOf("/")?o.replace("/",""):o).substr(0,o.indexOf("/")),i=a.replace("/"+e+"/","/"+thirsty_global_vars.link_prefix+"/").replace("{protocol}",window.location.protocol),!!(e&&t.inArray(e,r)>-1)&&i}},linkFixer:function(){if("yes"===thirsty_global_vars.link_fixer_enabled){var r,a,e,i,o,n=t("body a"),s=[];for(o=0;o<n.length;o++)r=t(n[o]).attr("href"),a=t(n[o]).attr("class"),e=t(n[o]).data("shortcode"),i=t(n[o]).has("img").length,(r=thirstyFunctions.isThirstyLink(r))&&!e&&s.push({key:o,class:a,href:r,is_image:i}),t(n[o]).removeAttr("data-shortcode");s.length<1||t.post(thirsty_global_vars.ajax_url,{action:"ta_link_fixer",hrefs:s,post_id:thirsty_global_vars.post_id},(function(r){if("success"==r.status)for(var a in r.data)if("object"==typeof r.data[a]){var e,i=r.data[a].key,o=t(n[i]).prop("href"),s=o?o.split("?")[1]:"",l=r.data[a].href,c=r.data[a].title,d=r.data[a].class,p=r.data[a].thirstypay;s&&r.data[a].pass_qs&&(e=l.indexOf("?")<0?"?":"&",l=l+e+s),l=l.replace("http:",window.location.protocol).replace("https:",window.location.protocol),c?t(n[i]).prop("title",c):t(n[i]).removeAttr("title"),"yes"==thirsty_global_vars.disable_thirstylink_class&&(d=d.replace("thirstylinkimg","").replace("thirstylink","").trim()),d?t(n[i]).prop("class",d):t(n[i]).removeAttr("class"),t(n[i]).prop("href",l).prop("rel",r.data[a].rel).prop("target",r.data[a].target).attr("data-linkid",r.data[a].link_id),p&&t(n[i]).attr("data-thirstypay",!0),"yes"===thirsty_global_vars.enable_js_redirect&&t(n[i]).attr("data-nojs",r.data[a].nojs)}}),"json")}}};var r=t.map(thirsty_global_vars.link_prefixes,(function(t,r){return[t]}));thirstyFunctions.recordLinkStatEvents(),thirstyFunctions.linkFixer()}));
19window.socialWarfare = window.socialWarfare || {};
20( function ( window, $ ) {
21	'use strict';
22	if ( typeof $ !== 'function' ) {
23		if ( typeof jQuery === 'function' ) {
24			var $ = jQuery;
25		} else {
26			console.log(
27				'Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.'
28			);
29			return;
30		}
31	}
32	function isString( maybeString ) {
33		return typeof maybeString === 'string' && maybeString.length > 0;
34	}
35	socialWarfare.paddingTop = parseInt( $( 'body' ).css( 'padding-top' ) );
36	socialWarfare.paddingBottom = parseInt(
37		$( 'body' ).css( 'padding-bottom' )
38	);
39	socialWarfare.initPlugin = function () {
40		$( 'body' ).css( {
41			paddingTop: socialWarfare.paddingTop,
42			paddingBottom: socialWarfare.paddingBottom,
43		} );
44		socialWarfare.establishPanels();
45		socialWarfare.establishBreakpoint();
46		if (
47			! socialWarfare.panels.staticHorizontal &&
48			! socialWarfare.panels.floatingSide &&
49			! socialWarfare.panels.floatingHorizontal
50		) {
51			return;
52		}
53		socialWarfare.emphasizeButtons();
54		socialWarfare.createFloatHorizontalPanel();
55		socialWarfare.positionFloatSidePanel();
56		socialWarfare.activateHoverStates();
57		socialWarfare.handleButtonClicks();
58		socialWarfare.updateFloatingButtons();
59		socialWarfare.closeLightboxOverlay();
60		socialWarfare.preloadPinterestImages();
61		if ( typeof swpPinIt === 'object' && swpPinIt.enabled == true ) {
62			socialWarfare.createHoverSaveButton();
63			socialWarfare.triggerImageListeners();
64		}
65		setTimeout( function () {
66			socialWarfare.checkListeners( 0, 5 );
67		}, 2e3 );
68		let time = Date.now();
69		const scrollDelay = 50;
70		$( window ).on( 'scroll', function () {
71			if ( time + scrollDelay - Date.now() < 0 ) {
72				socialWarfare.updateFloatingButtons();
73				time = Date.now();
74			}
75		} );
76	};
77	let resizeWait;
78	socialWarfare.onWindowResize = function () {
79		clearTimeout( resizeWait );
80		resizeWait = setTimeout( socialWarfare.initPlugin, 100 );
81	};
82	socialWarfare.establishPanels = function () {
83		socialWarfare.panels = {
84			staticHorizontal: null,
85			floatingSide: null,
86			floatingHorizontal: null,
87		};
88		socialWarfare.panels.staticHorizontal = $( '.swp_social_panel' ).not(
89			'.swp_social_panelSide'
90		);
91		socialWarfare.panels.floatingSide = $( '.swp_social_panelSide' );
92		return socialWarfare.panels;
93	};
94	socialWarfare.emphasizeButtons = function () {
95		if ( typeof socialWarfare.variables.emphasizeIcons === 'undefined' ) {
96			return;
97		}
98		if ( socialWarfare.isMobile() ) {
99			return;
100		}
101		jQuery( '.swp_social_panel:not(.swp_social_panelSide)' ).each(
102			function ( i, panel ) {
103				jQuery( panel )
104					.find( '.nc_tweetContainer:not(.total_shares)' )
105					.each( function ( index, button ) {
106						if ( index < socialWarfare.variables.emphasizeIcons ) {
107							const shareWidth = jQuery( button )
108								.find( '.swp_share' )
109								.width();
110							const iconWidth = jQuery( button )
111								.find( 'i.sw' )
112								.outerWidth();
113							const iconTextWidth = shareWidth + iconWidth + 35;
114							const containerWidth = jQuery( button ).width();
115							const change =
116								1 + ( shareWidth + 35 ) / containerWidth;
117							if ( change < 2 ) {
118								jQuery( button )
119									.addClass( 'swp_nohover' )
120									.css( { flex: '2 1 0%' } )
121									.find( '.iconFiller' )
122									.width( iconTextWidth );
123							} else {
124								jQuery( button )
125									.addClass( 'swp_nohover' )
126									.css( { flex: change + ' 1 0%' } )
127									.find( '.iconFiller' )
128									.width( iconTextWidth );
129							}
130						}
131					} );
132			}
133		);
134	};
135	socialWarfare.activateHoverStates = function () {
136		socialWarfare.trigger( 'pre_activate_buttons' );
137		$(
138			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer'
139		).on( 'mouseenter', function () {
140			if ( $( this ).hasClass( 'swp_nohover' ) ) {
141				return;
142			}
143			socialWarfare.resetStaticPanel();
144			const termWidth = $( this ).find( '.swp_share' ).outerWidth();
145			const iconWidth = $( this ).find( 'i.sw' ).outerWidth();
146			const containerWidth = $( this ).width();
147			const change = 1 + ( termWidth + 35 ) / containerWidth;
148			$( this )
149				.find( '.iconFiller' )
150				.width( termWidth + iconWidth + 25 + 'px' );
151			$( this ).css( 'flex', change + ' 1 0%' );
152		} );
153		$( '.swp_social_panel:not(.swp_social_panelSide)' ).on(
154			'mouseleave',
155			socialWarfare.resetStaticPanel
156		);
157	};
158	socialWarfare.resetStaticPanel = function () {
159		$(
160			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller'
161		).removeAttr( 'style' );
162		$(
163			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)'
164		).removeAttr( 'style' );
165	};
166	socialWarfare.handleButtonClicks = function () {
167		$( '.nc_tweet, a.swp_CTT' ).off( 'click' );
168		$( '.nc_tweet, a.swp_CTT' ).on( 'click', function ( event ) {
169			if ( $( this ).parent( '.swp_print' ).length > 0 ) {
170				event.preventDefault();
171				window.print();
172				return;
173			}
174			if (
175				true === $( this ).hasClass( 'pinterest_multi_image_select' )
176			) {
177				event.preventDefault();
178				socialWarfare.openMultiPinterestOverlay( $( this ) );
179				return;
180			}
181			if ( $( this ).parent( '.swp_more' ).length > 0 ) {
182				event.preventDefault();
183				socialWarfare.openMoreOptions( $( this ) );
184				return;
185			}
186			if ( $( this ).hasClass( 'noPop' ) ) {
187				return event;
188			}
189			if (
190				'undefined' === typeof $( this ).data( 'link' ) &&
191				false === $( this ).is( '.swp-hover-pin-button' )
192			) {
193				return event;
194			}
195			event.preventDefault();
196			const href = $( this ).data( 'link' ).replace( '’', "'" );
197			let height, width, top, left, instance, windowAttributes, network;
198			height = 270;
199			width = 500;
200			if (
201				$( this ).is(
202					'.swp_pinterest a, .buffer_link a, .flipboard a, .swp-hover-pin-button'
203				)
204			) {
205				height = 550;
206				width = 775;
207			}
208			if ( $( this ).hasClass( 'nc_tweet' ) ) {
209				network = $( this )
210					.parents( '.nc_tweetContainer' )
211					.data( 'network' );
212			} else if ( $( this ).hasClass( 'swp_CTT' ) ) {
213				network = 'ctt';
214			}
215			top = window.screenY + ( window.innerHeight - height ) / 2;
216			left = window.screenX + ( window.innerWidth - width ) / 2;
217			windowAttributes =
218				'height=' +
219				height +
220				',width=' +
221				width +
222				',top=' +
223				top +
224				',left=' +
225				left;
226			instance = window.open( href, network, windowAttributes );
227			socialWarfare.trackClick( network );
228		} );
229	};
230	socialWarfare.openMultiPinterestOverlay = function ( element ) {
231		if ( $( '.pinterest-overlay' ).length > 0 ) {
232			$( '.pinterest-overlay' ).fadeIn();
233			$( '.swp-lightbox-inner' ).scrollTop( 0 );
234			return;
235		}
236		let html = '';
237		const pin_data = element.data( 'pins' );
238		let pin_images = '';
239		pin_data.images.forEach( function ( image ) {
240			const share_url =
241				'https://pinterest.com/pin/create/button/?url=' +
242				pin_data.url +
243				'&media=' +
244				image +
245				'&description=' +
246				encodeURIComponent( pin_data.description );
247			let pin_html = '';
248			pin_html += '<div class="pin_image_select_wrapper">';
249			pin_html += '<img class="pin_image" src="' + image + '" />';
250			pin_html +=
251				'<a class="swp-hover-pin-button" href="' +
252				share_url +
253				'" data-link="' +
254				share_url +
255				'">Save</a>';
256			pin_html += '</div>';
257			pin_images += pin_html;
258		} );
259		html +=
260			'<div class="swp-lightbox-wrapper pinterest-overlay"><div class="swp-lightbox-inner">';
261		html += '<i class="sw swp_pinterest_icon top_icon"></i>';
262		html += '<div class="swp-lightbox-close"></div>';
263		html += '<h5>Which image would you like to pin?</h5>';
264		html += '<div class="pin_images_wrapper">';
265		html += pin_images;
266		html += '</div>';
267		html += socialWarfare.buildPoweredByLink();
268		html += '</div></div>';
269		$( 'body' ).append( html );
270		$( '.pinterest-overlay' ).hide().fadeIn();
271		socialWarfare.handleButtonClicks();
272		let max_height = 999999;
273		let iteration = 0,
274			images = $( '.pinterest-overlay .pin_images_wrapper img' );
275		images.load( function () {
276			if ( ++iteration === images.length ) {
277				images
278					.each( function () {
279						if ( $( this ).height() < max_height ) {
280							max_height = $( this ).height();
281						}
282					} )
283					.promise()
284					.done( function () {
285						images.height( max_height + 'px' );
286						const number_of_rows = Math.ceil( images.length / 4 );
287						for ( i = 0; i < number_of_rows; i++ ) {
288							const current_row_images = images.slice(
289								i * 4,
290								i * 4 + 4
291							);
292							var max_allowable_width =
293								current_row_images.length / 4;
294							var total_width = $(
295								'.pin_images_wrapper'
296							).width();
297							var total_images_width = 0;
298							current_row_images.each( function () {
299								total_images_width =
300									total_images_width + $( this ).width();
301							} );
302							var ratio = total_width / total_images_width;
303							current_row_images.each( function () {
304								const new_width =
305									( ( $( this ).width() * ratio ) /
306										total_width ) *
307										100 *
308										max_allowable_width -
309									1;
310								$( this )
311									.parent()
312									.width( new_width + '%' );
313								$( this ).height( 'auto' );
314							} );
315							var height = current_row_images.first().height();
316							current_row_images.each( function () {
317								$( this )
318									.width( $( this ).width() )
319									.height( height );
320							} );
321						}
322					} );
323			}
324		} );
325	};
326	socialWarfare.buildPoweredByLink = function () {
327		let html = '';
328		if ( true === socialWarfare.variables.powered_by_toggle ) {
329			let anchor_tag_open = '';
330			let anchor_tag_close = '';
331			if ( false !== socialWarfare.variables.affiliate_link ) {
332				anchor_tag_open =
333					'<a href="' +
334					socialWarfare.variables.affiliate_link +
335					'" target="_blank">';
336				anchor_tag_close = '</a>';
337			}
338			html =
339				'<div class="swp_powered_by">' +
340				anchor_tag_open +
341				'<span>Powered by</span> <img src="/wp-content/plugins/social-warfare/assets/images/admin-options-page/social-warfare-pro-light.png">' +
342				anchor_tag_close +
343				'</div>';
344		}
345		return html;
346	};
347	socialWarfare.preloadPinterestImages = function () {
348		if ( $( '.pinterest_multi_image_select' ).length < 1 ) {
349			return;
350		}
351		const pin_data = $( '.pinterest_multi_image_select' ).data( 'pins' );
352		pin_data.images.forEach( function ( image_url ) {
353			const image_object = new Image();
354			image_object.src = image_url;
355		} );
356	};
357	socialWarfare.openMoreOptions = function ( element ) {
358		if ( $( '.swp-more-wrapper' ).length > 0 ) {
359			$( '.swp-more-wrapper' ).fadeIn();
360			return;
361		}
362		const post_id = element
363			.parents( '.swp_social_panel' )
364			.data( 'post-id' );
365		const data = {
366			action: 'swp_buttons_panel',
367			post_id,
368			_ajax_nonce: swp_nonce,
369		};
370		jQuery.post( swp_ajax_url, data, function ( response ) {
371			$( 'body' ).append( response );
372			$( '.swp-lightbox-wrapper' ).hide().fadeIn();
373			socialWarfare.activateHoverStates();
374			socialWarfare.handleButtonClicks();
375		} );
376	};
377	socialWarfare.closeLightboxOverlay = function () {
378		$( 'body' ).on( 'click', '.swp-lightbox-close', function () {
379			$( '.swp-lightbox-wrapper' ).fadeOut();
380		} );
381		$( document ).on( 'keyup', function ( e ) {
382			if ( e.key === 'Escape' ) {
383				$( '.swp-lightbox-wrapper' ).fadeOut();
384			}
385		} );
386	};
387	socialWarfare.createFloatHorizontalPanel = function () {
388		if ( ! socialWarfare.panels.staticHorizontal.length ) {
389			return;
390		}
391		const floatLocation =
392			socialWarfare.panels.staticHorizontal.data( 'float' );
393		const mobileFloatLocation =
394			socialWarfare.panels.staticHorizontal.data( 'float-mobile' );
395		const backgroundColor =
396			socialWarfare.panels.staticHorizontal.data( 'float-color' );
397		const wrapper = $(
398			'<div class="nc_wrapper swp_floating_horizontal_wrapper" style="background-color:' +
399				backgroundColor +
400				'"></div>'
401		);
402		let barLocation = '';
403		if ( $( '.nc_wrapper' ).length ) {
404			$( '.nc_wrapper' ).remove();
405		}
406		if ( $( '.swp_floating_horizontal_wrapper' ).length ) {
407			$( '.swp_floating_horizontal_wrapper' ).remove();
408		}
409		if (
410			floatLocation != 'top' &&
411			floatLocation != 'bottom' &&
412			mobileFloatLocation != 'top' &&
413			mobileFloatLocation != 'bottom'
414		) {
415			return;
416		}
417		if ( socialWarfare.isMobile() ) {
418			barLocation = mobileFloatLocation;
419		} else {
420			barLocation = floatLocation;
421		}
422		wrapper.addClass( barLocation ).hide().appendTo( 'body' );
423		socialWarfare.panels.floatingHorizontal =
424			socialWarfare.panels.staticHorizontal.first().clone();
425		socialWarfare.panels.floatingHorizontal
426			.addClass( 'nc_floater' )
427			.appendTo( wrapper );
428		socialWarfare.updateFloatingHorizontalDimensions();
429		$( '.swp_social_panel .swp_count' ).css( {
430			transition: 'padding .1s linear',
431		} );
432	};
433	socialWarfare.updateFloatingHorizontalDimensions = function () {
434		if ( ! socialWarfare.panels.staticHorizontal.length ) {
435			return;
436		}
437		if ( ! socialWarfare.panels.floatingHorizontal ) {
438			return;
439		}
440		let width = '100%';
441		let left = 0;
442		const panel = socialWarfare.panels.staticHorizontal;
443		let parent = panel.parent();
444		if ( parent.hasClass( 'swp-hidden-panel-wrap' ) ) {
445			parent = parent.parent();
446		}
447		if ( 'undefined' !== typeof panel.offset().left ) {
448			left = panel.offset().left;
449		}
450		if ( 'undefined' !== typeof panel.width() ) {
451			width = panel.width();
452		}
453		if ( left == 0 ) {
454			left = parent.offset().left;
455		}
456		if ( width == 100 || width == 0 ) {
457			width = parent.width();
458		}
459		socialWarfare.panels.floatingHorizontal.css( {
460			width,
461			left,
462		} );
463	};
464	socialWarfare.staticPanelIsVisible = function () {
465		let visible = false;
466		const scrollPos = $( window ).scrollTop();
467		$( '.swp_social_panel' )
468			.not( '.swp_social_panelSide, .nc_floater' )
469			.each( function ( index ) {
470				const offset = $( this ).offset();
471				if (
472					typeof socialWarfare.floatBeforeContent !== 'undefined' &&
473					'1' != socialWarfare.floatBeforeContent
474				) {
475					const theContent = $( '.swp-content-locator' ).parent();
476					if (
477						index === 0 &&
478						theContent.length &&
479						theContent.offset().top >
480							scrollPos + $( window ).height()
481					) {
482						visible = true;
483					}
484				}
485				if (
486					$( this ).is( ':visible' ) &&
487					offset.top + $( this ).height() > scrollPos &&
488					offset.top < scrollPos + $( window ).height()
489				) {
490					visible = true;
491				}
492			} );
493		return visible;
494	};
495	socialWarfare.updateFloatingButtons = function () {
496		if ( socialWarfare.panels.staticHorizontal.length ) {
497			var panel = socialWarfare.panels.staticHorizontal;
498		} else if ( socialWarfare.panels.floatingSide.length ) {
499			var panel = socialWarfare.panels.floatingSide;
500		} else {
501			return;
502		}
503		var location = panel.data( 'float' );
504		if ( true == socialWarfare.isMobile() ) {
505			var location = panel.data( 'float-mobile' );
506		}
507		if ( location == 'none' ) {
508			return $(
509				'.nc_wrapper, .swp_floating_horizontal_wrapper, .swp_social_panelSide'
510			).hide();
511		}
512		if ( socialWarfare.isMobile() ) {
513			socialWarfare.toggleMobileButtons();
514			socialWarfare.toggleFloatingHorizontalPanel();
515			return;
516		}
517		if ( location == 'right' || location == 'left' ) {
518			socialWarfare.toggleFloatingVerticalPanel();
519		}
520		if ( location == 'bottom' || location == 'top' ) {
521			socialWarfare.toggleFloatingHorizontalPanel();
522		}
523	};
524	socialWarfare.toggleMobileButtons = function () {
525		socialWarfare.panels.floatingSide.hide();
526		const visibility = socialWarfare.staticPanelIsVisible()
527			? 'collapse'
528			: 'visible';
529		$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).css(
530			'visibility',
531			visibility
532		);
533	};
534	socialWarfare.toggleFloatingVerticalPanel = function () {
535		let direction = '';
536		const location = socialWarfare.panels.floatingSide.data( 'float' );
537		let visible = socialWarfare.staticPanelIsVisible();
538		let offset = '';
539		if ( socialWarfare.isMobile() ) {
540			return socialWarfare.panels.floatingSide.hide();
541		}
542		if (
543			! socialWarfare.panels.floatingSide ||
544			! socialWarfare.panels.floatingSide.length
545		) {
546			visible = true;
547		}
548		if (
549			socialWarfare.panels.floatingSide.data( 'transition' ) == 'slide'
550		) {
551			direction = location;
552			offset = visible ? '-150px' : '5px';
553			socialWarfare.panels.floatingSide.css( direction, offset ).show();
554		} else if ( visible ) {
555			socialWarfare.panels.floatingSide
556				.css( 'opacity', 1 )
557				.fadeOut( 300 )
558				.css( 'opacity', 0 );
559		} else {
560			socialWarfare.panels.floatingSide
561				.css( 'opacity', 0 )
562				.fadeIn( 300 )
563				.css( 'display', 'flex' )
564				.css( 'opacity', 1 );
565		}
566	};
567	socialWarfare.hasReferencePanel = function () {
568		return (
569			typeof socialWarfare.panels.staticHorizontal !== 'undefined' &&
570			socialWarfare.panels.staticHorizontal.length > 0
571		);
572	};
573	socialWarfare.toggleFloatingHorizontalPanel = function () {
574		if ( ! socialWarfare.hasReferencePanel() ) {
575			return;
576		}
577		if ( ! socialWarfare.panels.floatingHorizontal ) {
578			return;
579		}
580		const panel = socialWarfare.panels.floatingHorizontal.first();
581		const location = socialWarfare.isMobile()
582			? $( panel ).data( 'float-mobile' )
583			: $( panel ).data( 'float' );
584		let newPadding =
585			location == 'bottom'
586				? socialWarfare.paddingBottom
587				: socialWarfare.paddingTop;
588		const paddingProp = 'padding-' + location;
589		if ( location == 'off' ) {
590			return;
591		}
592		if ( socialWarfare.staticPanelIsVisible() ) {
593			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).hide();
594			if ( socialWarfare.isMobile() && $( '#wpadminbar' ).length ) {
595				$( '#wpadminbar' ).css( 'top', 0 );
596			}
597		} else {
598			newPadding += 50;
599			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).show();
600			if (
601				socialWarfare.isMobile() &&
602				location == 'top' &&
603				$( '#wpadminbar' ).length
604			) {
605				$( '#wpadminbar' ).css( 'top', panel.parent().height() );
606			}
607		}
608		$( 'body' ).css( paddingProp, newPadding );
609	};
610	socialWarfare.positionFloatSidePanel = function () {
611		let panelHeight, windowHeight, offset;
612		const sidePanel = socialWarfare.panels.floatingSide;
613		if ( ! sidePanel || ! sidePanel.length ) {
614			return;
615		}
616		if (
617			sidePanel.hasClass( 'swp_side_top' ) ||
618			sidePanel.hasClass( 'swp_side_bottom' )
619		) {
620			return;
621		}
622		panelHeight = sidePanel.outerHeight();
623		windowHeight = window.innerHeight;
624		if ( panelHeight > windowHeight ) {
625			return sidePanel.css( 'top', 0 );
626		}
627		offset = ( windowHeight - panelHeight ) / 2;
628		sidePanel.css( 'top', offset );
629	};
630	socialWarfare.createHoverSaveButton = function () {
631		if ( $( '.tve_editor_page' ).length ) {
632			$( '.sw-pinit-button' ).remove();
633			$( '.sw-pinit' ).each( function () {
634				const inner_content = $( '.sw-pinit' ).contents();
635				$( this ).replaceWith( inner_content );
636			} );
637			return;
638		}
639		const button = $( document.createElement( 'a' ) );
640		button.css( 'display: none' );
641		button.addClass( 'swp-hover-pin-button' );
642		button.text( 'Save' );
643		socialWarfare.hoverSaveButton = $( button );
644		return button;
645	};
646	socialWarfare.triggerImageListeners = function () {
647		$( '.swp-content-locator' )
648			.parent()
649			.find( 'img' )
650			.off( 'mouseenter', socialWarfare.renderPinterestSaveButton );
651		$( '.swp-content-locator' )
652			.parent()
653			.find( 'img' )
654			.on( 'mouseenter', socialWarfare.renderPinterestSaveButton );
655		setTimeout( socialWarfare.triggerImageListeners, 2e3 );
656	};
657	socialWarfare.getPinMedia = function ( image ) {
658		if ( isString( swpPinIt.image_source ) ) {
659			return swpPinIt.image_source;
660		}
661		if ( isString( image.attr( 'src' ) ) ) {
662			return image.attr( 'src' );
663		}
664		const dataSources = [ 'src', 'lazy-src', 'media' ];
665		let media = '';
666		dataSources.some( function ( maybeSource ) {
667			if ( isString( image.data( maybeSource ) ) ) {
668				media = image.data( maybeSource );
669				return true;
670			}
671		} );
672		if ( media == '' ) {
673			return;
674		}
675		const i = $( '<img>' );
676		i.attr( 'src', media );
677		return i.prop( 'src' );
678	};
679	socialWarfare.getPinDescription = function ( image ) {
680		if ( isString( image.data( 'pin-description' ) ) ) {
681			return image.data( 'pin-description' );
682		}
683		if ( isString( swpPinIt.image_description ) ) {
684			return swpPinIt.image_description;
685		}
686		if ( isString( image.attr( 'title' ) ) ) {
687			return image.attr( 'title' );
688		}
689		if ( isString( image.attr( 'alt' ) ) ) {
690			return image.attr( 'alt' );
691		}
692		if ( isString( swpPinIt.post_title ) ) {
693			return swpPinIt.post_title;
694		}
695	};
696	socialWarfare.enablePinterestSaveButtons = function () {
697		jQuery( 'img' ).on( 'mouseenter', function () {
698			const pinterestBrowserButtons =
699				socialWarfare.findPinterestBrowserSaveButtons();
700			if (
701				typeof pinterestBrowserButtons !== 'undefined' &&
702				pinterestBrowserButtons
703			) {
704				socialWarfare.removePinterestBrowserSaveButtons(
705					pinterestBrowserButtons
706				);
707			}
708		} );
709	};
710	socialWarfare.toggleHoverSaveDisplay = function ( image ) {
711		let top = image.offset().top;
712		let left = image.offset().left;
713		const vMargin = 15;
714		const hMargin = 15;
715		const button_size = swpPinIt.button_size || 1;
716		const buttonHeight = 24;
717		const buttonWidth = 120;
718		switch ( swpPinIt.vLocation ) {
719			case 'top':
720				top += vMargin;
721				break;
722			case 'middle':
723				var offset =
724					image.height() / 2 - vMargin / 2 - buttonHeight / 2;
725				top += offset;
726				break;
727			case 'bottom':
728				top += image.height() - vMargin - buttonHeight;
729				break;
730		}
731		switch ( swpPinIt.hLocation ) {
732			case 'left':
733				left += hMargin;
734				break;
735			case 'center':
736				var offset = image.width() / 2 - hMargin / 2 - buttonWidth / 2;
737				left += offset;
738				break;
739			case 'right':
740				left += image.width() - hMargin - buttonWidth;
741				break;
742		}
743		socialWarfare.hoverSaveButton.css( {
744			top,
745			left,
746			transform: 'scale(' + button_size + ')',
747			'transform-origin': swpPinIt.vLocation + ' ' + swpPinIt.hLocation,
748		} );
749		image.on( 'mouseleave', function ( event ) {
750			if (
751				event.relatedTarget != null &&
752				event.relatedTarget.className == 'swp-hover-pin-button'
753			) {
754				return;
755			}
756			$( '.swp-hover-pin-button' ).remove();
757		} );
758		$( document.body ).append( socialWarfare.hoverSaveButton );
759	};
760	socialWarfare.renderPinterestSaveButton = function ( event ) {
761		if (
762			event.relatedTarget &&
763			event.relatedTarget.className == 'swp-hover-pin-button'
764		) {
765			return;
766		}
767		if ( $( '.swp-hover-pin-button' ).length > 0 ) {
768			return;
769		}
770		const image = $( event.target );
771		if (
772			typeof swpPinIt.disableOnAnchors !== undefined &&
773			swpPinIt.disableOnAnchors
774		) {
775			if ( image.parents().filter( 'a' ).length ) {
776				return;
777			}
778		}
779		if (
780			image.outerHeight() < swpPinIt.minHeight ||
781			image.outerWidth() < swpPinIt.minWidth
782		) {
783			return;
784		}
785		if ( image.hasClass( 'no_pin' ) || image.hasClass( 'no-pin' ) ) {
786			return;
787		}
788		socialWarfare.toggleHoverSaveDisplay( image );
789		const description = socialWarfare.getPinDescription( image );
790		const media = socialWarfare.getPinMedia( image );
791		const shareLink =
792			'http://pinterest.com/pin/create/bookmarklet/?media=' +
793			encodeURI( media ) +
794			'&url=' +
795			encodeURI( document.URL ) +
796			'&is_video=false' +
797			'&description=' +
798			encodeURIComponent( description );
799		function openPinterestDialogue( event ) {
800			const offsetLeft = ( $( window ).width() - 775 ) / 2;
801			const offsetTop = ( $( window ).height() - 550 ) / 2;
802			const position = ',top=' + offsetTop + ',left=' + offsetLeft;
803			window.open(
804				shareLink,
805				'Pinterest',
806				'width=775,height=550,status=0,toolbar=0,menubar=0,location=1,scrollbars=1' +
807					position
808			);
809			socialWarfare.trackClick( 'pin_image' );
810			$( '.swp-hover-pin-button' ).remove();
811		}
812		$( '.swp-hover-pin-button' ).on( 'click', openPinterestDialogue );
813	};
814	socialWarfare.findPinterestBrowserSaveButtons = function () {
815		let pinterestRed,
816			pinterestRed2019,
817			pinterestZIndex,
818			pinterestBackgroundSize,
819			button,
820			style;
821		pinterestRed = 'rgb(189, 8, 28)';
822		pinterestRed2019 = 'rgb(230, 0, 35)';
823		pinterestZIndex = '8675309';
824		pinterestBackgroundSize = '14px 14px';
825		button = null;
826		document
827			.querySelectorAll( 'span' )
828			.forEach( function ( element, index ) {
829				style = window.getComputedStyle( element );
830				if (
831					style.backgroundColor == pinterestRed ||
832					style.backgroundColor == pinterestRed2019
833				) {
834					if (
835						style.backgroundSize == pinterestBackgroundSize &&
836						style.zIndex == pinterestZIndex
837					) {
838						button = element;
839					}
840				}
841			} );
842		return button;
843	};
844	socialWarfare.removePinterestBrowserSaveButtons = function ( button ) {
845		let pinterestSquare, style, size;
846		pinterestSquare = button.nextSibling;
847		if (
848			pinterestSquare != undefined &&
849			pinterestSquare.nodeName == 'SPAN'
850		) {
851			style = window.getComputedStyle( pinterestSquare );
852			size = '24px';
853			if (
854				style.width.indexOf( size ) === 0 &&
855				style.height.indexOf( size ) === 0
856			) {
857				pinterestSquare.remove();
858			}
859		}
860		button.remove();
861	};
862	socialWarfare.fetchFacebookShares = function () {
863		const url1 =
864			'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
865			swp_post_url;
866		const url2 = swp_post_recovery_url
867			? 'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
868			  swp_post_recovery_url
869			: '';
870		console.log( 'Facebook Share API: ' + url1 );
871		console.log( 'Facebook Share API (recovery): ' + url2 );
872		$.when( $.get( url1 ), $.get( url2 ) ).then(
873			function ( response1, response2 ) {
874				var shares, shares1, shares2, data;
875				shares1 = socialWarfare.parseFacebookShares( response1[ 0 ] );
876				shares2 = 0;
877				if ( swp_post_recovery_url ) {
878					shares2 = socialWarfare.parseFacebookShares(
879						response2[ 0 ]
880					);
881				}
882				shares = shares1;
883				if ( shares1 !== shares2 ) {
884					shares = shares1 + shares2;
885				}
886				var data = {
887					action: 'swp_facebook_shares_update',
888					post_id: swp_post_id,
889					share_counts: shares,
890				};
891				$.post( swp_admin_ajax, data, function ( response ) {
892					console.log( response );
893				} );
894			}
895		);
896	};
897	socialWarfare.parseFacebookShares = function ( response ) {
898		if ( 'undefined' === typeof response.og_object ) {
899			console.log( 'Facebook Shares: 0' );
900			return 0;
901		}
902		console.log(
903			'Facebook Shares: ' + response.og_object.engagement.count
904		);
905		return parseInt( response.og_object.engagement.count );
906	};
907	socialWarfare.trigger = function ( event ) {
908		$( window ).trigger( $.Event( event ) );
909	};
910	socialWarfare.trackClick = function ( event ) {
911		if ( true === swpClickTracking ) {
912			if ( 'function' === typeof ga ) {
913				ga(
914					'send',
915					'event',
916					'social_media',
917					'swp_' + event + '_share'
918				);
919			}
920			if ( 'object' === typeof dataLayer ) {
921				dataLayer.push( { event: 'swp_' + event + '_share' } );
922			}
923		}
924	};
925	socialWarfare.checkListeners = function ( count, limit ) {
926		if ( count > limit ) {
927			return;
928		}
929		const panel = $( '.swp_social_panel' );
930		if ( panel.length > 0 && panel.find( '.swp_pinterest' ) ) {
931			socialWarfare.handleButtonClicks();
932			return;
933		}
934		setTimeout( function () {
935			socialWarfare.checkListeners( ++count, limit );
936		}, 2e3 );
937	};
938	socialWarfare.establishBreakpoint = function () {
939		const panel = $( '.swp_social_panel' );
940		socialWarfare.breakpoint = 1100;
941		if (
942			( panel.length && panel.data( 'min-width' ) ) ||
943			panel.data( 'min-width' ) == 0
944		) {
945			socialWarfare.breakpoint = parseInt( panel.data( 'min-width' ) );
946		}
947	};
948	socialWarfare.isMobile = function () {
949		return $( window ).width() < socialWarfare.breakpoint;
950	};
951	$( document ).ready( function () {
952		socialWarfare.initPlugin();
953		socialWarfare.panels.floatingSide.hide();
954		$( window ).on( 'resize', socialWarfare.onWindowResize );
955		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
956			socialWarfare.enablePinterestSaveButtons();
957		}
958	} );
959	$( window ).on( 'load', function () {
960		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
961			socialWarfare.enablePinterestSaveButtons();
962		}
963		window.clearCheckID = 0;
964	} );
965} )( this, jQuery );
966;
967/*! Created by Cloudways 
968 On 12-05-2026 */
969!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).LazyLoad=t()}(this,(function(){"use strict";const e="undefined"!=typeof window,t=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),a=e&&window.devicePixelRatio>1,n={elements_selector:".lazy",container:t||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},s=e=>Object.assign({},n,e),l=function(e,t){let a;const n="LazyLoad::Initialized",s=new e(t);try{a=new CustomEvent(n,{detail:{instance:s}})}catch(e){a=document.createEvent("CustomEvent"),a.initCustomEvent(n,!1,!1,{instance:s})}window.dispatchEvent(a)},o="src",r="srcset",i="sizes",d="poster",c="llOriginalAttrs",_="data",u="loading",g="loaded",b="applied",h="error",m="native",p="data-",f="ll-status",v=(e,t)=>
vendor: 4,425 bytes, line 969
969e.getAttribute(p+t),E=e=>v(e,f),I=(e,t)=>((e,t,a)=>{const n=p+t;null!==a?e.setAttribute(n,a):e.removeAttribute(n)})(e,f,t),y=e=>I(e,null),k=e=>null===E(e),A=e=>E(e)===m,L=[u,g,b,h],w=(e,t,a,n)=>{e&&"function"==typeof e&&(void 0===n?void 0===a?e(t):e(t,a):e(t,a,n))},x=(t,a)=>{e&&""!==a&&t.classList.add(a)},C=(t,a)=>{e&&""!==a&&t.classList.remove(a)},O=e=>e.llTempImage,M=(e,t)=>{if(!t)return;const a=t._observer;a&&a.unobserve(e)},z=(e,t)=>{e&&(e.loadingCount+=t)},N=(e,t)=>{e&&(e.toLoadCount=t)},T=e=>{let t=[];for(let a,n=0;a=e.children[n];n+=1)"SOURCE"===a.tagName&&t.push(a);return t},R=(e,t)=>{const a=e.parentNode;a&&"PICTURE"===a.tagName&&T(a).forEach(t)},G=(e,t)=>{T(e).forEach(t)},D=[o],H=[o,d],V=[o,r,i],F=[_],j=e=>!!e[c],B=e=>e[c],J=e=>delete e[c],S=(e,t)=>{if(j(e))return;const a={};t.forEach((t=>{a[t]=e.getAttribute(t)})),e[c]=a},P=(e,t)=>{if(!j(e))return;const a=B(e);t.forEach((t=>{((e,t,a)=>{a?e.setAttribute(t,a):e.removeAttribute(t)})(e,t,a[t])}))},U=(e,t,a)=>{x(e,t.class_applied),I(e,b),a&&(t.unobserve_completed&&M(e,t),w(t.callback_applied,e,a))},$=(e,t,a)=>{x(e,t.class_loading),I(e,u),a&&(z(a,1),w(t.callback_loading,e,a))},q=(e,t,a)=>{a&&e.setAttribute(t,a)},K=(e,t)=>{q(e,i,v(e,t.data_sizes)),q(e,r,v(e,t.data_srcset)),q(e,o,v(e,t.data_src))},Q={IMG:(e,t)=>{R(e,(e=>{S(e,V),K(e,t)})),S(e,V),K(e,t)},IFRAME:(e,t)=>{S(e,D),q(e,o,v(e,t.data_src))},VIDEO:(e,t)=>{G(e,(e=>{S(e,D),q(e,o,v(e,t.data_src))})),S(e,H),q(e,d,v(e,t.data_poster)),q(e,o,v(e,t.data_src)),e.load()},OBJECT:(e,t)=>{S(e,F),q(e,_,v(e,t.data_src))}},W=["IMG","IFRAME","VIDEO","OBJECT"],X=(e,t)=>{!t||(e=>e.loadingCount>0)(t)||(e=>e.toLoadCount>0)(t)||w(e.callback_finish,t)},Y=(e,t,a)=>{e.addEventListener(t,a),e.llEvLisnrs[t]=a},Z=(e,t,a)=>{e.removeEventListener(t,a)},ee=e=>!!e.llEvLisnrs,te=e=>{if(!ee(e))return;const t=e.llEvLisnrs;for(let a in t){const n=t[a];Z(e,a,n)}delete e.llEvLisnrs},ae=(e,t,a)=>{(e=>{delete e.llTempImage})(e),z(a,-1),(e=>{e&&(e.toLoadCount-=1)})(a),C(e,t.class_loading),t.unobserve_completed&&M(e,a)},ne=(e,t,a)=>{const n=O(e)||e;ee(n)||((e,t,a)=>{ee(e)||(e.llEvLisnrs={});const n="VIDEO"===e.tagName?"loadeddata":"load";Y(e,n,t),Y(e,"error",a)})(n,(s=>{((e,t,a,n)=>{const s=A(t);ae(t,a,n),x(t,a.class_loaded),I(t,g),w(a.callback_loaded,t,n),s||X(a,n)})(0,e,t,a),te(n)}),(s=>{((e,t,a,n)=>{const s=A(t);ae(t,a,n),x(t,a.class_error),I(t,h),w(a.callback_error,t,n),a.restore_on_error&&P(t,V),s||X(a,n)})(0,e,t,a),te(n)}))},se=(e,t,n)=>{(e=>W.indexOf(e.tagName)>-1)(e)?((e,t,a)=>{ne(e,t,a),((e,t,a)=>{const n=Q[e.tagName];n&&(n(e,t),$(e,t,a))})(e,t,a)})(e,t,n):((e,t,n)=>{(e=>{e.llTempImage=document.createElement("IMG")})(e),ne(e,t,n),(e=>{j(e)||(e[c]={backgroundImage:e.style.backgroundImage})})(e),((e,t,n)=>{const s=v(e,t.data_bg),l=v(e,t.data_bg_hidpi),r=a&&l?l:s;r&&(e.style.backgroundImage=`url("${r}")`,O(e).setAttribute(o,r),$(e,t,n))})(e,t,n),((e,t,n)=>{const s=v(e,t.data_bg_multi),l=v(e,t.data_bg_multi_hidpi),o=a&&l?l:s;o&&(e.style.backgroundImage=o,U(e,t,n))})(e,t,n),((e,t,a)=>{const n=v(e,t.data_bg_set);if(!n)return;let s=n.split("|").map((e=>`image-set(${e})`));e.style.backgroundImage=s.join(),U(e,t,a)})(e,t,n)})(e,t,n)},le=e=>{e.removeAttribute(o),e.removeAttribute(r),e.removeAttribute(i)},oe=e=>{R(e,(e=>{P(e,V)})),P(e,V)},re={IMG:oe,IFRAME:e=>{P(e,D)},VIDEO:e=>{G(e,(e=>{P(e,D)})),P(e,H),e.load()},OBJECT:e=>{P(e,F)}},ie=(e,t)=>{(e=>{const t=re[e.tagName];t?t(e):(e=>{if(!j(e))return;const t=B(e);e.style.backgroundImage=t.backgroundImage})(e)})(e),((e,t)=>{k(e)||A(e)||(C(e,t.class_entered),C(e,t.class_exited),C(e,t.class_applied),C(e,t.class_loading),C(e,t.class_loaded),C(e,t.class_error))})(e,t),y(e),J(e)},de=["IMG","IFRAME","VIDEO"],ce=e=>e.use_native&&"loading"in HTMLImageElement.prototype,_e=(e,t,a)=>{e.forEach((e=>(e=>e.isIntersecting||e.intersectionRatio>0)(e)?((e,t,a,n)=>{const s=(e=>L.indexOf(E(e))>=0)(e);I(e,"entered"),x(e,a.class_entered),C(e,a.class_exited),((e,t,a)=>{t.unobserve_entered&&M(e,a)})(e,a,n),w(a.callback_enter,e,t,n),s||se(e,a,n)})(e.target,e,t,a):((e,t,a,n)=>{k(e)||(x(e,a.class_exited),((e,t,a,n)=>{a.cancel_on_exit&&(e=>E(e)===u)(e)&&"IMG"===e.tagName&&(te(e),(e=>{R(e,(e=>{le(e)})),le(e)})(e),oe(e),C(e,a.class_loading),z(n,-1),y(e),w(a.callback_cancel,e,t,n))})(e,t,a,n),w(a.callback_exit,e,t,n))})(e.target,e,t,a)))},ue=e=>Array.prototype.slice.call(e),ge=e=>e.container.querySelectorAll(e.elements_selector),be=e=>(e=>E(e)===h)(e),he=(e,t)=>
vendor: 1,888 bytes, lines 969-971
969(e=>ue(e).filter(k))(e||ge(t)),me=function(t,a){const n=s(t);this._settings=n,this.loadingCount=0,((e,t)=>{ce(e)||(t._observer=new IntersectionObserver((a=>{_e(a,e,t)}),(e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}))(e)))})(n,this),((t,a)=>{e&&(a._onlineHandler=()=>{((e,t)=>{var a;(a=ge(e),ue(a).filter(be)).forEach((t=>{C(t,e.class_error),y(t)})),t.update()})(t,a)},window.addEventListener("online",a._onlineHandler))})(n,this),this.update(a)};return me.prototype={update:function(e){const a=this._settings,n=he(e,a);var s,l;N(this,n.length),t?this.loadAll(n):ce(a)?((e,t,a)=>{e.forEach((e=>{-1!==de.indexOf(e.tagName)&&((e,t,a)=>{e.setAttribute("loading","lazy"),ne(e,t,a),((e,t)=>{const a=Q[e.tagName];a&&a(e,t)})(e,t),I(e,m)})(e,t,a)})),N(a,0)})(n,a,this):(l=n,(e=>{e.disconnect()})(s=this._observer),((e,t)=>{t.forEach((t=>{e.observe(t)}))})(s,l))},destroy:function(){this._observer&&this._observer.disconnect(),e&&window.removeEventListener("online",this._onlineHandler),ge(this._settings).forEach((e=>{J(e)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){const t=this._settings;he(e,t).forEach((e=>{M(e,this),se(e,t,this)}))},restoreAll:function(){const e=this._settings;ge(e).forEach((t=>{ie(t,e)}))}},me.load=(e,t)=>{const a=s(t);se(e,a)},me.resetStatus=e=>{y(e)},e&&((e,t)=>{if(t)if(t.length)for(let a,n=0;a=t[n];n+=1)l(e,a);else l(e,t)})(me,window.lazyLoadOptions),me}));
970document.addEventListener("DOMContentLoaded",function(){if("function"!==typeof window.LazyLoad&&"function"!==typeof LazyLoad){return;}
971var breezeLazyLoad=window.LazyLoad||LazyLoad;window.lazyLoadInstance=new breezeLazyLoad({elements_selector:".br-lazy",data_src:"breeze",data_srcset:"brsrcset",data_sizes:"brsizes",class_loaded:"br-loaded",threshold:300,});});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.