1var acss={"color_mode":"light","enable_client_color_preference":"false"} 2;(()=>{const c=acss.color_mode,f=acss.enable_client_color_preference==="true",i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",r="color-scheme--alt",m="active",l=localStorage.getItem("acss-color-scheme"),a=()=>{document.documentElement.classList.add(r)},d=()=>{document.documentElement.classList.remove(r)},h=(e,o)=>{e.forEach(s=>{s.classList.add(m)}),o.forEach(s=>{s.classList.remove(m)})},g=()=>{document.documentElement.classList.contains(r)?(d(),localStorage.setItem("acss-color-scheme",c)):(a(),localStorage.setItem("acss-color-scheme",c==="dark"?"light":"dark"))},u=()=>{l?(l==="dark"&&c==="light"||l==="light"&&c==="dark")&&a():f&&(c==="dark"&&i==="light"&&l!=="dark"||c==="light"&&i==="dark"&&l!=="light")&&a()},n=e=>{!e||e.tagName==="INPUT"||(e.setAttribute("role","button"),e.setAttribute("tabindex","0"))};document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll('[data-acss-color-scheme="alt"]'),o=document.querySelectorAll('[data-acss-color-scheme="main"]'),s=document.querySelectorAll('[data-acss-color-scheme="toggle"]');e.forEach(t=>n(t)),o.forEach(t=>n(t)),s.forEach(t=>n(t)),e&&e.forEach(t=>{t.addEventListener("click",()=>{a(),document.documentElement.classList.contains(r)?localStorage.setItem("acss-color-scheme",c==="dark"?"light":"dark"):localStorage.setItem("acss-color-scheme",c),h(e,o)})}),o&&o.forEach(t=>{t.addEventListener("click",()=>{d(),localStorage.setItem("acss-color-scheme",c),h(o,e)})}),s&&s.forEach(t=>{t.addEventListener("click",()=>{g()})})}
2),u()})() 3;(function(){let savedTheme=localStorage.getItem("brx_mode");let defaultMode="light";let currentTheme=savedTheme||defaultMode;if(currentTheme==="auto"){let prefersDarkScheme=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.dataset.brxTheme=prefersDarkScheme?"dark":"light"}else{document.documentElement.dataset.brxTheme=currentTheme}})() 4;var bricksData={"debug":"","locale":"en","ajaxUrl":"https://yogaspotaz.com/wp-admin/admin-ajax.php","restApiUrl":"https://yogaspotaz.com/wp-json/bricks/v1/","nonce":"400e5e0bdd","formNonce":"42d81f9ae4","wpRestNonce":"13131644e8","postId":"1305","recaptchaIds":[],"animatedTypingInstances":[],"videoInstances":[],"splideInstances":[],"tocbotInstances":[],"swiperInstances":[],"queryLoopInstances":[],"interactions":[],"filterInstances":[],"isotopeInstances":[],"activeFiltersCountInstances":[],"googleMapInstances":[],"leafletMapInstances":[],"choicesInstances":[],"facebookAppId":"","headerPosition":"top","offsetLazyLoad":"300","baseUrl":"https://yogaspotaz.com/contact/","useQueryFilter":"","pageFilters":[],"language":"","wpmlUrlFormat":"","multilangPlugin":"","i18n":{"choicesjs":{"noChoicesText":"No choices to choose from","noResultsText":"No results found","removeItemIconText":"Remove item","search":"Search"},"close":"Close","closeMobileMenu":"Close mobile menu","firstSlide":"Go to first slide","hidePassword":"Hide password","lastSlide":"Go to last slide","locationContent":"Location content","locationSubtitle":"Location subtitle","locationTitle":"Location title","nextSlide":"Next slide","noLocationsFound":"No locations found","openAccordion":"Open accordion","openMobileMenu":"Open mobile menu","pause":"Pause autoplay","play":"Start autoplay","prevSlide":"Previous slide","remove":"Remove","showPassword":"Show password","slideX":"Go to slide %s","splide":{"carousel":"carousel","select":"Select a slide to show","slide":"slide","slideLabel":"%1$s of %2$s"},"swiper":{"paginationBulletMessage":"Go to slide {{index}}","slideLabelMessage":"{{index}} / {{slidesLength}}"},"zoom":"Zoom"},"selectedFilters":[],"filterNiceNames":[],"bricksGoogleMarkerScript":"https://yogaspotaz.com/wp-content/themes/bricks/assets/js/libs/bricks-google-marker.min.js?v=2.3.9","infoboxScript":"https://yogaspotaz.com/wp-content/themes/bricks/assets/js/libs/infobox.min.js?v=2.3.9","markerClustererScript":"https://yogaspotaz.com/wp-content/themes/bricks/assets/js/libs/markerclusterer.min.js?v=2.3.9","mainQueryId":"","activeSearchTemplate":"0","defaultMode":"light"} 5;var _excluded=["name","url"];function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
5if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var BricksIntersect=_createClass(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e);var n=t.element||!1,r=t.callback||!1,i=!t.hasOwnProperty("once")||t.once,o=!!t.hasOwnProperty("trigger")&&t.trigger;if("IntersectionObserver"in window){var a=!1,s=new IntersectionObserver(function(e,t){e.forEach(function(e){var s="leaveView"===o?!e.isIntersecting&&a:e.isIntersecting;"leaveView"===o&&e.isIntersecting&&(a=!0),s&&(n&&r&&r(e.target),i&&t.unobserve(e.target))})},{threshold:t.threshold||0,root:t.root||null,rootMargin:(null==t?void 0:t.rootMargin)||"0px"});n instanceof Element&&s.observe(n)}else{var c=!1,l=function(){!1===c&&(c=!0,n.getBoundingClientRect().top<=window.innerHeight&&n.getBoundingClientRect().bottom>=0&&"none"!==window.getComputedStyle(n).display&&n&&r&&r(n),c=!1)};l(),document.addEventListener("scroll",l),window.addEventListener("resize",l),window.addEventListener("orientationchange",l)}});function BricksIsInViewport(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function bricksQuerySelectorAll(e,t){if(Array.isArray(t)){var n=[];return t.forEach(function(t){n=n.concat(Array.prototype.slice.apply(e.querySelectorAll(t)))}),n}return Array.prototype.slice.apply(e.querySelectorAll(t))}var bricksUtils={subscribeEvents:function(e,t,n){t.forEach(function(t){e.addEventListener(t,function(e){n(e)})})},subscribejQueryEvents:function(e,t,n){"undefined"!=typeof jQuery&&t.forEach(function(t){jQuery(e).on(t,function(e){n(e)})})}
5,maybeRunOnceInteractions:function(e,t){var n=window.bricksData.interactions.findIndex(function(e){return e===t});-1!==n&&(null!=t&&t.runOnce&&window.bricksData.interactions.splice(n,1),bricksInteractionCallbackExecution(e,t))},getQueryTrailSelectorId:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||(e&&e.includes("-")?e.split("-")[0]:e)},hideOrShowLoadMoreButtons:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;if(t||"all"===e){if("all"===e)for(var n in window.bricksData.queryLoopInstances)window.bricksData.queryLoopInstances.hasOwnProperty(n)&&bricksUtils.hideOrShowLoadMoreButtons(n);var r=window.bricksData.interactions.filter(function(t){return"loadMore"===t.action&&t.loadMoreQuery===e});if(r.length){var i=parseInt(t.page)<parseInt(t.maxPages);r.forEach(function(e){i?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")})}}},updateIsotopeInstance:function(e){var t,n,r,i=window.bricksData.isotopeInstances[e]||!1;if(i){if("masonry-element"===i.elementName){var o=i.instance.items.filter(function(e){return!e.element.isConnected});o.length>0&&i.instance.remove(o),i.instance.layout();var a=i.instance.element.querySelectorAll(":scope > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)");return a.length>0&&a.forEach(function(e){i.instance.items.find(function(t){return t.element===e})||i.instance.appended(e)}),void bricksUtils.updateIsotopeOnImageLoad(e)}null===(t=i.instance)||void 0===t||t.reloadItems(),null===(n=i.instance)||void 0===n||n.layout(),null===(r=i.instance)||void 0===r||r.arrange(),bricksUtils.updateIsotopeOnImageLoad(e)}},updateIsotopeOnImageLoad:function(e){if(document.body.classList.contains("bricks-is-frontend")){var t=window.bricksData.isotopeInstances[e]||!1;if(t){var n=Array.from(t.instance.element.querySelectorAll("img")).filter(function(e){return!e.complete||0===e.naturalHeight});if(0!==n.length){var r=0,i=!1,o=function(){i||(i=!0,requestAnimationFrame(function(){t.instance.layout(),i=!1}))},a=Math.min(3,Math.max(1,Math.ceil(n.length/5))),s=Date.now();n.forEach(function(e){var i=function(){r++;var c=Date.now();r%a===0||c-s>500||r===n.length?(t.instance.layout(),s=c):o(),e.removeEventListener("load",i),e.removeEventListener("error",i)};e.complete&&0!==e.naturalHeight?(r++,o()):(e.addEventListener("load",i),e.addEventListener("error",i))})}else t.instance.layout()}}},setOffcanvasToggleAriaLabel:function(e,t){var n,r,i;if(e){var o=(null===(n=e.dataset)||void 0===n?void 0:n.ariaLabelOpen)||e.getAttribute("aria-label"),a=(null===(r=e.dataset)||void 0===r?void 0:r.ariaLabelClose)||(null===(i=window.bricksData)||void 0===i||null===(i=i.i18n)||void 0===i?void 0:i.close);o&&a&&(e.dataset.ariaLabelOpen||(e.dataset.ariaLabelOpen=o),e.setAttribute("aria-label",t?a:o))}},toggleAction:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(null===(t=e.dataset)||void 0===t?void 0:t.selector)||".brxe-offcanvas",a=(null===(n=e.dataset)||void 0===n?void 0:n.attribute)||"class",s=(null===(r=e.dataset)||void 0===r?void 0:r.value)||"brx-open";i&&(o=(null==i?void 0:i.selector)||o,a=(null==i?void 0:i.attribute)||a,s=(null==i?void 0:i.value)||s);var c=!!o&&document.querySelector(o);if(c||(c=e.closest(".brxe-nav-nested")),c||(c=e.closest(".brxe-offcanvas")),c){document.querySelector(".brx-has-megamenu")&&(e.closest('[data-effect="offset"]')||bricksSubmenuPosition(0));var l,d,u,p,b=!1;if(b="class"===a?c.classList.contains(s):c.getAttribute(a)===s,e.setAttribute("aria-expanded",!b),b)e.classList.remove("is-active");else if(e.classList.add("is-active"),null!==(l=e.dataset)&&void 0!==l&&l.scriptId||null!==(d=e.dataset)&&void 0!==d&&d.interactionId)c.dataset.toggleScriptId=(null===(u=e.dataset)||void 0===u?void 0:u.scriptId)||(null===(p=e.dataset)||void 0===p?void 0:p.interactionId);c.classList.contains("brxe-offcanvas")&&bricksUtils.setOffcanvasToggleAriaLabel(e,!b);var v="off";"class"===a?e.closest(".brxe-nav-nested")&&"brx-open"===s&&c.classList.contains("brx-open")?(v="on",c.classList.add("brx-closing"),setTimeout(function(){c.classList.remove("brx-closing"),c.classList.remove("brx-open")},200)):(v=c.classList.contains(s)?"on":"off",c.classList.toggle(s)):c.getAttribute(a)?(v="on",c.removeAttribute(a)):(v="off",c.setAttribute(a,s));var f,m=!1;if(c.classList.contains("brxe-offcanvas"))m="true"===(null===(f=c.dataset)||void 0===f?void 0:f.noAutoFocus)||!1,c.classList.remove("brx-closing");c.classList.contains("brxe-nav-nested")&&(m=!0),m||"off"!==v||bricksFocusOnFirstFocusableElement(c)}},debounce:function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(i,o)},t),a&&e.apply(i,o)}},maybeAbortXhr:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;return t?(t.xhr&&(t.xhr.abort(),t.xhrAborted=!0),t.xhrAborted):t.xhrAborted},getPageNumberFromUrl:function(e){var t,n=1,r=new URL(e);if(r.searchParams.has("paged"))n=parseInt(r.searchParams.get("paged"));else if(e===(null===(t=window.bricksData)||void 0===t?void 0:t.baseUrl))n=1;else{var i=r.pathname.split("/").filter(function(e){return""!==e});n=i[i.length-1],isNaN(n)&&(n=1)}return n=parseInt(n)},updateQueryResultStats:function(e,t,n){var r={count:0,start:0,end:0};if("dom"===t){var i=n.querySelector('span[data-brx-qr-count="'.concat(e,'"]'));i&&(r.count=i.innerHTML);var o=n.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]'));if(o){var a,s=(null===(a=o.dataset)||void 0===a?void 0:a.brxQrStatsData)||!1;if(s){var c=JSON.parse(s);void 0!==(null==c?void 0:c.start)&&(r.start=c.start),void 0!==(null==c?void 0:c.end)&&(r.end=c.end),void 0!==(null==c?void 0:c.count)&&(r.count=c.count)}}}else void 0!==(null==n?void 0:n.count)&&(r.count=n.count),void 0!==(null==n?void 0:n.start)&&(r.start=n.start),void 0!==(null==n?void 0:n.end)&&(r.end=n.end);if(void 0!==(null==r?void 0:r.count)){var l=parseInt(r.count||0),d=parseInt(r.start||0
5),u=parseInt(r.end||0);document.querySelectorAll('span[data-brx-qr-count="'.concat(e,'"]')).forEach(function(e){e.innerHTML=l}),document.querySelectorAll('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]')).forEach(function(e){var t,n=(null===(t=e.dataset)||void 0===t?void 0:t.brxQrStatsData)||!1;if(n){var r=JSON.parse(n),i=(null==r?void 0:r.statsFormat)||!1,o=(null==r?void 0:r.oneResultText)||!1,a=(null==r?void 0:r.noResultsText)||!1;if(l<1)e.innerHTML=a;else if(1===l)e.innerHTML=o;else{var s=i.replace("%start%",d).replace("%end%",u).replace("%total%",l);e.innerHTML=s}}})}},toggleMapInfoBox:function(e){var t,n;if(window.google&&window.google.maps){var r=e.el,i=e.action;if(r){var o=(null===(t=r.dataset)||void 0===t?void 0:t.brxInfoboxOpen)||!1,a=(null===(n=r.dataset)||void 0===n?void 0:n.brxInfoboxMapId)||!1;if(o&&a){var s=window.bricksData.googleMapInstances[a];if(s){var c=s.locations.find(function(e){return e.id===o});if(c&&c.marker){var l=c.infoBox;"openAddress"===i?l&&null!=l&&l.div_||google.maps.event.trigger(c.marker,"click"):l&&null!=l&&l.div_&&(google.maps.event.trigger(l,"closeclick"),l.close())}}}}}},closeAllSubmenus:function(e){var t=e.closest(".open"),n=e.closest(".brx-has-multilevel");if(t&&!n){var r=t.querySelector(".brx-submenu-toggle button[aria-expanded]");r&&(bricksSubmenuToggle(r,"remove"),r&&r.focus())}else{bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach(function(e){e&&bricksSubmenuToggle(e,"remove")})}},rebuildSplide:function(e){var t=window.bricksData.splideInstances[e]||!1;if(t){if(t.destroy(),delete window.bricksData.splideInstances[e],window.bricksSplideFn&&window.bricksSplideFn._initializedElements){var n=t.root;window.bricksSplideFn._initializedElements.has(n)&&window.bricksSplideFn._initializedElements.delete(n)}window.bricksSplideFn&&window.bricksSplideFn.run()}},photoswipeGetId:function(e){return e.getAttribute("data-pswp-id")||e.getAttribute("data-lightbox-id")},photoswipeDestroy:function(e){null!=e&&e.bricksPhotoswipe&&(e.bricksPhotoswipe.destroy(),delete e.bricksPhotoswipe)},imageGalleryGetLoadMoreSettings:function(e){var t;if(null==e||null===(t=e.dataset)||void 0===t||!t.brxLoadMoreSettings)return{};try{return JSON.parse(e.dataset.brxLoadMoreSettings)}catch(e){return{}}},imageGalleryResolveLoadMoreValue:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"initial",o=Number.parseInt(null!==(e=null==r?void 0:r[i])&&void 0!==e?e:"0",10),a=(null==r||null===(t=r.responsive)||void 0===t?void 0:t[i])||{},s=Array.isArray(null==r?void 0:r.breakpoints)?r.breakpoints:[];if(!s.length||!a||"object"!==_typeof(a))return Number.isNaN(o)?0:Math.max(0,o);var c=s.find(function(e){return!0===(null==e?void 0:e.base)})||s.find(function(e){return"desktop"===(null==e?void 0:e.key)});if(!c)return Number.isNaN(o)?0:Math.max(0,o);var l=Number.parseInt(null!==(n=null==c?void 0:c.width)&&void 0!==n?n:"0",10),d=[c].concat(_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n>l}).sort(function(e,t){var n,r;return Number.parseInt(null!==(n=null==e?void 0:e.width)&&void 0!==n?n:"0",10)-Number.parseInt(null!==(r=null==t?void 0:t.width)&&void 0!==r?r:"0",10)})),_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n<l}).sort(function(e,t){var n,r;return Number.parseInt(null!==(n=null==t?void 0:t.width)&&void 0!==n?n:"0",10)-Number.parseInt(null!==(r=null==e?void 0:e.width)&&void 0!==r?r:"0",10)}))),u=Number.isNaN(o)?0:Math.max(0,o);return d.forEach(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10),r=!0===(null==e?void 0:e.base);if(r||Number.isNaN(n)||(n>l?r=window.innerWidth>=n:n<l&&(r=window.innerWidth<=n)),r&&Object.prototype.hasOwnProperty.call(a,e.key)){var i=Number.parseInt(a[e.key],10);Number.isNaN(i)||(u=Math.max(0,i))}}),u},imageGalleryGetResolvedLoadMoreSettings:function(e){var t,n=bricksUtils.imageGalleryGetLoadMoreSettings(e),r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.brxLoadMoreResolvedInitial,i=bricksUtils.imageGalleryResolveLoadMoreValue(n,"step");if(void 0!==r)return null!=e&&e.dataset&&(e.dataset.brxLoadMoreResolvedStep="".concat(i)),_objectSpread(_objectSpread({},n),{},{initial:Number.parseInt(r,10)||0,step:i});var o=_objectSpread(_objectSpread({},n),{},{initial:bricksUtils.imageGalleryResolveLoadMoreValue(n,"initial"),step:i});return null!=e&&e.dataset&&(e.dataset.brxLoadMoreResolvedInitial="".concat(o.initial),e.dataset.brxLoadMoreResolvedStep="".concat(o.step)),o},imageGalleryAppendDeferredItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null==e?void 0:e.querySelector(":scope > .brx-gallery-load-more-template");if(!r||!r.content||t<=0)return[];var i=Array.from(r.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}).slice(0,t);if(!i.length)return[];var o=document.createDocumentFragment(),a=e.querySelector(":scope > .bricks-isotope-sizer"),s=e.querySelector(":scope > .brx-gallery-load-more-trail"),c=a||s||r;
5return i.forEach(function(e){null!=n&&n.animate&&e.classList.add("brx-gallery-item-reveal"),o.appendChild(e)}),e.insertBefore(o,c),null!=n&&n.animate&&i.forEach(function(e){setTimeout(function(){e.classList.remove("brx-gallery-item-reveal")},300)}),i},imageGalleryLoadMoreSync:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=[];"all"===t?n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"]'):null!=t&&null!==(e=t.matches)&&void 0!==e&&e.call(t,'.brxe-image-gallery[data-brx-load-more="gallery"]')?n=[t]:"string"==typeof t&&(n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"][data-script-id="'.concat(t,'"]'))),n.forEach(function(e){var t,n,r,i=e.querySelector(":scope > .brx-gallery-load-more-template");if(i&&i.content){var o=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),a=Array.from(e.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),s=Array.from(i.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),c=Number.parseInt(null!==(t=null==o?void 0:o.total)&&void 0!==t?t:"".concat(a.length+s.length),10),l=Number.parseInt(null!==(n=null==o?void 0:o.initial)&&void 0!==n?n:"0",10),d=l>0&&l<c?Math.min(l,c):c,u=!1;if(a.length>d){var p=a.slice(d);if(p.length){var b=document.createDocumentFragment();p.forEach(function(e){b.appendChild(e)}),i.content.insertBefore(b,i.content.firstChild),u=!0}}else if(a.length<d){u=bricksUtils.imageGalleryAppendDeferredItems(e,d-a.length).length>0}if(u){if(bricksLazyLoad(),e.classList.contains("isotope")){var v,f=null===(v=e.dataset)||void 0===v?void 0:v.scriptId;f&&bricksUtils.updateIsotopeInstance(f)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe(),null!=o&&o.infinite&&(delete e.dataset.brxGalleryInfiniteInit,void 0!==bricksGalleryInfiniteScrollFn&&bricksGalleryInfiniteScrollFn.run({forceReinit:function(t){return t===e}}))}var m=(null===(r=e.dataset)||void 0===r?void 0:r.scriptId)||"all";bricksUtils.imageGalleryLoadMoreButtonVisibility(m)}})},imageGalleryLoadMoreButtonVisibility:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[];if(n.length){n.forEach(function(e){if("loadMoreGallery"===(null==e?void 0:e.action)&&null!=e&&e.loadMoreTargetSelector&&null!=e&&e.el){var n=[];try{n=bricksQuerySelectorAll(document,e.loadMoreTargetSelector)}catch(e){return}if((n=n.filter(function(e){return e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')})).length){if("all"!==t)if(!n.some(function(e){var n;return(null===(n=e.dataset)||void 0===n?void 0:n.scriptId)===t}))return;n.some(function(e){return function(e){if(!e||!e.matches||!e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]'))return!1;var t=e.querySelector(":scope > .brx-gallery-load-more-template");return!(!t||!t.content||!t.content.querySelector("li.bricks-layout-item"))}(e)})?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")}else e.el.classList.add("brx-load-more-hidden")}})}},imageGalleryLoadMore:function(e){var t;if(!e||!e.matches(".brxe-image-gallery"))return!1;var n=e.querySelector(":scope > .brx-gallery-load-more-template");if(!n||!n.content)return!1;var r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),i=Number.parseInt((null==r?void 0:r.step)||"0",10),o=Array.from(n.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),a=i>0?Math.min(i,o.length):o.length;if(!a)return!1;bricksUtils.imageGalleryAppendDeferredItems(e,a,{animate:!0});var s=e.querySelector(":scope > .brx-gallery-load-more-trail");if(bricksLazyLoad(),e.classList.contains("isotope")){var c=e.dataset.scriptId;c&&bricksUtils.updateIsotopeOnImageLoad(c)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe();var l=null!==n.content.querySelector("li.bricks-layout-item");!l&&s&&s.remove();var d=(null===(t=e.dataset)||void 0===t?void 0:t.scriptId)||"all";return bricksUtils.imageGalleryLoadMoreButtonVisibility(d),l}},BricksFunction=function(){return _createClass(function e(t){var n,r,i,o,a=this;_classCallCheck(this,e),_defineProperty(this,"_customRun",null),_defineProperty(this,"_customEachElement",null),_defineProperty(this,"_customListenerHandler",null),_defineProperty(this,"_customAddEventListeners",null),_defineProperty(this,"_settings",{}),_defineProperty(this,"_initializedElements",new Set);var s={parentNode:document,selector:"",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"],subscribejQueryEvents:[],forceReinit:!1,frontEndOnly:!1,windowVariableCheck:[],additionalActions:[]};Object.assign(s,t),this._settings=s,this._customRun=null!==(n=null==t?void 0:t.run)&&void 0!==n?n:null,this._customEachElement=null!==(r=null==t?void 0:t.eachElement)&&void 0!==r?r:null,this._customListenerHandler=null!==(i=null==t?void 0:t.listenerHandler)&&void 0!==i?i:null,this._customAddEventListeners=null!==(o=null==t?void 0:t.addEventListeners)&&void 0!==o?o:null,this.cleanUpInitElements=this.cleanUpInitElements.bind(this),this.run=this.run.bind(this),this.eachElement=this.eachElement.bind(this),this.listenerHandler=this.listenerHandler.bind(this),this.addEventListeners=this.addEventListeners.bind(this),document.addEventListener("DOMContentLoaded",function(){if(a.addEventListeners(),a._settings.additionalActions.length){var e,t=_createForOfIteratorHelper(a._settings.additionalActions);try{for(t.s();!(e=t.n()).done;){var n=e.value;"function"==typeof n&&n.call(a)}}catch(e){t.e(e)}finally{t.f()}}}),window.bricksFunctions||(window.bricksFunctions=[]),window.bricksFunctions.push(this)},[{key:"functionCanRun",value:function(){if(this._settings.frontEndOnly&&!document.body.classList.contains("bricks-is-frontend"))return!1;if(this._settings.windowVariableCheck.length){var e,t=_createForOfIteratorHelper(this._settings.windowVariableCheck);try{for(t.s();!(e=t.n()).done;){var n,r=e.value.split("."),i=window,o=_createForOfIteratorHelper(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!i.hasOwnProperty(a)){i=!1;break}i=i[a]}}catch(e){o.e(e)}finally{o.f()}if(!i)return!1}}catch(e){t.e(e)}finally{t.f()}}return!0}},{key:"cleanUpInitElements",value:function(){var e,t=_createForOfIteratorHelper(this._initializedElements);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isConnected||this._initializedElements.delete(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"eachElement",value:function(e){this._customEachElement&&"function"==typeof this._customEachElement&&this._customEachElement.call(this,e)}},{key:"run",value:function(e){var t=this;if(this.functionCanRun())if(this.cleanUpInitElements(),this._customRun&&"function"==typeof this._customRun)this._customRun.c
5all(this,e);else{var n=Object.assign({},this._settings);e&&Object.keys(e).forEach(function(t){n.hasOwnProperty(t)&&(n[t]=e[t])});var r=bricksQuerySelectorAll(n.parentNode,n.selector);r.length&&r.forEach(function(e,r){if(n.forceReinit&&("function"==typeof n.forceReinit?n.forceReinit.call(t,e,r):n.forceReinit))return void t.eachElement(e,r);if(t._initializedElements.has(e)){var i=Array.from(t._initializedElements).find(function(t){return t===e});i.isConnected||(t._initializedElements.delete(i),t._initializedElements.add(e,r),t.eachElement(e,r))}else t._initializedElements.add(e),t.eachElement(e,r)})}}},{key:"listenerHandler",value:function(e){this._customListenerHandler&&"function"==typeof this._customListenerHandler?this._customListenerHandler.call(this,e):null!=e&&e.type&&(e.type,this.run())}},{key:"addEventListeners",value:function(){this.functionCanRun()&&(this._customAddEventListeners&&"function"==typeof this._customAddEventListeners?this._customAddEventListeners.call(this):(this._settings.subscribeEvents.length&&bricksUtils.subscribeEvents(document,this._settings.subscribeEvents,this.listenerHandler),this._settings.subscribejQueryEvents.length&&bricksUtils.subscribejQueryEvents(document,this._settings.subscribejQueryEvents,this.listenerHandler)))}}])}();function reinitBricksFunctions(){window.bricksFunctionInstances&&window.bricksFunctionInstances.forEach(function(e){e&&"function"==typeof e.run&&e.run()})}if("undefined"!=typeof window){window.bricksFunctionInstances=window.bricksFunctionInstances||[];var OriginalBricksFunction=BricksFunction;window.BricksFunction=function(){function e(t){var n;return _classCallCheck(this,e),n=_callSuper(this,e,[t]),window.bricksFunctionInstances.push(n),n}return _inherits(e,OriginalBricksFunction),_createClass(e)}(),Object.setPrototypeOf(window.BricksFunction.prototype,OriginalBricksFunction.prototype),Object.setPrototypeOf(window.BricksFunction,OriginalBricksFunction),void 0!==BricksFunction&&(BricksFunction=window.BricksFunction)}function bricksBlockEditorIntegration(){if(document.body.classList.contains("block-editor-page")){var e=function(){var t=document.querySelector(".wp-block-post-content");t?(new MutationObserver(function(){clearTimeout(window.bricksReinitTimeout),window.bricksReinitTimeout=setTimeout(reinitBricksFunctions,300)}).observe(t,{childList:!0,subtree:!0}),setTimeout(reinitBricksFunctions,200)):setTimeout(e,100)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}}var bricksLazyLoadFn=new BricksFunction({parentNode:document,selector:".bricks-lazy-hidden",subscribejQueryEvents:["updated_cart_totals"],eachElement:function(e){var t=window.bricksData.offsetLazyLoad||300;new BricksIntersect({element:e,callback:function(e){!function(e){if(e.classList.add("wait"),e.dataset.src&&(e.src=e.dataset.src,delete e.dataset.src,e.closest(".bricks-masonry"))){var t,n=null!==(t=e.closest(".bricks-masonry").getAttribute("data-script-id"))&&void 0!==t&&t;n&&e.addEventListener("load",function(){bricksUtils.updateIsotopeInstance(n)})}if(e.dataset.sizes&&(e.sizes=e.dataset.sizes,delete e.dataset.sizes),e.dataset.srcset&&(e.srcset=e.dataset.srcset,delete e.dataset.srcset),e.dataset.style){var r=e.getAttribute("style")||"";r+=e.dataset.style,e.setAttribute("style",r),e.classList.contains("splide__slide")||delete e.dataset.style}e.classList.remove("bricks-lazy-hidden"),e.classList.remove("wait"),e.classList.contains("bricks-lazy-load-isotope")&&bricksIsotope()}(e)},rootMargin:"".concat(t,"px")})},listenerHandler:function(e){setTimeout(function(){bricksLazyLoadFn.run()},100)}});function bricksLazyLoad(){bricksLazyLoadFn.run()}var bricksAnimationFn=new BricksFunction({parentNode:document,selector:".brx-animated",removeAfterMs:3e3,eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.dataset.animation;t&&(e.classList.add("brx-animate-".concat(t)),e.removeAttribute("data-animation"),e.addEventListener("animationend",function(){var n;if(e.classList.remove("brx-animate-".concat(t)),e.classList.contains("brx-popup-content")&&t.includes("Out")){var r=e.closest(".brx-popup");r&&bricksClosePopup(r)}var i=null===(n=e.dataset)||void 0===n?void 0:n.animationId;
5if(e.style.animationDuration="",i){var o=new CustomEvent("bricks/animation/end/".concat(i),{detail:{el:e}});document.dispatchEvent(o)}},{once:!0}))}})},run:function(e){var t=bricksAnimationFn,n=(null==e?void 0:e.elementsToAnimate)||bricksQuerySelectorAll(t._settings.parentNode,t._settings.selector);t.removeAfterMs=(null==e?void 0:e.removeAfterMs)||t.removeAfterMs,n.forEach(function(e){t.eachElement(e)})}});function bricksAnimation(){bricksAnimationFn.run()}var bricksMotionParallax=function(){var e=new WeakMap,t=new Set,n=new Set,r=null,i=!1,o=!1;function a(){i=!1,r=null,n.forEach(function(e){e()})}function s(){i||(i=!0,r=window.requestAnimationFrame(a))}function c(){var e=n.size>0;e&&!o&&(window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),window.addEventListener("orientationchange",s,{passive:!0}),o=!0),!e&&o&&(window.removeEventListener("scroll",s),window.removeEventListener("resize",s),window.removeEventListener("orientationchange",s),o=!1,r&&(window.cancelAnimationFrame(r),r=null,i=!1))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=parseFloat(e);return Number.isFinite(n)?n/100:t}function d(e){if(!e)return arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50%";return{left:"0%",right:"100%",top:"0%",bottom:"100%",center:"50%"}[e.trim().toLowerCase()]||e}function u(n){var r=e.get(n);if(t.delete(n),r){var i;if(r.cleanupFns.forEach(function(e){"function"==typeof e&&e()}),r.hasElementParallax&&(n.style.translate=r.originalInlineTranslate||""),r.hasBackgroundParallax)n.style.backgroundPosition=null!==(i=r.originalInlineBackgroundPosition)&&void 0!==i?i:"";e.delete(n)}}var p=new BricksFunction({parentNode:document,selector:"[data-brx-motion-parallax]",forceReinit:!0,eachElement:function(r){var i,o,a,p;u(r);try{var b;p=JSON.parse(null===(b=r.dataset)||void 0===b?void 0:b.brxMotionParallax)}catch(e){return}if(p){var v=!0===(null===(i=p)||void 0===i?void 0:i.element),f=!0===(null===(o=p)||void 0===o?void 0:o.background),m=null===(a=p)||void 0===a?void 0:a.startVisiblePercent,g=parseFloat(m),y=Number.isFinite(g)?Math.min(Math.max(g,0),100):0;if(v||f){var k=function(e,t){var r=t.hasElementParallax,i=t.hasBackgroundParallax,o=t.progressStart,a=t.originalInlineTranslate,u=t.originalInlineBackgroundPosition,p=[],b=window.matchMedia("(prefers-reduced-motion: reduce)"),v="50%",f="50%";if(i){e.style.backgroundPosition=u||"";var m=window.getComputedStyle(e);v=d(m.backgroundPositionX,"50%"),f=d(m.backgroundPositionY,"50%")}var g=0,y=0,k=0,w=function(){var t,n,o,a=window.getComputedStyle(e);r&&(g=l(null===(t=a.getPropertyValue("--brx-motion-parallax-speed-x"))||void 0===t?void 0:t.trim()),y=l(null===(n=a.getPropertyValue("--brx-motion-parallax-speed-y"))||void 0===n?void 0:n.trim())),i&&(k=l(null===(o=a.getPropertyValue("--brx-motion-background-speed"))||void 0===o?void 0:o.trim()))};w();var h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,E=function(){w(),e.style.translate="",h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,s()};window.addEventListener("resize",E),document.addEventListener("load",E),document.addEventListener("bricks/tabs/changed",E),document.addEventListener("bricks/accordion/open",E),document.addEventListener("bricks/accordion/close",E),document.addEventListener("bricks/ajax/nodes_added",E),document.addEventListener("bricks/ajax/load_page/completed",E),document.addEventListener("bricks/ajax/query_result/displayed",E),document.addEventListener("bricks/ajax/pagination/completed",E),p.push(function(){window.removeEventListener("resize",E),document.removeEventListener("load",E),document.removeEventListener("bricks/tabs/changed",E),document.removeEventListener("bricks/accordion/open",E),document.removeEventListener("bricks/accordion/close",E),document.removeEventListener("bricks/ajax/nodes_added",E),document.removeEventListener("bricks/ajax/load_page/completed",E),document.removeEventListener("bricks/ajax/query_result/displayed",E),document.removeEventListener("bricks/ajax/pagination/completed",E)});var I=function(){if(b.matches)return r&&(e.style.translate="0px 0px"),void(i&&(e.style.backgroundPosition="".concat(v," ").concat(f)));var t=window.innerHeight||document.documentElement.clientHeight,n=window.scrollY||window.pageYOffset||0,a=Math.max(S-t,0),s=t+L||1,c=Math.min(Math.max((n-a)/s,0),1),l=Math.min(Math.max(o,0),1),d=Math.max(1-l,1e-4),u=Math.max(c-l,0)/d*.5;if(r){var p=window.innerWidth||document.documentElement.clientWidth,m=u*g*p,w=u*y*t;e.style.translate="".concat(m.toFixed(2),"px ").concat(w.toFixed(2),"px")}if(i){var h=u*k*t;e.style.backgroundPosition="".concat(v," calc(").concat(f," + ").concat(h.toFixed(2),"px)")}};return n.add(I),c(),p.push(function(){n.delete(I),c()}
5),I(),{cleanupFns:p,hasElementParallax:r,hasBackgroundParallax:i,originalInlineTranslate:a,originalInlineBackgroundPosition:u}}(r,{hasElementParallax:v,hasBackgroundParallax:f,progressStart:y/100,originalInlineTranslate:r.style.translate||"",originalInlineBackgroundPosition:r.style.backgroundPosition});e.set(r,k),t.add(r)}}}});return function(e){t.forEach(function(e){e.isConnected||u(e)}),s(),p.run(e)}}(),bricksInitQueryLoopInstancesFn=new BricksFunction({parentNode:document,selector:".brx-query-trail",subscribeEvents:["bricks/ajax/load_page/completed"],eachElement:function(e){var t,n,r,i,o,a,s,c,l,d,u=(null===(t=e.dataset)||void 0===t?void 0:t.observerMargin)||"1px",p=(null===(n=e.dataset)||void 0===n?void 0:n.observerDelay)||0,b=(null===(r=e.dataset)||void 0===r?void 0:r.queryComponentId)||!1,v=null===(i=e.dataset)||void 0===i?void 0:i.queryElementId,f=null===(o=e.dataset)||void 0===o?void 0:o.queryVars,m=(null===(a=e.dataset)||void 0===a?void 0:a.originalQueryVars)||"[]",g=e.classList.contains("bricks-isotope-sizer"),y=e.classList.contains("brx-infinite-scroll"),k=null===(s=e.dataset)||void 0===s?void 0:s.brxAjaxLoader,w=null===(c=e.dataset)||void 0===c?void 0:c.brxLiveSearch,h=null===(l=e.dataset)||void 0===l?void 0:l.brxDisableUrlParams,x=document.querySelector('[data-brx-loop-start="'.concat(v,'"]'));x?(null==x||x.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e")),x.removeAttribute("data-brx-loop-start")):e.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e"));var S=(null==x?void 0:x.parentNode)||e.parentNode;window.bricksData.queryLoopInstances[v]={componentId:b,start:e.dataset.start,end:e.dataset.end,page:e.dataset.page,maxPages:e.dataset.maxPages,queryVars:f,originalQueryVars:m,observerMargin:u,observerDelay:p,infiniteScroll:y,isPostsElement:g,ajaxLoader:k,isLiveSearch:w,disableUrlParams:h,resultsContainer:S,xhr:null,xhrAborted:!1};var L=bricksUtils.getQueryTrailSelectorId(v,b),E=g?e.previousElementSibling:Array.from(S.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();if(e.removeAttribute("data-query-vars"),e.removeAttribute("data-original-query-vars"),e.closest(".brxe-slider-nested.splide")&&(null===(d=e.parentNode)||void 0===d?void 0:d.classList.contains("splide__list"))){var I,A=(null===(I=e.closest(".brxe-slider-nested.splide").dataset)||void 0===I?void 0:I.scriptId)||!1;if(A){["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.rebuildSplide(A)})})}}g||e.remove(),E&&y&&(E.dataset.queryElementId=v,new BricksIntersect({element:E,callback:function(e){return bricksQueryLoadPage(e)},once:1,rootMargin:u}))}});function bricksInitQueryLoopInstances(){bricksInitQueryLoopInstancesFn.run()}function bricksAjaxLoader(){var e=function(e){var t="";switch(e){case"default":t='<div class="brx-loading-default"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ellipsis":t='<div class="brx-loading-ellipsis"><div></div><div></div><div></div><div></div></div>';break;case"ring":t='<div class="brx-loading-ring"><div></div><div></div><div></div><div></div></div>';break;case"dual-ring":t='<div class="brx-loading-dual-ring"></div>';break;case"facebook":t='<div class="brx-loading-facebook"><div></div><div></div><div></div></div>';break;case"roller":t='<div class="brx-loading-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ripple":t='<div class="brx-loading-ripple"><div></div><div></div></div>';break;case"spinner":t='<div class="brx-loading-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'}return t};document.addEventListener("bricks/ajax/start",function(t){var n=t.detail.queryId||!1;if(n){var r=window.bricksData.queryLoopInstances[n]||!1;if(r){var i=JSON.parse((null==r?void 0:r.ajaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a=!(null==i||!i.selector)&&document.querySelector(i.selector);if(!a){var s,c,l=bricksUtils.getQueryTrailSelectorId(n,(null==r?void 0:r.componentId)||!1);a=null!==(s=Array.from(null===(c=r.resultsContainer)||void 0===c?void 0:c.querySelectorAll(".brxe-".concat(l,":not(.brx-popup)"))).pop())&&void 0!==s?s:r.resultsContainer}
5if(a){var d=a.nodeName.toLowerCase(),u=document.createElement(d);u.classList.add("brx-loading-animation"),u.dataset.ajaxLoaderQueryId=n,null!=i&&i.color&&u.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(u.style.transform="scale(".concat(i.scale,")")),u.innerHTML=e(o),a.insertAdjacentElement(null!=i&&i.selector?"beforeend":"afterend",u)}}}}}),document.addEventListener("bricks/ajax/end",function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.queryId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-query-id="'.concat(e.detail.queryId,'"]')):[]).forEach(function(e){return e.remove()})}),document.addEventListener("bricks/ajax/popup/start",function(t){var n,r=t.detail.popupElement||!1;if(r){var i=JSON.parse((null===(n=r.dataset)||void 0===n?void 0:n.brxAjaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a=!(null==i||!i.selector)&&document.querySelector(i.selector);if(a||(a=r.querySelector(".brx-popup-content")),a){var s=a.nodeName.toLowerCase(),c=document.createElement(s);c.classList.add("brx-loading-animation"),c.dataset.ajaxLoaderPopupId=r.dataset.popupId,null!=i&&i.color&&c.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(c.style.transform="scale(".concat(i.scale,")")),c.innerHTML=e(o),a.insertAdjacentElement("afterbegin",c)}}}}),document.addEventListener("bricks/ajax/popup/end",function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.popupId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-popup-id="'.concat(e.detail.popupId,'"]')):[]).forEach(function(e){return e.remove()})})}function bricksQueryLoadPage(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o,a=e.dataset.queryElementId,s=null===(o=window.bricksData.queryLoopInstances)||void 0===o?void 0:o[a];if(s&&(null==s||!s.isLoading||n)){var c=(null==s?void 0:s.componentId)||!1,l=parseInt(s.page||1)+1,d=parseInt(s.maxPages||1);if(l>d)r({page:l,maxPages:d});else{var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:a,componentId:c,queryVars:s.queryVars,page:l,nonce:window.bricksData.nonce,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};if("1"===window.bricksData.useQueryFilter&&"function"==typeof window.bricksUtils.getFiltersForQuery&&"function"==typeof window.bricksUtils.getSelectedFiltersForQuery){var b=[];if(window.bricksData.filterInstances&&Object.keys(window.bricksData.filterInstances).length>0)b=Object.values(window.bricksData.filterInstances).filter(function(e){return e.targetQueryId===a}).map(function(e){return e.filterId});if(b.length){var v=window.bricksUtils.getFiltersForQuery(a,"filterId"),f=window.bricksUtils.getSelectedFiltersForQuery(a),m=window.bricksUtils.getDynamicTagsForParse(a),g="[]"===(null==s?void 0:s.originalQueryVars)?null==s?void 0:s.queryVars:null==s?void 0:s.originalQueryVars;p={postId:window.bricksData.postId,queryElementId:a,originalQueryVars:g,pageFilters:window.bricksData.pageFilters||!1,filters:v,infinitePage:l,selectedFilters:f,afTags:m,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()},u=window.bricksData.restApiUrl.concat("query_result")}}window.bricksData.queryLoopInstances[a].isLoading=1,n||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:a}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var y=new XMLHttpRequest;y.open("POST",u,!0),y.setRequestHeader("Content-Type","application/json; charset=UTF-8"),y.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE){var t,o,u=y.status;try{o=JSON.parse(y.response)}catch(e){o=null}if(0===u||u>=200&&u<400){var p,b,v,f,m=(null===(p=o)||void 0===p?void 0:p.html)||!1,g=(null===(b=o)||void 0===b?void 0:b.styles)||!1,k=(null===(v=o)||void 0===v?void 0:v.popups)||
5!1,w=(null===(f=o)||void 0===f?void 0:f.updated_query)||!1;m&&(m=m.replace(/<!--brx-loop-start-.*?-->/g,""),e.insertAdjacentHTML("afterend",m)),k&&document.body.insertAdjacentHTML("beforeend",k),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:a}})),g&&document.body.insertAdjacentHTML("beforeend",g),w&&(w.start=parseInt(s.start),bricksUtils.updateQueryResultStats(a,"query",w)),window.bricksData.queryLoopInstances[a].page=l,void 0!==(null==w?void 0:w.max_num_pages)&&(window.bricksData.queryLoopInstances[a].maxPages=parseInt(w.max_num_pages))}else{if(403===u&&"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)&&!n)return void bricksRegenerateNonceAndRetryQueryLoadPage(e).then(r).catch(i);console.error("Request failed with status ".concat(u))}window.bricksData.queryLoopInstances[a].isLoading=0,r({page:l,maxPages:d}),bricksUtils.hideOrShowLoadMoreButtons(a),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:a}})),setTimeout(function(){var e,t=bricksUtils.getQueryTrailSelectorId(a,c),n=Array.from((null===(e=s.resultsContainer)||void 0===e?void 0:e.querySelectorAll(".brxe-".concat(t,":not(.brx-popup)")))||[]).pop();document.dispatchEvent(new CustomEvent("bricks/ajax/load_page/completed",{detail:{queryTrailElement:n,queryId:a}})),n&&s.infiniteScroll&&(n.dataset.queryElementId=a,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:s.observerMargin}))},250)}},t?y.send(JSON.stringify(p)):setTimeout(function(){y.send(JSON.stringify(p))},parseInt(s.observerDelay))}}})}function bricksRegenerateNonceAndRetryQueryLoadPage(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}i.success&&i.data?(window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce,bricksQueryLoadPage(e,!0,!0).then(t).catch(n)):n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}var bricksQueryPaginationFn=new BricksFunction({parentNode:document,selector:".brx-ajax-pagination a",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/query_result/displayed"],eachElement:function(e){var t;null!==(t=e.dataset)&&void 0!==t&&t.ajaxPagination||(e.dataset.ajaxPagination=1,e.addEventListener("click",function(e){var t,n=e.currentTarget,r=n.getAttribute("href"),i=n.closest(".brx-ajax-pagination"),o=null==i||null===(t=i.dataset)||void 0===t?void 0:t.queryElementId;if(function(e){var t,n=!0;if(!window.bricksData.useQueryFilter||"function"!=typeof window.bricksUtils.getFiltersForQuery)return n;var r=e.closest(".brx-ajax-pagination"),i=(null==r||null===(t=r.dataset)||void 0===t?void 0:t.queryElementId)||!1;if(i){var o=bricksUtils.getFiltersForQuery(i);(o=o.filter(function(e){return"pagination"!==e.filterType})).length>0&&(n=!1)}return n}(i)){var a=parseInt(bricksUtils.getPageNumberFromUrl(r));a<1||(e.preventDefault(),bricksAjaxPagination(n,o,a))}}))}});function bricksAjaxPagination(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise(function(i,o){if(t){var a=e.getAttribute("href"),s=window.bricksData.queryLoopInstances[t]||!1,c=e.closest(".brx-ajax-pagination"),l=(null==s?void 0:s.componentId)||!1,d=(null==s?void 0:s.resultsContainer)||!1;if(s&&d){var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:t,componentId:s.componentId||!1,queryVars:s.queryVars,page:n,nonce:window.bricksData.nonce,paginationId:c.dataset.paginationId,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParam
5s:bricksGetCurrentUrlParams()};r||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:t}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var b=new XMLHttpRequest;b.open("POST",u,!0),b.setRequestHeader("Content-Type","application/json; charset=UTF-8"),b.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),b.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var s,u,p=this.status;try{u=JSON.parse(b.response)}catch(e){u=null}if(0===p||p>=200&&p<400){var v,f,m,g,y,k=(null===(v=u)||void 0===v?void 0:v.html)||!1,w=(null===(f=u)||void 0===f?void 0:f.styles)||!1,h=(null===(m=u)||void 0===m?void 0:m.popups)||!1,x=(null===(g=u)||void 0===g?void 0:g.pagination)||!1,S=(null===(y=u)||void 0===y?void 0:y.updated_query)||!1,L=bricksUtils.getQueryTrailSelectorId(t,l),E=d.querySelector(".bricks-gutter-sizer"),I=d.querySelector(".bricks-isotope-sizer"),A=d.querySelectorAll(".brxe-".concat(L,", .bricks-posts-nothing-found")),T=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(e){return e.nodeValue==="brx-loop-start-".concat(t)}}).nextNode(),q=A.length>0||T;if(q&&d.querySelectorAll(".brxe-".concat(L,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),k)if(q){if(T){var F=k.match(/<\s*([a-z0-9]+)([^>]+)?>/i),C=null;(C=!F||"td"!==F[1]&&"tr"!==F[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=k;var P=Array.from(C.childNodes);P.reverse(),P.forEach(function(e){var t,n;T.nextSibling?null===(t=T.parentNode)||void 0===t||t.insertBefore(e,T.nextSibling):null===(n=T.parentNode)||void 0===n||n.appendChild(e)}),C.remove()}}else d.insertAdjacentHTML("beforeend",k);if(E&&d.appendChild(E),I&&d.appendChild(I),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(t,'"]')).forEach(function(e){return e.remove()}),h&&document.body.insertAdjacentHTML("beforeend",h),x){var D=(new DOMParser).parseFromString(x,"text/html").querySelector(".bricks-pagination");D&&(c.innerHTML="",c.appendChild(D))}if(document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:t}})),w){var _=document.querySelector("#brx-query-styles-".concat(t));_||((_=document.createElement("style")).id="brx-query-styles-".concat(t),document.body.appendChild(_)),_.innerHTML=w}S&&(void 0!==(null==S?void 0:S.start)&&(window.bricksData.queryLoopInstances[t].start=parseInt(S.start)),bricksUtils.updateQueryResultStats(t,"query",S)),window.bricksData.queryLoopInstances[t].page=n,window.history.pushState({},"",a)}else{if(403===p&&"rest_cookie_invalid_nonce"===(null===(s=u)||void 0===s?void 0:s.code)&&!r)return void bricksRegenerateNonceAndRetryAjaxPagination(e,t,n).then(i).catch(o);console.error("Request failed with status ".concat(p))}i(),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:t}})),document.dispatchEvent(new CustomEvent("bricks/ajax/pagination/completed",{detail:{queryId:t}})),bricksUtils.hideOrShowLoadMoreButtons(t)}},b.send(JSON.stringify(p))}else o("Query instance not found")}else o("Query ID is missing")})}function bricksRegenerateNonceAndRetryAjaxPagination(e,t,n){return new Promise(function(r,i){var o=new XMLHttpRequest;o.open("POST",window.bricksData.ajaxUrl,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(o.status>=200&&o.status<400){var a;try{a=JSON.parse(o.responseText)}catch(e){return void i("Invalid response from server when regenerating nonce")}a.success&&a.data?(window.bricksData.nonce=a.data.bricks_nonce,window.bricksData.wpRestNonce=a.data.rest_nonce,bricksAjaxPagination(e,t,n,!0).then(r).catch(i)):i("Failed to regenerate nonces: Invalid response structure")}else i("Failed to regenerate nonce")},o.send("action=bricks_regenerate_query_nonce")})}function bricksQueryPagination(){bricksQueryPaginationFn.run()}function bricksStickyHeader(){var e=document.querySelector("#brx-header.brx-sticky");if(e){var t,n,r=document.querySelector(".bricks-site-logo"),i=-1,o=e.hasAttribute("data-sli
5de-up-after")?e.getAttribute("data-slide-up-after"):0;r&&(t=r.getAttribute("data-bricks-logo"),n=r.getAttribute("data-bricks-logo-inverse"));var a=function(){if(!document.body.classList.contains("no-scroll")){var a=window.scrollY;a>0?(e.classList.add("scrolling"),r&&n&&r.src!==n&&(r.src=n,r.srcset="")):(e.classList.remove("scrolling"),r&&t&&r.src!==t&&(r.src=t)),o&&!document.querySelector(".bricks-search-overlay.show")&&(a>i&&i>=0?a>o&&(e.classList.contains("slide-up")||e.classList.add("sliding"),e.classList.add("slide-up")):(e.classList.contains("slide-up")&&e.classList.add("sliding"),e.classList.remove("slide-up"))),i=a}};e.addEventListener("transitionend",function(t){"transform"===t.propertyName&&e.classList.remove("sliding")}),window.addEventListener("scroll",a),a()}}function bricksOnePageNavigation(){var e=document.getElementById("bricks-one-page-navigation");if(bricksIsFrontend&&e){var t=bricksQuerySelectorAll(document,"#brx-content > *"),n=[],r="",i="",o="";t&&(t.forEach(function(t){(r=t.getAttribute("id"))&&(n.push(r),o=document.createElement("li"),(i=document.createElement("a")).classList.add("bricks-one-page-".concat(r)),i.setAttribute("href","#".concat(r)),o.appendChild(i),e.appendChild(o))}),window.addEventListener("load",a),window.addEventListener("resize",a),document.addEventListener("scroll",a))}function a(){var e=window.scrollY;n.forEach(function(t){var n=document.getElementById(t),r=n.offsetTop,i=r+n.offsetHeight;e>=r-1&&e<i-1?document.querySelector(".bricks-one-page-".concat(t)).classList.add("active"):document.querySelector(".bricks-one-page-".concat(t)).classList.remove("active")})}}function bricksSearchToggle(){bricksQuerySelectorAll(document,".brxe-search").forEach(function(e){var t=e.querySelector(".toggle"),n=e.querySelector(".bricks-search-overlay");if(t&&n){var r=n.previousElementSibling;document.addEventListener("keyup",function(e){"Escape"===e.key&&("visible"===window.getComputedStyle(n).visibility&&(n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)))}),t.addEventListener("click",function(){n.classList.toggle("show"),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")),setTimeout(function(){e.querySelector("input[type=search]").focus()},200)}),n.querySelector(".close").addEventListener("click",function(){n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)})}})}var bricksAlertDismissFn=new BricksFunction({parentNode:document,selector:".brxe-alert svg",eachElement:function(e){e.addEventListener("click",function(){e.closest(".brxe-alert").remove()})}});function bricksAlertDismiss(){bricksAlertDismissFn.run()}var bricksTabsFn=new BricksFunction({parentNode:document,selector:".brxe-tabs, .brxe-tabs-nested",forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t=window.location.hash,n=e.getAttribute("data-open-on")||"click",r=e.querySelector(".tab-title"),i=r?Array.from(r.parentNode.children).filter(function(e){return e.classList.contains("tab-title")}):[],o=e.querySelector(".tab-pane"),a=o?Array.from(o.parentNode.children).filter(function(e){return e.classList.contains("tab-pane")}):[];if(i.length&&a.length){i.forEach(function(t,r){t.addEventListener(n,function(){var n=null,o=null;i.forEach(function(e,i){i===r?(e.classList.add("brx-open"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),n=t):(e.classList.remove("brx-open"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}),a.forEach(function(e,t){t===r?(e.classList.add("brx-open"),o=e):e.classList.remove("brx-open")});var s=null==t||!t.id||t.id.startsWith("brxe-")||t.id.startsWith("brx-")?"":"#".concat(t.id);s?history.replaceState(null,null,s):history.replaceState(null,null," "),document.dispatchEvent(new CustomEvent("bricks/tabs/changed",{detail:{elementId:e.getAttribute("data-script-id"),activeIndex:r,activeTitle:n,activePane:o}}))}),t.addEventListener("keydown",function(e){var t;if("ArrowRight"===e.key)t=r+1===i.length?0:r+1;else if("ArrowLeft"===e.key)t=r-1<0?i.length-1:r-1;else if("Home"===e.key)e.preventDefault(),t=0;else{if("End"!==e.key)return;e.preventDefault(),t=i.length-1}i[t].focus(),i[t].click()})});var s=e.getAttribute("data-open-tab")||0;if(t){var c=i.findIndex(function(e){return(null==e?void 0:e.id)&&!e.id.startsWith("brxe-")&&e.id===t.replace("#","")});s=-1!==c?c:0}i[s]?i[s].classList.add("brx-open"):i[0].classList.add("brx-open"),a[s]?a[s].classList.add("brx-open"):a[0].classList.add("brx-open"),i.forEac
5h(function(e){e.classList.contains("brx-open")?(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}),bricksTabsAccordionLayoutOnMobile()}}});function bricksTabsAccordionLayoutOnMobile(){bricksQuerySelectorAll(document,".brxe-tabs, .brxe-tabs-nested").forEach(function(e){var t=parseInt(e.getAttribute("data-accordion-breakpoint"),10),n=e.querySelector(".tab-menu");if(t&&window.innerWidth<t){n&&(n.style.display="none"),e.querySelectorAll('.tab-title:not([data-brx-tab-mode="accordion"])').forEach(function(t,n){var r=e.querySelectorAll('[data-brx-tab-mode="accordion"]')[n];if(!t.hasAttribute("data-transferred")){var i=t.querySelector("span");i&&(r.insertBefore(i.cloneNode(!0),r.firstChild),i.remove(),t.classList.contains("brx-open")?r.classList.add("brx-open"):r.classList.remove("brx-open")),t.setAttribute("data-transferred","true")}}),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(e){return e.style.display="block"}),e.querySelectorAll(".tab-pane").forEach(function(e){e.removeAttribute("tabindex")});var r=e.querySelectorAll('[data-brx-tab-mode="accordion"]'),i=e.querySelector(".tab-pane");!function(e,t){e.forEach(function(n,r){n.addEventListener("click",function(){e.forEach(function(e,t){t===r?(n.classList.add("brx-open"),n.classList.contains("accordion-title")&&e.setAttribute("aria-expanded","true")):(e.classList.remove("brx-open"),e.classList.contains("accordion-title")&&e.setAttribute("aria-expanded","false"))}),t.forEach(function(e,t){t===r?e.classList.add("brx-open"):e.classList.remove("brx-open")});var i=null!=n&&n.id&&!n.id.startsWith("brxe-")?"#".concat(n.id):"";i?history.pushState("",document.title,window.location.pathname+i):history.pushState("",document.title,window.location.pathname+window.location.search)}),n.classList.contains("accordion-title")&&n.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),e.forEach(function(e,t){t===r?(e.classList.add("brx-open"),e.setAttribute("aria-expanded","true")):(e.classList.remove("brx-open"),e.setAttribute("aria-expanded","false"))}),t.forEach(function(e,t){t===r?e.classList.add("brx-open"):e.classList.remove("brx-open")}))})})}(r,i?Array.from(i.parentNode.children).filter(function(e){return e.classList.contains("tab-pane")}):[])}else{n&&(n.style.display=""),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(t,n){var r=e.querySelectorAll('.tab-title:not([data-brx-tab-mode="accordion"])')[n];if(r.hasAttribute("data-transferred")){var i=t.querySelector("span");i&&(r.insertBefore(i.cloneNode(!0),r.firstChild),i.remove(),t.classList.contains("brx-open")?r.classList.add("brx-open"):r.classList.remove("brx-open")),r.removeAttribute("data-transferred")}r.style.display="block"}),e.querySelectorAll('[data-brx-tab-mode="accordion"]').forEach(function(e){return e.style.display="none"}),e.querySelectorAll(".tab-pane").forEach(function(e){e.setAttribute("tabindex","0")});var o=e.querySelectorAll('[data-brx-tab-mode="accordion"]');o.forEach(function(e){var t=e.cloneNode(!0);e.parentNode.replaceChild(t,e)})}})}function bricksTabs(){bricksTabsFn.run()}var bricksVideoOverlayClickDetectorFn=new BricksFunction({parentNode:document,selector:".bricks-video-overlay, .bricks-video-overlay-icon, .bricks-video-preview-image",frontEndOnly:!0,eachElement:function(e){var t=function(e){var t=e.target.closest(".brxe-video");if(t){var n=t.querySelector(".bricks-video-preview-image");if(n){var r=document.createElement("iframe");_toConsumableArray(n.attributes).forEach(function(e){"class"!==e.name&&"style"!==e.name&&("data-iframe-src"!==e.name?r.setAttribute(e.name,e.value):r.setAttribute("src",e.value))}),r.dataset.bricksVideoPreviewIframe="true",n.replaceWith(r)}var i=t.querySelector("iframe");i&&i.getAttribute("src")&&(i.src+="&autoplay=1"),i&&i.removeAttribute("tabindex");var o=t.querySelector("video");o&&(o.play(),o.removeAttribute("tabindex"),setTimeout(function(){o.focus()},0))}};e.addEventListener("click",t),e.addEventListener("keydown",function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),t(e))})}});function bricksVideoOverlayClickDetector(){bricksVideoOverlayClickDetectorFn.run()}
5var bricksBackgroundVideoInitFn=new BricksFunction({parentNode:document,selector:".bricks-background-video-wrapper",forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){if(!e.classList.contains("loaded")){var t,n=e.getAttribute("data-background-video-url");if(n&&!n.includes("http")){/^[a-zA-Z0-9_-]{11}$/.test(n)?n="https://www.youtube.com/watch?v=".concat(n):/^[0-9]{6,10}$/.test(n)&&(n="https://vimeo.com/".concat(n))}if(n){var r=parseInt(e.getAttribute("data-background-video-show-at-breakpoint"));if(!(r&&window.innerWidth<r)){var i=e.getAttribute("data-background-video-scale"),o=e.getAttribute("data-background-video-ratio")||"16:9",a=parseInt(o.split(":")[0]||16),s=parseInt(o.split(":")[1]||9),c=parseInt(e.getAttribute("data-background-video-start"))||0,l=parseInt(e.getAttribute("data-background-video-end"))||0,d=1==e.getAttribute("data-background-video-loop"),u=e.getAttribute("data-background-video-poster"),p=e.getAttribute("data-background-video-poster-yt-size");l<c&&(l=0);var b=!1,v=!1,f=!1;if(-1!==n.indexOf("youtube.com")||-1!==n.indexOf("youtu.be")){b=!0,v=!0;var m=bricksGetYouTubeVideoLinkData(n);t=m.id,n=m.url}-1!==n.indexOf("vimeo.com")&&-1===n.indexOf("/progressive_redirect/")&&(b=!0,f=!0,-1===n.indexOf("player.vimeo.com/video")&&(n=n.replace("vimeo.com","player.vimeo.com/video")));var g,y=function(){var e=document.createElement("img");e.classList.add("bricks-video-poster-image");var n=!1;return v&&(p?(e.src="https://img.youtube.com/vi/".concat(t,"/").concat(p,".jpg"),n=!0):u&&(e.src=u,n=!0)),f&&u&&(e.src=u,n=!0),!!n&&e},k=function(){var t=e.querySelector(".bricks-video-poster-image");t&&t.remove()};if(b){if(v){if(!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){var w,h=document.createElement("script");!bricksIsFrontend&&null!==(w=window.bricksData)&&void 0!==w&&w.builderCloudflareRocketLoader&&h.setAttribute("data-cfasync","false"),h.src="https://www.youtube.com/iframe_api";var x=document.getElementsByTagName("script")[0];x.parentNode.insertBefore(h,x)}g=document.createElement("div"),bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),e.appendChild(g);var S=y();S&&e.appendChild(S);var L=setInterval(function(){if(window.YT&&YT.Player){clearInterval(L);var e=new YT.Player(g,{width:"640",height:"360",videoId:t,playerVars:{autoplay:1,controls:0,start:c||void 0,mute:1,rel:0,showinfo:0,modestbranding:1,cc_load_policy:0,iv_load_policy:3,autohide:0,loop:0,playlist:t,enablejsapi:1},events:{onReady:function(t){if(g=t.target.getIframe(),l)var n=setInterval(function(){e.getCurrentTime()>=l&&(d?e.seekTo(c||0,!0):(e.pauseVideo(),clearInterval(n)))},1e3)},onStateChange:function(t){d&&t.data==YT.PlayerState.ENDED&&e.seekTo(c||0,!0),t.data==YT.PlayerState.PLAYING&&k()}}})}},100)}if(f){if(!document.querySelector('script[src="https://player.vimeo.com/api/player.js"]')){var E,I=document.createElement("script");!bricksIsFrontend&&null!==(E=window.bricksData)&&void 0!==E&&E.builderCloudflareRocketLoader&&I.setAttribute("data-cfasync","false"),I.src="https://player.vimeo.com/api/player.js";var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(I,A)}bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),g=document.createElement("div");var T=y();T&&e.appendChild(T),e.appendChild(g);var q=n.split("/").pop(),F=setInterval(function(){if(window.Vimeo&&Vimeo.Player){clearInterval(F);var e=new Vimeo.Player(g,{id:q,width:640,autoplay:!0,controls:!1,background:!0,loop:d&&!c});T&&e.on("play",function(){k()}),c&&e.on("loaded",function(){e.setCurrentTime(c)}),l&&e.on("timeupdate",function(t){t.seconds>=l&&(d?(e.setCurrentTime(c||0),e.play()):e.pause())}),e.on("ended",function(){d&&e.setCurrentTime(c||0).then(function(t){e.play()})})}},100)}}else if(g=e.querySelector("video")){var C,P,D=null===(C=g.closest("[data-script-id]"))||void 0===C?void 0:C.getAttribute("data-script-id");d?g.hasAttribute("loop")||g.setAttribute("loop",""):g.removeAttribute("loop"),bricksIsFrontend||(g.currentTime=c||0),null!==(P=window.bricksData.videoInstances)&&void 0!==P&&P[D]||(window.bricksData.videoInstances[D]={}),window.bricksData.videoInstances[D].startTime=c,window.bricksData.videoInstances[D].endTime=l,window.bricksData.videoInstances[D].videoLoop=d;g.classList.contains("listening")||!c&&!l||(g.classList.add("listening"),g.addEventListener("loadedmetadata",function(){window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}),g.addEventListener("timeupdate",function(){this.currentTime>=(window.bricksData.videoInstances[D].endTime||this.duration)-.25&&(window.bricksData.videoInstances[D].videoLoop?(this.currentTime=window.bricksData.videoInstances[D].startTime,g.paused&&this.play()):this.pause())}),g.addEventListener("ended",function(){window.bricksData.videoInstances[D].videoLoop&&window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}))}i&&(g.style.transform="translate(-50%, -50%) scale(".concat(i,")")),bricksIsFrontend?e.classList.contains("bricks-lazy-video")&&new BricksIntersect({element:e,callback:function(e){e.classList.remove("bricks-lazy-video"),b?e.appendChild(g):g.src=n}}):b?e.appendChild(g):g.src=n,e.classList.add("loaded"),new ResizeObserver(function(t){var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=void 0;if(i.contentBoxSize)o=(Array.isArray(i.contentBoxSize)?i.contentBoxSize[0]:i.contentBoxSize).inlineSize;else o=i.contentRect.width;var c=e.clientHeight,l=o*s/a;l<c&&(l=c,o=c*a/s),g.style.width="".concat(o,"px"),g.style.height="".concat(l,"px")}}catch(e){r.e(e)}finally{r.f()}}).observe(e)}}}}});
5function bricksBackgroundVideoInit(){bricksBackgroundVideoInitFn.run()}var bricksPhotoswipeFn=new BricksFunction({parentNode:document,selector:".bricks-lightbox",windowVariableCheck:["PhotoSwipeLightbox"],forceReinit:function(e){return!!bricksUtils.photoswipeGetId(e)},eachElement:function(e){bricksUtils.photoswipeDestroy(e);var t=e,n="A"===e.tagName?"":"a",r=bricksUtils.photoswipeGetId(e),i=e.getAttribute("data-animation-type")||"zoom";r&&(n=bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"]')));var o={mainClass:"brx",gallery:t,counter:!t.classList.contains("brxe-carousel"),children:n,pswpModule:PhotoSwipe5,closeSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',closeTitle:window.bricksData.i18n.close,zoomTitle:window.bricksData.i18n.zoom,arrowPrevTitle:window.bricksData.i18n.prevSlide,arrowNextTitle:window.bricksData.i18n.nextSlide,showHideAnimationType:i},a=null,s=null,c=null;r?n.forEach(function(e){if(e.classList.contains("has-lightbox-thumbnails"))a=e;else{var t=e.closest(".has-lightbox-thumbnails");t&&(a=t)}if(e.getAttribute("data-lightbox-padding"))s=e;else{var n=e.closest("[data-lightbox-padding]");n&&(s=n)}if(e.classList.contains("has-lightbox-caption"))c=e;else{var r=e.closest(".has-lightbox-caption");r&&(c=r)}}):e.classList.contains("has-lightbox-thumbnails")&&(a=e);var l=(a||s||e).getAttribute("data-lightbox-padding");l&&(o.padding=JSON.parse(l));var d=e.getAttribute("data-lightbox-image-click");d&&(o.imageClickAction=d);var u=new PhotoSwipeLightbox(o),p=function(e){return!(null==e||!e.src||null==e||!e.msrc||e.src===e.msrc)};if(u.addFilter("placeholderSrc",function(e,t){return e&&p(null==t?void 0:t.data)?t.data.src:e}),u.on("closingAnimationStart",function(){var e,t,n,r,i,o=null===(e=u.pswp)||void 0===e?void 0:e.currSlide,a=null===(t=u.pswp)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.hideAnimationDuration;if(p(null==o?void 0:o.data)&&a){var s=(null===(n=u.pswp)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.easing)||"cubic-bezier(.4,0,.22,1)";[null==o||null===(r=o.content)||void 0===r?void 0:r.element,null==o||null===(i=o.content)||void 0===i||null===(i=i.placeholder)||void 0===i?void 0:i.element].filter(
5Boolean).forEach(function(e){e.style.transition="opacity ".concat(a,"ms ").concat(s),e.style.opacity="0"})}}),"none"===i&&u.addFilter("useContentPlaceholder",function(e,t){return!1}),"undefined"!=typeof PhotoSwipeDynamicCaption&&(c||e).classList.contains("has-lightbox-caption")){new PhotoSwipeDynamicCaption(u,{type:"below",captionContent:function(e){return e.data.element.getAttribute("data-lightbox-caption")}});u.on("init",function(){u.pswp.on("dynamicCaptionMeasureSize",function(e){var t;if("aside"!==(null===(t=e.slide)||void 0===t||null===(t=t.dynamicCaption)||void 0===t?void 0:t.type)){var n=function(e){if(null==e||!e.element)return 0;var t=e.element.querySelector(".pswp__thumbnail-nav-wrapper"),n=parseFloat(getComputedStyle(e.element).getPropertyValue("--pswp-thumbnail-nav-offset"))||0;return t?t.offsetHeight+n:0}(u.pswp);n&&(e.captionSize.y+=n)}})})}if(a&&(u.on("uiRegister",function(){u.pswp.ui.registerElement({name:"thumbnail-navigation",className:"pswp__thumbnail-nav-wrapper",appendTo:"wrapper",onInit:function(n,i){var s=document.createElement("div");s.className="pswp__thumbnail-nav";var c=[],l=function(){i.element&&(i.element.classList.add("pswp--has-thumbnail-nav"),i.element.style.setProperty("--pswp-thumbnail-nav-height","".concat(n.offsetHeight,"px")))},d=[];d=r?bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"][data-pswp-src]')):e.querySelectorAll("a[data-pswp-src]");var u=[];d.forEach(function(e){if(!e.parentNode.classList.contains("swiper-slide-duplicate")){var t=e.getAttribute("href");t&&!u.includes(t)&&u.push(t)}}),u.forEach(function(e,t){var n=document.createElement("img");n.src=e,n.dataset.index=t,c.push(n);var r=a.getAttribute("data-lightbox-thumbnail-size");r&&(n.style.width=isNaN(r)?r:r+"px"),s.appendChild(n)}),n.appendChild(s),l();var p=new ResizeObserver(l);p.observe(n),c.forEach(function(e){e.addEventListener("load",l)}),i.on("resize",l),i.on("destroy",function(){p.disconnect(),c.forEach(function(e){e.removeEventListener("load",l)})}),s.addEventListener("click",function(e){var n=parseInt(e.target.getAttribute("data-index"));if(Number.isInteger(n)){if(s.setAttribute("data-active-index",n),null!=o&&o.loop&&(n+=2),t.classList.contains("brxe-carousel")){var r=t.getAttribute("data-script-id"),a=bricksData.swiperInstances[r].slides.map(function(e,t){return{slide:e,index:t,pswpIndex:Number(e.dataset.swiperSlideIndex)}}).filter(function(e){return!e.slide.classList.contains("swiper-slide-duplicate")&&e.pswpIndex===n});a.length&&(n=a[0].index)}i.goTo(n)}})}})}),u.on("change",function(){var e=document.querySelector(".pswp__thumbnail-nav");if(e){var t=e.querySelector(".active");t&&t.classList.remove("active");var n=u.pswp.currSlide.data.element.dataset.pswpIndex||u.pswp.currIndex;if(t=e.querySelector('img[data-index="'.concat(n,'"'))){t.classList.add("active");var r=t.getBoundingClientRect(),i=e.offsetWidth/2-t.offsetLeft-r.width/2;i+=(window.innerWidth-e.offsetWidth)/2,e.style.transform="translateX("+i+"px)"}}})),u.on("itemData",function(t){var n=document.querySelector(".brx .pswp__container"),r=e.getAttribute("data-pswp-video-url"),i=e.getAttribute("data-pswp-width"),o=e.getAttribute("data-pswp-height"),a=1==e.getAttribute("data-no-controls")?0:1,s=1==e.getAttribute("data-muted");if(i&&(i.includes("%")||i.includes("vw"))&&(i=window.innerWidth*(parseInt(i)/100)),o&&(o.includes("%")||o.includes("vh"))&&(o=window.innerHeight*(parseInt(o)/100)),i||(i=1280),o&&720!=o||(o=Math.round(i/16*9)),!n&&r){var c=bricksGetLightboxVideoNode(r,a,s);t.itemData={html:c.outerHTML,width:i,height:o}}}),u.on("contentAppend",function(e){var t=e.content;if(t.element){var n=t.element.querySelector("video");n&&n.play()}}),t.classList.contains("brxe-carousel")){var b,v=t.getAttribute("data-script-id");null!==(b=bricksData.swiperInstances)&&void 0!==b&&null!==(b=b[v])&&void 0!==b&&b.loopedSlides&&(u.addFilter("numItems",function(e,t){if(t.gallery){var n=0;t.gallery.classList.contains("brxe-carousel")&&(n=t.gallery.querySelectorAll(".swiper-slide-duplicate").length),e=e>n?e-n:e}return e}),u.addFilter("clickedIndex",function(e,t){var n=t.target.closest(".swiper-slide");if(n){var r=bricksData.swiperInstances[v].slides.map(function(e,t){return{slide:e,index:t}}
5).filter(Boolean);if(r.length){var i=parseInt(n.dataset.swiperSlideIndex),o=r.filter(function(e){return e.slide.dataset.swiperSlideIndex==i});o.length&&(e=o[0].index)}}return e}))}e.bricksPhotoswipe=u,u.init()}});function bricksPhotoswipe(){bricksPhotoswipeFn.run()}function bricksGetLightboxVideoNode(e,t,n){if(e){hasContent=!0;var r=!1;if(-1!==e.indexOf("youtube.com")||-1!==e.indexOf("youtu.be")){r=!0;var i=bricksGetYouTubeVideoLinkData(e);if(e=i.url,i.id){var o=-1!==e.indexOf("?")?"&":"?";e+=o+"autoplay=1",e+="&rel=0",t||(e+="&controls=0"),n&&(e+="&mute=1")}}if(-1!==e.indexOf("vimeo.com"))-1!==e.indexOf("/progressive_redirect/")?r=!1:(r=!0,-1===e.indexOf("player.vimeo.com/video")&&(e=e.replace("vimeo.com","player.vimeo.com/video")),e+="?autoplay=1",t||(e+="&controls=0"));if(r){var a=document.createElement("iframe");return a.setAttribute("src",e),a.setAttribute("allow","autoplay"),a.setAttribute("allowfullscreen",1),a}var s=document.createElement("video");return s.setAttribute("src",e),t&&s.setAttribute("controls",1),s.setAttribute("playsinline",1),s}}var bricksAccordionFn=new BricksFunction({parentNode:document,selector:".brxe-accordion, .brxe-accordion-nested",forceReinit:!0,eachElement:function(e){var t,n,r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.display="block",t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(t.offsetHeight,"px"),t.offsetHeight,t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0;var r=t.parentNode;r.classList.remove("brx-open"),window.setTimeout(function(){t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),document.dispatchEvent(new CustomEvent("bricks/accordion/close",{detail:{elementId:e.getAttribute("data-script-id"),closeItem:r}}))},n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"none"===window.getComputedStyle(t).display?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.removeProperty("display");var r=window.getComputedStyle(t).display;"none"===r&&(r="block"),t.style.display=r;var i=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,t.offsetHeight,t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(i,"px"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom");var o=t.parentNode;o.classList.add("brx-open"),window.setTimeout(function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),document.dispatchEvent(new CustomEvent("bricks/accordion/open",{detail:{elementId:e.getAttribute("data-script-id"),openItem:o}}))},n)}(t,n):r(t,n)},o=function(e){var t;e.classList.add("brx-open");var n=null!==(t=e.querySelector(".accordion-title-wrapper"))&&void 0!==t&&t;n&&n.setAttribute("aria-expanded","true")},a=Array.from(e.children),s=e.hasAttribute("data-transition")?isNaN(e.dataset.transition)?0:e.dataset.transition:200,c=null===(t=e.dataset.scriptArgs)||void 0===t?void 0:t.includes("expandFirstItem"),l=null===(n=e.dataset.scriptArgs)||void 0===n?void 0:n.includes("independentToggle"),d=!!c&&["0"];!1===d&&e.hasAttribute("data-expand-item")&&(d=e.getAttribute("data-expand-item").split(","));var u=window.location.hash||"";(a=a.filter(function(e){return e.classList.contains("brxe-section")||e.classList.contains("brxe-container")||e.classList.contains("brxe-block")||e.classList.contains("brxe-div")||e.classList.contains("accordion-item")}
5)).forEach(function(t,n){d&&d.includes(n.toString())&&o(t);var a=null!=t&&t.id&&!t.id.startsWith("brxe-")?"#".concat(t.id):"";if(a&&a===u&&o(t),!t.classList.contains("listening")){t.classList.add("listening"),t.addEventListener("click",function(t){var n=t.target.closest(".accordion-title-wrapper");if(n){var o=n.parentNode;if(o){var c=o.querySelector(".accordion-content-wrapper");if(c)if(!t.target.closest(".bricks-active-selector-detector")){if(t.stopPropagation(),!l){var d=e.querySelectorAll(":scope > .brx-open");d.length&&d.forEach(function(e){var t=e.querySelector(".accordion-content-wrapper");t&&t!==c&&(r(t,s),t.previousElementSibling.setAttribute("aria-label",window.bricksData.i18n.openAccordion),t.previousElementSibling.setAttribute("aria-expanded","false"))})}var u=!o.classList.contains("brx-open");a&&u?history.replaceState(null,null,a):history.replaceState(null,null," "),i(c,s),o.classList.contains("brx-open")?n.setAttribute("aria-expanded","true"):n.setAttribute("aria-expanded","false")}}}});var c=t.querySelector(".accordion-title-wrapper")||t;"button"===c.getAttribute("role")&&c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c.click())})}})}});function bricksAccordion(){bricksAccordionFn.run()}var bricksAnimatedTypingFn=new BricksFunction({parentNode:document,selector:".brxe-animated-typing",windowVariableCheck:["Typed"],eachElement:function(e){var t,n=e.dataset.scriptId;try{t=JSON.parse(e.dataset.scriptArgs)}catch(e){return!1}var r=e.querySelector(".typed");if(r&&(window.bricksData.animatedTypingInstances[n]&&!e.closest(".brxe-slider-nested.splide")&&window.bricksData.animatedTypingInstances[n].destroy(),t.hasOwnProperty("strings")&&t.strings&&(!Array.isArray(t.strings)||t.strings.toString()))){Array.isArray(t.strings)&&(t.strings=t.strings.map(function(e){return e.replace(/&/g,"&")})),window.bricksData.animatedTypingInstances[n]=new Typed(r,t);var i=e.closest(".brx-popup:not([data-popup-ajax])");i&&document.addEventListener("bricks/popup/open",function(e){e.detail.popupElement===i&&window.bricksData.animatedTypingInstances[n].reset()})}}});function bricksAnimatedTyping(){bricksAnimatedTypingFn.run()}var bricksAudioFn=new BricksFunction({parentNode:document,selector:".brxe-audio",windowVariableCheck:["MediaElementPlayer"],eachElement:function(e){var t=e.querySelector("audio");if(t)new MediaElementPlayer(t)}});function bricksAudio(){bricksAudioFn.run()}var bricksPostReadingTimeFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-time",eachElement:function(e){var t=e.getAttribute("data-wpm"),n=e.getAttribute("data-cpm");if(t||n){var r=e.dataset.contentSelector||".brxe-post-content",i=e.closest("[data-query-loop-index]"),o=i?i.querySelector(r):document.querySelector(r);if(o||(o=document.querySelector("#brx-content")),o){var a,s=e.getAttribute("data-prefix")||"",c=e.getAttribute("data-suffix")||"",l=o.textContent,d=1.5,u=2.5;if(n){var p=l.replace(/\s+/g,"").length;a=Math.ceil(p/parseInt(n))}else{var b=function(e){var t,n=0,r=0,i="",o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=v(a);"chinese"===s?n++:"japanese"===s?r++:i+=a}}catch(e){o.e(e)}finally{o.f()}var c=n/d,l=r/u;return i=function(e,t){var n=new RegExp("\\S{".concat(15,",}"),"g");return e.replace(n,function(e){return e.match(new RegExp(".{1,".concat(t,"}"),"g")).join(" ")})}(i,5),c+l+i.split(/\s+/).filter(function(e){return e.length>0}).length}(l);a=Math.ceil(b/parseInt(t))}e.textContent=s+a+c}}function v(e){return/[\u4e00-\u9fa5]/.test(e)?"chinese":/[\u3040-\u30FF]/.test(e)?"japanese":"other"}}});function bricksPostReadingTime(){bricksPostReadingTimeFn.run()}var bricksCountdownFn=new BricksFunction({parentNode:document,selector:".brxe-countdown",eachElement:function(e){countdown=function(e,t,n){var r=6e4*(("+"===t.timezone[3]?1:-1)*(60*parseInt(t.timezone.substring(4,6))+parseInt(t.timezone.substring(7,9)))),i=6e4*-(new Date).getTimezoneOffset(),o=t.date.replace(" ","T"),a=new Date(o).getTime()+i-r-(new Date).getTime();if(a<=0){if(clearInterval(e.dataset.bricksCountdownId),"hide"===t.action)return void(e.innerHTML="");if("text"===t.action)return void(e.innerHTML=t.actionText)}n&&(e.innerHTML="",t.fields.forEach(function(t){if(t.format){var n=document.createElement("div");if(n.classList.add("field"),t.prefix){var r=document.createElement("span");r.classList.add("prefix"),r.innerHTML=t.prefix,n.appendChild(r)}var i=document.createElement("span");if(i.classList.add("format"),n.appendChild(i),t.suffix){var o=document.createElement("span");o.classList.add("suffix"),o.innerHTML=t.suffix,n.appendChild(o)}e.appendChild(n)}}));var s=bricksQuerySelectorAll(e,".field"),c=Math.floor(a/864e5),l=Math.floor(a%864e5/36e5),d=Math.floor(a%36e5/6e4),u=Math.floor(a%6e4/1e3);t.fields.forEach(function(e,t){if(e.format&&s[t]){var n=e.format.toLowerCase();n.includes("%d")?(e.format.includes("%D")&&c<=9&&(c="0".concat(c)),s[t].querySelector(".format").innerHTML=n.replace("%d",a<=0?0:c)):n.includes("%h")?(e.format.includes("%H")&&l<=9&&(l="0".concat(l)),s[t].querySelector(".format").innerHTML=n.replace("%h",a<=0?0:l)):n.includes("%m")?(e.format.includes("%M")&&d<=9&&(d="0".concat(d)),s[t].querySelector(".format").innerHTML=n.replace("%m",a<=0?0:d)):n.includes("%s")&&(e.format.includes("%S")&&u<=9&&(u="0".concat(u)),s[t].querySelector(".format").innerHTML=n.replace("%s",a<=0?0:u))}})};var t=e.dataset.bricksCountdownOptions;try{t=JSON.parse(t)}catch(e){return!1}if(t.hasOwnProperty("date")&&t.hasOwnProperty("fields")){var n=e.dataset.bricksCountdownId;n&&clearInterval(n),countdown(e,t,!0),n=setInterval(countdown,1e3,e,t,!1),e.dataset.bricksCountdownId=n}}});function bricksCountdown(){bricksCountdownFn.run()}var bricksCounterFn=new BricksFunction({parentNode:document,selector:".brxe-counter",subscribeEvents:["bricks/popup/open","bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"],forceReinit:function(e,t){return e.closest(".brx-popup")},eachElement:function(e){var t,n=e.dataset.bricksCounterOptions;try{n=JSON.parse(n)}catch(e){return!1}var r=e.querySelector(".count"),i=n.hasOwnProperty("countFrom")?parseInt(n.countFrom):0,o=n.hasOwnProperty("countTo")?parseInt(n.countTo):100,a=n.hasOwnProperty("duration")?parseInt(n.duration):1e3,s=null===(t=n)||void 0===t?void 0:t.separator;a<500&&(a=500);var c=a/(o-i),l=1;c<16&&(l=Math.ceil(16/c),c=16);var d=function(){var e=r.innerText.replace(/\D/g,""),t=(e=isNaN(e)?i:parseInt(e))+l<o?e+l:o;if(e>=o)return clearInterval(r.dataset.counterId),void delete r.dataset.counterId;
5n.thousands&&s?r.innerText=t.toLocaleString("en-US").replaceAll(",",s):n.thousands?r.innerText=t.toLocaleString():r.innerText=t},u=function(){r.innerText=i,null==r.dataset.counterId&&(r.dataset.counterId=setInterval(d,c))},p=r.closest(".brx-popup");p?p.classList.contains("hide")||u():new BricksIntersect({element:e,callback:u})},listenerHandler:function(e){var t;if(null!=e&&e.type)if("bricks/popup/open"===e.type){var n={parentNode:null!==(t=e.details)&&void 0!==t&&t.popupElement?e.details.popupElement:document};bricksCounterFn.run(n)}else bricksCounterFn.run()}});function bricksCounter(){bricksCounterFn.run()}var bricksTableOfContentsFn=new BricksFunction({parentNode:document,selector:".brxe-post-toc",forceReinit:!0,eachElement:function(e){if(null!==e.offsetParent&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))n(e);else{var t=new IntersectionObserver(function(r){r.forEach(function(r){r.isIntersecting&&(n(e),t.disconnect())})},{threshold:.1});t.observe(e)}function n(e){window.tocbot&&window.tocbot.destroy();var t=e.dataset.scriptId,n=e.dataset.contentSelector||".brxe-post-content",r=document.querySelector(n);if(r||(r=document.querySelector("#brx-content"))&&(n="#brx-content"),r){var i=e.dataset.headingSelectors||"h2, h3",o=r.querySelectorAll(i),a={};o.forEach(function(e){if(!e.id||a[e.id]){var n=function(e,t){var n=e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[!@#$%^&*()=:;,.ââ"'`]/gi,"").replace(/\//gi,"-").split(" ").join("-");if(/^\d/.test(n))return"".concat(t,"-").concat(n);return n}(e.textContent,t);a[n]?(a[n]++,n="".concat(n,"-").concat(a[n])):a[n]=1,e.id=n}else a[e.id]=1});var s=parseInt(e.dataset.headingsOffset)||0,c=e.hasAttribute("data-smooth-scroll"),l={tocSelector:'.brxe-post-toc[data-script-id="'.concat(t,'"]'),contentSelector:n,headingSelector:i,ignoreSelector:e.dataset.ignoreSelector||".toc-ignore",hasInnerContainers:!0,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:e.dataset.collapseInactive?0:6,scrollSmooth:s,scrollSmoothDuration:c&&s?420:0,scrollSmoothOffset:s?-s:0,headingsOffset:s,throttleTimeout:0,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,orderedList:!1,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0};window.tocbot.init(l)}}}});function bricksTableOfContents(){bricksTableOfContentsFn.run()}var bricksFormFn=new BricksFunction({parentNode:document,selector:".brxe-form",eachElement:function(e){var t=e.getAttribute("data-element-id"),n="true"===e.getAttribute("data-validate-all-fields"),r=JSON.parse(e.getAttribute("data-validation-disabled-on"))||[];function i(e,t){e.addEventListener("dragstart",function(t){e.classList.add("dragging"),e.style.opacity="0.5",t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/html",e.innerHTML)}),e.addEventListener("dragend",function(n){e.style.opacity="1",e.classList.remove("dragging"),function(e){var t=e.parentNode.querySelector('input[type="hidden"]');if(!t)return;var n=e.querySelectorAll(".image-preview"),r=[];n.forEach(function(e){var t=e.querySelector("img");t&&t.dataset.attachmentId&&r.push(t.dataset.attachmentId)}),t.value=r.join(",")}(t)}),e.addEventListener("dragover",function(n){n.preventDefault(),n.dataTransfer.dropEffect="move";var r=t.querySelector(".dragging");if(r&&r!==e){var i=Array.from(t.querySelectorAll(".image-preview"));i.indexOf(r)<i.indexOf(e)?t.insertBefore(r,e.nextSibling):t.insertBefore(r,e)}}),e.addEventListener("drop",function(e){e.preventDefault(),e.stopPropagation()})}function o(e,t){e.addEventListener("click",function(n){n.preventDefault();var i,o=e.dataset.attachmentId,a=e.closest(".image-preview"),s=t.classList.contains("gallery-preview");if(i=s?t.parentNode.querySelector('input[type="hidden"]'):a.parentNode.querySelector('input[type="hidden"]'),s&&i){var c=i.value,l=c?c.split(",").map(function(e){return e.trim()}):[];l=l.filter(function(e){return e!==o}),i.value=l.join(","),!i.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(i)}else i&&(i.value="",!i.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(i));a&&a.remove()})}function a(e,t,n){t.on("select",function(){var a=t.state().get("selection").map(function(e){return e.toJSON()});if(n){var s=e.parentNode.querySelector(".gallery-preview"),c=e.parentNode.querySelector('input[type="hidden"]');if(!s)return;s.querySelectorAll(".image-preview").forEach(function(e){return e.remove()});var l=[];a.forEach(function(e){var t,n=function(e,t){var n=document.createElement("div");n.classList.add("image-preview");var r=t.classList.contains("gallery-preview");r&&(n.setAttribute("draggable","true"),n.style.cursor="move");var a=document.createElement("img");a.src=e.url,a.alt=e.alt||"",a.title=e.title||"",a.style="max-height: 150px",a.dataset.attachmentId=e.id;var s=document.createElement("button");return s.type="button",s.classList.add("choose-files","remove"),s.dataset.action="media-library",s.dataset.attachmentId=e.id,s.textContent=window.bricksData.i18n.remove,o(s,t),n.appendChild(a),n.appendChild(s),r&&i(n,t),n}(_objectSpread(_objectSpread({},e),{},{url:(null===(t=e.sizes)||void 0===t||null===(t=t.thumbnail)||void 0===t?void 0:t.url)||e.url}),s);s.appendChild(n),l.push(String(e.id))}),c&&(c.value=l.join(","),!c.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(c))}else{var d=e.parentNode.querySelector(".image-preview"),u=e.parentNode.querySelector('input[type="hidden"]');if(!a[0])return;var p=a[0];if(d){var v=d.querySelector("img");v&&v.remove();var f=document.createElement("img");f.src=p.url,f.alt=p.alt||"",f.title=p.title||"",f.style="max-height: 150px",d.insertBefore(f,d.firstChild)}u&&(u.value=p.id,!u.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||b(u))}})}bricksQuerySelectorAll(e,'input[type="checkbox"]').forEach(function(t){t.required&&t.addEventListener("click",function(n){var r=t.getAttribute("name"),i=bricksQuerySelectorAll(e,'input[name="'.concat(r,'"]')),o=!1;
5i.forEach(function(e){!0===e.checked&&(o=!0)}),o?i.forEach(function(e){e.required=!1}):i.forEach(function(e){e.required=!0})})}),bricksQuerySelectorAll(e,".choose-files.image").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=e.classList.contains("multiple"),r=window.wp.media({multiple:n,library:{type:"image"}});a(e,r,n);var i=e.parentNode.querySelector('input[type="hidden"]');if(i&&i.value){var o=i.value.split(",").map(function(e){return e.trim()});o.length>0&&r.on("open",function(){var e=r.state().get("selection");o.forEach(function(t){var n=wp.media.attachment(t);n.fetch(),e.add(n)})})}r.open()})}),bricksQuerySelectorAll(e,".choose-files.remove").forEach(function(e){var t=e.closest(".gallery-preview")||e.closest(".image-preview");if(t){if(!e.dataset.attachmentId){var n=e.parentNode.querySelector("img");n&&n.dataset.attachmentId&&(e.dataset.attachmentId=n.dataset.attachmentId)}o(e,t)}}),bricksQuerySelectorAll(e,".gallery-preview").forEach(function(e){e.querySelectorAll(".image-preview").forEach(function(t){t.setAttribute("draggable","true"),t.style.cursor="move",i(t,e)})});var s=e.querySelectorAll('input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea');s.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")||e.addEventListener("input",window.bricksUtils.debounce(function(){d(e)},300)),r.includes("blur")||e.addEventListener("blur",window.bricksUtils.debounce(function(){d(e)},300)))}),e.querySelectorAll('input[type="checkbox"], input[type="radio"]').forEach(function(e){var t=e.closest(".form-group");t&&t.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){u(e)}))});var c=e.querySelectorAll("select");function l(e,t,n){var r=e.querySelector(".form-group-error-message");r||((r=document.createElement("div")).classList.add("form-group-error-message"),e.appendChild(r)),t&&n?(r.innerText=n,r.classList.add("show")):(r.innerText="",r.classList.remove("show"))}function d(e){var t=e.value.trim(),n=e.getAttribute("data-error-message"),r=e.closest(".form-group"),i=!1,o=e.hasAttribute("required")||"true"===e.dataset.wasRequired;if(o&&!t&&(i=!0),"number"===e.type){var a=parseFloat(e.getAttribute("min")),s=parseFloat(e.getAttribute("max")),c=parseFloat(t);(null!==a&&c<a||null!==s&&c>s)&&(i=!0)}return"email"===e.type&&(i=!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)),"url"===e.type&&(i=!/^(https?:\/\/)?([\w.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/.test(t)),o||""!=t||(i=!1),l(r,i,n),!i}function u(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.type,r=e.getAttribute("name"),i=t.querySelectorAll('input[type="'.concat(n,'"][name="').concat(r,'"]')),o=!1;i.forEach(function(e){e.checked&&(o=!0)});var a=t.getAttribute("data-error-message"),s=!1;return e.hasAttribute("required")&&!o&&(s=!0),l(t,s,a),!s}function p(e,t){var n=e.closest(".form-group");if(!n)return!0;var r=e.getAttribute("data-error-message"),i=!1;if(e.hasAttribute("required")||"true"===e.dataset.required){var o=e.getAttribute("name"),a=e.files&&e.files.length>0,s=t.hasOwnProperty(o)&&t[o].length>0,c=n.querySelector('input[name^="bricks_form_existing_files"]');a||s||c||(i=!0)}return l(n,i,r),!i}function b(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.getAttribute("data-error-message"),r=!1;e.hasAttribute("required")&&(e.value.trim()||(r=!0));return l(t,r,n),!r}c.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){return d(e)}))}),e.querySelectorAll(".password-toggle").forEach(function(e){var t=e.previousElementSibling;t&&t.type.match(/password|text/)&&e.addEventListener("click",function(){var n="password"===t.type;t.type=n?"text":"password",e.setAttribute("aria-label",n?window.bricksData.i18n.hidePassword:window.bricksData.i18n.showPassword),e.querySelector(".show-password").classList.toggle("hide"),e.querySelector(".hide-password").classList.toggle("hide")})}),bricksQuerySelectorAll(e,".flatpickr").forEach(function(e){var t=e.dataset.bricksDatepickerOptions;t&&((t=JSON.parse(t)).disableMobile=!0,t.onReady=function(e,t,n){if(n.altInput){var r=n.altInput.previousElementSibling?n.altInput.previousElementSibling.getAttribute("aria-label"):"Date";n.altInput.setAttribute("aria-label",r||"Date")}},flatpickr(e,t))});var v={},f=bricksQuerySelectorAll(e,"input[type=file]");f.forEach(function(t){var n=t.getAttribute("data-files-ref"),i=t.getAttribute("data-maxsize")||!1,o=t.getAttribute("data-limit")||!1;i=!!i&&1024*parseInt(i)*1024,!t.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||t.addEventListener("change",function(){p(t,v)}),t.addEventListener("change",function(a){var s=a.target.files,c=s.length,l=t.getAttribute("name"),d=0;if(o&&(d=e.querySelectorAll('.file-result.existing-file[data-files-ref="'.concat(n,'"]')).length),c){for(var u=e.querySelector('.file-result[data-files-ref="'.concat(n,'"]')),b=function(){var e=s[f],n=!1,a=u.cloneNode(!0),c=v.hasOwnProperty(l)?v[l].length:0;if(o&&c+d>=o&&(n="limit"),i&&e.size>i&&(n="size"),a.classList.add("show"),n){a.classList.add("danger"),a.querySelector(".text").remove(),a.querySelector(".remove").remove();var b=a.querySelector("svg"),m=a.getAttribute("data-error-".concat(n)).replace("%s",e.name);a.insertAdjacentHTML("afterbegin",m),b.addEventListener("click",function(){a.remove()})}else{v.hasOwnProperty(l)||(v[l]=[]),v[l].push(e);var g=a.querySelector(".text"),y=a.querySelector(".remove");a.querySelector("svg").remove(),g.innerHTML=e.name,y.setAttribute("data-name",e.name),y.setAttribute("data-field",l),y.addEventListener("click",function(e){for(var n=e.target.getAttribute("data-name"),i=e.target.getAttribute("data-field"),o=v[i],s=0;s<o.length;s++)if(o[s].name===n){v[l].splice(s,1);break}a.remove();for(var c=new DataTransfer,d=0;d<t.files.length;d++){var u=t.files[d];u.name!==n&&c.items.add(u)}t.files=c.files,!t.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||p(t,v)})}u.parentNode.insertBefore(a,u.nextSibling)},f=0;f<c;f++)b();var m=new DataTransfer;v.hasOwnProperty(l)&&v[l].forEach(function(e){m.items.add(e)}),t.files=m.files}})}),bricksQuerySelectorAll(e,".file-result.existing-file").forEach(function(t){var n=t.querySelector(".remove");n&&n.addEventListener("click",function(){var i=n.getAttribute("data-field"),o=n.getAttribute("data-existing-file-value"),a=document.createElement("input");a.type="hidden",a.name="bricks_form_removed_files[".concat(i,"][]"),a.value=o,e.appendChild(a),t.remove();var s=t.getAttribute("data-files-ref"),c=e.querySelector('input[type=file][data-files-ref="'.concat(s,'"]'));c&&"true"===c.dataset.required&&!e.querySelector('.file-result.existing-file[data-files-ref="'.concat(s,'"]'))&&c.setAttribute("required",""),!c||!c.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||p(c,v)})}),e.addEventListener("submit",function(r){var i;if(r.preventDefault(),bricksIsFrontend){for(var o=!0,a=0,l=[].concat(_toConsumableArray(s),_toConsumableArray(c));a<l.length;a++){var m=l[a];if(m.getAttribute("data-error-message")&&bricksIsFrontend){var g=d(m);if(!(o=o&&g)&&!n)break}}if(o||n)e.querySelectorAll(".form-group[data-error-message]").forEach(function(e){var t=e.querySelector('input[type="checkbox"], input[type="radio"]');if(t){var n=u(t);o=o&&n}});if((o||n)&&f.forEach(function(e){if(e.getAttribute("data-error-message")){var t=p(e,v);o=o&&t}}),o||n)e.querySelectorAll(".form-group").forEach(function(e){var t=e.querySelector('input[type="hidden"][data-error-message]');if(t){var n=b(t);o=o&&n}});if(o){var y=e.querySelector("[data-hcaptcha-widget-id]"),k=y?y.getAttribute("data-hcaptcha-widget-id"):"";if("function"==typeof(null===(i=window)||void 0===i||null===(i=i.hcaptcha)||void 0===i?void 0:i.execute)&&document.querySelector('.h-captcha[data-size="invisible"]'))hcaptcha.execute(k,{async:!0}).then(function(){bricksSubmitForm(t,e,v,null)}
5).catch(function(e){console.warn(e)});else{var w=e.querySelector(".cf-turnstile");if(w&&void 0!==window.turnstile){var h,x=bricksGetTurnstileWidgetReference(w),S=w.querySelector('input[name="cf-turnstile-response"]'),L=function(){window.bricksPendingTurnstileSubmission={elementId:t,form:e,files:v}};if("true"===(null===(h=e.dataset)||void 0===h?void 0:h.brxTurnstileRefresh))return e.dataset.brxTurnstileRefresh="false",S&&(S.value=""),L(),void(x&&(turnstile.reset(x),"function"==typeof turnstile.execute&&turnstile.execute(x)));var E=x?turnstile.getResponse(x):null;if(E||(E=S?S.value:null),!E)return void L()}var I=document.getElementById("recaptcha-".concat(t)),A=e.querySelector(".recaptcha-error");if(I){var T=I.getAttribute("data-key");if(T)try{grecaptcha.ready(function(){try{grecaptcha.execute(T,{action:"bricks_form_submit"}).then(function(n){A.classList.remove("show"),bricksSubmitForm(t,e,v,n)}).catch(function(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)})}catch(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}})}catch(t){A.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}else A.classList.add("show")}else bricksSubmitForm(t,e,v,null)}}}})}});function bricksForm(){bricksFormFn.run()}function bricksGetTurnstileWidgetReference(e){if(!e)return null;var t=e.getAttribute("data-widget-id")||e.getAttribute("data-turnstile-widget-id");if(!t){var n=e.querySelector("iframe");null!=n&&n.id&&(t=n.id)}if(!t){var r=e.getAttribute("id");r&&(t="#".concat(r))}return t}function bricksSubmitForm(e,t,n,r,i){var o,a,s;if(t.action&&t.action.includes("action=postpass"))t.submit();else if("true"!==(null===(o=t.dataset)||void 0===o?void 0:o.submitting)){var c=t.querySelector("button[type=submit]");c.classList.add("sending"),c.disabled=!0,t.dataset.submitting="true";var l=t.dataset.loopObjectId?t.dataset.loopObjectId:window.bricksData.postId,d=new FormData(t);d.append("action","bricks_form_submit"),d.append("loopId",l),d.append("postId",window.bricksData.postId),d.append("formId",e),d.append("recaptchaToken",r||""),d.append("nonce",window.bricksData.formNonce),d.append("referrer",location.toString());var u=null!==(a=t.getAttribute("data-component-id"))&&void 0!==a&&a;u&&d.append("componentId",u);var p=JSON.parse(t.getAttribute("data-notice")),b={};window.location.search.substring(1).split("&").forEach(function(e){var t=e.split("=");b[t[0]]=decodeURIComponent(t[1])}),d.append("urlParams",JSON.stringify(b));var v=t.getAttribute("data-global-id");v&&d.append("globalId",v);var f=t.getAttribute("data-lang");f&&d.append("lang",f);var m=(null===(s=window.bricksData)||void 0===s?void 0:s.language)||!1;m&&d.append("langCode",m);var g=function(e){n[e].forEach(function(t){d.append("".concat(e,"[]"),t,t.name)})};for(var y in n)g(y);document.dispatchEvent(new CustomEvent("bricks/form/submit",{detail:{elementId:e,formData:d}}));var k=window.bricksData.ajaxUrl,w=new XMLHttpRequest;w.open("POST",k,!0),w.onreadystatechange=function(){var o,a,s,l,u,b,v,f=function(e){try{return JSON.parse(e)}catch(e){return null}}(w.response);if(window.bricksData.debug&&console.warn("bricks_form_submit",w,f),f||(c.classList.remove("sending"),c.disabled=!1,t.dataset.submitting="false"),f&&4==(null==w?void 0:w.readyState)){var m,g,y;if("invalid_nonce"===(null==f||null===(o=f.data)||void 0===o?void 0:o.code)){if(!i)return t.dataset.submitting="false",void bricksRegenerateNonceAndResubmit(e,t,n,r)}else f.success&&"success"===(null===(g=f.data)||void 0===g?void 0:g.type)?m="bricks/form/success":f.success&&"error"!==(null===(y=f.data)||void 0===y?void 0:y.type)||(m="bricks/form/error");m&&document.dispatchEvent(new CustomEvent(m,{detail:{elementId:e,formData:d,res:f}})),!f.success||"mailchimp"!==(null===(a=f.data)||void 0===a?void 0:a.action)&&"sendgrid"!==(null===(s=f.data)||void 0===s?void 0:s.action)||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"bricksNewsletterSignup"}));var k,h=!0;if(f.success&&null!==(l=f.data)&&void 0!==l&&l.redirectTo)h=!1,setTimeout(function(){window.location.href=f.data.redirectTo},parseInt(null===(k=f.data)||void 0===k?void 0:k.redirectTimeout)||
50);else f.success&&null!==(u=f.data)&&void 0!==u&&u.refreshPage&&(h=!1,setTimeout(function(){window.location.reload()},1e3));t.querySelector(".message")&&t.querySelector(".message").remove();var x=document.createElement("div");x.classList.add("message");var S,L=document.createElement("div");if(L.classList.add("text"),null!==(b=f.data)&&void 0!==b&&b.message)if(null!==(S=f.data.message)&&void 0!==S&&S.errors){var E=f.data.message.errors;Object.keys(E).forEach(function(e){L.innerHTML+=E[e][0]+"<br>"})}else L.innerHTML=f.data.message;if(x.appendChild(L),null!==(v=f.data)&&void 0!==v&&v.info){var I=document.createElement("div"),A=document.createElement("div");A.innerHTML=f.data.info.join("<br>"),x.appendChild(I),I.appendChild(A)}else x.classList.add(f.data.type);if(p){var T=function(){x.classList.add("closing"),setTimeout(function(){null==x||x.remove()},200)};if(p.closeButton){var q=document.createElement("button");q.classList.add("close"),q.innerHTML='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke-linecap="round" stroke-width="2" stroke="currentcolor" fill="none" stroke-linejoin="round"><path d="M0.5,0.5l23,23"></path><path d="M23.5,0.5l-23,23"></path></g><path fill="none" d="M0,0h24v24h-24Z"></path></svg>',x.appendChild(q),q.addEventListener("click",function(e){e.preventDefault(),T()})}var F=null==p?void 0:p.closeAfter;F&&setTimeout(function(){T()},parseInt(F))}if(t.appendChild(x),c.classList.remove("sending"),h&&(c.disabled=!1,t.dataset.submitting="false"),f.success){var C;if(0!=(null==f||null===(C=f.data)||void 0===C?void 0:C.reset)){for(var P in t.reset(),n)delete n[P];var D=bricksQuerySelectorAll(t,".file-result.show");null!==D&&D.forEach(function(e){e.remove()}),bricksQuerySelectorAll(t,".image-preview .remove").forEach(function(e){e.click()})}if(window.top!=window.self&&!t.querySelector('input[name="brx_pp_temp_id"]')){var _=window.top.document.querySelector("button.wp-auth-check-close");_&&_.click()}}else{var N=t.querySelector(".cf-turnstile"),O=bricksGetTurnstileWidgetReference(N),M=N?N.querySelector('input[name="cf-turnstile-response"]'):null;N&&void 0!==window.turnstile&&O&&(turnstile.reset(O),t.dataset.brxTurnstileRefresh="true",M&&(M.value=""));var R=bricksQuerySelectorAll(t,".file-result.show.danger");null!==R&&R.forEach(function(e){e.remove()})}}},w.send(d)}}function bricksRegenerateNonceAndResubmit(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl+"?t="+(new Date).getTime(),!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){var o=i.responseText;window.bricksData.formNonce=o,bricksSubmitForm(e,t,n,r,!0)}},i.send("action=bricks_regenerate_form_nonce")}window.bricksTurnstileCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}},window.bricksTurnstileErrorCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}};var bricksTinyMCEFn=new BricksFunction({parentNode:document,selector:".brxe-form .form-field-richtext",windowVariableCheck:["tinymce"],eachElement:function(e){var t=e.getAttribute("data-tinymce-settings");t=t?JSON.parse(t):{};var n=window.tinymce8||window.tinymce;e.hasAttribute("required")&&(e.removeAttribute("required"),e.dataset.wasRequired="true"),n.init(_objectSpread(_objectSpread({},t),{},{selector:"#".concat(e.id),suffix:".min",license_key:"gpl",setup:function(t){t.ui.registry.addButton("bricks_add_media",{text:"Add Media",icon:"image",onAction:function(){var e=window.wp.media({title:"Insert Media",button:{text:"Insert"},multiple:!1});e.on("select",function(){var n=e.state().get("selection").first().toJSON();t.insertContent('<img src="'.concat(n.url,'" alt="').concat(n.alt,'" title="').concat(n.title,'" />'))}),e.open()}});var n=e.getAttribute("data-error-message");t.on("change",window.bricksUtils.debounce(function(){t.save(),n&&e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),n&&(t.on("keyup",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),t.on("blur",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("blur",{bubbles:!0}))},300)))}}))}});function bricksTinyMCE(){bricksTinyMCEFn.run()}var bricksIsotopeFn=new BricksFunction({parentNode:document,selector:".bricks-layout-wrapper.isotope",forceReinit:!0,windowVariableCheck:["Isotope"],eachElement:function(e){var t=!1,n="";if(e.classList.contains("bricks-masonry"))t=e.getAttribute("data-script-id"),n="masonry-element";else if(e.classList.contains("brxe-image-gallery"))t=e.getAttribute("data-script-id"),n="image-gallery";else{var r;t=null===(r=e.closest(".brxe-posts"))||void 0===r?void 0:r.getAttribute("data-script-id"),n="posts"}if(t&&n){if(bricksIsFrontend&&window.bricksData.isotopeInstances[t]){var i;if(null!==(i=window.bricksData.isotopeInstances[t].element)&&void 0!==i&&i.isConnected)return void bricksUtils.updateIsotopeInstance(t);window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]}else window.bricksData.isotopeInstances[t]&&(window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]);var o={},a=e.getAttribute("data-layout");if("masonry-element"===n){var s,c,l;a="masonry";var d=e.getAttribute("data-brx-masonry-json")||"{}",u={};try{u=JSON.parse(d)}catch(e){console.error("Bricks: Invalid JSON data for Masonry element")}var p=(null===(s=u)||void 0===s?void 0:s.transitionDuration)||"0.4s",b=(null===(c=u)||void 0===c?void 0:c.transitionMode)||"scale";if(o={itemSelector:".bricks-masonry > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)",percentPosition:!0,masonry:{columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer",horizontalOrder:(null===(l=u)||void 0===l?void 0:l.horizontalOrder)||!1},transitionDuration:p},"0s"===p||"0"===p)o.hiddenStyle={opacity:1},o.visibleStyle={opacity:1},o.instantLayout=!0;else switch(b){case"fade":o.hiddenStyle={opacity:0}
5,o.visibleStyle={opacity:1};break;case"slideLeft":o.hiddenStyle={opacity:0,transform:"translateX(-50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"slideRight":o.hiddenStyle={opacity:0,transform:"translateX(50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"skew":o.hiddenStyle={opacity:0,transform:"skew(20deg)"},o.visibleStyle={opacity:1,transform:"skew(0)"}}}else o={itemSelector:".bricks-layout-item",percentPosition:!0},"grid"===a?(o.layoutMode="fitRows",o.fitRows={gutter:".bricks-gutter-sizer"}):"masonry"!==a&&"metro"!==a||(o.masonry={columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer"});var v=new Isotope(e,o);setTimeout(function(){e.classList.remove("isotope-before-init")},250);var f=e.parentNode.querySelector(".bricks-isotope-filters");f&&f.addEventListener("click",function(e){var t=e.target.getAttribute("data-filter"),n=f.querySelector("li.active");t&&bricksIsFrontend&&(n&&n.classList.remove("active"),e.target.classList.add("active"),v.arrange({filter:t}))}),window.bricksData.isotopeInstances[t]={elementId:t,instance:v,layout:a,filters:f,options:o,element:e,elementName:n},bricksUtils.updateIsotopeOnImageLoad(t)}},listenerHandler:function(e){setTimeout(function(){bricksIsotopeFn.run()},100)}});function bricksIsotope(){bricksIsotopeFn.run()}function bricksIsotopeListeners(){document.addEventListener("bricks/tabs/changed",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.activePane)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),document.addEventListener("bricks/accordion/open",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.openItem)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),document.addEventListener("bricks/ajax/nodes_added",function(e){var t,n,r=null==e||null===(t=e.detail)||void 0===t?void 0:t.queryId;if(r){var i,o=window.bricksData.queryLoopInstances[r]||!1;if(o)if((null===(n=o.resultsContainer)||void 0===n||null===(n=n.classList)||void 0===n?void 0:n.contains("bricks-masonry"))||window.bricksData.isotopeInstances[r])if(window.bricksData.isotopeInstances[r])bricksUtils.updateIsotopeInstance(r);else bricksUtils.updateIsotopeInstance(null===(i=o.resultsContainer)||void 0===i?void 0:i.getAttribute("data-script-id"))}}),document.addEventListener("bricks/megamenu/repositioned",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.submenu)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach(function(e){var t=e.getAttribute("data-script-id");setTimeout(function(){bricksUtils.updateIsotopeInstance(t)},0)})}}),window.addEventListener("load",function(){bricksIsotope()})}var bricksMapLeafletFn=new BricksFunction({parentNode:document,selector:".brxe-map-leaflet",eachElement:function(e,t){var n=JSON.parse(e.dataset.mapOptions),r=e.dataset.scriptId||e.id||"leaflet-map-".concat(t),i=function(){var e=[];return n.layers.forEach(function(t){var n=t.name,r=t.url,i=_objectWithoutProperties(t,_excluded);e[n]=L.tileLayer(r,i)}),e}(),o=Object.values(i);o.length&&(n.map.layers=o[0]);var a=L.map(e,n.map);o.length>1&&L.control.layers(i).addTo(a),function(){for(var e=0;e<n.markers.length;e++){var t=n.markers[e],r={};t.icon&&(r.icon=L.icon(t.icon));var i=L.marker([t.lat,t.lng],r).addTo(a);t.popupText&&i.bindPopup(t.popupText)}}(),window.bricksData.leafletMapInstances||(window.bricksData.leafletMapInstances={}),window.bricksData.leafletMapInstances[r]=a}});function bricksMapLeaflet(){document.querySelector(".brxe-map-leaflet")&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,r=window.setInterval(function(){window[e]&&(window.clearInterval(r),t(window[e]))},n)}("L",function(){setTimeout(function(){bricksMapLeafletFn.run()},bricksIsFrontend?0:1e3)})}var bricksPieChartFn=new BricksFunction({parentNode:document,selector:".brxe-pie-chart",windowVariableCheck:["EasyPieChart"],eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.getElementsByTagName("canvas");t.length&&t[0].remove();var n=function(t){var n=t.match(/var\((--[^)]+)\)/);if(n){var r=n[1];return getComputedStyle(e).getPropertyValue(r).trim()}return t},r=n(e.dataset.barColor),i=n(e.dataset.trackColor);new EasyPieChart(e,{size:e.dataset.size&&e.dataset.size>0?e.dataset.size:160,lineWidth:e.dataset.lineWidth,barColor:r,trackColor:i,lineCap:e.dataset.lineCap,scaleColor:e.dataset.scaleColor,scaleLength:e.dataset.scaleLength,rotate:0})},threshold:1})}});function bricksPieChart(){bricksPieChartFn.run()}var bricksPricingTablesFn=new BricksFunction({parentNode:document,selector:".brxe-pricing-tables",eachElement:function(e){var t=bricksQuerySelectorAll(e,".tab"),n=bricksQuerySelectorAll(e,".pricing-table");t.forEach(function(e){e.classList.contains("listening")||(e.classList.add("listening"),e.addEventListener("click",function(){e.classList.contains("active")||(n.forEach(function(e){e.classList.toggle("active")}),t.forEach(function(e){e.classList.remove("active")}),e.classList.add("active"))}))})}});function bricksPricingTables(){bricksPricingTablesFn.run()}var bricksPostReadingProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-progress-bar",eachElement:function(e){var t=!!e.dataset.contentSelector&&document.querySelector(e.dataset.contentSelector);window.addEventListener("scroll",function(){var n=window.scrollY,r=document.documentElement.scrollHeight-document.documentElement.clientHeight;if(t){var i=t.getBoundingClientRect();r=i.height,n=i.top>0?0:-i.top}
5e.setAttribute("value",Math.ceil(n/r*100))})}});function bricksPostReadingProgressBar(){bricksPostReadingProgressBarFn.run()}var bricksProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-progress-bar .bar span",eachElement:function(e){new BricksIntersect({element:e,callback:function(){e.dataset.width&&setTimeout(function(){e.style.width=e.dataset.width},"slow")},threshold:1})}});function bricksProgressBar(){bricksProgressBarFn.run()}var bricksSplideFn=new BricksFunction({parentNode:document,selector:".brxe-slider-nested.splide",windowVariableCheck:["Splide"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t,n=bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]);n.forEach(function(e){e.classList.add("splide__slide"),e.dataset.id=e.id});var r=e.dataset.scriptId;window.bricksData.splideInstances.hasOwnProperty(r)&&window.bricksData.splideInstances[r].destroy();var i={};try{(i=JSON.parse(e.dataset.splide)).i18n={prev:window.bricksData.i18n.prevSlide,next:window.bricksData.i18n.nextSlide,first:window.bricksData.i18n.firstSlide,last:window.bricksData.i18n.lastSlide,slideX:window.bricksData.i18n.slideX,pageX:window.bricksData.i18n.slideX,play:window.bricksData.i18n.play,pause:window.bricksData.i18n.pause,carousel:window.bricksData.i18n.splide.carousel,select:window.bricksData.i18n.splide.select,slide:window.bricksData.i18n.splide.slide,slideLabel:window.bricksData.i18n.splide.slideLabel}}catch(e){console.warn("bricksSplide: Error parsing JSON of data-script-args",r)}"auto"===i.direction&&(i.direction="rtl"===document.dir?"rtl":"ltr",e.dataset.splide=JSON.stringify(_objectSpread(_objectSpread({},i),{},{i18n:void 0})));var o=new Splide(e);if(o.mount(),null!==(t=i)&&void 0!==t&&t.autoHeight){var a=function(){try{var e,t=null==o||null===(e=o.Components)||void 0===e?void 0:e.Slides;if(!t)return void console.error("Slides component is undefined:",r);var i=t.getAt(o.index),a=null==i?void 0:i.slide;if(!a)return void console.error("Slide is undefined:",r);var s=a.parentElement;if(!s)return void console.error("Parent element is undefined:",r);var c=0;n.forEach(function(e){e.classList.contains("is-visible")&&e.offsetHeight>c&&(c=e.offsetHeight)}),c||(c=a.offsetHeight),s.style.height="".concat(c,"px")}catch(e){console.error("An error occurred while updating the height:",e,r)}};o?(a(),"function"==typeof o.on?(o.on("move resize",a),o.on("moved",a)):console.error("splideInstance.on is not a function")):console.error("splideInstance is undefined")}
5window.bricksData.splideInstances[r]=o,n.forEach(function(t,n){if(t.dataset.id){t.id=t.dataset.id;var r=e.querySelector(".splide__pagination");if(r){var i=r.querySelector("li:nth-child(".concat(n+1,") .splide__pagination__page"));i&&i.setAttribute("aria-controls",t.id)}}if(!t.classList.contains("bricks-lazy-hidden")){var o=t.getAttribute("style")||"";t.dataset.style&&(o+=t.dataset.style,t.setAttribute("style",o))}})}});function bricksSplide(){bricksSplideFn.run()}function bricksSplideListeners(){var e=function(e){var t;if(e){var n=null!==(t=e.matches)&&void 0!==t&&t.call(e,".brxe-slider-nested.splide")?[e]:[];(n=[].concat(_toConsumableArray(n),_toConsumableArray(e.querySelectorAll(".brxe-slider-nested.splide")))).forEach(function(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.scriptId,i=!!r&&(null===(n=window.bricksData)||void 0===n||null===(n=n.splideInstances)||void 0===n?void 0:n[r]);i&&(e.querySelector('iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="youtube"], iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="vimeo"]')||window.requestAnimationFrame(function(){e.isConnected&&i.refresh()}))})}};document.addEventListener("bricks/tabs/changed",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.activePane)}),document.addEventListener("bricks/accordion/open",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.openItem)})}var bricksSwiperFn=new BricksFunction({parentNode:document,selector:".bricks-swiper-container",windowVariableCheck:["Swiper"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t;try{t=JSON.parse(e.dataset.scriptArgs)}catch(n){console.warn("bricksSwiper: Error parsing JSON of data-script-args",e),t={}}var n=e.classList.contains("[class*=brxe-]")?e:e.closest("[class*=brxe-]");if(n){bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]).forEach(function(e){return e.classList.add("swiper-slide")});var r=n.dataset.scriptId,i=window.bricksData.swiperInstances.hasOwnProperty(r)?window.bricksData.swiperInstances[r]:void 0;i&&i.destroy(),t.observer=!1,t.observeParents=!0,t.resizeObserver=!0,t.slidesToShow=t.hasOwnProperty("slidesToShow")?t.slidesToShow:1,t.slidesPerGroup=t.hasOwnProperty("slidesPerGroup")?t.slidesPerGroup:1,t.speed=t.hasOwnProperty("speed")?parseInt(t.speed):300,t.effect=t.hasOwnProperty("effect")?t.effect:"slide",t.spaceBetween=t.hasOwnProperty("spaceBetween")?t.spaceBetween:0,t.initialSlide=t.hasOwnProperty("initialSlide")?t.initialSlide:0,t.keyboard={enabled:bricksIsFrontend,onlyInViewport:!0,pageUpDown:!1},t.watchOverflow=!0,t.hasOwnProperty("effect")&&"flip"===t.effect&&(t.flipEffect={slideShadows:!1}),t.hasOwnProperty("effect")&&"fade"===t.effect&&(t.fadeEffect={crossFade:!0}),t.navigation&&(t.navigation={prevEl:n.querySelector(".bricks-swiper-button-prev"),nextEl:n.querySelector(".bricks-swiper-button-next")}),t.pagination&&(t.pagination={el:n.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},1==t.dynamicBullets&&(delete t.dynamicBullets,t.pagination.dynamicBullets=!0)),t.a11y={prevSlideMessage:window.bricksData.i18n.prevSlide,nextSlideMessage:window.bricksData.i18n.nextSlide,firstSlideMessage:window.bricksData.i18n.firstSlide,lastSlideMessage:window.bricksData.i18n.lastSlide,paginationBulletMessage:window.bricksData.i18n.swiper.paginationBulletMessage,slideLabelMessage:window.bricksData.i18n.swiper.slideLabelMessage},i=new Swiper(e,t),window.bricksData.swiperInstances[r]=i}}});function bricksSwiper(){bricksSwiperFn.run()}function bricksSwiperUpdateBreakpoints(){var e;Object.keys((null===(e=window.bricksData)||void 0===e?void 0:e.swiperInstances)||{}).forEach(function(e){var t=window.bricksData.swiperInstances[e];t&&!t.destroyed&&("function"==typeof t.setBreakpoint&&t.setBreakpoint(),"function"==typeof t.update&&t.update())})}var bricksVideoFn=new BricksFunction({parentNode:document,selector:".brxe-video",eachElement:function(e){if(bricksIsFrontend){var t=function(){var t=e.querySelector(".bricks-video-overlay"),n=e.querySelector(".bricks-video-overlay-icon");t&&t.remove(),n&&n.remove()};e.addEventListener("click",t),e.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||t(),e.querySelector("video")||"Enter"!==n.key&&" "!==n.key||n.preventDefault()})}var n=e.querySelector("video");if(n){if(window.hasOwnProperty("Plyr")){var r,i=e.dataset.scriptId,o=e.querySelector(".bricks-plyr"),a=(null===(r=window.bricksData)||void 0===r||null===(r=r.videoInstances)||void 0===r?void 0:r[i])||void 0;a&&a.destroy(),o&&(a=new Plyr(o)),window.bricksData.videoInstances[i]=a}n.hasAttribute("autoplay")&&n.setAttribute("playsinline",!0),n.addEventListener("play",function(){this.setAttribute("data-is-loaded","true")})}}});function bricksVideo(){bricksVideoFn.run()}function bricksFacebookSDK(){if(document.querySelector(".brxe-facebook-page")){var e=window.bricksData.hasOwnProperty("locale")?window.bricksData.locale:"en_US",t=window.bricksData.hasOwnProperty("facebookAppId")?window.bricksData.facebookAppId:null,n="https://connect.facebook.net/".concat(e,"/sdk.js"),r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e,n=document.createElement("script");!bricksIsFrontend&&null!==(e=window.bricksData)&&void 0!==e&&e.builderCloudflareRocketLoader&&n.setAttribute("data-cfasync","false"),n.type="text/javascript",n.id="bricks-facebook-page-sdk",n.appendChild(document.createTextNode(r.responseText)),document.body.appendChild(n),FB.init({appId:t,version:"v3.3",xfbml:!0})}},r.send()}}var bricksPrettifyFn=new BricksFunction({parentNode:document,selector:".prettyprint.prettyprinted",run:function(){if(window.hasOwnProperty("PR")){PR.prettyPrint();var e=bricksQuerySelectorAll(document,".prettyprint.prettyprinted");!bricksIsFrontend&&e.length&&e.forEach(function(e){e.classList.remove("prettyprinted"),PR.prettyPrint()})}}});function bricksPrettify(){bricksPrettifyFn.run()}function bricksSkipLinks(){var e=bricksQuerySelectorAll(document,".skip-link");e&&e.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=document.getElementById(e.href.split("#")[1]);n&&(n.setAttribute("tabindex","-1"),n.addEventListener("blur",function(){n.removeAttribute("tabindex")},{once:!0}),n.focus())})})}var bricksGalleryInfiniteScrollFn=new BricksFunction({parentNode:document,selector:'.brxe-image-gallery[data-brx-load-more="gallery"]',eachElement:function(e){var t,n,r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e);if((1==(null==r?void 0:r.infinite)||!1)&&"true"!==(null===(t=e.dataset)||void 0===t?void 0:t.brxGalleryInfiniteInit)){e.dataset.brxGalleryInfiniteInit="true";var i=function(){return e.querySelector(":scope > .brx-gallery-load-more-trail")},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;if(null==e||""===e)return t;if("number"==typeof e)return Math.max(0,parseInt(e));if("string"==typeof e){if(e.includes("ms"))return Math.max(0,parseInt(e));if(e.includes("s"))return Math.max(0,Math.round(1e3*parseFloat(e)));var n=parseInt(e);return isNaN(n)?t:Math.max(0,n)}return t}(null==r?void 0:r.scrollDelay,600),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200px";if(null==e||""===e)return t;if("number"==typeof e)return"".concat(Math.max(1,parseInt(e)),"px");if("string"==typeof e&&e.includes("px")){var n=parseInt(e);return isNaN(n)?t:"".concat(Math.max(1,n),"px")}return t}(null!==(n=null==r?void 0:r.scrollOffset)&&void 0!==n?n:null==r?void 0:r.observerMargin,"200px"),s=!1,c=null,l=Date.now()+o,d=0,u=function(){var e=i();if(e){var t=++d;new BricksIntersect({element:e,once:!0,threshold:0,rootMargin:a,callback:function(){t===d&&p()}})}},p=function(){if(!s&&!c){var t=Math.max(0,l-Date.now());c=setTimeout(function(){c=null,s=!0;var t=bricksUtils.imageGalleryLoadMore(e);if(s=!1,l=Date.now()+o,t){var n=i();n&&BricksIsInViewport(n)?p():u()}},t)}},b=i();b&&(BricksIsInViewport(b)?p():u())}}});function bricksGalleryInfiniteScroll(){bricksGalleryInfiniteScrollFn.run()}var bricksInteractionsFn=new BricksFunction({parentNode:document,selector:"[data-interactions]",frontEndOnly:!0,eachElement:function(e){var t,n=[];try{n=JSON.parse(e.dataset.interactions)}catch(e){return console.info("error:bricksInteractions",e),!1}var r=(null===(t=e.dataset)||void 0===t?void 0:t.interactionId)||!1;n&&r&&(n.forEach(function(t){var n,i=!1;if(null!=t&&t.trigger){if("scroll"===t.trigger){var o=0;if(null!=t&&t.scrollOffset)if((o=null==t?void 0:t.scrollOffset.replace("px","")).includes("%"))o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)/100*parseInt(o);else o.includes("vh")&&(o=window.innerHeight/100*parseInt(o));t.scrollOffset=o}else"mouseleaveWindow"===t.trigger&&(t.trigger="mouseleave",i=!0);if(e)switch(t.el=e,t.groupId=i?"document":r,null!==(n=window.bricksData)&&void 0!==n&&n.interactions||(window.bricksData.interactions=[]),window.bricksData.interactions.push(t),t.trigger){case"click":case"mouseover":case"mouseenter":case"mouseleave":case"focus":case"blur":(i?document.documentElement:e).addEventListener(t.trigger,function(e){return bricksInteractionCallback(e,t)},{once:null==t?void 0:t.runOnce});break;case"animationEnd":var a=(null==t?void 0:t.animationId)||!1;if(!a){var s=window.bricksData.interactions.filter(function(e){return e.groupId===r&&"startAnimation"===e.action&&e.id!==t.id});s.length&&(a=s[s.length-1].id)}a&&a!==t.id&&document.addEventListener("bricks/animation/end/".concat(a),function(n){bricksInteractionCallbackExecution(e,t)},{once:null==t?void 0:t.runOnce});break;case"contentLoaded":var c=(null==t?void 0:t.delay)||0;c&&c.includes("ms")?c=parseInt(c):c&&c.includes("s")&&(c=1e3*parseFloat(c)),setTimeout(function(){bricksInteractionCallbackExecution(e,t)},c);break;
5case"enterView":new BricksIntersect({element:e,callback:function(e){"startAnimation"===t.action&&Array.from(e.classList).some(function(e){return e.startsWith("brx-animate-")})||bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger,rootMargin:null==t?void 0:t.rootMargin});break;case"leaveView":new BricksIntersect({element:e,callback:function(e){return bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger});break;case"showPopup":case"hidePopup":var l="showPopup"===t.trigger?"bricks/popup/open":"bricks/popup/close";document.addEventListener(l,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.popupElement)||!1;i&&i===e&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"ajaxStart":case"ajaxEnd":var d="ajaxStart"===t.trigger?"bricks/ajax/start":"bricks/ajax/end",u=(null==t?void 0:t.ajaxQueryId)||!1;if(!u)return;document.addEventListener(d,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.queryId)||!1;i&&i===u&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"formSubmit":case"formSuccess":case"formError":var p=null==t?void 0:t.formId;if(!p)return;var b="bricks/form/".concat(t.trigger.replace("form","").toLowerCase());document.addEventListener(b,function(n){var r,i=null===(r=n.detail)||void 0===r?void 0:r.elementId;i&&i===(p=(p=p.replace("#","")).replace("brxe-",""))&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"filterOptionEmpty":case"filterOptionNotEmpty":var v=(null==t?void 0:t.filterElementId)||!1;if(!v)return;v=(v=v.replace("#","")).replace("brxe-","");var f="bricks/filter/option/".concat(t.trigger.replace("filterOption","").toLowerCase());document.addEventListener(f,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.filterElementIds)||[];
5i.length&&i.includes(v)&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"wooAddedToCart":case"wooAddingToCart":case"wooRemovedFromCart":case"wooUpdateCart":case"wooCouponApplied":case"wooCouponRemoved":if("undefined"==typeof jQuery)return;var m=null;"wooAddedToCart"===t.trigger?m="added_to_cart":"wooAddingToCart"===t.trigger?m="adding_to_cart":"wooRemovedFromCart"===t.trigger?m="item_removed_from_classic_cart":"wooUpdateCart"===t.trigger?m="updated_cart_totals":"wooCouponApplied"===t.trigger?m="applied_coupon applied_coupon_in_checkout":"wooCouponRemoved"===t.trigger&&(m="removed_coupon removed_coupon_in_checkout"),m&&jQuery(document.body).on(m,function(n){bricksUtils.maybeRunOnceInteractions(e,t)})}}}),bricksUtils.hideOrShowLoadMoreButtons("all"))}});function bricksInteractions(){bricksInteractionsFn.run()}function bricksTrapFocus(e,t){if("Tab"===e.key){var n=bricksGetVisibleFocusables(t),r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}function bricksFocusOnFirstFocusableElement(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=bricksGetFocusables(e)[0];if(n)if(t){var r=0;requestAnimationFrame(function e(){!function(e){var t=window.getComputedStyle(e);if("none"===t.display||"visible"!==t.visibility||parseFloat(t.opacity)<.1)return!1;var n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&!(n.bottom<0||n.top>window.innerHeight||n.right<0||n.left>window.innerWidth)}(n)?r++<60?requestAnimationFrame(e):console.warn("Element never became focusable:",n):n.focus()})}else n.focus()}function bricksPopups(){var e=null;document.addEventListener("bricks/popup/open",function(t){var n,r,i,o,a=(null===(n=t.detail)||void 0===n?void 0:n.popupElement)||!1;if(a&&bricksIsFrontend&&!a.classList.contains("brx-infobox-popup")){var s,c=(null===(r=a.dataset)||void 0===r?void 0:r.popupCloseOn)||"backdrop-esc";if(c.includes("esc")){var l=function(e){return function(e,t){"Escape"===e.key&&bricksClosePopup(t)}(e,a)};document.addEventListener("keyup",l),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keyup",l)})}if(c.includes("backdrop")){var d=function(e){return function(e,t){(e.target.classList.contains("brx-popup-backdrop")||e.target.classList.contains("brx-popup"))&&bricksClosePopup(t)}(e,a)};document.addEventListener("click",d),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("click",d)})}if(e=document.activeElement,null!==(i=a.dataset)&&void 0!==i&&i.popupScrollToTop)null===(s=a.querySelector(".brx-popup-content"))||void 0===s||s.scrollTo(0,0);if(null===(o=a.dataset)||void 0===o||!o.popupDisableAutoFocus){var u=bricksGetFocusables(a),p=u.length>0?u[0]:null;if(p){var b;null===(b=a.querySelector(".brx-popup-content"))||void 0===b||b.scrollTo(0,0);var v=p.getBoundingClientRect(),f=a.querySelector(".brx-popup-content").getBoundingClientRect(),m=v.top-f.top+a.scrollTop-10;a.querySelector(".brx-popup-content").scrollTo({top:m})}}setTimeout(function(){var e,t,n;(null!==(e=a.dataset)&&void 0!==e&&e.popupDisableAutoFocus||bricksFocusOnFirstFocusableElement(a),null!==(t=a.dataset)&&void 0!==t&&t.popupScrollToTop)&&(null===(n=a.querySelector(".brx-popup-content"))||void 0===n||n.scrollTo({top:0,left:0,behavior:"smooth"}))},100);var g=function(e){return bricksTrapFocus(e,a)};document.addEventListener("keydown",g),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keydown",g),e&&e.focus()})}})}function bricksScrollInteractions(){var e,t=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[],n=window.scrollY,r=[];t.forEach(function(e,t){"scroll"===(null==e?void 0:e.trigger)&&n>=e.scrollOffset&&(bricksInteractionCallbackExecution(e.el,e),null!=e&&e.runOnce&&r.push(e.id))}),r.forEach(function(e){window.bricksData.interactions=window.bricksData.interactions.filter(function(t){return t.id!==e})})}function bricksInteractionCallback(e,t){if("click"===(null==e?void 0:e.type)){var n;if("A"===e.target.tagName&&"#"!==e.target.getAttribute("href")&&null!==(n=e.target.getAttribute("href"))&&void 0!==n&&n.startsWith("#"))return;null!=t&&t.disablePreventDefault||e.preventDefault()}bricksInteractionCallbackExecution(t.el,t)}function bricksInteractionCallbackExecution(e,t){var n,r,i,o=["clearForm","storageAdd","storageRemove","storageCount","loadMore","toggleOffCanvas","openAddress","closeAddress"].includes(null==t?void 0:t.action),a=(null==t?void 0:t.target)||"self";
5if(!o)switch(a){case"custom":null!=t&&t.targetSelector&&(i=bricksQuerySelectorAll(document,t.targetSelector));break;case"popup":var s;if(null!=t&&t.templateId)null!==(s=e.dataset)&&void 0!==s&&s.interactionLoopId&&(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"][data-popup-loop-id="').concat(e.dataset.interactionLoopId,'"]'))),i&&i.length||(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"]')));break;case"offcanvas":null!=t&&t.offCanvasSelector&&(i=e);break;default:i=e}if(o||i)if(Array.isArray(i)||(i=i?[i]:[]),bricksInteractionCheckConditions(t))switch(null==t?void 0:t.action){case"show":case"hide":i.forEach(function(n){if(null!=n&&n.classList.contains("brx-popup"))if("show"===t.action){var r,i={};null!=t&&t.popupContextId&&(i.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(i.popupContextType=t.popupContextType),null!==(r=e.dataset)&&void 0!==r&&r.interactionLoopId&&(i.loopId=e.dataset.interactionLoopId),bricksOpenPopup(n,0,i)}else"hide"===t.action&&bricksClosePopup(n);else"hide"===t.action?n.style.display="none":"none"===n.style.display?(n.style.display=null,"none"===window.getComputedStyle(n).display&&(n.style.display="block")):n.style.display="block"});break;case"setAttribute":case"removeAttribute":case"toggleAttribute":var c=null==t?void 0:t.actionAttributeKey;c&&i.forEach(function(e){var n=(null==t?void 0:t.actionAttributeValue)||"";"class"===c?(n?n.split(" "):[]).forEach(function(n){"setAttribute"===t.action?e.classList.add(n):"removeAttribute"===t.action?e.classList.remove(n):e.classList.toggle(n)}):"setAttribute"===t.action?e.setAttribute(c,n):"removeAttribute"===t.action||e.hasAttribute(c)?e.removeAttribute(c):e.setAttribute(c,n)});break;case"scrollTo":var l=i[0];if(!l||!l.scrollIntoView)return;var d=(null==t?void 0:t.scrollToOffset)||0,u=(null==t?void 0:t.scrollToDelay)||1;setTimeout(function(){"string"==typeof d&&(d=d.replace("px",""));var e=l.getBoundingClientRect().top;window.scrollBy(0,e-parseInt(d))},parseInt(u));break;case"clearForm":var p=null==t?void 0:t.targetFormSelector,b=null;if(["formSubmit","formSuccess","formError"].includes(t.trigger)){var v=null==t?void 0:t.formId;v=(v=v.replace("#","")).replace("brxe-",""),b=document.querySelectorAll('.brxe-form[data-element-id="'.concat(v,'"]'))}else b=p?document.querySelectorAll(p):document.querySelectorAll("form");b&&b.length&&b.forEach(function(e){e.querySelectorAll("input, textarea, select").forEach(function(e){"hidden"!==e.type&&("SELECT"===e.tagName?e.selectedIndex=0:"TEXTAREA"===e.tagName?e.value="":"checkbox"===e.type||"radio"===e.type?e.checked=!1:e.value="")}),e.querySelectorAll(".file-result.show > .bricks-button.remove").forEach(function(e){e.click()})});break;case"click":i&&i.length&&i.forEach(function(e){e.click()});break;case"storageAdd":case"storageRemove":case"storageCount":var f=null==t?void 0:t.storageType,m=null==t?void 0:t.actionAttributeKey,g=t.hasOwnProperty("actionAttributeValue")?t.actionAttributeValue:0;if(f&&m)if("storageAdd"===t.action)bricksStorageSetItem(f,m,g);else if("storageRemove"===t.action)bricksStorageRemoveItem(f,m);else if("storageCount"===t.action){var y=bricksStorageGetItem(f,m);bricksStorageSetItem(f,m,(y=y?parseInt(y):0)+1)}break;case"startAnimation":var k=null==t?void 0:t.animationType;if(k){var w=0;null!=t&&t.animationDelay&&(t.animationDelay.includes("ms")?w=parseInt(t.animationDelay):t.animationDelay.includes("s")&&(w=1e3*parseFloat(t.animationDelay))),setTimeout(function(){i.forEach(function(n){var r,i=1e3,o=null===(r=n)||void 0===r?void 0:r.classList.contains("brx-popup");if(o&&(n=n.querySelector(".brx-popup-content")),null!=t&&t.animationDuration&&(n.style.animationDuration=t.animationDuration,t.animationDuration.includes("ms")?i=parseInt(t.animationDuration):t.animationDuration.includes("s")&&(i=1e3*parseFloat(t.animationDuration))),null!=t&&t.animationDelay&&(i+=w),o&&"showPopup"!==t.trigger&&"hidePopup"!==t.trigger){var a,s=n.parentNode,c={};null!=t&&t.popupContextId&&(c.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(c.popupContextType=t.popupContextType),null!==(a=e.dataset)&&void 0!==a&&a.interactionLoopId&&(c.loopId=e.dataset.interactionLoopId),k.includes("In")&&bricksOpenPopup(s,i,c
5)}n.classList.add("brx-animated"),n.setAttribute("data-animation",k),n.setAttribute("data-animation-id",t.id||""),bricksAnimationFn.run({elementsToAnimate:[n],removeAfterMs:i})})},w)}break;case"loadMore":var h=null==t?void 0:t.loadMoreQuery,x=null===(n=window.bricksData.queryLoopInstances)||void 0===n?void 0:n[h];if(!x)return;var S=(null==x?void 0:x.componentId)||!1,L=bricksUtils.getQueryTrailSelectorId(h,S),E=Array.from(null===(r=x.resultsContainer)||void 0===r?void 0:r.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();E&&(e.classList.contains("is-loading")||(e.classList.add("is-loading"),E.dataset.queryElementId=h,S&&(E.dataset.queryComponentId=S),bricksQueryLoadPage(E,!0).then(function(t){e.classList.remove("is-loading"),bricksUtils.hideOrShowLoadMoreButtons(h)})));break;case"loadMoreGallery":var I=t.loadMoreTargetSelector||"";if(I)bricksQuerySelectorAll(document,I).forEach(function(e){e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')&&bricksUtils.imageGalleryLoadMore(e)});break;case"javascript":if(null!=t&&t.jsFunction){var A,T=null!==(A=window[t.jsFunction])&&void 0!==A&&A;if(t.jsFunction.includes(".")){var q=t.jsFunction.split("."),F=window;q.forEach(function(e){F=F[e]}),"function"==typeof F&&(T=F)}if(T&&"function"==typeof T){var C={source:e,targets:i},P={};null!=t&&t.jsFunctionArgs&&Array.isArray(t.jsFunctionArgs)&&t.jsFunctionArgs.forEach(function(e,t){if(null!=e&&e.jsFunctionArg&&null!=e&&e.id){var n=e.id,r=e.jsFunctionArg;"%brx%"===e.jsFunctionArg&&(n=e.jsFunctionArg,r=C),P[n]=r}}),i.forEach(function(e){null!=P&&P["%brx%"]&&(P["%brx%"].target=e),Object.keys(P).length?T.apply(void 0,_toConsumableArray(Object.keys(P).map(function(e){return P[e]}))):T()})}else console.error('Bricks interaction: Custom JavaScript function "'.concat(t.jsFunction,'" not found.'))}break;case"toggleOffCanvas":var D=(null==t?void 0:t.offCanvasSelector)||!1;if(!D)return;bricksUtils.toggleAction(e,{selector:D});break;case"openAddress":case"closeAddress":bricksUtils.toggleMapInfoBox(t)}else if("startAnimation"===(null==t?void 0:t.action))i.forEach(function(e){e.removeAttribute("data-interaction-hidden-on-load")})}function bricksOpenPopup(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var i=t.dataset.popupId;bricksPopupCheckLimit(t)&&bricksPopupCheckBreakpoint(t)&&(t.classList.remove("hide"),t.dataset.popupBodyScroll||document.body.classList.add("no-scroll"),bricksSetVh(),bricksFetchPopupContent(t,r).then(function(e){if(""!==e){t.querySelector(".brx-popup-content").innerHTML=e;var r=new CustomEvent("bricks/ajax/popup/loaded",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(r)}var o=new CustomEvent("bricks/popup/open",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(o),setTimeout(function(){bricksCounter()},n),bricksPopupCounter(t)}))}}function bricksGetCurrentUrlParams(){var e={};try{new URLSearchParams(window.location.search).forEach(function(t,n){void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]})}catch(e){console.warn("Failed to parse URL parameters:",e)}return e}function bricksFetchPopupContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o;if((null===(o=e.dataset)||void 0===o?void 0:o.popupAjax)||!1){e.querySelector(".brx-popup-content").innerHTML="";var a=e.dataset.popupId,s={postId:window.bricksData.postId,popupId:a,nonce:window.bricksData.nonce,popupContextId:!1,popupContextType:"post",isLooping:!1,popupLoopId:!1,queryElementId:!1,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,urlParams:bricksGetCurrentUrlParams()};if(null!=t&&t.loopId&&(s.isLooping=!0),null!=t&&t.popupContextId&&(s.popupContextId=t.popupContextId,null!=t&&t.popupContextType&&(s.popupContextType=t.popupContextType)),null!=t&&t.loopId&&!s.popupContextId){var c=t.loopId.split(":");c.length>=4&&c[0].length>=6&&(s.queryElementId=c[0],s.popupLoopId=t.loopId)}var l,d=window.bricksData.restApiUrl.concat("load_popup_content");
5if("wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(d=d.concat("?lang="+window.bricksData.language)),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/start",{detail:{popupId:a,popupElement:e}})),s.isLooping)null===(l=e.querySelector(".brx-popup-backdrop"))||void 0===l||l.removeAttribute("data-query-loop-index");var u=new XMLHttpRequest;u.open("POST",d,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),u.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE){var o,c,l=u.status,d="";try{c=JSON.parse(u.response)}catch(e){console.error("Error parsing response:",e)}if(0===l||l>=200&&l<400){var p,b,v,f,m,g,y=(null===(p=c)||void 0===p?void 0:p.html)||!1,k=(null===(b=c)||void 0===b?void 0:b.styles)||!1,w=(null===(v=c)||void 0===v?void 0:v.popups)||!1,h=(null===(f=c)||void 0===f?void 0:f.error)||!1,x=(null===(m=c)||void 0===m?void 0:m.contentClasses)||!1;if(h&&console.error("error:bricksFetchPopupContent",h),y&&(d=y),k&&(d+=k),x){var S=e.querySelector(".brx-popup-content.brx-woo-quick-view");if(S){var L,E=["brx-popup-content","brxe-container","brx-woo-quick-view"];S.classList.forEach(function(e){E.includes(e)||S.classList.remove(e)}),(L=S.classList).add.apply(L,_toConsumableArray(x)),document.body.classList.contains("woocommerce")||S.classList.add("woocommerce")}}if(w&&Object.keys(w).length&&Object.entries(w).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];document.querySelector('.brx-popup[data-popup-id="'.concat(n,'"]'))||document.body.insertAdjacentHTML("beforeend",r)}),s.isLooping)null===(g=e.querySelector(".brx-popup-backdrop"))||void 0===g||g.setAttribute("data-query-loop-index",0)}else if("rest_cookie_invalid_nonce"===(null===(o=c)||void 0===o?void 0:o.code)&&!n)return void bricksRegenerateNonceAndRetryPopup(e,t).then(r).catch(i);r(d),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/end",{detail:{popupId:a,popupElement:e}}))}},u.send(JSON.stringify(s))}else r("")})}function bricksRegenerateNonceAndRetryPopup(e,t){return new Promise(function(n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<400){var o;try{o=JSON.parse(i.responseText)}catch(e){return void r("Invalid response from server when regenerating nonce")}o.success&&o.data?(window.bricksData.nonce=o.data.bricks_nonce,window.bricksData.wpRestNonce=o.data.rest_nonce,bricksFetchPopupContent(e,t,!0).then(n).catch(r)):r("Failed to regenerate nonces: Invalid response structure")}else r("Failed to regenerate nonce")},i.send("action=bricks_regenerate_query_nonce")})}function bricksClosePopup(e){var t;if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var n=t.dataset.popupId;t.classList.add("hide"),t.dataset.popupBodyScroll||document.querySelectorAll(".brx-popup:not(.hide):not([data-popup-body-scroll])").length||document.body.classList.remove("no-scroll");var r=new CustomEvent("bricks/popup/close",{detail:{popupId:n,popupElement:t}});document.dispatchEvent(r)}}function bricksPopupCheckLimit(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(!r)return!0;try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCheckLimit",e),!0}var o=!1,a=Date.now();return Object.entries(r).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];if("timeStorageInHours"===n){var s=parseInt(bricksStorageGetItem("localStorage","brx_popup_".concat(i,"_lastShown")));a<s+36e5*r&&(o=!0)}else{var c=bricksStorageGetItem(n,"brx_popup_".concat(i,"_total"));c=c?parseInt(c):0,o=o||c>=r}}),!o&&r.timeStorageInHours&&bricksStorageSetItem("localStorage","brx_popup_".concat(i,"_lastShown"),a.toString()),!o}function bricksPopupCheckBreakpoint(e){var t;if(null==e||null===(t=e.classList)||void 0===t||!t.contains("brx-popup"))return!1;var n=parseInt(e.getAttribute("data-popup-show-at"));if(n&&window.innerWidth<n)return!1;var r=e.getAttribute("data-popup-show-on-widths"),i=r?r.split(","):[];if(i.length&&!i.some(function(e){var t=_slicedToArray(e.split("-").map(function(e){var t=Number(e);return isNaN(t)?(console.error("Invalid width value: ".concat(e)),0):t}),2),n=t[0],r=t[1];return window.innerWidth>=n&&window.innerWidth<=r}))return!1;return!0}function bricksPopupCounter(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(r){try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCounter",e),!0}Object.entries(r).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=(t[1],bricksStorageGetItem(n,"brx_popup_".concat(i,"_total")));r=r?parseInt(r):0,bricksStorageSetItem(n,"brx_popup_".concat(i,"_total"),r+1)})}}function bricksInteractionCheckConditions(e){if(!Array.isArray(null==e?void 0:e.interactionConditions))return!0;var t=(null==e?void 0:e.interactionConditionsRelation)||"and",n="and"===t,r=function(e){return isNaN(e)?0:parseFloat(e)};return e.interactionConditions.forEach(function(e){var i=null==e?void 0:e.conditionType,o=(null==e?void 0:e.storageKey)||!1,a=!1;if(i&&o){var s=(null==e?void 0:e.storageCompare)||"exists",c=null==e?void 0:e.storageCompareValue,l=bricksStorageGetItem(i,o);switch(s){case"exists":a=null!==l;break;case"notExists":a=null===l;break;case"==":a=l==c;break;case"!=":a=l!=c;break;case">=":a=r(l)>=r(c);break;case"<=":a=r(l)<=r(c);break;case">":a=r(l)>r(c);break;case"<":a=r(l)<r(c)}}else a=!0;n="and"===t?n&&a:n||a}),n}function bricksStorageGetItem(e,t){if(t){var n;try{switch(e){case"windowStorage":n=window.hasOwnProperty(t)?window[t]:null;break;case"sessionStorage":n=sessionStorage.getItem(t);break;case"localStorage":n=localStorage.getItem(t)}}catch(e){console.info("error:bricksStorageGetItem",e)}return n}}function bricksStorageSetItem(e,t,n){if(t)try{switch(e){case"windowStorage":window[t]=n;break;case"sessionStorage":sessionStorage.setItem(t,n);break;case"localStorage":localStorage.setItem(t,n)}}catch(e){console.info("error:bricksStorageSetItem",e)}}function bricksStorageRemoveItem(e,t){if(t)try{switch(e){case"windowStorage":delete window[t];break;case"sessionStorage":sessionStorage.removeItem(t);break;case"localStorage":localStorage.removeItem(t)}}catch(e){console.info("error:bricksStorageRemoveItem",e)}}function bricksNavNested(){if(bricksIsFrontend){var e=new MutationObserver(function(e){e.forEach(function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.target;if(t.classList.contains("brx-open")&&!t.classList.contains("brx-closing")){bricksSetVh();var n=t.querySelector(".brx-nav-nested-items");n&&n.addEventListener("keydown",function(e){return bricksTrapFocus(e,n)}),document.body.classList.add("no-scroll");var r=t.querySelector(".brx-nav-nested-items button.brxe-toggle");r?setTimeout(function(){r.classList.add("is-active"),r.setAttribute("aria-expanded",!0),r.focus()},100):bricksFocusOnFirstFocusableElement(t,!1)}else{document.body.classList.remove("no-scroll");var i=t.dataset.toggleScriptId,o=document.querySelector('button[data-script-id="'.concat(i,'"],[data-interaction-id="').concat(i,'"][data-brx-toggle-offcanvas]'));o&&(o.setAttribute("aria-expanded",!1),o.classList.remove("is-active"),o.focus())}}})}),t=bricksQuerySelectorAll(document,".brxe-nav-nested");t.length&&(t.forEach(function(t){e.observe(t,{attributes:!0,attributeFilter:["class"]}),t.addEventListener("keydown",function(e){var t=document.activeElement;bricksHandleMenuKeyNavigation(e,{isTopLevel:null!==t.closest(".brx-nav-nested-items > li, .brx-nav-nested-items > .brxe-dropdown"),isInDropdown:null!==t.closest(".brx-dropdown-content"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".brx-nav-nested-items")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".brx-nav-nested-items")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){return bricksSubmenuToggle(e,"remove")}})})}),document.addEventListener("keyup",function(e){"Escape"===e.key&&bricksNavNestedClose()}),document.addEventListener("click",function(e){var t=e.target.closest(".brxe-nav-nested"),n=e.target.closest(".brxe-toggle");t||n||bricksNavNestedClose()}))}}function bricksNavNestedClose(){bricksQuerySelectorAll(document,".brxe-nav-nested.brx-open").forEach(function(e){e.classList.add("brx-closing"),setTimeout(function(){e.classList.remove("brx-closing"),e.classList.remove("brx-open")},200)})}var bricksNavMenuFn=new BricksFunction({parentNode:document,selector:".brxe-nav-menu",eachElement:function(e){e.addEventListener("keydown",function(e){var t=document.activeElement;bricksHandleMenuKeyNavigation(e,{isTopLevel:null!==t.closest(".bricks-nav-menu > li"),isInDropdown:null!==t.closest(".sub-menu"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".bricks-nav-menu")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".bricks-nav-menu")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){e.setAttribute("aria-expanded","fal
5se"),e.closest(".menu-item-has-children").classList.remove("open")}})})}});function bricksNavMenu(){bricksNavMenuFn.run()}function bricksHandleMenuKeyNavigation(e,t){var n=t.isTopLevel,r=t.isInDropdown,i=t.isInSubmenuToggle,o=t.getNextFocusable,a=t.getPreviousFocusable,s=t.getLastFocusableInSubmenuToggle,c=t.focusNextElement,l=t.focusPreviousElement,d=t.focusFirstElement,u=t.focusLastElement,p=(t.closeSubmenu,e.key),b=document.activeElement;["ArrowDown","ArrowRight","ArrowUp","ArrowLeft","Home","End"].includes(p)&&e.preventDefault();var v="rtl"===document.dir||"rtl"===document.documentElement.dir||null!==b.closest('[dir="rtl"]');switch(p){case"ArrowDown":if(n)if(i){var f=b.closest(".brx-submenu-toggle"),m=f.nextElementSibling,g=f.querySelector("button[aria-expanded]");if(m&&(m.classList.contains("brx-dropdown-content")||m.classList.contains("sub-menu"))&&g&&"true"===g.getAttribute("aria-expanded")){var y=m.querySelector("a, button");y&&y.focus()}else c(b)}else c(b);else r&&c(b);break;case v?"ArrowLeft":"ArrowRight":if(n)if(i){var k=o(b,v);k?k.focus():c(b.closest(".brxe-dropdown, .menu-item"))}else c(b);break;case"ArrowUp":if(n)l(b);else if(r){if(!l(b)){var w=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(w){var h=s(w,v);h&&h.focus()}}}break;case v?"ArrowRight":"ArrowLeft":if(n)if(i){var x=a(b,v);x?x.focus():l(b.closest(".brxe-dropdown, .menu-item"))}else l(b);else if(r){if(!l(b)){var S=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(S){var L=s(S,v);L&&L.focus()}}}break;case"Home":d(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"));break;case"End":u(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"))}}function bricksMenuFocusNextElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o+1];if(!a)return null;if(a.querySelector(".brx-submenu-toggle")){var s=a.querySelector(".brx-submenu-toggle"),c=s.querySelector("a"),l=s.querySelector("button");r=c||l}else r=a.querySelector("a")||a.querySelector("button");return r&&r.focus(),r}function bricksMenuFocusPreviousElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o-1];return a?((r=a.querySelector(".brx-submenu-toggle")?a.querySelector(".brx-submenu-toggle button")||a.querySelector(".brx-submenu-toggle a"):a.querySelector("a")||a.querySelector("button")||a.querySelector(".brx-submenu-toggle"))&&r.focus(),r):null}function bricksMenuFocusFirstElement(e){var t=bricksGetFocusables(e);if(t.length>0){var n=t[0];if(n.classList.contains("brx-submenu-toggle")){var r=n.querySelector("a, button");r&&r.focus()}else n.focus()}}function bricksMenuFocusLastElement(e){var t=bricksGetFocusables(e);if(t.length>0)for(var n=t.length-1;n>=0;n--){var r=t[n];if(bricksIsElementVisible(r)){if(!r.classList.contains("brx-submenu-toggle"))return void r.focus();var i=r.querySelector("button")||r.querySelector("a");if(i&&bricksIsElementVisible(i))return void i.focus()}}}function bricksGetNextMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"a"===e.tagName.toLowerCase()?r[1]:null}function bricksGetPreviousMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"button"===e.tagName.toLowerCase()&&r.find(function(e){return"a"===e.tagName.toLowerCase()})||null}function bricksMenuGetLastFocusableInSubmenuToggle(e,t){var n=Array.from(e.querySelectorAll("a, button"));return t?n[0]:n[n.length-1]}function bricksIsElementVisible(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return t.width>0&&t.height>0&&"hidden"!==n.visibility&&"none"!==n.display}function bricksOffcanvas(){if(bricksIsFrontend){var e=bricksQuerySelectorAll(document,".brxe-offcanvas");if(e.length){var t=e.some(function(e){return e.classList.contains("brx-open")&&"offset"===e.dataset.effect}),n=function(e){var n=e.querySelector(".brx-offcanvas-inner"),r=n?r=1e3*parseFloat(window.getComputedStyle(n).getPropertyValue("transition-duration")):200;if(e.classList.contains("brx-open")){var i,o;if(bricksSetVh(),"offset"===e.dataset.effect&&n){var a=e.getAttribute("data-direction"),s=window.getComputedStyle(n).getPropertyValue("transition");document.body.style.margin="0",t||(document.body.style.transition=s.replace("transform","margin"));var c="rtl"===document.dir||"rtl"===document.documentElement.dir;"top"===a?document.body.style.marginTop="".concat(n.offsetHeight,"px"):"bottom"===a?document.body.style.marginTop="-".concat(n.offsetHeight,"px"):"left"===a?(c?document.body.style.marginRight="-".concat(n.offsetWidth,"px"):document.body.style.marginLeft="".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"):"right"===a&&(c?document.body.style.marginRight="".concat(n.offsetWidth,"px"):document.body.style.marginLeft="-".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"),t&&setTimeout(function(){document.body.style.transition=s.replace("transform","margin")},0),t=!1}if(e.addEventListener("keydown",function(t){return bricksTrapFocus(t,e)}),e.dataset.noScroll&&document.body.classList.add("no-scroll"),"true"!==(null===(i=e.dataset)||void 0===i?void 0:i.noAutoFocus)&&bricksFocusOnFirstFocusableElement(e),"true"===(null===(o=e.dataset)||void 0===o?void 0:o.scrollToTop)){var l=e.querySelector(".brx-offcanvas-inner");l&&(l.scrollTop=0)}var d=e.querySelectorAll('.brx-offcanvas-inner button.brxe-toggle, .brx-offcanvas-inner [data-brx-toggle-offcanvas="true"]');d.length&&d.forEach(function(t){var n,r=!1,i=(null===(n=t.dataset)||void 0===n?void 0:n.selector)||".brxe-offcanvas";if(i){var o=document.querySelectorAll(i)||[];r=Array.from(o).includes(e)}else r=!0;r&&(t.classList.add("is-active"),t.setAttribute("aria-expanded",!0),bricksUtils.setOffcanvasToggleAriaLabel(t,!0))})}else{e.classList.add("brx-closing");var u=e.dataset.toggleScriptId,p=document.querySelector('button[data-script-id="'.concat(u,'"], [data-interaction-id="').concat(u,'"][data-brx-toggle-offcanvas]'));p&&(p.setAttribute("aria-expanded",!1),p.classList.remove("is-active"),bricksUtils.setOffcanvasToggleAriaLabel(p,!1),p.focus()),"offset"===e.dataset.effect&&(document.body.style.marginTop&&(document.body.style.margin="0"),setTimeout(function(){document.body.style.margin=null,document.body.style.overflow=null,document.body.style.transition=null},r)),setTimeout(function(){e.classList.remove("brx-closing"),e.dataset.noScroll&&(document.body.classList.remove("no-scroll"),bricksSubmenuPosition())},r)}},r=new MutationObserver(function(e){e.forEach(function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.oldValue||"",r=e.target.classList,i=t.split(" "),o=Array.from(r);
5if(i.includes("brx-closing")||o.includes("brx-closing"))return;n(e.target)}})});e.forEach(function(e){r.observe(e,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0});var t=e.querySelector(".brx-offcanvas-backdrop");t&&t.addEventListener("click",function(e){bricksOffcanvasClose("backdrop")}),e.classList.contains("brx-open")&&n(e)}),document.addEventListener("keyup",function(e){"Escape"===e.key&&bricksOffcanvasClose("esc")})}}}function bricksOffcanvasClose(e){bricksQuerySelectorAll(document,".brxe-offcanvas.brx-open").forEach(function(t){var n;(((null===(n=t.dataset)||void 0===n?void 0:n.closeOn)||"backdrop-esc").includes(e)||"force"===e)&&t.classList.remove("brx-open");var r=t.querySelectorAll('.brx-offcanvas-inner > button.brxe-toggle, .brx-offcanvas-inner > [data-brx-toggle-offcanvas="true"]');r.length&&r.forEach(function(e){e.classList.remove("is-active"),e.setAttribute("aria-expanded",!1),bricksUtils.setOffcanvasToggleAriaLabel(e,!1)})})}function bricksToggleDisplay(){var e=bricksQuerySelectorAll(document,".brxe-toggle");e.length&&e.forEach(function(e){!e.closest(".brx-nav-nested-items")||e.parentNode.classList.contains("brx-nav-nested-items")||e.parentNode.classList.contains("brx-toggle-div")||("none"===window.getComputedStyle(e).display?(e.parentNode.style.display="none",bricksNavNestedClose()):e.parentNode.style.display=null)})}function bricksNavMenuMobileToggleDisplay(){bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle").forEach(function(e){e.parentNode.classList.contains("show-mobile-menu")&&("none"===window.getComputedStyle(e).display&&e.click())})}var bricksToggleFn=new BricksFunction({parentNode:document,selector:".brxe-toggle",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(t){t.preventDefault(),bricksUtils.toggleAction(e)})}});function bricksToggle(){bricksIsFrontend&&(bricksToggleDisplay(),bricksToggleFn.run())}var bricksToggleModeFn=new BricksFunction({parentNode:document,selector:".brxe-toggle-mode",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(e){e.preventDefault();var t="dark"===document.documentElement.dataset.brxTheme?"light":"dark";document.documentElement.dataset.brxTheme=t,localStorage.setItem("brx_mode",t)})}});function bricksToggleMode(){bricksIsFrontend&&bricksToggleModeFn.run()}function bricksSubmenuToggle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toggle",n=!!e.parentNode.classList.contains("brx-submenu-toggle")&&e.parentNode.parentNode;if(n){if(e.closest(".brx-has-multilevel")){var r=n.parentNode.closest(".active");r&&!r.classList.contains("brx-has-megamenu")&&r.classList.remove("active"),setTimeout(function(){var e=n.querySelector("ul")||n.querySelector(".brx-dropdown-content");e&&bricksFocusOnFirstFocusableElement(e)},100)}if("add"===t?(n.classList.add("open"),n.classList.add("active")):"remove"===t?(n.classList.remove("open"),n.classList.remove("active")):n.classList.toggle("open"),n.classList.contains("brxe-dropdown")){var i=n.querySelector(".brx-dropdown-content");if(i&&n.classList.contains("open")){var o=function(e){if(null==e||!e.propertyName||!["color","background-color","border-color","box-shadow","visibility","opacity","filter"].includes(e.propertyName)){var t=n.getBoundingClientRect(),r=i.getBoundingClientRect(),o=parseFloat(window.getComputedStyle(i).borderTopWidth),a=r.top+o-t.bottom;n.style.setProperty("--brx-dropdown-height-before","".concat(a,"px"))}};n.style.getPropertyValue("--brx-dropdown-height-before")||i.addEventListener("transitionend",o),o()}}e.setAttribute("aria-expanded",n.classList.contains("open"))}}var bricksSubmenuListenersFn=new BricksFunction({parentNode:document,selector:".bricks-nav-menu .menu-item-has-children, .brxe-dropdown",eachElement:function(e){e.closest("[data-static]")||e.closest(".brx-has-multilevel")||e.classList.contains("active")||(e.addEventListener("mouseenter",function(t){if(!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var n=t.target.querySelector('[aria-expanded="false"]');
5n&&(n.closest(".brxe-dropdown.open")||n.closest(".bricks-menu-item.open")||bricksUtils.closeAllSubmenus(n),bricksSubmenuToggle(n))}}),e.addEventListener("mouseleave",function(t){if(!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var n=t.target.querySelector('[aria-expanded="true"]');if(n){var r=n.closest(".menu-item");if(r||(r=n.closest(".brxe-dropdown")),r&&r.classList.contains("active"))return;bricksSubmenuToggle(n)}}}))}});function bricksSubmenuListeners(){function e(e,t,n){var r="hover";if(e.hasAttribute("data-toggle"))r=e.getAttribute("data-toggle");else{var i=e.closest("[data-toggle]");i&&(r=i.getAttribute("data-toggle"))}e.closest(".brxe-nav-menu.show-mobile-menu")&&(r="click"),e.closest(".brxe-nav-nested.brx-open")&&(r="click");var o="hover"===r?t.target.closest("[aria-expanded]"):e.querySelector(n?".brx-submenu-toggle button[aria-expanded]":"button[aria-expanded]");if(0===t.detail||"click"===r||"both"===r||(o=null),o){bricksSubmenuToggle(o);var a=n?e:e.parentNode;a.classList.toggle("active"),setTimeout(function(){a.classList.contains("active")&&a.classList.add("open"),o.setAttribute("aria-expanded",a.classList.contains("open"))},0)}}bricksSubmenuListenersFn.run(),document.addEventListener("keyup",function(e){"Escape"===e.key?bricksUtils.closeAllSubmenus(e.target):"Tab"===e.key&&setTimeout(function(){bricksQuerySelectorAll(document,'[aria-expanded="true"]').forEach(function(e){var t=e.closest(".menu-item");t||(t=e.closest(".brxe-dropdown")),(t&&!t.contains(document.activeElement)||"BODY"===document.activeElement.tagName)&&bricksSubmenuToggle(e,"remove")})},0)}),document.addEventListener("click",function(t){var n=t.target,r=null;if(n&&"A"!==n.nodeName&&(n=n.closest("a[href]")),n&&(r=n.getAttribute("href")),r&&r.includes("#"))if("#"===r||"/#"===r)t.preventDefault();else{var i=r.split("#")[1];if(t.target.closest(".brxe-offcanvas")&&bricksOffcanvasClose("force"),t.target.closest(".brxe-nav-nested.brx-open")){bricksNavNestedClose();var o=document.getElementById(i);o&&setTimeout(function(){o.scrollIntoView()},200)}var a=document.getElementById(i);if(a){var s=a.classList.contains("woocommerce-Tabs-panel"),c=a.firstChild&&a.firstChild.classList&&a.firstChild.classList.contains("accordion-title-wrapper")?a.firstChild:null;if(c&&!s)return void c.click();var l=a.closest(".tab-title");l&&!s&&l.click();var d=t.target.closest(".brx-popup");d&&!d.contains(a)&&bricksClosePopup(d)}}var u=t.target.closest(".brx-submenu-toggle"),p=t.target.closest(".brxe-dropdown"),b=t.target.closest(".brx-dropdown-content");!p||b&&b.parentNode===p?u&&e(u,t,!1):e(p,t,!0),bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach(function(e){var n=e.closest("li");n||(n=e.closest(".brxe-dropdown")),n&&!n.contains(t.target)&&(bricksSubmenuToggle(e),n.classList.remove("active"))})}),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.querySelector('[aria-current="page"]')&&e.classList.add("aria-current")})}var bricksSubmenuPositionFn=new BricksFunction({parentNode:document,selector:".brx-submenu-toggle",forceReinit:!0,eachElement:function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");if(n&&(n.classList.add("brx-submenu-positioned"),!t.hasAttribute("data-static"))){var r=document.body.clientWidth;if(t.classList.contains("brx-has-megamenu")){var i=t.dataset.megaMenu,o=t.dataset.megaMenuVertical,a=document.body;if(i){var s=document.querySelector(i);s&&(a=s)}var c=t.getBoundingClientRect(),l=a.getBoundingClientRect();if(n.style.left="-".concat(c.left-l.left,"px"),n.style.minWidth="".concat(l.width,"px"),o){var d=document.querySelector(o);if(d){var u=d.getBoundingClientRect();n.style.top="".concat(c.height+u.bottom-c.bottom,"px")}}bricksIsFrontend&&document.dispatchEvent(new CustomEvent("bricks/megamenu/repositioned",{detail:{menuItem:t,submenu:n}}))}else{n.classList.contains("brx-multilevel-overflow-right")&&n.classList.remove("brx-multilevel-overflow-right"),n.classList.contains("brx-submenu-overflow-right")&&n.classList.remove("brx-submenu-overflow-right"),n.classList.contains("brx-sub-submenu-overflow-right")&&n.classList.remove("brx-sub-submenu-overflow-right");var p=!t.parentNode.closest(".menu-item")&&!t.parentNode.closest(".brxe-dropdown"),b=n.getBoundingClientRect(),v=b.width,f=b.right,m=Math.ceil(b.left);if(v>r)n.style.left="-".concat(m,"px"),n.style.minWidth="".concat(r,"px");else if(f>r){n.closest(".brx-has-multilevel")?n.classList.add("brx-multilevel-overflow-right"):p?n.classList.add("brx-submenu-overflow-right"):n.classList.add("brx-sub-submenu-overflow-right")}
5else m<0&&(n.style.left=p?"0":"100%",n.style.right="auto")}}}});function bricksSubmenuPosition(){setTimeout(function(){bricksSubmenuPositionFn.run()},arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}function bricksSubmenuWindowResizeHandler(){var e,t,n,r=function(){var r=window.innerWidth,i=window.innerHeight,o=document.body.clientWidth;r===e&&o===n||(clearTimeout(t),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.classList.remove("brx-submenu-positioned")}),t=setTimeout(bricksSubmenuPosition,250),e=r,n=o)},i=function(){var t=window.innerWidth,o=window.innerHeight;requestAnimationFrame(function(){t===window.innerWidth&&o===window.innerHeight?(e=t,n=document.body.clientWidth,window.addEventListener("resize",r)):i()})};i(),window.bricksData&&!window.bricksData.bodyResizeObserver&&(window.bricksData.bodyResizeObserver=new ResizeObserver(function(e){var t,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){t.value.contentRect.width!==n&&r()}}catch(e){i.e(e)}finally{i.f()}}),window.bricksData.bodyResizeObserver.observe(document.body))}function bricksMultilevelMenu(){bricksQuerySelectorAll(document,".brxe-nav-nested.multilevel").forEach(function(e){var t=e.getAttribute("data-back-text");e.querySelectorAll(".brxe-dropdown").forEach(function(e){e.classList.add("brx-has-multilevel"),e.setAttribute("data-toggle","click"),e.setAttribute("data-back-text",t)})}),bricksQuerySelectorAll(document,".brx-has-multilevel").forEach(function(e){var t=e.getAttribute("data-back-text")||"Back";bricksQuerySelectorAll(e,"ul").forEach(function(e,n){if(0!==n){var r=document.createElement("a");r.classList.add("brx-multilevel-back"),r.setAttribute("href","#"),r.innerText=t;var i=document.createElement("li");i.classList.add("menu-item"),i.appendChild(r),e.insertBefore(i,e.firstChild),r.addEventListener("click",function(e){e.preventDefault();var t=e.target.closest(".active");if(t){t.classList.remove("open"),t.classList.remove("active");var n=t.querySelector(".brx-submenu-toggle > button");n&&n.setAttribute("aria-expanded",!1);var r=t.parentNode.closest(".open");if(r){r.classList.add("active");var i=r.querySelector("ul");i&&bricksFocusOnFirstFocusableElement(i)}}})}})})}function bricksNavMenuMobile(){var e=bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle");if(e.length){var t=new MutationObserver(function(e){bricksSetVh(),e.forEach(function(e){e.target.classList.contains("show-mobile-menu")?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")})});e.forEach(function(e){var n=e.closest(".brxe-nav-menu");t.observe(n,{attributes:!0,attributeFilter:["class"]})});var n=null;document.addEventListener("click",function(e){var t=e.target.closest(".bricks-mobile-menu-toggle");if(t){var r=t.closest(".brxe-nav-menu");r.classList.toggle("show-mobile-menu");var i=r.classList.contains("show-mobile-menu"),o=i?window.bricksData.i18n.closeMobileMenu:window.bricksData.i18n.openMobileMenu;t.setAttribute("aria-expanded",i),t.setAttribute("aria-label",o),i?(n=document.activeElement,setTimeout(function(){bricksFocusOnFirstFocusableElement(r.querySelector(".bricks-mobile-menu-wrapper")),r.addEventListener("keydown",function(e){r.classList.contains("show-mobile-menu")&&bricksTrapFocus(e,r)})},100)):n&&n.focus()}}),document.addEventListener("click",function(e){var t=e.target.closest(".brxe-nav-menu");if(t){var n=t.querySelector(".bricks-mobile-menu-toggle");if(e.target.classList.contains("bricks-mobile-menu-overlay"))t.classList.remove("show-mobile-menu"),t.querySelector(".bricks-mobile-menu-toggle").setAttribute("aria-expanded",!1),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu);else if(e.target.closest(".bricks-mobile-menu-wrapper")){var r="A"===e.target.tagName?e.target.getAttribute("href"):"";r.length>1&&r.includes("#")&&(t.classList.remove("show-mobile-menu"),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu))}}}),document.addEventListener("keyup",function(e){if("Escape"===e.key){var t=document.querySelector(".brxe-nav-menu.show-mobile-menu");if(t){t.classList.remove("show-mobile-menu");var n=t.querySelector(".bricks-mobile-menu-toggle");n&&(n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu),setTimeout(function(){n.focus()},10))}}})}}var bricksBackToTopFn=new BricksFunction({parentNode:document,selector:".brxe-back-to-top",eachElement:function(e){e.hasAttribute("data-move-focus-to-top")&&document.body.setAttribute("tabindex","-1"),e.addEventListener("click",function(t){if(t.preventDefault(),window.scrollTo({top:0,behavior:e.hasAttribute("data-smooth-scroll")?"smooth":"auto"}),e.hasAttribute("data-move-focus-to-top")){var n=e.hasAttribute("data-smooth-scroll")?100:0;setTimeout(function(){document.body.focus({preventScroll:!0})},n)}});var t=e.dataset.visibleAfter||0,n=e.classList.contains("up");if(t||n){var r=0;window.addEventListener("scroll",function(){var i=document.documentElement.scrollTop,o=!0;n&&(o=!(i>r),r=i),(o=!!(window.scrollY>t&&o))?e.classList.add("visible"):e.classList.remove("visible")})}}});function bricksBackToTop(){bricksBackToTopFn.run()}function bricksGetFocusables(e){var t=e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not
5([tabindex="-1"])');return Array.prototype.filter.call(t,function(e){return!e.hasAttribute("inert")&&!e.closest("[inert]")&&"none"!==window.getComputedStyle(e).display})}function bricksGetVisibleFocusables(e){return bricksGetFocusables(e).filter(function(e){return e.offsetWidth>0||e.offsetHeight>0})}var bricksIsFrontend,bricksPauseMediaFn=new BricksFunction({parentNode:document,selector:'video, audio, iframe[src*="youtube"], iframe[src*="vimeo"]',subscribeEvents:["bricks/popup/close"],forceReinit:!0,eachElement:function(e){if("VIDEO"!==e.tagName&&"AUDIO"!==e.tagName||!e.pause||"function"!=typeof e.pause){if("IFRAME"===e.tagName){var t=e.getAttribute("src"),n=t.includes("youtube"),r=n?{event:"command",func:"pauseVideo",args:""}:{method:"pause"};if(t.includes("vimeo")||n)return void e.contentWindow.postMessage(JSON.stringify(r),"*")}}else e.pause()},listenerHandler:function(e){var t;if(null!=e&&e.type&&"bricks/popup/close"===e.type){var n=null==e||null===(t=e.detail)||void 0===t?void 0:t.popupElement;n&&bricksPauseMediaFn.run({parentNode:n})}}}),bricksAnchorLinksFn=new BricksFunction({parentNode:document,selector:'a[data-brx-anchor][href*="#"]',frontEndOnly:!0,eachElement:function(e){var t,n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\/+$/,"")||"/"},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.closest(".menu-item")||!1;t?(e.setAttribute("aria-current","page"),n&&e.closest(".menu-item").classList.add("current-menu-item")):(e.removeAttribute("aria-current"),n&&e.closest(".menu-item").classList.remove("current-menu-item"))},i=window.location.hash||!1;if(i&&i.length>1){var o=function(e){try{return new URL(e.getAttribute("href"),window.location.href)}catch(e){return!1}}(e),a=!(null==o||!o.hash)&&o.hash.substring(1);if(a&&a===i.substring(1)&&((t=o)&&t.origin===window.location.origin&&n(t.pathname)===n(window.location.pathname))){var s=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;if(s)s.querySelectorAll(".menu-item").forEach(function(e){var t=e.querySelectorAll("a:not([data-brx-anchor])");t.length>0&&(e.classList.remove("current-menu-item"),t.forEach(function(e){e.removeAttribute("aria-current")}))});r(e)}}e.addEventListener("click",function(t){var n=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;n&&n.querySelectorAll(".menu-item").forEach(function(e){e.classList.remove("current-menu-item"),e.querySelectorAll('a[aria-current="page"]').forEach(function(e){e.removeAttribute("aria-current")})});r(e)})}});function bricksAnchorLinks(){bricksAnchorLinksFn.run()}function bricksGetQueryResult(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){if(e)if("function"==typeof window.bricksUtils.getFiltersForQuery){var o=window.bricksData.queryLoopInstances[e]||!1;if(o){n||bricksUtils.maybeAbortXhr(e);var a=window.bricksData.restApiUrl.concat("query_result"),s=window.bricksUtils.getFiltersForQuery(e,"filterId"),c=window.bricksUtils.getSelectedFiltersForQuery(e),l=window.bricksUtils.getDynamicTagsForParse(e),d="[]"===(null==o?void 0:o.originalQueryVars)?null==o?void 0:o.queryVars:null==o?void 0:o.originalQueryVars,u={postId:window.bricksData.postId,queryElementId:e,originalQueryVars:d,pageFilters:window.bricksData.pageFilters||!1,filters:s,selectedFilters:c,afTags:l,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(a=a.concat("?lang="+window.bricksData.language)),window.bricksData.queryLoopInstances[e].isLoading=1,n||window.bricksData.queryLoopInstances[e].xhrAborted||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:e,isPopState:t}}));var p=new XMLHttpRequest;window.bricksData.queryLoopInstances[e].xhr=p,p.open("POST",a,!0),p.setRequestHeader("Content-Type","application/json; charset=UTF-8"),p.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),p.onreadystatechange=function(){if(p.readyState===XMLHttpRequest.DONE){var t;window.bricksData.queryLoopInstances[e].xhr===p&&(window.bricksData.queryLoopInstances[e].xhr=null,window.bricksData.queryLoopInstances[e].xhrAborted=!1);var o,a=p.status;try{o=JSON.parse(p.response)}catch(e){return void i("Invalid response from server")}if(0===a||a>=200&&a<400){var s;window.bricksData.queryLoopInstances[e].isLoading=0;var c=(null===(s=o)||void 0===s?void 0:s.error)||!1;c?(console.error("error: bricksGetQueryResult",c),i(c)):r(o),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:e}})),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/completed",{detail:{queryId:e}}))}else"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)?n?i("Nonce verification failed after refresh"):bricksRegenerateNonceAndRetryQuery(e).then(r).catch(i):i("Request failed with status ".concat(a))}},p.send(JSON.stringify(u))}else i("Query instance not found")}else i("Query filters JS not loaded");else i("No queryId provided")})}function bricksRegenerateNonceAndRetryQuery(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}if(i.success&&i.data){window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce;
5bricksGetQueryResult(e,!1,!0).then(t).catch(n)}else n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}function bricksDisplayQueryResult(e,t){var n,r=(null==t?void 0:t.html)||!1,i=(null==t?void 0:t.styles)||!1,o=(null==t?void 0:t.popups)||!1,a=(null==t?void 0:t.updated_query)||!1,s=(null==t?void 0:t.updated_filters)||!1,c=(null==t?void 0:t.parsed_af_tags)||!1,l=window.bricksData.queryLoopInstances[e]||!1,d=(null==l?void 0:l.resultsContainer)||!1;if(l&&d){var u=(null==l?void 0:l.componentId)||!1,p=bricksUtils.getQueryTrailSelectorId(e,u),b=d.querySelector(".bricks-gutter-sizer"),v=d.querySelector(".bricks-isotope-sizer"),f=d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")),m=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(t){return t.nodeValue==="brx-loop-start-".concat(e)}}).nextNode(),g=f.length>0||m;if(g&&d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),r)if(g){if(m){var y=r.match(/<\s*([a-z0-9]+)([^>]+)?>/i),k=null;(k=!y||"td"!==y[1]&&"tr"!==y[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=r;var w=Array.from(k.childNodes);
5w.reverse(),w.forEach(function(e){var t,n;m.nextSibling?null===(t=m.parentNode)||void 0===t||t.insertBefore(e,m.nextSibling):null===(n=m.parentNode)||void 0===n||n.appendChild(e)}),k.remove()}}else d.insertAdjacentHTML("beforeend",r);if(b&&d.appendChild(b),v&&d.appendChild(v),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(e,'"]')).forEach(function(e){return e.remove()}),o&&document.body.insertAdjacentHTML("beforeend",o),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:e}})),i){var h=document.querySelector("#brx-query-styles-".concat(e));h||((h=document.createElement("style")).id="brx-query-styles-".concat(e),document.body.appendChild(h)),h.innerHTML=i}if(a&&bricksUtils.updateQueryResultStats(e,"query",a),c&&window.bricksUtils.updateParsedDynamicTags(e,c),void 0!==(null==a||null===(n=a.query_vars)||void 0===n?void 0:n.paged)&&(window.bricksData.queryLoopInstances[e].page=parseInt(a.query_vars.paged)),void 0!==(null==a?void 0:a.max_num_pages)&&(window.bricksData.queryLoopInstances[e].maxPages=parseInt(a.max_num_pages)),void 0!==(null==a?void 0:a.start)&&(window.bricksData.queryLoopInstances[e].start=parseInt(a.start)),void 0!==(null==a?void 0:a.end)&&(window.bricksData.queryLoopInstances[e].end=parseInt(a.end)),s)for(var x in s){var S=s[x],L=window.bricksData.filterInstances[x]||!1;if(L&&("search"!==L.filterType&&"datepicker"!==L.filterType)){var E=document.createElement("div");E.innerHTML=S;var I=E.childNodes[0];"select"===L.filterType&&L.choicesInstance&&"function"==typeof L.choicesInstance.destroy&&(L.choicesInstance.destroy(),I=I.querySelector("select.brxe-filter-select")),L.filterElement.replaceWith(I),L.filterElement=I,E.remove()}}bricksUtils.hideOrShowLoadMoreButtons(e),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:e}})),l.infiniteScroll&&setTimeout(function(){var t,n=Array.from(null===(t=l.resultsContainer)||void 0===t?void 0:t.querySelectorAll(".brxe-".concat(p,":not(.brx-popup)"))).pop();n&&(n.dataset.queryElementId=e,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:l.observerMargin}))},250)}}function bricksGetYouTubeVideoLinkData(e){if(!e)return{url:"",id:null};var t=e.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|shorts\/|live\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);if(t&&t[1]){var n=t[1],r="https://www.youtube.com/embed/".concat(n);try{var i=new URL(e),o=new URLSearchParams(i.search);o.delete("v");var a=o.toString();a&&(r+="?"+a)}catch(e){console.warn("Failed to parse URL parameters:",e)}return{url:r,id:n}}return{url:e,id:null}}function bricksSetVh(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--bricks-vh","".concat(e,"px"))}function bricksRunAllFunctions(){window.bricksFunctions&&window.bricksFunctions.forEach(function(e){e.run&&"function"==typeof e.run&&e.run()})}var bricksTimeouts={};document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend=document.body.classList.contains("bricks-is-frontend"),bricksBlockEditorIntegration(),bricksNavMenu(),bricksMultilevelMenu(),bricksNavMenuMobile(),bricksStickyHeader(),bricksOnePageNavigation(),bricksSkipLinks(),bricksFacebookSDK(),bricksSearchToggle(),bricksPopups(),bricksSwiper(),bricksSplide(),bricksSplideListeners(),bricksPhotoswipe(),bricksTinyMCE(),bricksPrettify(),bricksAccordion(),bricksAnimatedTyping(),bricksAudio(),bricksCountdown(),bricksCounter(),bricksTableOfContents(),bricksPricingTables(),bricksVideo(),bricksLazyLoad(),bricksAnimation(),bricksMotionParallax(),bricksPieChart(),bricksPostReadingProgressBar(),bricksProgressBar(),bricksForm(),bricksInitQueryLoopInstances(),bricksQueryPagination(),bricksInteractions(),bricksAlertDismiss(),bricksTabs(),bricksVideoOverlayClickDetector(),bricksBackgroundVideoInit(),bricksPostReadingTime(),bricksBackToTop(),bricksMapLeaflet(),bricksNavNested(),bricksOffcanvas(),bricksToggle(),bricksToggleMode(),bricksSubmenuListeners(),bricksSubmenuPosition(250),bricksAjaxLoader(),bricksAnchorLinks(),bricksUtils.imageGalleryLoadMoreSync("all"),bricksGalleryInfiniteScroll(),bricksUtils.imageGalleryLoadMoreButtonVisibility("all"),bricksIsotope(),bricksIsotopeListeners(),window.addEventListener("load",bricksSubmenuWindowResizeHandler),window.addEventListener("resize",function(){Object.keys(bricksT
5imeouts).forEach(function(e){clearTimeout(bricksTimeouts[e])}),bricksIsFrontend?(bricksTimeouts.bricksVh=setTimeout(bricksSetVh,250),bricksTimeouts.bricksSwiperBreakpoints=setTimeout(bricksSwiperUpdateBreakpoints,250)):(bricksTimeouts.bricksSwiper=setTimeout(bricksSwiper,250),bricksTimeouts.bricksSplide=setTimeout(bricksSplide,250)),bricksTimeouts.tabsAdjustLayoutOnMobile=setTimeout(bricksTabsAccordionLayoutOnMobile,250),bricksTimeouts.bricksMotionParallax=setTimeout(bricksMotionParallax,150),bricksTimeouts.bricksToggleDisplay=setTimeout(bricksToggleDisplay,100),bricksTimeouts.bricksNavMenuMobileToggleDisplay=setTimeout(bricksNavMenuMobileToggleDisplay,100)}),["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.imageGalleryLoadMoreSync("all")})}),setTimeout(function(){var e;(Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[]).find(function(e){return"scroll"===(null==e?void 0:e.trigger)})&&document.addEventListener("scroll",bricksScrollInteractions)},100)}) 6;var ws_form_settings={"x_wp_nonce":"","wsf_nonce_field_name":"wsf_nonce","wsf_nonce":"","url_ajax":"https://yogaspotaz.com/wp-json/ws-form/v1/","url_ajax_namespace":"ws-form/v1","url_plugin":"https://yogaspotaz.com/wp-content/plugins/ws-form-pro/","url_cdn":"local","add_view_url":"https://yogaspotaz.com/wp-json/ws-form/v1/form/stat/add-view/","css_framework":"1","debug":"","styler_enabled":"1","styler_visible_public":"","scheme":"light","scheme_auto":"on","conversational":"","max_upload_size":"268435456","field_prefix":"field_","date_format":"F j, Y","time_format":"g:i a","gmt_offset":"-7","currency_symbol":"$","locale":"en","stat":"1","skin_spacing_small":"5","skin_grid_gutter":"20","rtl":"","wsf_hash":"","wp_media":"","ip_lookup_method":"","post_id":"1305"} 7;!function(e){"use strict";e.WS_Form=function(t){e.WS_Form.this=this,this.is_admin=this.set_is_admin(),this.user_roles=ws_form_settings.user_roles,this.form_interface=!1,this.group_data_cache=[],this.group_index=0,this.section_data_cache=[],this.field_data_cache=[],this.action_data_cache=[],this.validation_message_cache=[],this.invalid_feedback_cache=[],this.object_cache=[],this.object_cache.condition=[],this.object_cache.then=[],this.object_cache.else=[],this.action=!1,this.object_data_scratch=!1,this.form_history=[],this.history_index=0,this.framework_id=!1,this.framework=!1,this.framework_fields=!1,this.column_resize_obj=!1,this.column_size_value=0,this.column_size_value_old=0,this.offset_value=0,this.offset_value_old=0,this.dragged_field=null,this.dragged_field_in_section=null,this.dragged_section=null,this.dragged_section_in_group=null,this.dragging=!1,this.next_sibling_id_old=null,this.section_id_old=null,this.group_id_old=null,this.section_repeatable_dragged=!1,this.section_repeatable_indexes={},this.checksum=!1,this.checksum_setTimeout=!1,this.published_checksum="",this.recaptchas=[],this.recaptchas_v2_default=[],this.recaptchas_v2_invisible=[],this.recaptchas_v3_default=[],this.recaptchas_conditions=[],this.timeout_recaptcha=3e4,this.hcaptchas=[],this.hcaptchas_default=[],this.hcaptchas_invisible=[],this.hcaptchas_conditions=[],this.timeout_hcaptcha=3e4,this.turnstiles=[],this.turnstiles_default=[],this.turnstiles_conditions=[],this.timeout_turnstile=3e4,this.conditional=!1,this.conditional_data=!1,this.conditional_index_dragged_from=!1,this.conditional_icons_array=!1,this.conditional_highlight_array=!1,this.conditional_highlight_row_index=!1,this.conditional_row_array=!1,this.conditional_actions_run_action=[],this.conditional_actions_run_save=[],this.conditional_actions_run_submit=[],this.conditional_cache=!1,this.conditional_event_selector_to_condition=[],this.signatures=[],this.signatures_by_name=[],this.timeout_signature=3e4,this.google_maps=[],this.timeout_google_maps=3e4,this.timeout_analytics_google=3e4,this.timeout_analytics_data_layer=3e4,this.analytics_function=[],this.text_editor_index=1,this.code_editor_index=1,this.form_events_reset=[],this.keydown=[],this.timeout_interval=100,this.api_call_queue=[],this.api_call_queue_running=!1,this.number_to_word=["nought","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"],this.label_old="",this.submit=!1,this.action_js=[],this.form_draft=!1,this.submit_auto_populate=!1,this.form_id_prefix="wsf-",this.field_name_prefix=ws_form_settings.field_prefix,this.meta_key_options_cache=[],this.options_action_objects=[],this.options_action_cache=[],this.sidebar_conditions=[],this.sidebar_expanded_obj=!1,this.sidebar_lock_count=0,this.touch_device="ontouchend"in document,this.hash="",this.token="",this.token_validated=!1,this.form_post_locked=!1,this.form_post_lock_start=0,this.form_post_lock_duration_max=1e3,this.form_loader_showing=!1,this.form_loader_show_start=0,this.form_loader_show_duration_max=this.form_post_lock_duration_max,this.form_loader_timeout_id=!1,this.field_required_bypass=[],this.form_valid=!1,this.form_valid_old=null,this.form_validation_real_time_hooks=[],this.ecommerce_cart_price_type=[],this.has_ecommerce=!1,this.form_ecommerce_calculate_enabled=!0,this.progress=0,this.progress_percent="0%",this.progress_array=[],this.progress_class_complete="",this.progress_class_incomplete="",this.upload_obj=!1;var a=document.createElement("input");a.setAttribute("type","date"),this.native_date="date"==a.type,this.timeout_datetimepicker=5e3;var r=document.createElement("input");r.setAttribute("type","color"),this.native_color="color"==r.type,this.form_action_custom=!1,this.form_ajax=!0,this.object_focus=!1,this.field_type_click_drag_check=!1,this.section_id_click_drag_check=!1,this.password_strength_status=0,this.cascade_cache=[],this.select_ajax_cache=[],this.preview_window=void 0,this.calc=[],this.file_frame=!1,this.file_frame_input_obj=!1,this.api_call_handle=[],this.visual_builder=!1,this.form_bypass_enabled=!1,this.action_js_process_validation_focus=!0,this.action_ga=!1,this.dropzonejs_processes=0,this.dropzonejs_index_dragged_from=0,this.conversational=!1,this.form_stat_add_lock=!1,this.form_geo_cache=!1,this.form_geo_cache_request=!1,this.form_geo_stack=[]},e.WS_Form.prototype.render=function(t){var a=this;void 0===t&&this.error("error_attributes"),void 0===t.obj&&this.error("error_attributes_obj"),void 0===t.form_id&&this.error("error_attributes_form_id"),this.form_canvas_obj=t.obj instanceof e?t.obj:e(t.obj),this.form_obj_id=this.form_canvas_obj.attr("id"),this.form_id=parseInt(t.form_id,10),0!==this.form_id&&(this.form_instance_id=parseInt(this.form_canvas_obj.attr("data-instance-id"),10),0!==this.form_instance_id&&(this.form_id_prefix=this.is_admin?"wsf-":"wsf-"+this.form_instance_id+"-",this.form_id_prefix_function=this.is_admin?"wsf_":"wsf_"+this.form_instance_id+"_",this.form_obj=this.form_canvas_obj.closest("form"),this.form_obj.length?this.form_obj.attr("novalidate",""):this.form_obj=this.form_canvas_obj,this.form_obj[0]!=this.form_canvas_obj[0]&&(this.form_obj.hasClass("wsf-form")||this.form_obj.addClass("wsf-form"),this.form_canvas_obj.hasClass("wsf-form")&&this.form_canvas_obj.removeClass("wsf-form"),void 0!==this.form_canvas_obj.attr("data-wsf-style-id")&&(this.form_obj.attr("data-wsf-style-id",this.form_canvas_obj.attr("data-wsf-style-id")),this.form_canvas_obj.removeAttr("data-wsf-style-id"))),this.form_canvas_obj.html(""),this.get_configuration(function(){a.get_form(function(){"function"==typeof a.debug&&a.debug(),a.is_admin||("function"==typeof a.form_loader&&a.form_loader(),"function"==typeof a.form_loader_show&&a.form_loader_show("render")),a.init()})})))},e.WS_Form.configured=!1,e.WS_Form.css_rendered=!1,e.WS_Form.debug,e.WS_Form.debug_rendered=!1,e.WS_Form.analytics,e.WS_Form.tracking,e.WS_Form.ecommerce,e.WS_Form.calc,e.WS_Form.styler,e.WS_Form.styler_rendered=!1,e.WS_Form.settings_plugin,e.WS_Form.settings_form=null,e.WS_Form.frameworks,e.WS_Form.parse_variables,e.WS_Form.parse_variable_help,e.WS_Form.parse_variable_repairable,e.WS_Form.actions,e.WS_Form.field_types,e.WS_Form.field_type_cache=[],e.WS_Form.file_types,e.WS_Form.meta_keys,e.WS_Form.meta_keys_required_setting=[],e.WS_Form.breakpoints,e.WS_Form.data_sources,e.WS_Form.templates_section,e.WS_Form.prototype.get_configuration=function(t,a,r){if(void 0===a&&(a=!1),void 0===r&&(r=!1),this.options_action_cache=[],r||this.loader_on(),!e.WS_Form.configured||a)if("undefined"==typeof wsf_form_json_config){var i=this;this.api_call("config","GET",!1,function(e){i.set_configuration(e.data),window.wsf_form_json_config=e.data,"function"==typeof t&&t()},!1,r)}else this.set_configuration(wsf_form_json_config),"function"==typeof t&&t();else"function"==typeof t&&t()},e.WS_Form.prototype.set_configuration=function(t){if(e.WS_Form.settings_plugin=t.settings_plugin,e.WS_Form.settings_form=t.settings_form,e.WS_Form.frameworks=t.frameworks,e.WS_Form.field_types=t.field_types,e.WS_Form.file_types=t.file_types,e.WS_Form.meta_keys=t.meta_keys,e.WS_Form.parse_variables=t.parse_variables,e.WS_Form.parse_variables_repairable=t.parse_variables_repairable,e.WS_Form.parse_variable_help=t.parse_variable_help,e.WS_Form.actions=t.actions,e.WS_Form.data_sources=t.data_sources,e.WS_Form.templates_section=t.templates_section,e.WS_Form.calc=t.calc,e.WS_Form.tracking=t.tracking,e.WS_Form.ecommerce=t.ecommerce,this.is_admin||(e.WS_Form.analytics=JSON.parse(atob(t.analytics))),void 0!==e.WS_Form.parse_variables){var a=[];for(var r in e.WS_Form.parse_variables)e.WS_Form.parse_variables.hasOwnProperty(r)&&a.push([r,e.WS_Form.parse_variables[r].priority]);a.sort(function(e,t){var a=void 0!==e[1]?e[1]:0;return(void 0!==t[1]?t[1]:0)-a});var i={};for(var r in a)if(a.hasOwnProperty(r)){var s=a[r][0];i[s]=e.WS_Form.parse_variables[s]}e.WS_Form.parse_variables=i}void 0!==t.debug&&(e.WS_Form.debug=t.debug),this.field_type_cache_build(),e.WS_Form.configured=!0},e.WS_Form.prototype.get_form=function(t){if(0==this.form_id)return this.error("error_form_id"),void this.loader_off();if(e("#"+this.form_obj_id).attr("data-id",this.form_id),void 0===window.wsf_form_json||void 0===window.wsf_form_json[this.form_id]){var a=this;this.api_call("form/"+this.form_id+"/full/?wsf_fp=true","GET",!1,function(e){a.form=e.form,void 0===window.wsf_form_json&&(window.wsf_form_json=[]),window.wsf_form_json[a.form_id]=e.form,a.data_cache_build(),"function"==typeof t&&t(),a.loader_off()})}else this.form=window.wsf_form_json[this.form_id],this.data_cache_build(),"function"==typeof t&&t(),this.loader_off()},e.WS_Form.prototype.form_build=function(){if(this.timer_start=new Date,this.form_canvas_obj.children().not(".wsf-loader").remove(),this.form_canvas_obj.append(this.get_form_html(this.form)),!this.is_admin){var t=this.get_object_meta_value(this.form,"class_form_wrapper","");if(""!=t){var a=this.form_canvas_obj.attr("class");a+=" "+t.trim(),this.form_canvas_obj.attr("class",a)}}this.form_render(),this.timer_duration=new Date-this.timer_start,e.WS_Form.debug_rendered&&this.debug_info("debug_info_duration",this.timer_duration+"ms")},e.WS_Form.prototype.get_form_style_id=function(){var t=this.is_admin?"ws-form":e.WS_Form.settings_plugin.framework;return e.WS_Form.frameworks.types[t]},e.WS_Form.prototype.get_framework=function(){var t=this.is_admin?"ws-form":e.WS_Form.settings_plugin.framework;return e.WS_Form.frameworks.types[t]},e.WS_Form.prototype.get_form_html=function(e){if(void 0===e)return"";if(void 0===e.groups)return"";var t=this.get_framework().form[this.is_admin?"admin":"public"],a=this.esc_html(e.label);if(!this.is_admin&&"on"==this.get_object_meta_value(e,"label_render","on"))var r
7=this.is_admin?"":this.get_object_meta_value(this.form,"label_mask_form",""),i=""!=r?r:void 0!==t.mask_label?t.mask_label:"",s={label:a},_=this.mask_parse(i,s);else _="";var o=this.get_tabs_html(e);o+=this.get_groups_html(e.groups);i=t.mask_single,s={form:o,id:this.form_id_prefix+"tabs",label:_};return this.comment_html("Form: "+a)+this.mask_parse(i,s)+this.comment_html("Form: "+a,!0)},e.WS_Form.prototype.get_tabs_html=function(e){if(void 0===e.groups)return"";var t=e.groups,a=Object.keys(t).length;if(1==a&&!this.is_admin)return"";var r="",i=this.get_framework().tabs[this.is_admin?"admin":"public"],s=this.get_object_meta_value(this.form,"cookie_tab_index")?this.cookie_get("tab_index",0):0;if(a>1||this.is_admin){for(var _ in t)if(t.hasOwnProperty(_)){var o=t[_];r+=this.get_tab_html(o,_,s==_)}var l="";if(!this.is_admin)this.get_object_meta_value(e,"tabs_hide",!1)&&(l+=' style="display: none;"');var n=["wsf-group-tabs"];if(!this.is_admin){var c=this.get_object_meta_value(e,"class_tabs_wrapper",!1);""!=c&&n.push(c.trim())}var d=i.mask_wrapper,p={attributes:l,class:n.join(" "),tabs:r,id:this.form_id_prefix+"tabs"};return this.comment_html(this.language("comment_group_tabs"))+this.mask_parse(d,p)+this.comment_html(this.language("comment_group_tabs"),!0)}return""},e.WS_Form.prototype.get_tab_html=function(e,t,a){void 0===t&&(t=0),void 0===a&&(a=!1);var r=this.get_framework().tabs[this.is_admin?"admin":"public"],i=this.esc_html(e.label),s="";!this.is_admin&&"on"==this.get_object_meta_value(e,"hidden","")&&(s=' style="display: none;" data-wsf-group-hidden');var _=r.mask_single,o={attributes:s,data_id:e.id,href:"#"+this.form_id_prefix+"group-"+e.id,label:i};return a&&void 0!==r.active?o.active=r.active:o.active="",this.mask_parse(_,o)},e.WS_Form.prototype.get_groups_html=function(t){if(void 0===t)return"";var a=Object.keys(t).length,r=this.get_framework().groups[this.is_admin?"admin":"public"],i=this.get_object_meta_value(this.form,"cookie_tab_index")?this.cookie_get("tab_index",0):0,s="",_=this.is_admin||a>1,o=0;for(var l in t)if(t.hasOwnProperty(l)){var n=t[l];s+=this.get_group_html(n,l==i,_,o++)}var c=_?r.mask_wrapper:"#groups",d={class:["wsf-groups"].join(" "),column_count:e.WS_Form.settings_plugin.framework_column_count,groups:s,id:this.form_id_prefix+"tabs"};return(_?this.comment_html(this.language("comment_groups")):"")+this.mask_parse(c,d)+(_?this.comment_html(this.language("comment_groups"),!0):"")},e.WS_Form.prototype.get_group_html=function(t,a,r,i){void 0===a&&(a=!1),void 0===r&&(r=!0);var s=this.get_framework().groups[this.is_admin?"admin":"public"],_=this.esc_html(t.id),o=this.esc_html(t.label);if(!this.is_admin&&"on"==this.get_object_meta_value(t,"label_render","on"))var l=this.is_admin?"":this.get_object_meta_value(this.form,"label_mask_group",""),n=""!=l?l:void 0!==s.mask_label?s.mask_label:"",c={label:o},d=this.mask_parse(n,c);else d="";var p,u=this.get_sections_html(t),h=[];(void 0!==s.class&&h.push(s.class),this.is_admin)||(""!=(p=this.get_object_meta_value(this.form,"class_group_wrapper",""))&&h.push(p.trim()),""!=(p=this.get_object_meta_value(t,"class_group_wrapper",""))&&h.push(p.trim()));a&&void 0!==s.class_active&&h.push(s.class_active);var f=[];this.is_admin||!this.is_admin&&"on"==this.get_object_meta_value(t,"hidden","")&&f.push("data-wsf-group-hidden");n=r?s.mask_single:"#group",c={attributes:(f.length>0?" ":"")+f.join(" "),class:h.join(" "),column_count:e.WS_Form.settings_plugin.framework_column_count,data_id:t.id,data_group_index:i,group:u,id:this.form_id_prefix+"group-"+_,label:d};return(r?this.comment_html(this.language("comment_group")+": "+o):"")+this.mask_parse(n,c)+(r?this.comment_html(this.language("comment_group")+": "+o,!0):"")},e.WS_Form.prototype.get_sections_html=function(t){var a="",r=this.get_framework().sections[this.is_admin?"admin":"public"],i=(t.id,t.sections),s={};if("object"==typeof this.submit?void 0!==this.submit.section_repeatable&&(s=this.submit.section_repeatable):!1!==this.submit_auto_populate&&void 0!==this.submit_auto_populate.section_repeatable&&(s=this.submit_auto_populate.section_repeatable),void 0===i)return"";for(var _ in i)if(i.hasOwnProperty(_)){var o=i[_],l="section_"+o.id,n=!1!==s&&void 0!==s[l]&&void 0!==s[l].index?
7s[l].index:[!1];for(var c in n)if(n.hasOwnProperty(c)){var d=n[c];a+=this.get_section_html(o,d)}}var p=r.mask_wrapper,u={class:"wsf-sections",column_count:e.WS_Form.settings_plugin.framework_column_count,data_id:t.id,sections:a,id:this.form_id_prefix+"sections-"+t.id};return this.comment_html(this.language("comment_sections"))+this.mask_parse(p,u)+this.comment_html(this.language("comment_sections"),!0)},e.WS_Form.prototype.get_section_html=function(t,a){void 0===a&&(a=!1);var r=!1;if(!this.is_admin&&((r="on"==this.get_object_meta_value(t,"section_repeatable",""))&&!1===a)){a=0;do{a++}while(e("#"+this.form_id_prefix+"section-"+t.id+"-repeat-"+a).length)}var i="",s=this.get_framework().sections[this.is_admin?"admin":"public"],_=this.column_class_array(t);if(r&&!this.is_admin&&(i=this.attribute_modify(i,"data-repeatable","",!0),i=this.attribute_modify(i,"data-repeatable-index",a,!0)),void 0!==s.class_single&&(_=_.concat(s.class_single)),!this.is_admin){var o;""!=(o=this.get_object_meta_value(this.form,"class_section_wrapper",""))&&_.push(o.trim()),""!=(o=this.get_object_meta_value(t,"class_section_wrapper",""))&&_.push(o.trim());var l=this.get_object_meta_value(t,"class_single_vertical_align","");if(l){var n=this.get_field_value_fallback(!1,!1,"class_single_vertical_align");void 0!==n[l]&&_.push(n[l])}var c=this.get_object_meta_value(t,"validate_inline","");if(""!=c){var d=void 0!==this.framework.fields.public.class_form_validated?this.framework.fields.public.class_form_validated:[];switch(c){case"on":this.is_iterable(d)?_.push(...d):_.push(d);break;case"change_blur":i=this.attribute_modify(i,"data-wsf-section-validated-class",d.join(" "),!0)}}var p=this.get_object_meta_value(this.form,"conversational",!1),u=this.get_object_meta_value(t,"conversational_full_height_section",!1);p&&u&&_.push("wsf-form-conversational-section-full-height")}var h=this.esc_html(t.label);if(this.is_admin||"on"==this.get_object_meta_value(t,"label_render","on"))var f=this.is_admin?"":this.get_object_meta_value(this.form,"label_mask_section",""),m=""!=f?f:void 0!==s.mask_label?s.mask_label:"",v={label:h},b=this.mask_parse(m,v);else b="";if(!this.is_admin){"on"==this.get_object_meta_value(t,"disabled_section","")&&(i=this.attribute_modify(i,"disabled","",!0),i=this.attribute_modify(i,"aria-disabled","true",!0)),"on"==this.get_object_meta_value(t,"hidden_section","")&&(i=this.attribute_modify(i,"style","display: none;",!0),i=this.attribute_modify(i,"aria-live","polite",!0),i=this.attribute_modify(i,"aria-hidden","true",!0));var g=this.get_object_meta_value(t,"aria_label","");""==g&&(g=t.label),i=this.attribute_modify(i,"aria-label",g,!0),i=this.custom_attributes(i,t,"section",a)}var y=this.get_fields_html(t,a);m=s.mask_single,v={attributes:(i?" ":"")+i,class:_.join(" "),column_count:e.WS_Form.settings_plugin.framework_column_count,data_id:t.id,id:this.form_id_prefix+"section-"+t.id+(a?"-repeat-"+a:""),label:b,section:y,section_id:e.WS_Form.settings_plugin.helper_section_id?'<span class="wsf-section-id">'+this.language("id")+": "+t.id+"</span>":""};return this.comment_html(this.language("comment_section")+": "+h)+this.mask_parse(m,v)+this.comment_html(this.language("comment_section")+": "+h,!0)},e.WS_Form.prototype.custom_attributes=function(e,t,a,r){var i=this.get_object_meta_value(t,"custom_attributes",!1);if(!1!==i&&"object"==typeof i&&i.length>0)for(var s in"field"!=a&&(t=!1),i)if(i.hasOwnProperty(s)){var _=i[s];""!=_.custom_attribute_name&&(_.custom_attribute_value=this.parse_variables_process(_.custom_attribute_value,r,!1,t).output,e=this.attribute_modify(e,_.custom_attribute_name,_.custom_attribute_value,!0))}return e},e.WS_Form.prototype.get_fields_html=function(t,a){var r="on"==this.get_object_meta_value(t,"section_repeatable","");void 0===a&&(a=!!r&&0);var i="",s=this.get_framework().fields[this.is_admin?"admin":"public"],_=(t.id,t.fields),o=this.esc_html(t.label);if(!this.is_admin&&"on"==this.get_object_meta_value(t,"label_render","on"))var l=this.is_admin?"":this.get_object_meta_value(this.form,"label_mask_section",""),n=""!=l?l:void 0!==s.mask_wrapper_label?s.mask_wrapper_label:"",c={label:o},d=this.mask_parse(n,c);else d="";if(void 0===_)return"";for(var p in _)if(_.hasOwnProperty(p)){var u=_[p];i+=this.get_field_html(u,a)}n=s.mask_wrapper,c={column_count:e.WS_Form.settings_plugin.framework_column_count,data_id:t.
7id,fields:i,id:this.form_id_prefix+"fields-"+t.id,label:d};return this.comment_html(this.language("comment_fields"))+this.mask_parse(n,c)+this.comment_html(this.language("comment_fields"),!0)},e.WS_Form.prototype.get_summary_html=function(e,t,a){if(void 0===e)return"";void 0===t&&(t=!1),void 0===a&&(a=[]);var r=parseInt(this.get_object_meta_value(t,"summary_heading_level","2"),10);(r<1||r>6)&&(r=2);var i=this.get_summary_html_groups(e.groups,t,r);return i&&(i=this.get_summary_label(i,e,"form",t,r)),i?'<div class="wsf-summary" role="region" '+this.get_summary_label_aria(e,"form",t)+">\n\n"+i+"</div>\n":""},e.WS_Form.prototype.get_summary_html_groups=function(e,t,a){var r="";if(void 0===e)return"";var i=Object.keys(e).length;for(var s in i>1&&a++,e)if(e.hasOwnProperty(s)){var _=e[s];if(void 0!==_.sections){var o=this.get_summary_html_sections(_.sections,t,a+1);o&&(i>1?(o=this.get_summary_label(o,_,"group",t,a),r+='<div class="wsf-summary-group-wrapper" role="group" '+this.get_summary_label_aria(_,"group",t)+">\n\n"+o+"</div>\n\n"):r+=o)}}return i>1?r?'<div class="wsf-summary-groups-wrapper">\n\n'+r+"</div>\n\n":"":r},e.WS_Form.prototype.get_summary_html_sections=function(e,t,a){var r="";if(void 0===e)return"";for(var i in t.class_fields_wrapper=this.get_summary_fields_wrapper_class(t),t.class_field_wrapper=this.get_summary_field_wrapper_class(t),e)if(e.hasOwnProperty(i)){var s=e[i];if(void 0!==s.fields){var _=this.get_summary_html_fields(s.fields,s,t);if(_)_=this.get_summary_label(_,s,"section",t,a),r+='<div class="wsf-summary-section-wrapper'+("on"==this.get_object_meta_value(s,"section_repeatable","on")?" wsf-summary-section-repeatable":"")+'" role="group" '+this.get_summary_label_aria(s,"section",t)+">\n\n"+_+"</div>\n\n"}}return r?'<div class="wsf-summary-sections-wrapper">\n\n'+r+"</div>\n\n":""},e.WS_Form.prototype.get_summary_html_fields=function(t,a,r){var i="";if(void 0===t)return"";var s="on"==this.get_object_meta_value(a,"section_repeatable","on"),_=[],o=r.id,l="on"==this.get_object_meta_value(r,"summary_field_if","on"),n="on"==this.get_object_meta_value(r,"summary_repeater_table","on"),c="on"==this.get_object_meta_value(r,"summary_repeater_table_row_number","on");if(s&&n&&c)var d="<th>#</th>\n",p="<td>#section_row_number</td>\n";else d="",p="";var u=this.get_object_meta_value(r,"summary_field_ids_exclude",[]);if(u){_=[];for(var h in u)if(u.hasOwnProperty(h)){var f=u[h];f.ws_form_field&&_.push(parseInt(f.ws_form_field,10))}}var m=0;for(var v in t)if(t.hasOwnProperty(v)){var b=t[v],g=parseInt(b.id,10);if(g!=o){var y=b.type;if(!["hidden","meter","progress","signature"].includes(y)&&!_.includes(g)){var w=e.WS_Form.field_type_cache[y];if(void 0!==w.text_out&&w.text_out){if(s&&n)d+='<th scope="col">#field_label('+this.esc_attr(g)+")</th>\n",p+="<td>#text(#field("+this.esc_attr(g)+"))</td>\n";else{var k='<dl class="'+this.esc_attr(r.class_field_wrapper)+'"><dt class="wsf-summary-field-label">#field_label('+this.esc_attr(g)+')</dt><dd class="wsf-summary-field-value">#text(#field('+this.esc_attr(g)+"))</dd></dl>";l&&(k="#if(#field("+this.esc_attr(g)+"))"+k+"#endif"),i+=k+="\n\n"}m++}}}}if(m)if(s&&n){d="<tr>\n"+d+"</tr>\n\n",p="<tr>\n"+p+"</tr>",s&&(p="#section_rows_start("+a.id+")\n"+p+"\n#section_rows_end"),p+="\n\n";var x=this.get_summary_label_render(a,"section",r);if(x)var j="wsf-summary-section-label-"+(this.is_admin?"":this.form_instance_id+"-")+a.id;i='<table role="table" '+(x?'aria-labelledby="'+this.esc_attr(j)+'"':'aria-label="'+this.esc_attr(a.label)+'"')+">\n\n<thead>\n\n"+d+"</thead>\n\n<tbody>\n\n"+p+"</tbody>\n\n</table>\n\n"}else i='<div class="'+this.esc_attr(r.class_fields_wrapper)+'">\n\n'+i+"</div>",s&&(i="#section_rows_start("+a.id+")\n"+i+"\n#section_rows_end"),i+="\n\n";return i},e.WS_Form.prototype.get_summary_fields_wrapper_class=function(e){var t=["wsf-summary-fields-wrapper"];switch(this.get_object_meta_value(e,"orientation",!1)){case"grid":var a=this.get_field_value_fallback(e.type,"top","class_orientation_wrapper",[],!1,!0);"object"==typeof a&&(t=t.concat(a))}switch(this.get_object_meta_value(e,"summary_field_orientation","")){case"horizontal":t.push("wsf-summary-field-orientation-horizontal")}return t.join(" ")},e.WS_Form.prototype.get_summary_field_wrapper_class=function(e){var t=["wsf-summary-field-wrapper"];switch(this.get_object_meta_value(e,"orientation","")){case"horizontal":var a=this.get_field_value_fallback(e.type,"top","class_inline",!1,!1,!1);"object"==typeof a&&(t=t.concat(a));break;
7case"grid":var r=this.get_field_value_fallback(e.type,"top","class_orientation_row",[],!1,!0);"object"==typeof r&&(t=t.concat(r));var i=this.column_class_array(e,"orientation_breakpoint");"object"==typeof i&&(t=t.concat(i))}return t.join(" ")},e.WS_Form.prototype.get_summary_label_render=function(e,t,a){var r=this.get_object_meta_value(a,"summary_label_"+t,"on");return"on"==r||"auto"==r&&"on"==this.get_object_meta_value(e,"label_render","on")&&e.label},e.WS_Form.prototype.get_summary_label=function(e,t,a,r,i){return this.get_summary_label_render(t,a,r)&&(e="<h"+i+' id="'+this.esc_attr(this.get_summary_label_id(t,a))+'" class="wsf-summary-'+a+'-label">'+this.esc_html(t.label)+"</h"+i+">\n\n"+e),e},e.WS_Form.prototype.get_summary_label_aria=function(e,t,a){return this.get_summary_label_render(e,t,a)?'aria-labelledby="'+this.esc_attr(this.get_summary_label_id(e,t))+'"':'aria-label="'+this.esc_attr(e.label)+'"'},e.WS_Form.prototype.get_summary_label_id=function(e,t){return"wsf-summary-"+t+"-label-"+(this.is_admin?"":this.form_instance_id+"-")+e.id},e.WS_Form.prototype.value_populate_process=function(t,a){if(null===t)return"";switch(a.type){case"datetime":return"function"==typeof this.get_date_b
7y_type?this.get_date_by_type(t,a):"";case"select":case"checkbox":case"radio":case"price_select":case"price_checkbox":case"price_radio":return Array.isArray(t)?t.map(function(e){return e?e.toString():""}):t;case"quantity":var r=e.WS_Form.settings_plugin.price_decimal_separator;return"."!==r&&-1!==t.indexOf(r)&&(t=this.get_number(t)),t;default:return this.esc_html(t)}},e.WS_Form.prototype.get_field_html=function(t,a){void 0===a&&(a=!1);var r=[];!1!==a&&r.push('data-repeatable-index="'+this.esc_attr(a)+'"');var i=this.get_framework().fields[this.is_admin?"admin":"public"];this.is_admin||"on"==this.get_object_meta_value(t,"hidden","")&&r.push('style="display: none;" aria-live="polite" aria-hidden="true"');var s=this.column_class_array(t),_=this.get_object_meta_value(t,"sub_type",!1);""==_&&(_=!1);var o=this.get_field_value_fallback(t.type,!1,"class_single",!1,i,_);if(!1!==o&&(s=s.concat(o)),!this.is_admin){var l;""!=(l=this.get_object_meta_value(this.form,"class_field_wrapper",""))&&s.push(l.trim()),""!=(l=this.get_object_meta_value(t,"class_field_wrapper",""))&&s.push(l.trim());var n=this.get_object_meta_value(t,"class_single_vertical_align","");if(n){var c=this.get_field_value_fallback(t.type,!1,"class_single_vertical_align",!1,i,_);void 0!==c[n]&&s.push(c[n])}var d=this.get_object_meta_value(t,"validate_inline","");if(""!=d){var p=void 0!==this.framework.fields.public.class_form_validated?this.framework.fields.public.class_form_validated:[];switch(d){case"on":this.is_iterable(p)?s.push(...p):s.push(p);break;case"change_blur":r.push('data-wsf-field-validated-class="'+p.join(" ")+'"')}}}var u=!1!==a?"_"+a:"",h=ws_form_settings.field_prefix+t.id+u;if("object"==typeof this.submit){if(void 0!==this.submit.meta&&void 0!==this.submit.meta[h]&&void 0!==this.submit.meta[h].value&&null!==this.submit.meta[h].value){var f=this.submit.meta[h].value;f=this.value_populate_process(f,t)}}else if(!1!==this.submit_auto_populate&&void 0!==this.submit_auto_populate.data&&void 0!==this.submit_auto_populate.data[h]&&null!==this.submit_auto_populate.data[h]){f=this.submit_auto_populate.data[h];f=this.value_populate_process(f,t)}var m=this.is_admin?"":this.get_field_html_single(t,f,!1,a),v=this.esc_html(t.label);if(void 0===e.WS_Form.field_type_cache[t.type])return"";var b=e.WS_Form.field_type_cache[t.type];if(void 0!==b.pro_required&&b.pro_required)return"";var g=!this.is_admin&&(void 0!==b.mask_wrappers_drop&&b.mask_wrappers_drop);if("recaptcha"!=t.type||this.is_admin||"invisible"!=this.get_object_meta_value(t,"recaptcha_recaptcha_type","default")||(g=!0),"hcaptcha"!=t.type||this.is_admin||"invisible"!=this.get_object_meta_value(t,"hcaptcha_type","default")||(g=!0),g)var y="#field";else y=this.get_field_value_fallback(t.type,!1,"mask_single",!1,i,_);switch(t.type){case"checkbox":case"price_checkbox":var w=this.get_object_meta_value(t,"checkbox_min",!1),k=this.get_object_meta_value(t,"checkbox_max",!1),x=this.get_object_meta_value(t,"select_all",!1);if(!1===w&&!1===k)break;!1!==w&&(w=parseInt(w,10))>0&&r.push('data-checkbox-min="'+this.esc_attr(w)+'"'),!1===k||x||(k=parseInt(k,10))>=0&&r.push('data-checkbox-max="'+this.esc_attr(k)+'"');break;case"select":case"price_select":var j=this.get_object_meta_value(t,"select_min",!1),S=this.get_object_meta_value(t,"select_max",!1);if(!1===j&&!1===S)break;!1!==j&&(j=parseInt(j,10))>0&&r.push('data-select-min="'+this.esc_attr(j)+'"'),!1!==S&&(S=parseInt(S,10))>=0&&r.push('data-select-max="'+this.esc_attr(S)+'"')}var F={attributes:(r.length>0?" ":"")+r.join(" "),class:s.join(" "),data_id:t.id,field:m,id:this.get_part_id(t.id,a,"field-wrapper"),type:t.type};return this.comment_html(this.language("comment_field")+": "+v)+this.mask_parse(y,F)+this.comment_html(this.language("comment_field")+": "+v,!0)},e.WS_Form.prototype.field_type_cache_build=function(){if(this.is_admin||(e.WS_Form.field_type_cache=e.WS_Form.field_types),e.WS_Form.field_type_cache.length>0)return!0;for(var t in e.WS_Form.field_types){var a=e.WS_Form.field_types[t].types;for(var r in a)e.WS_Form.field_type_cache[r]=a[r]}},e.WS_Form.prototype.esc_html=function(e,t){if("string"!=typeof e)return e;switch(void 0===t&&(t=!1),typeof e){case"string":e=this.esc_html_do(e,t);break;case"object":for(var a in e)e.hasOwnProperty(a)&&"string"==typeof e[a]&&(e[a]=this.esc_html_do(e[a],t))}return e},e.WS_Form.prototype.esc_html_do=function(e,t){void 0===t&&(t=!1);var a=this.replace_all(e,"&","&");return a=this.replace_all(a,"<","<"),a=this.replace_all(a,">",">"),a=this.replace_all(a,'"',"""),t&&(a=this.replace_all(a,"\n"," ")),a},e.WS_Form.prototype.esc_html_undo=function(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent},e.WS_Form.prototype.esc_attr=function(e,t){if("string"!=typeof e)return e;void 0===t&&(t=!1);var a=this.replace_all(e,"&","&");return a=this.replace_all(a,"<","<"),a=this.replace_all(a,">",">"),a=this.replace_all(a,"'","'"),a=this.replace_all(a,'"',"""),t&&(a=this.replace_all(a,"\n"," ")),a},e.WS_Form.prototype.esc_url=function(e){try{if(e=decodeURIComponent(e),/^#[a-zA-Z0-9\-]+$/.test(e))return e;var t="",a=e.indexOf("#");-1!==a&&(t=e.substring(a),e=e.substring(0,a)),/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||(e="https://"+e);
7var r=new URL(e);if(!["http","https","ftp","mailto","tel"].includes(r.protocol.replace(":","")))return"";for(var i of[/javascript:/i,/data:/i,/vbscript:/i,/file:/i,/<.*?>/i,/%00/i,/(\.\.\/|\.\\)/i,/(redirect|url|next)=http/i,/(%25)+/i])if(i.test(e))return"";return r.toString()+t}catch(e){return""}},e.WS_Form.prototype.esc_selector=function(e){if("string"!=typeof e)return e;var t=this.replace_all(e,'"','\\"');return t=this.replace_all(t,"'","\\'"),t=this.replace_all(t,"[","\\["),t=this.replace_all(t,"]","\\]"),t=this.replace_all(t,",","\\,"),t=this.replace_all(t,"=","\\=")},e.WS_Form.prototype.html_strip=function(e){switch(typeof e){case"string":e=this.html_strip_do(e);break;case"object":for(var t in e)e.hasOwnProperty(t)&&"string"==typeof e[t]&&(e[t]=this.html_strip_do(e[t]))}return e},e.WS_Form.prototype.html_strip_do=function(e){return this.esc_html(e.replace(/<[^>]*>/g,""))},e.WS_Form.prototype.js_string_encode=function(e){return"string"!=typeof e?e:this.replace_all(e,"'","\\'")},e.WS_Form.prototype.loader_on=function(){e("#wsf-loader").addClass("wsf-loader-on")},e.WS_Form.prototype.loader_off=function(){e("#wsf-loader").removeClass("wsf-loader-on")},e.WS_Form.prototype.comment_html=function(e,t){return void 0===t&&(t=!1),"\x3c!-- "+(t?"/":"")+e+" --\x3e\n"+(t?"\n":"")},e.WS_Form.prototype.comment_css=function(e){return"\t/* "+e+" */\n"},e.WS_Form.prototype.get_object_value=function(e,t,a){return void 0===a&&(a=!1),void 0===e?a:void 0===e[t]?a:e[t]},e.WS_Form.prototype.get_field_value_fallback=function(e,t,a,r,i,s){if(void 0===r&&(r=!1),i||(i=this.framework_fields),void 0===s&&(s=!1),!1===s)return this.get_field_value_fallback_process(e,t,a,r,i);if((_=this.get_field_value_fallback_process(e,t,a+"_"+s,r,i))===r)var _=this.get_field_value_fallback_process(e,t,a,r,i);return _},e.WS_Form.prototype.get_field_value_fallback_process=function(t,a,r,i,s){var _=s,o=e.WS_Form.field_type_cache[t];if(!1!==a){if(!(void 0===_||void 0===_[a]||void 0===_[a].field_types||void 0===_[a].field_types[t]||void 0===_[a].field_types[t][r]))return _[a].field_types[t][r];if(!(void 0===_||void 0===_[a]||void 0===_[a][r]))return _[a][r]}return void 0===_||void 0===_.field_types||void 0===_.field_types[t]||void 0===_.field_types[t][r]?void 0===_||void 0===_[r]?void 0===o?i:void 0===o[r]?i:o[r]:_[r]:_.field_types[t][r]},e.WS_Form.prototype.get_object_data=function(e,t,a){switch(void 0===a&&(a=!1),e){case"form":return a?this.object_data_scratch:this.form;case"group":return a?this.object_data_scratch:this.group_data_cache[t];case"section":return a?this.object_data_scratch:this.section_data_cache[t];case"field":return a?this.object_data_scratch:this.field_data_cache[t];case"conditional":return this.conditional;case"action":return this.action}return!1},e.WS_Form.prototype.get_object_meta=function(t,a){switch(t){case"form":var r=e.WS_Form.settings_form.sidebars.form.meta;break;case"group":r=e.WS_Form.settings_form.sidebars.group.meta;break;case"section":r=e.WS_Form.settings_form.sidebars.section.meta;break;case"field":var i=this.field_data_cache[a];r=e.WS_Form.field_type_cache[i.type]}return r},e.WS_Form.prototype.get_object_meta_value=function(e,t,a,r,i){if(void 0===a&&(a=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===e)return a;
7if(void 0===e.meta)return a;if(void 0===e.meta[t]){if(!r)return a;this.set_object_meta_value(e,t,a)}return i&&"string"==typeof e.meta[t]?this.parse_variables_process(e.meta[t]).output:e.meta[t]},e.WS_Form.prototype.has_object_meta_key=function(e,t){return void 0!==e&&void 0!==e.meta&&void 0!==e.meta[t]&&""!=e.meta[t]},e.WS_Form.prototype.parse_variables_process=function(t,a,r,i,s,_,o,l,n,c){var d=this;if("string"!=typeof t)return this.parse_variables_process_error(t);if(-1==t.indexOf("#"))return this.parse_variables_process_error(t);void 0===a&&(a=!1),void 0===r&&(r=!1);var p="calc"===r;void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===_&&(_=!0),void 0===o&&(o=!1),void 0===l&&(l=1),void 0===n&&(n=t),void 0===c&&(c=i);var u={},h={},f=[];if(l>100)return this.error("error_parse_variable_syntax_error_depth","","error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_depth"));for(var m in e.WS_Form.parse_variables)if(e.WS_Form.parse_variables.hasOwnProperty(m)){var v=e.WS_Form.parse_variables[m],b=!1;for(var g in v.var_lookups)if(v.var_lookups.hasOwnProperty(g)&&-1!==t.indexOf(v.var_lookups[g])){b=!0;break}if(b)for(var y in v.variables)if(v.variables.hasOwnProperty(y)&&-1!==t.indexOf("#"+y)){var w=v.variables[y],k=void 0!==w.value&&w.value,x="object"==typeof w.attributes&&w.attributes,j=void 0!==w.single_parse&&w.single_parse;if(!1!==x||!1===k){if(("object"==typeof w.attributes?w.attributes.length:0)>0){var S=0;do{var F=t.indexOf("#"+y,S);if(-1!==F){var W=-1,O=-1,M=t.substring(F+y.length+1);if("("===M.substring(0,1)&&(W=F+y.length+1,-1!==(O=this.get_bracket_finish_index(M))&&(O+=W)),-1===W||-1===O){S+=y.length+1,N="#"+y;var P=[]}else{S=O;var I=t.substr(W+1,O-1-W),N=t.substr(F,O+1-F),z=void 0!==w.attribute_separator?w.attribute_separator:",";P=this.string_to_attributes(I,z)}for(var D in x)if(x.hasOwnProperty(D)){var q=x[D],T=q.id,C=void 0!==P[D];if((void 0===q.required||q.required)&&!C)return this.error("error_parse_variable_syntax_error_attribute","#"+y+" (Expected "+T+")","error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_attribute","#"+y+" (Expected "+T+")"));var $=void 0!==q.default&&q.default;if(!1===$||C||(P[D]=$),void 0===q.trim||q.trim){var A=P[D];"string"==typeof A&&(P[D]=A.trim())}var E=void 0!==q.valid&&q.valid;if(!1!==E&&!E.includes(P[D]))return this.error("error_parse_variable_syntax_error_attribute_invalid","#"+y+" (Expected "+E.join(", ")+")","error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_attribute_invalid","#"+y+" (Expected "+E.join(", ")+")"))}var Y="",U=!0;switch(y){case"calc":case"text":switch(U=!1,r=y){case"calc":var R=(xt=this.parse_variables_process(P[0],a,"calc",i,s,_,o,l+1,n,c)).output;"object"==typeof xt.fields&&(f=f.concat(xt.fields)),Y=this.calc_string(R,n,!1,c,s);break;case"text":R=(xt=this.parse_variables_process(P[0],a,"text",i,s,_,o,l+1,n,c)).output;"object"==typeof xt.fields&&(f=f.concat(xt.fields)),Y=R}if(void 0===e.WS_Form.field_type_cache[i.type])break;var J=e.WS_Form.field_type_cache[i.type],L=void 0!==J[r+"_in"]&&J[r+"_in"];if(!1!==i&&void 0!==i&&!p&&_&&("field_label"==s||"field_help"==s||L)){var H=xt.fields,Z=[],B=[];for(var G in H)if(H.hasOwnProperty(G)){var Q=H[G];-1===B.indexOf(Q)&&(B.push(Q),Z.push(Q))}var K={field:c,field_part:s,type:r,value:n,field_ids_touched:Z,section_repeatable_index:a},V=!1;for(var X in this.calc)if(this.calc.hasOwnProperty(X)){var ee=this.calc[X];ee.field===c&&ee.field_part===s&&ee.value===n&&ee.section_repeatable_index===a&&(this.calc[X].field_ids_touched=this.calc[X].field_ids_touched.concat(Z),this.calc[X].field_ids_touched=this.calc[X].field_ids_touched.filter(function(e,t,a){return a.indexOf(e)===t}),1===l&&(this.calc[X].type=r),V=!0)}V||(this.calc.push(K),this.calc.sort(function(e,t){var a=["field_placeholder","field_min","field_max","field_ecommerce_price_min","field_ecommerce_price_max"],r=a.indexOf(e.field_part),i=a.indexOf(t.field_part);return r===i?0:r<i?1:-1}),this.calc.sort(function(e,t){return e.section_repeatable_index===t.section_repeatable_index?0:e.section_repeatable_index<t.section_repeatable_index?1:-1}),ws_form_settings.debug&&"field_value"===s&&this.debug_field_id_bypass.push(i.id))}break;case"section_rows_start":if(isNaN(P[0]))break;var te=this.closing_string_index(t,"#section_rows_end","#section_rows_start",O);if((o=parseInt(P[0],10))<=0)break;var ae=t.substring(O+1,O+1+(te-(O+1))),re="section_"+o.toString(),ie=!1!==this.section_repeatable_indexes&&void 0!==this.section_repeatable_indexes[re]&&this.section_repeatable_indexes[re],se="";if(!1===ie)continue;for(var _e in ie)if(ie.hasOwnProperty(_e)){var oe=ie[_e];se+=(xt=this.parse_variables_process(ae,oe,!1,i,s,!1,o,l)).output}t=t.substring(0,F)+se+t.substring(te+17),S=0;break;case"if":var le=this.closing_string_index(t,"#endif","#if",O);if(-1===le)return this.error("error_parse_variable_syntax_error_endif",I,"parse_variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_endif",I));var ne=["==","!=",">",">=","<=","<","^=","$=","!^=","!$=","*=","!*="],ce=["&&","||"],de=[],pe=0,ue=0;for(var he in P)if(P.hasOwnProperty(he)){var fe=P[he];if(0===ue&&(de[pe]={value_a:"",operator:"!=",value_b:""}),1!=ue&&3!=ue||(fe=this.replace_all(fe,"&","&"),fe=this.replace_all(fe,"<","<"),fe=this.replace_all(fe,">",">")),0==ue||2==ue)"string"!=typeof(fe=I=(xt=this.parse_variables_process(fe,a,!1,i,s,_,o,l+1,n,c)).output)||""===fe||isNaN(fe)||(fe=parseFloat(fe));1==ue&&-1!==ce.indexOf(fe)&&(ue=3);var me=!1;switch(ue){case 0:case 2:me=0==ue?"value_a":"value_b",de[pe][me]=fe,de[pe][me+"_string"]=I;break;case 1:if(-1===ne.indexOf(fe))return this.error("error_parse_variable_syntax_error_operator",I,"parse_variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_operator",I));de[pe].operator=fe;break;case 3:if(-1===ce.indexOf(fe))return this.error("error_parse_variable_syntax_error_logic",I,"parse_variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_logic",I));de[pe].logic_next=fe}++ue>3&&(ue=0,pe++)}var ve=!1,be="&&";for(var pe in de)if(de.hasOwnProperty(pe)){var ge=de[pe],ye=!1;switch(ge.operator){case"==":ye=ge.value_a==ge.value_b;break;case"!=":ye=ge.value_a!=ge.value_b;break;case"<":ye=ge.value_a<ge.value_b;break;case">":ye=ge.value_a>ge.value_b;break;case"<=":ye=ge.value_a<=ge.value_b;break;case">=":ye=ge.value_a>=ge.value_b;break;case"*=":ye=""!==ge.value_b_string&&-1!==ge.value_a_string.indexOf(ge.value_b_string);break;case"!*=":ye=""!==ge.value_b_string&&-1===ge.value_a_string.indexOf(ge.value_b_string);break;case"^=":ye=""!==ge.value_b_string&&0===ge.value_a_string.indexOf(ge.value_b_string);break;case"!^=":ye=""!==ge.value_b_string&&ge.value_a_string.indexOf(ge.value_b_string)>0;break;case"$=":ye=""!==ge.value_b_string&&ge.value_a_string.indexOf(ge.value_b_string)===ge.value_a_string.length-ge.value_b_string.length;break;case"!$=":ye=""!==ge.value_b_string&&ge.value_a_string.indexOf(ge.value_b_string)!==ge.value_a_string.length-ge.value_b_string.length}ve=0==pe?ye:"&&"==be?ve&&ye:ve||ye,be=void 0!==ge.logic_next?ge.logic_next:"&&"}Y=!1,t=ve?(t=t.substring(0,le)+t.substring(le+6)).substring(0,F)+t.substring(O+1):t.substring(0,F)+t.substring(le+6),S=0;break;case"tab_label":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_group_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_group_id",P[0]));var we=parseInt(P[0],10);if(void 0===this.group_data_cache[we]||void 0===this.group_data_cache[we].label)return this.error("error_parse_variable_syntax_error_group_id",we,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_group_id",we));Y=this.group_data_cache[we].label;break;case"section_label":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_section_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_section_id",P[0]));var ke=parseInt(P[0],10);if(void 0===this.section_data_cache[ke]||void 0===this.section_data_cache[ke].label)return this.error("error_parse_variable_syntax_error_section_id",ke,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_section_id",ke));Y=this.section_data_cache[ke].label;break;case"cookie_get":Y=this.cookie_get_raw(P[0]);break;case"session_storage_get":Y=this.session_storage_get_raw(P[0]);break;case"local_storage_get":Y=this.local_storage_get_raw(P[0]);break;case"field_label":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_field_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",P[0]));var xe=parseInt(P[0],10);if(void 0===this.field_data_cache[xe]||void 0===this.field_data_cache[xe].label)return this.error("error_parse_variable_syntax_error_field_id",xe,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",xe));Y=this.field_data_cache[xe].label;break;case"field_min_id":case"field_max_id":case"field_min_value":case"field_max_value":case"field_min_label":case"field_max_label":for(var je=0,Se=0,Fe="",We=0,Oe=0,Me="",Pe=0,Ie=void 0!==i.section_repeatable_section_id&&parseInt(i.section_repeatable_section_id,10);!isNaN(P[Pe]);){if(xe=parseInt(P[Pe],10)){if(f.push(xe),"object"==typeof this.field_data_cache[xe]){var Ne=this.field_data_cache[xe],ze=this.get_field_value(Ne,Je);ze="object"==typeof ze&&void 0!==ze[0]?this.get_number(ze[0],0,!0):0;var De=Ne.label;0==Pe?(We=je=xe,Oe=Se=ze,Me=Fe=De):(ze<Se&&(je=xe,Se=ze,Fe=De),ze>Oe&&(We=xe,Oe=ze,Me=De)),Pe++}}else Pe++}switch(y){case"field_min_id":Y=je;break;case"field_max_id":Y=We;break;case"field_min_value":Y=Se;break;case"field_max_value":Y=Oe;break;case"field_min_label":Y=Fe;break;case"field_max_label":Y=Me}break;case"date_format":var qe=this.parse_variables_process(P[0],a,r,$e,s,_,o,l).output,Te=this.parse_variables_process(P[1],a,r,$e,s,_,o,l).output,Ce=new Date(qe);if(isNaN(Ce.getTime()))return this.error("error_parse_variable_syntax_error_date_format",qe,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_date_format",qe));Y=this.date_format(Ce,Te);break;case"field":case"field_float":case"field_date_format":case"field_date_offset":case"field_count_word":case"field_count_char":case"ecommerce_field_price":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_field_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",P[0]));xe=parseInt(P[0],10);if(("field_value"===s||!1===s)&&xe===parseInt(c.id,10))return this.error("error_parse_variable_syntax_error_self_ref",N,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_self_ref",N));if(void 0===this.field_data_cache[xe])return this.error("error_parse_variable_syntax_error_field_id",xe,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",xe));i.id===c.id&&f.push(xe);var $e=this.field_data_cache[xe];if(void 0===e.WS_Form.field_type_cache[$e.type])break;var Ae=e.WS_Form.field_type_cache[$e.type];if(!1!==r)if(!(Ae[r+"_out"],Ae[r+"_out"]))return this.error("error_parse_variable_syntax_error_"+r+"_out",$e.label+" (ID: "+$e.id+")","error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_"+r+"_out",$e.label+" (ID: "+$e.id+")"));var Ee=(Ae.static,Ae.static);if(Ee){if(!0===Ee)var Ye=void 0!==Ae.mask_field_static?Ae.mask_field_static:"";else{Ye=this.get_object_meta_value($e,Ee,"");this.wpautop_parse_variable($e,Ae)&&(Ye=this.wpautop(Ye),U=!1)}"object"==typeof(xt=this.parse_variables_process(Ye,a,r,$e,s,_,o,l+1,n,c)).fields&&(f=f.concat(xt.fields)),Y=[xt.output];break}var Ue=void 0!==Ae.submit_array&&Ae.submit_array,Re=void 0!==$e.section_repeatable_section_id&&parseInt($e.section_repeatable_section_id,10),Je=(Ie=void 0!==i.section_repeatable_section_id&&parseInt(i.section_repeatable_section_id,10),a),Le=(Y=!1,void 0!==P[1]?P[1]:","),He=void 0!==P[2]&&P[2];if(!1!==Je&&Re===o||!1!==Re&&!1!==Ie)Y=this.get_field_value($e,Je,Ue,He);if(!1===Y&&!1!==Re&&!1===Ie)Y=this.get_field_value($e,!0,Ue,He);if(!1===Y&&!1===Re)Y=this.get_field_value($e,!1,Ue,He);if(!1===Y)switch($e.type){case"price_select":case"price_checkbox":case"price_radio":case"select":case"checkbox":case"radio":var Ze=this.get_data_source($e);Y=!1!==Ze.default_value?Ze.default_value:[];break;default:var Be=this.get_object_meta_value($e,"default_value","");"object"==typeof(xt=this.parse_variables_process(Be,a,r,$e,s,_,o,l+1,n,c)).fields&&(f=f.concat(xt.fields)),Y=[xt.output]}switch(y){case"field":!1!==He&&(Y=this.get_data_grid_column(Y,$e,He));break;case"field_count_char":case"field_count_word":var Ge="object"==typeof Y?Y.join(Le):"";if(void 0!==P[1]){var Qe=/\/(.*)\/(.*)/.exec(P[1]);Ge=Ge.replace(new RegExp(Qe[1],Qe[2]),"")}Y=["field_count_char"==y?Ge.length:this.get_word_count(Ge)]}if(p)if(Y.length)switch($e.type){case"price_select":case"price_checkbox":case"price_radio":case"price":case"price_subtotal":case"cart_price":case"cart_total":var Ke=0;for(var Ve in Y)Y.hasOwnProperty(Ve)&&(Ke+=this.get_number(Y[Ve],0,!0));var Xe=parseInt(e.WS_Form.settings_plugin.price_decimals,10);Y=this.get_number(Ke,0,!1,Xe);break;case"datetime":if(""===Y[0]){Y="";break}var et=this.get_object_meta_value($e,"input_type_datetime","date");(at=this.get_object_meta_value($e,"format_date",ws_form_settings.date_format))||(at=ws_form_settings.date_format);var tt=this.get_date(Y[0],et,at);Y=this.get_number(tt.getTime())/1e3;break;default:Ke=0;for(var Ve in Y)Y.hasOwnProperty(Ve)&&(Ke+=d.get_number(Y[Ve],0,!1));Y=Ke}else Y=0;else Y=(Y=e.map(Y,function(e){return d.esc_html(e)}
7)).join(Le),U=!1;switch(y){case"ecommerce_field_price":Y=this.get_price(this.get_number(Y));break;case"field_date_format":if("datetime"!==$e.type)return this.error("error_parse_variable_syntax_error_field_date_offset",xe,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_date_offset",xe));qe=this.parse_variables_process(Y,a,r,$e,s,_,o,l).output;if((rt=this.get_object_meta_value($e,"format_date",ws_form_settings.date_format))||(rt=ws_form_settings.date_format),this.is_integer(qe))Ce=new Date(1e3*parseInt(qe,10));else{et=this.get_object_meta_value($e,"input_type_datetime","date");Ce=this.get_date(qe,et,rt)}if(!1!==Ce&&!isNaN(Ce.getTime())){if(void 0!==P[1]&&""!=P[1])var at=P[1];else at=rt;at||(at=ws_form_settings.date_format),Y="function"==typeof this.date_format?this.date_format(Ce,at):""}break;case"field_date_offset":if("datetime"!==$e.type)return this.error("error_parse_variable_syntax_error_field_date_offset",xe,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_date_offset",xe));var rt;qe=this.parse_variables_process(Y,a,r,$e,s,_,o,l).output;if((rt=this.get_object_meta_value($e,"format_date",ws_form_settings.date_format))||(rt=ws_form_settings.date_format),this.is_integer(qe))Ce=new Date(1e3*parseInt(qe,10));else{et=this.get_object_meta_value($e,"input_type_datetime","date");Ce=this.get_date(qe,et,rt)}if(!1!==Ce&&!isNaN(Ce.getTime())){if((ht=parseInt(this.parse_variables_process(P[1],a,r,i,s,_,o,l).output,10))&&Ce.setSeconds(Ce.getSeconds()+ht),void 0!==P[2]&&""!=P[2])at=P[2];else at=rt;at||(at=ws_form_settings.date_format),Y="function"==typeof this.date_format?this.date_format(Ce,at):""}break;case"field_float":Y=this.get_number(Y)}"field"===y&&this.wpautop_parse_variable($e,Ae)&&(Y=this.wpautop(Y),U=!1);break;case"ecommerce_price":"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));var it=this.calc_string(xt.output,n,!1,c,s);Y=this.get_price(it);break;case"number_format":"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));var st=this.calc_string(xt.output,n,!1,c,s),_t=P[1],ot=P[2],lt=P[3];Y=this.number_format(st,_t,ot,lt);break;case"select_option_text":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_field_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",P[0]));xe=parseInt(P[0],10);void 0===(Le=P[1])&&(Le=", "),i.id===c.id&&f.push(xe);var nt=ws_form_settings.field_prefix+xe.toString()+(a?"["+a+"]":"");if((ut=e('[name="'+this.esc_selector(nt)+'[]"] option:selected',this.form_canvas_obj)).length)Y=e.map(ut,function(t,a){return e(t).text()}).join(Le);break;case"query_var":Y=this.get_query_var(P[0],P[1]);break;case"section_row_count":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_section_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_section_id",P[0]));var ct=P[0];if(void 0===this.section_data_cache[ct])return this.error("error_parse_variable_syntax_error_section_id",ct,"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_section_id",ct));var dt=e('[data-repeatable][data-id="'+this.esc_selector(ct)+'"]',this.form_canvas_obj);if(0===(Y=dt.length?dt.length:0)&&"function"==typeof this.get_section_repeat_default){var pt=this.section_data_cache[ct];Y=this.get_section_repeat_default(pt)}break;case"checkbox_label":case"radio_label":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_field_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",P[0]));xe=parseInt(P[0],10);void 0===(Le=P[1])&&(Le=", "),i.id===c.id&&f.push(xe);nt=ws_form_settings.field_prefix+xe.toString()+(a?"["+a+"]":"");if((ut=e('[name="'+this.esc_selector(nt)+'[]"]:checked',this.form_canvas_obj)).length)Y=e.map(ut,function(t,a){return e('label[for="'+e(t).attr("id")+'"]').text()}).join(Le);break;case"checkbox_count":case"checkbox_count_total":case"select_count":case"select_count_total":if(isNaN(P[0]))return this.error("error_parse_variable_syntax_error_field_id",P[0],"error-parse-variables"),this.parse_variables_process_error(this.language("error_parse_variable_syntax_error_field_id",P[0]));xe=parseInt(P[0],10);i.id===c.id&&f.push(xe);nt=ws_form_settings.field_prefix+xe.toString()+(a?"["+a+"]":"");switch(y){case"checkbox_count":case"checkbox_count_total":var ut=e('[data-type="checkbox"][data-id="'+xe+'"] [data-row-checkbox]:not([style*="display: none"]) input:not([data-hidden])'+("checkbox_count"==y?":checked":""),this.form_canvas_obj);break;case"select_count":case"select_count_total":ut=e('select[name="'+this.esc_selector(nt)+'[]"] option:not([data-placeholder])'+("select_count"==y?":selected":""),this.form_canvas_obj)}Y=ut?ut.length:0;break;case"post_date_custom":case"server_date_custom":case"blog_date_custom":Ce=this.get_new_date(k);if(void 0!==P[1])(ht=parseInt(this.parse_variables_process(P[1],a,r,i,s,_,o,l).output,10))&&Ce.setSeconds(Ce.getSeconds()+ht);Y="function"==typeof this.date_format?this.date_format(Ce,P[0]):"";break;case"client_date_custom":var ht;Ce=new Date;if(void 0!==P[1])(ht=parseInt(this.parse_variables_process(P[1],a,r,i,s,_,o,l).output,10))&&Ce.setSeconds(Ce.getSeconds()+ht);Y="function"==typeof this.date_format?this.date_format(Ce,P[0]):"";break;case"random_number":var ft=parseInt(this.get_number(P[0]),10),mt=parseInt(this.get_number(P[1]),10);Y=Math.floor(Math.random()*(mt-ft+1))+ft;break;case"random_string":var vt=parseInt(this.get_number(P[0]),10),bt=P[1],gt=bt.length;Y="";for(var yt=0;yt<vt;yt++)Y+=bt[Math.floor(Math.random()*gt)];break;case"abs":case"acos":case"asin":case"atan":case"ceil":case"cos":case"exp":case"floor":case"log":case"negative":case"positive":case"sin":case"sqrt":case"tan":"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));it=this.calc_string(xt.output,n,!1,c,s);switch(y){case"abs":Y=Math.abs(it);break;case"acos":Y=Math.acos(it);break;
7case"asin":Y=Math.asin(it);break;case"atan":Y=Math.atan(it);break;case"ceil":Y=Math.ceil(it);break;case"cos":Y=Math.cos(it);break;case"exp":Y=Math.exp(it);break;case"floor":Y=Math.floor(it);break;case"log":Y=Math.log(it);break;case"negative":case"positive":Y="positive"==y?Math.max(0,it):Math.min(0,it);break;case"sin":Y=Math.sin(it);break;case"sqrt":Y=Math.sqrt(it);break;case"tan":Y=Math.tan(it)}break;case"lower":case"upper":case"ucwords":case"ucfirst":case"capitalize":case"sentence":case"wpautop":case"trim":case"slug":if("string"==typeof P[0])switch("object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields)),Y=xt.output,y){case"lower":Y=Y.toLowerCase();break;case"upper":Y=Y.toUpperCase();break;case"ucwords":Y=this.ucwords(Y);break;case"ucfirst":Y=this.ucfirst(Y);break;case"capitalize":Y=this.capitalize(Y);break;case"sentence":Y=this.sentence(Y);break;case"wpautop":Y=this.wpautop(Y),U=!1;break;case"trim":Y=Y.trim(),U=!1;break;case"slug":Y=this.get_slug(Y)}break;case"pow":"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));var wt=this.calc_string(xt.output,n,_t,c,s);"object"==typeof(xt=this.parse_variables_process(P[1],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));var kt=this.calc_string(xt.output,n,_t,c,s);Y=Math.pow(wt,kt);break;case"round":var xt=this.parse_variables_process(P[1],a,r,i,s,_,o,l);_t=this.get_number(xt.output);"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields)),Y=this.calc_string(xt.output,n,_t,c,s);break;case"min":case"max":var jt=[];if(1===P.length)"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields)),P=this.string_to_attributes(xt.output);for(var Pe in P)if(P.hasOwnProperty(Pe)){"object"==typeof(xt=this.parse_variables_process(P[Pe],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields));it=this.calc_string(xt.output,n,!1,c,s);jt.push(it)}Y=jt.length>0?"min"==y?Math.min(...jt):Math.max(...jt):0;break;case"avg":Ke=0;if(1===P.length)"object"==typeof(xt=this.parse_variables_process(P[0],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields)),P=this.string_to_attributes(xt.output);for(var Pe in P){if(P.hasOwnProperty(Pe))"object"==typeof(xt=this.parse_variables_process(P[Pe],a,r,i,s,_,o,l)).fields&&(f=f.concat(xt.fields)),Ke+=it=this.calc_string(xt.output,n,!1,c,s)}Y=Ke/P.length}!1!==Y&&(U&&(Y=this.esc_html(Y)),j?h[N.substring(1)]=Y:u[N.substring(1)]=Y)}}while(-1!==F);t=this.mask_parse(t,u)}}else u[y]=k}}if(-1!=t.indexOf("form")&&(u.form_id=this.form_id,u.form_instance_id=this.form_instance_id,u.form_obj_id=this.form_obj_id,u.form_label=this.form.label,u.form_checksum=this.form.published_checksum,u.form_framework=this.framework.name),-1!=t.indexOf("section")){u.section_row_index=a;var St=1;!1===o&&!1!==i&&void 0!==i.section_id&&parseInt(i.section_id,10)>0&&(o=parseInt(i.section_id,10)),"object"==typeof this.section_repeatable_indexes["section_"+o]&&(St=this.section_repeatable_indexes["section_"+o].indexOf(a.toString())+1)<=0&&(St=1),u.section_row_number=St}if(-1!=t.indexOf("submit")&&(u.submit_hash=this.hash),-1!=t.indexOf("client")){var Ft=new Date;u.client_time="function"==typeof this.date_format?this.date_format(Ft,ws_form_settings.time_format):"",u.client_date="function"==typeof this.date_format?this.date_format(Ft,ws_form_settings.date_format):""}-1!=t.indexOf("seconds_epoch_midnight")&&((Wt=new Date).setHours(0,0,0,0),u.seconds_epoch_midnight=Math.round(Wt.getTime()/1e3));if(-1!=t.indexOf("seconds_epoch")){var Wt=new Date;u.seconds_epoch=Math.round(Wt.getTime()/1e3)}var Ot=this.get_currency();if(-1!=t.indexOf("ecommerce"))for(var Mt in void 0===this.ecommerce_cart_price_type.total&&(this.ecommerce_cart_price_type.total={float:0,string:this.get_price(0,Ot,!1),currency:this.get_price(0,Ot)}),u.ecommerce_cart_total_float=this.ecommerce_cart_price_type.total.float,u.ecommerce_cart_total_currency=this.ecommerce_cart_price_type.total.currency,u.ecommerce_cart_total=this.ecommerce_cart_price_type.total.string,e.WS_Form.ecommerce.cart_price_types)e.WS_Form.ecommerce.cart_price_types.hasOwnProperty(Mt)&&(void 0===this.ecommerce_cart_price_type[Mt]&&(this.ecommerce_cart_price_type[Mt]={float:0,string:this.get_price(0,Ot,!1),currency:this.get_price(0,Ot)}),u["ecommerce_cart_"+Mt+"_float"]=this.ecommerce_cart_price_type[Mt].float,u["ecommerce_cart_"+Mt+"_currency"]=this.ecommerce_cart_price_type[Mt].currency,u["ecommerce_cart_"+Mt]=this.ecommerce_cart_price_type[Mt].string);var Pt=t;(t=this.mask_parse(t,u),(t=this.mask_parse(t,h,!0))!==Pt&&-1!==t.indexOf("#"))&&(t=(xt=this.parse_variables_process(t,a,r,i,s,_,o,l+1,n,c)).output,"object"==typeof xt.fields&&(f=f.concat(xt.fields)));return{output:t,fields:f}},e.WS_Form.prototype.get_data_grid_column=function(t,a,r){if(0===t.length)return t;var i=[];
7switch(s=a.type){case"select":case"checkbox":case"radio":break;case"price_select":var s="select_price";break;case"price_checkbox":s="checkbox_price";break;case"price_radio":s="radio_price";break;default:return t}var _="data_grid_"+s,o=this.get_object_meta_value(a,s+"_field_value","0"),l=this.get_object_meta_value(a,s+"_field_label","0"),n=this.get_object_meta_value(a,s+"_field_price","0"),c=this.get_object_meta_value(a,s+"_field_parse_variable","0"),d=this.get_object_meta_value(a,s+"_field_wc","0"),p=this.get_object_meta_value(a,_,!1);if(!1===p)return t;if("object"!=typeof p.columns||"object"!=typeof p.groups)return t;var u=0,h=0,f=0,m=0,v=0,b=p.columns,g=parseInt(r,10);for(var y in b)if(b.hasOwnProperty(y)){var w=b[y];void 0!==w.id&&void 0!==w.label&&(w.id==o&&(u=y),w.id==l&&(h=y),w.id==n&&(f=y),w.id==c&&(m=y),w.id==d&&(v=y),w.label===r&&(g=y))}var k=p.groups;for(var x in k)if(k.hasOwnProperty(x)){var j=k[x];if(void 0!==j.rows){var S=j.rows;for(var F in S)if(S.hasOwnProperty(F)){var W=S[F];if(null!==W&&"object"==typeof W.data){var O=W.data,M=e.extend(!0,[],O);if(void 0!==M[u]&&void 0!==M[g]){var P={data_grid_row_price:"",data_grid_row_price_currency:"",data_grid_row_woocommerce_cart:"",data_grid_row_value:M[u],data_grid_row_action_variable:"",data_grid_row_label:""};for(var I in!1!==h&&void 0!==M[h]&&(P.data_grid_row_label=M[h]),!1!==f&&void 0!==M[f]&&(P.data_grid_row_price_currency=this.get_price(M[f]),P.data_grid_row_price=this.get_number(M[f])),!1!==m&&void 0!==M[m]&&(P.data_grid_row_action_variable=M[m]),!1!==v&&void 0!==M[v]&&(P.data_grid_row_woocommerce_cart=M[v]),M)M.hasOwnProperty(I)&&("number"==typeof M[I]&&(M[I]=M[I].toString()),M[I]=this.mask_parse(M[I],P));for(var N in t){if(t.hasOwnProperty(N))if(t[N]===M[u].toString()){if(void 0===W.data[g])continue;i.push(W.data[g])}}}}}}}return i},e.WS_Form.prototype.wpautop_parse_variable=function(e,t){if("on"==this.get_object_meta_value(e,"wpautop_do_not_process",""))return!1;var a=void 0!==t.wpautop_parse_variable&&t.wpautop_parse_variable;if("object"==typeof a){var r=!1;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];this.get_object_meta_value(e,s.meta_key,"")===s.meta_value&&(r=!0)}a=r}return a},e.WS_Form.prototype.wpautop=function(e,t){if("string"!=typeof e)return"";void 0===t&&(t=!0);var a=new Map;if(""===e.trim())return"";if((e+="\n").indexOf("<pre")>-1){var r=e.split("</pre>"),i=r.pop();e="",r.forEach(function(t,r){var i=t.indexOf("<pre");if(-1!==i){var s="<pre wp-pre-tag-"+r+"></pre>";a[s]=t.substr(i)+"</pre>",e+=t.substr(0,i)+s}else e+=t}),e+=i}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";(e=(e=(e=(e=e.replace(/<br \/>\s*<br \/>/,"\n\n")).replace(new RegExp("(<"+s+"[^>]*>)","gmi"),"\n$1")).replace(new RegExp("(</"+s+">)","gmi"),"$1\n\n")).replace(/\r\n|\r/,"\n")).indexOf("<option")>-1&&(e=(e=e.replace(/\s*<option'/gim,"<option")).replace(/<\/option>\s*/gim,"</option>")),e.indexOf("</object>")>-1&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/gim,"$1")).replace(/\s*<\/object>/gim,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/gim,"$1")),(e.indexOf("<source")>-1||e.indexOf("<track")>-1)&&(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/gim,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/gim,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/gim,"$1"));var _=(e=e.replace(/\n\n+/gim,"\n\n")).split(/\n\s*\n/);return e="",_.forEach(function(t){e+="<p>"+t.replace(/^\s+|\s+$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/gim,"")).replace(/<p>([^<]+)<\/(div|address|form)>/gim,"<p>$1</p></$2>")).replace(new RegExp("<p>s*(</?"+s+"[^>]*>)s*</p>","gmi"),"$1",e)).replace(/<p>(<li.+?)<\/p>/gim,"$1")).replace(/<p><blockquote([^>]*)>/gim,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/gim,"</p></blockquote>")).replace(new RegExp("<p>s*(</?"+s+"[^>]*>)","gmi"),"$1")).replace(new RegExp("(</?"+s+"[^>]*>)s*</p>","gmi"),"$1"),t&&(e=(e=(e=e.replace(/<(script|style)(?:.|\n)*?<\/\\1>/gim,function(e){return e[0].replace("\n","<WPPreserveNewline />")})).replace(/(<br \/>)?\s*\n/gim,"<br />\n")).replace("<WPPreserveNewline />","\n")),e=(e=(e=e.replace(new RegExp("(</?"+s+"[^>]*>)s*<br />","gmi"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/gim,"$1")).replace(/\n<\/p>$/gim,"</p>"),Object.keys(a).length&&(e=e.replace(new RegExp(Object.keys(a).join("|"),"gi"),function(e){return a[e]})),e},e.WS_Form.prototype.calc_string=function(e,t,a,r,i){try{var s=new Function("return "+e)();return s===1/0&&(s=0),this.get_number(s,0,!1,a)}catch(e){return"object"==typeof r&&void 0!==r.id&&void 0!==r.label&&this.error("error_parse_variable_syntax_error_calc",r.id+" | "+this.esc_html(r.label)+(i?" | "+this.esc_html(i):"")+" | "+e.message+": "+this.esc_html(t)),0}},e.WS_Form.prototype.closing_string_index=function(e,t,a,r){for(var i=1;i>0;){var s=e.indexOf(a,r),_=e.indexOf(t,r);
7if(-1!==s&&-1!==_&&s<_)r=s+a.length,i++;else{if(!(-1!==_&&i>1)){if(-1!==_&&1===i)break;break}r=_+t.length,i--}}return _},e.WS_Form.prototype.string_to_attributes=function(e,t){if("string"!=typeof e||""==e)return[];"string"!=typeof t&&(t=",");var a=1,r=0,i=!1,s="",_=[];e.replace("â",'"'),e.replace("â",'"');for(var o=e.length;r<o;){var l=e[r];if(void 0===l)break;if(l!==t||1!==a||i)if('"'!==l||1!==a){if(!i){switch(l){case"(":a++;break;case")":a--}if(0===a)break}s+=l,r++}else i||(s=""),i=!i,r++;else _.push(s),s="",r++}return _.push(s),_.length&&(_=_.map(function(e){return e=e.replace(/^"(.+(?="$))"$/,"$1")})),_},e.WS_Form.prototype.get_bracket_finish_index=function(e){if(""===e)return-1;e.replace("â",'"'),e.replace("â",'"');for(var t=1,a=1,r=!1;t>0||a<e.length;){var i=e[a];if(void 0===i)break;if('"'!==i){if(!r){switch(i){case"(":t++;break;case")":t--}if(0===t)break}a++}else r=!r,a++}return 0===t?a:(this.error("error_parse_variable_syntax_error_bracket_closing",e,"error-parse-variables"),-1)},e.WS_Form.prototype.parse_variables_process_error=function(e){return{output:e,functions:[],fields:[]}},e.WS_Form.prototype.get_field_value=function(t,a,r,i){var s=this;if(void 0===a&&(a=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),!1===a){var _='[name="'+this.esc_selector(ws_form_settings.field_prefix+t.id);r&&(_+="[]")}else if(!0===a)_='[name^="'+this.esc_selector(ws_form_settings.field_prefix+t.id)+"[";else{_='[name="'+this.esc_selector(ws_form_settings.field_prefix+t.id+"["+a+"]");r&&(_+="[]")}if(!e(_+='"]').length)return!1;switch(t.type){case"select":case"price_select":_+=" option:selected";break;case"checkbox":case"radio":case"price_checkbox":case"price_radio":_+=":checked"}var o=[];return e(_,this.form_canvas_obj).each(function(){switch(t.type){case"price_select":!1===i?o.push(e(this).attr("data-price")):o.push(e(this).val());break;case"price_checkbox":case"price_radio":!1===i?o.push(e(this).attr("data-price")):o.push(e(this).val());break;case"file":var a=[];switch(e(this).attr("data-file-type")){case"dropzonejs":var r=e(this).closest('[data-type="file"]');
7if(r){var _=e(".dropzone",r)[0].dropzone;if(_&&_.files)a=_.files}break;default:a=e(this)[0].files}var l=[];for(var n in a)if(a.hasOwnProperty(n)){var c=a[n];l.push(c.name)}o.push(l.join(","));break;case"googlemap":var d=e(this).val();if(!d)break;try{var p=JSON.parse(d)}catch(e){break}void 0!==p.lat&&void 0!==p.lng&&o.push(p.lat+","+p.lng);break;default:p=e(this).val();s.is_iterable(p)?o.push(...p):o.push(p)}}),o},e.WS_Form.prototype.get_data_source=function(t){var a={default_value:[]};t=this.field_data_cache[t.id];if(void 0===e.WS_Form.field_type_cache[t.type])return!1;var r=e.WS_Form.field_type_cache[t.type];if(void 0===r.data_source)return!1;var i=r.data_source;if(void 0===i.type)return!1;switch(a.type=i.type,a.type){case"data_grid":if(void 0===i.id)return!1;a.meta_key_data_grid=i.id,a.meta_key_value_column=(r.datagrid_column_value,r.datagrid_column_value),a.data_grid=this.get_object_meta_value(t,a.meta_key_data_grid,!1),a.value_column_id=this.get_object_meta_value(t,a.meta_key_value_column,!1);var s=(a.data_grid.columns,a.data_grid.columns);for(var _ in a.value_column_index=!1,s)if(s.hasOwnProperty(_)){var o=s[_];if(void 0!==o.id&&o.id==a.value_column_id){a.value_column_index=_;break}}if(!1!==a.value_column_id&&void 0!==a.data_grid.groups){var l=a.data_grid.groups;for(var n in l)if(l.hasOwnProperty(n)){var c=l[n];if(void 0!==c.rows){var d=c.rows;for(var p in d)if(d.hasOwnProperty(p)){var u=d[p];if(null!==u)if(void 0!==u.default&&"on"===u.default){if(void 0===u.data)continue;if(void 0===u.data[a.value_column_index])continue;a.default_value.push(u.data[a.value_column_index])}}}}}}return a},e.WS_Form.prototype.get_query_var=function(e,t){t||(t="");var a=window.location.href;if(!a)return t;try{e=e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(a);if(!r)return t;if(!r[2])return t;try{return decodeURIComponent(r[2].replace(/\+/g," "))}catch(e){return t}}catch(e){return t}},e.WS_Form.prototype.set_object_meta_value=function(e,t,a){return void 0===e?a:void 0===e.meta?a:void(e.meta[t]=a)},e.WS_Form.prototype.column_class_array=function(t,a){void 0===a&&(a="breakpoint");var r=[],i=this.framework.breakpoints,s=this.framework.columns.column_class,_=this.framework.columns.offset_class,o=0,l=0;for(var n in i)if(i.hasOwnProperty(n)){var c=i[n],d=this.get_object_meta_value(t,a+"_size_"+n,"");if(""==d&&(d="0"),0==(d=parseInt(d,10))){if(void 0!==c.column_size_default)switch(c.column_size_default){case"column_count":d=parseInt(e.WS_Form.settings_plugin.framework_column_count,10);break;default:d=parseInt(c.column_size_default,10)}}else d=parseInt(d,10);if(d>0&&d!=o){var p={id:c.id,size_word:void 0===this.number_to_word[d]?d:this.number_to_word[d],size:d};if(void 0!==c.column_class)var u=c.column_class;else u=s;var h=this.mask_parse(u,p);r.push(h),o=d}var f=this.get_object_meta_value(t,a+"_offset_"+n,""),m=!1;if(""!==f&&f!=l){p={id:c.id,offset_word:void 0===this.number_to_word[f]?f:this.number_to_word[f],offset:f};if(void 0!==c.offset_class)var v=c.offset_class;else v=_;h=this.mask_parse(v,p);r.push(h),l=f,m=!0}m&&r.push("wsf-has-offset")}return r},e.WS_Form.prototype.column_classes_render=function(e,t,a){e.closest(".wsf-sections").css("min-height","auto"),e.closest(".wsf-fields").css("min-height","auto"),void 0===a&&(a=!0);for(var r=this.column_class_array(t),i=0;i<r.length;i++)a?e.addClass(r[i]):e.removeClass(r[i])},e.WS_Form.prototype.mask_parse=function(e,t,a){if("string"!=typeof e)return"";void 0===a&&(a=!1);var r=[],i=Object.keys(t);i.sort(function(e,t){if(e===t)return 0;var a=-1!==e.indexOf("("),r=-1!==t.indexOf("(");return a&&r?e<t?1:-1:!a&&r||a&&!r?a<r?1:-1:e<t?1:-1});for(var s=0;s<i.length;s++)r[i[s]]=t[i[s]];for(var _ in t=r)if(t.hasOwnProperty(_)){var o=t[_];e=a?e.replace("#"+_,o):this.replace_all(e,"#"+_,o)}return e},e.WS_Form.prototype.language=function(t,a,r,i){void 0===a&&(a=!1),void 0===r&&(r=!0),void 0===i&&(i=!1);var s="",_="";if("error_language"===t)s="Language reference not found: %s";else if(null!==e.WS_Form.settings_form&&void 0!==e.WS_Form.settings_form.language&&void 0!==e.WS_Form.settings_form.language[t])s=e.WS_Form.settings_form.language[t];return""==s?"error_language"===t||i||this.error("error_language",t):(!1!==a&&(s=this.replace_all(s,"%s",a)),_=r?this.esc_html(s):s),""==_&&(_=""==a?"[LANGUAGE NOT FOUND: "+t+"]":a),_},e.WS_Form.prototype.cookie_set=function(t,a,r,i){void 0===r&&(r=!0),void 0===i&&(i=!0);var s=this.get_object_value(e.WS_Form.settings_plugin,"cookie_prefix");if(!s)return!1;
7if(""==a){if(""==this.cookie_get(t,""))return!1;(o=new Date).setTime(o.getTime()-864e5);var _="expires="+o.toUTCString()+";"}else if(r){var o,l=this.get_object_value(e.WS_Form.settings_plugin,"cookie_timeout");if(!l)return!1;(o=new Date).setTime(o.getTime()+1e3*l);_=" expires="+o.toUTCString()+";"}else _="";var n=s+"_"+(i?this.form_id+"_":"")+t+"="+a+";"+_+" path=/; SameSite=Strict; Secure";return document.cookie=n,!0},e.WS_Form.prototype.cookie_get=function(t,a,r){void 0===r&&(r=!0);var i=this.get_object_value(e.WS_Form.settings_plugin,"cookie_prefix");return i?(t=i+"_"+(r?this.form_id+"_":"")+t,this.cookie_get_raw(t,a)):a},e.WS_Form.prototype.cookie_get_raw=function(e,t){if(void 0===t&&(t=""),""===e||!document.cookie||"string"!=typeof document.cookie)return t;var a=document.cookie.split(";");e+="=";for(var r=0;r<a.length;r++){for(var i=a[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(e)){var s=i.substring(e.length,i.length);try{return decodeURIComponent(s)}catch(e){return s}}}return t},e.WS_Form.prototype.co
7okie_clear=function(t,a){void 0===a&&(a=!0);var r=this.get_object_value(e.WS_Form.settings_plugin,"cookie_prefix");if(!r)return!1;var i=new Date;i.setTime(i.getTime()-36e5);var s=r+"_"+(a?this.form_id+"_":"")+t+"=''; expires="+i.toUTCString()+"; path=/; SameSite=Strict; Secure";return document.cookie=s,!0},e.WS_Form.prototype.session_storage_get_raw=function(e,t){return void 0===t&&(t=""),""===e||"object"!=typeof sessionStorage||null===sessionStorage.getItem(e)?t:sessionStorage.getItem(e)},e.WS_Form.prototype.local_storage_get_raw=function(e,t){return void 0===t&&(t=""),""===e||"object"!=typeof localStorage||null===localStorage.getItem(e)?t:localStorage.getItem(e)},e.WS_Form.prototype.tabs=function(t,a){void 0===a&&(a={});var r=void 0!==a.selector?a.selector:"li",i=void 0!==a.active?a.active:0,s=void 0!==a.activate&&a.activate,_=this,o=0;t.addClass("wsf-tabs"),e(r,t).each(function(){var t=e(this);t.find('a[href*="#"]:not([href="#"])').each(function(){e(this).attr("data-tab-index",o),e(this).off("click").on("click",function(a){a.preventDefault(),e(this).trigger("wsf-click"),a.stopPropagation(),a.stopImmediatePropagation(),_.tab_show(e(this),t,s)}),o==i&&_.tab_show(e(this),t)}),o++})},e.WS_Form.prototype.tabs_destroy=function(t,a){void 0===a&&(a={});var r=void 0!==a.selector?a.selector:"li";e(r,t).each(function(){e(this).find("a").each(function(){e(this).removeAttr("data-tab-index"),e(this).off("click")})}),t.removeClass("wsf-tabs")},e.WS_Form.prototype.tab_show=function(t,a,r){var i=this;a.siblings().each(function(){var t=e(this).find("a").first();i.tab_hide(t,e(this))}),a.addClass("wsf-tab-active");var s=t.attr("href");(e(s).show(),"function"==typeof r)&&r(t.attr("data-tab-index"));t.trigger("tab_show")},e.WS_Form.prototype.tab_hide=function(t,a){a.removeClass("wsf-tab-active");var r=t.attr("href");e(r).hide()},e.WS_Form.prototype.data_cache_build=function(){if(void 0===this.form)return!1;if(void 0===this.form.groups)return!1;for(var e in this.group_data_cache=[],this.section_data_cache=[],this.field_data_cache=[],this.action_data_cache=[],this.form.groups)if(this.form.groups.hasOwnProperty(e)){var t=this.form.groups[e];this.data_cache_build_group(t)}var a=this.get_object_meta_value(this.form,"action",!1);if(!1!==a&&void 0!==a.groups&&void 0!==a.groups[0]&&"object"==typeof a.groups[0].rows&&0!=a.groups[0].rows.length){var r=a.groups[0].rows;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];null!==s&&"object"==typeof s&&"object"==typeof s.data&&0!=s.data.length&&(this.action_data_cache[s.id]={label:s.data[0]})}}return!0},e.WS_Form.prototype.data_cache_build_group=function(e){for(var t in this.group_data_cache[e.id]=e,e.sections)if(e.sections.hasOwnProperty(t)){var a=e.sections[t];this.data_cache_build_section(a)}return!0},e.WS_Form.prototype.data_cache_build_section=function(t){this.section_data_cache[t.id]=t;var a=void 0!==t.meta&&void 0!==t.meta.section_repeatable&&"on"==t.meta.section_repeatable;for(var r in t.fields)if(t.fields.hasOwnProperty(r)){var i=t.fields[r];a&&(i.section_repeatable_section_id=t.id),void 0!==e.WS_Form.field_type_cache[i.type]&&(this.field_data_cache[i.id]=i)}return!0},e.WS_Form.prototype.array_randomize=function(e){for(var t=e.length-1;t>0;t--){var a=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[a],e[a]=r}return e},e.WS_Form.prototype.get_nice_duration=function(e,t){if(void 0===t&&(t=!0),0==e)return"-";var a=Math.floor(e/3600);if(t)var r=Math.floor(e%3600/60),i=e%60;else r=Math.ceil(e%3600/60);var s=[];return a>0&&s.push(a+" "+(1==a?this.language("hour"):this.language("hours"))),r>0&&s.push(r+" "+(1==r?this.language("minute"):this.language("minutes"))),t&&s.push(i+" "+(1==i?this.language("second"):this.language("seconds"))),s.join(" ")},e.WS_Form.prototype.get_nice_distance=function(e,t){if(0==e)return"-";switch(t){case"IMPERIAL":var a=e/1609;if(a>=1)return Math.floor(a)+" "+(1==a?this.language("mile"):this.language("miles"));var r=3.2808399*e;return Math.floor(r)+" "+(1==r?this.language("feet"):this.language("feets"));default:var i=e/1e3;return i>=1?Math.round(10*i)/10+" "+(1==i?this.language("kilometer"):this.language("kilometers")):Math.round(10*e)/10+" "+(1==e?this.language("meter"):this.language("meters"))}},e.WS_Form.prototype.ucwords=function(e){for(var t=e.split(" "),a=0;a<t.length;a++)t[a]=t[a].charAt(0).toUpperCase()+t[a].slice(1);return t.join(" ")},e.WS_Form.prototype.ucfirst=function(e){var t="";return e.length>0&&(t=e[0].toUpperCase(),e.length>1&&(t+=e.slice(1))),t},e.WS_Form.prototype.capitalize=function(e){return this.ucwords(e.toLowerCase())},e.WS_Form.prototype.sentence=function(e){return this.ucfirst(e.toLowerCase())},e.WS_Form.prototype.get_label_position=function(e){var t=this.get_object_meta_value(e,"sub_type",!1);""==t&&(t=!1);var a=this.get_object_meta_value(e,"label_position","default");return"default"==(a=this.get_field_value_fallback(e.type,!1,"label_position_force",a,!1,t))&&(a=this.get_object_meta_value(this.form,"label_position_form","top")),a},e.WS_Form.prototype.get_help_position=function(e){var t=this.get_object_meta_value(e,"sub_type",!1);""==t&&(t=!1);var a=this.get_object_meta_value(e,"help_position","default");return"default"==(a=this.get_field_value_fallback(e.type,!1,"help_position_force",a,!1,t))&&(a=this.get_object_meta_value(this.form,"help_position_form","bottom")),a},e.WS_Form.prototype.get_form_invalid_feedback_mask=function(){var t=this.get_object_meta_value(this.form,"invali
7d_feedback_mask","");if(""==t){var a=e.WS_Form.meta_keys.invalid_feedback_mask;return a.p?a.p:a.mask_placeholder}return t},e.WS_Form.prototype.get_invalid_feedback_mask_parsed=function(e,t){return e=this.replace_all(e,"#label_lowercase",t.toLowerCase()),e=this.replace_all(e,"#label",t)},e.WS_Form.prototype.get_field_html_single=function(t,a,r,i){void 0===r&&(r=!1),void 0===i&&(i=!1);var s=[],_=void 0!==a,o=!r,l=!1!==i?"-repeat-"+i:"",n=this.get_part_id(t.id,i),c=this.get_field_name(t.id,i),d=["default","class","input_type_datetime","multiple","min","max","step"],p=["class"];if(void 0===e.WS_Form.field_type_cache[t.type])return"";var u=e.WS_Form.field_type_cache[t.type];if(u.pro_required)return this.language("error_pro_required");if(r)var h=!0;else h=this.get_object_meta_value(t,"label_render",!0);var f=this.get_object_meta_value(t,"sub_type",!1);if(""==f&&(f=!1),this.get_field_value_fallback(t.type,!1,"label_disabled",!1,!1,f)&&(h=!1),void 0!==u.submit_array&&u.submit_array&&(c+="[]"),h&&!r)var m=this.get_label_position(t);else m="top";var v=!1;-1===this.get_framework().label_positions.indexOf(m)&&(m="top");var b=e.extend(!0,[],this.get_field_value_fallback(t.type,m,"mask_field_attributes",[],!1,f)),g=void 0!==u.mask_wrappers_drop&&u.mask_wrappers_drop;"recaptcha"==t.type&&"invisible"==this.get_object_meta_value(t,"recaptcha_recaptcha_type","default")&&(g=!0),"hcaptcha"==t.type&&"invisible"==this.get_object_meta_value(t,"hcaptcha_type","default")&&(g=!0);var y=g?"#field":this.get_field_value_fallback(t.type,m,"mask","#field",!1,f),w=this.get_field_value_fallback(t.type,m,"mask_field","",!1,f);if(r){var k=this.get_field_value_fallback(t.type,m,"mask_field_submit",!1,!1,f);!1!==k&&(w=k)}"left"!=m&&"right"!=m||(w=(w=w.replace("#pre_help","")).replace("#post_help",""));var x=h?this.get_field_value_fallback(t.type,m,"mask_field_label","",!1,f):"",j=this.get_field_value_fallback(t.type,m,"mask_field_label_hide_group",!1,!1,f),S=this.get_field_value_fallback(t.type,m,"mask_help","",!1,f),F=this.get_field_value_fallback(t.type,m,"mask_help_append","",!1,f),W=this.get_field_value_fallback(t.type,m,"mask_help_append_separator","",!1,f),O=this.get_field_value_fallback(t.type,m,"mask_invalid_feedback","",!1,f),M=this.get_object_meta_value(t,"default_value","",!1,!1),P=this.parse_variables_process(M,i,!1,t,"field_value",o).output,I=this.get_object_meta_value(t,"text_editor","",!1,!1),N=this.parse_variables_process(I,i,!1,t,"field_text_editor",o).output,z=this.get_object_meta_value(t,"html_editor","",!1,!1),D=this.parse_variables_process(z,i,!1,t,"field_html",o).output,q=this.get_object_meta_value(t,"ecommerce_calculation_persist","",!1,!0),T=this.get_object_meta_value(t,"dedupe_value_scope","",!1,!0),C=this.get_object_meta_value(t,"hidden_bypass","",!1,!0),$=this.get_object_meta_value(t,"exclude_cart_total","",!1,!0);_||(a="",""!=P&&(a=this.esc_html(P)),""!=N&&(a=N),""!=D&&(a=D));var A=!0,E="";switch(t.type){case"textarea":A=""===this.get_object_meta_value(t,"input_type_textarea","");break;case"select":case"checkbox":case"radio":case"price_select":case"price_checkbox":case"price_radio":a&&(a="string"==typeof a?a.split(",").map(function(e){return e.trim()}):a,_=!0);break;case"file":case"signature":case"googlemap":"object"==typeof a&&(a=this.esc_html(JSON.stringify(a)));break;case"price_range":_&&"price_range"==t.type&&(a=this.get_number(a));break;case"password":E="";var Y,U=this.get_object_meta_value(t,"password_generate",""),R=this.get_object_meta_value(t,"password_visibility_toggle",""),J=this.get_object_meta_value(t,"append","");if(U)""==(Y=this.get_object_meta_value(t,"text_password_generate",""))&&(Y=this.language("password_generate")),E+='<div data-wsf-password-generate style="cursor: pointer; user-select: none; outline: 0;'+(R||J?" margin-"+(ws_form_settings.rtl?"left":"right")+": 8px;":"")+'" title="'+this.esc_attr(Y)+'" tabindex="0" role="button" aria-pressed="false"><svg style="display: block;
7" height="16" width="16" viewBox="0 0 16 16"><path d="M8 0c-3 0-5.6 1.6-6.9 4.1l-1.1-1.1v4h4l-1.5-1.5c1-2 3.1-3.5 5.5-3.5 3.3 0 6 2.7 6 6s-2.7 6-6 6c-1.8 0-3.4-0.8-4.5-2.1l-1.5 1.3c1.4 1.7 3.6 2.8 6 2.8 4.4 0 8-3.6 8-8s-3.6-8-8-8z"/></svg></div>';if(R)""==(Y=this.get_object_meta_value(t,"text_password_visibility_toggle_off",""))&&(Y=this.language("password_visibility_toggle_off")),E+='<div data-wsf-password-visibility-toggle style="cursor: pointer; user-select: none; outline: 0;'+(J?" margin-"+(ws_form_settings.rtl?"left":"right")+": 8px;":"")+';" title="'+this.esc_attr(Y)+'" tabindex="0" role="button" aria-pressed="false"><svg style="display: block;" height="16" width="16" viewBox="0 0 16 16"><g class="wsf-password-visibility-off"><path d="M8 3.9c-6.7 0-8 5.1-8 5.1s2.2 4.1 7.9 4.1 8.1-4 8.1-4-1.3-5.2-8-5.2zM5.3 5.4c0.5-0.3 1.3-0.3 1.3-0.3s-0.5 0.9-0.5 1.6c0 0.7 0.2 1.1 0.2 1.1l-1.1 0.2c0 0-0.3-0.5-0.3-1.2 0-0.8 0.4-1.4 0.4-1.4zM7.9 12.1c-4.1 0-6.2-2.3-6.8-3.2 0.3-0.7 1.1-2.2 3.1-3.2-0.1 0.4-0.2 0.8-0.2 1.3 0 2.2 1.8 4 4 4s4-1.8 4-4c0-0.5-0.1-0.9-0.2-1.3 2 0.9 2.8 2.5 3.1 3.2-0.7 0.9-2.8 3.2-7 3.2z"></path></g><g class="wsf-password-visibility-on" style="display: none;"><path d="M12.9 5.2l-0.8 0.8c1.7 0.9 2.5 2.3 2.8 3-0.7 0.9-2.8 3.1-7 3.1-0.7 0-1.2-0.1-1.8-0.2l-0.8 0.8c0.8 0.3 1.7 0.4 2.6 0.4 5.7 0 8.1-4 8.1-4s-0.6-2.4-3.1-3.9z"></path><path d="M12 7.1c0-0.3 0-0.6-0.1-0.8l-4.8 4.7c0.3 0 0.6 0.1 0.9 0.1 2.2 0 4-1.8 4-4z"></path><path d="M15.3 0l-4.4 4.4c-0.8-0.2-1.8-0.4-2.9-0.4-6.7 0-8 5.1-8 5.1s1 1.8 3.3 3l-3.3 3.2v0.7h0.7l15.3-15.3v-0.7h-0.7zM4 11.3c-1.6-0.7-2.5-1.8-2.9-2.3 0.3-0.7 1.1-2.2 3.1-3.2-0.1 0.4-0.2 0.8-0.2 1.3 0 1.1 0.5 2.2 1.3 2.9l-1.3 1.3zM6.2 7.9l-1 0.2c0 0-0.3-0.5-0.3-1.2 0-0.8 0.4-1.5 0.4-1.5 0.5-0.3 1.3-0.3 1.3-0.3s-0.5 0.9-0.5 1.7c-0.1 0.7 0.1 1.1 0.1 1.1z"></path></g></svg></div>';break;case"summary":var L=this.get_summary_html(this.form,t);a=this.parse_variables_process(L,i,!1,t,"summary",!0).output}var H=A?this.parse_variables_process(this.get_object_meta_value(t,"prepend",""),i,!1,t,"field_prepend",o).output:"";E+=A?this.parse_variables_process(this.get_object_meta_value(t,"append",""),i,!1,t,"field_prepend",o).output:"";var Z="";if(!r){var B=[],G=this.get_object_meta_value(this.form,"class_field","",!1,!0);if(""!=G&&B.push(G),""!=(Z=this.get_object_meta_value(t,"class_field","",!1,!0))&&B.push(Z),!this.get_object_meta_value(t,"class_field_full_button_remove","")){var Q=this.get_field_value_fallback(t.type,m,"class_field_full_button","",!1,f);"object"==typeof Q&&B.push(Q.join(" "))}if(!(K=this.get_object_meta_value(t,"class_field_button_type",!1)))var K=this.get_field_value_fallback(t.type,m,"class_field_button_type_fallback",!1,!1,f);if(K){var V=this.get_field_value_fallback(t.type,m,"class_field_button_type","",!1,f);void 0!==V[K]&&B.push(V[K])}switch(t.type){case"checkbox":case"radio":switch(this.get_object_meta_value(t,t.type+"_style","")){case"button":B.push("wsf-button");break;case"button-full":B.push("wsf-button wsf-button-full");break;case"color":B.push("wsf-color");break;case"color-circle":B.push("wsf-color wsf-circle");break;case"circle":B.push("wsf-circle");break;case"image":B.push("wsf-image");break;case"image-circle":B.push("wsf-image wsf-circle");break;case"image-responsive":B.push("wsf-image wsf-responsive wsf-image-full");break;case"image-circle-responsive":B.push("wsf-image wsf-responsive wsf-image-full wsf-circle");break;case"switch":B.push("wsf-switch")}}var X=this.get_object_meta_value(t,"class_field_message_type",!1);if(X){var ee=this.get_field_value_fallback(t.type,m,"class_field_message_type","",!1,f);void 0!==ee[X]&&B.push(ee[X])}if(""!==H||""!==E){var te=this.get_field_value_fallback(t.type,m,"class_field_input_group","",!1,f);""!==te&&B.push(te)}var ae=void 0!==u.label_inside&&u.label_inside;if(ae&&"inside"===m){switch(t.type){case"textarea":var re=this.get_object_meta_value(t,"input_type_textarea",!1);v=!("tinymce"===re||"html"===re);break;case"select":case"price_select":v=!this.get_object_meta_value(t,"select2",!1);break;default:v=!0}v||(m="top")}ae||"inside"!==m||(m="top"),v&&(t.meta.placeholder=this.parse_variables_process(t.label,i,!1,t,"field_label",o).output),Z=B.join(" ")}var ie=parseInt(e.WS_Form.settings_plugin.framework_column_count,10),se=parseInt(this.get_object_meta_value(this.form,"label_column_width_form",3),10),_e=this.get_object_meta_value(t,"label_column_width","default");switch(_e){case"default":case"":_e=se;break;default:_e=parseInt(_e,10)}_e>=ie&&(_e=ie-1);var oe=ie-_e,le={id:n,form_id_prefix:this.form_id_prefix,form_id:this.form_id,form_instance_id:this.form_instance_id,field_id:t.
7id,name:c,label:this.parse_variables_process(t.label,i,!1,t,"field_label",o).output,value:a,required:this.get_object_meta_value(this.form,"label_required")?'<span class="wsf-required-wrapper"></span>':"",column_width_label:_e,column_width_field:oe,max_upload_size:ws_form_settings.max_upload_size,locale:ws_form_settings.locale,currency:e.WS_Form.settings_plugin.currency};switch(t.type){case"datetime":"on"==e.WS_Form.settings_plugin.ui_datepicker||"native"==e.WS_Form.settings_plugin.ui_datepicker&&!this.native_date?(le.datetime_type="text",v&&b.push("placeholder")):le.datetime_type=this.get_object_meta_value(t,"input_type_datetime","date");break;case"color":"on"==e.WS_Form.settings_plugin.ui_color||"native"==e.WS_Form.settings_plugin.ui_color&&!this.native_color?le.color_type="text":le.color_type="color";break;case"file":switch(f){case"dropzonejs":var ne=this.get_object_meta_value(t,"placeholder","",!1,!0);""==ne&&(ne=this.language("dropzonejs_default_message")),le.placeholder=ne}}var ce=this.get_field_value_fallback(t.type,m,"meta_key_parse_variables",[],!1,f);for(var de in ce)if(ce.hasOwnProperty(de)){var pe=ce[de],ue=!1!==(vt=void 0!==e.WS_Form.meta_keys[pe]&&e.WS_Form.meta_keys[pe])?void 0===vt.d?"":vt.d:"",he=this.get_object_meta_value(t,pe,ue);"object"==typeof he&&(he=JSON.stringify(he)),he=this.replace_all(he,"'","'"),le[pe]=he}var fe=e.extend(!0,{},le);fe.label_id=this.get_part_id(t.id,i,"label");var me=this.get_part_id(t.id,i,"help"),ve=""!==(ge=r?"":this.get_object_meta_value(t,"help","",!1,!1)),be={value:0,character_count:0,character_count_label:"",character_remaining:0,character_remaining_label:"",character_min:0,character_min_label:"",character_max:0,character_max_label:"",word_count:0,word_count_label:"",word_remaining:0,word_remaining_label:"",word_min:0,word_min_label:"",word_max:0,word_max_label:""};ge=this.mask_parse(ge,be);var ge=this.parse_variables_process(ge,i,!1,t,"field_help",o).output;if(r)switch(t.type){case"range":ge="#value"}var ye=this.get_help_position(t),we=this.get_field_value_fallback(t.type,m,"class_help_"+("bottom"==ye?"post":"pre"),[],!1,f);be.id=n,be.help_id=me,be.help_class=we.join(" "),be.help=ge,le.help_class=we.join(" ");var ke=!r&&this.get_object_meta_value(t,"invalid_feedback_render",!1,!1,!0),xe=!1;if(ke){var je=e.extend(!0,{},le),Se=this.form_id_prefix+"invalid-feedback-"+t.id+l,Fe=this.get_field_value_fallback(t.type,m,"class_invalid_feedback",[],!1,f),We=(xe=this.get_field_value_fallback(t.type,m,"invalid_feedback_last_row",!1,!1,f),this.get_object_meta_value(t,"invalid_feedback","",!1,!0));""==We&&(We=this.get_form_invalid_feedback_mask()),We=this.get_invalid_feedback_mask_parsed(We,t.label),je.invalid_feedback_id=Se,je.invalid_feedback_class=Fe.join(" "),je.invalid_feedback=We,je.attributes="";var Oe=this.mask_parse(O,je)}else Se=!1,Oe="";if(le.invalid_feedback=Oe,fe.invalid_feedback=Oe,le.attributes="",r)b=d.filter(function(e){return-1!=b.indexOf(e)});if(b.length>0){var Me=this.get_attributes(t,b,!1,i);le.attributes+=" "+Me.attributes,b=Me.mask_attributes,s=Me.attribute_values}!1!==i&&(le.attributes+=' data-repeatable-index="'+this.esc_attr(i)+'"');var Pe="",Ie=!1,Ne=!1;switch(t.type){case"select":case"price_select":case"checkbox":case"price_checkbox":case"radio":case"price_radio":if(Ie=this.get_object_meta_value(t,t.type+"_cascade",!1)){Ne=parseInt(this.get_object_meta_value(t,t.type+"_cascade_field_filter",!1),10);var ze=parseInt(this.get_object_meta_value(t,t.type+"_cascade_field_id",!1),10);if(ze>0){var De=' data-cascade-field-id="'+this.esc_attr(ze)+'"';switch(t.type){case"select":case"price_select":le.attributes+=De;break;case"checkbox":case"price_checkbox":case"radio":case"price_radio":Pe=De}}}var qe=this.get_object_meta_value(t,"select2_ajax",!1);(Ie||qe)&&a&&("object"!=typeof a&&(a=[a]),le.attributes+=' data-wsf-populate="'+this.esc_attr(JSON.stringify(a))+'"')}le.attributes=this.custom_attributes(le.attributes,t,"field",i);var Te=this.get_object_meta_value(t,"orientation",!1);if("grid"==Te)var Ce=this.get_field_value_fallback(t.type,m,"class_orientation_wrapper",[],!1,f),$e=this.get_field_value_fallback(t.type,m,"class_orientation_row",[],!1,f),Ae=Ce.join(" "),Ee=this.column_class_array(t,"orientation_breakpoint"),Ye=(Ee=$e.concat(Ee)).join(" ");fe.attributes="";var Ue=e.extend(!0,[],this.get_field_value_fallback(t.type,m,"mask_field_label_attributes",[],!1,f));if(r)Ue=p.filter(function(e){return-1!=Ue.indexOf(e)});if(Ue.length>0){Me=this.get_attributes(t,Ue,!1,i);fe.attributes+=Me.attributes,Ue=Me.mask_attributes}var Re="",Je=this.get_object_value(u,"data_source",!1),Le=0,He=!1!==Je;if(He){if(void 0===Je.type)He=!1;else var Ze=Je.type;if(void 0===Je.id)He=!1;else var Be=Je.id}if(He){switch(Ze){case"data_grid":var Ge=this.get_object_meta_value(t,Be,!1)}if(!1===Ge&&(He=!1),void 0===Ge.columns)He=!1;else var Qe=Ge.columns}if(He){var Ke=this.get_field_value_fallback(t.type,m,"mask_group","",!1,f),Ve=this.get_field_value_fallback(t.type,m,"mask_group_wrapper","",!1,f),Xe=this.get_field_value_fallback(t.type,m,"mask_group_label","",!1,f),et=this.get_field_value_fallback(t.type,m,"mask_group_always",!1,!1,f),tt=this.get_field_value_fallback(t.type,m,"mask_row","",!1,f),at=this.get_field_value_fallback(t.type,m,"mask_row_placeholder","",!1,f),rt=this.get_field_value_fallback(t.type,m,"mask_row_field","",!1,f),it=this.get_field_value_fallback(t.type,m,"mask_row_label","",!1,f),st=this.get_field_value_fallback(t.type,m,"mask_row_lookups",[],!1,f),_t=this.get_field_value_fallback(t.type,m,"datagrid_column_value",!1,!1,f),ot=this.get_field_value_fallback(t.type,m,"mask_row_default","",!1,f),lt=this.get_field_value_fallback(t.type,m,"mask_row_required"," required data-required",!1,f),nt=this.get_field_value_fallback(t.type,m,"mask_row_disabled"," disabled",!1,f),ct=(this.get_field_value_fallback(t.type,m,"mask_row_visible"," visible",!1,f),this.get_object_meta_value(t,"data_grid_rows_randomize","",!1,!0));if(ct)this.get_object_meta_value(t,"data_source_term_hierarchy","",!1,!0)&&(ct=!1);var dt=this.get_object_meta_value(t,"placeholder_row","",!1,!0),pt=this.get_object_meta_value(t,"multiple","",!1,!0);if(""!=dt&&!pt){var ut=e.extend(!0,{},le);ut.value=dt,Re+=this.mask_parse(at,ut)}_&&"object"!=typeof a&&("string"!=typeof a&&(a=a.toString()),a=[a]);var ht=_&&void 0!==a.indexOf,ft=[];for(var mt in st)if(st.hasOwnProperty(mt)){if(ft[zt=st[mt]]=!1,!1===(Yt=this.get_object_meta_value(t,zt,!1,!1,!0))){if(void 0===e.WS_Form.meta_keys[zt])continue;var vt;(Yt=void 0!==(vt=e.WS_Form.meta_keys[zt]).d?vt.d:0)>Qe.length&&(Yt=0)}var bt=!1;for(var gt in Qe){if(Qe.hasOwnProperty(gt))if(Qe[gt].id==Yt){bt=gt;break}}bt&&(ft[zt]=bt)}var yt=!1;if(!1!==Ne){bt=!1;for(var gt in Qe){if(Qe.hasOwnProperty(gt))if(Qe[gt].id==Ne){yt=gt;break}}}if(void 0===Ge.groups)return this.error("error_data_source_groups"),"";var wt=Ge.groups;Object.keys(wt).length;for(var kt in ct&&(wt=this.array_randomize(wt)),wt)if(wt.hasOwnProperty(kt)){var xt=e.extend(!0,{},le);xt.group_id=this.form_id_prefix+"datagrid-"+t.id+"-group-"+kt+l;var jt=wt[kt];if(null!=jt&&"object"==typeof jt){if(void 0===jt.label)return this.error("error_data_group_label"),"";switch(t.type){case"select":case"price_select":var St=!0;break;default:St=void 0===jt.label_render||jt.label_render}if(St){var Ft=e.extend(!0,{},le);
7Ft.group_label=jt.label,Ft.label_row_id=this.form_id_prefix+"label-"+t.id+"-group-"+kt+l,xt.group_label=this.parse_variables_process(this.mask_parse(Xe,Ft),i).output}else xt.group_label="";xt.disabled=void 0!==jt.disabled&&"on"==jt.disabled?" disabled":"";var Wt=void 0!==jt.mask_group&&"on"==jt.mask_group||et;Wt&&j&&(x="");var Ot="";if(void 0!==jt.rows){var Mt=JSON.parse(JSON.stringify(jt.rows)),Pt=this.get_object_meta_value(t,"select_all","");if(("checkbox"==t.type||"price_checkbox"==t.type)&&"on"==Pt){var It=!1,Nt=!1;for(var zt in ft)if(ft.hasOwnProperty(zt)){var Dt=ft[zt];"checkbox_field_value"==zt&&(It=Dt),"checkbox_field_label"==zt&&(Nt=Dt),"checkbox_price_field_value"==zt&&(It=Dt),"checkbox_price_field_label"==zt&&(Nt=Dt)}Pt={id:0,default:"",required:"",hidden:"",disabled:"",select_all:!0,data:[]};var qt=this.get_object_meta_value(t,"select_all_label","");""==qt&&(qt=this.language("select_all_label")),Pt.data[It]=qt,Pt.data[Nt]=qt,Mt.unshift(Pt)}for(var Tt in ct&&(Mt=this.array_randomize(Mt)),Mt)if(Mt.hasOwnProperty(Tt)){var Ct=Mt[Tt];if(null!==Ct&&"object"==typeof Ct&&"object"==typeof Ct.data){var $t=!1;if(!1!==yt)$t=void 0!==Ct.data[yt]&&Ct.data[yt];var At=!xe||Tt==Mt.length-1,Et=e.extend(!0,{},le);for(var zt in Et.data_grid_row_value="",Et.data_grid_row_action_variable="",Et.data_grid_row_label="",Et.data_grid_row_price="",Et.data_grid_row_price_currency="",Et.data_grid_row_woocommerce_cart="",ft){if(ft.hasOwnProperty(zt))if(Et[zt]="",!1!==(bt=ft[zt])&&void 0!==Ct.data[bt]){var Yt;switch(null===(Yt=Ct.data[bt])&&(Yt=""),Yt=this.parse_variables_process(Yt.toString(),i,!1,t,"data_grid_row",o).output,Et[zt+"_html"]=this.esc_html(Yt),t.type){case"range":case"price_range":var Ut=this.get_object_meta_value(t,"min",0);(""==Ut||isNaN(Ut))&&(Ut=0);var Rt=this.get_object_meta_value(t,"max",100);(""==Rt||isNaN(Rt))&&(Rt=100);var Jt=this.get_number(Yt,!0),Lt=parseFloat(Rt)-parseFloat(Ut),Ht=Lt>0?(Jt-Ut)/Lt*100:0;Et[zt+"_percentage"]=Ht,-1!==zt.indexOf("_field_percentage")&&(Et.data_grid_row_value_percentage=Ht)}Et[zt+"_compare"]=this.esc_html(Yt);var Zt=!1;if(void 0!==e.WS_Form.meta_keys[zt]){var Bt=e.WS_Form.meta_keys[zt];void 0!==Bt.h&&Bt.h&&(Yt=this.esc_html(Yt));Zt=void 0!==Bt.pr&&Bt.pr}if(Zt){var Gt=this.get_number(Yt),Qt=zt+"_currency",Kt=this.get_price(Gt);Et[Qt]=Kt,Et[zt]=Gt,-1!==zt.indexOf("_price_field_price")&&(Et.data_grid_row_price=Gt),-1!==Qt.indexOf("_price_field_price_currency")&&(Et.data_grid_row_price_currency=Kt)}else Et[zt]=Yt;-1!==zt.indexOf("_field_value")&&(Et.data_grid_row_value=Yt),-1!==zt.indexOf("_field_parse_variable")&&(Et.data_grid_row_action_variable=Yt),-1!==zt.indexOf("_field_label")&&(Et.data_grid_row_label=Yt),-1!==zt.indexOf("_field_wc")&&(Et.data_grid_row_woocommerce_cart=Yt)}}void 0!==u.mask_row_value&&(Et.row_value=this.mask_parse(u.mask_row_value,Et),Et.row_value.indexOf("#")>-1&&(Et.row_value=this.mask_parse(Et.row_value,Et))),void 0!==u.mask_row_price&&(Et.row_price=this.mask_parse(u.mask_row_price,Et)),Ct.select_all?Et.row_id=this.form_id_prefix+"field-"+t.id+"-group-"+kt+"-row-"+Ct.id+l:Et.row_id=this.form_id_prefix+"field-"+t.id+"-row-"+Ct.id+l,Et.data_id=Ct.id;var Vt=e.extend(!0,{},Et),Xt=e.extend(!0,{},Et);Xt.label_id=this.form_id_prefix+"label-"+t.id+l,Xt.label_row_id=this.form_id_prefix+"label-"+t.id+"-row-"+Ct.id+l;var ea=[];(!_&&Ct.default||_&&!1!==_t&&ht&&a.indexOf(Et[_t+"_compare"])>-1||_&&void 0!==Et.row_value&&ht&&a.indexOf(Et.row_value)>-1)&&(ea.default=ot),Ct.disabled&&(ea.disabled=nt),Ct.required&&(ea.required=lt),ea.dedupe_value_scope=T,ea.hidden_bypass=C,ea.exclude_cart_total=$,ea.ecommerce_calculation_persist=q,Et.attributes=Pe,Xt.attributes="",Vt.attributes="";var ta=e.extend(!0,[],ea);if(!r){var aa="horizontal"==Te&&this.get_field_value_fallback(t.type,m,"class_inline",!1,!1,f);!1!==aa&&(ta.class=aa.join(" "));var ra=this.get_field_value_fallback(t.type,m,"class_row",!1,!1,f);if(!1!==ra&&(ta.class=!1!==aa?ta.class+" "+ra.join(" "):ra.join(" ")),Ct.disabled){var ia=this.get_field_value_fallback(t.type,m,"class_row_disabled",!1,!1,f);!1!==ia&&(ta.class+=" "+ia.join(" "))}}var sa=e.extend(!0,[],this.get_field_value_fallback(t.type,m,"mask_row_attributes",[],!1,f));if(sa.length>0){Me=this.get_attributes(t,sa,ta,i);Et.attributes+=" "+Me.attributes}if(!1!==$t&&(Et.attributes+=' data-cascade-value="'+this.esc_attr($t)+'"'),void 0!==Ct.hidden&&Ct.hidden&&!r)switch(t.type){case"select":continue;default:Et.attributes+=' style="display: none;"'}"grid"==Te&&""!=Ye&&(Et.attributes=this.attribute_modify(Et.attributes,"class",Ye,!0));ta=e.extend(!0,[],ea);var _a=this.get_field_value_fallback(t.type,m,"class_row_field_label",!1,!1,f);!1!==_a&&(ta.class=_a.join(" "));var oa=e.extend(!0,[],this.get_field_value_fallback(t.type,m,"mask_row_label_attributes",[],!1,f));if(r)oa=p.filter(function(e){return-1!=oa.indexOf(e)});if(oa.length>0){Me=this.get_attributes(t,oa,ta,i);Xt.attributes+=" "+Me.attributes}ta=e.extend(!0,[],ea);var la=this.get_field_value_fallback(t.type,m,"class_row_field",!1,!1,f);!1!==la&&(ta.class=la.join(" ")),r||""==Z||(ta.class+=" "+Z.trim()),ta.aria_labelledby=Xt.label_row_i
7d,(!_&&Ct.default||_&&!1!==_t&&ht&&a.indexOf(Et[_t+"_compare"])>-1)&&(ta.default=ot),Ct.disabled&&(ta.disabled=nt),Ct.required&&(ta.required=lt),ta.required_row=s.required;var na=e.extend(!0,[],this.get_field_value_fallback(t.type,m,"mask_row_field_attributes",[],!1,f));if(r)na=d.filter(function(e){return-1!=na.indexOf(e)});if(na.length>0){Me=this.get_attributes(t,na,ta,i);Vt.attributes+=" "+Me.attributes}if(""!=Vt.attributes&&(Vt.attributes=" "+Vt.attributes),void 0!==Ct.select_all&&(Vt.attributes+=" data-wsf-select-all"),void 0!==Ct.hierarchy&&""==Te&&!ct)switch(t.type){case"checkbox":case"price_checkbox":case"radio":case"price_radio":Et.attributes+=' data-wsf-hierarchy="'+this.esc_attr(Ct.hierarchy)+'"';break;case"select":case"price_select":Ct.hierarchy>0&&(Et.select_field_label=" ".repeat(Ct.hierarchy)+Et.select_field_label)}if(ke&&!xe)if(Se=this.form_id_prefix+"invalid-feedback-"+t.id+"-row-"+Ct.id+l,je.invalid_feedback_id=Se,ke)Oe=this.mask_parse(O,je);else Oe="";Vt.invalid_feedback=At?Oe:"",Xt.invalid_feedback=At?Oe:"";var ca=this.mask_parse(rt,Vt);Xt.row_field=ca,Et.row_field=ca;var da=this.mask_parse(it,Xt);Et.row_label=da,Ot+=this.mask_parse(tt,Et),Le++}}}if(""!=Ve){var pa={group:Ot};"grid"==Te&&""!=Ae&&(pa.attributes=' class="'+this.esc_attr(Ae)+'"'),Ot=this.mask_parse(Ve,pa)}!1!==Ke&&Wt?(xt.group=Ot,Re+=this.mask_parse(Ke,xt)):Re+=Ot}}}if(le.datalist=Le>0?Re:"",b.length>0){ta=[];void 0!==xt&&void 0!==xt.group_id&&Le>0&&(ta.list=xt.group_id),""===this.get_object_meta_value(t,"aria_label",!1,!1,!0)&&(h&&-1!==x.indexOf("#attributes")?ta.aria_labelledby=this.form_id_prefix+"label-"+t.id+l:ta.aria_label=t.label),ve&&(ta.aria_describedby=me),!1!==(B=this.get_field_value_fallback(t.type,m,"class_field",!1,!1,f))&&(ta.class=B.join(" ")),""!=Z&&(ta.class+=" "+Z.trim()),""!=(Me=this.get_attributes(t,b,ta,i)).attributes&&(le.attributes+=" "+Me.attributes)}if(Ue.length>0){ta=[];var ua=this.get_field_value_fallback(t.type,m,"class_field_label",!1,!1,f);!1!==ua&&(ta.class=ua.join(" ")),""!=(Me=this.get_attributes(t,Ue,ta,i)).attributes&&(fe.attributes+=" "+Me.attributes)}if(be.help_append_separator=ve?this.mask_parse(W,be):"",""!=F){be.text_clear=this.get_object_meta_value(t,"text_clear",""),""==be.text_clear&&(be.text_clear=this.language("clear")),be.text_reset=this.get_object_meta_value(t,"text_reset",""),""==be.text_reset&&(be.text_reset=this.language("reset"));var ha=this.mask_parse(F,be)}else ha="";be.help_append=ha,be.attributes="";var fa=ve||""!=ha?this.mask_parse(S,be):"";le.pre_help=fe.pre_help="bottom"==ye?"":fa,le.post_help=fe.post_help="bottom"==ye?fa:"",le.help=fa,fe.help=fa,""!=le.attributes&&(le.attributes=" "+le.attributes.trim()),""!=fe.attributes&&(fe.attributes=" "+fe.attributes.trim());var ma=this.mask_parse(x,fe);if(""!=ma&&!g){var va=this.get_field_value_fallback(t.type,m,"mask_field_label_wrapper",!1,!1,f);if(!1!==va){var ba={label:ma};ma=this.mask_parse(va,ba)}}var ga=-1!==x.indexOf("#field");switch(m){case"inside":case"bottom":le.pre_label="",le.post_label=ga?le.label:ma;break;case"top":le.pre_label=ga?le.label:ma,le.post_label="";break;default:le.pre_label="",le.post_label="",fe.pre_label="",fe.post_label=""}if(""!==H||""!==E){var ya=e.extend(!0,{},le);ya.invalid_feedback=le.invalid_feedback,ya.pre_help=le.pre_help,ya.post_help=le.post_help,ya.pre_label=le.pre_label,ya.post_label=le.post_label,le.invalid_feedback="",le.pre_help="",le.post_help="",le.pre_label="",le.post_label="",ya.help=le.help,le.help=""}var wa=this.mask_parse(w,le);if(""!==H||""!==E){var ka=this.get_field_value_fallback(t.type,m,"col_small_prepend_factor",!1,!1,f),xa=this.get_field_value_fallback(t.type,m,"col_small_append_factor",!1,!1,f);if(!1!==ka&&!1!==xa){var ja=""!==H?Math.round(ie*ka,0):0;ya.col_small_prepend=ja;var Sa=""!==E?Math.round(ie*xa,0):0;ya.col_small_append=Sa,ya.col_small_field=ie-(ja+Sa)}ya.field=wa;var Fa=this.get_field_value_fallback(t.type,m,"mask_field_input_group_field","#field",!1,f);if(""!==Fa&&(wa=this.mask_parse(Fa,ya)),""!==H){ya.prepend=H;var Wa=this.get_field_value_fallback(t.type,m,"mask_field_input_group_prepend","#prepend",!1,f);
7if(""!==Wa)wa=this.mask_parse(Wa,ya)+wa}if(""!==E){ya.append=E;var Oa=this.get_field_value_fallback(t.type,m,"mask_field_input_group_append","#append",!1,f);if(""!==Oa)wa+=this.mask_parse(Oa,ya)}var Ma=this.get_field_value_fallback(t.type,m,"mask_field_input_group","#field",!1,f),Pa=[];""!==H&&Pa.push("wsf-input-group-has-prepend"),""!==E&&Pa.push("wsf-input-group-has-append");var Ia=Pa.join(" ");Ia&&(Ia=" "+Ia),ya.css_input_group=Ia,ya.field=wa,wa=this.mask_parse(Ma,ya)}if(ga&&(fe.field=wa,ma=this.mask_parse(x,fe),wa="",fe.field=""),-1!==w.indexOf("#label")&&(le.label=ma,wa=this.mask_parse(w,le),ma="",le.label=""),""!=wa&&!g){var Na=this.get_field_value_fallback(t.type,m,"mask_field_wrapper",!1,!1,f);if(!1!==Na){var za={field:wa};wa=this.mask_parse(Na,za)}}switch(m){case"right":wa+=ma;break;case"left":wa=ma+wa;break;default:ga&&(wa=ma)}return le.field=wa,this.mask_parse(y,le)},e.WS_Form.prototype.attribute_modify=function(t,a,r,i){var s=this,_=!1,o="";return e("<div "+t+" />").each(function(){e.each(this.attributes,function(){if(this.specified){var e=this.name,t=this.value;e==a&&(i?t+=" "+r:t=r,t.trim(),_=!0),o+=" "+e,""!==t&&(o+='="'+s.esc_attr(t)+'"')}})}),_||(o+=" "+a,""!==r&&(o+='="'+this.esc_attr(r)+'"')),o},e.WS_Form.prototype.form_help_value=function(t){var a=this;void 0===t&&(t=this.form_canvas_obj),e('input[type="range"]:not([data-init-help-value]),meter:not([data-init-help-value])',t).each(function(){a.form_help_value_render(e(this))&&(e(this).on("change input",function(){a.form_help_value_render(e(this))}),e(this).attr("data-init-help-value",""))})},e.WS_Form.prototype.form_help_value_render=function(t){var a=t.attr("id"),r=t.closest("[data-type]"),i=r.attr("data-id"),s=r.attr("data-repeatable-index"),_=void 0!==s?"-repeat-"+s:"",o=this.field_data_cache[i],l=this.get_object_meta_value(o,"help",""),n=!1;if(void 0!==t.attr("data-fill-lower-track")){var c=parseFloat(t[0].min||"0"),d=parseFloat(t[0].max||"100"),p=parseFloat(t[0].value||c),u=d-c,h=u>0?(p-c)/u*100+"%":"0%";e("#"+a).get(0).style.setProperty("--wsf-fill-lower-track",h),n=!0}if(-1!==l.indexOf("#value")){var f={id:a,value:t.val()},m=this.mask_parse(l,f),v=(m=this.parse_variables_process(m,s,!1,o,"field_help").output,this.form_id_prefix+"help-"+i+_);e("#"+v).html(m),n=!0}return n},e.WS_Form.prototype.get_attributes=function(t,a,r,i){"object"!=typeof r&&(r=!1);var s=[],_=[];if(!1!==a)for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];if(void 0!==e.WS_Form.meta_keys[l]){var n=e.WS_Form.meta_keys[l];if(this.is_admin)var c=void 0!==n.mask?n.mask:"",d=void 0!==n.mask_disregard_on_empty&&n.mask_disregard_on_empty,p=void 0!==n.mask_disregard_on_zero&&n.mask_disregard_on_zero,u=void 0!==n.default?n.default:"";else c=void 0!==n.m?n.m:"",d=void 0!==n.e&&n.e,p=void 0!==n.z&&n.z,u=void 0!==n.d?n.d:"";if(!1!==r)if(void 0!==r[l])var h=r[l].trim();else h="";else{if(this.is_admin)var f=void 0!==n.key?n.key:l;else f=void 0!==n.k?n.k:l;var m=void 0!==n.c&&n.c;if(!1!==m){h=this.get_object_meta_value(t,f,u,!1,!1);h=this.parse_variables_process(h,i,!1,t,m).output}else h=this.get_object_meta_value(t,f,u,!1,!0);if(""==h&&void 0!==n.g){var v=n.g;void 0!==e.WS_Form.settings_plugin[v]&&e.WS_Form.settings_plugin[v]&&(h=e.WS_Form.settings_plugin[v])}_[f]=h}h=this.esc_html(h);var b=this.mask_parse(c,{value:h});(d&&""!=h||!d)&&(p&&0!=parseInt(h,10)||!p)&&(s.push(b),delete a[o])}}return a=this.array_remove_empty(a),{attributes:s.join(" "),mask_attributes:a,attribute_values:_}},e.WS_Form.prototype.get_number=function(t,a,r,i){if(void 0===a&&(a=0),void 0===r&&(r=!0),void 0===i&&(i=!1),"number"==typeof t&&(t=t.toString()),"string"!=typeof t)return 0;(t=t.trim()).includes(ws_form_settings.currency_symbol)&&(r=!0);var s=e.WS_Form.settings_plugin.price_decimal_separator;if(r){var _=e.WS_Form.settings_plugin.price_thousand_separator,o=ws_form_settings.currency_symbol;t.includes("&")&&(t=this.parse_html_entities(t)),t=t.replace(o,"");var l=new RegExp("[^0-9-"+s+"]","g");if(t=t.replace(l,""),""!==s&&""!==_&&s===_){if(t.substr(-3,1)===s){var n=t.length-3;t=t.substr(0,n)+"[dec]"+t.substr(n+1)}t=(t=t.replace(_,"")).replace("[dec]",".")}else""!==s&&(t=t.replace(s,"."))}else""!==s&&(t=t.replace(s,"."));var c=""===t.trim()?a:isNaN(t)?a:parseFloat(t);return!1!==i&&(c=this.get_number_rounded(parseFloat(c),i)),c},e.WS_Form.prototype.get_number_rounded=function(e,t){return Number(Math.round(e+"e"+t)+"e-"+t)}
7,e.WS_Form.prototype.get_number_to_step=function(e,t){if(isNaN(t))return e;t||(t=1);var a=1/t;return Math.round(e*a)/a},e.WS_Form.prototype.get_float=function(e,t){return void 0===t&&(t=0),"number"==typeof e&&(e=e.toString()),"string"!=typeof e?0:(e=e.trim(),parseFloat(e))},e.WS_Form.prototype.get_currency=function(){var t={},a=parseInt(e.WS_Form.settings_plugin.price_decimals,10);switch(t.prefix=ws_form_settings.currency_symbol,t.suffix="",e.WS_Form.settings_plugin.currency_position){case"right":t.prefix="",t.suffix=ws_form_settings.currency_symbol;break;case"left_space":t.prefix=ws_form_settings.currency_symbol+" ";break;case"right_space":t.prefix="",t.suffix=" "+ws_form_settings.currency_symbol}return t.decimals=a<0?0:a,t.decimal_separator=e.WS_Form.settings_plugin.price_decimal_separator,t.thousand_separator=e.WS_Form.settings_plugin.price_thousand_separator,t},e.WS_Form.prototype.get_price=function(e,t,a){return void 0===t&&(t=this.get_currency()),void 0===a&&(a=!0),"number"!=typeof e&&(e=parseFloat(e)),(a?t.prefix:"")+this.replace_all(this.replace_all(e.toFixed(t.decimals).replace(/\B(?=(\d{3})+(?!\d))/g,"[thousand]"),".",t.decimal_separator),"[thousand]",t.thousand_separator)+(a?t.suffix:"")},e.WS_Form.prototype.get_slug=function(e){return e.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-")},e.WS_Form.prototype.parse_html_entities=function(e){return e.replace(/&#([0-9]{1,3});/gi,function(e,t){var a=parseInt(t,10);return String.fromCharCode(a)})},e.WS_Form.prototype.form_add_hidden_input=function(t,a,r,i,s,_){var o=e('input[name="'+this.esc_selector(t)+'"]',this.form_canvas_obj);o.length&&-1===t.indexOf("[]")?o.val(a):(void 0===a&&(a=""),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===_&&(_="hidden"),this.form_canvas_obj.append('<input type="'+this.esc_attr(_)+'" name="'+this.esc_attr(t)+'" value='+(s?"'":'"')+this.esc_attr(a)+(s?"'":'"')+(!1!==r?' id="'+this.esc_attr(r)+'"':"")+(!1!==i?" "+i:"")+" />"))},e.WS_Form.prototype.get_part_id=function(e,t,a){void 0===t&&(t=!1),void 0===a&&(a="field");var r=!1!==t?"-repeat-"+t:"";return this.form_id_prefix+a+"-"+e+r},e.WS_Form.prototype.get_field_name=function(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);return this.field_name_prefix+e+(!1!==t?a?"_"+t:"["+t+"]":"")},e.WS_Form.prototype.is_iterable=function(e){return null!=e&&("object"==typeof e&&"function"==typeof e[Symbol.iterator])},e.WS_Form.prototype.is_integer=function(e){return!isNaN(e)&&/^\d+\.?\d*$/.test(e)},e.WS_Form.prototype.is_invalid=function(e){return!e[0]||!e[0].validity||!e[0].validity.valid},e.WS_Form.prototype.is_valid=function(e){return!(!e[0]||!e[0].validity)&&e[0].validity.valid},e.WS_Form.prototype.replace_all=function(e,t,a){return void 0===a?e.toString():e.split(t).join(a)},e.WS_Form.prototype.array_remove_empty=function(e){if("object"!=typeof e)return e;var t=[];for(var a in e)e.hasOwnProperty(a)&&null!==e[a]&&t.push(e[a]);return t},e.WS_Form.prototype.attribute_add_item=function(e,t,a){var r=e.attr(t);void 0!==r?-1===r.indexOf(a)&&e.attr(t,this.esc_attr(a)+(r?" ":"")+r):e.attr(t,this.esc_attr(a))},e.WS_Form.prototype.attribute_remove_item=function(e,t,a){var r=e.attr(t);if(void 0!==r&&-1!==r.indexOf(a)){var i=r.split(" "),s=this;(r=(i=i.filter(function(e){return e!==s.esc_attr(a)})).join(" "))?e.attr(t,r):e.removeAttr(t)}},e.WS_Form.prototype.get_date=function(e,t,a){switch(t||(t="date"),a||(a=ws_form_settings.date_format),t){case"time":return new Date("01/01/1970 "+e);case"date":e+=" 00:00:00";break;case"week":case"month":return!1}var r=!1;switch(a){case"d/m/Y":r="/";break;case"d.m.Y":case"j.n.Y":r=".";break;case"d-m-Y":r="-"}if(!1!==r){switch(t){case"datetime-local":var i=e.indexOf(" "),s=e.substring(0,i),_=e.substring(i);break;default:s=e,_=""}var o=s.split(r);if(3===o.length){var l=parseInt(o[0],10);s=parseInt(o[1],10)+"/"+l+"/"+parseInt(o[2],10)}e=s+_}return e=e.replace(/(\d+)(st|nd|rd|th)/g,"$1"),e=this.replace_all(e,"."," "),e=this.replace_all(e," "," "),this.get_new_date(e)},e.WS_Form.prototype.get_new_date=function(e){return"-"!=e.charAt(4)||"-"!=e.charAt(7)||"T"==e.charAt(10)||":"!=e.charAt(13)||this.date_valid(e)||(e=e.replace(/-/g,"/")),"-"!=e.charAt(4)||this.date_valid(e)||-1===e.toLowerCase().indexOf("am")&&-1===e.toLowerCase().indexOf("pm")||(e=e.replace(/-/g,"/")),new Date(e)},e.WS_Form.prototype.date_valid=function(e){return e instanceof Date&&!isNaN(e.valueOf())},e.WS_Form.prototype.is_not_number=function(e){return isNaN(e)||"boolean"==typeof e||""===e},e.WS_Form.prototype.get_object_row_id=function(e){var t=e.object_row_id;return void 0!==t&&""!=t&&("object"==typeof t?(t=t.map(function(e){return parseInt(e,10)})).length||(t=!1):t=""!==t&&[parseInt(t,10)],t)}
7,e.WS_Form.prototype.get_date_by_type=function(e,t){if(!e)return"";var a=this.get_object_meta_value(t,"format_date",ws_form_settings.date_format);a||(a=ws_form_settings.date_format);var r=this.get_object_meta_value(t,"format_time",ws_form_settings.time_format);r||(r=ws_form_settings.time_format);var i=this.get_object_meta_value(t,"input_type_datetime","date");switch(i){case"datetime-local":case"date":switch(a){case"d/m/Y":var s=-1!==e.indexOf(" ")?[e.substring(0,e.indexOf(" ")),e.substring(e.indexOf(" ")+1)]:[e];e=(_=s[0].split("/"))[1]+"/"+_[0]+"/"+_[2]+(void 0!==s[1]?" "+s[1]:"");break;case"d-m-Y":s=-1!==e.indexOf(" ")?[e.substring(0,e.indexOf(" ")),e.substring(e.indexOf(" ")+1)]:[e];e=(_=s.split("-"))[1]+"/"+_[0]+"/"+_[2]+(void 0!==s[1]?" "+s[1]:"");break;case"d.m.Y":case"j.n.Y":var _;s=-1!==e.indexOf(" ")?[e.substring(0,e.indexOf(" ")),e.substring(e.indexOf(" ")+1)]:[e];e=(_=s[0].split("."))[1]+"/"+_[0]+"/"+_[2]+(void 0!==s[1]?" "+s[1]:"")}}switch("time"!==i&&4===e.indexOf("-")&&-1===e.indexOf(":")&&(e+=" 00:00:00"),i){case"date":return e=this.get_new_date(e),this.date_format(e,a);case"month":return e=this.get_new_date(e),this.date_format(e,"F Y");case"time":return e=this.get_new_date("1970-01-01 "+e),this.date_format(e,r);case"week":return e=this.get_new_date(e),this.language("week")+" "+this.date_format(e,"W, Y");default:return e=this.get_new_date(e),this.date_format(e,a+" "+r)}},e.WS_Form.prototype.number_format=function(e,t,a,r){if(void 0===e||null==e||!isFinite(e))return 0;if(!t){var i=e.toString().split(".").length;t=i>1?i:0}void 0===a&&(a="."),void 0===r&&(r=",");var s=(e=(e=parseFloat(e).toFixed(t)).replace(".",a)).split(a);return s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r),e=s.join(a)},e.WS_Form.prototype.date_format=function(e,t){var a=this,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],i=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={d:function(){var e=this.getDate();return(e<10?"0":"")+e},D:function(){return s[this.getDay()]},j:function(){return this.getDate()},l:function(){return _[this.getDay()]},N:function(){var e=this.getDay();return 0===e?7:e},S:function(){var e=this.getDate();return e%10==1&&11!==e?"st":e%10==2&&12!==e?"nd":e%10==3&&13!==e?"rd":"th"},w:function(){return this.getDay()},z:function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil((this-e)/864e5)},W:function(){var e=new Date(this.valueOf()),t=(this.getDay()+6)%7;e.setDate(e.getDate()-t+3);var a=e.valueOf();e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7);var r=1+Math.ceil((a-e)/6048e5);return r<10?"0"+r:r},F:function(){return i[this.getMonth()]},m:function(){var e=this.getMonth();return(e<9?"0":"")+(e+1)},M:function(){return r[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var e=this.getFullYear(),t=this.getMonth()+1;return 12===t&&(e=e++,t=0),new Date(e,t,0).getDate()},L:function(){var e=this.getFullYear();return e%400==0||e%100!=0&&e%4==0},o:function(){var e=new Date(this.valueOf());return e.setDate(e.getDate()-(this.getDay()+6)%7+3),e.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return Math.floor(1e3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){var e=this.getHours();return((e%12||12)<10?"0":"")+(e%12||12)},H:function(){var e=this.getHours();return(e<10?"0":"")+e},i:function(){var e=this.getMinutes();return(e<10?"0":"")+e},s:function(){var e=this.getSeconds();return(e<10?"0":"")+e},v:function(){var e=this.getMilliseconds();return(e<10?"00":e<100?"0":"")+e},e:function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},I:function(){for(var e=null,t=0;t<12;++t){var a=new Date(this.getFullYear(),t,1).getTimezoneOffset();if(null===e)e=a;else{if(a<e){e=a;break}if(a>e)break}}return this.getTimezoneOffset()===e|0},O:function(){var e=this.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+(0===Math.abs(e%60)?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},P:function(){var e=this.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+":"+(0===Math.abs(e%60)?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},T:function(){var e=this.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return e[e.length-1]},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return a.date_format(e,"Y-m-d\\TH:i:sP")},r:function(){return this.toString()},U:function(){return Math.floor(this.getTime()/1e3)}};return t.replace(/(\\?)(.)/g,function(t,a,r){return""===a&&o[r]?o[r].call(e):r})}}(jQuery) 8;!function(t){"use strict";t.WS_Form.prototype.set_is_admin=function(){return!1},t.WS_Form.prototype.init=function(){this.data_cache_build(),this.set_globals()},t.WS_Form.prototype.init_after_get_submit=function(e){t.WS_Form.debug_rendered&&(!1!==this.submit_auto_populate&&this.log("debug_action_get",this.submit_auto_populate.action_label),!1!==this.submit&&this.log("debug_submit_loaded")),this.form_build()},t.WS_Form.prototype.set_globals=function(){if(this.framework_id=t.WS_Form.settings_plugin.framework,this.framework=t.WS_Form.frameworks.types[this.framework_id],t.WS_Form.debug_rendered&&this.debug_info("debug_info_framework",this.framework.name),this.framework_fields=this.framework.fields.public,void 0!==this.form_obj.attr("action")){var e=this.form_obj.attr("action"),i=ws_form_settings.url_ajax_namespace+"/submit",a="rest_route="+encodeURIComponent("/"+ws_form_settings.url_ajax_namespace+"/submit");this.form_action_custom=-1===e.indexOf(i)&&-1===e.indexOf(a)}else this.form_action_custom=!0;var o=void 0!==this.framework.fields.public.class_form_validated?this.framework.fields.public.class_form_validated:[];
8if(this.class_validated=o.join(" "),this.selector_validated="."+o.join(",."),ws_form_settings.wsf_hash&&"object"==typeof ws_form_settings.wsf_hash){for(var r in ws_form_settings.wsf_hash)if(ws_form_settings.wsf_hash.hasOwnProperty(r)){var s=ws_form_settings.wsf_hash[r];void 0!==s.id&&void 0!==s.hash&&void 0!==s.token&&s.id==this.form_id&&this.hash_set(s.hash,s.token,!0)}}else this.hash_set(this.cookie_get("hash",""),!1,!0);this.visual_editor=void 0!==this.form_canvas_obj.attr("data-visual-builder");var _=this;if(this.hash){var n="submit/hash/"+this.hash+"/";this.token&&(n+=this.token+"/"),t.WS_Form.this.api_call(n,"GET",!1,function(t){void 0!==t.data&&(_.submit=t.data),_.init_after_get_submit(!0),_.submit=!1},function(t){_.read_json_populate(),_.init_after_get_submit(!1)})}else this.read_json_populate(),this.init_after_get_submit(!1)},t.WS_Form.prototype.read_json_populate=function(){"undefined"!=typeof wsf_form_json_populate&&void 0!==wsf_form_json_populate[this.form_id]&&(this.submit_auto_populate=wsf_form_json_populate[this.form_id])},t.WS_Form.prototype.log=function(e,i,a){return void 0===i&&(i=""),void 0===a&&(a=""),!!t.WS_Form.debug_rendered&&this.debug_audit_add("log",this.language(e,i,!1).replace(/%s/g,i),a)},t.WS_Form.prototype.error=function(e,i,a){void 0===i&&(i=""),void 0===a&&(a="");var o=this.language(e,i,!1).replace(/%s/g,i);return t.WS_Form.debug_rendered&&this.debug_audit_add("error",o,a),o},t.WS_Form.prototype.form_render=function(){if(this.form_timer(),"function"==typeof this.form_calc_log&&this.form_calc_log(),void 0!==this.form.meta.action)for(var t in this.form.meta.action)if(this.form.meta.action.hasOwnProperty(t)){var e=this.form.meta.action[t],i=e.id.toString();this.conditional_actions_run_action.push(i),e.save&&this.conditional_actions_run_save.push(i),e.submit&&this.conditional_actions_run_submit.push(i),"google"==e.conversion_type&&(this.action_ga=!0)}this.conditional_actions_changed=!1,this.signatures=[],this.signatures_by_name=[],this.recaptchas=[],this.recaptchas_v2_default=[],this.recaptchas_v2_invisible=[],this.recaptchas_v3_default=[],this.recaptchas_conditions=[],this.hcaptchas=[],this.hcaptchas_default=[],this.hcaptchas_invisible=[],this.turnstiles=[],this.turnstiles_default=[],this.form.meta.style_id&&void 0===this.form_obj.attr("data-wsf-style-id")&&this.form_obj.attr("data-wsf-style-id",this.form.meta.style_id),this.form_framework(),this.form_preview(),"function"==typeof this.form_tab&&this.form_tab(),"function"==typeof this.form_section_repeatable&&this.form_section_repeatable(),this.form_navigation(),"function"==typeof this.form_analytics&&this.form_analytics(),this.form_validation(),"function"==typeof this.form_select&&this.form_select(),"function"==typeof this.form_select_min_max&&this.form_select_min_max(),"function"==typeof this.form_select2&&this.form_select2(),"function"==typeof this.form_dedupe_value_scope&&this.form_dedupe_value_scope(),"function"==typeof this.form_checkbox_min_max&&this.form_checkbox_min_max(),"function"==typeof this.form_checkbox_select_all&&this.form_checkbox_select_all(),"function"==typeof this.form_radio_validation&&this.form_radio_validation(),this.form_character_word_count(),"function"==typeof this.form_tel&&this.form_tel(),"function"==typeof this.form_date&&this.form_date(),"function"==typeof this.form_color&&this.form_color(),"function"==typeof this.form_signature&&this.form_signature(),"function"==typeof this.form_ssn&&this.form_ssn(),this.form_honeypot(),"function"==typeof this.form_recaptcha&&this.form_recaptcha(),"function"==typeof this.form_hcaptcha&&this.form_hcaptcha(),"function"==typeof this.form_turnstile&&this.form_turnstile(),"function"==typeof this.form_email&&this.form_email(),this.form_label(),this.form_css_var(),"function"==typeof this.form_legal&&this.form_legal(),"function"==typeof this.form_rating&&this.form_rating(),"function"==typeof this.form_google_map&&this.form_google_map(),"function"==typeof this.form_google_address&&this.form_google_address(),"function"==typeof this.form_google_route&&this.form_google_route(),"function"==typeof this.form_ecommerce&&this.form_ecommerce(),"function"==typeof this.form_file&&this.form_file(),"function"==typeof this.form_conditional&&this.form_conditional(!0),"function"==typeof this.form_conversational&&this.form_conversational(),"function"==typeof this.form_progress&&this.form_progress(),this.form_help_value(),"function"==typeof this.form_textarea&&this.form_textarea(),"function"==typeof this.form_consent&&this.form_consent(),this.form_required(),this.form_inputmask(),"function"==typeof this.form_tracking&&this.form_tracking(),"function"==typeof this.form_password_visibility_toggle&&this.form_password_visibility_toggle(
8),"function"==typeof this.form_password_generate&&this.form_password_generate(),"function"==typeof this.form_password_strength_meter&&this.form_password_strength_meter(),this.form_credit_card(),this.form_transform(),this.form_bypass_enabled=!0,this.form_bypass(!1),this.form_validate_real_time(),"function"==typeof this.form_calc&&this.form_calc(),this.form_stat(),"function"==typeof this.form_cascade&&this.form_cascade(),"function"==typeof this.form_geo&&this.form_geo(),"function"==typeof this.form_tab_validation&&this.form_tab_validation(),this.form_accessibility(),"function"==typeof this.section_repeatable_hidden_field&&this.section_repeatable_hidden_field(),this.log("debug_form_rendered"),"function"==typeof this.form_loader_hide&&this.form_loader_hide(!1),this.trigger("rendered"),this.form_obj.attr("data-wsf-rendered",""),"function"==typeof this.styler&&this.styler(),"function"==typeof this.styler_scheme&&this.styler_scheme(!this.visual_editor,!0)},t.WS_Form.prototype.form_timer=function(){this.date_start=this.cookie_get("date_start",!1),(!1===this.date_start||isNaN(this.date_start)||""==this.date_start)&&(this.date_start=(new Date).getTime(),"on"==this.get_object_meta_value(this.form,"tracking_duration","")&&this.cookie_set("date_start",this.date_start,!1))},t.WS_Form.prototype.form_timer_reset=function(){this.date_start=!1,"on"==this.get_object_meta_value(this.form,"tracking_duration","")&&this.cookie_set("date_start","",!1)},t.WS_Form.prototype.trigger=function(e){var i="wsf-"+e;t(document).trigger(i,[this.form,this.form_id,this.form_instance_id,this.form_obj,this.form_canvas_obj,this.group_index]),this.log("log_trigger",i,"event");var a="wsf-"+e+"-instance-"+this.form_instance_id;t(window).trigger(a);var o="wsf-"+e+"-form-"+this.form_id;t(window).trigger(o)},t.WS_Form.prototype.form_framework=function(){if(void 0!==this.framework.form.public&&"object"==typeof this.framework.form.public.attributes)for(var e in this.framework.form.public.attributes){var i=this.framework.form.public.attributes[e];this.form_obj.attr(e,i)}if(void 0!==this.framework.init_js){var a={form_canvas_selector:"#"+this.form_obj_id},o=this.mask_parse(this.framework.init_js,a);try{t.globalEval("(function($) {\n"+o+"\n})(jQuery);")}catch(t){this.error("error_js",o)}}},t.WS_Form.prototype.form_reset=function(e){var i=this;for(var a in this.trigger("reset-before"),this.form_canvas_obj.removeClass(this.class_validated),this.form_obj[0].reset(),this.field_data_cache)if(this.field_data_cache.hasOwnProperty(a)){var o=this.field_data_cache[a],r=o.id,s=this.field_name_prefix+r,_=t.WS_Form.field_type_cache[o.type],n=void 0!==_.trigger?_.trigger:"change",c=t('[name="'+this.esc_selector(s)+'"], [name^="'+this.esc_selector(s)+'["]',this.form_canvas_obj);switch(o.type){case"textarea":c.each(function(){"function"==typeof i.textarea_set_value&&i.textarea_set_value(t(this),t(this).val()),t(this).trigger(n)});break;case"color":c.each(function(){t(this).trigger(n),"undefined"!=typeof Coloris&&t(this)[0].dispatchEvent(new Event("input",{bubbles:!0}))});break;case"file":c.each(function(){t(this).trigger(n)}),"function"==typeof i.form_file_dropzonejs_populate&&"undefined"!=typeof Dropzone&&t('[name="'+this.esc_selector(s)+'"][data-file-type="dropzonejs"], [name^="'+this.esc_selector(s)+'["][data-file-type="dropzonejs"]',this.form_canvas_obj).each(function(){i.form_file_dropzonejs_populate(t(this),!1)});break;default:c.each(function(){t(this).trigger(n)})}}"function"==typeof this.signatures_clear&&this.signatures_clear(),"function"==typeof this.recaptcha_reset&&this.recaptcha_reset(),"function"==typeof this.hcaptcha_reset&&this.hcaptcha_reset(),"function"==typeof this.turnstile_reset&&this.turnstile_reset(),"function"==typeof this.form_conditional&&this.form_conditional(),this.trigger("reset-complete")},t.WS_Form.prototype.form_clear=function(){var e=this;for(var i in this.trigger("clear-before"),this.form_canvas_obj.removeClass(this.class_validated),this.field_data_cache)if(this.field_data_cache.hasOwnProperty(i)){var a=this.field_data_cache[i],o=a.id,r=this.field_name_prefix+o,s=t.WS_Form.field_type_cache[a.type],_=void 0!==s.trigger?s.trigger:"change",n=t('[name="'+this.esc_selector(r)+'"], [name^="'+this.esc_selector(r)+'["]',this.form_canvas_obj);switch(a.type){case"checkbox":case"price_checkbox":case"radio":case"price_radio":n.each(function(){t(this).is(":checked")&&t(this).prop("checked",!1).trigger(_)});break;case"select":case"price_select":t('[name="'+this.esc_selector(r)+'"], [name^="'+this.esc_selector(r)+'["] option',this.form_canvas_obj).each(function(){t(this).is(":selected")&&(t(this).prop("selected",!1),t(this).closest("select").trigger(_))});break;case"textarea":n.each(function(){""!=t(this).val()&&(t(this).val("").trigger(_),"function"==typeof e.textarea_set_value&&e.textarea_set_value(t(this),""))});break;case"color":n.each(function(){""!=t(this).val()&&(t(this).val("").trigger(_),"undefined"!=typeof Coloris&&t(this)[0].dispatchEvent(new Event("input",{bubbles:!0})))});break;case"file":n.each(function(){""!=t(this).val()&&t(this).val("").trigger(_)}),"function"==typeof e.form_file_dropzonejs_populate&&"undefined"!=typeof Dropzone&&t('[name="'+this.esc_selector(r)+'"][data-file-type="dropzonejs"], [name^="'+this.esc_selector(r)+'["][data-file-type="dropzonejs"]',this.form_canvas_obj).each(function(){e.form_file_dropzonejs_populate(t(this),!0)});break;default:n.each(function(){""!=t(this).val()&&t(this).val("").trigger(_)})}}"function"==typeof this.signatures_clear&&this.signatures_clear(),"function"==typeof this.recaptcha_reset&&this.recaptcha_reset(),"function"==typeof this.hcaptcha_reset&&this.hcaptcha_reset(),"function"==typeof this.turnstile_reset&&this.turnstile_reset(),"function"==typeof this.form_conditional&&this.form_conditional(),this.trigger("clear-complete")},t.WS_Form.prototype.form_reload=function(){for(var e in this.form_events_reset)if(this.form_events_reset.hasOwnProperty(e)){var i=this.form_events_reset[e];i.obj.off(i.event)}this.form_obj.off(),this.form_canvas_obj.off(),this.form_events_reset=[],this.calc=[];var a=this;""!=this.hash?t.WS_Form.this.api_call("submit/hash/"+this.hash,"GET",!1,function(t){a.submit=t.data,a.form_reload_after_get_submit(!0),a.submit=!1},function(t){a.form_reload_after_get_submit(!1)}):(this.submit=!1,this.form_reload_after_get_submit(!1))},t.WS_Form.prototype.form_reload_after_get_submit=function(e){t('[data-wsf-message][data-wsf-instance-id="'+this.form_instance_id+'"]').remove(),this.form_canvas_obj.show(),this.form_canvas_obj.removeClass(this.class_validated),this.form_validation_real_time_hooks=[],this.form_canvas_obj.empty(),"function"==typeof this.form_loader&&this.form_loader(),"function"==typeof this.form_loader_show&&this.form_loader_show("render"),this.form_build()},t.WS_Form.prototype.form_hash_clear=function(){this.hash="",this.cookie_clear("hash"),t.WS_Form.debug_rendered&&(this.debug_info("debug_info_hash",this.language("debug_hash_empty")),this.debug_info("debug_info_submit_count",0)),this.log("log_hash_clear")},t.WS_Form.prototype.form_transform=function(){var e=this;t("[data-wsf-transform]:not([data-wsf-transform-init])",this.form_canvas_obj).each(function(){t(this).attr("data-wsf-transform-init","");var i=t(this).attr("data-wsf-transform");t(this).on("change input",function(){e.form_transform_process(t(this),i)}),e.form_transform_process(t(this),i)})},t.WS_Form.prototype.form_transform_process=function(t,e){var i=t.val();switch(t.attr("type")){case"email":var a=!1;break;default:a=!0}if(i&&"string"==typeof i){if(a)var o=t[0].selectionStart,r=t[0].selectionEnd;switch(e){case"uc":t.val(i.toUpperCase());break;case"lc":t.val(i.toLowerCase());break;case"capitalize":t.val(this.ucwords(i.toLowerCase()));break;case"sentence":t.val(this.ucfirst(i.toLowerCase()))}a&&t[0].setSelectionRange(o,r)}},t.WS_Form.prototype.form_credit_card=function(){t("input[data-credit-card]:not([data-init-credit-card])",this.form_canvas_obj).each(function(){t(this).attr("data-init-credit-card",""),t(this).on("input",function(){if(void 0!==t(this).inputmask){var e,i=t(this).val().replace(/\D/g,"");e=/^3[47]\d{0,13}$/.test(i)?"9999 999999 99999":/^3(?:0[0-5]|[68]\d)\d{0,11}$/.test(i)?"9999 999999 9999":/^\d{0,16}$/.test(i)?"9999 9999 9999 9999":"remove",t(this).attr("data-currentmask")!=e&&(t(this).attr("data-currentmask",e),t(this).inputmask(e,{placeholder:"",clearMaskOnLostFocus:!1}))}})})},t.WS_Form.prototype.form_email=function(){var e=this;t('inputa[type="email"]:not([data-init-email])',this.form_canvas_obj).each(function(){var i=e.get_field(t(this)),a=e.get_object_meta_value(i,"allow_deny",""),o=e.get_object_meta_value(i,"allow_deny_values",[]);""!==a&&-1!==["allow","deny"].indexOf(a)&&"object"==typeof o&&(e.form_email_allow_deny(t(this)),t(this).on("change",function(){e.form_email_allow_deny(t(this))})),t(this).attr("data-init-email","")})},t.WS_Form.prototype.form_email_allow_deny=function(t){var e=t.val();if(""!=e){var i=this.get_field(t),a=this.get_object_meta_value(i,"allow_deny",""),o=this.get_object_meta_value(i,"allow_deny_values",[]),r="deny"===a;for(var s in o)if(o.hasOwnProperty(s)){var _=o[s].allow_deny_value;new RegExp(_.replace("*",".*")+"$").test(e)&&(r="allow"===a)}if(r)this.set_invalid_feedback(t,"");else{var n=this.get_object_meta_value(i,"allow_deny_message","");n||(n=this.language("email_allow_deny_message")),this.set_invalid_feedback(t,n)}}},t.WS_Form.prototype.form_navigation=function(){var e=this,i=this.get_group_count();t('[data-action="wsf-tab_next"]',this.form_canvas_obj).each(function(){t(this).off("click");var a=t(this).closest("[data-group-index]").nextAll(":not([data-wsf-group-hidden])").first();i<=1||!a.length?t(this).prop("disabled",!0).attr("data-wsf-disabled",""):void 0!==t(this).attr("data-wsf-disabled")&&t(this).prop("disabled",!1).removeAttr("data-wsf-disabled"),void 0===t(this).attr("disabled")&&t(this).on("click",function(){var i=e.get_object_meta_value(e.form,"tab_validation"),o=e.get_object_meta_value(e.form,"tab_validation_show");if(i&&o){var r=e.get_group(t(this));r&&void 0===r.attr("data-wsf-validated")?(r.addClass(e.class_validated),e.form_accessibility(),e.get_object_meta_value(e.form,"invali
8d_field_focus",!0)&&e.get_field_elements(r).each(function(){if(e.is_invalid(t(this)))return t(this).focus().trigger("focus"),!1})):(r.removeClass(this.class_validated),"function"==typeof e.form_tab_group_index_new&&e.form_tab_group_index_new(t(this),a.attr("data-group-index")))}else"function"==typeof e.form_tab_group_index_new&&e.form_tab_group_index_new(t(this),a.attr("data-group-index"))})}),t('[data-action="wsf-tab_previous"]',this.form_canvas_obj).each(function(){t(this).off("click");var a=t(this).closest("[data-group-index]").prevAll(":not([data-wsf-group-hidden])").first();i<=1||!a.length?t(this).prop("disabled",!0).attr("data-wsf-disabled",""):void 0!==t(this).attr("data-wsf-disabled")&&t(this).prop("disabled",!1).removeAttr("data-wsf-disabled"),void 0===t(this).attr("disabled")&&"function"==typeof e.form_tab_group_index_new&&t(this).on("click",function(){e.form_tab_group_index_new(t(this),a.attr("data-group-index"))})}),this.form_canvas_obj.off("click",'[data-action="wsf-save"]').on("click",'[data-action="wsf-save"]',function(){var i=e.get_field(t(this));void 0!==i&&(e.get_object_meta_value(i,"validate_form","")?e.form_post_if_validated("save"):e.form_post("save"))}),this.form_canvas_obj.off("click",'[data-action="wsf-reset"]').on("click",'[data-action="wsf-reset"]',function(t){t.preventDefault(),e.form_reset()}),this.form_canvas_obj.off("click",'[data-action="wsf-clear"]').on("click",'[data-action="wsf-clear"]',function(){e.form_clear()})},t.WS_Form.prototype.get_group_index=function(t){var e=this.get_group(t);if(!1===e)return!1;var i=e.first().attr("data-group-index");return null!=i&&parseInt(i,10)},t.WS_Form.prototype.get_group_count=function(){t(".wsf-group-tabs",this.form_canvas_obj).children(":not([data-wsf-group-hidden])").length},t.WS_Form.prototype.get_group=function(t){if(this.get_group_count()<=1)return!1;var e=t.closest("[data-group-index]");return 0!=e.length&&e},t.WS_Form.prototype.get_group_id=function(t){var e=t.closest("[data-id]").attr("data-id");return void 0!==e&&parseInt(e,10)},t.WS_Form.prototype.get_section_id=function(t){var e=t.closest('[id^="'+this.form_id_prefix+'section-"]').attr("data-id");return void 0!==e&&parseInt(e,10)},t.WS_Form.prototype.get_section_repeatable_index=function(t){var e=t.closest('[id^="'+this.form_id_prefix+'section-"]').attr("data-repeatable-index");return e>0?parseInt(e,10):0},t.WS_Form.prototype.get_section_repeatable_suffix=function(t){var e=this.get_section_repeatable_index(t);return e?"-repeat-"+e:""},t.WS_Form.prototype.get_field_elements=function(e){return t("input,select,textarea",e).filter(':not([data-hidden],[data-hidden-section],[data-hidden-group],[disabled],[type="hidden"])')},t.WS_Form.prototype.get_field=function(t){var e=this.get_field_id(t);return!!e&&this.field_data_cache[e]},t.WS_Form.prototype.get_field_wrapper=function(t){return t.closest("[data-id]")},t.WS_Form.prototype.get_field_id=function(t){var e;return(e=t.closest("[data-type][data-id]").attr("data-id"))?parseInt(e,10):!!(e=t.attr("data-id-hidden"))&&parseInt(e,10)},t.WS_Form.prototype.get_field_type=function(t){var e=t.closest("[data-type]").attr("data-type");return void 0!==e&&e},t.WS_Form.prototype.get_field_object_row_id=function(t){var e=t.closest("[data-row-radio][data-row-id],[data-row-checkbox][data-row-id]");if(0==e.length)return!1;var i=e.attr("data-row-id");return void 0!==i&&parseInt(i,10)},t.WS_Form.prototype.get_label_obj=function(e){var i=this.get_field_id(e),a=this.get_section_repeatable_suffix(e);return t("#"+this.form_id_prefix+"label-"+i+a,this.form_canvas_obj)},t.WS_Form.prototype.get_checkbox_min_max_obj=function(e){var i=this.get_field_id(e),a=this.get_section_repeatable_suffix(e);return t("#"+this.form_id_prefix+"checkbox-min-max-"+i+a,this.form_canvas_obj)},t.WS_Form.prototype.get_checkbox_row_count=function(e){var i=this.get_field_wrapper(e),a=t('[data-row-checkbox]:not([style*="display: none"]) input:not([data-hidden])',i);return a?a.length:0},t.WS_Form.prototype.get_radio_row_count=function(e){var i=this.get_field_wrapper(e),a=t('[data-row-radio]:not([style*="display: none"]) input:not([data-hidden])',i);return a?a.length:0},t.WS_Form.prototype.get_help_obj=function(e){var i=this.get_field_id(e),a=this.get_section_repeatable_suffix(e);return t("#"+this.form_id_prefix+"help-"+i+a,this.form_canvas_obj)},t.WS_Form.prototype.get_invalid_feedback_obj=function(e,i){return t("#"+this.get_invalid_feedback_id(e,i))},t.WS_Form.prototype.get_invalid_feedback_id=function(t,e){var i=this.get_field_id(t),a=this.get_section_repeatable_suffix(t),o=e?"-row-"+e:"";return this.form_id_prefix+"invalid-feedback-"+i+o+a},t.WS_Form.prototype.get_invalid_feedback=function(t){return!(!t.length||void 0===t[0].validationMessage)&&t[0].val
8idationMessage},t.WS_Form.prototype.set_invalid_feedback=function(t,e,i){this.is_not_number(i)&&(i=0),"object"==typeof i&&void 0!==i[0]&&(i=i[0]);var a=this.get_invalid_feedback_obj(t,i),o=this.get_section_id(t),r=this.get_section_repeatable_index(t),s=this.get_field_id(t);!1===e&&(e=a.html()),t.length&&t[0].willValidate&&(""!==e?(void 0===this.validation_message_cache[o]&&(this.validation_message_cache[o]=[]),void 0===this.validation_message_cache[o][r]&&(this.validation_message_cache[o][r]=[]),void 0===this.validation_message_cache[o][r][s]&&(this.validation_message_cache[o][r][s]=[]),this.validation_message_cache[o][r][s][i]=e):void 0!==this.validation_message_cache[o]&&void 0!==this.validation_message_cache[o][r]&&void 0!==this.validation_message_cache[o][r][s]&&void 0!==this.validation_message_cache[o][r][s][i]&&delete this.validation_message_cache[o][r][s][i],t[0].setCustomValidity(e),this.form_validate_real_time_process(!1,!1)),a.length&&(""!==e?(void 0===this.invalid_feedback_cache[o]&&(this.invalid_feedback_cache[o]=[]),void 0===this.invalid_feedback_cache[o][r]&&(this.invalid_feedback_cache[o][r]=[]),void 0===this.invalid_feedback_cache[o][r][s]&&(this.invalid_feedback_cache[o][r][s]=[]),void 0===this.invalid_feedback_cache[o][r][s][i]&&(this.invalid_feedback_cache[o][r][s][i]=a.html()),a.html(e)):void 0!==this.invalid_feedback_cache[o]&&void 0!==this.invalid_feedback_cache[o][r]&&void 0!==this.invalid_feedback_cache[o][r][s]&&void 0!==this.invalid_feedback_cache[o][r][s][i]&&(a.html(this.invalid_feedback_cache[o][r][s][i]),delete this.invalid_feedback_cache[o][r][s][i]))},t.WS_Form.prototype.form_preview=function(){this.form_canvas_obj[0].hasAttribute("data-preview")&&this.form_add_hidden_input("wsf_preview","true")},t.WS_Form.prototype.form_honeypot=function(){if(this.get_object_meta_value(this.form,"honeypot",!1)){var e=""!=this.form.published_checksum?this.form.published_checksum:"honeypot_unpublished_"+this.form_id,i=t.WS_Form.settings_plugin.framework,a=(t.WS_Form.frameworks.types[i],this.framework.fields.public),o=void 0!==a.honeypot_attributes?" "+a.honeypot_attributes.join(" "):"",r='<label for="field_'+e+'" aria-hidden="true" style="position: absolute !important; '+(ws_form_settings.rtl?"right":"left")+': -9999em !important; height: 0 !important; margin: 0 !important; padding: 0 !important;">'+this.esc_html(e)+'<input type="text" id="field_'+this.esc_attr(e)+'" name="field_'+this.esc_attr(e)+'" value="" autocomplete="off" tab-index="-1" style="display: none !important;"'+o+"></label>";this.form_canvas_obj.append(r),this.log("log_honeypot","","spam-protect")}},t.WS_Form.prototype.get_css_var=function(t,e){void 0===e&&(e="");var i=getComputedStyle(this.form_obj[0]);if(!i)return e;var a=i.getPropertyValue(t);return void 0===a?e:a.trim()},t.WS_Form.prototype.form_css_var=function(){switch(this.get_css_var("--wsf-field-label-inside-mode","move")){case"hide":this.form_obj.addClass("wsf-label-position-inside-hide")}switch(this.get_css_var("--wsf-field-border-placement","all")){case"bottom":this.form_obj.addClass("wsf-field-border-placement-bottom")}},t.WS_Form.prototype.form_label=function(e){void 0===e&&(e=this.form_canvas_obj);var i=this;t(".wsf-label-position-inside:not([wsf-label-position-inside-init]):visible",e).each(function(){var e=t(".wsf-input-group-prepend",t(this)),a=t(".iti",t(this));if(e.length&&!a.length){var o=t("label",t(this)),r=parseFloat(o.css("left").replace("px",""))+e.outerWidth();o.css("left",r+"px")}var s=i.get_help_obj(t(this));if(s.length){var _=i.get_field_id(t(this)),n=i.field_data_cache[_];if("top"==i.get_help_position(n)){var c=parseFloat(s.outerHeight()),d=parseFloat(s.css("margin-bottom")),h=(o=i.get_label_obj(t(this)),parseFloat(o.css("top")));h+=c+d,o.css("top",h+"px")}}t(this).attr("wsf-label-position-inside-init","")})},t.WS_Form.prototype.form_required=function(){var e=this;if(!this.get_object_meta_value(this.form,"label_required",!1))return!1;if(""==(i=this.get_object_meta_value(this.form,"label_mask_required","",!0,!0))){var i,a=t.WS_Form.settings_plugin.framework,o=(t.WS_Form.frameworks.types[a],this.framework.fields.public);if(void 0===o.mask_required_label)return!1;if(""==(i=o.mask_required_label))return!1}t("label",this.form_canvas_obj).each(function(){var a=t(this).attr("for");
8if(void 0!==a){if(!(r=t('[id="'+e.esc_selector(a)+'"]',e.form_canvas_obj)).length)return;if(void 0!==r.attr("data-init-required"))return;var o=void 0!==r.attr("data-required")}else{var r;if(!(r=e.get_checkbox_min_max_obj(t(this))).length)return;o=void 0!==r.attr("min")&&parseInt(r.attr("min"),10)>0}var s=t(this).attr("data-label-required-id");if(void 0!==s&&!1!==s)var _=t("#"+s,e.form_canvas_obj);else _=t(this);var n=t(".wsf-required-wrapper",_);if(!n.length&&o){var c=_.children("div,[name]").first();c.length?c.before('<span class="wsf-required-wrapper"></span>'):_.append('<span class="wsf-required-wrapper"></span>'),n=t(".wsf-required-wrapper",_)}o?(n.html(i),r.attr("data-init-required","")):(n.html(""),r.removeAttr("data-init-required"))})},t.WS_Form.prototype.form_bypass=function(e){if(!this.form_bypass_enabled)return!1;var i=this;t('input[type="number"]:not([step]):not([data-step-bypass])',this.form_canvas_obj).attr("step",1);var a={required:{bypass:"data-required-bypass",not:'[type="hidden"]'},"aria-required":{bypass:"data-aria-required-bypass",not:'[type="hidden"]'},min:{bypass:"data-min-bypass",not:'[type="hidden"],[type="range"]'},max:{bypass:"data-max-bypass",not:'[type="hidden"],[type="range"]'},minlength:{bypass:"data-minlength-bypass",not:'[type="hidden"]'},maxlength:{bypass:"data-maxlength-bypass",not:'[type="hidden"]'},pattern:{bypass:"data-pattern-bypass",not:'[type="hidden"]'},step:{bypass:"data-step-bypass",not:'[type="hidden"],[type="range"]',replace:"any"},"data-ecommerce-price":{bypass:"data-ecommerce-price-bypass",not:"[data-ecommerce-persist]"},"data-ecommerce-cart-price":{bypass:"data-ecommerce-cart-price-bypass",not:"[data-ecommerce-persist]"}};for(var o in a)if(a.hasOwnProperty(o)){var r=a[o],s=r.bypass,_=r.not,n=void 0!==r.replace&&r.replace;t("["+s+"-group]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'group-"]:not([data-wsf-group-hidden]) ['+s+"-group]:not("+_+")",this.form_canvas_obj).attr(o,function(){return t(this).attr(s+"-group")}).removeAttr(s+"-group"),t("["+o+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'group-"][data-wsf-group-hidden] ['+o+"]:not("+_+",["+s+'-group]), [id^="'+this.form_id_prefix+'group-"][data-wsf-group-hidden] ['+o+"]:not("+_+",["+s+"-group])").attr(s+"-group",function(){return i.form_bypass_hidden(t(this),o,n)}),t("["+s+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'group-"][data-wsf-group-hidden] ['+s+"]:not("+_+'), [id^="'+this.form_id_prefix+'group-"][data-wsf-group-hidden] ['+s+"]:not("+_+")").attr(s+"-group",function(){return i.form_bypass_visible(t(this),s)}).removeAttr(s),t("["+s+"-section]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'section-"]:not([style*="display:none"],[style*="display: none"]) ['+s+"-section]:not("+_+")",this.form_canvas_obj).attr(o,function(){return t(this).attr(s+"-section")}).removeAttr(s+"-section"),t("["+o+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'section-"][style*="display:none"] ['+o+"]:not("+_+",["+s+'-section]), [id^="'+this.form_id_prefix+'section-"][style*="display: none"] ['+o+"]:not("+_+",["+s+"-section])").attr(s+"-section",function(){return i.form_bypass_hidden(t(this),o,n)}),t("["+s+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'section-"][style*="display:none"] ['+s+"]:not("+_+'), [id^="'+this.form_id_prefix+'section-"][style*="display: none"] ['+s+"]:not("+_+")").attr(s+"-section",function(){return i.form_bypass_visible(t(this),s)}).removeAttr(s),t("["+s+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"]) ['+s+"]:not("+_+")",this.form_canvas_obj).attr(o,function(){return i.form_bypass_visible(t(this),s)}).removeAttr(s),t("["+o+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"][style*="display:none"] ['+o+"]:not("+_+",["+s+']), [id^="'+this.form_id_prefix+'field-wrapper-"][style*="display: none"] ['+o+"]:not("+_+",["+s+"])",this.form_canvas_obj).attr(s,function(){return i.form_bypass_hidden(t(this),o,n)}),t("["+s+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"]) [data-row-checkbox]:not([style*="display:none"],[style*="display: none"]) > input[type="checkbox"] ['+s+"]:not("+_+")",this.form_canvas_obj).attr(o,function(){return i.form_bypass_visible(t(this),s)}).removeAttr(s),t("["+o+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-checkbox][style*="display:none"] > input[type="checkbox"]['+o+"]:not("+_+",["+s+']), [id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-checkbox][style*="display: none"] > input[type="checkbox"]['+o+"]:not("+_+",["+s+"])",this.form_canvas_obj).attr(s,function(){return i.form_bypass_hidden(t(this),o,n)}),t("["+s+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"]) [data-row-radio]:not([style*="display:none"],[style*="display: none"]) > input[type="radio"] ['+s+"]:not("+_+")",this.form_canvas_obj).attr(o,function(){return i.form_bypass_visible(t(this),s)}).removeAttr(s),t("["+o+"]",this.form_canvas_obj).length&&t('[id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-radio][style*="display:none"] > input[type="radio"]['+o+"]:not("+_+",["+s+']), [id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-radio][style*="display: none"] > input[type="radio"]['+o+"]:not("+_+",["+s+"])",this.form_canvas_obj).attr(s,function(){return i.form_bypass_hidden(t(this),o,n)})}return t('[id^="'+this.form_id_prefix+'group-"]:not([data-wsf-group-hidden])',this.form_canvas_obj).find('[name]:not([type="hidden"]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"-group",!1)}),t('[id^="'+this.form_id_prefix+'group-"][data-wsf-group-hidden]',this.form_canvas_obj).find('[name]:not([type="hidden"]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"-group",!0)}),t('[id^="'+this.form_id_prefix+'section-"]:not([style*="display:none"],[style*="display: none"])',this.form_canvas_obj).find('[name]:not([type="hidden"],[data-hidden-group]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"-section",!1)}),t('[id^="'+this.form_id_prefix+'section-"][style*="display:none"], [id^
8="'+this.form_id_prefix+'section-"][style*="display: none"]').find('[name]:not([type="hidden"]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"-section",!0)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"])',this.form_canvas_obj).find('[name]:not([type="hidden"],[data-hidden-section],[data-hidden-group]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"",!1)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"][style*="display:none"], [id^="'+this.form_id_prefix+'field-wrapper-"][style*="display: none"]',this.form_canvas_obj).find('[name]:not([type="hidden"]),[data-static],[data-recaptcha],[data-hcaptcha],[data-turnstile]').each(function(){i.form_bypass_process(t(this),"",!0)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"]) [data-row-checkbox]:not([style*="display:none"],[style*="display: none"]) input[type="checkbox"]',this.form_canvas_obj).each(function(){i.form_bypass_process(t(this),"",!1)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-checkbox][style*="display:none"] input[type="checkbox"], [id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-checkbox][style*="display: none"] input[type="checkbox"]',this.form_canvas_obj).each(function(){i.form_bypass_process(t(this),"",!0)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"]:not([style*="display:none"],[style*="display: none"]) [data-row-radio]:not([style*="display:none"],[style*="display: none"]) input[type="radio"]',this.form_canvas_obj).each(function(){i.form_bypass_process(t(this),"",!1)}),t('[id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-radio][style*="display:none"] input[type="radio"], [id^="'+this.form_id_prefix+'field-wrapper-"] [data-row-radio][style*="display: none"] input[type="radio"]',this.form_canvas_obj).each(function(){i.form_bypass_process(t(this),"",!0)}),"function"==typeof this.form_progress_process&&this.form_progress_process(),this.has_ecommerce&&"function"==typeof this.form_ecommerce_calculate&&this.form_ecommerce_calculate(),this.form_validate_real_time_process(e,!1),!0},t.WS_Form.prototype.form_bypass_hidden=function(t,e,i){var a=t.attr(e);return i?t.attr(e,i):t.removeAttr(e),a},t.WS_Form.prototype.form_bypass_visible=function(t,e){return t.attr(e)},t.WS_Form.prototype.form_bypass_process=function(t,e,i){var a=this.get_section_id(t),o=this.get_section_repeatable_index(t),r=this.get_field_id(t),s=this.get_field_object_row_id(t);if(s||(s=0),i){if(t[0].willValidate){var _=t[0].validationMessage;""!==_&&(void 0===this.validation_message_cache[a]&&(this.validation_message_cache[a]=[]),void 0===this.validation_message_cache[a][o]&&(this.validation_message_cache[a][o]=[]),void 0===this.validation_message_cache[a][o][r]&&(this.validation_message_cache[a][o][r]=[]),this.validation_message_cache[a][o][r][s]=_,t[0].setCustomValidity(""))}t.attr("data-hidden"+e,"")}else t[0].willValidate&&void 0!==this.validation_message_cache[a]&&void 0!==this.validation_message_cache[a][o]&&void 0!==this.validation_message_cache[a][o][r]&&void 0!==this.validation_message_cache[a][o][r][s]&&(t[0].setCustomValidity(this.validation_message_cache[a][o][r][s]),delete this.validation_message_cache[a][o][r][s]),t.removeAttr("data-hidden"+e)},t.WS_Form.prototype.form_inputmask=function(){var e=this;t("[data-inputmask]",this.form_canvas_obj).each(function(){void 0!==t(this).inputmask&&(t(this).inputmask().off("invalid"),void 0!==t(this).attr("data-inputmask-validate")&&(t(this).on("change input",function(){e.form_inputmask_validate(t(this))}),e.form_inputmask_validate(t(this))))})},t.WS_Form.prototype.form_inputmask_validate=function(t){t.inputmask("isComplete")?this.set_invalid_feedback(t,""):this.set_invalid_feedback(t)},t.WS_Form.prototype.form_validation=function(){var t=this;this.get_object_meta_value(this.form,"submit_on_enter",!1)||(this.form_obj.on("keydown",":input:not(textarea)",function(t){if(13==t.keyCode)return t.preventDefault(),!1}),this.form_events_reset.push({obj:this.form_obj,event:"keydown"})),this.form_obj.on("submit",function(e){e.preventDefault(),e.stopPropagation(),t.form_post_if_val
8idated("submit")}),this.form_events_reset.push({obj:this.form_obj,event:"submit"})},t.WS_Form.prototype.form_post_if_validated=function(t){this.trigger(t+"-before"),this.form_post_locked||(this.has_ecommerce&&"function"==typeof this.form_ecommerce_calculate&&this.form_ecommerce_calculate(),this.form_canvas_obj.addClass(this.class_validated),this.form_validate(this.form_obj)?(this.trigger(t+"-validate-success"),this.recaptchas_v2_invisible.length>0?this.recaptcha_v2_invisible_execute():this.recaptchas_v3_default.length>0?this.recaptcha_v3_default_execute():this.hcaptchas_invisible.length>0?this.hcaptcha_invisible_execute():this.form_post(t)):this.trigger(t+"-validate-fail"))},t.WS_Form.prototype.form_validate=function(e){void 0===e&&(e=this.form_obj),this.trigger("validate-before");var i,a=!1,o=!1,r=e[0].checkValidity();if(!r){var s=this;this.get_field_elements(e).each(function(){if(s.is_invalid(t(this)))return o=t(this),!1}),!1!==o&&(a=this.get_group_index(o))}"function"==typeof this.form_validate_captcha&&("object"==typeof(i=this.form_validate_captcha(this.recaptchas_v2_default,"recaptcha",e))&&(r=!1,!1===o&&(o=i.object_focus),!1===a&&(a=i.group_index_focus)),"object"==typeof(i=this.form_validate_captcha(this.hcaptchas_default,"hcaptcha",e))&&(r=!1,!1===o&&(o=i.object_focus),!1===a&&(a=i.group_index_focus)),"object"==typeof(i=this.form_validate_captcha(this.turnstiles_default,"turnstile",e))&&(r=!1,!1===o&&(o=i.object_focus),!1===a&&(a=i.group_index_focus)));return this.form_accessibility(),r||(!1!==o&&this.get_object_meta_value(this.form,"invalid_field_focus",!0)&&(!1!==a?this.object_focus=o:o.trigger("focus")),"function"==typeof this.form_tab_group_index_set&&!1!==a&&this.form_tab_group_index_set(a)),this.trigger("validate-after"),r},t.WS_Form.prototype.form_validate_real_time=function(e){var i=this;for(var a in this.field_data_cache)if(this.field_data_cache.hasOwnProperty(a)){var o=this.field_data_cache[a].type,r=t.WS_Form.field_type_cache[o];if(void 0!==r.events){var s=r.events.event,_=this.field_data_cache[a].id,n=void 0!==r.submit_array&&r.submit_array;t('div[data-type][data-id="'+this.esc_selector(_)+'"],input[type="hidden"][data-id-hidden="'+this.esc_selector(_)+'"]',this.form_canvas_obj).each(function(){var e=t(this).attr("data-repeatable-index"),a=e>0?"["+e+"]":"",c=("hidden"==o?'input[type="hidden"]':"")+'[name="'+i.esc_selector(ws_form_settings.field_prefix+_+a)+(n?"[]":"")+'"]:not([data-init-validate-real-time])',d=t(c,"hidden"==o?i.form_canvas_obj:t(this));if(d.length){d.attr("data-init-validate-real-time","");var h=void 0!==r.event_validate_bypass&&r.event_validate_bypass;d.on(s+" blur",function(e){if(h||i.form_validate_real_time_process(!1,!1),"blur"!==e.type){var a=t(this).attr("id");a&&"function"==typeof i.form_calc&&i.form_calc(a)}})}})}}t("[data-wsf-section-validated-class]:not([data-wsf-section-validated-class-init])").each(function(){t(this).attr("data-wsf-section-validated-class-init",""),t('input:not([type="hidden"]),textarea,select',t(this)).on("change blur",function(e){var a=t(this).closest("[data-wsf-section-validated-class]"),o=i.get_field_wrapper(t(this));if(o.length){var r=a.attr("data-wsf-section-validated-class");o.addClass(r).off(e)}})}),t("[data-wsf-field-validated-class]:not([data-wsf-field-validated-class-init])").each(function(){t(this).attr("data-wsf-field-validated-class-init",""),t('input:not([type="hidden"]),textarea,select',t(this)).on("change blur",function(e){var a=i.get_field_wrapper(t(this));if(a.length){var o=a.attr("data-wsf-field-validated-class");a.addClass(o).removeAttr("data-wsf-field-validated-class data-wsf-field-validated-class-init").off(e)}})}),this.form_validate_real_time_process(!1,!0)},t.WS_Form.prototype.form_validate_real_time_process=function(t,e){for(var i in this.form_valid=this.form_validate_silent(this.form_obj),!e&&(null!==this.form_valid_old&&this.form_valid_old==this.form_valid||t)||this.form_canvas_obj.trigger("wsf-validate"),t||this.form_canvas_obj.trigger("wsf-validate-silent"),this.form_valid_old=this.form_valid,this.form_validation_real_time_hooks)if(this.form_validation_real_time_hooks.hasOwnProperty(i)){var a=this.form_validation_real_time_hooks[i];void 0===a?delete this.form_validation_real_time_hooks[i]:a(this.form_valid,this.form,this.form_id,this.form_instance_id,this.form_obj,this.form_canvas_obj)}return this.form_valid},t.WS_Form.prototype.form_validate_real_time_register_hook=function(t){this.form_validation_real_time_hooks.push(t)},t.WS_Form.prototype.form_validate_silent=function(t){var e=t[0];if(this.form_accessibility(t),!e.checkValidity())return!1;if("function"==typeof this.form_validate_silent_captchas){if(!this.form_validate_silent_captchas(this.recaptchas_v2_default,"recaptcha",t))return!1;if(!this.form_validate_silent_captchas(this.hcaptchas_default,"hcaptcha",t))return!1;if(!this.form_validate_silent_captchas(this.turnstiles_default,"turnstile",t))return!1}return!0},t.WS_Form.prototype.form_accessibility=function(e){var i=this;void 0===e&&(e=this.form_canvas_obj);
8var a=e.is(this.selector_validated)?"":this.selector_validated+" ",o=t(a+"input,"+a+"select,"+a+"textarea",e).filter(':not([data-hidden],[data-hidden-section],[data-hidden-group],[disabled],[type="hidden"])');o.filter('[aria-invalid="true"]').each(function(){i.is_valid(t(this))&&(t(this).removeAttr("aria-invalid"),i.attribute_remove_item(t(this),"aria-describedby",i.get_invalid_feedback_id(t(this))),i.get_invalid_feedback_obj(t(this)).attr("aria-hidden","true"))}),o.filter(':not([aria-invalid="true"])').each(function(){i.is_invalid(t(this))&&(t(this).attr("aria-invalid","true"),i.attribute_add_item(t(this),"aria-describedby",i.get_invalid_feedback_id(t(this))),i.get_invalid_feedback_obj(t(this)).removeAttr("aria-hidden"))})},t.WS_Form.prototype.object_validate=function(e){var i=[];if(void 0===e)return!1;var a=this,o=!0;return this.get_field_elements(e).each(function(){var e=a.get_field(t(this)).type,r=a.get_section_repeatable_index(t(this)),s=r>0?"["+r+"]":"",_=ws_form_settings.field_prefix+a.get_field_id(t(this))+s,n=!1;switch(e){case"radio":case"price_radio":if(void 0!==i[_])return;n=t(this)[0].checkValidity();break;default:n=t(this)[0].checkValidity()}if(i[_]=!0,!n)return o=!1,!1}),o},t.WS_Form.prototype.hex_to_hsl=function(t){var e=this.hex_to_rgb(t);return!1!==e&&this.rgb_to_hsl(e)},t.WS_Form.prototype.hex_to_rgb=function(t){if(""==t)return!1;var e="#"==t[0];if(e&&7!=t.length)return!1;if(!e&&6!=t.length)return!1;t=e?t.substr(1):t;return{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16)}},t.WS_Form.prototype.rgb_to_hsl=function(t){if(void 0===t.r)return!1;if(void 0===t.g)return!1;if(void 0===t.b)return!1;var e=t.r,i=t.g,a=t.b;e/=255,i/=255,a/=255;var o,r,s=Math.max(e,i,a),_=Math.min(e,i,a),n=(s+_)/2;if(s==_)o=r=0;else{var c=s-_;switch(r=n>.5?c/(2-s-_):c/(s+_),s){case e:o=(i-a)/c+(i<a?6:0);break;case i:o=(a-e)/c+2;break;case a:o=(e-i)/c+4}o/=6}return{h:o,s:r,l:n}},t.WS_Form.prototype.group_fields_reset=function(t,e){if(void 0===this.group_data_cache[t])return!1;var i=this.group_data_cache[t];if(void 0===i.sections)return!1;var a=i.sections;for(var o in a)if(a.hasOwnProperty(o)){var r=a[o];this.section_fields_reset(r.id,e,!1)}},t.WS_Form.prototype.section_fields_reset=function(e,i,a){if(void 0===this.section_data_cache[e])return!1;var o=this.section_data_cache[e];if(void 0===o.fields)return!1;var r=o.fields;for(var s in r)if(r.hasOwnProperty(s)){var _=r[s],n=_.id;if(!1===a)var c='[id^="'+this.esc_selector(this.form_id_prefix+"field-wrapper-"+n)+'"][data-id="'+this.esc_selector(_.id)+'"]';else c="#"+this.form_id_prefix+"field-wrapper-"+n+"-repeat-"+a;var d=t(c,this.form_canvas_obj);this.field_reset(n,i,d)}},t.WS_Form.prototype.field_reset=function(e,i,a){var o=this;if(void 0===a&&(a=!1),void 0!==this.field_data_cache[e]){var r=this.field_data_cache[e],s=t.WS_Form.field_type_cache[r.type],_=void 0!==s.trigger?s.trigger:"change";switch(r.type){case"select":case"price_select":t("option",a).each(function(){var e=!i&&t(this).prop("defaultSelected"),a=t(this).prop("selected")!==e;t(this).prop("selected",e),a&&t(this).trigger(_)});break;case"checkbox":case"price_checkbox":t('input[type="checkbox"]',a).each(function(){var e=!i&&t(this).prop("defaultChecked"),a=t(this).prop("checked")!==e;t(this).prop("checked",e),a&&t(this).trigger(_)});break;case"radio":case"price_radio":t('input[type="radio"]',a).each(function(){var e=!i&&t(this).prop("defaultChecked"),a=t(this).prop("checked")!==e;t(this).prop("checked",e),a&&t(this).trigger(_)});break;case"textarea":t("textarea",a).each(function(){var e=i?"":t(this).prop("defaultValue"),a=t(this).val()!==e;t(this).val(e),"function"==typeof o.textarea_set_value&&o.textarea_set_value(t(this),e),a&&t(this).trigger("change")});break;case"color":t("input",a).each(function(){var e=i?"":t(this).prop("defaultValue"),a=t(this).val()!==e;t(this).val(e),a&&(t(this).trigger("change"),"undefined"!=typeof Coloris&&t(this)[0].dispatchEvent(new Event("input",{bubbles:!0})))});break;case"hidden":var n=i?"":a.attr("data-default-value"),c=a.val()!==n;a.val(n),c&&a.trigger(_);break;case"googlemap":t("input",a).each(function(){var e=i?"":t(this).attr("data-default-value"),a=t(this).val()!==e;t(this).val(e),a&&t(this).trigger(_)});break;case"file":t('input[type="file"]',a).each(function(){var e=""!==t(this).val();t(this).val(""),e&&t(this).trigger(_)}),"function"==typeof o.form_file_dropzonejs_populate&&"undefined"!=typeof Dropzone&&t('input[data-file-type="dropzonejs"]',a).each(function(){var e=t(this).val();o.form_file_dropzonejs_populate(t(this),i),t(this).val()!==e&&t(this).trigger(_)});break;default:t("input",a).each(function(){var e=i?"":t(this).prop("defaultValue"),a=t(this).val()!==e;t(this).val(e),a&&t(this).trigger(_)})}}},t.WS_Form.prototype.form_post=function(e,i){void 0===e&&(e="save"),void 0===i&&(i=0);var a="submit"==e;this.trigger(e);var o=this;this.form_add_hidden_input("wsf_form_id",this.form_id),this.form_add_hidden_input("wsf_hash",this.hash),ws_form_settings.wsf_nonce&&this.form_add_hidden_input(ws_form_settings.wsf_nonce_field_name,ws_form_settings.wsf_nonce),"on"==this.get_object_meta_value(this.form,"tracking_duration","")&&this.form_add_hidden_input("wsf_duration",Math.round(((new Date).getTime()-this.date_start)/1e3)),"function"==typeof this.section_repeatable_hidden_field&&this.section_repeatable_hidden_field(),"submit"==e&&(this.form_timer_reset(),this.form_timer()),void 0!==ws_form_settings.post_id&&ws_form_settings.post_id>0&&this.form_add_hidden_input("wsf_post_id",ws_form_settings.post_id),this.form_add_hidden_input("wsf_post_mode",e);var r=t("[data-hidden],[data-hidden-section],[data-hidden-group]",this.form_canvas_obj).filter(":not([data-hidden-bypass])").map(function(){var e;if(void 0===(e=t(this).attr("name"))&&void 0===(e=t(this).attr("data-name")))return"";switch(e=e.replace("[]",""),o.get_field_type(t(this))){case"checkbox":case"price_checkbox":if(o.get_checkbox_row_count(t(this)))return"";break;case"radio":case"price_radio":if(o.get_radio_row_count(t(this)))return""}return e}
8).get(),s=(r=r.filter(function(t,e,i){return i.indexOf(t)===e&&""!==t})).join();this.form_add_hidden_input("wsf_hidden",s);var _=t("[data-required-bypass],[data-required-bypass-section],[data-required-bypass-group],[data-conditional-logic-bypass]",this.form_canvas_obj).map(function(){var e=t(this).attr("name");return e=e.replace("[]","")}).get(),n=(_=_.filter(function(t,e,i){return i.indexOf(t)===e})).join();if(this.form_add_hidden_input("wsf_bypass_required",n),this.form.submit_hidden_fields&&"object"==typeof this.form.submit_hidden_fields)for(var c in this.form.submit_hidden_fields)if(this.form.submit_hidden_fields.hasOwnProperty(c)){var d=this.form.submit_hidden_fields[c];if(void 0!==d.name&&void 0!==d.value&&void 0!==d.type){switch(d.type){case"local_storage":d.value=this.local_storage_get_raw(d.value)}void 0===d.id&&(d.id=!1),void 0===d.attributes&&(d.attributes=!1),this.form_add_hidden_input(d.name,d.value,d.id,d.attributes)}}"function"==typeof this.signature_form_post&&this.signature_form_post(),t('input[type="hidden"][name="wsf_actions_run[]"]',this.form_canvas_obj).remove();var h=[];if(this.conditional_actions_changed){for(var f in!a&&this.conditional_actions_run_save.length>0&&(h=this.conditional_actions_run_save),a&&this.conditional_actions_run_submit.length>0&&(h=this.conditional_actions_run_submit),h)if(h.hasOwnProperty(f)){var l=h[f];h.indexOf(l)==f&&this.form_add_hidden_input("wsf_actions_run[]",l)}0==t('input[type="hidden"][name="wsf_actions_run[]"]',this.form_canvas_obj).length&&this.form_add_hidden_input("wsf_actions_run[]",-1)}if(this.log(a?"log_form_submit":"log_form_save"),a&&0==i&&!1===this.form_ajax)return this.form_hash_clear(),this.trigger(e+"-complete"),void this.trigger("complete");this.form_post_lock("progress",!1,!1,!0),"function"==typeof this.form_loader_show&&this.form_loader_show(e),o.trigger(e+"-before-ajax");var p=new FormData(this.form_obj[0]);i>0&&p.append("wsf_row_id_filter",i),"submit"!==e&&(p.delete("quantity"),p.delete("add-to-cart"),p.delete("product_id"),p.delete("variation_id")),"function"==typeof this.form_tel_post&&this.form_tel_post(p),this.api_call("submit","POST",p,function(t){a&&("function"==typeof o.recaptcha_reset&&o.recaptcha_reset(),"function"==typeof o.hcaptcha_reset&&o.hcaptcha_reset(),"function"==typeof o.turnstile_reset&&o.turnstile_reset());var i=void 0!==t.error_validation&&t.error_validation,r=void 0!==t.data&&void 0!==t.data.errors&&t.data.errors.length,s=!1;if("object"==typeof t.data&&"object"==typeof t.data.js){var _=t.data.js;for(var n in _)if(_.hasOwnProperty(n)){var c=_[n];if("redirect"==o.js_action_get_parameter(c,"action")){s=!0;break}}}if(!s){var d=void 0===t.data||"save"==e||i||r;o.form_post_unlock("progress",!d,d,!0),"function"==typeof o.form_loader_hide&&o.form_loader_hide(!d)}if(r||i?(o.trigger(e+"-error"),o.trigger("error")):(o.trigger(e+"-success"),o.trigger("success")),!a||i||r||(o.form_hash_clear(),o.get_object_meta_value(o.form,"submit_reload",!0)&&!s&&o.form_reload()),r&&o.get_object_meta_value(o.form,"submit_show_errors",!0))for(var h in t.data.errors)if(t.data.errors.hasOwnProperty(h)){var f=t.data.errors[h];o.action_message(f)}return o.trigger(e+"-complete"),o.trigger("complete"),!r},function(t){o.form_post_unlock("progress",!0,!0,!0),"function"==typeof o.form_loader_hide&&o.form_loader_hide(!0),"function"==typeof o.recaptcha_reset&&o.recaptcha_reset(),"function"==typeof o.hcaptcha_reset&&o.hcaptcha_reset(),"function"==typeof o.turnstile_reset&&o.turnstile_reset(),void 0!==t.error_message&&o.action_message(t.error_message),o.trigger(e+"-error"),o.trigger("error")},i>0||!a)},t.WS_Form.prototype.form_post_lock=function(e,i,a,o){void 0===e&&(e="progress"),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===o&&(o=!1),this.form_post_lock_start=new Date;var r=this.get_form_post_lock_class(o);this.form_obj.hasClass(r)||(i||this.get_object_meta_value(this.form,"submit_lock",!1))&&(a&&(this.form_ecommerce_calculate_enabled=!1),this.get_form_post_lock_button_objs(o).each(function(){void 0!==t(this).attr("disabled")?t(this).attr("data-form-lock-disabled-bypass",""):t(this).prop("disabled",!0)}),this.form_obj.addClass(r+(e?" wsf-form-post-lock-"+e:"")),this.form_post_locked=!0,this.trigger("lock"),this.log("log_submit_lock","","duplicate-protect"))},t.WS_Form.prototype.form_post_unlock=function(e,i,a,o){void 0===e&&(e="progress"),void 0===i&&(i=!0),void 0===a&&(a=!1),void 0===o&&(o=!1);var r=this.get_form_post_lock_class(o);if(this.form_obj.hasClass(r)){var s=this,_=function(){s.form_ecommerce_calculate_enabled=!0,s.form_obj.removeClass(r+(e?" wsf-form-post-lock-"+e:"")),s.get_form_post_lock_button_objs(o).each(function(){void 0!==t(this).attr("data-form-lock-disabled-bypass")?t(this).removeAttr("data-form-lock-disabled-bypass"):t(this).prop("disabled",!1)}),s.form_post_locked=!1,"function"==typeof s.form_progress_api_call_reset&&s.form_progress_api_call_reset(),s.trigger("unlock"),s.log("log_submit_unlock","","duplicate-protect"),s.form_validate_real_time_process(!1,!1)};if(a||this.get_object_meta_value(this.form,"submit_unlock",!1)){var n=new Date-this.form_post_lock_start,c=Math.max(this.form_post_lock_duration_max-n,0);i?setTimeout(function(){_()},c):_()}}},t.WS_Form.prototype.get_form_post_lock_button_objs=function(e){return t("string"==typeof e?e:e='button[type="submit"].wsf-button, input[type="submit"].wsf-button, button[data-action="wsf-save"].wsf-button, button[data-ecommerce-payment].wsf-button, [data-post-lock]'+(e?', button[type="button"].wsf-button':""),this.form_canvas_obj)},t.WS_Form.prototype.get_form_post_lock_class=function(t){var e="wsf-form-post-lock";return"string"==typeof t&&(e+="-custom-selector"),e},t.WS_Form.prototype.api_call=function(e,i,a,o,r,s){void 0===i&&(i="POST"),a||(a=new FormData),void 0===s&&(s=!1);var _=this,n=new Date,c=s?ws_form_settings.url_ajax+e:"submit"==e?this.form_obj.attr("action"):ws_form_settings.url_ajax+e;if(!s&&this.form_action_custom&&"submit"==e)return this.form_obj.off("submit"),this.form_obj.trigger("submit"),!0;if(void 0!==a.get&&null!==a.get(ws_form_settings.wsf_nonce_field_name)||!ws_form_settings.wsf_nonce||a.append(ws_form_settings.wsf_nonce_field_name,ws_form_settings.wsf_nonce),"GET"===i){for(var d={},h=a.entries(),f=h.next();!f.done;){var l=f.value;d[l[0]]=l[1],f=h.next()}a=d}this.action_js_process_validation_focus=!0;var p={method:i,url:c,contentType:!1,processData:"GET"===i,beforeSend:function(t){ws_form_settings.x_wp_nonce&&t.setRequestHeader("X-WP-Nonce",ws_form_settings.x_wp_nonce)},success:function(t){_.api_call_hander_success(t,o,n)}
8,error:function(t,e,i){_.api_call_handler_error(t,e,i,o,r,n,c)}};!1!==a&&(p.data=a);var m=t('[data-source="post_progress"]',this.form_canvas_obj);return m.length&&(p.xhr=function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){_.form_progress_api_call(m,t)},!1),t.addEventListener("progress",function(t){_.form_progress_api_call(m,t)},!1),t}),t.ajax(p)},t.WS_Form.prototype.api_call_hander_success=function(e,i,a){if(this.api_call_hash(e)&&t.WS_Form.debug_rendered){var o=new Date-a;this.debug_info("debug_info_submit_count",e.data.count),this.debug_info("debug_info_submit_duration_user",this.get_nice_duration(e.data.submit_duration_user)),this.debug_info("debug_info_submit_duration_client",o+" ms"),this.debug_info("debug_info_submit_duration_server",e.data.submit_duration_server+" ms")}if(t.WS_Form.debug_rendered&&void 0!==e.data){if("object"==typeof e.data.logs)for(var r in e.data.logs)e.data.logs.hasOwnProperty(r)&&this.log("log_action",e.data.logs[r],"action");if("object"==typeof e.data.errors)for(var s in e.data.errors)if(e.data.errors.hasOwnProperty(s)){var _=e.data.errors[s];_?this.error("error_action",_,"action"):this.error("error_action_no_message","","action")}}void 0!==e.x_wp_nonce&&(ws_form_settings.x_wp_nonce=e.x_wp_nonce),void 0!==e.wsf_nonce&&(ws_form_settings.wsf_nonce=e.wsf_nonce);var n="function"!=typeof i||i(e);return void 0!==e.data&&n&&"object"==typeof e.data.js&&this.action_js_init(e.data.js),!0},t.WS_Form.prototype.api_call_handler_error=function(t,e,i,a,o,r,s){var _=void 0!==t.responseJSON&&t.responseJSON,n=t.status,c=this.language("error_api_call_unknown");switch(n){case 200:if("string"==typeof i)c=this.error("error_api_call_response_error",i);else if(i instanceof Error)c=this.error("error_api_call_response_error",i.message);else try{c=this.error("error_api_call_response_error",JSON.stringify(i))}catch(t){c=this.error("error_api_call_response_error",this.language("error_api_call_unknown"))}this.error("error_api_call_response_text",this.esc_html(t.responseText)),_={error:!0,error_message:c};break;case 400:case 401:case 403:case 404:case 500:_&&_.error?c=_.error_message?this.error("error_api_call_"+n,_.error_message):this.error("error_api_call_"+n,s):_={error:!0,error_message:c=this.error("error_api_call_"+n,s)}}"function"==typeof o&&o(_)},t.WS_Form.prototype.api_call_hash=function(t){if("string"!=typeof t.hash)return!1;var e=t.hash;if("clear"==e)return this.log("log_hash_not_found"),this.form_hash_clear(),!1;if(32!=e.length)return!1;return!!/^[a-fA-F0-9]{32}$/gi.test(e)&&(this.hash_set(e),!0)},t.WS_Form.prototype.hash_set=function(e,i,a){(void 0===i&&(i=!1),void 0===a&&(a=!1),e!=this.hash&&(this.hash=e,a=!0,this.log("log_hash_set",this.hash),t.WS_Form.debug_rendered&&this.debug_info("debug_info_hash",this.hash,"clear_hash")),i&&(this.token=i,this.log("log_token_set",this.token)),a)&&(this.get_object_value(t.WS_Form.settings_plugin,"cookie_hash")&&this.cookie_set("hash",this.hash))},t.WS_Form.prototype.action_js_init=function(t){this.trigger("actions-start"),this.action_js=t,this.action_js_process_next()},t.WS_Form.prototype.action_js_process_next=function(){if(0==this.action_js.length)return this.trigger("actions-finish"),!1;var e=this.action_js.shift();switch(this.js_action_get_parameter(e,"action")){case"redirect":return!1!==this.js_action_get_parameter(e,"url")&&(location.href=e.url),!0;case"message":var i=this.js_action_get_parameter(e,"message"),a=this.js_action_get_parameter(e,"type"),o=this.js_action_get_parameter(e,"method"),r=this.js_action_get_parameter(e,"duration"),s=this.js_action_get_parameter(e,"form_hide"),_=this.js_action_get_parameter(e,"clear"),n=this.js_action_get_parameter(e,"scroll_top"),c=this.js_action_get_parameter(e,"scroll_top_offset"),d=this.js_action_get_parameter(e,"scroll_top_duration"),h=this.js_action_get_parameter(e,"form_show"),f=this.js_action_get_parameter(e,"message_hide");this.action_message(i,a,o,r,s,_,n,c,d,h,f);break;case"conversion":if("function"==typeof this.action_conversion){a=this.js_action_get_parameter(e,"type");var l=this.js_action_get_parameter(e,"parse_values"),p=this.js_action_get_parameter(e,"data_layer_reset");this.action_conversion(a,l,p)}break;case"javascript":var m=this.js_action_get_parameter(e,"javascript");this.action_javascript(m);break;
8case"field_invalid_feedback":var u=parseInt(this.js_action_get_parameter(e,"field_id"),10),v=(W=parseInt(this.js_action_get_parameter(e,"section_repeatable_index"),10))?"-repeat-"+W:"",g=(i=this.js_action_get_parameter(e,"message"),t("#"+this.form_id_prefix+"field-"+u+v,this.form_canvas_obj));this.set_invalid_feedback(g,i),this.log("error_invalid_feedback",u+" ("+this.esc_html(i)+")");var b=this;if(g.one("change input",function(){b.set_invalid_feedback(t(this),"")}),this.get_object_meta_value(this.form,"invalid_field_focus",!0)&&this.action_js_process_validation_focus){var y=this.get_group_index(g);!1!==y?this.object_focus=g:g.trigger("focus"),"function"==typeof this.form_tab_group_index_set&&!1!==y&&this.form_tab_group_index_set(y),this.action_js_process_validation_focus=!1}this.form_canvas_obj.addClass(this.class_validated),this.form_accessibility(),this.action_js_process_next();break;case"field_value":u=parseInt(this.js_action_get_parameter(e,"field_id"),10),v=(W=parseInt(this.js_action_get_parameter(e,"section_repeatable_index"),10))?"-repeat-"+W:"";var w=this.js_action_get_parameter(e,"value"),j=this.js_action_get_parameter(e,"check",!0),k=this.js_action_get_parameter(e,"append"),x=this.js_action_get_parameter(e,"prepend"),S=t("#"+this.form_id_prefix+"field-wrapper-"+u+v,this.form_canvas_obj),F=t("#"+this.form_id_prefix+"field-"+u+v,this.form_canvas_obj);this.field_value_set(S,F,w,j,k,x),this.log("log_field_value",u,"field_value, append, prepend"),this.action_js_process_next();break;case"field_dropzonejs_file_objects":u=parseInt(this.js_action_get_parameter(e,"field_id"),10),v=(W=parseInt(this.js_action_get_parameter(e,"section_repeatable_index"),10))?"-repeat-"+W:"";var W,O=this.js_action_get_parameter(e,"file_objects");(g=t("#"+this.form_id_prefix+"field-"+u+v,this.form_canvas_obj)).attr("data-default-value",JSON.stringify(O)),this.form_file_dropzonejs_populate(g),this.log("log_field_dropzonejs_file_objects",u),this.action_js_process_next();break;case"trigger":var I=this.js_action_get_parameter(e,"event"),C=this.js_action_get_parameter(e,"params");t(document).trigger(I,C),this.action_js_process_next()}},t.WS_Form.prototype.field_value_set=function(e,i,a,o,r,s){if(e.length)_=e.attr("data-type");else{if(!i.length)return;switch(i.attr("type")){case"hidden":var _="hidden";break;default:return}}void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===s&&(s=!1);var n=!!i.length&&i[0].nodeName;if("string"==typeof n)switch(n.toLowerCase()){case"button":_="button"}switch(_){case"select":case"price_select":var c=t('option[value="'+this.esc_selector(a)+'"]',i).prop("selected")!==o;t('option[value="'+this.esc_selector(a)+'"]',i).prop("selected",o),c&&i.trigger("change");break;case"checkbox":case"price_checkbox":case"radio":case"price_radio":c=t('input[value="'+this.esc_selector(a)+'"]',e).prop("checked")!==o;t('input[value="'+this.esc_selector(a)+'"]',e).prop("checked",o),c&&t('input[value="'+this.esc_selector(a)+'"]',e).trigger("change");break;case"button":i.html(a);break;case"html":case"texteditor":case"message":r?t("[data-html],[data-text-editor]",e).append(a):s?t("[data-html],[data-text-editor]",e).prepend(a):t("[data-html],[data-text-editor]",e).html(a);break;case"color":i.attr("data-value-old",function(){return t(this).val()}).val(a).filter(function(){return t(this).val()!==t(this).attr("data-value-old")}).trigger("change").removeAttr("data-value-old"),"undefined"!=typeof Coloris&&i[0].dispatchEvent(new Event("input",{bubbles:!0}));break;case"price":case"cart_price":if(""!==a){if(isNaN(a))a=this.get_number(a);a=this.get_price(a,this.get_currency(),!1)}i.attr("data-value-old",function(){return t(this).val()}).val(a).filter(function(){return t(this).val()!==t(this).attr("data-value-old")}).trigger("change").removeAttr("data-value-old");break;default:r?a=i.val()+a:s&&(a+=i.val()),i.attr("data-value-old",function(){return t(this).val()}).val(a).filter(function(){return t(this).val()!==t(this).attr("data-value-old")}).trigger("change").removeAttr("data-value-old"),"textarea"==_&&"function"==typeof this.textarea_set_value&&this.textarea_set_value(i,a)}}
8,t.WS_Form.prototype.js_action_get_parameter=function(t,e,i=!1){return void 0!==t[e]?t[e]:i},t.WS_Form.prototype.get_framework_config_value=function(t,e){return void 0===this.framework[t]?(this.error("error_api_call_framework_invalid"),!1):void 0===this.framework[t].public?(this.error("error_api_call_framework_invalid"),!1):void 0!==this.framework[t].public[e]&&this.framework[t].public[e]},t.WS_Form.prototype.action_message=function(e,i,a,o,r,s,_,n,c,d,h){if(e){void 0===i&&(i=this.get_object_meta_value(this.form,"error_type","danger")),void 0===a&&(a=this.get_object_meta_value(this.form,"error_method","after")),void 0===o&&(o=parseInt(this.get_object_meta_value(this.form,"error_duration","4000"),10)),void 0===r&&(r="on"==this.get_object_meta_value(this.form,"error_form_hide","")),void 0===s&&(s="on"==this.get_object_meta_value(this.form,"error_clear","")),void 0===_&&(_="on"==this.get_object_meta_value(this.form,"error_scroll_top","")),void 0===n&&(n=parseInt(this.get_object_meta_value(this.form,"error_scroll_top_offset","0"),10)),n=""==n?0:parseInt(n,10),void 0===c&&(c=parseInt(this.get_object_meta_value(this.form,"error_scroll_top_duration","400"),10)),void 0===d&&(d="on"==this.get_object_meta_value(this.form,"error_form_show","")),void 0===h&&(h="on"==this.get_object_meta_value(this.form,"error_message_hide","on"));var f=this.form_canvas_obj.offset().top-n;(o=parseInt(o,10))<0&&(o=0);var l=this.get_framework_config_value("message","mask_wrapper"),p=this.get_framework_config_value("message","types"),m=void 0!==(i=void 0!==p[i]&&p[i]).mask_wrapper_class?i.mask_wrapper_class:"";switch(s&&t('[data-wsf-message][data-wsf-instance-id="'+this.form_instance_id+'"]').remove(),_){case"instant":case"on":t("html,body").scrollTop(f);break;case"smooth":c=""==c?0:parseInt(c,10),t("html,body").animate({scrollTop:f},c)}var u={message:e,mask_wrapper_class:m},v=t("<div/>",{html:this.mask_parse(l,u)});switch(v.attr("role","alert"),v.attr("data-wsf-message",""),v.attr("data-wsf-instance-id",this.form_instance_id),void 0!==this.form_canvas_obj.attr("data-wsf-style-id")&&(v.attr("data-wsf-style-id",this.form_canvas_obj.attr("data-wsf-style-id")),t("#wsf-styler").length&&v.attr("style",this.form_canvas_obj.attr("style"))),r&&(this.form_obj.hide(),this.form_timer_reset()),a){case"before":v.insertBefore(this.form_obj);break;default:v.insertAfter(this.form_obj)}this.conversational&&t(".wsf-form-conversational-nav").length&&v.css("bottom",t(".wsf-form-conversational-nav").outerHeight()+"px");var g=this;(o=parseInt(o,10))>0?setTimeout(function(){h&&v.remove(),d&&(g.form_obj.show(),g.form_timer()),g.action_js_process_next()},o):g.action_js_process_next()}},t.WS_Form.prototype.action_javascript=function(e){try{t.globalEval("(function($) {\n"+e+"\n})(jQuery);"),this.log("log_javascript","action")}catch(t){this.error("error_js",e)}this.action_js_process_next()},t.WS_Form.prototype.form_character_word_count=function(e){var i=this;for(var a in void 0===e&&(e=this.form_canvas_obj),this.field_data_cache)if(this.field_data_cache.hasOwnProperty(a)){var o=this.field_data_cache[a],r=this.get_object_meta_value(o,"help","",!1,!0),s=-1!==r.indexOf("#character_")||-1!==r.indexOf("#word_");if(this.has_object_meta_key(o,"min_length")||this.has_object_meta_key(o,"max_length")||this.has_object_meta_key(o,"min_length_words")||this.has_object_meta_key(o,"max_length_words")||s){var _=t("#"+this.form_id_prefix+"field-"+a,e);_.length||(_=t('[id^="'+this.form_id_prefix+"field-"+a+'-"]:not([data-init-char-word-count]):not(iframe)',e)),_.each(function(){t(this).attr("data-init-char-word-count",""),i.form_character_word_count_process(t(this))&&t(this).on("change input",function(){i.form_character_word_count_process(t(this))})})}}},t.WS_Form.prototype.form_character_word_count_process=function(t){var e=this.get_field(t),i=this.get_object_meta_value(e,"min_length","");i=parseInt(i,10)>0&&parseInt(i,10);var a=this.get_object_meta_value(e,"max_length","");a=parseInt(a,10)>0&&parseInt(a,10);var o=this.get_object_meta_value(e,"min_length_words","");o=parseInt(o,10)>0&&parseInt(o,10);var r=this.get_object_meta_value(e,"max_length_words","");r=parseInt(r,10)>0&&parseInt(r,10);var s=t.val();if("string"==typeof s){var _=s.length,n=!1!==a&&a-_;n<0&&(n=0);var c=this.get_word_count(s),d=!1!==r&&r-c;d<0&&(d=0);var h=!1,f=[];!1!==i&&_<i&&(f.push(this.language("error_min_length",i)),h=!0),!1!==a&&_>a&&(f.push(this.language("error_max_length",a)),h=!0),!1!==o&&c<o&&(f.push(this.language("error_min_length_words",o)),h=!0),!1!==r&&c>r&&(f.push(this.language("error_max_length_words",r)),h=!0),(void 0!==t.attr("required")||s.length>0)&&h?this.set_invalid_feedback(t,f.join(" / ")):this.set_invalid_feedback(t,""),this.form_bypass();var l=this.get_object_meta_value(e,"help","",!1,!0);if(-1===l.indexOf("#character_")&&-1===l.indexOf("#word_"))return!0;var p=this.language("character_singular"),m=this.language("character_plural"),u=this.language("word_singular"),v=this.language("word_plural"),g={character_count:_,character_count_label:1==_?p:m,character_remaining:!1!==n?n:"",character_remaining_label:1==n?p:m,character_min:!1!==i?i:"",character_min_label:!1!==i?1==i?p:m:"",character_max:!1!==a?a:"",character_max_label:!1!==a?1==a?p:m:"",word_count:c,word_count_label:1==c?u:v,word_remaining:!1!==d?d:"",word_remaining_label:1==d?u:v,word_min:!1!==o?o:"",word_min_label:!1!==o?1==o?u:v:"",word_max:!1!==r?r:"",word_max_label:!1!==r?1==r?u:v:""},b=this.mask_parse(l,g);return this.get_help_obj(t).html(b),!0}},t.WS_Form.prototype.get_word_count=function(t){return 0==(t=t.trim()).length?0:t.trim().replace(/\s+/gi," ").split(" ").length},t.WS_Form.prototype.form_stat=function(){ws_form_settings.stat&&this.form_stat_add_view()},t.WS_Form.prototype.form_stat_add_view=function(){this.form_stat_add_lock||(t.ajax({method:"POST",url:ws_form_settings.add_view_url,data:{wsffid:this.form_id}}),this.form_stat_add_lock=!0)},t.WS_Form.prototype.form_google_maps_api_init=function(){var e=t.WS_Form.settings_plugin.api_key_google_map;if(""==e)return this.error("error_google_key_missing"),!1;if(!t("#wsf-google-map-script-head").length){"var wsf_google_maps_loaded = false;","function wsf_google_maps_api_onload() {","wsf_google_maps_loaded = true;","}","<\/script>",t("head").append('<script id="wsf-google-map-script-head">var wsf_google_maps_loaded = false;function wsf_google_maps_api_onload() {wsf_google_maps_loaded = true;}<\/script>')}if(!(window.google&&window.google.maps||t("#wsf-google-map-script-body").length)){var i='<script id="wsf-google-map-script-body" src="https://maps.googleapis.com/ma
8ps/api/js?key='+e+'&callback=wsf_google_maps_api_onload&libraries=places,marker&v=weekly&loading=async" async defer><\/script>';t("body").append(i)}return!0},window.wsf_form_instances=[],window.wsf_form_init=function(e,i,a){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===a)var o=t(".wsf-form");else o=t(".wsf-form",a);if(o.length){var r=0,s=[];t(".wsf-form").each(function(){if(void 0!==t(this).attr("data-instance-id")){var e=parseInt(t(this).attr("data-instance-id"),10);-1!==s.indexOf(e)?t(this).removeAttr("data-instance-id"):e>r&&(r=e),s.push(e)}}),r++,o.each(function(){if(e||void 0===t(this).attr("data-wsf-rendered")){i&&t(this).off(),void 0===t(this).attr("data-instance-id")&&(void 0===t(this).attr("data-wsf-custom-id")&&t(this).attr("id","ws-form-"+r),t(this).attr("data-instance-id",r),r++);var a=t(this).attr("id"),o=t(this).attr("data-id"),s=t(this).attr("data-instance-id");if(a&&o&&s){var _=new t.WS_Form;window.wsf_form_instances[s]=_,_.render({obj:t(this),form_id:o})}}})}},t(function(){wsf_form_init()})}(jQuery) 9;!function(e){"use strict";e.WS_Form.prototype.styler_scheme=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),e){var s=window.matchMedia("(prefers-color-scheme: dark)");this.styler_scheme_prefers_color_scheme(s),s.addEventListener("change",this.styler_scheme_prefers_color_scheme)}t&&(this.styler_scheme_mutation_process=!0,this.styler_scheme_third_party_class(),new MutationObserver(this.styler_scheme_third_party_observer).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}))},e.WS_Form.prototype.styler_scheme_reset=function(){var e=window.matchMedia("(prefers-color-scheme: dark)");this.styler_scheme_prefers_color_scheme(e),this.styler_scheme_third_party_class()},e.WS_Form.prototype.styler_scheme_prefers_color_scheme=function(t){this.styler_scheme_mutation_process=!1,t.matches?"light"==ws_form_settings.scheme?e.WS_Form.this.styler_scheme_alt_enable():e.WS_Form.this.styler_scheme_alt_disable():"light"==ws_form_settings.scheme?e.WS_Form.this.styler_scheme_alt_disable():e.WS_Form.this.styler_scheme_alt_enable()},e.WS_Form.prototype.styler_scheme_alt_enable=function(){e("html").addClass("wsf-styler-scheme-alt")},e.WS_Form.prototype.styler_scheme_alt_disable=function(){e("html").removeClass("wsf-styler-scheme-alt")},e.WS_Form.prototype.styler_scheme_third_party_class=function(t){if(this.styler_scheme_mutation_process){var s=[{present:"[id=automaticcss-core-css]",dark:"html.color-scheme--alt"},{present:".fl-builder",dark:".fl-dark-mode"},{present:".breakdance",dark:".breakdance-dark-mode"},{present:".bricks-builder",dark:".dark-mode"},{present:"html[data-theme]",dark:"html[dark-theme=dark]"},{present:".et_pb_page",dark:".et-dark-mode"},{present:".elementor",dark:".dark-mode"}
9,{present:".oxygen",dark:".dark-mode"}];for(var r in s)if(s.hasOwnProperty(r)){var _=s[r];if(e(_.present).length){e(_.dark).length?this.styler_scheme_alt_enable():this.styler_scheme_alt_disable();break}}}else this.styler_scheme_mutation_process=!0},e.WS_Form.prototype.styler_scheme_third_party_observer=function(t){t.forEach(function(t){"class"===t.attributeName&&e.WS_Form.this.styler_scheme_third_party_class(t)})}}(jQuery) 10;function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",o=t.toStringTag||"@@toStringTag";function a(t,n,o,a){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return _regeneratorDefine2(s,"_invoke",function(t,n,o){var a,l,c,s=0,d=o||[],u=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(r,t){return a=r,l=0,c=e,p.n=t,i}};function f(t,n){for(l=t,c=n,r=0;!u&&s&&!o&&r<d.length;r++){var o,a=d[r],f=p.p,v=a[2];t>3?(o=v===n)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=t<2&&f<a[1])?(l=0,p.v=n,p.n=a[1]):f<v&&(o=t<3||a[0]>n||n>v)&&(a[4]=t,a[5]=n,p.n=v,l=0))}if(o||t>1)return i;throw u=!0,n}return function(o,d,v){if(s>1)throw TypeError("Generator is already running");for(u&&1===d&&f(d,v),l=d,c=v;(r=l<2?e:c)||!u;){a||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(s=2,a){if(l||(o="next"),r=a[o]){if(!(r=r.call(a,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,l<2&&(l=0)}else 1===l&&(r=a.return)&&r.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((r=(u=p.n<0)?c:t.call(n,p))!==i)break}catch(r){a=e,l=1,c=r}finally{s=1}}return{value:r,done:u}}}(t,o,a),!0),s}var i={};function l(){}function c(){}function s(){}r=Object.getPrototypeOf;var d=[][n]?r(r([][n]())):(_regeneratorDefine2(r={},n,function(){return this}),r),u=s.prototype=l.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return c.prototype=s,_regeneratorDefine2(u,"constructor",s),_regeneratorDefine2(s,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine2(s,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:p}})()}function _regeneratorDefine2(e,r,t,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,r,t,n){function a(r,t){_regeneratorDefine2(e,r,function(e){return this._invoke(r,t,e)})}r?o?o(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a("next",0),a("throw",1),a("return",2))},_regeneratorDefine2(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void t(e)}l.done?r(c):Promise.resolve(c).then(n,o)}function _asyncToGenerator(e){return function(){var r=this,t=arguments;return new Promise(function(n,o){var a=e.apply(r,t);function i(e){asyncGeneratorStep(a,n,o,i,l,"next",e)}function l(e){asyncGeneratorStep(a,n,o,i,l,"throw",e)}i(void 0)})}}var bricksMapFn=new BricksFunction({parentNode:document,selector:".brxe-map[data-bricks-map-options]",eachElement:function(){var e=_asyncToGenerator(_regenerator().m(function e(r,t){var n,o,a,i,l,c,s,d,u,p,f,v,g,m,b,k,x;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:n=!document.body.classList.contains("bricks-is-frontend"),o='<span class="close-infobox" tabindex="0" role="button">Ã</span>',a=function(e,r){if(e&&!e.dataset.bricksMapCloseInfoboxBound){e.dataset.bricksMapCloseInfoboxBound="true";var t=function(){google.maps.event.trigger(r,"closeclick"),r.close()};e.addEventListener("click",function(){t()}),e.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())})}},i=function(){var e=_asyncToGenerator(_regenerator().m(function e(r,t){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e,n){r.geocode({address:t},function(r,t){"OK"===t?e(r):n(t)})}))},e)}));return function(r,t){return e.apply(this,arguments)}}(),l=function(e,r){var t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];
10if((null===(t=window.bricksData.googleMapInstances)||void 0===t?void 0:t[r])&&null!=e&&e.marker){var o=n?null==e?void 0:e.customMarkerActive:null==e?void 0:e.customMarker;e.marker.setContent(o||null)}},c=function(e,r){if(!e)return"";var t=e.infoTitle,n=void 0!==t&&t,a=e.infoSubtitle,i=void 0!==a&&a,l=e.infoOpeningHours,c=void 0!==l&&l,s=e.infoImages,d=void 0===s?{}:s,u=e.infoBoxSelector,p=void 0!==u&&u,f=e.popupNode,v=void 0!==f&&f,g=e.isAjaxPopup,m="";if(p){if(v)if(void 0!==g&&g)m='<div class="brx-infobox-content brx-popup-content"></div>';else{var b=v.querySelector(".brx-popup-content");if(b){for(var k=document.createDocumentFragment();b.firstChild;)k.appendChild(b.firstChild);var x=document.createElement("div");x.className="brx-infobox-content brx-popup-content",x.appendChild(k),e.popupContentNode=x,m='<div class="brx-infobox-content brx-popup-content"></div>',x.querySelector('[data-interactions*=\'"action":"closeAddress"\']')||(m+=o)}}}else{if(n&&(m+='<h3 class="title">'.concat(n,"</h3>")),i&&(m+='<p class="subtitle">'.concat(i,"</p>")),c){var M=c.split("\n").map(function(e){return"<li>".concat(e,"</li>")}).join("");m+='<ul class="content">'.concat(M,"</ul>")}var y=Array.isArray(d)?d:(null==d?void 0:d.images)||[];if(y.length){var I=y.map(function(r){return r.thumbnail&&r.src?'\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\t\t\tdata-pswp-src="'.concat(r.src,'"\n\t\t\t\t\t\t\t\t\t\t\t\tdata-pswp-width="').concat((null==r?void 0:r.width)||376,'"\n\t\t\t\t\t\t\t\t\t\t\t\tdata-pswp-height="').concat((null==r?void 0:r.height)||376,'"\n\t\t\t\t\t\t\t\t\t\t\t\tdata-pswp-id="').concat(e.id,'">\n\t\t\t\t\t\t\t\t\t\t\t\t<img src="').concat(r.thumbnail,'" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>'):""}).join("");m+='<ul class="images bricks-lightbox">'.concat(I,"</ul>")}m&&(m+=o)}return m},s=function(e,r){var t=window.bricksData.googleMapInstances[r]||!1;if(!t)return!1;var i=t.locations.find(function(r){return r.id===e.id});if(!i)return!1;if(i.infoBox)return i.infoBox;var s=c(e);if(!s)return!1;var p=parseInt(null==e?void 0:e.infoWidth)||300,f={content:s,disableAutoPan:!0,pixelOffset:new google.maps.Size(0,0),alignBottom:!1,infoBoxClearance:new google.maps.Size(20,20),enableEventPropagation:!1,zIndex:1001,boxStyle:{opacity:1,zIndex:999,top:0,left:0,width:"".concat(p,"px"),minWidth:"".concat(p,"px")},closeBoxURL:"",addressId:e.id,mapElId:r,interactionSelector:(null==e?void 0:e.infoBoxSelector)||!1};"sync"!==t.mapMode||n||(f.boxClass="brx-infobox-popup brx-popup brxe-".concat(t.syncQuery),null!=e&&e.popupTemplatId&&(f.boxClass+=" brxe-popup-".concat(e.popupTemplatId))),"query"===t.mapMode&&e.infoBoxSelector&&!n&&(f.boxClass="brx-infobox-popup brx-popup brxe-".concat(r),null!=e&&e.popupTemplatId&&(f.boxClass+=" brxe-popup-".concat(e.popupTemplatId)));var v=new InfoBox(f),g=(null==e?void 0:e.popupNode)&&(null==e?void 0:e.isAjaxPopup),m=(null==e?void 0:e.popupTemplatId)||!1,b=function(){if(v.div_){var e=v.div_.offsetHeight,n=t.map.getProjection().fromLatLngToPoint(i.marker.position),o=t.map.getProjection().fromPointToLatLng(new google.maps.Point(n.x,n.y-e*u(r)/2));t.map.panTo(o)}};return google.maps.event.addListener(v,"domready",function(r){if(!g&&e.popupContentNode&&v.div_){var t=v.div_.querySelector(".brx-popup-content");t&&t.parentNode.replaceChild(e.popupContentNode,t)}if(g&&v.div_){var n=v.div_,i=e.popupNode;Array.from(i.attributes).forEach(function(e){(e.name.startsWith("data-brx")||e.name.startsWith("data-popup"))&&n.setAttribute(e.name,e.value)});var l={},c=v.div_.getAttribute("data-interaction-loop-id")||!1;c&&(l.loopId=c),bricksOpenPopup(n,0,l),m&&document.addEventListener("bricks/ajax/popup/loaded",function(e){var r;(null===(r=e.detail)||void 0===r?void 0:r.popupId)===m&&(b(),k(),n.querySelector('[data-interactions*=\'"action":"closeAddress"\']')||(n.innerHTML+=o,a(n.querySelector(".close-infobox"),v)))},{once:!0})}g||(k(),bricksRunAllFunctions()),b();var s=(null==v?void 0:v.div_)&&(null==v?void 0:v.div_.querySelector(".close-infobox"));s&&a(s,v)}),google.maps.event.addListener(v,"closeclick",function(){l(i,r,!1),d(r,i,"closeInfobox")}),v.addressId&&v.mapElId&&(google.maps.event.addListener(v,"infobox_opened",function(){x("open",v.addressId,v.mapElId)}),google.maps.event.addListener(v,"infobox_closed",function(){x("close",v.addressId,v.mapElId)})),i.infoBox=v,v},d=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",n=window.bricksData.googleMap
10Instances[e]||!1;if(n){var o=n.map,a=n.bounds,i=n.locations;"closeInfobox"!==t?i.length>0&&(r&&r.position&&a.extend(r.position),i.length>1?(o.fitBounds(a),o.panToBounds(a)):1===i.length&&o.panTo(i[0].position)):o.panTo(r.position)}},u=function(e){var r,t=(null===(r=window.bricksData.googleMapInstances[e])||void 0===r?void 0:r.map)||!1;if(t){var n=t.getCenter(),o=t.getZoom(),a=t.getProjection().fromLatLngToPoint(new google.maps.LatLng(n.lat()-1/Math.pow(2,o),n.lng()-1/Math.pow(2,o))),i=t.getProjection().fromLatLngToPoint(new google.maps.LatLng(n.lat()+1/Math.pow(2,o),n.lng()+1/Math.pow(2,o)));return Math.abs(i.x-a.x)}},p=function(e,r){var t,o,a,i,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=function(){return Math.random().toString(36).substring(2,8)};if(n)return[{address:null==l?void 0:l.address,latitude:null==l?void 0:l.lat,longitude:null==l?void 0:l.lng,id:c(),infoTitle:(null===(o=window.bricksData)||void 0===o||null===(o=o.i18n)||void 0===o?void 0:o.locationTitle)||"Location Title",infoSubtitle:(null===(a=window.bricksData)||void 0===a||null===(a=a.i18n)||void 0===a?void 0:a.locationSubtitle)||"Location Subtitle",infoOpeningHours:(null===(i=window.bricksData)||void 0===i||null===(i=i.i18n)||void 0===i?void 0:i.locationContent)||"Location Content"}];var s=(null===(t=window)||void 0===t||null===(t=t.bricksData)||void 0===t?void 0:t.queryLoopInstances[e])||!1;if(!s)return[];var d=s.resultsContainer.querySelectorAll(".brxe-map-connector[data-brx-latitude][data-brx-longitude], [data-brx-address]");return Array.from(d).map(function(t){var n=c(),o={latitude:t.getAttribute("data-brx-latitude"),longitude:t.getAttribute("data-brx-longitude"),address:t.getAttribute("data-brx-address"),id:n,infoBoxSelector:t.getAttribute("data-brx-infobox-selector"),infoWidth:300,popupNode:null,isAjaxPopup:!1,popupTemplatId:t.getAttribute("data-brx-infobox-template"),markerAriaLabel:"",markerText:"",markerTextActive:"",marker:{},markerActive:{}},a=t.getAttribute("data-brx-marker-data")||"{}";try{var i=JSON.parse(a);o.markerAriaLabel=i.markerAriaLabel||o.markerAriaLabel,o.markerText=i.markerText||o.markerText,o.markerTextActive=i.markerTextActive||o.markerTextActive,o.marker=i.marker||o.marker,o.markerActive=i.markerActive||o.markerActive}catch(e){console.error("Bricks: Invalid JSON data for marker",e)}if(o.infoBoxSelector){var l=document.querySelector('[data-popup-loop-id="'.concat(o.infoBoxSelector,'"]'))||document.querySelector(".brx-popup.brxe-".concat(e,'[data-popup-ajax="1"]'));l&&(o.popupNode=l,o.isAjaxPopup=l.hasAttribute("data-popup-ajax"),o.infoWidth=parseInt(l.getAttribute("data-brx-infobox-width"))||o.infoWidth)}return t.setAttribute("data-brx-address-id",n),t.setAttribute("data-brx-sync-map-id",r),o})},f=function(e,r){var t=Array.isArray(e.addresses)?e.addresses:[];return Array.from(t).map(function(e){var t={latitude:e.latitude,longitude:e.longitude,address:e.address,id:e.id,infoTitle:e.infoTitle,infoSubtitle:e.infoSubtitle,infoOpeningHours:e.infoOpeningHours,infoImages:e.infoImages,infoBoxSelector:e.infoBoxSelector,infoWidth:e.infoWidth||300,popupNode:null,isAjaxPopup:!1,popupTemplatId:e.popupTemplatId,markerAriaLabel:e.markerAriaLabel||"",markerText:e.markerText||"",markerTextActive:e.markerTextActive||"",marker:e.marker||{},markerActive:e.markerActive||{}};if(t.infoBoxSelector){var n=document.querySelector('[data-popup-loop-id="'.concat(t.infoBoxSelector,'"]'))||document.querySelector(".brx-popup.brxe-".concat(r,'[data-popup-ajax="1"]'));n&&(t.popupNode=n,t.isAjaxPopup=n.hasAttribute("data-popup-ajax"),t.infoWidth=parseInt(n.getAttribute("data-brx-infobox-width"))||t.infoWidth)}return t})},v=function(e,r){var t,n,o=window.bricksData.googleMapInstances[r]||!1,a=(null===(t=window.bricksData.googleMapInstances[r])||void 0===t?void 0:t.map)||!1;if(a&&o){var i=(null===(n=window.bricksData.googleMapInstances[r])||void 0===n?void 0:n.locations)||[],c=i.find(function(r){return r.id===e.id});i.forEach(function(e){var t;null===(t=e.infoBox)||void 0===t||t.close(),l(e,r,!1)}),l(c,r,!0);var d=s(e,r);d?d.open(a,c.marker):a.panTo(c.position)}},g=function(e){var r=e.type,t=e.url,n=e.width,o=e.height,a=e.text,i=e.extraClassName;if("text"===r){var l=document.createElement("div");return l.className="brx-marker-text ".concat(i||""),l.innerHTML=a||"Mar
10ker",l}var c=document.createElement("img");return c.src=t||"data:image/svg+xml;base64,CgkJCQk8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI2cHgiIGhlaWdodD0iMzhweCIgdmlld0JveD0iMCAwIDI2IDM3IiBmaWxsPSJub25lIj4KCQkJCQk8Zz4KCQkJCQkJPHBhdGggZD0iTTEzIDBDNS44MTc1IDAgMCA1Ljc3MzI4IDAgMTIuOTE4MUMwIDIwLjU3MzMgNS41OSAyMy40NDQgOS41NTQ5OSAzMC4wNzg0QzEyLjA5IDM0LjMyMDcgMTEuMzQyNSAzNyAxMyAzN0MxNC43MjI1IDM3IDEzLjk3NSAzNC4yNTY5IDE2LjQ0NSAzMC4xNDIyQzIwLjA4NSAyMy44NTg2IDI2IDIwLjYwNTIgMjYgMTIuOTE4MUMyNiA1Ljc3MzI4IDIwLjE4MjUgMCAxMyAwWiIgZmlsbD0iI0M1MjIxRiIvPgoJCQkJCQk8cGF0aCBkPSJNMTMuMDE2NyAzNUMxMi43ODM2IDM1IDEyLjcxNzEgMzQuOTM0NiAxMi4zMTc2IDMzLjcyNUMxMS45ODQ4IDMyLjY3ODkgMTEuNDg1NCAzMS4wNzY5IDEwLjE4NzMgMjkuMTE1NEM4LjkyMjMzIDI3LjE4NjYgNy41OTA4NSAyNS42MTczIDYuMzI1OTQgMjQuMTEzNUMzLjM2MzM5IDIwLjUxNzQgMSAxNy43MDU3IDEgMTIuNjM4NUMxLjAzMzI5IDYuMTk4MDggNi4zOTI1MSAxIDEzLjAxNjcgMUMxOS42NDA4IDEgMjUgNi4yMzA3OCAyNSAxMi42Mzg1QzI1IDE3LjcwNTcgMjIuNjY5OSAyMC41NSAxOS42NzQxIDI0LjE0NjJDMTguNDQyNSAyNS42NSAxNy4xNDQzIDI3LjIxOTMgMTUuODc5MyAyOS4xMTU0QzE0LjYxNDQgMzEuMDQ0MiAxNC4wODE4IDMyLjYxMzUgMTMuNzQ5IDMzLjY1OTZDMTMuMzQ5NSAzNC45MzQ2IDEzLjI0OTcgMzUgMTMuMDE2NyAzNVoiIGZpbGw9IiNFQTQzMzUiLz4KCQkJCQkJPHBhdGggZD0iTTEzIDE4QzE1Ljc2MTQgMTggMTggMTUuNzYxNCAxOCAxM0MxOCAxMC4yMzg2IDE1Ljc2MTQgOCAxMyA4QzEwLjIzODYgOCA4IDEwLjIzODYgOCAxM0M4IDE1Ljc2MTQgMTAuMjM4NiAxOCAxMyAxOFoiIGZpbGw9IiNCMzE0MTIiLz4KCQkJCQk8L2c+CgkJCQk8L3N2Zz4=",c.className=t?"brx-marker-img ".concat(i||""):"brx-marker-img default ".concat(i||""),c.alt="Map marker",n&&(c.style.width=n+"px"),o&&(c.style.height=o+"px"),c},m=function(e,r,t){var n,o,a=window.bricksData.googleMapInstances[t]||!1,i=(null===(n=window.bricksData.googleMapInstances[t])||void 0===n?void 0:n.map)||!1,l=(null==a?void 0:a.settings)||!1;if(i&&a&&e&&r&&l){var c={id:e.id,infoTitle:e.infoTitle,address:e,position:r,customMarker:!1,customMarkerActive:!1,marker:!1},s=function(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("text"===e){var o,a,i,l=n?(null==t||null===(o=t.address)||void 0===o?void 0:o.markerTextActive)||(null==t||null===(a=t.address)||void 0===a?void 0:a.markerText)||(null==r?void 0:r.markerTextActive)||(null==r?void 0:r.markerText)||"Marker":(null==t||null===(i=t.address)||void 0===i?void 0:i.markerText)||(null==r?void 0:r.markerText)||"Marker";return g({type:"text",text:l,extraClassName:n?"active":""})}var c,s,d,u,p,f,v,m,b,k=n?(null==t||null===(c=t.address)||void 0===c||null===(c=c.markerActive)||void 0===c?void 0:c.url)||(null==t||null===(s=t.address)||void 0===s||null===(s=s.marker)||void 0===s?void 0:s.url)||(null==r?void 0:r.markerActive)||(null==r?void 0:r.marker)||"":(null==t||null===(d=t.address)||void 0===d||null===(d=d.marker)||void 0===d?void 0:d.url)||(null==r?void 0:r.marker)||"",x=n?(null==t||null===(u=t.address)||void 0===u||null===(u=u.markerActive)||void 0===u?void 0:u.width)||(null==t||null===(p=t.address)||void 0===p?void 0:p.markerWidth)||(null==r?void 0:r.markerActiveWidth)||(null==r?void 0:r.markerWidth)||"40":(null==t||null===(f=t.address)||void 0===f?void 0:f.markerWidth)||(null==r?void 0:r.markerWidth)||"40",M=n?(null==t||null===(v=t.address)||void 0===v||null===(v=v.markerActive)||void 0===v?void 0:v.height)||(null==t||null===(m=t.address)||void 0===m?void 0:m.markerHeight)||(null==r?void 0:r.markerActiveHeight)||(null==r?void 0:r.markerHeight)||"40":(null==t||null===(b=t.address)||void 0===b?void 0:b.markerHeight)||(null==r?void 0:r.markerHeight)||"40";return g({type:"image",url:k,width:x,height:M,extraClassName:n?"active":""})};c.customMarker=s(l.markerType,l,c),c.customMarkerActive=s(l.markerType,l,c,!0),c.marker=new BricksGoogleMarker({position:r,content:c.customMarker,map:i,title:(null==e?void 0:e.markerAriaLabel)||(null==e?void 0:e.infoTitle)||(null==a||null===(o=a.settings)||void 0===o?void 0:o.markerAriaLabel)||(null==e?void 0:e.id)||"",clickable:!0,markerData:{addressObj:e,locationInfo:c}}),c.marker&&(a.locations.push(c),c.marker.setMap(i),google.maps.event.addListener(c.marker,"click",function(){v(e,t)}))}},b=function(){var e=_asyncToGenerator(_regenerator().m(function e(r,t){var n,o,a,l,c,s,d=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return c=function(e,r){var t=window.bricksData.googleMap
10Instances[e]||!1;if(t){var n=t.map,o=t.mapOptions,a=t.locations;if("syncQuery"!==r||t.fitMapOnMarkersChange)if(a.length<1)n.setZoom(o.zoom),n.panTo(o.center);else if(1===a.length&&"pageLoad"===r){var i=a[0];i.position&&n.panTo(i.position);var l=google.maps.event.addListener(n,"idle",function(){n.setZoom(o.zoom),google.maps.event.removeListener(l)})}else if(t.bounds=new google.maps.LatLngBounds,a.forEach(function(e){e.position&&e.position.lat&&e.position.lng&&t.bounds.extend(e.position)}),n.fitBounds(t.bounds),n.panToBounds(t.bounds),1===a.length)var c=google.maps.event.addListener(n,"idle",function(){n.setZoom(o.zoom),google.maps.event.removeListener(c)})}},l=function(e){document.dispatchEvent(new CustomEvent("bricks/map/markers/rendered/".concat(e)))},a=function(){return a=_asyncToGenerator(_regenerator().m(function e(r,t){var n,o,a,l,c,s,d,u;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:n=new google.maps.Geocoder,o=_createForOfIteratorHelper(t),e.p=1,o.s();case 2:if((a=o.n()).done){e.n=9;break}if(l=a.value,e.p=3,null==l||!l.latitude||null==l||!l.longitude){e.n=4;break}m(l,{lat:parseFloat(l.latitude),lng:parseFloat(l.longitude)},r),e.n=6;break;case 4:if(null==l||!l.address){e.n=6;break}return e.n=5,i(n,l.address);case 5:(c=e.v)&&(s=c[0].geometry.location,m(l,s,r));case 6:e.n=8;break;case 7:e.p=7,d=e.v,console.warn("Geocode error:",d);case 8:e.n=2;break;case 9:e.n=11;break;case 10:e.p=10,u=e.v,o.e(u);case 11:return e.p=11,o.f(),e.f(11);case 12:return e.a(2)}},e,null,[[3,7],[1,10,11,12]])})),a.apply(this,arguments)},o=function(e,r){return a.apply(this,arguments)},n=d.length>2&&void 0!==d[2]?d[2]:"pageLoad",e.p=1,e.n=2,o(r,t);case 2:l(r),c(r,n),e.n=4;break;case 3:throw e.p=3,s=e.v,console.error("Error rendering map markers:",s),s;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(r,t){return e.apply(this,arguments)}}(),k=function(){var e=document.querySelectorAll('[data-interactions*="openAddress"], [data-interactions*="closeAddress"]');e.length<1||e.forEach(function(e){var r,t,n;e.closest(".brx-infobox-popup[data-interaction-loop-id]")&&e.closest('.brx-popup[data-popup-ajax="1"]')?(r=e.closest(".brx-infobox-popup[data-interaction-loop-id]").dataset.interactionLoopId,t=document.querySelector('.brxe-map-connector[data-brx-infobox-selector="'.concat(r,'"]'))):(r=null===(n=e.dataset)||void 0===n?void 0:n.interactionLoopId,t=document.querySelector('.brxe-map-connector[data-brx-infobox-selector="'.concat(r,'"]')));if(t||(t=e.closest("[data-brx-address-id][data-brx-sync-map-id")),t&&r){var o=t.dataset,a=o.brxAddressId,i=o.brxSyncMapId;a&&i&&(e.setAttribute("data-brx-infobox-open",a),e.setAttribute("data-brx-infobox-map-id",i))}})},x=function(e,r,t){if(r&&t){var n=document.querySelectorAll('[data-brx-infobox-open="'.concat(r,'"][data-brx-infobox-map-id="').concat(t,'"]'));n.length<1||n.forEach(function(r){"open"===e?r.classList.add("infobox-opened"):"close"===e&&r.classList.remove("infobox-opened")})}},setTimeout(_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a,l,c,s,d,u,v,g,m,x,M,y,I,w,h,A,T;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=function(){var e=r.dataset.bricksMapOptions;if(!e)return!1;try{return JSON.parse(e)}catch(e){return!1}}(),o=r.dataset.scriptId||!1,n&&o){e.n=1;break}return e.a(2);case 1:if(window.bricksData.googleMapInstances||(window.bricksData.googleMapInstances={}),null!==(t=window.bricksData.googleMapInstances)&&void 0!==t&&t[o]&&(window.bricksData.googleMapInstances[o].nodesAddedEvent&&document.removeEventListener("bricks/ajax/nodes_added",window.bricksData.googleMapInstances[o].nodesAddedEvent),window.bricksData.googleMapInstances[o].markersRenderedEvent&&document.removeEventListener("bricks/map/markers/rendered/".concat(o),window.bricksData.googleMapInstances[o].markersRenderedEvent),window.bricksData.googleMapInstances[o].clustererInstance&&window.bricksData.googleMapInstances[o].clustererInstance.clearMarkers(),delete window.bricksData.googleMapInstances[o]),r.removeAttribute("data-bricks-map-options"),n.disableDefaultUI&&Object.assign(n,{fullscreenControl:!1,mapTypeControl:!1,streetViewControl:!1,zoomControl:!1}),a={mapTypeId:(null==n?void 0:n.type)||"ROADMAP",zoom:n.zoom?parseInt(n.zoom):12,gestureHandling:function(){return n.draggable?n.scrollwheel&&n.draggable?"cooperative":!n.scrollwheel&&n.draggable?"greedy":"auto":"none"}(),fullscreenControl:n.fullscreenControl,mapTypeControl:n.mapTypeControl,streetViewControl:n.streetViewControl,zoomControl:n.zoomControl,disableDefaultUI:n.disableDefaultUI,clickableIcons:null==n?void 0:n.clickableIcons}
10,l=(null==n?void 0:n.googleMapId)||!1,c=(null==n?void 0:n.markerCluster)||!1,s=(null==n?void 0:n.mapMode)||"static",d=(null==n?void 0:n.syncQuery)||!1,u=(null==n?void 0:n.noLocationsText)||window.bricksData.i18n.noLocationsFound||!1,v=(null==n?void 0:n.markerType)||"image",g=(null==n?void 0:n.fitMapOnMarkersChange)||!1,l&&(a.mapId=l),null!=n&&n.styles&&!l)try{a.styles=JSON.parse(n.styles)}catch(e){console.error("Error parsing map styles:",e)}if(n.zoomControl&&(null!=n&&n.maxZoom&&(a.maxZoom=parseInt(n.maxZoom)),null!=n&&n.minZoom&&(a.minZoom=parseInt(n.minZoom))),m=new google.maps.LatLngBounds,null==n||!n.center){e.n=4;break}if(null==n||null===(x=n.center)||void 0===x||!x.address){e.n=3;break}return I=new google.maps.Geocoder,e.n=2,i(I,n.center.address);case 2:(w=e.v)&&(a.center={lat:w[0].geometry.location.lat(),lng:w[0].geometry.location.lng()}),e.n=4;break;case 3:null!=n&&null!==(M=n.center)&&void 0!==M&&M.latitude&&null!=n&&null!==(y=n.center)&&void 0!==y&&y.longitude?a.center={lat:parseFloat(n.center.latitude),lng:parseFloat(n.center.longitude)}:a.center={lat:52.5164154966524,lng:13.377643715349544};case 4:h=[],T=s,e.n="sync"===T?5:"query"===T?6:"static"===T?7:8;break;case 5:return h=p(d,o,a.center),e.a(3,8);case 6:return h=f(n,o),e.a(3,8);case 7:return h=Array.isArray(null==n?void 0:n.addresses)?n.addresses:[{address:a.center}],e.a(3,8);case 8:return A=new google.maps.Map(r,a),window.bricksData.googleMapInstances[o]={map:A,mapMode:s,mapOptions:a,mapId:l,bounds:m,settings:n,locations:[],useMarkerClusterer:c,clustererInstance:!1,syncQuery:d,noLocationsText:u,markerType:v,nodesAddedEvent:!1,markersRenderedEvent:!1,fitMapOnMarkersChange:g},d&&(window.bricksData.googleMapInstances[o].nodesAddedEvent=function(){var e=_asyncToGenerator(_regenerator().m(function e(r){var t,n,a,i;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=(null==r||null===(t=r.detail)||void 0===t?void 0:t.queryId)||!1,a=window.bricksData.googleMapInstances[o]||!1,n&&n===d&&a){e.n=1;break}return e.a(2);case 1:return a.locations.forEach(function(e){var r,t,n,o,a;if(null===(r=e.infoBox)||void 0===r||r.close(),null===(t=e.marker)||void 0===t||t.setMap(null),(null==e||null===(n=e.address)||void 0===n||!n.isAjaxPopup)&&null!=e&&null!==(o=e.address)&&void 0!==o&&o.popupNode&&null!=e&&null!==(a=e.address)&&void 0!==a&&a.popupContentNode){var i=e.address.popupNode.querySelector(".brx-popup-content");i&&i.parentNode.replaceChild(e.address.popupContentNode,i)}}),a.locations=[],a.useMarkerClusterer&&a.clustererInstance&&a.clustererInstance.clearMarkers(),i=p(d,o),e.n=2,b(o,i,"syncQuery");case 2:return e.a(2)}},e)}));return function(r){return e.apply(this,arguments)}}(),document.addEventListener("bricks/ajax/nodes_added",window.bricksData.googleMapInstances[o].nodesAddedEvent)),window.bricksData.googleMapInstances[o].markersRenderedEvent=function(){var e=window.bricksData.googleMapInstances[o]||!1;if(e){var t=e.locations.map(function(e){return e.marker}),n=r.querySelector(".brx-map-no-results");if(t.length<1&&e.noLocationsText){if(!n){var a=document.createElement("div");a.classList.add("brx-map-no-results"),a.innerHTML=e.noLocationsText,r.appendChild(a)}}else null==n||n.remove();if(e.useMarkerClusterer){var i={map:e.map,markers:t,algorithmOptions:{maxZoom:16,radius:60}};i.renderer={render:function(e,r){var t=e.count,n=e.position;return new BricksGoogleMarker({position:n,content:'<svg class="brx-map-cluster" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="60" height="60"><circle cx="120" cy="120" opacity=".6" r="70"></circle><circle cx="120" cy="120" opacity=".4" r="90"></circle><circle cx="120" cy="120" opacity=".2" r="110"></circle><text x="50%" y="50%" text-anchor="middle" font-size="60" font-weight="600" font-family="roboto,arial,sans-serif" dominant-baseline="middle">'.concat(t,"</text></svg>"),title:"Cluster of ".concat(t," markers"),clickable:!0,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+t})}},e.clustererInstance=new markerClusterer.MarkerClusterer(i)}k()}},document.addEventListener("bricks/map/markers/rendered/".concat(o),window.bricksData.googleMap
10Instances[o].markersRenderedEvent),e.n=9,b(o,h,"pageLoad");case 9:return e.a(2)}},e)})),1e3*t);case 1:return e.a(2)}},e)}));return function(r,t){return e.apply(this,arguments)}}()});function bricksMap(){return _bricksMap.apply(this,arguments)}function _bricksMap(){return(_bricksMap=_asyncToGenerator(_regenerator().m(function e(){var r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=function(){return new Promise(function(e,r){var t,n,o;if("undefined"!=typeof InfoBox&&"undefined"!=typeof markerClusterer&&"undefined"!=typeof BricksGoogleMarker)return e();var a=(null===(t=window)||void 0===t||null===(t=t.bricksData)||void 0===t?void 0:t.infoboxScript)||!1;if(!a)return console.error("InfoBox library URL not found"),r(new Error("InfoBox library URL not found"));var i=function(e,r){return new Promise(function(t,n){var o,a=document.createElement("script");!bricksIsFrontend&&null!==(o=window.bricksData)&&void 0!==o&&o.builderCloudflareRocketLoader&&a.setAttribute("data-cfasync","false"),a.src=e,a.async=!0,a.defer=!0,a.id=r,a.onload=function(){return t()},a.onerror=function(e){return n(e)},document.body.appendChild(a)})},l=(null===(n=window)||void 0===n||null===(n=n.bricksData)||void 0===n?void 0:n.markerClustererScript)||!1;if(!l)return console.error("MarkerClusterer library URL not found"),r(new Error("MarkerClusterer library URL not found"));var c=(null===(o=window)||void 0===o||null===(o=o.bricksData)||void 0===o?void 0:o.bricksGoogleMarkerScript)||!1;if(!c)return console.error("Bricks Google Marker library URL not found"),r(new Error("Bricks Google Marker library URL not found"));Promise.all([i(a,"bricks-google-maps-infobox"),i(c,"bricks-google-marker"),i(l,"bricks-google-maps-markerclusterer")]).then(function(){e()}).catch(function(e){console.error("Error loading library",e),r(e)})})},e.n=1,google.maps.importLibrary("marker");case 1:return e.n=2,r();case 2:bricksMapFn.run();case 3:return e.a(2)}},e)}))).apply(this,arguments)} 11;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.