diff --git a/README.txt b/README.txt index 80f47aa..c5bf0da 100755 --- a/README.txt +++ b/README.txt @@ -4,8 +4,8 @@ Donate link: https://connekthq.com/donate/ Tags: infinite scroll, load more, ajax, lazy load, endless scroll, infinite scrolling, lazy loading, pagination, ajax, ajax posts, woocommerce, ajax load more, masonry Requires at least: 4.4 Requires PHP: 5.6 -Tested up to: 6.2 -Stable tag: 6.1.0 +Tested up to: 6.3 +Stable tag: 6.1.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -261,6 +261,11 @@ How to install Ajax Load More. == Changelog == += 6.1.0.1 - August 8, 2023 = +* HOTFIX: Fixed issue with querying data using `custom_args` parameter. +* HOTFIX: Fixed issue with querying data using the `vars` parameter. + + = 6.1.0 - July 27, 2023 = UPGRADE NOTICE: diff --git a/ajax-load-more.php b/ajax-load-more.php index 48b1e19..58abc12 100755 --- a/ajax-load-more.php +++ b/ajax-load-more.php @@ -7,15 +7,15 @@ * Author: Darren Cooney * Twitter: @KaptonKaos * Author URI: https://connekthq.com - * Version: 6.1.0 + * Version: 6.1.0.1 * License: GPL * Copyright: Darren Cooney & Connekt Media * * @package AjaxLoadMore */ -define( 'ALM_VERSION', '6.1.0' ); -define( 'ALM_RELEASE', 'July 27, 2023' ); +define( 'ALM_VERSION', '6.1.0.1' ); +define( 'ALM_RELEASE', 'August 8, 2023' ); define( 'ALM_STORE_URL', 'https://connekthq.com' ); // Plugin installation helpers. diff --git a/build/frontend/ajax-load-more.asset.php b/build/frontend/ajax-load-more.asset.php index c195286..34949d7 100644 --- a/build/frontend/ajax-load-more.asset.php +++ b/build/frontend/ajax-load-more.asset.php @@ -1 +1 @@ - array(), 'version' => '863cbd1c16fa79a0756a'); + array(), 'version' => '62c50fe52f368748a828'); diff --git a/build/frontend/ajax-load-more.js b/build/frontend/ajax-load-more.js index 6e17e3d..9eee0b9 100644 --- a/build/frontend/ajax-load-more.js +++ b/build/frontend/ajax-load-more.js @@ -10036,10 +10036,10 @@ function getAjaxParams(alm, queryType) { data.search = alm.listing.dataset.s; } if (alm.listing.dataset.customArgs) { - data.custom_args = escape(alm.listing.dataset.customArgs); + data.custom_args = alm.listing.dataset.customArgs; } if (alm.listing.dataset.vars) { - data.vars = escape(alm.listing.dataset.vars); + data.vars = alm.listing.dataset.vars; } // Cache Params diff --git a/build/frontend/ajax-load-more.min.asset.php b/build/frontend/ajax-load-more.min.asset.php index 7d30fa3..78546d5 100644 --- a/build/frontend/ajax-load-more.min.asset.php +++ b/build/frontend/ajax-load-more.min.asset.php @@ -1 +1 @@ - array(), 'version' => 'd48f8f3bca8a99dafb76'); + array(), 'version' => 'e330a002714ea05a2da3'); diff --git a/build/frontend/ajax-load-more.min.js b/build/frontend/ajax-load-more.min.js index 6f6b29b..fd9694c 100644 --- a/build/frontend/ajax-load-more.min.js +++ b/build/frontend/ajax-load-more.min.js @@ -3,4 +3,4 @@ var ajaxloadmore;!function(){var e={924:function(e,t,n){"use strict";var o=n(210 * imagesLoaded v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License - */!function(a,s){"use strict";o=[n(158)],r=function(e){return function(e,t){var n=e.jQuery,o=e.console;function r(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function s(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?a.call(e):[e]}function i(e,t,a){if(!(this instanceof i))return new i(e,t,a);var l=e;"string"==typeof e&&(l=document.querySelectorAll(e)),l?(this.elements=s(l),this.options=r({},this.options),"function"==typeof t?a=t:r(this.options,t),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(l||e))}i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),o=0;o-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-E(-e):E(e);if(o!==e){var r=String(o),a=_.call(t,r.length+1);return b.call(r,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(654),k=N.custom,F=z(k)?k:null;function q(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function D(e){return b.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==$(e)||M&&"object"==typeof e&&M in e)}function U(e){return!("[object RegExp]"!==$(e)||M&&"object"==typeof e&&M in e)}function z(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,r){var i=n||{};if(W(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!W(i,"customInspect")||i.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?R(t,w):w}if("bigint"==typeof t){var x=String(t)+"n";return m?R(t,x):x}var E=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=E&&E>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(i,o);if(void 0===r)r=[];else if(V(r,t)>=0)return"[Circular]";function k(t,n,a){if(n&&(r=j.call(r)).push(n),a){var s={depth:i.depth};return W(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,r)}return e(t,i,o+1,r)}if("function"==typeof t&&!U(t)){var H=function(e){if(e.name)return e.name;var t=h.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),J=Z(t,k);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(J.length>0?" { "+S.call(J,", ")+" }":"")}if(z(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||T?ee:Q(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+v.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe"}if(B(t)){if(0===t.length)return"[]";var re=Z(t,k);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(re)?"["+X(re,L)+"]":"[ "+S.call(re,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||M&&"object"==typeof e&&M in e)}(t)){var ae=Z(t,k);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(A.call("[cause]: "+k(t.cause),ae),", ")+" }"}if("object"==typeof t&&l){if(F&&"function"==typeof t[F]&&N)return N(t,{depth:E-o});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,(function(e,n){se.push(k(n,t,!0)+" => "+k(e,t))})),Y("Map",a.call(t),se,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ie=[];return d&&d.call(t,(function(e){ie.push(k(e,t))})),Y("Set",c.call(t),ie,L)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(k(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return Q(k(P.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(g.call(t));if(function(e){return!("[object String]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(k(String(t)));if(!function(e){return!("[object Date]"!==$(e)||M&&"object"==typeof e&&M in e)}(t)&&!U(t)){var le=Z(t,k),ce=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",pe=!ce&&M&&Object(t)===t&&M in t?_.call($(t),8,-1):de?"Object":"",ue=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||de?"["+S.call(A.call([],pe||[],de||[]),": ")+"] ":"");return 0===le.length?ue+"{}":L?ue+"{"+X(le,L)+"}":ue+"{ "+S.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function $(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return G(_.call(e,0,t.maxStringLength),t)+o}return q(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Y(e,t,n,o){return e+" ("+t+") {"+(o?X(n,o):S.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=B(e),o=[];if(n){o.length=e.length;for(var r=0;r-1?e.split(","):e},c=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=i?a.slice(0,i.index):a,d=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var p=0;n.depth>0&&null!==(i=s.exec(a))&&p=0;--a){var s,i=e[a];if("[]"===i&&n.parseArrays)s=[].concat(r);else{s=n.plainObjects?Object.create(null):{};var c="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,d=parseInt(c,10);n.parseArrays||""!==c?!isNaN(d)&&i!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[])[d]=r:"__proto__"!==c&&(s[c]=r):s={0:r}}r=s}return r}(d,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var d="string"==typeof e?function(e,t){var n,c={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=d.split(t.delimiter,p),f=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(y=a(y)?[y]:y),r.call(c,m)?c[m]=o.combine(c[m],y):c[m]=y}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},u=Object.keys(d),f=0;f0?S.join(",")||null:void 0}];else if(l(u))O=u;else{var M=Object.keys(S);O=m?M.sort(m):M}for(var I=s&&l(S)&&1===S.length?n+"[]":n,C=0;C0?v+w:""}},769:function(e,t,n){"use strict";var o=n(798),r=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var o=[],r=0;r=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===o.RFC1738&&(40===d||41===d)?l+=i.charAt(c):d<128?l+=s[d]:d<2048?l+=s[192|d>>6]+s[128|63&d]:d<55296||d>=57344?l+=s[224|d>>12]+s[128|d>>6&63]+s[128|63&d]:(c+=1,d=65536+((1023&d)<<10|1023&i.charCodeAt(c)),l+=s[240|d>>18]+s[128|d>>12&63]+s[128|d>>6&63]+s[128|63&d])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],o=0;o0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},503:function(){var e,t,n,o;Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,o=new Array(n);n--;)o[n]=[t[n],e[t[n]]];return o}),void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,o=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},function(e){var n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,i=o(n.length),l=t(this)?Object(new this(i)):new Array(i),c=0;c{const n=t.call(e);return s[n]||(s[n]=n.slice(8,-1).toLowerCase())});var s;const i=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:c}=Array,d=l("undefined");const p=i("ArrayBuffer");const u=l("string"),f=l("function"),g=l("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=i("Date"),_=i("File"),b=i("Blob"),w=i("FileList"),v=i("URLSearchParams");function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),c(e))for(o=0,r=e.length;o0;)if(o=n[r],t===o.toLowerCase())return o;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!d(e)&&e!==S;const E=(P="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>P&&e instanceof P);var P;const L=i("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T=i("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};x(n,((n,r)=>{!1!==t(n,r,e)&&(o[r]=n)})),Object.defineProperties(e,o)},I="abcdefghijklmnopqrstuvwxyz",C="0123456789",R={DIGIT:C,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+C};const N=i("AsyncFunction");var k={isArray:c,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=a(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:u,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isUndefined:d,isDate:h,isFile:_,isBlob:b,isRegExp:T,isFunction:f,isStream:e=>m(e)&&f(e.pipe),isURLSearchParams:v,isTypedArray:E,isFileList:w,forEach:x,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},o=(o,r)=>{const a=t&&A(n,r)||r;y(n[a])&&y(o)?n[a]=e(n[a],o):y(o)?n[a]=e({},o):c(o)?n[a]=o.slice():n[a]=o};for(let e=0,t=arguments.length;e(x(n,((n,r)=>{o&&f(n)?t[r]=e(n,o):t[r]=n}),{allOwnKeys:r}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,s,i;const l={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],o&&!o(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:i,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:L,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];f(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:A,global:S,isContextDefined:j,ALPHABET:R,generateString:(e=16,t=R.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=c(e)?[]:{};return x(e,((e,t)=>{const a=n(e,o+1);!d(a)&&(r[t]=a)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:N,isThenable:e=>e&&(m(e)||f(e))&&f(e.then)&&f(e.catch)};function F(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}k.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const q=F.prototype,D={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{D[e]={value:e}})),Object.defineProperties(F,D),Object.defineProperty(q,"isAxiosError",{value:!0}),F.from=(e,t,n,o,r,a)=>{const s=Object.create(q);return k.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),F.call(s,e.message,t,n,o,r),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};var B=F;function U(e){return k.isPlainObject(e)||k.isArray(e)}function z(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function H(e,t,n){return e?e.concat(t).map((function(e,t){return e=z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=k.toFlatObject(k,{},null,(function(e){return/^is[A-Z]/.test(e)}));var $=function(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!k.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,a=n.dots,s=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(k.isDate(e))return e.toISOString();if(!i&&k.isBlob(e))throw new B("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(e)||k.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let i=e;if(e&&!r&&"object"==typeof e)if(k.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(k.isArray(e)&&function(e){return k.isArray(e)&&!e.some(U)}(e)||(k.isFileList(e)||k.endsWith(n,"[]"))&&(i=k.toArray(e)))return n=z(n),i.forEach((function(e,o){!k.isUndefined(e)&&null!==e&&t.append(!0===s?H([n],o,a):null===s?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(H(r,n,a),l(e)),!1)}const d=[],p=Object.assign(W,{defaultVisitor:c,convertValue:l,isVisitable:U});if(!k.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!k.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),k.forEach(n,(function(n,a){!0===(!(k.isUndefined(n)||null===n)&&r.call(t,n,k.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a])})),d.pop()}}(e),t};function V(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function G(e,t){this._pairs=[],e&&$(e,this,t)}const J=G.prototype;J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,V)}:V;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q=G;function K(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const o=n&&n.encode||K,r=n&&n.serialize;let a;if(a=r?r(t,n):k.isURLSearchParams(t)?t.toString():new Q(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var X=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){k.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var te=function(e){function t(e,n,o,r){let a=e[r++];const s=Number.isFinite(+a),i=r>=e.length;if(a=!a&&k.isArray(o)?o.length:a,i)return k.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s;o[a]&&k.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&k.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o{t(function(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null};const ne={"Content-Type":void 0};const oe={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=k.isObject(e);r&&k.isHTMLForm(e)&&(e=new FormData(e));if(k.isFormData(e))return o&&o?JSON.stringify(te(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return ee.isNode&&k.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=k.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&k.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw B.from(e,B.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],(function(e){oe.headers[e]={}})),k.forEach(["post","put","patch"],(function(e){oe.headers[e]=k.merge(ne)}));var re=oe;const ae=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const se=Symbol("internals");function ie(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:k.isArray(e)?e.map(le):String(e)}function ce(e,t,n,o,r){return k.isFunction(o)?o.call(this,t,n):(r&&(t=n),k.isString(t)?k.isString(o)?-1!==t.indexOf(o):k.isRegExp(o)?o.test(t):void 0:void 0)}class de{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=ie(t);if(!r)throw new Error("header name must be a non-empty string");const a=k.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=le(e))}const a=(e,t)=>k.forEach(e,((e,n)=>r(e,n,t)));return k.isPlainObject(e)||e instanceof this.constructor?a(e,t):k.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&ae[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=ie(e)){const n=k.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(k.isFunction(t))return t.call(this,e,n);if(k.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ie(e)){const n=k.findKey(this,e);return!(!n||void 0===this[n]||t&&!ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=ie(e)){const r=k.findKey(n,e);!r||t&&!ce(0,n[r],r,t)||(delete n[r],o=!0)}}return k.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!ce(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return k.forEach(this,((o,r)=>{const a=k.findKey(n,r);if(a)return t[a]=le(o),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();s!==r&&delete t[r],t[s]=le(o),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return k.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&k.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[se]=this[se]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=ie(e);t[o]||(!function(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return k.isArray(e)?e.forEach(o):o(e),this}}de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.freezeMethods(de.prototype),k.freezeMethods(de);var pe=de;function ue(e,t){const n=this||re,o=t||n,r=pe.from(o.headers);let a=o.data;return k.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function fe(e){return!(!e||!e.__CANCEL__)}function ge(e,t,n){B.call(this,null==e?"canceled":e,B.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(ge,B,{__CANCEL__:!0});var me=ge;var ye=ee.isStandardBrowserEnv?{write:function(e,t,n,o,r,a){const s=[];s.push(e+"="+encodeURIComponent(t)),k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(o)&&s.push("path="+o),k.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function he(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var _e=ee.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let o=n;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=k.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};var be=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=o[s];r||(r=l),n[a]=i,o[a]=l;let d=s,p=0;for(;d!==a;)p+=n[d++],d%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-r{const a=r.loaded,s=r.lengthComputable?r.total:void 0,i=a-n,l=o(i);n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const ve={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const r=pe.from(e.headers).normalize(),a=e.responseType;let s;function i(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}k.isFormData(o)&&(ee.isStandardBrowserEnv||ee.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const c=he(e.baseURL,e.url);function d(){if(!l)return;const o=pe.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),i()}),(function(e){n(e),i()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:o,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Y(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new B("Request aborted",B.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new B("Network Error",B.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new B(t,o.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,l)),l=null},ee.isStandardBrowserEnv){const t=(e.withCredentials||_e(c))&&e.xsrfCookieName&&ye.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===o&&r.setContentType(null),"setRequestHeader"in l&&k.forEach(r.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),k.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",we(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",we(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new me(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);p&&-1===ee.protocols.indexOf(p)?n(new B("Unsupported protocol "+p+":",B.ERR_BAD_REQUEST,e)):l.send(o||null)}))}};k.forEach(ve,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var xe=e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let r=0;re instanceof pe?e.toJSON():e;function Ee(e,t){t=t||{};const n={};function o(e,t,n){return k.isPlainObject(e)&&k.isPlainObject(t)?k.merge.call({caseless:n},e,t):k.isPlainObject(t)?k.merge({},t):k.isArray(t)?t.slice():t}function r(e,t,n){return k.isUndefined(t)?k.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function a(e,t){if(!k.isUndefined(t))return o(void 0,t)}function s(e,t){return k.isUndefined(t)?k.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function i(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>r(je(e),je(t),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=l[o]||r,s=a(e[o],t[o],o);k.isUndefined(s)&&a!==i||(n[o]=s)})),n}const Pe="1.4.0",Le={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Le[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Oe={};Le.transitional=function(e,t,n){function o(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new B(o(r," has been removed"+(t?" in "+t:"")),B.ERR_DEPRECATED);return t&&!Oe[r]&&(Oe[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};var Te={assertOptions:function(e,t,n){if("object"!=typeof e)throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new B("option "+a+" must be "+n,B.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new B("Unknown option "+a,B.ERR_BAD_OPTION)}},validators:Le};const Me=Te.validators;class Ie{constructor(e){this.defaults=e,this.interceptors={request:new X,response:new X}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ee(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;let a;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),null!=o&&(k.isFunction(o)?t.paramsSerializer={serialize:o}:Te.assertOptions(o,{encode:Me.function,serialize:Me.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),a=r&&k.merge(r.common,r[t.method]),a&&k.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=pe.concat(a,r);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,p=0;if(!i){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new me(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Re((function(t){e=t})),cancel:e}}}var Ne=Re;const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach((([e,t])=>{ke[t]=e}));var Fe=ke;const qe=function t(n){const o=new Ce(n),r=e(Ce.prototype.request,o);return k.extend(r,Ce.prototype,o,{allOwnKeys:!0}),k.extend(r,o,null,{allOwnKeys:!0}),r.create=function(e){return t(Ee(n,e))},r}(re);qe.Axios=Ce,qe.CanceledError=me,qe.CancelToken=Ne,qe.isCancel=fe,qe.VERSION=Pe,qe.toFormData=$,qe.AxiosError=B,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=function(e){return function(t){return e.apply(null,t)}},qe.isAxiosError=function(e){return k.isObject(e)&&!0===e.isAxiosError},qe.mergeConfig=Ee,qe.AxiosHeaders=pe,qe.formToJSON=e=>te(k.isHTMLForm(e)?new FormData(e):e),qe.HttpStatusCode=Fe,qe.default=qe;var De=qe,Be=n(214),Ue=n.n(Be);const{rest_api:ze,rest_nonce:He}=alm_localize,We=De.create({baseURL:ze,headers:{"content-type":"application/json","X-WP-Nonce":He}});async function $e(e,t,n){const{html:o="",meta:r={}}=t;if(!o||!e.addons.cache)return;const a={cache_id:e.addons.cache_id,cache_logged_in:e.addons.cache_logged_in,canonical_url:e.canonical_url,name:n,html:o.trim(),postcount:r.postcount,totalposts:r.totalposts},s=await We.post("ajax-load-more/cache/create",a);200===s.status&&s.data&&s.data.success&&console.log(s.data.msg)}function Ve(e,t,n){e&&(e.rel&&"prev"===e.rel&&(e.href=n),e.dataset.page=t,e.dataset.url=n||"")}function Ge(e){e&&e.lazy_images&&Je(e.el)}function Je(e){const t=e.getElementsByTagName("img");t&&Array.prototype.forEach.call(t,(e=>{e&&function(e){e&&(e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.dataset.ctLazy&&(e.src=e.dataset.ctLazy),e.dataset.ctLazySet&&(e.srcset=e.dataset.ctLazySet))}(e)}))}function Qe(e=null,t=""){if(!e)return!1;if(t.indexOf("Safari")>-1&&-1!==t.indexOf("Chrome")||t.indexOf("Firefox")>-1||t.indexOf("Windows")>-1)return!1;const n=e.querySelectorAll("img[srcset]:not(.alm-loaded)");for(let e=0;e{if(!alm_localize.a11y_focus)return!1;e.addons.woocommerce||e.addons.elementor?Xe(!1,!1,t,!1):e.transition_container&&n>0?e.addons.paging?Xe(e.init,e.addons.preloaded,e.listing,o):e.addons.single_post||e.addons.nextpage?Xe(!1,e.addons.preloaded,t,o):Xe(e.init,e.addons.preloaded,t,o):e.transition_container||Xe(e.init,e.addons.preloaded,t[0],o)};const Xe=(e=!0,t="false",n,o=!1)=>{if(!o&&(e||!n)&&"true"!==t)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";const r=(n.classList.contains("alm-listing")?n:n.parentNode).dataset.scrollContainer;if(r){document.querySelector(r)&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)};function Ze(e,t,n,o=!0){return new Promise((r=>{const{rel:a="next"}=n,s=t.length;let i=0,l=1;t="prev"===a?t.reverse():t,function c(){l<=s?async function(){t[i].style.opacity=0,await function(e,t,n,o="next",r=!0){function a(){"prev"===o?e.insertBefore(t,e.childNodes[0]):e.appendChild(t),Je(t),Qe(t,n)}return new Promise((e=>{t.style.transition="all 0.25s ease",r?Ke(t,(function(){a(),e(!0)})):(a(),e(!0))}))}(e,t[i],n.ua,a,o),l++,i++,c()}().catch((()=>{console.warn("There was an error loading the items.")})):(setTimeout((function(){if(t.map((function(e){return e.style.opacity=1,e})),t[0]){const e="prev"===a?t[t.length-1]:t[0];Ye(n,e,null,!1)}}),25),r(!0))}()}))}function et(e){return e.addons.elementor_type="posts",e.addons.elementor_settings=JSON.parse(e.listing.dataset.elementorSettings),e.addons.elementor_target=e.addons.elementor_settings.target,e.addons.elementor_element=e.addons.elementor_settings.target?document.querySelector(`.elementor-element ${e.addons.elementor_settings.target}`):"",e.addons.elementor_widget=function(e){if(!e)return!1;return e.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(e.addons.elementor_element),(e=function(e,t="posts"){return e.addons.elementor_container_class="woocommerce"===t?e.addons.elementor_settings.woo_container_class:e.addons.elementor_settings.posts_container_class,e.addons.elementor_item_class="woocommerce"===t?e.addons.elementor_settings.woo_item_class:e.addons.elementor_settings.posts_item_class,e.addons.elementor_pagination_class="woocommerce"===t?`.${e.addons.elementor_settings.woo_pagination_class}`:`.${e.addons.elementor_settings.posts_pagination_class}`,e}(e,e.addons.elementor_widget)).addons.elementor_pagination=e.addons.elementor_element.querySelector(e.addons.elementor_pagination_class)||e.addons.elementor_element.querySelector(`.${e.addons.elementor_settings.pagination_class}`),e.addons.elementor_pagination=!!e.addons.elementor_pagination&&e.addons.elementor_pagination,e.addons.elementor_controls=e.addons.elementor_settings.controls,e.addons.elementor_controls="true"===e.addons.elementor_controls,e.addons.elementor_scrolltop=parseInt(e.addons.elementor_settings.scrolltop),e.addons.elementor_next_page=nt(e.addons.elementor_pagination),e.addons.elementor_max_pages=e.addons.elementor_element.querySelector(".e-load-more-anchor"),e.addons.elementor_max_pages=e.addons.elementor_max_pages?parseInt(e.addons.elementor_max_pages.dataset.maxPage):999,e.addons.elementor_paged=e.addons.elementor_settings.paged?parseInt(e.addons.elementor_settings.paged):1,e.page=parseInt(e.page)+e.addons.elementor_paged,(e=function(e){if(!e.addons.elementor_element)return e;const t=e.addons.elementor_element,n=t.dataset.settings?JSON.parse(t.dataset.settings):"";if(!n)return e;e.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),e.addons.elementor_masonry&&(e.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),e.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),e.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),e.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return e}(e)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?"),e.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?"),e}function tt(e,t,n){const o=[],r=e.addons.elementor_masonry_columns,a=e.addons.elementor_masonry_columns_tablet,s=e.addons.elementor_masonry_columns_mobile,i=e.addons.elementor_masonry_gap;let l=r;const c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,d=window.innerWidth;l=d>c.lg?r:d>c.md?a:s;const p=document.querySelector(t);if(!p)return!1;const u=p.querySelectorAll(n);if(!u)return!1;u.forEach(((e,t)=>{const n=Math.floor(t/l),r=e.getBoundingClientRect().height+i;if(n){const n=jQuery(e).position(),a=t%l;let s=Math.round(n.top)-o[a];s*=-1,e.style.marginTop=`${Math.round(s)}px`,o[a]+=r}else o.push(r)}))}function nt(e){return e&&e.querySelector("a.next")?e.querySelector("a.next").href:""}var ot=function(e){const t=window.location.search.substring(1).split("&");for(let n=0;n1?o=o?ot("pg")?t.replace(/(pg=)[^\&]+/,"$1"+n):t+"&pg="+n:"?pg="+n:(o=t.replace(/(pg=)[^\&]+/,""),o="?"===o?"":o,o="&"===o[o.length-1]?o.slice(0,-1):o)),o}function st(e,t,n,o){if(t.classList.add(rt),t.dataset.page=o,o>1)t.dataset.url=e.canonical_url+at(e,n,o);else{let o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,t.dataset.url=e.canonical_url+o}return t}function it(e,t,n,o,r){return t.classList.add(o),t.dataset.page=r,"default"===e.addons.seo_permalink?t.dataset.url=r>1?e.canonical_url+n+"&paged="+r:e.canonical_url+n:t.dataset.url=r>1?e.canonical_url+e.addons.seo_leading_slash+"page/"+r+e.addons.seo_trailing_slash+n:e.canonical_url+n,t}function lt(e,t,n,o,r){return t.setAttribute("class","alm-reveal"+o+e.tcc),t.dataset.page=r,"default"===e.addons.seo_permalink?t.dataset.url=r>1?e.canonical_url+n+"&paged="+r:e.canonical_url+n:t.dataset.url=r>1?e.canonical_url+e.addons.seo_leading_slash+"page/"+r+e.addons.seo_trailing_slash+n:e.canonical_url+n,t}function ct(e,t){return"true"===e?parseInt(t)+1:t}function dt(e,t,n){const o={html:"",meta:{postcount:0,totalposts:0}},{single_post_target:r}=e.addons;if(200===t.status&&t.data&&r){const a=document.createElement("div");a.innerHTML=t.data;const s=a.querySelector(r);if(!s)return console.warn(`Ajax Load More: Unable to find ${r} element.`),o;const i=window&&window.almSinglePostsCustomElements;i&&s.appendChild(function(e="",t=[]){const n=document.createElement("div");if(n.classList.add("alm-custom-elements"),!e||!t)return n;t=Array.isArray(t)?t:[t];for(let o=0;o1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),e.listing.removeAttribute("aria-live"),e.listing.removeAttribute("aria-atomic");const r=n.querySelector(e.addons.woocommerce_settings.products);if(r?(r.classList.add("alm-woocommerce"),r.dataset.url=e.addons.woocommerce_settings.paged_urls[e.addons.woocommerce_settings.paged-1],r.dataset.page=e.page,r.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),o>1&&e.addons.woocommerce_settings.settings.previous_products){!function(e,t,n=1,o,r){if(!r)return;const a=document.createElement("div");a.classList.add("alm-btn-wrap--prev");const s=document.createElement("a");s.href=o,s.innerHTML=r,s.setAttribute("rel","prev"),s.dataset.page=n,s.dataset.url=o,s.setAttribute("class",`alm-load-more-btn alm-load-more-btn--prev ${e.loading_style}`),s.addEventListener("click",(function(t){e.AjaxLoadMore.prevClick(t)})),e.AjaxLoadMore.setPreviousButton(s),a.appendChild(s),t.parentNode.insertBefore(a,t)}(e,n,o-1,e.addons.woocommerce_settings.paged_urls[o-2],e.addons.woocommerce_settings.settings.previous_products)}}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")}const ft=["#text","#comment"];function gt(e=null,t=null,n="fade"){if(!e||!t)return!1;for(let o=0;o-1===t.indexOf(e.nodeName.toLowerCase())))};var At=function(e=null){if(!e)return!1;const t=document.createElement("tbody");t.innerHTML=e;return[t]};const St=(e,t)=>{if(0===t)e.style.opacity=1,e.style.height="auto";else{t/=10;let n=0;const o=setInterval((function(){n>.9&&(e.style.opacity=1,clearInterval(o)),e.style.opacity=n,n+=.1}),t);e.style.height="auto"}},jt=(e,t)=>{t/=10,e.style.opacity=.5;const n=setInterval((function(){e.style.opacity<.1?clearInterval(n):e.style.opacity-=.1}),t)};function Et(e,t=!1,n=!1){if(0==(e.localize&&e.localize.post_count?parseInt(e.localize.post_count):0)&&!e.addons.single_post)return!1;if(e&&e.tableofcontents&&e.transition_container&&"masonry"!==e.transition){const o=e.tableofcontents.dataset.offset?parseInt(e.tableofcontents.dataset.offset):30,r=e.start_page?parseInt(e.start_page):0,a=e.addons.filters_startpage?parseInt(e.addons.filters_startpage):0,s=e.addons.nextpage_startpage?parseInt(e.addons.nextpage_startpage):0;let i=parseInt(e.page);const l="true"===e.addons.preloaded;if(e.addons.paging||e.addons.nextpage)return!1;t?setTimeout((function(){if(e.addons.seo&&r>1||e.addons.filters&&a>1||e.addons.nextpage&&s>1){if(e.addons.seo&&r>1)for(let t=0;t1)for(let t=0;t1)for(let t=0;t0||e.addons.filters&&a>0||(i+=1)),Pt(e,i,o))}}function Pt(e,t,n){if(!e.tableofcontents)return!1;const o=document.createElement("button");o.type="button",t=parseInt(t)+1,o.innerHTML=function(e,t){let n=t;if(e.addons.single_post){let o,r=t-1;if(e.addons.single_post_target){e.init||(r+=1);const t=document.querySelectorAll(".alm-reveal.alm-single-post");t&&(o=t[r])}else o=document.querySelector(`.alm-reveal.alm-single-post[data-page=${t-1}]`);n=o?o.dataset.title:n}const o=`almTOCLabel_${e.id}`;"function"==typeof window[o]&&(n=window[o](t,n));return n}(e,t),o.dataset.page=e.addons.single_post_target&&e.init?t-1:t,e.tableofcontents.appendChild(o),o.addEventListener("click",(function(){const t=this.dataset.page;let o=document.querySelector(`.alm-reveal:nth-child(${t})`)||document.querySelector(`.alm-nextpage:nth-child(${t})`);if(e.addons.single_post_target&&(o=document.querySelector(`.alm-reveal.alm-single-post[data-page="${t}"]`)),!o)return!1;const r="function"==typeof fn?fn(o).top:o.offsetTop;un(r-n),setTimeout((function(){Ye(e,o,t,!1)}),1e3)}))}function Lt(e,t=150,n,o="filter"){if(n.target){const r=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target.toLowerCase()+'"]');r&&r.forEach((function(r){Ot(e,t,n,o,r)}))}else{const r=document.querySelectorAll(".ajax-load-more-wrap");r&&r.forEach((function(r){Ot(e,t,n,o,r)}))}!function(){const e=document.querySelector(".alm-toc");e&&(e.innerHTML="")}()}function Ot(e,t,n,o,r){if("fade"===e||"masonry"===e){switch(o){case"filter":r.classList.add("alm-is-filtering"),jt(r,t);break;case"tab":r.classList.add("alm-loading");const e=r.querySelector(".alm-listing");r.style.height=e.offsetHeight+"px",jt(e,t)}setTimeout((function(){Tt(t,n,o,r)}),t)}else r.classList.add("alm-is-filtering"),Tt(t,n,o,r)}function Tt(e,t,n,o){const r=o.querySelector(".alm-btn-wrap"),a=o.querySelectorAll(".alm-listing");if(!a||!r)return!1;[...a].forEach((function(e){e.innerHTML=""}));const s=r.querySelector(".alm-load-more-btn");s&&s.classList.remove("done");const i=r.querySelector(".alm-paging");i&&(i.style.opacity=0),t.preloadedAmount=0,function(e,t,n,o){const r=o.querySelector(".alm-listing")||o.querySelector(".alm-comments");if(!r)return!1;switch(n){case"filter":for(let[e,n]of Object.entries(t))e=e.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),r.setAttribute("data-"+e,n);St(o,e);break;case"tab":r.setAttribute("data-preloaded","false"),r.setAttribute("data-pause","false"),r.setAttribute("data-tab-template",t.tabTemplate)}let a="";t.target?(a=document.querySelector('.ajax-load-more-wrap[data-id="'+t.target+'"]'),a&&window.almInit(a)):(a=document.querySelector(".ajax-load-more-wrap"),a&&window.almInit(a));switch(n){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}(e,t,n,o)}var Mt={init(e){if(!0===this.isScript(e))e.parentNode.replaceChild(this.clone(e),e);else{let t=0,n=e.childNodes;if(void 0===n){const t=(new DOMParser).parseFromString(e,"text/html");t&&(n=t.body.childNodes)}for(;t=0;n--)t.setAttribute(e.attributes[n].name,e.attributes[n].value);return t}};const It=n(564);function Ct(e,t,n){return e.masonry||console.warn("Ajax Load More: Unable to locate Masonry settings."),new Promise((o=>{const r=e.listing,a=e.html,s=e.masonry.selector;let i=e.masonry.columnwidth;const l=e.masonry.animation;let c=e.masonry.horizontalorder;const d=e.speed,p=e.masonry.init,u=(d+100)/1e3+"s";let f="scale(0.5)",g="scale(1)";if("zoom-out"===l&&(f="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===l&&(f="translateY(50px)",g="translateY(0)"),"slide-down"===l&&(f="translateY(-50px)",g="translateY(0)"),"none"===l&&(f="translateY(0)",g="translateY(0)"),i?isNaN(i)||(i=parseInt(i)):i=s,c="true"===c,n)r.parentNode.style.opacity=0,Ct(e,!0,!1),o(!0);else if(p&&t)Qe(r,e.ua),It(r,(function(){const t={itemSelector:s,transitionDuration:u,columnWidth:i,horizontalOrder:c,hiddenStyle:{transform:f,opacity:0},visibleStyle:{transform:g,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));const a=r.querySelectorAll(s);e.addons.filters&&function(e,t){if(!e.addons.filters)return t;let n=1;const o=e.page,r=window.location.search;if(e.addons.filters_startpage>1){const o=parseInt(e.posts_per_page),a=[];for(let e=0;e0?s*o:0;n=s+1,t[a]&&(t[a]=st(e,t[a],r,n))}}else n=o,t&&t[0]&&(t[0]=st(e,t[0],r,n))}(e,Array.prototype.slice.call(a)),e.addons.seo&&function(e,t){if(!e.addons.seo)return t;let n=1;const o=e.page,r="alm-seo",a=window.location.search;if(e.start_page>1){const o=parseInt(e.posts_per_page),s=[];for(let e=0;e0?i*o:0;n=i+1,t[s]&&(t[s]=it(e,t[s],a,r,n))}}else n=o,t[0]=it(e,t[0],a,r,n)}(e,Array.prototype.slice.call(a)),setTimeout((function(){e.msnry=new Masonry(r,t),St(r.parentNode,125),o(!0)}),1)}));else{const t=xt(yt(a,"text/html"));t&&(gt(e.listing,t,"masonry"),Qe(r,e.ua),It(r,(function(){e.msnry.appended(t),Ye(e,t,t.length,!1),e.addons.filters&&function(e,t){if(!e.addons.filters)return t;const n=window.location.search;let o=e.page+1;o="true"===e.addons.preloaded?o+1:o,st(e,t,n,o)}(e,t[0]),e.addons.seo&&function(e,t){if(!e.addons.seo)return t;const n=window.location.search;let o=e.page+1;o="true"===e.addons.preloaded?o+1:o,it(e,t,n,"alm-seo",o)}(e,t[0]),o(!0)})))}}))}var Rt=(e,t="")=>{if(""===t)return!1;t=t.replace(/(

<\/p>)+/g,""),e.innerHTML=t};function Nt(e){if(!e||!e.main||e.addons.paging)return!1;e.placeholder&&(jt(e.placeholder,150),setTimeout((function(){e.placeholder.style.display="none"}),75))}function kt(e,t="standard"){if(!e.resultsText||"true"===e.nested)return!1;!function(e,t="standard"){if(!e.resultsText||!e.localize||"true"===e.nested)return!1;let n=0,o=0,r=0,a=0;const s=e.orginal_posts_per_page;switch(t){case"nextpage":n=parseInt(e.localize.page),r=n,o=parseInt(e.localize.total_posts),a=parseInt(o),qt(e.resultsText,n,o,r,a,s);break;case"woocommerce":break;default:n=bt("page",e.id),o=bt("pages",e.id),r=bt("post_count",e.id),a=bt("total_posts",e.id),qt(e.resultsText,n,o,r,a,s)}}(e,"nextpage"===t||"woocommerce"===t?t:"standard")}function Ft(e,t="standard"){if(!e.resultsText||!e.localize||"true"===e.nested)return!1;let n=0,o=Math.ceil(e.localize.total_posts/e.orginal_posts_per_page),r=parseInt(e.localize.post_count);const a=parseInt(e.localize.total_posts);switch(t){case"nextpage":n=e.addons.nextpage_startpage,r=n,o=a,qt(e.resultsText,n,a,r,a,e.posts_per_page);break;case"preloaded":n=e.addons.paging&&e.addons.seo?parseInt(e.start_page)+1:parseInt(e.page)+1,qt(e.resultsText,n,o,r,a,e.posts_per_page);break;case"woocommerce":break;default:console.log("No results to set.")}}const qt=function(e,t,n,o,r,a){e.forEach((function(e){let s=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;const i=t*a-a+1,l=t*a,c=l<=r?l:r;n>0?(s=s.replace("{num}",`${t}`),s=s.replace("{page}",`${t}`),s=s.replace("{start}",`${i}`),s=s.replace("{end}",`${c}`),s=s.replace("{total}",`${n}`),s=s.replace("{pages}",`${n}`),s=s.replace("{post_count}",`${o}`),s=s.replace("{total_posts}",`${r}`),e.innerHTML=s):e.innerHTML=s}))};function Dt(e){const{addons:t}=e;return new Promise((n=>{let o="standard";if(t.nextpage)o="nextpage",t.paging?e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+1):e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+parseInt(t.nextpage_startpage)+1);else if(t.woocommerce)o="woocommerce",e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+1);else{const n="true"===t.preloaded?parseInt(e.page)+2:parseInt(e.page)+1;e.AjaxLoadMore.setLocalizedVar("page",parseInt(n));let o=Math.ceil(e.totalposts/e.orginal_posts_per_page);o="true"===t.preloaded?o+1:o,e.AjaxLoadMore.setLocalizedVar("pages",parseInt(o))}"true"===t.preloaded||t.nextpage||t.woocommerce||e.AjaxLoadMore.setLocalizedVar("total_posts",e.totalposts),e.AjaxLoadMore.setLocalizedVar("post_count",function(e){const{postcount:t,addons:n}=e,{preloaded_amount:o}=n;let r=parseInt(t)+parseInt(o);return r=e.start_page>1?r-parseInt(o):r,r=n.filters_startpage>1?r-parseInt(o):r,r=n.single_post?r+1:r,r=n.nextpage?r+1:r,r}(e)),kt(e,o),n(!0)}))}var Bt=n(379),Ut=n.n(Bt),zt=n(795),Ht=n.n(zt),Wt=n(569),$t=n.n(Wt),Vt=n(565),Gt=n.n(Vt),Jt=n(216),Qt=n.n(Jt),Kt=n(589),Yt=n.n(Kt),Xt=n(789),Zt=n.n(Xt),en={};en.styleTagTransform=Yt(),en.setAttributes=Gt(),en.insert=$t().bind(null,"head"),en.domAPI=Ht(),en.insertStyleElement=Qt();Ut()(Zt(),en),Zt()&&Zt().locals&&Zt().locals;const tn=n(129),nn=n(564);De.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",De.interceptors.request.use((e=>(e.paramsSerializer=e=>tn.stringify(e,{arrayFormat:"brackets",encode:!1}),e))),n(334),n(793);let on=!1;!function(){const e=function(e,t){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);let n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.postcount=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.rel="next",n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),e.classList.add("alm-"+t),e.setAttribute("data-alm-id",t),n.master_id=e.dataset.id?`ajax_load_more_${e.dataset.id}`:e.id,n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],window[n.master_id]=n,n.main=e,n.listing=e.querySelector(".alm-listing")||e.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=e.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.loading_style=n.listing.dataset.loadingStyle,n.canonical_url=e.dataset.canonicalUrl,n.nested=e.dataset.nested?e.dataset.nested:null,n.is_search=e.dataset.search,n.slug=e.dataset.slug,n.post_id=e.dataset.postId,n.id=e.dataset.id?e.dataset.id:"";const o=e.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=e.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=!!n.listing.dataset.pauseOverride&&n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):150,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.lazy_images=!!n.listing.dataset.lazyImages&&n.listing.dataset.lazyImages,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=et(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=!(!n.listing.dataset.cache||"true"!==n.listing.dataset.cache),n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=!!n.listing.dataset.cacheLoggedIn&&n.listing.dataset.cacheLoggedIn),n.addons.cta=!(!n.listing.dataset.cta||"true"!==n.listing.dataset.cta),n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=parseInt(n.listing.dataset.nextpageStartpage),n.addons.nextpage_title_template=n.listing.dataset.nextpageTitleTemplate),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=void 0===n.listing.dataset.singlePostOrder?"previous":n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=void 0===n.listing.dataset.singlePostTaxonomy?"":n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=void 0===n.listing.dataset.singlePostExcludedTerms?"":n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=void 0===n.listing.dataset.singlePostProgressBar?"":n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=void 0===n.listing.dataset.singlePostTarget?"":n.listing.dataset.singlePostTarget,n.addons.single_post_preview=void 0!==n.listing.dataset.singlePostPreview,n.addons.single_post_preview)){const e=n.listing.dataset.singlePostPreview.split(":");n.addons.single_post_preview_data={button_label:e[0]?e[0]:"Continue Reading",height:e[1]?e[1]:500,element:e[2]?e[2]:"default",className:"alm-single-post--preview"}}if(n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.seo_offset=n.listing.dataset.seoOffset,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi="true"===n.listing.dataset.restapi,n.extensions.restapi&&(n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug),n.extensions.acf="true"===n.listing.dataset.acf,n.extensions.acf&&(n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_row_index=n.listing.dataset.acfRowIndex,n.extensions.acf_post_id=n.listing.dataset.acfPostId,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1)),n.extensions.term_query="true"===n.listing.dataset.termQuery,n.extensions.term_query&&(n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber),n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_target=!!n.listing.dataset.filtersTarget&&n.listing.dataset.filtersTarget,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0,n.facets="true"===n.listing.dataset.facets,n.addons.filters_target||console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters="true" target="filters"]');const e=ht("pg");n.addons.filters_startpage=null!==e?parseInt(e):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if(n.extensions.restapi&&(n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi),"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&null!==n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),n.addons.nextpage_postTitle=n.listing.dataset.nextpagePostTitle):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_cache=!1,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?9999:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1===n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=_t(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,"masonry"===n.transition&&(n=function(e){e.masonry={},e.masonry.init=!0,e.msnry?e.msnry.destroy():e.msnry="";const t=JSON.parse(e.listing.dataset.masonryConfig);return t?(e.masonry.selector=t.selector,e.masonry.columnwidth=t.columnwidth,e.masonry.animation=""===t.animation?"standard":t.animation,e.masonry.horizontalorder=""===t.horizontalorder?"true":t.horizontalorder,e.transition_container=!1,e.images_loaded=!1):console.warn("Ajax Load More: Unable to locate Masonry configuration settings."),e}(n)),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{const t=e.childNodes;if(t){const e=Array.prototype.slice.call(t).filter((function(e){return!!e.classList&&e.classList.contains("alm-btn-wrap")}));n.button=e?e[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(e){e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){n.disable_ajax||("function"==typeof almOnChange&&window.almOnChange(n),n.loading=!0,function(e){if(!e||!e.main||e.addons.paging||"prev"===e.rel)return!1;e.placeholder&&(e.placeholder.style.display="block",St(e.placeholder,150))}(n),n.main.classList.add("alm-loading"),n.addons.paging||("prev"===n.rel?n.buttonPrev.classList.add("loading"):(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label))),n.AjaxLoadMore.ajax())},n.AjaxLoadMore.ajax=async function(e="standard"){if(n.extensions.restapi)n.AjaxLoadMore.restapi(n);else{const t=wt(n,e),o=await async function(e,t){if(!e.addons.cache||e.addons.cache&&e.addons.cache_logged_in)return!1;const n={id:e.addons.cache_id,name:t.cache_slug},o=await We.get("ajax-load-more/cache/get",{params:n});return!(200!==o.status||!o.data)&&o.data}(n,Object.assign({},t));o?n.AjaxLoadMore.render(o):n.AjaxLoadMore.adminajax(t,e)}},n.AjaxLoadMore.adminajax=async function(e,t){let{ajaxurl:o}=alm_localize;const{cache_slug:r=""}=e;n.addons.single_post&&n.addons.single_post_target&&(o=`${n.addons.single_post_permalink}?id=${n.addons.single_post_id}&alm_page=${parseInt(n.page)+1}`,e=""),(n.addons.woocommerce||n.addons.elementor&&"posts"===n.addons.elementor_type)&&(o=function(e,t="next"){if(!e||!e.trigger)return!1;let n=e.trigger.querySelector(".alm-load-more-btn");"prev"===t&&(n=document.querySelector(".alm-load-more-btn--prev"));return(n?n.dataset.url:"")||""}(n,n.rel),e="");const a=await De.get(o,{params:e}).then((function(e){return n.addons.single_post&&n.addons.single_post_target?dt(n,e,r):n.addons.woocommerce?function(e,t,n,o){const r={html:"",meta:{postcount:0,totalposts:0}};if(200===n.status&&n.data){const{addons:a,pagePrev:s,rel:i="next",page:l,localize:c}=e,{total_posts:d}=c,{woocommerce_settings:p={}}=a,u="prev"===i?s:l+1,f=document.createElement("div");f.innerHTML=n.data;const g=f.querySelector("title").innerHTML;r.pageTitle=g;const m=f.querySelector(p.container);if(!m)return console.warn(`Ajax Load More WooCommerce: Unable to find WooCommerce ${p.container} element.`),r;const y=m?m.querySelector(p.products):null;y&&(y.classList.add("alm-woocommerce"),y.dataset.url=t,y.dataset.page=u,y.dataset.pageTitle=g);const h=m.querySelectorAll(p.products);h&&(r.html=m?m.innerHTML:"",r.meta.postcount=h.length,r.meta.totalposts=d,$e(e,r,o)),function(e="",t){if(e&&t&&t.addons.woocommerce_settings.results_text){const n=e.querySelector(t.addons.woocommerce_settings.results);t.addons.woocommerce_settings.results_text&&t.addons.woocommerce_settings.results_text.forEach((e=>{e.innerHTML=n.innerHTML}))}}(f,e)}return r}(n,o,e,r):n.addons.elementor?function(e,t,n,o){const r={html:"",meta:{postcount:0,totalposts:0}};if(200===n.status&&n.data){const{addons:a}=e,s=document.createElement("div");s.innerHTML=n.data;const i=s.querySelector("title").innerHTML;r.pageTitle=i;const l=s.querySelector(`${a.elementor_target} .${a.elementor_container_class}`);if(!l)return console.warn("Ajax Load More Elementor: Unable to find Elementor container element."),r;const c=l?l.querySelector(`.${a.elementor_item_class}`):null;c&&(c.classList.add("alm-elementor"),c.dataset.url=t,c.dataset.page=a.elementor_paged,c.dataset.pageTitle=i);const d=l.querySelectorAll(`.${a.elementor_item_class}`);d&&(r.html=l?l.innerHTML:"",r.meta.postcount=d.length,r.meta.totalposts=d.length,$e(e,r,o))}return r}(n,o,e,r):e.data})).catch((function(e){n.AjaxLoadMore.error(e,"adminajax")}));switch(t){case"standard":n.AjaxLoadMore.render(a);break;case"totalposts":case"totalpages":n.addons.paging&&n.addons.nextpage&&"function"==typeof almBuildPagination?(window.almBuildPagination(a.totalpages,n),n.totalpages=a.totalpages):n.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(a.totalposts,n)}},n.AjaxLoadMore.restapi=function(e){const t=wp.template(e.extensions.restapi_template_id),n=`${e.extensions.restapi_base_url}/${e.extensions.restapi_namespace}/${e.extensions.restapi_endpoint}`,o=function(e){return{id:e.id,post_id:parseInt(e.post_id),posts_per_page:e.posts_per_page,page:e.page,offset:e.offset,slug:e.slug,canonical_url:e.canonical_url,post_type:e.post_type,post_format:e.listing.dataset.postFormat,category:e.listing.dataset.category,category__not_in:e.listing.dataset.categoryNotIn,tag:e.listing.dataset.tag,tag__not_in:e.listing.dataset.tagNotIn,taxonomy:e.listing.dataset.taxonomy,taxonomy_terms:e.listing.dataset.taxonomyTerms,taxonomy_operator:e.listing.dataset.taxonomyOperator,taxonomy_relation:e.listing.dataset.taxonomyRelation,meta_key:e.listing.dataset.metaKey,meta_value:e.listing.dataset.metaValue,meta_compare:e.listing.dataset.metaCompare,meta_relation:e.listing.dataset.metaRelation,meta_type:e.listing.dataset.metaType,author:e.listing.dataset.author,year:e.listing.dataset.year,month:e.listing.dataset.month,day:e.listing.dataset.day,post_status:e.listing.dataset.postStatus,order:e.listing.dataset.order,orderby:e.listing.dataset.orderby,post__in:e.listing.dataset.postIn,post__not_in:e.listing.dataset.postNotIn,search:e.listing.dataset.search,s:e.listing.dataset.s,custom_args:e.listing.dataset.customArgs,vars:e.listing.dataset.vars,lang:e.lang,preloaded:e.addons.preloaded,preloaded_amount:e.addons.preloaded_amount,seo_start_page:e.start_page}}(e);De.get(n,{params:o}).then((function(n){const o=n.data,{html:r=null,meta:a=null}=o,s=a&&a.postcount?a.postcount:0,i=a&&a.totalposts?a.totalposts:0;let l="";for(let n=0;n0&&n.AjaxLoadMore.pagingInit(a,"alm-reveal"),0===i&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){Rt(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),n.addons.filters&&n.facets&&t.facets&&"function"==typeof almFiltersFacets&&window.almFiltersFacets(t.facets),function(e){if(e&&e.debug){const t={query:e.debug,localize:e.localize};console.log("ALM Debug:",t)}}(n),(async()=>{await Dt(n)})(),i>0){if(n.addons.paging)if(n.init)setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed);else{const e=n.listing.querySelector(".alm-paging-content");e&&(jt(e,n.speed),e.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){e.style.opacity=0,e.innerHTML=n.html,nn(e,(function(){n.AjaxLoadMore.triggerAddons(n),St(e,n.speed),setTimeout((function(){e.style.opacity="",Mt.init(e)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25))}else{if(n.addons.single_post){if(r.setAttribute("class",`alm-reveal alm-single-post post-${n.addons.single_post_id}${n.tcc?` ${n.tcc}`:""}`),r.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?r.dataset.page=parseInt(n.page)+1:r.dataset.page=n.page,r.dataset.id=n.addons.single_post_id,r.dataset.title=n.addons.single_post_title,r.innerHTML=n.html,n.addons.single_post_preview&&n.addons.single_post_preview_data&&"function"==typeof almSinglePostCreatePreview){const e=window.almSinglePostCreatePreview(r,n.addons.single_post_id,n.addons.single_post_preview_data);r.replaceChildren(e||r)}}else if(n.transition_container){let e;const t=window.location.search,a=n.addons.seo?" alm-seo":"",s=n.addons.filters?" alm-filters":"",l=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){const c=[],d=[];let p=parseInt(n.posts_per_page),u=Math.ceil(i/p);o=!0,n.addons.cta&&(p+=1,u=Math.ceil(i/p),i=u+i);const f=xt(yt(n.html,"text/html"));for(let e=0;e0||"true"===n.addons.preloaded?(e=o+1+r,n.addons.seo&&(i=lt(n,i,t,a,ct(n.addons.seo_offset,e))),n.addons.filters&&(i.setAttribute("class","alm-reveal"+s+n.tcc),i.dataset.url=n.canonical_url+at(n,t,e),i.dataset.page=e)):(n.addons.seo&&(i=lt(n,i,t,a+l,ct(n.addons.seo_offset,1))),n.addons.filters&&(i.setAttribute("class","alm-reveal"+s+l+n.tcc),i.dataset.url=n.canonical_url+at(n,t,0),i.dataset.page="1")),gt(i,c[o]),Qe(i,n.ua),d.push(i)}n.listing.style.opacity=0,n.listing.style.height=0,gt(n.listing,d),r=n.listing,n.el=r}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){const o="true"===n.addons.preloaded?1:0;e=n.page+1+o,n.addons.seo?r=lt(n,r,t,a,ct(n.addons.seo_offset,e)):n.addons.filters?(r.setAttribute("class","alm-reveal"+s+n.tcc),r.dataset.url=n.canonical_url+at(n,t,e),r.dataset.page=e):r.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(r.setAttribute("class","alm-reveal"+s+n.tcc),r.dataset.url=n.canonical_url+at(n,t,parseInt(n.page)+1),r.dataset.page=parseInt(n.page)+1):n.addons.seo?r=lt(n,r,t,a,ct(n.addons.seo_offset,1)):r.setAttribute("class","alm-reveal"+n.tcc);r.innerHTML=n.html}}else n.el=n.html,r="table"===n.container_type?At(n.html):xt(yt(n.html,"text/html"));if(n.addons.woocommerce)return async function(){await function(e,t){return!(!e||!t)&&new Promise((n=>{const{woocommerce_settings:o={}}=t.addons,{settings:r={}}=o,a=document.querySelector(o.container),s=e.querySelectorAll(o.products),i=!(!r||"true"!==r.images_loaded);if(a&&s){const e=Array.prototype.slice.call(s);(async function(){await Ze(a,e,t,i),n(!0)})().catch((e=>{console.log(e,"There was an error with WooCommerce")})),"function"==typeof almWooCommerceLoaded&&window.almWooCommerceLoaded(s)}}))}(r,n),function(e){const t=e.page+2,n=e.addons.woocommerce_settings.paged_urls[t-1];if("prev"===e.rel&&e.buttonPrev){const t=e.pagePrev-1,n=e.addons.woocommerce_settings.paged_urls[e.pagePrev-2];Ve(e.buttonPrev,t,n),pt(!0)}else Ve(e.button,t,n);Ge(e),"function"==typeof almComplete&&"masonry"!==e.transition&&window.almComplete(e),e.AjaxLoadMore.transitionEnd(),"prev"===e.rel&&e.pagePrev<=1&&e.AjaxLoadMore.triggerDonePrev(),"next"===e.rel&&t>parseInt(e.addons.woocommerce_settings.pages)&&e.AjaxLoadMore.triggerDone()}(n)}().catch((e=>{console.warn("Ajax Load More: There was an error loading woocommerce products.",e)})),void(n.init=!1);if(n.addons.elementor)return async function(){await function(e,t){return e&&t?new Promise((n=>{const{addons:o}=t,r=t.addons.elementor_element.querySelector(`.${o.elementor_container_class}`),a=e.querySelectorAll(`.${o.elementor_item_class}`);if(r&&a){const e=Array.prototype.slice.call(a);"function"==typeof almElementorLoaded&&window.almElementorLoaded(e),async function(){await Ze(r,e,t),o.elementor_masonry&&setTimeout((function(){tt(t,`.${o.elementor_container_class}`,`.${o.elementor_item_class}`)}),125),n(!0)}().catch((e=>{console.log(e,"There was an error with Elementor")}))}else n(!1)})):(t.AjaxLoadMore.triggerDone(),!1)}(r,n),function(e){const{trailing_slash:t,is_front_page:n}=alm_localize,{page:o,button:r,canonical_url:a,AjaxLoadMore:s,addons:i}=e,l=o+1,c=`${a+("true"===n?"page/":"true"===t?"":"/")}${l+1}${"true"===t?"/":""}`,d=i.elementor_max_pages;Ve(r,l,c),Ge(e),"function"==typeof almComplete&&"masonry"!==e.transition&&window.almComplete(e),s.transitionEnd(),l>=d&&s.triggerDone()}(n)}().catch((e=>{console.warn("Ajax Load More: There was an error loading Elementor items.",e)})),void(n.init=!1);("masonry"!==n.transition||n.init&&"true"!==n.addons.preloaded)&&(o||(n.transition_container?n.listing.appendChild(r):"true"===n.images_loaded?nn(r,(function(){gt(n.listing,r),Qe(n.listing,n.ua)})):(gt(n.listing,r),Qe(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,async function(){await Ct(n,n.init,on),n.masonry.init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n),Ge(n)}().catch((()=>{console.error("There was an error with ALM Masonry")}))):"none"===n.transition&&n.transition_container?"true"===n.images_loaded?nn(r,(function(){St(r,0),n.AjaxLoadMore.transitionEnd()})):(St(r,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?nn(r,(function(){n.transition_container&&St(r,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&St(r,n.speed),n.AjaxLoadMore.transitionEnd())}nn(r,(function(){n.AjaxLoadMore.nested(r),Mt.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),Ge(n),on&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(e),on=!1,n.addons.single_post||(n.addons.nextpage?n.postcount+n.addons.nextpage_startpage>=n.totalposts&&n.AjaxLoadMore.triggerDone():n.postcount>=n.totalposts&&n.AjaxLoadMore.triggerDone())})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){let e=n.page+1;e="true"===n.addons.preloaded?e++:e,parseInt(e)===parseInt(n.destroy_after)&&n.AjaxLoadMore.destroyed()}Et(n,n.init),"masonry"!==n.transition&&Ye(n,r,i,on),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),on&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(e),on=!1),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(e){e=null===e?"":e,n.AjaxLoadMore.pagingInit(e,"alm-reveal"),""===e&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&Rt(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(e){e=null===e?"":e,n.AjaxLoadMore.pagingInit(e,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(e,t="alm-reveal"){e=null===e?"":e;const o=document.createElement("div");o.setAttribute("class",t);const r=document.createElement("div");r.setAttribute("class","alm-paging-content"+n.tcc),r.innerHTML=e,o.appendChild(r);const a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),o.appendChild(a),n.listing.appendChild(o);const s=window.getComputedStyle(n.listing),i=parseInt(s.getPropertyValue("padding-top").replace("px","")),l=parseInt(s.getPropertyValue("padding-bottom").replace("px","")),c=o.offsetHeight;n.listing.style.height=c+i+l+"px",Mt.init(o),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(e){if(!e||!n.transition_container)return!1;const t=e.querySelectorAll(".ajax-load-more-wrap");t&&t.forEach((function(e){window.almInit(e)}))},n.AjaxLoadMore.getSinglePost=async function(){if(n.fetchingPreviousPost)return;n.fetchingPreviousPost=!0;const e={action:"alm_get_single",id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init};return await De.get(alm_localize.ajaxurl,{params:e}).then((function(e){const{data:t}=e;return t.has_previous_post?(n.listing.dataset.singlePostId=t.prev_id,n.addons.single_post_id=t.prev_id,n.addons.single_post_permalink=t.prev_permalink,n.addons.single_post_title=t.prev_title,n.addons.single_post_slug=t.prev_slug,n.addons.single_post_cache=t.cache):(n.addons.single_post_cache=!1,t.has_previous_post||n.AjaxLoadMore.triggerDone()),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,t.current_id,t.permalink,t.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1,t})).catch((function(e){n.AjaxLoadMore.error(e,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.triggerAddons=function(e){"function"==typeof almSetNextPage&&e.addons.nextpage&&window.almSetNextPage(e),"function"==typeof almSEO&&e.addons.seo&&window.almSEO(e,!1),"function"==typeof almWooCommerce&&e.addons.woocommerce&&window.almWooCommerce(e),"function"==typeof almElementor&&e.addons.elementor&&window.almElementor(e)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,Nt(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.removeAttribute("rel"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.triggerDonePrev=function(){n.loading=!1,Nt(n),n.addons.paging||(n.buttonPrev.classList.add("done"),n.buttonPrev.removeAttribute("rel"),n.buttonPrev.disabled=!0),"function"==typeof almDonePrev&&setTimeout((function(){window.almDonePrev(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.click=function(e){const t=e.target||e.currentTarget;n.rel="next","true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||t.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),t.blur()},n.AjaxLoadMore.prevClick=function(e){const t=e.target||e.currentTarget;e.preventDefault(),n.loading||t.classList.contains("done")||(n.loading=!0,n.pagePrev--,n.rel="prev",n.AjaxLoadMore.loadPosts(),t.blur())},n.AjaxLoadMore.setPreviousButton=function(e){n.pagePrev=n.page,n.buttonPrev=e},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.scroll_distance_perc||"horizontal"===n.scroll_direction){let e;n.window.onresize=function(){clearTimeout(e),e=setTimeout((function(){n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=_t(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{const e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){const e=n.trigger.getBoundingClientRect();let t=Math.round(e.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){const e=n.main.offsetHeight,o=n.main.offsetWidth;let r="";"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),r=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance),t=o<=r):(r=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance),t=e<=r)}(!n.loading&&!n.finished&&t&&n.page0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(e){switch(e.key?e.key:e.code){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=`${n.listing.offsetWidth}px`)},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),"prev"===n.rel?n.buttonPrev.classList.remove("loading"):n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),Nt(n)},n.AjaxLoadMore.setLocalizedVar=function(e="",t=""){n.localize&&""!==e&&""!==t&&(n.localize[e]=t,window[n.master_id+"_vars"][e]=t)},n.AjaxLoadMore.init=async function(){if("true"===n.addons.preloaded&&1===n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):(n.button.innerHTML=n.button_label,"true"===n.pause?n.loading=!1:n.AjaxLoadMore.loadPosts())),n.addons.single_post&&setTimeout((async function(){await n.AjaxLoadMore.getSinglePost(),n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),n.loading=!1,Et(n,!0,!0)}),200),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),200),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0===n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&Rt(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&Ft(n,"preloaded"),Et(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){const e=n.listing.querySelectorAll(".alm-nextpage");if(e){const t=e[0],o=t.dataset.totalPosts?parseInt(t.dataset.totalPosts):n.localize.total_posts;e.length!==o&&parseInt(t.dataset.id)!==o||n.AjaxLoadMore.triggerDone()}}n.resultsText&&Ft(n,"nextpage"),Et(n,n.init,!0)}n.addons.woocommerce&&(ut(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&(!function(e){if(!e.addons.elementor||!e.addons.elementor_type||"posts"===!e.addons.elementor_type)return!1;const t=e.addons.elementor_element;if(t){e.button.dataset.page=e.addons.elementor_paged;const n=e.addons.elementor_next_page;e.button.dataset.url=n||"",t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),e.listing.removeAttribute("aria-live"),e.listing.removeAttribute("aria-atomic");const o=t.querySelector(`.${e.addons.elementor_item_class}`);if(o&&(o.classList.add("alm-elementor"),o.dataset.url=window.location,o.dataset.page=e.addons.elementor_paged,o.dataset.pageTitle=document.title),e.addons.elementor_masonry){let t;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout((function(){tt(e,`.${e.addons.elementor_container_class}`,`.${e.addons.elementor_item_class}`)}),100)}))}),250)}}}(n),""===n.addons.elementor_next_page&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){if("masonry"===n.transition&&"true"===n.addons.preloaded&&async function(){await Ct(n,!0,!1),n.masonry.init=!1}().catch((()=>{console.error("There was an error with ALM Masonry")})),"true"===n.addons.preloaded&&n.addons.filters&&n.facets&&"function"==typeof almFiltersFacets){const e=n.localize&&n.localize.facets;e&&window.almFiltersFacets(e)}"function"==typeof almOnLoad&&window.almOnLoad(n)}))},n.AjaxLoadMore.error=function(e,t=null){n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.warn("Error: ",e),e.response?console.error("Error Msg: ",e.message):e.request?console.error(e.request):console.error("Error Msg: ",e.message),t&&console.error("ALM Error started in "+t),e.config&&console.error("ALM Error Debug: ",e.config)},window.almUpdateCurrentPage=function(e,t,n){n.page=e,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;let o="",r="";n.addons.paging_init&&"true"===n.addons.preloaded?(r=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"),r&&(o=r.innerHTML,r.parentNode.removeChild(r),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(o)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?(r=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"),r&&(o=r.innerHTML,r.parentNode.removeChild(r),n.AjaxLoadMore.pagingNextpageInit(o)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n?.listing},window.almGetObj=function(e=""){return e?n[e]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(t,n=0){new e(t,n)};const t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[...t].forEach(((t,n)=>{new e(t,n)}))}();const rn=function(e="fade",t="200",n=""){if(!e||!t||!n)return!1;on=!0,Lt(e,t,n,"filter")},an=function(e={}){let t={};on=!0,e&&e.target&&(t={target:target}),e&&"woocommerce"===e.type?async function(){const e=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),n=await new Promise((e=>{const t=window.location;De.get(t).then((t=>{if(200===t.status&&t.data){const n=document.createElement("div");n.innerHTML=t.data;const o=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),r=o?o.dataset.wooSettings:"";e(r)}else e(!1)})).catch((function(){e(!1)}))}));n&&(e.dataset.wooSettings=n,Lt("fade","100",t,"filter"))}().catch((()=>{console.warn("Ajax Load More: There was an issue resetting the Ajax Load More instance.")})):Lt("fade","200",t,"filter")},sn=function(e=""){return bt("post_count",e)},ln=function(e=""){return bt("total_posts",e)},cn=function(e=""){return bt("remaining",e)},dn=function(e){setTimeout((function(){e=e.replace(/\/\//g,"/"),"function"==typeof gtag&&(gtag("event","page_view",{page_title:document.title,page_location:window.location.href,page_path:window.location.pathname}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("set","page",e),ga("send","pageview"),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("set","page",e),__gaTracker("send","pageview"),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(e)}),200)},pn=function(e){if(!e)return!1;window.almInit(e)},un=function(e){if(!e)return!1;window.scrollTo({top:e,behavior:"smooth"})},fn=function(e=null){if(!e)return!1;const t=e.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,o=window.scrollY||document.documentElement.scrollTop;return{top:t.top+o,left:t.left+n}},gn=function(e=""){let t=document.querySelector(".ajax-load-more-wrap"),n="";!e&&t?(n=t.querySelector("button.alm-load-more-btn"),n&&n.click()):(t=document.querySelector(`.ajax-load-more-wrap[data-id="${e}"]`),t&&(n=t.querySelector("button.alm-load-more-btn"),n&&n.click()))}}(),ajaxloadmore=o}(); \ No newline at end of file + */!function(a,s){"use strict";o=[n(158)],r=function(e){return function(e,t){var n=e.jQuery,o=e.console;function r(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function s(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?a.call(e):[e]}function i(e,t,a){if(!(this instanceof i))return new i(e,t,a);var l=e;"string"==typeof e&&(l=document.querySelectorAll(e)),l?(this.elements=s(l),this.options=r({},this.options),"function"==typeof t?a=t:r(this.options,t),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(l||e))}i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),o=0;o-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-E(-e):E(e);if(o!==e){var r=String(o),a=_.call(t,r.length+1);return b.call(r,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(654),k=N.custom,F=z(k)?k:null;function q(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function D(e){return b.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==$(e)||M&&"object"==typeof e&&M in e)}function U(e){return!("[object RegExp]"!==$(e)||M&&"object"==typeof e&&M in e)}function z(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,r){var i=n||{};if(W(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!W(i,"customInspect")||i.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?R(t,w):w}if("bigint"==typeof t){var x=String(t)+"n";return m?R(t,x):x}var E=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=E&&E>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(i,o);if(void 0===r)r=[];else if(V(r,t)>=0)return"[Circular]";function k(t,n,a){if(n&&(r=j.call(r)).push(n),a){var s={depth:i.depth};return W(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,o+1,r)}return e(t,i,o+1,r)}if("function"==typeof t&&!U(t)){var H=function(e){if(e.name)return e.name;var t=h.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),J=Z(t,k);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(J.length>0?" { "+S.call(J,", ")+" }":"")}if(z(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||T?ee:Q(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+v.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe"}if(B(t)){if(0===t.length)return"[]";var re=Z(t,k);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(re)?"["+X(re,L)+"]":"[ "+S.call(re,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||M&&"object"==typeof e&&M in e)}(t)){var ae=Z(t,k);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(A.call("[cause]: "+k(t.cause),ae),", ")+" }"}if("object"==typeof t&&l){if(F&&"function"==typeof t[F]&&N)return N(t,{depth:E-o});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,(function(e,n){se.push(k(n,t,!0)+" => "+k(e,t))})),Y("Map",a.call(t),se,L)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ie=[];return d&&d.call(t,(function(e){ie.push(k(e,t))})),Y("Set",c.call(t),ie,L)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(k(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return Q(k(P.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(g.call(t));if(function(e){return!("[object String]"!==$(e)||M&&"object"==typeof e&&M in e)}(t))return Q(k(String(t)));if(!function(e){return!("[object Date]"!==$(e)||M&&"object"==typeof e&&M in e)}(t)&&!U(t)){var le=Z(t,k),ce=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",pe=!ce&&M&&Object(t)===t&&M in t?_.call($(t),8,-1):de?"Object":"",ue=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||de?"["+S.call(A.call([],pe||[],de||[]),": ")+"] ":"");return 0===le.length?ue+"{}":L?ue+"{"+X(le,L)+"}":ue+"{ "+S.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function $(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return G(_.call(e,0,t.maxStringLength),t)+o}return q(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Y(e,t,n,o){return e+" ("+t+") {"+(o?X(n,o):S.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=B(e),o=[];if(n){o.length=e.length;for(var r=0;r-1?e.split(","):e},c=function(e,t,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,i=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=i?a.slice(0,i.index):a,d=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var p=0;n.depth>0&&null!==(i=s.exec(a))&&p=0;--a){var s,i=e[a];if("[]"===i&&n.parseArrays)s=[].concat(r);else{s=n.plainObjects?Object.create(null):{};var c="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,d=parseInt(c,10);n.parseArrays||""!==c?!isNaN(d)&&i!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[])[d]=r:"__proto__"!==c&&(s[c]=r):s={0:r}}r=s}return r}(d,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var d="string"==typeof e?function(e,t){var n,c={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=d.split(t.delimiter,p),f=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(y=a(y)?[y]:y),r.call(c,m)?c[m]=o.combine(c[m],y):c[m]=y}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},u=Object.keys(d),f=0;f0?S.join(",")||null:void 0}];else if(l(u))O=u;else{var M=Object.keys(S);O=m?M.sort(m):M}for(var I=s&&l(S)&&1===S.length?n+"[]":n,C=0;C0?v+w:""}},769:function(e,t,n){"use strict";var o=n(798),r=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var o=[],r=0;r=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===o.RFC1738&&(40===d||41===d)?l+=i.charAt(c):d<128?l+=s[d]:d<2048?l+=s[192|d>>6]+s[128|63&d]:d<55296||d>=57344?l+=s[224|d>>12]+s[128|d>>6&63]+s[128|63&d]:(c+=1,d=65536+((1023&d)<<10|1023&i.charCodeAt(c)),l+=s[240|d>>18]+s[128|d>>12&63]+s[128|d>>6&63]+s[128|63&d])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],o=0;o0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},503:function(){var e,t,n,o;Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,o=new Array(n);n--;)o[n]=[t[n],e[t[n]]];return o}),void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.from||(Array.from=(e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,o=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},function(e){var n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,i=o(n.length),l=t(this)?Object(new this(i)):new Array(i),c=0;c{const n=t.call(e);return s[n]||(s[n]=n.slice(8,-1).toLowerCase())});var s;const i=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:c}=Array,d=l("undefined");const p=i("ArrayBuffer");const u=l("string"),f=l("function"),g=l("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=i("Date"),_=i("File"),b=i("Blob"),w=i("FileList"),v=i("URLSearchParams");function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),c(e))for(o=0,r=e.length;o0;)if(o=n[r],t===o.toLowerCase())return o;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!d(e)&&e!==S;const E=(P="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>P&&e instanceof P);var P;const L=i("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T=i("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};x(n,((n,r)=>{!1!==t(n,r,e)&&(o[r]=n)})),Object.defineProperties(e,o)},I="abcdefghijklmnopqrstuvwxyz",C="0123456789",R={DIGIT:C,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+C};const N=i("AsyncFunction");var k={isArray:c,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=a(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:u,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isUndefined:d,isDate:h,isFile:_,isBlob:b,isRegExp:T,isFunction:f,isStream:e=>m(e)&&f(e.pipe),isURLSearchParams:v,isTypedArray:E,isFileList:w,forEach:x,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},o=(o,r)=>{const a=t&&A(n,r)||r;y(n[a])&&y(o)?n[a]=e(n[a],o):y(o)?n[a]=e({},o):c(o)?n[a]=o.slice():n[a]=o};for(let e=0,t=arguments.length;e(x(n,((n,r)=>{o&&f(n)?t[r]=e(n,o):t[r]=n}),{allOwnKeys:r}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,s,i;const l={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],o&&!o(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:i,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:L,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];f(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:A,global:S,isContextDefined:j,ALPHABET:R,generateString:(e=16,t=R.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=c(e)?[]:{};return x(e,((e,t)=>{const a=n(e,o+1);!d(a)&&(r[t]=a)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:N,isThenable:e=>e&&(m(e)||f(e))&&f(e.then)&&f(e.catch)};function F(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}k.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const q=F.prototype,D={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{D[e]={value:e}})),Object.defineProperties(F,D),Object.defineProperty(q,"isAxiosError",{value:!0}),F.from=(e,t,n,o,r,a)=>{const s=Object.create(q);return k.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),F.call(s,e.message,t,n,o,r),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};var B=F;function U(e){return k.isPlainObject(e)||k.isArray(e)}function z(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function H(e,t,n){return e?e.concat(t).map((function(e,t){return e=z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=k.toFlatObject(k,{},null,(function(e){return/^is[A-Z]/.test(e)}));var $=function(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!k.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,a=n.dots,s=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(k.isDate(e))return e.toISOString();if(!i&&k.isBlob(e))throw new B("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(e)||k.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let i=e;if(e&&!r&&"object"==typeof e)if(k.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(k.isArray(e)&&function(e){return k.isArray(e)&&!e.some(U)}(e)||(k.isFileList(e)||k.endsWith(n,"[]"))&&(i=k.toArray(e)))return n=z(n),i.forEach((function(e,o){!k.isUndefined(e)&&null!==e&&t.append(!0===s?H([n],o,a):null===s?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(H(r,n,a),l(e)),!1)}const d=[],p=Object.assign(W,{defaultVisitor:c,convertValue:l,isVisitable:U});if(!k.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!k.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),k.forEach(n,(function(n,a){!0===(!(k.isUndefined(n)||null===n)&&r.call(t,n,k.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a])})),d.pop()}}(e),t};function V(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function G(e,t){this._pairs=[],e&&$(e,this,t)}const J=G.prototype;J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,V)}:V;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q=G;function K(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const o=n&&n.encode||K,r=n&&n.serialize;let a;if(a=r?r(t,n):k.isURLSearchParams(t)?t.toString():new Q(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var X=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){k.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var te=function(e){function t(e,n,o,r){let a=e[r++];const s=Number.isFinite(+a),i=r>=e.length;if(a=!a&&k.isArray(o)?o.length:a,i)return k.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s;o[a]&&k.isObject(o[a])||(o[a]=[]);return t(e,n,o[a],r)&&k.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let a;for(o=0;o{t(function(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null};const ne={"Content-Type":void 0};const oe={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=k.isObject(e);r&&k.isHTMLForm(e)&&(e=new FormData(e));if(k.isFormData(e))return o&&o?JSON.stringify(te(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return ee.isNode&&k.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=k.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||oe.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&k.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw B.from(e,B.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],(function(e){oe.headers[e]={}})),k.forEach(["post","put","patch"],(function(e){oe.headers[e]=k.merge(ne)}));var re=oe;const ae=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const se=Symbol("internals");function ie(e){return e&&String(e).trim().toLowerCase()}function le(e){return!1===e||null==e?e:k.isArray(e)?e.map(le):String(e)}function ce(e,t,n,o,r){return k.isFunction(o)?o.call(this,t,n):(r&&(t=n),k.isString(t)?k.isString(o)?-1!==t.indexOf(o):k.isRegExp(o)?o.test(t):void 0:void 0)}class de{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=ie(t);if(!r)throw new Error("header name must be a non-empty string");const a=k.findKey(o,r);(!a||void 0===o[a]||!0===n||void 0===n&&!1!==o[a])&&(o[a||t]=le(e))}const a=(e,t)=>k.forEach(e,((e,n)=>r(e,n,t)));return k.isPlainObject(e)||e instanceof this.constructor?a(e,t):k.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&ae[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=ie(e)){const n=k.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(k.isFunction(t))return t.call(this,e,n);if(k.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ie(e)){const n=k.findKey(this,e);return!(!n||void 0===this[n]||t&&!ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=ie(e)){const r=k.findKey(n,e);!r||t&&!ce(0,n[r],r,t)||(delete n[r],o=!0)}}return k.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!ce(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return k.forEach(this,((o,r)=>{const a=k.findKey(n,r);if(a)return t[a]=le(o),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();s!==r&&delete t[r],t[s]=le(o),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return k.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&k.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[se]=this[se]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=ie(e);t[o]||(!function(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return k.isArray(e)?e.forEach(o):o(e),this}}de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.freezeMethods(de.prototype),k.freezeMethods(de);var pe=de;function ue(e,t){const n=this||re,o=t||n,r=pe.from(o.headers);let a=o.data;return k.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function fe(e){return!(!e||!e.__CANCEL__)}function ge(e,t,n){B.call(this,null==e?"canceled":e,B.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(ge,B,{__CANCEL__:!0});var me=ge;var ye=ee.isStandardBrowserEnv?{write:function(e,t,n,o,r,a){const s=[];s.push(e+"="+encodeURIComponent(t)),k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(o)&&s.push("path="+o),k.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function he(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var _e=ee.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let o=n;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=k.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};var be=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=o[s];r||(r=l),n[a]=i,o[a]=l;let d=s,p=0;for(;d!==a;)p+=n[d++],d%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-r{const a=r.loaded,s=r.lengthComputable?r.total:void 0,i=a-n,l=o(i);n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const ve={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const r=pe.from(e.headers).normalize(),a=e.responseType;let s;function i(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}k.isFormData(o)&&(ee.isStandardBrowserEnv||ee.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const c=he(e.baseURL,e.url);function d(){if(!l)return;const o=pe.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),i()}),(function(e){n(e),i()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:o,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Y(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new B("Request aborted",B.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new B("Network Error",B.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new B(t,o.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,l)),l=null},ee.isStandardBrowserEnv){const t=(e.withCredentials||_e(c))&&e.xsrfCookieName&&ye.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===o&&r.setContentType(null),"setRequestHeader"in l&&k.forEach(r.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),k.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",we(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",we(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new me(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);p&&-1===ee.protocols.indexOf(p)?n(new B("Unsupported protocol "+p+":",B.ERR_BAD_REQUEST,e)):l.send(o||null)}))}};k.forEach(ve,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var xe=e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let r=0;re instanceof pe?e.toJSON():e;function Ee(e,t){t=t||{};const n={};function o(e,t,n){return k.isPlainObject(e)&&k.isPlainObject(t)?k.merge.call({caseless:n},e,t):k.isPlainObject(t)?k.merge({},t):k.isArray(t)?t.slice():t}function r(e,t,n){return k.isUndefined(t)?k.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function a(e,t){if(!k.isUndefined(t))return o(void 0,t)}function s(e,t){return k.isUndefined(t)?k.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function i(n,r,a){return a in t?o(n,r):a in e?o(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>r(je(e),je(t),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=l[o]||r,s=a(e[o],t[o],o);k.isUndefined(s)&&a!==i||(n[o]=s)})),n}const Pe="1.4.0",Le={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Le[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Oe={};Le.transitional=function(e,t,n){function o(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new B(o(r," has been removed"+(t?" in "+t:"")),B.ERR_DEPRECATED);return t&&!Oe[r]&&(Oe[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};var Te={assertOptions:function(e,t,n){if("object"!=typeof e)throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const a=o[r],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new B("option "+a+" must be "+n,B.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new B("Unknown option "+a,B.ERR_BAD_OPTION)}},validators:Le};const Me=Te.validators;class Ie{constructor(e){this.defaults=e,this.interceptors={request:new X,response:new X}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ee(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;let a;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),null!=o&&(k.isFunction(o)?t.paramsSerializer={serialize:o}:Te.assertOptions(o,{encode:Me.function,serialize:Me.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),a=r&&k.merge(r.common,r[t.method]),a&&k.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=pe.concat(a,r);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,p=0;if(!i){const e=[Se.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new me(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Re((function(t){e=t})),cancel:e}}}var Ne=Re;const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach((([e,t])=>{ke[t]=e}));var Fe=ke;const qe=function t(n){const o=new Ce(n),r=e(Ce.prototype.request,o);return k.extend(r,Ce.prototype,o,{allOwnKeys:!0}),k.extend(r,o,null,{allOwnKeys:!0}),r.create=function(e){return t(Ee(n,e))},r}(re);qe.Axios=Ce,qe.CanceledError=me,qe.CancelToken=Ne,qe.isCancel=fe,qe.VERSION=Pe,qe.toFormData=$,qe.AxiosError=B,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=function(e){return function(t){return e.apply(null,t)}},qe.isAxiosError=function(e){return k.isObject(e)&&!0===e.isAxiosError},qe.mergeConfig=Ee,qe.AxiosHeaders=pe,qe.formToJSON=e=>te(k.isHTMLForm(e)?new FormData(e):e),qe.HttpStatusCode=Fe,qe.default=qe;var De=qe,Be=n(214),Ue=n.n(Be);const{rest_api:ze,rest_nonce:He}=alm_localize,We=De.create({baseURL:ze,headers:{"content-type":"application/json","X-WP-Nonce":He}});async function $e(e,t,n){const{html:o="",meta:r={}}=t;if(!o||!e.addons.cache)return;const a={cache_id:e.addons.cache_id,cache_logged_in:e.addons.cache_logged_in,canonical_url:e.canonical_url,name:n,html:o.trim(),postcount:r.postcount,totalposts:r.totalposts},s=await We.post("ajax-load-more/cache/create",a);200===s.status&&s.data&&s.data.success&&console.log(s.data.msg)}function Ve(e,t,n){e&&(e.rel&&"prev"===e.rel&&(e.href=n),e.dataset.page=t,e.dataset.url=n||"")}function Ge(e){e&&e.lazy_images&&Je(e.el)}function Je(e){const t=e.getElementsByTagName("img");t&&Array.prototype.forEach.call(t,(e=>{e&&function(e){e&&(e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.dataset.ctLazy&&(e.src=e.dataset.ctLazy),e.dataset.ctLazySet&&(e.srcset=e.dataset.ctLazySet))}(e)}))}function Qe(e=null,t=""){if(!e)return!1;if(t.indexOf("Safari")>-1&&-1!==t.indexOf("Chrome")||t.indexOf("Firefox")>-1||t.indexOf("Windows")>-1)return!1;const n=e.querySelectorAll("img[srcset]:not(.alm-loaded)");for(let e=0;e{if(!alm_localize.a11y_focus)return!1;e.addons.woocommerce||e.addons.elementor?Xe(!1,!1,t,!1):e.transition_container&&n>0?e.addons.paging?Xe(e.init,e.addons.preloaded,e.listing,o):e.addons.single_post||e.addons.nextpage?Xe(!1,e.addons.preloaded,t,o):Xe(e.init,e.addons.preloaded,t,o):e.transition_container||Xe(e.init,e.addons.preloaded,t[0],o)};const Xe=(e=!0,t="false",n,o=!1)=>{if(!o&&(e||!n)&&"true"!==t)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";const r=(n.classList.contains("alm-listing")?n:n.parentNode).dataset.scrollContainer;if(r){document.querySelector(r)&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)};function Ze(e,t,n,o=!0){return new Promise((r=>{const{rel:a="next"}=n,s=t.length;let i=0,l=1;t="prev"===a?t.reverse():t,function c(){l<=s?async function(){t[i].style.opacity=0,await function(e,t,n,o="next",r=!0){function a(){"prev"===o?e.insertBefore(t,e.childNodes[0]):e.appendChild(t),Je(t),Qe(t,n)}return new Promise((e=>{t.style.transition="all 0.25s ease",r?Ke(t,(function(){a(),e(!0)})):(a(),e(!0))}))}(e,t[i],n.ua,a,o),l++,i++,c()}().catch((()=>{console.warn("There was an error loading the items.")})):(setTimeout((function(){if(t.map((function(e){return e.style.opacity=1,e})),t[0]){const e="prev"===a?t[t.length-1]:t[0];Ye(n,e,null,!1)}}),25),r(!0))}()}))}function et(e){return e.addons.elementor_type="posts",e.addons.elementor_settings=JSON.parse(e.listing.dataset.elementorSettings),e.addons.elementor_target=e.addons.elementor_settings.target,e.addons.elementor_element=e.addons.elementor_settings.target?document.querySelector(`.elementor-element ${e.addons.elementor_settings.target}`):"",e.addons.elementor_widget=function(e){if(!e)return!1;return e.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(e.addons.elementor_element),(e=function(e,t="posts"){return e.addons.elementor_container_class="woocommerce"===t?e.addons.elementor_settings.woo_container_class:e.addons.elementor_settings.posts_container_class,e.addons.elementor_item_class="woocommerce"===t?e.addons.elementor_settings.woo_item_class:e.addons.elementor_settings.posts_item_class,e.addons.elementor_pagination_class="woocommerce"===t?`.${e.addons.elementor_settings.woo_pagination_class}`:`.${e.addons.elementor_settings.posts_pagination_class}`,e}(e,e.addons.elementor_widget)).addons.elementor_pagination=e.addons.elementor_element.querySelector(e.addons.elementor_pagination_class)||e.addons.elementor_element.querySelector(`.${e.addons.elementor_settings.pagination_class}`),e.addons.elementor_pagination=!!e.addons.elementor_pagination&&e.addons.elementor_pagination,e.addons.elementor_controls=e.addons.elementor_settings.controls,e.addons.elementor_controls="true"===e.addons.elementor_controls,e.addons.elementor_scrolltop=parseInt(e.addons.elementor_settings.scrolltop),e.addons.elementor_next_page=nt(e.addons.elementor_pagination),e.addons.elementor_max_pages=e.addons.elementor_element.querySelector(".e-load-more-anchor"),e.addons.elementor_max_pages=e.addons.elementor_max_pages?parseInt(e.addons.elementor_max_pages.dataset.maxPage):999,e.addons.elementor_paged=e.addons.elementor_settings.paged?parseInt(e.addons.elementor_settings.paged):1,e.page=parseInt(e.page)+e.addons.elementor_paged,(e=function(e){if(!e.addons.elementor_element)return e;const t=e.addons.elementor_element,n=t.dataset.settings?JSON.parse(t.dataset.settings):"";if(!n)return e;e.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),e.addons.elementor_masonry&&(e.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),e.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),e.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),e.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return e}(e)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?"),e.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?"),e}function tt(e,t,n){const o=[],r=e.addons.elementor_masonry_columns,a=e.addons.elementor_masonry_columns_tablet,s=e.addons.elementor_masonry_columns_mobile,i=e.addons.elementor_masonry_gap;let l=r;const c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,d=window.innerWidth;l=d>c.lg?r:d>c.md?a:s;const p=document.querySelector(t);if(!p)return!1;const u=p.querySelectorAll(n);if(!u)return!1;u.forEach(((e,t)=>{const n=Math.floor(t/l),r=e.getBoundingClientRect().height+i;if(n){const n=jQuery(e).position(),a=t%l;let s=Math.round(n.top)-o[a];s*=-1,e.style.marginTop=`${Math.round(s)}px`,o[a]+=r}else o.push(r)}))}function nt(e){return e&&e.querySelector("a.next")?e.querySelector("a.next").href:""}var ot=function(e){const t=window.location.search.substring(1).split("&");for(let n=0;n1?o=o?ot("pg")?t.replace(/(pg=)[^\&]+/,"$1"+n):t+"&pg="+n:"?pg="+n:(o=t.replace(/(pg=)[^\&]+/,""),o="?"===o?"":o,o="&"===o[o.length-1]?o.slice(0,-1):o)),o}function st(e,t,n,o){if(t.classList.add(rt),t.dataset.page=o,o>1)t.dataset.url=e.canonical_url+at(e,n,o);else{let o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,t.dataset.url=e.canonical_url+o}return t}function it(e,t,n,o,r){return t.classList.add(o),t.dataset.page=r,"default"===e.addons.seo_permalink?t.dataset.url=r>1?e.canonical_url+n+"&paged="+r:e.canonical_url+n:t.dataset.url=r>1?e.canonical_url+e.addons.seo_leading_slash+"page/"+r+e.addons.seo_trailing_slash+n:e.canonical_url+n,t}function lt(e,t,n,o,r){return t.setAttribute("class","alm-reveal"+o+e.tcc),t.dataset.page=r,"default"===e.addons.seo_permalink?t.dataset.url=r>1?e.canonical_url+n+"&paged="+r:e.canonical_url+n:t.dataset.url=r>1?e.canonical_url+e.addons.seo_leading_slash+"page/"+r+e.addons.seo_trailing_slash+n:e.canonical_url+n,t}function ct(e,t){return"true"===e?parseInt(t)+1:t}function dt(e,t,n){const o={html:"",meta:{postcount:0,totalposts:0}},{single_post_target:r}=e.addons;if(200===t.status&&t.data&&r){const a=document.createElement("div");a.innerHTML=t.data;const s=a.querySelector(r);if(!s)return console.warn(`Ajax Load More: Unable to find ${r} element.`),o;const i=window&&window.almSinglePostsCustomElements;i&&s.appendChild(function(e="",t=[]){const n=document.createElement("div");if(n.classList.add("alm-custom-elements"),!e||!t)return n;t=Array.isArray(t)?t:[t];for(let o=0;o1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),e.listing.removeAttribute("aria-live"),e.listing.removeAttribute("aria-atomic");const r=n.querySelector(e.addons.woocommerce_settings.products);if(r?(r.classList.add("alm-woocommerce"),r.dataset.url=e.addons.woocommerce_settings.paged_urls[e.addons.woocommerce_settings.paged-1],r.dataset.page=e.page,r.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),o>1&&e.addons.woocommerce_settings.settings.previous_products){!function(e,t,n=1,o,r){if(!r)return;const a=document.createElement("div");a.classList.add("alm-btn-wrap--prev");const s=document.createElement("a");s.href=o,s.innerHTML=r,s.setAttribute("rel","prev"),s.dataset.page=n,s.dataset.url=o,s.setAttribute("class",`alm-load-more-btn alm-load-more-btn--prev ${e.loading_style}`),s.addEventListener("click",(function(t){e.AjaxLoadMore.prevClick(t)})),e.AjaxLoadMore.setPreviousButton(s),a.appendChild(s),t.parentNode.insertBefore(a,t)}(e,n,o-1,e.addons.woocommerce_settings.paged_urls[o-2],e.addons.woocommerce_settings.settings.previous_products)}}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")}const ft=["#text","#comment"];function gt(e=null,t=null,n="fade"){if(!e||!t)return!1;for(let o=0;o-1===t.indexOf(e.nodeName.toLowerCase())))};var At=function(e=null){if(!e)return!1;const t=document.createElement("tbody");t.innerHTML=e;return[t]};const St=(e,t)=>{if(0===t)e.style.opacity=1,e.style.height="auto";else{t/=10;let n=0;const o=setInterval((function(){n>.9&&(e.style.opacity=1,clearInterval(o)),e.style.opacity=n,n+=.1}),t);e.style.height="auto"}},jt=(e,t)=>{t/=10,e.style.opacity=.5;const n=setInterval((function(){e.style.opacity<.1?clearInterval(n):e.style.opacity-=.1}),t)};function Et(e,t=!1,n=!1){if(0==(e.localize&&e.localize.post_count?parseInt(e.localize.post_count):0)&&!e.addons.single_post)return!1;if(e&&e.tableofcontents&&e.transition_container&&"masonry"!==e.transition){const o=e.tableofcontents.dataset.offset?parseInt(e.tableofcontents.dataset.offset):30,r=e.start_page?parseInt(e.start_page):0,a=e.addons.filters_startpage?parseInt(e.addons.filters_startpage):0,s=e.addons.nextpage_startpage?parseInt(e.addons.nextpage_startpage):0;let i=parseInt(e.page);const l="true"===e.addons.preloaded;if(e.addons.paging||e.addons.nextpage)return!1;t?setTimeout((function(){if(e.addons.seo&&r>1||e.addons.filters&&a>1||e.addons.nextpage&&s>1){if(e.addons.seo&&r>1)for(let t=0;t1)for(let t=0;t1)for(let t=0;t0||e.addons.filters&&a>0||(i+=1)),Pt(e,i,o))}}function Pt(e,t,n){if(!e.tableofcontents)return!1;const o=document.createElement("button");o.type="button",t=parseInt(t)+1,o.innerHTML=function(e,t){let n=t;if(e.addons.single_post){let o,r=t-1;if(e.addons.single_post_target){e.init||(r+=1);const t=document.querySelectorAll(".alm-reveal.alm-single-post");t&&(o=t[r])}else o=document.querySelector(`.alm-reveal.alm-single-post[data-page=${t-1}]`);n=o?o.dataset.title:n}const o=`almTOCLabel_${e.id}`;"function"==typeof window[o]&&(n=window[o](t,n));return n}(e,t),o.dataset.page=e.addons.single_post_target&&e.init?t-1:t,e.tableofcontents.appendChild(o),o.addEventListener("click",(function(){const t=this.dataset.page;let o=document.querySelector(`.alm-reveal:nth-child(${t})`)||document.querySelector(`.alm-nextpage:nth-child(${t})`);if(e.addons.single_post_target&&(o=document.querySelector(`.alm-reveal.alm-single-post[data-page="${t}"]`)),!o)return!1;const r="function"==typeof fn?fn(o).top:o.offsetTop;un(r-n),setTimeout((function(){Ye(e,o,t,!1)}),1e3)}))}function Lt(e,t=150,n,o="filter"){if(n.target){const r=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target.toLowerCase()+'"]');r&&r.forEach((function(r){Ot(e,t,n,o,r)}))}else{const r=document.querySelectorAll(".ajax-load-more-wrap");r&&r.forEach((function(r){Ot(e,t,n,o,r)}))}!function(){const e=document.querySelector(".alm-toc");e&&(e.innerHTML="")}()}function Ot(e,t,n,o,r){if("fade"===e||"masonry"===e){switch(o){case"filter":r.classList.add("alm-is-filtering"),jt(r,t);break;case"tab":r.classList.add("alm-loading");const e=r.querySelector(".alm-listing");r.style.height=e.offsetHeight+"px",jt(e,t)}setTimeout((function(){Tt(t,n,o,r)}),t)}else r.classList.add("alm-is-filtering"),Tt(t,n,o,r)}function Tt(e,t,n,o){const r=o.querySelector(".alm-btn-wrap"),a=o.querySelectorAll(".alm-listing");if(!a||!r)return!1;[...a].forEach((function(e){e.innerHTML=""}));const s=r.querySelector(".alm-load-more-btn");s&&s.classList.remove("done");const i=r.querySelector(".alm-paging");i&&(i.style.opacity=0),t.preloadedAmount=0,function(e,t,n,o){const r=o.querySelector(".alm-listing")||o.querySelector(".alm-comments");if(!r)return!1;switch(n){case"filter":for(let[e,n]of Object.entries(t))e=e.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),r.setAttribute("data-"+e,n);St(o,e);break;case"tab":r.setAttribute("data-preloaded","false"),r.setAttribute("data-pause","false"),r.setAttribute("data-tab-template",t.tabTemplate)}let a="";t.target?(a=document.querySelector('.ajax-load-more-wrap[data-id="'+t.target+'"]'),a&&window.almInit(a)):(a=document.querySelector(".ajax-load-more-wrap"),a&&window.almInit(a));switch(n){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}(e,t,n,o)}var Mt={init(e){if(!0===this.isScript(e))e.parentNode.replaceChild(this.clone(e),e);else{let t=0,n=e.childNodes;if(void 0===n){const t=(new DOMParser).parseFromString(e,"text/html");t&&(n=t.body.childNodes)}for(;t=0;n--)t.setAttribute(e.attributes[n].name,e.attributes[n].value);return t}};const It=n(564);function Ct(e,t,n){return e.masonry||console.warn("Ajax Load More: Unable to locate Masonry settings."),new Promise((o=>{const r=e.listing,a=e.html,s=e.masonry.selector;let i=e.masonry.columnwidth;const l=e.masonry.animation;let c=e.masonry.horizontalorder;const d=e.speed,p=e.masonry.init,u=(d+100)/1e3+"s";let f="scale(0.5)",g="scale(1)";if("zoom-out"===l&&(f="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===l&&(f="translateY(50px)",g="translateY(0)"),"slide-down"===l&&(f="translateY(-50px)",g="translateY(0)"),"none"===l&&(f="translateY(0)",g="translateY(0)"),i?isNaN(i)||(i=parseInt(i)):i=s,c="true"===c,n)r.parentNode.style.opacity=0,Ct(e,!0,!1),o(!0);else if(p&&t)Qe(r,e.ua),It(r,(function(){const t={itemSelector:s,transitionDuration:u,columnWidth:i,horizontalOrder:c,hiddenStyle:{transform:f,opacity:0},visibleStyle:{transform:g,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));const a=r.querySelectorAll(s);e.addons.filters&&function(e,t){if(!e.addons.filters)return t;let n=1;const o=e.page,r=window.location.search;if(e.addons.filters_startpage>1){const o=parseInt(e.posts_per_page),a=[];for(let e=0;e0?s*o:0;n=s+1,t[a]&&(t[a]=st(e,t[a],r,n))}}else n=o,t&&t[0]&&(t[0]=st(e,t[0],r,n))}(e,Array.prototype.slice.call(a)),e.addons.seo&&function(e,t){if(!e.addons.seo)return t;let n=1;const o=e.page,r="alm-seo",a=window.location.search;if(e.start_page>1){const o=parseInt(e.posts_per_page),s=[];for(let e=0;e0?i*o:0;n=i+1,t[s]&&(t[s]=it(e,t[s],a,r,n))}}else n=o,t[0]=it(e,t[0],a,r,n)}(e,Array.prototype.slice.call(a)),setTimeout((function(){e.msnry=new Masonry(r,t),St(r.parentNode,125),o(!0)}),1)}));else{const t=xt(yt(a,"text/html"));t&&(gt(e.listing,t,"masonry"),Qe(r,e.ua),It(r,(function(){e.msnry.appended(t),Ye(e,t,t.length,!1),e.addons.filters&&function(e,t){if(!e.addons.filters)return t;const n=window.location.search;let o=e.page+1;o="true"===e.addons.preloaded?o+1:o,st(e,t,n,o)}(e,t[0]),e.addons.seo&&function(e,t){if(!e.addons.seo)return t;const n=window.location.search;let o=e.page+1;o="true"===e.addons.preloaded?o+1:o,it(e,t,n,"alm-seo",o)}(e,t[0]),o(!0)})))}}))}var Rt=(e,t="")=>{if(""===t)return!1;t=t.replace(/(

<\/p>)+/g,""),e.innerHTML=t};function Nt(e){if(!e||!e.main||e.addons.paging)return!1;e.placeholder&&(jt(e.placeholder,150),setTimeout((function(){e.placeholder.style.display="none"}),75))}function kt(e,t="standard"){if(!e.resultsText||"true"===e.nested)return!1;!function(e,t="standard"){if(!e.resultsText||!e.localize||"true"===e.nested)return!1;let n=0,o=0,r=0,a=0;const s=e.orginal_posts_per_page;switch(t){case"nextpage":n=parseInt(e.localize.page),r=n,o=parseInt(e.localize.total_posts),a=parseInt(o),qt(e.resultsText,n,o,r,a,s);break;case"woocommerce":break;default:n=bt("page",e.id),o=bt("pages",e.id),r=bt("post_count",e.id),a=bt("total_posts",e.id),qt(e.resultsText,n,o,r,a,s)}}(e,"nextpage"===t||"woocommerce"===t?t:"standard")}function Ft(e,t="standard"){if(!e.resultsText||!e.localize||"true"===e.nested)return!1;let n=0,o=Math.ceil(e.localize.total_posts/e.orginal_posts_per_page),r=parseInt(e.localize.post_count);const a=parseInt(e.localize.total_posts);switch(t){case"nextpage":n=e.addons.nextpage_startpage,r=n,o=a,qt(e.resultsText,n,a,r,a,e.posts_per_page);break;case"preloaded":n=e.addons.paging&&e.addons.seo?parseInt(e.start_page)+1:parseInt(e.page)+1,qt(e.resultsText,n,o,r,a,e.posts_per_page);break;case"woocommerce":break;default:console.log("No results to set.")}}const qt=function(e,t,n,o,r,a){e.forEach((function(e){let s=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;const i=t*a-a+1,l=t*a,c=l<=r?l:r;n>0?(s=s.replace("{num}",`${t}`),s=s.replace("{page}",`${t}`),s=s.replace("{start}",`${i}`),s=s.replace("{end}",`${c}`),s=s.replace("{total}",`${n}`),s=s.replace("{pages}",`${n}`),s=s.replace("{post_count}",`${o}`),s=s.replace("{total_posts}",`${r}`),e.innerHTML=s):e.innerHTML=s}))};function Dt(e){const{addons:t}=e;return new Promise((n=>{let o="standard";if(t.nextpage)o="nextpage",t.paging?e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+1):e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+parseInt(t.nextpage_startpage)+1);else if(t.woocommerce)o="woocommerce",e.AjaxLoadMore.setLocalizedVar("page",parseInt(e.page)+1);else{const n="true"===t.preloaded?parseInt(e.page)+2:parseInt(e.page)+1;e.AjaxLoadMore.setLocalizedVar("page",parseInt(n));let o=Math.ceil(e.totalposts/e.orginal_posts_per_page);o="true"===t.preloaded?o+1:o,e.AjaxLoadMore.setLocalizedVar("pages",parseInt(o))}"true"===t.preloaded||t.nextpage||t.woocommerce||e.AjaxLoadMore.setLocalizedVar("total_posts",e.totalposts),e.AjaxLoadMore.setLocalizedVar("post_count",function(e){const{postcount:t,addons:n}=e,{preloaded_amount:o}=n;let r=parseInt(t)+parseInt(o);return r=e.start_page>1?r-parseInt(o):r,r=n.filters_startpage>1?r-parseInt(o):r,r=n.single_post?r+1:r,r=n.nextpage?r+1:r,r}(e)),kt(e,o),n(!0)}))}var Bt=n(379),Ut=n.n(Bt),zt=n(795),Ht=n.n(zt),Wt=n(569),$t=n.n(Wt),Vt=n(565),Gt=n.n(Vt),Jt=n(216),Qt=n.n(Jt),Kt=n(589),Yt=n.n(Kt),Xt=n(789),Zt=n.n(Xt),en={};en.styleTagTransform=Yt(),en.setAttributes=Gt(),en.insert=$t().bind(null,"head"),en.domAPI=Ht(),en.insertStyleElement=Qt();Ut()(Zt(),en),Zt()&&Zt().locals&&Zt().locals;const tn=n(129),nn=n(564);De.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",De.interceptors.request.use((e=>(e.paramsSerializer=e=>tn.stringify(e,{arrayFormat:"brackets",encode:!1}),e))),n(334),n(793);let on=!1;!function(){const e=function(e,t){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);let n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.postcount=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.rel="next",n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),e.classList.add("alm-"+t),e.setAttribute("data-alm-id",t),n.master_id=e.dataset.id?`ajax_load_more_${e.dataset.id}`:e.id,n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],window[n.master_id]=n,n.main=e,n.listing=e.querySelector(".alm-listing")||e.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=e.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.loading_style=n.listing.dataset.loadingStyle,n.canonical_url=e.dataset.canonicalUrl,n.nested=e.dataset.nested?e.dataset.nested:null,n.is_search=e.dataset.search,n.slug=e.dataset.slug,n.post_id=e.dataset.postId,n.id=e.dataset.id?e.dataset.id:"";const o=e.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=e.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=!!n.listing.dataset.pauseOverride&&n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):150,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.lazy_images=!!n.listing.dataset.lazyImages&&n.listing.dataset.lazyImages,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=et(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=!(!n.listing.dataset.cache||"true"!==n.listing.dataset.cache),n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=!!n.listing.dataset.cacheLoggedIn&&n.listing.dataset.cacheLoggedIn),n.addons.cta=!(!n.listing.dataset.cta||"true"!==n.listing.dataset.cta),n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=parseInt(n.listing.dataset.nextpageStartpage),n.addons.nextpage_title_template=n.listing.dataset.nextpageTitleTemplate),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=void 0===n.listing.dataset.singlePostOrder?"previous":n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=void 0===n.listing.dataset.singlePostTaxonomy?"":n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=void 0===n.listing.dataset.singlePostExcludedTerms?"":n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=void 0===n.listing.dataset.singlePostProgressBar?"":n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=void 0===n.listing.dataset.singlePostTarget?"":n.listing.dataset.singlePostTarget,n.addons.single_post_preview=void 0!==n.listing.dataset.singlePostPreview,n.addons.single_post_preview)){const e=n.listing.dataset.singlePostPreview.split(":");n.addons.single_post_preview_data={button_label:e[0]?e[0]:"Continue Reading",height:e[1]?e[1]:500,element:e[2]?e[2]:"default",className:"alm-single-post--preview"}}if(n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.seo_offset=n.listing.dataset.seoOffset,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi="true"===n.listing.dataset.restapi,n.extensions.restapi&&(n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug),n.extensions.acf="true"===n.listing.dataset.acf,n.extensions.acf&&(n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_row_index=n.listing.dataset.acfRowIndex,n.extensions.acf_post_id=n.listing.dataset.acfPostId,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1)),n.extensions.term_query="true"===n.listing.dataset.termQuery,n.extensions.term_query&&(n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber),n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_target=!!n.listing.dataset.filtersTarget&&n.listing.dataset.filtersTarget,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0,n.facets="true"===n.listing.dataset.facets,n.addons.filters_target||console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters="true" target="filters"]');const e=ht("pg");n.addons.filters_startpage=null!==e?parseInt(e):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if(n.extensions.restapi&&(n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi),"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&null!==n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),n.addons.nextpage_postTitle=n.listing.dataset.nextpagePostTitle):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_cache=!1,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?9999:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1===n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=_t(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,"masonry"===n.transition&&(n=function(e){e.masonry={},e.masonry.init=!0,e.msnry?e.msnry.destroy():e.msnry="";const t=JSON.parse(e.listing.dataset.masonryConfig);return t?(e.masonry.selector=t.selector,e.masonry.columnwidth=t.columnwidth,e.masonry.animation=""===t.animation?"standard":t.animation,e.masonry.horizontalorder=""===t.horizontalorder?"true":t.horizontalorder,e.transition_container=!1,e.images_loaded=!1):console.warn("Ajax Load More: Unable to locate Masonry configuration settings."),e}(n)),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{const t=e.childNodes;if(t){const e=Array.prototype.slice.call(t).filter((function(e){return!!e.classList&&e.classList.contains("alm-btn-wrap")}));n.button=e?e[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(e){e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){n.disable_ajax||("function"==typeof almOnChange&&window.almOnChange(n),n.loading=!0,function(e){if(!e||!e.main||e.addons.paging||"prev"===e.rel)return!1;e.placeholder&&(e.placeholder.style.display="block",St(e.placeholder,150))}(n),n.main.classList.add("alm-loading"),n.addons.paging||("prev"===n.rel?n.buttonPrev.classList.add("loading"):(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label))),n.AjaxLoadMore.ajax())},n.AjaxLoadMore.ajax=async function(e="standard"){if(n.extensions.restapi)n.AjaxLoadMore.restapi(n);else{const t=wt(n,e),o=await async function(e,t){if(!e.addons.cache||e.addons.cache&&e.addons.cache_logged_in)return!1;const n={id:e.addons.cache_id,name:t.cache_slug},o=await We.get("ajax-load-more/cache/get",{params:n});return!(200!==o.status||!o.data)&&o.data}(n,Object.assign({},t));o?n.AjaxLoadMore.render(o):n.AjaxLoadMore.adminajax(t,e)}},n.AjaxLoadMore.adminajax=async function(e,t){let{ajaxurl:o}=alm_localize;const{cache_slug:r=""}=e;n.addons.single_post&&n.addons.single_post_target&&(o=`${n.addons.single_post_permalink}?id=${n.addons.single_post_id}&alm_page=${parseInt(n.page)+1}`,e=""),(n.addons.woocommerce||n.addons.elementor&&"posts"===n.addons.elementor_type)&&(o=function(e,t="next"){if(!e||!e.trigger)return!1;let n=e.trigger.querySelector(".alm-load-more-btn");"prev"===t&&(n=document.querySelector(".alm-load-more-btn--prev"));return(n?n.dataset.url:"")||""}(n,n.rel),e="");const a=await De.get(o,{params:e}).then((function(e){return n.addons.single_post&&n.addons.single_post_target?dt(n,e,r):n.addons.woocommerce?function(e,t,n,o){const r={html:"",meta:{postcount:0,totalposts:0}};if(200===n.status&&n.data){const{addons:a,pagePrev:s,rel:i="next",page:l,localize:c}=e,{total_posts:d}=c,{woocommerce_settings:p={}}=a,u="prev"===i?s:l+1,f=document.createElement("div");f.innerHTML=n.data;const g=f.querySelector("title").innerHTML;r.pageTitle=g;const m=f.querySelector(p.container);if(!m)return console.warn(`Ajax Load More WooCommerce: Unable to find WooCommerce ${p.container} element.`),r;const y=m?m.querySelector(p.products):null;y&&(y.classList.add("alm-woocommerce"),y.dataset.url=t,y.dataset.page=u,y.dataset.pageTitle=g);const h=m.querySelectorAll(p.products);h&&(r.html=m?m.innerHTML:"",r.meta.postcount=h.length,r.meta.totalposts=d,$e(e,r,o)),function(e="",t){if(e&&t&&t.addons.woocommerce_settings.results_text){const n=e.querySelector(t.addons.woocommerce_settings.results);t.addons.woocommerce_settings.results_text&&t.addons.woocommerce_settings.results_text.forEach((e=>{e.innerHTML=n.innerHTML}))}}(f,e)}return r}(n,o,e,r):n.addons.elementor?function(e,t,n,o){const r={html:"",meta:{postcount:0,totalposts:0}};if(200===n.status&&n.data){const{addons:a}=e,s=document.createElement("div");s.innerHTML=n.data;const i=s.querySelector("title").innerHTML;r.pageTitle=i;const l=s.querySelector(`${a.elementor_target} .${a.elementor_container_class}`);if(!l)return console.warn("Ajax Load More Elementor: Unable to find Elementor container element."),r;const c=l?l.querySelector(`.${a.elementor_item_class}`):null;c&&(c.classList.add("alm-elementor"),c.dataset.url=t,c.dataset.page=a.elementor_paged,c.dataset.pageTitle=i);const d=l.querySelectorAll(`.${a.elementor_item_class}`);d&&(r.html=l?l.innerHTML:"",r.meta.postcount=d.length,r.meta.totalposts=d.length,$e(e,r,o))}return r}(n,o,e,r):e.data})).catch((function(e){n.AjaxLoadMore.error(e,"adminajax")}));switch(t){case"standard":n.AjaxLoadMore.render(a);break;case"totalposts":case"totalpages":n.addons.paging&&n.addons.nextpage&&"function"==typeof almBuildPagination?(window.almBuildPagination(a.totalpages,n),n.totalpages=a.totalpages):n.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(a.totalposts,n)}},n.AjaxLoadMore.restapi=function(e){const t=wp.template(e.extensions.restapi_template_id),n=`${e.extensions.restapi_base_url}/${e.extensions.restapi_namespace}/${e.extensions.restapi_endpoint}`,o=function(e){return{id:e.id,post_id:parseInt(e.post_id),posts_per_page:e.posts_per_page,page:e.page,offset:e.offset,slug:e.slug,canonical_url:e.canonical_url,post_type:e.post_type,post_format:e.listing.dataset.postFormat,category:e.listing.dataset.category,category__not_in:e.listing.dataset.categoryNotIn,tag:e.listing.dataset.tag,tag__not_in:e.listing.dataset.tagNotIn,taxonomy:e.listing.dataset.taxonomy,taxonomy_terms:e.listing.dataset.taxonomyTerms,taxonomy_operator:e.listing.dataset.taxonomyOperator,taxonomy_relation:e.listing.dataset.taxonomyRelation,meta_key:e.listing.dataset.metaKey,meta_value:e.listing.dataset.metaValue,meta_compare:e.listing.dataset.metaCompare,meta_relation:e.listing.dataset.metaRelation,meta_type:e.listing.dataset.metaType,author:e.listing.dataset.author,year:e.listing.dataset.year,month:e.listing.dataset.month,day:e.listing.dataset.day,post_status:e.listing.dataset.postStatus,order:e.listing.dataset.order,orderby:e.listing.dataset.orderby,post__in:e.listing.dataset.postIn,post__not_in:e.listing.dataset.postNotIn,search:e.listing.dataset.search,s:e.listing.dataset.s,custom_args:e.listing.dataset.customArgs,vars:e.listing.dataset.vars,lang:e.lang,preloaded:e.addons.preloaded,preloaded_amount:e.addons.preloaded_amount,seo_start_page:e.start_page}}(e);De.get(n,{params:o}).then((function(n){const o=n.data,{html:r=null,meta:a=null}=o,s=a&&a.postcount?a.postcount:0,i=a&&a.totalposts?a.totalposts:0;let l="";for(let n=0;n0&&n.AjaxLoadMore.pagingInit(a,"alm-reveal"),0===i&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){Rt(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),n.addons.filters&&n.facets&&t.facets&&"function"==typeof almFiltersFacets&&window.almFiltersFacets(t.facets),function(e){if(e&&e.debug){const t={query:e.debug,localize:e.localize};console.log("ALM Debug:",t)}}(n),(async()=>{await Dt(n)})(),i>0){if(n.addons.paging)if(n.init)setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed);else{const e=n.listing.querySelector(".alm-paging-content");e&&(jt(e,n.speed),e.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){e.style.opacity=0,e.innerHTML=n.html,nn(e,(function(){n.AjaxLoadMore.triggerAddons(n),St(e,n.speed),setTimeout((function(){e.style.opacity="",Mt.init(e)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25))}else{if(n.addons.single_post){if(r.setAttribute("class",`alm-reveal alm-single-post post-${n.addons.single_post_id}${n.tcc?` ${n.tcc}`:""}`),r.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?r.dataset.page=parseInt(n.page)+1:r.dataset.page=n.page,r.dataset.id=n.addons.single_post_id,r.dataset.title=n.addons.single_post_title,r.innerHTML=n.html,n.addons.single_post_preview&&n.addons.single_post_preview_data&&"function"==typeof almSinglePostCreatePreview){const e=window.almSinglePostCreatePreview(r,n.addons.single_post_id,n.addons.single_post_preview_data);r.replaceChildren(e||r)}}else if(n.transition_container){let e;const t=window.location.search,a=n.addons.seo?" alm-seo":"",s=n.addons.filters?" alm-filters":"",l=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){const c=[],d=[];let p=parseInt(n.posts_per_page),u=Math.ceil(i/p);o=!0,n.addons.cta&&(p+=1,u=Math.ceil(i/p),i=u+i);const f=xt(yt(n.html,"text/html"));for(let e=0;e0||"true"===n.addons.preloaded?(e=o+1+r,n.addons.seo&&(i=lt(n,i,t,a,ct(n.addons.seo_offset,e))),n.addons.filters&&(i.setAttribute("class","alm-reveal"+s+n.tcc),i.dataset.url=n.canonical_url+at(n,t,e),i.dataset.page=e)):(n.addons.seo&&(i=lt(n,i,t,a+l,ct(n.addons.seo_offset,1))),n.addons.filters&&(i.setAttribute("class","alm-reveal"+s+l+n.tcc),i.dataset.url=n.canonical_url+at(n,t,0),i.dataset.page="1")),gt(i,c[o]),Qe(i,n.ua),d.push(i)}n.listing.style.opacity=0,n.listing.style.height=0,gt(n.listing,d),r=n.listing,n.el=r}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){const o="true"===n.addons.preloaded?1:0;e=n.page+1+o,n.addons.seo?r=lt(n,r,t,a,ct(n.addons.seo_offset,e)):n.addons.filters?(r.setAttribute("class","alm-reveal"+s+n.tcc),r.dataset.url=n.canonical_url+at(n,t,e),r.dataset.page=e):r.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(r.setAttribute("class","alm-reveal"+s+n.tcc),r.dataset.url=n.canonical_url+at(n,t,parseInt(n.page)+1),r.dataset.page=parseInt(n.page)+1):n.addons.seo?r=lt(n,r,t,a,ct(n.addons.seo_offset,1)):r.setAttribute("class","alm-reveal"+n.tcc);r.innerHTML=n.html}}else n.el=n.html,r="table"===n.container_type?At(n.html):xt(yt(n.html,"text/html"));if(n.addons.woocommerce)return async function(){await function(e,t){return!(!e||!t)&&new Promise((n=>{const{woocommerce_settings:o={}}=t.addons,{settings:r={}}=o,a=document.querySelector(o.container),s=e.querySelectorAll(o.products),i=!(!r||"true"!==r.images_loaded);if(a&&s){const e=Array.prototype.slice.call(s);(async function(){await Ze(a,e,t,i),n(!0)})().catch((e=>{console.log(e,"There was an error with WooCommerce")})),"function"==typeof almWooCommerceLoaded&&window.almWooCommerceLoaded(s)}}))}(r,n),function(e){const t=e.page+2,n=e.addons.woocommerce_settings.paged_urls[t-1];if("prev"===e.rel&&e.buttonPrev){const t=e.pagePrev-1,n=e.addons.woocommerce_settings.paged_urls[e.pagePrev-2];Ve(e.buttonPrev,t,n),pt(!0)}else Ve(e.button,t,n);Ge(e),"function"==typeof almComplete&&"masonry"!==e.transition&&window.almComplete(e),e.AjaxLoadMore.transitionEnd(),"prev"===e.rel&&e.pagePrev<=1&&e.AjaxLoadMore.triggerDonePrev(),"next"===e.rel&&t>parseInt(e.addons.woocommerce_settings.pages)&&e.AjaxLoadMore.triggerDone()}(n)}().catch((e=>{console.warn("Ajax Load More: There was an error loading woocommerce products.",e)})),void(n.init=!1);if(n.addons.elementor)return async function(){await function(e,t){return e&&t?new Promise((n=>{const{addons:o}=t,r=t.addons.elementor_element.querySelector(`.${o.elementor_container_class}`),a=e.querySelectorAll(`.${o.elementor_item_class}`);if(r&&a){const e=Array.prototype.slice.call(a);"function"==typeof almElementorLoaded&&window.almElementorLoaded(e),async function(){await Ze(r,e,t),o.elementor_masonry&&setTimeout((function(){tt(t,`.${o.elementor_container_class}`,`.${o.elementor_item_class}`)}),125),n(!0)}().catch((e=>{console.log(e,"There was an error with Elementor")}))}else n(!1)})):(t.AjaxLoadMore.triggerDone(),!1)}(r,n),function(e){const{trailing_slash:t,is_front_page:n}=alm_localize,{page:o,button:r,canonical_url:a,AjaxLoadMore:s,addons:i}=e,l=o+1,c=`${a+("true"===n?"page/":"true"===t?"":"/")}${l+1}${"true"===t?"/":""}`,d=i.elementor_max_pages;Ve(r,l,c),Ge(e),"function"==typeof almComplete&&"masonry"!==e.transition&&window.almComplete(e),s.transitionEnd(),l>=d&&s.triggerDone()}(n)}().catch((e=>{console.warn("Ajax Load More: There was an error loading Elementor items.",e)})),void(n.init=!1);("masonry"!==n.transition||n.init&&"true"!==n.addons.preloaded)&&(o||(n.transition_container?n.listing.appendChild(r):"true"===n.images_loaded?nn(r,(function(){gt(n.listing,r),Qe(n.listing,n.ua)})):(gt(n.listing,r),Qe(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,async function(){await Ct(n,n.init,on),n.masonry.init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n),Ge(n)}().catch((()=>{console.error("There was an error with ALM Masonry")}))):"none"===n.transition&&n.transition_container?"true"===n.images_loaded?nn(r,(function(){St(r,0),n.AjaxLoadMore.transitionEnd()})):(St(r,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?nn(r,(function(){n.transition_container&&St(r,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&St(r,n.speed),n.AjaxLoadMore.transitionEnd())}nn(r,(function(){n.AjaxLoadMore.nested(r),Mt.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),Ge(n),on&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(e),on=!1,n.addons.single_post||(n.addons.nextpage?n.postcount+n.addons.nextpage_startpage>=n.totalposts&&n.AjaxLoadMore.triggerDone():n.postcount>=n.totalposts&&n.AjaxLoadMore.triggerDone())})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){let e=n.page+1;e="true"===n.addons.preloaded?e++:e,parseInt(e)===parseInt(n.destroy_after)&&n.AjaxLoadMore.destroyed()}Et(n,n.init),"masonry"!==n.transition&&Ye(n,r,i,on),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),on&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(e),on=!1),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(e){e=null===e?"":e,n.AjaxLoadMore.pagingInit(e,"alm-reveal"),""===e&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&Rt(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(e){e=null===e?"":e,n.AjaxLoadMore.pagingInit(e,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(e,t="alm-reveal"){e=null===e?"":e;const o=document.createElement("div");o.setAttribute("class",t);const r=document.createElement("div");r.setAttribute("class","alm-paging-content"+n.tcc),r.innerHTML=e,o.appendChild(r);const a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),o.appendChild(a),n.listing.appendChild(o);const s=window.getComputedStyle(n.listing),i=parseInt(s.getPropertyValue("padding-top").replace("px","")),l=parseInt(s.getPropertyValue("padding-bottom").replace("px","")),c=o.offsetHeight;n.listing.style.height=c+i+l+"px",Mt.init(o),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(e){if(!e||!n.transition_container)return!1;const t=e.querySelectorAll(".ajax-load-more-wrap");t&&t.forEach((function(e){window.almInit(e)}))},n.AjaxLoadMore.getSinglePost=async function(){if(n.fetchingPreviousPost)return;n.fetchingPreviousPost=!0;const e={action:"alm_get_single",id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init};return await De.get(alm_localize.ajaxurl,{params:e}).then((function(e){const{data:t}=e;return t.has_previous_post?(n.listing.dataset.singlePostId=t.prev_id,n.addons.single_post_id=t.prev_id,n.addons.single_post_permalink=t.prev_permalink,n.addons.single_post_title=t.prev_title,n.addons.single_post_slug=t.prev_slug,n.addons.single_post_cache=t.cache):(n.addons.single_post_cache=!1,t.has_previous_post||n.AjaxLoadMore.triggerDone()),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,t.current_id,t.permalink,t.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1,t})).catch((function(e){n.AjaxLoadMore.error(e,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.triggerAddons=function(e){"function"==typeof almSetNextPage&&e.addons.nextpage&&window.almSetNextPage(e),"function"==typeof almSEO&&e.addons.seo&&window.almSEO(e,!1),"function"==typeof almWooCommerce&&e.addons.woocommerce&&window.almWooCommerce(e),"function"==typeof almElementor&&e.addons.elementor&&window.almElementor(e)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,Nt(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.removeAttribute("rel"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.triggerDonePrev=function(){n.loading=!1,Nt(n),n.addons.paging||(n.buttonPrev.classList.add("done"),n.buttonPrev.removeAttribute("rel"),n.buttonPrev.disabled=!0),"function"==typeof almDonePrev&&setTimeout((function(){window.almDonePrev(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.click=function(e){const t=e.target||e.currentTarget;n.rel="next","true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||t.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),t.blur()},n.AjaxLoadMore.prevClick=function(e){const t=e.target||e.currentTarget;e.preventDefault(),n.loading||t.classList.contains("done")||(n.loading=!0,n.pagePrev--,n.rel="prev",n.AjaxLoadMore.loadPosts(),t.blur())},n.AjaxLoadMore.setPreviousButton=function(e){n.pagePrev=n.page,n.buttonPrev=e},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.scroll_distance_perc||"horizontal"===n.scroll_direction){let e;n.window.onresize=function(){clearTimeout(e),e=setTimeout((function(){n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=_t(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{const e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){const e=n.trigger.getBoundingClientRect();let t=Math.round(e.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){const e=n.main.offsetHeight,o=n.main.offsetWidth;let r="";"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),r=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance),t=o<=r):(r=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance),t=e<=r)}(!n.loading&&!n.finished&&t&&n.page0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(e){switch(e.key?e.key:e.code){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=`${n.listing.offsetWidth}px`)},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),"prev"===n.rel?n.buttonPrev.classList.remove("loading"):n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),Nt(n)},n.AjaxLoadMore.setLocalizedVar=function(e="",t=""){n.localize&&""!==e&&""!==t&&(n.localize[e]=t,window[n.master_id+"_vars"][e]=t)},n.AjaxLoadMore.init=async function(){if("true"===n.addons.preloaded&&1===n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):(n.button.innerHTML=n.button_label,"true"===n.pause?n.loading=!1:n.AjaxLoadMore.loadPosts())),n.addons.single_post&&setTimeout((async function(){await n.AjaxLoadMore.getSinglePost(),n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),n.loading=!1,Et(n,!0,!0)}),200),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),200),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0===n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&Rt(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&Ft(n,"preloaded"),Et(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){const e=n.listing.querySelectorAll(".alm-nextpage");if(e){const t=e[0],o=t.dataset.totalPosts?parseInt(t.dataset.totalPosts):n.localize.total_posts;e.length!==o&&parseInt(t.dataset.id)!==o||n.AjaxLoadMore.triggerDone()}}n.resultsText&&Ft(n,"nextpage"),Et(n,n.init,!0)}n.addons.woocommerce&&(ut(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&(!function(e){if(!e.addons.elementor||!e.addons.elementor_type||"posts"===!e.addons.elementor_type)return!1;const t=e.addons.elementor_element;if(t){e.button.dataset.page=e.addons.elementor_paged;const n=e.addons.elementor_next_page;e.button.dataset.url=n||"",t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),e.listing.removeAttribute("aria-live"),e.listing.removeAttribute("aria-atomic");const o=t.querySelector(`.${e.addons.elementor_item_class}`);if(o&&(o.classList.add("alm-elementor"),o.dataset.url=window.location,o.dataset.page=e.addons.elementor_paged,o.dataset.pageTitle=document.title),e.addons.elementor_masonry){let t;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout((function(){tt(e,`.${e.addons.elementor_container_class}`,`.${e.addons.elementor_item_class}`)}),100)}))}),250)}}}(n),""===n.addons.elementor_next_page&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){if("masonry"===n.transition&&"true"===n.addons.preloaded&&async function(){await Ct(n,!0,!1),n.masonry.init=!1}().catch((()=>{console.error("There was an error with ALM Masonry")})),"true"===n.addons.preloaded&&n.addons.filters&&n.facets&&"function"==typeof almFiltersFacets){const e=n.localize&&n.localize.facets;e&&window.almFiltersFacets(e)}"function"==typeof almOnLoad&&window.almOnLoad(n)}))},n.AjaxLoadMore.error=function(e,t=null){n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.warn("Error: ",e),e.response?console.error("Error Msg: ",e.message):e.request?console.error(e.request):console.error("Error Msg: ",e.message),t&&console.error("ALM Error started in "+t),e.config&&console.error("ALM Error Debug: ",e.config)},window.almUpdateCurrentPage=function(e,t,n){n.page=e,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;let o="",r="";n.addons.paging_init&&"true"===n.addons.preloaded?(r=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"),r&&(o=r.innerHTML,r.parentNode.removeChild(r),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(o)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?(r=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"),r&&(o=r.innerHTML,r.parentNode.removeChild(r),n.AjaxLoadMore.pagingNextpageInit(o)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n?.listing},window.almGetObj=function(e=""){return e?n[e]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(t,n=0){new e(t,n)};const t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[...t].forEach(((t,n)=>{new e(t,n)}))}();const rn=function(e="fade",t="200",n=""){if(!e||!t||!n)return!1;on=!0,Lt(e,t,n,"filter")},an=function(e={}){let t={};on=!0,e&&e.target&&(t={target:target}),e&&"woocommerce"===e.type?async function(){const e=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),n=await new Promise((e=>{const t=window.location;De.get(t).then((t=>{if(200===t.status&&t.data){const n=document.createElement("div");n.innerHTML=t.data;const o=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),r=o?o.dataset.wooSettings:"";e(r)}else e(!1)})).catch((function(){e(!1)}))}));n&&(e.dataset.wooSettings=n,Lt("fade","100",t,"filter"))}().catch((()=>{console.warn("Ajax Load More: There was an issue resetting the Ajax Load More instance.")})):Lt("fade","200",t,"filter")},sn=function(e=""){return bt("post_count",e)},ln=function(e=""){return bt("total_posts",e)},cn=function(e=""){return bt("remaining",e)},dn=function(e){setTimeout((function(){e=e.replace(/\/\//g,"/"),"function"==typeof gtag&&(gtag("event","page_view",{page_title:document.title,page_location:window.location.href,page_path:window.location.pathname}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("set","page",e),ga("send","pageview"),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("set","page",e),__gaTracker("send","pageview"),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(e)}),200)},pn=function(e){if(!e)return!1;window.almInit(e)},un=function(e){if(!e)return!1;window.scrollTo({top:e,behavior:"smooth"})},fn=function(e=null){if(!e)return!1;const t=e.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,o=window.scrollY||document.documentElement.scrollTop;return{top:t.top+o,left:t.left+n}},gn=function(e=""){let t=document.querySelector(".ajax-load-more-wrap"),n="";!e&&t?(n=t.querySelector("button.alm-load-more-btn"),n&&n.click()):(t=document.querySelector(`.ajax-load-more-wrap[data-id="${e}"]`),t&&(n=t.querySelector("button.alm-load-more-btn"),n&&n.click()))}}(),ajaxloadmore=o}(); \ No newline at end of file diff --git a/lang/ajax-load-more.pot b/lang/ajax-load-more.pot index bae51d1..135cfe9 100755 --- a/lang/ajax-load-more.pot +++ b/lang/ajax-load-more.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPL. msgid "" msgstr "" -"Project-Id-Version: Ajax Load More 6.1.0\n" +"Project-Id-Version: Ajax Load More 6.1.0.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-load-more\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-07-27T18:52:19+00:00\n" +"POT-Creation-Date: 2023-08-08T13:33:10+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.5.0\n" "X-Domain: ajax-load-more\n" diff --git a/package.json b/package.json index d5abc38..f922767 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ajax-load-more", - "version": "6.0.0", + "version": "6.1.0", "description": "Ajax Load More WordPress Plugin", "scripts": { "watch": "npm run dev", diff --git a/src/frontend/js/helpers/queryParams.js b/src/frontend/js/helpers/queryParams.js index 64bdab9..5b2553d 100755 --- a/src/frontend/js/helpers/queryParams.js +++ b/src/frontend/js/helpers/queryParams.js @@ -174,10 +174,10 @@ export function getAjaxParams(alm, queryType) { data.search = alm.listing.dataset.s; } if (alm.listing.dataset.customArgs) { - data.custom_args = escape(alm.listing.dataset.customArgs); + data.custom_args = alm.listing.dataset.customArgs; } if (alm.listing.dataset.vars) { - data.vars = escape(alm.listing.dataset.vars); + data.vars = alm.listing.dataset.vars; } // Cache Params