// source --> https://medcell.co/wp-content/themes/Total/assets/js/frontend/core.min.js?ver=6.1 
var wpex={};!function(e){"use strict";(wpex={init:function(){this.config(),this.replaceNoJsClass(),this.addBodyClasses(),this.runMethods(),this.bindEvents()},config:function(){this.config={localScrollSections:[],preferedReducedMotion:this.preferedReducedMotion()}},replaceNoJsClass:function(){let e=document.body.className;e=e.replace(/wpex-no-js/,"wpex-js"),document.body.className=e},addBodyClasses:function(){this.retinaCheck()&&document.body.classList.add("wpex-is-retina"),this.mobileCheck()&&document.body.classList.add("wpex-is-mobile-device")},runMethods:function(){this.megaMenusWidth(),this.megaMenusTop(),this.accessibility(),this.goBackButton(),this.skipToContent(),this.backTopLink(),this.backTopButton(),this.dialogs(),this.smoothCommentScroll(),this.customSelects(),this.localScrollSections(),this.dropdownMenuFlips(),this.dropdownMenuOnclick(),this.dropdownMenuTouch(),this.toggleElements(),this.localScrollLinks(),this.hoverStyles(),this.overlaysMobileSupport(),this.headerOverlayOffset(),this.stickyHeader(),this.footerReveal(),this.fixedFooter()},bindEvents:function(){const t=this;t.domReady((()=>{document.body.classList.add("wpex-docready"),t.disableWPBTabAnimations()})),window.addEventListener("load",(()=>{document.body.classList.add("wpex-window-loaded"),t.equalHeights(),t.localScrollHighlight(),t.stickyElements(),e.scrollToHash&&location.hash&&window.setTimeout((function(){t.scrollToHash(t)}),parseInt(e.scrollToHashTimeout))}))},dropdownMenuFlips:function(){const e=document.body.classList.contains("rtl"),t=document.querySelectorAll(".wpex-dropdown-menu > .menu-item-has-children:not(.megamenu,.vcex-horizontal-menu-nav__item--has_mega)"),o=t=>{const o=t.getBoundingClientRect();return e?o.left<0:o.right>window.innerWidth},n=(e,t)=>{if(t.classList.remove("flip-dropdown","left-dropdowns"),o(e))t.classList.add("flip-dropdown","left-dropdowns");else{const n=e.querySelector(".sub-menu");n&&o(n)&&t.classList.add("left-dropdowns")}};t.forEach((e=>{const t=e.querySelector(".sub-menu");if(!t)return;const o=e.closest(".wpex-dropdown-menu--onclick")?"click":"mouseenter";e.addEventListener(o,(()=>{n(t,e)})),"mouseenter"===o&&e.addEventListener("wpex:dropdownItemTouched",(()=>{n(t,e)}))}))},dropdownMenuOnclick:function(){document.addEventListener("click",(e=>{const t=e.target;if(!t.closest(".wpex-dropdown-menu--onclick .menu-item-has-children > a, .wpex-dropdown-menu--onclick .menu-item-has-children > .vcex-horizontal-menu-nav__item-content"))return void document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.classList.remove("wpex-active")}));document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach((e=>{e.contains(t)||e.classList.remove("wpex-active")}));const o=t.closest(".menu-item-has-children"),n=t.closest("a,.vcex-menu-nav__item-content");o.classList.contains("wpex-active")?(o.classList.remove("wpex-active"),"#"===n.getAttribute("href")&&e.preventDefault()):(o.classList.add("wpex-active"),e.preventDefault())})),document.addEventListener("keydown",(e=>{const t=e.target.closest(".wpex-dropdown-menu--onclick .menu-item-has-children.wpex-active");"Escape"===e.key&&t&&t.classList.remove("wpex-active")})),document.querySelectorAll(".wpex-dropdown-menu--onclick .sub-menu").forEach((e=>{e.addEventListener("keydown",(e=>{if("Escape"===e.key){const t=e.target.closest(".menu-item-has-children.wpex-active");if(t){t.classList.remove("wpex-active");t.querySelector("a").focus(),e.stopPropagation()}}}))}))},dropdownMenuTouch:function(){let e=!1;document.querySelectorAll(".wpex-dropdown-menu--onhover .menu-item-has-children > a, .wpex-dropdown-menu--onhover .menu-item-has-children > .vcex-horizontal-menu-nav__item-content").forEach((t=>{t.addEventListener("touchend",(o=>{if(e)return;const n=t.closest(".menu-item-has-children");n.classList.contains("wpex-touched")||(o.preventDefault(),n.classList.add("wpex-touched"),n.dispatchEvent(new CustomEvent("wpex:dropdownItemTouched")))})),t.addEventListener("touchmove",(t=>{e=!0}),{passive:!0}),t.addEventListener("touchstart",(t=>{e=!1}),{passive:!0})}));const t=e=>{const t=e.target;document.querySelectorAll(".menu-item-has-children.wpex-touched").forEach((e=>{e.contains(t)||e.classList.remove("wpex-touched")}))};document.addEventListener("touchstart",t,{passive:!0}),document.addEventListener("touchmove",t,{passive:!0})},megaMenusWidth:function(){const e=this,t=document.querySelectorAll("#site-header-inner.container #site-navigation-wrap.wpex-stretch-megamenus .megamenu:not(.no-stretch) > ul");if(!t.length)return;const o=document.querySelector("#site-header-inner.container"),n=document.querySelector("#site-navigation-wrap"),s=()=>{if(!e.isVisible(n))return;let s,i;const r=n.classList.contains("navbar-style-one"),l=o.getBoundingClientRect().width;r&&(i=parseInt(o.getBoundingClientRect().left),s=n.getBoundingClientRect().left),t.forEach((e=>{e.style.width=`${l}px`,r&&(e.style.marginLeft=`-${s-i}px`)}))};s();const i=e.debounce((()=>{s()}),300);window.addEventListener("resize",i)},megaMenusTop:function(){const e=this,t=document.querySelector("#site-header.header-one");if(!t)return;const o=t.querySelector("#site-navigation-wrap.wpex-stretch-megamenus:not(.wpex-flush-dropdowns)");if(!this.isVisible(o))return;const n=o.querySelectorAll(".megamenu > ul");if(!n)return;let s=!1,i=!1;const r=()=>{e.isVisible(o)&&((()=>{const e=o.getBoundingClientRect().height,n=(t.getBoundingClientRect().height-e)/2+e;n!==s?(s=n,i=!0):i=!1})(),i&&n.forEach((e=>{e.style.top=s+"px"})))};r();const l=e.debounce((()=>{r()}),300);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),o.querySelectorAll(".megamenu > a").forEach((e=>{e.addEventListener("mouseenter",r,!1),e.addEventListener("touchend",r,!1)}))},headerOverlayOffset:function(){const e=document.querySelector("#site-header");if(!e||!e.classList.contains("overlay-header")||e.classList.contains("header-fixed-height"))return;let t=!1;const o=document.querySelectorAll(".overlay-header-offset-div");if(!o)return;const n=(n=o)=>{const s=e.getBoundingClientRect().height;s!==t&&(t=s,o.forEach((e=>{e.style.height=`${t}px`})))},s=this.debounce((()=>{n()}),100);n(),window.addEventListener("load",n),window.addEventListener("resize",s)},stickyHeader:function(){const e=document.querySelector("#site-header.wpex-sticky");if(!e||"object"==typeof wpex_sticky_header_params)return;const t=()=>{document.body.style.setProperty("--wpex-sticky-header-height",`${e.offsetHeight}px`)};t();new ResizeObserver((()=>t())).observe(e)},skipToContent:function(){const e=this;document.addEventListener("click",(t=>{if(!t.target.classList.contains("skip-to-content"))return;const o=t.target.getAttribute("href"),n=document.querySelector(o);n&&(t.preventDefault(),n.setAttribute("tabIndex","-1"),e.scrollTo(o))}))},backTopLink:function(){const t=this;document.addEventListener("click",(o=>{let n=o.target;if(!n.closest("a#site-scroll-top, a.wpex-scroll-top, .wpex-scroll-top a"))return;const s=n.closest("#site-scroll-top");if(s&&(n=s),0!==window.scrollY){const o=document.querySelector('[data-ls_id="#site_top"]');o&&o.focus({preventScroll:!0,focusVisible:!1});const s=t.getEasing(n.dataset.scrollEasing);if(s&&"function"==typeof jQuery){const t=parseInt(n.dataset.scrollSpeed||e.localScrollSpeed);jQuery("html, body").stop(!0,!0).animate({scrollTop:0},t,s)}else window.scrollTo({top:0,behavior:t.getScrollToBehavior()})}o.preventDefault(),o.stopPropagation()}))},backTopButton:function(){const e=document.querySelector("#site-scroll-top");if(!e)return;const t=e.hasAttribute("data-scroll-offset")?parseInt(e.getAttribute("data-scroll-offset")):100;if(0===t)return;window.addEventListener("scroll",(()=>{window.scrollY>t?(e.classList.add("show"),e.classList.remove("wpex-invisible","wpex-opacity-0")):(e.classList.remove("show"),e.classList.add("wpex-invisible","wpex-opacity-0"))}),{passive:!0})},smoothCommentScroll:function(){const e=this;document.addEventListener("click",(t=>{if(t.target.closest(".comments-link")){const o=document.querySelector("#comments");o&&(o.setAttribute("tabIndex","-1"),e.scrollTo("#comments"),t.preventDefault(),t.stopPropagation())}}))},goBackButton:function(){document.addEventListener("click",(e=>{e.target.closest(".wpex-go-back")&&(e.preventDefault(),history.back())}))},dialogs:function(){const e=this,t=e=>{if(!e.target.closest(".wpex-modal__inner")){const t=e.target.closest("dialog");t&&n(t)}},o=o=>{if(!o)return;const n=document.querySelector(`#${o.replace("#","")}`);if(n)if(n.classList.contains("wpex-modal")){n.showModal();n.querySelector(".wpex-modal__inner")&&n.addEventListener("click",t),document.body.classList.add("modal-is-open"),document.body.classList.contains("vc_editor")||e.htmlNoScroll("add")}else n.show()},n=e=>{e.classList.contains("wpex-modal")&&e.removeEventListener("click",t),e.close()},s=()=>{document.querySelectorAll(".wpex-modal").forEach((t=>{t.addEventListener("close",(()=>{document.body.classList.remove("modal-is-open"),e.htmlNoScroll("remove"),t.classList.contains("wpex-modal--fade-in")&&t.classList.remove("wpex-modal--fade-in"),document.querySelectorAll(`[aria-controls="${t.id}"]`).forEach((e=>{e.setAttribute("aria-expanded","false")}))}))}))};s(),document.addEventListener("click",(e=>{const t=e.target.closest(".wpex-open-modal,.wpex-open-dialog"),s=e.target.closest(".wpex-close-modal");if(t||s)if(e.preventDefault(),t){const e=t.getAttribute("aria-controls");e&&(o(e),t.setAttribute("aria-expanded","true"))}else if(s){const t=e.target.closest("dialog");t&&n(t)}})),document.addEventListener("keydown",(e=>{if(" "===e.key){const t=e.target.closest(".wpex-open-modal,.wpex-open-dialog");if(t){const n=t.getAttribute("aria-controls");n&&(e.preventDefault(),o(n))}}})),window.addEventListener("totaltheme_loadmore_posts",s),window.addEventListener("vcexAfterAjaxSuccess",s)},toggleElements:function(){const e=this,t=(e,t)=>{t=t||document;const o=e.getAttribute("id");if(!o)return;e.classList.add("wpex-toggle-element--visible");const n=e.parentNode;n.classList.contains("wpex-toggle-element")?(n.classList.add("wpex-toggle-element--visible"),n.setAttribute("tabIndex","-1"),n.focus({preventScroll:!0,focusVisible:!1})):(e.setAttribute("tabIndex","-1"),e.focus({preventScroll:!0,focusVisible:!1})),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${o}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","true"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.add("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),n=e.querySelector(".theme-button-text")||e;o&&t&&n&&(n.textContent=t)})(e)})),window.dispatchEvent(new Event("resize")),e.dispatchEvent(new CustomEvent("wpex_toggle_element_open")),"function"==typeof jQuery&&"function"==typeof jQuery.fn.sliderPro&&jQuery(e).find(".wpex-slider").each((function(){jQuery(this).data("sliderPro")&&jQuery(this).sliderPro("update")}))},o=(e,t)=>{t=t||document;const o=e.getAttribute("id");o&&(e.classList.remove("wpex-toggle-element--visible"),e.dispatchEvent(new CustomEvent("wpex_toggle_element_close")),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${o}"]`).forEach((e=>{(e=>{e.setAttribute("aria-expanded","false"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.remove("active");const t=e.getAttribute("data-close-text"),o=e.getAttribute("data-open-text"),n=e.querySelector(".theme-button-text")||e;o&&t&&n&&(n.textContent=o)})(e)})))};document.addEventListener("click",(n=>{const s=n.target.closest("a.wpex-toggle-element-trigger,button.wpex-toggle-element-trigger");if(!s)return;const i=(e=>{const t=e.getAttribute("aria-controls");if(t)return document.querySelector(`#${t.replace("#","")}`)})(s);if(!i||!i.classList.contains("wpex-toggle-element"))return;n.preventDefault();const r=i.classList,l=s.closest(".vc_section")||s.closest(".vc_row");let c=!1;l&&l.contains(i)&&(c=!0);const a=c?l:document;a.querySelectorAll(".wpex-toggle-element--visible").forEach((e=>{e.isSameNode(i)||o(e,a)})),r.contains("wpex-toggle-element--visible")?r.contains("wpex-toggle-element--persist")||o(i,a):(t(i,a),"true"!==s.getAttribute("data-wpex-toggle-localscroll")||s.classList.contains("local-scroll-link")||e.scrollTo(i))})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=e.target.closest(".wpex-toggle-element--visible");if(!t)return;const o=t.getAttribute("id");if(!o)return;let n=(t.closest(".vc_row")||t.closest(".vc_section")).querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`);n||(n=document.querySelector(`.wpex-toggle-element-trigger[aria-controls="${o}"]`)),n&&n.focus()}))},getLocalScrollOffset:function(){if(e.localScrollOffset)return parseInt(e.localScrollOffset);const t=this;let o=0;e.localScrollExtraOffset&&(o+=parseInt(e.localScrollExtraOffset)),document.querySelectorAll(".wpex-ls-offset,#wpadminbar").forEach((e=>{t.isVisible(e)&&(o+=e.getBoundingClientRect().height)}));const n=document.body.style.getPropertyValue("--wpex-sticky-topbar-height");n&&(o+=parseInt(n));const s=document.body.style.getPropertyValue("--wpex-sticky-main-nav-height");s&&(o+=parseInt(s));const i=document.body.style.getPropertyValue("--wpex-sticky-header-height");return i&&(o+=parseInt(i)),o&&Math.round(o)!==o&&(o=o.toFixed(2)),o},scrollTo:function(t,o=0,n){const s=this;if(!t)return;let i=null,r=null,l=0;const c=parseInt(e.localScrollSpeed),a=document.querySelectorAll("[data-ls_id]"),d=s.getEasing();for(let e=0;e<a.length;e++)if(t===a[e].dataset.ls_id){r=a[e];break}if(r?i=r:"string"==typeof t?s.isSelectorValid(t)&&(i=document.querySelector(t)):t.nodeType&&(i=t,t=""),i){if(i.classList.contains("vc_tta-panel")){const e=i.closest(".vc_tta-tabs");if(e){if(i.id){const t=e.querySelector(`.vc_tta-tab:not(.vc_active) a[href="#${i.id}"]`);t&&t.click()}i=e,o=-20}}if(!o){const e=getComputedStyle(i).getPropertyValue("--wpex-local-scroll-padding");e&&(o=-1*parseInt(e))}l||(l=s.offset(i).top-s.getLocalScrollOffset()+o),"string"==typeof t&&e.localScrollUpdateHash&&t!==location.hash&&(window.history.pushState(null,null,t),window.dispatchEvent(new HashChangeEvent("hashchange"))),document.dispatchEvent(new CustomEvent("wpex:beforeScrollTo",{detail:i})),i&&i.nodeType&&i.focus({preventScroll:!0,focusVisible:!1}),d&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:l},c,d):window.scrollTo({top:l,behavior:s.getScrollToBehavior()})}},scrollToHash:function(e){let t=location.hash;if(""!==t&&"#"!==t&&"undefined"!==t){if(t.startsWith("#_"))return e.scrollTo(t.replace("#_","#"));-1!==t.indexOf("localscroll-")&&(t=t.replace("localscroll-",""));try{const o=document.querySelector(`[data-ls_id="${t}"], ${t}`);!o||"dialog"===o.getAttribute("roles")||o.classList.contains("vcex-toggle__content")||o.classList.contains("wpex-toggle-element")||o.classList.contains("wpex-card-modal")||e.scrollTo(t)}catch(e){return!1}}},localScrollSections:function(){const t=this,o=document.querySelectorAll(e.localScrollTargets),n=[];return o.forEach((e=>{const o=e.getAttribute("href"),s=o?`#${o.replace(/^.*?(#|$)/,"")}`:null;if(!s||"#"===s)return;e.hasAttribute("data-ls_linkto")||e.setAttribute("data-ls_linkto",s);let i=document.querySelector(`[data-ls_id="${s}"]`);!i&&"string"==typeof s&&t.isSelectorValid(s)&&(i=document.querySelector(s)),i&&-1===n.indexOf(s)&&n.push(s)})),t.config.localScrollSections=n,t.config.localScrollSections},localScrollLinks:function(){const t=this,o=e=>{(e=e||document).querySelectorAll('a[href^="#"]:not([href="#"]):not(.local-scroll-link):not([target]):not([aria-selected]):not([aria-pressed]):not([aria-expanded]):not([data-vc-tabs]):not(.skip-to-content):not(#site-scroll-top):not([data-vc-accordion]):not([role="button"]):not(.wpex-lightbox):not(.wpex-lightbox-group-item)').forEach((e=>{if(e.closest(".local-scroll, .local-scroll-link, [aria-controls]"))return;let t=e.getAttribute("href");try{document.querySelector(`[data-ls_id="${t}"], ${t}`)&&e.classList.add("local-scroll-link")}catch(e){return!1}}))};e.localScrollFindLinks&&(o(),document.addEventListener("wpex_template_rendered",(e=>{o(e.detail)})));document.addEventListener("click",(o=>{const n=o.target;if(n.closest(".wpex-open-submenu"))return;const s=n.closest(e.localScrollTargets);if(!s)return;let i=s.dataset.ls_linkto||s.hash,r=!1;r=!(!t.config.localScrollSections||-1===t.config.localScrollSections.indexOf(i))||!!t.isSelectorValid(i)&&document.querySelector(`[data-ls_id="${i}"], ${i}`),r&&(s.closest(".sfHover")&&s.parentNode.classList.remove("sfHover"),s.classList.contains("wpex-toggle-element-trigger")&&"false"===s.getAttribute("aria-expanded")||(t.scrollTo(i),o.preventDefault(),o.stopPropagation()))}))},localScrollHighlight:function(){const t=this,o=t.config.localScrollSections;if(!e.localScrollHighlight||!o.length)return;const n=e=>{const o=document.querySelector(`[data-ls_id="${e}"], ${e}`);if(!o)return;let n=!1;const s=t.winScrollTop(),i=t.getLocalScrollOffset(),r=t.offset(o).top-i-1,l=o.offsetHeight,c=document.querySelectorAll(`[data-ls_linkto="${e}"] `);n=s>=r&&s<r+l,n?(o.classList.add("wpex-ls-inview"),document.querySelectorAll(".local-scroll.menu-item").forEach((e=>{e.classList.remove("current-menu-item")}))):o.classList.remove("wpex-ls-inview"),c.forEach((e=>{n?e.classList.add("active"):e.classList.remove("active");const t=e.closest("li");t&&(n?t.classList.add("current-menu-item"):t.classList.remove("current-menu-item"))}))};window.addEventListener("scroll",(()=>{for(var e=0;e<o.length;e++)n(o[e])}),{passive:!0})},equalHeights:function(e){"function"==typeof window.wpexEqualHeights&&(wpexEqualHeights(".match-height-grid",".match-height-content",e),wpexEqualHeights(".match-height-row",".match-height-content",e),wpexEqualHeights(".vc_row",".equal-height-column",e),wpexEqualHeights(".vc_row",".equal-height-content",e))},footerReveal:function(){const e=this,t=document.querySelector("#footer-reveal"),o=document.querySelector("#wrap"),n=document.querySelector("#main");if(!t||!o||!n)return;const s=()=>{if(e.viewportWidth()<960)return void(t.classList.contains("footer-reveal")&&(t.classList.remove("footer-reveal"),t.classList.add("footer-reveal-visible"),o.style.removeProperty("margin-bottom")));let n=0,s=t.offsetHeight;const i=window.innerHeight;n=t.classList.contains("footer-reveal")?o.offsetHeight+e.getLocalScrollOffset():o.offsetHeight+e.getLocalScrollOffset()-s,i>s&&n>i?t.classList.contains("footer-reveal-visible")&&(o.style.marginBottom=s+"px",t.classList.remove("footer-reveal-visible"),t.classList.add("footer-reveal")):t.classList.contains("footer-reveal")&&(o.style.removeProperty("margin-bottom"),t.classList.remove("footer-reveal"),t.classList.remove("wpex-visible"),t.classList.add("footer-reveal-visible"))},i=()=>{t.classList.contains("footer-reveal")&&(e.scrolledToBottom(n)?t.classList.add("wpex-visible"):t.classList.remove("wpex-visible"))},r=e.debounce((()=>{s()}),300);s(),i(),window.addEventListener("load",s),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",r)},fixedFooter:function(){if(!document.body.classList.contains("wpex-has-fixed-footer"))return;const e=document.querySelector("#main");if(!e)return;const t=()=>{e.style.minHeight=e.offsetHeight+(window.innerHeight-document.documentElement.offsetHeight)+"px"};t();const o=this.debounce((()=>{t()}),300);window.addEventListener("load",t),window.addEventListener("resize",o)},customSelects:function(t){if(!e.customSelects)return;const o=this;t&&t.childNodes||(t=document),t.querySelectorAll(e.customSelects).forEach((t=>{const n=t.parentNode;if(n.classList.contains("wpex-select-wrap")||n.classList.contains("wpex-multiselect-wrap"))return;const s=t.id;let i=!1;if(o.isVisible(t)){const n=document.createElement("div");if(t.hasAttribute("multiple")?n.className=s?`wpex-multiselect-wrap wpex-multiselect-wrap--${s} wpex-${s}`:"wpex-multiselect-wrap":(n.className=s?`wpex-select-wrap wpex-select-wrap--${s} wpex-${s}`:"wpex-select-wrap",i=!0),t=o.wrap(t,n),i&&e.selectArrowIcon){const t=document.createElement("span");t.className="wpex-select-arrow";const o=document.createDocumentFragment(),s=document.createElement("div");s.innerHTML=e.selectArrowIcon,o.appendChild(s.firstChild),t.appendChild(o),n.appendChild(t)}}}))},hoverStyles:function(){let e,t,o,n,s,i="",r={};if(e=document.querySelector(".wpex-hover-data"),e&&e.remove(),t=document.querySelectorAll("[data-wpex-hover]"),o=t.length,!o)return;const l=e=>{let o,n,s,i,l,c="",a="";if(o=t[e],n=o.dataset.wpexHover,n){n=JSON.parse(n),i=o.classList;for(let e=0;e<i.length;e++)-1!==i[e].indexOf("wpex-dhover-")&&o.classList.remove(i[e]);s=`wpex-dhover-${e}`,n.parent?(l=o.closest(n.parent),l&&(l.classList.add(s+"-p"),o.classList.add(s),a=`.${s}-p:hover .${s}`)):(o.classList.add(s),a=`.${s}:hover`);for(let e in n)if(n.hasOwnProperty(e)){if("target"===e||"parent"===e)continue;c+=`${e}:${n[e]}!important;`}c&&(r[c]=c in r?`${r[c]},${a}`:a)}};for(let e=0;e<o;e++)l(e);if(r)for(let e in r)r.hasOwnProperty(e)&&(i+=`${r[e]}{${e}}`);i&&(n=document.createElement("style"),n.classList.add("wpex-hover-data"),n.appendChild(document.createTextNode(i)),s=document.head||document.getElementsByTagName("head")[0],s.appendChild(n))},overlaysMobileSupport:function(){if(!window.matchMedia("(any-pointer: coarse)").matches)return;let e=!1;document.querySelectorAll(".overlay-parent.overlay-hh").forEach((e=>{if(!e.classList.contains("overlay-ms")){e.querySelector(".theme-overlay")&&e.parentNode.removeChild(e)}}));const t=()=>{document.querySelectorAll(".wpex-touched").forEach((e=>{e.classList.remove("wpex-touched")}))};document.addEventListener("touchend",(o=>{let n=o.target.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support");n&&(e?t():n.classList.contains("wpex-touched")?n.classList.remove("wpex-touched"):(o.preventDefault(),t(),n.classList.add("wpex-touched")))}),!1),document.addEventListener("touchmove",(o=>{const n=o.target;n.closest(".wpex-touched")||t();n.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support")&&(e=!0)}),{passive:!0}),document.addEventListener("touchstart",(o=>{const n=o.target;n.closest(".wpex-touched")||t();n.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support")&&(e=!1)}),{passive:!0})},stickyElements:function(){const e=document.body.classList;if(e.contains("compose-mode")||e.contains("wp-admin"))return;const t=document.querySelectorAll(".wpex-js-sticky");if(!t)return;const o=this;t.forEach((e=>{let t=!1,n=e.dataset.wpexStickyEndpoint||null;const s=parseInt(e.dataset.wpexStickyBreakpoint);n&&isNaN(n)&&(n=document.querySelector(n));const i=(e=>{const t=document.createElement("div");let o="wpex-js-sticky-wrap";const n=e.dataset.wpexStickyLsOffset||!0;return"true"!=n&&"1"!=n||(o+=" wpex-ls-offset"),t.className=o,e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(e),r=(e=>{const t=document.createElement("div");return t.className="wpex-js-sticky-holder",e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t})(i),l=()=>{let t=e.dataset.wpexStickyOffset?parseInt(e.dataset.wpexStickyOffset):0;return document.querySelectorAll("#top-bar-wrap-sticky-wrapper.wpex-can-sticky #top-bar-wrap,#site-header-sticky-wrapper.wpex-can-sticky #site-header,#site-navigation-sticky-wrapper.wpex-can-sticky #site-navigation-wrap,#wpadminbar,.wpex-sticky-el-offset,.wpex-js-sticky-wrap").forEach((n=>{const s=getComputedStyle(n).position;e.isEqualNode(n)||!o.isVisible(n)||!o.isBeforeElement(n,e)||"fixed"!==s&&"sticky"!==s||(t+=o.elHeight(n))})),t},c=()=>{if(s&&o.viewportWidth()<=s)return u();const t=o.winScrollTop(),c=l();t>o.offset(r).top-c&&0!==t?(d(c),n&&o.isVisible(n)&&(t>o.offset(n).top-c-o.elHeight(e)?i.style.position="relative":i.style.position="fixed")):u()},a=()=>{const e=r.getBoundingClientRect().width;e&&i.style.setProperty("width",e+"px")},d=n=>{o.isVisible(e)?t?i.style.top=l()+"px":(r.style.height=o.elHeight(e)+"px",i.classList.add("wpex-z-99"),i.style.position="fixed",i.style.top=n+"px",e.classList.add("wpex-js-sticky--stuck"),a(),t=!0):u()},u=()=>{t&&(r.style.height="",i.classList.remove("wpex-z-99"),i.style.position="",i.style.top="",i.style.width="",e.classList.remove("wpex-js-sticky--stuck"),t=!1)};c(),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",(()=>{c(),t&&(o.isVisible(e)||u(),r.style.height=o.elHeight(e)+"px",i.style.top=l()+"px",a())})),window.addEventListener("orientationchange",(()=>{u(),c()}))}))},accessibility:function(){document.querySelectorAll("#site-navigation li.nav-no-click:not(.menu-item-has-children) > a").forEach((e=>{e.setAttribute("tabIndex","-1")})),document.querySelectorAll("#site-navigation li.megamenu > ul.sub-menu > li.menu-item.menu-item-has-children > a").forEach((e=>{"#"===e.getAttribute("href")&&e.setAttribute("tabIndex","-1")})),document.querySelectorAll(".vc_toggle .vc_toggle_title").forEach((e=>{e.setAttribute("tabIndex",0),e.addEventListener("keydown",(e=>{"Enter"===e.key&&e.target.click()}))})),window.addEventListener("keydown",(function e(t){"Tab"===t.key&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e))}))},disableWPBTabAnimations:function(){e.disable_vc_tta_animation&&document.querySelector(".vc_tta")&&"function"==typeof jQuery&&"function"==typeof jQuery.fn.vcAccordion&&(jQuery.fn.vcAccordion.Constructor.prototype.isAnimated=function(){return 0})},domReady:function(e){if("function"!=typeof e||"undefined"==typeof document)return;const t=document.readyState;if("interactive"===t||"complete"===t)return setTimeout(e);document.addEventListener("DOMContentLoaded",e,!1)},retinaCheck:function(){return window.devicePixelRatio>1||!(!window.matchMedia||!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|iPad Simulator|iPhone Simulator|iPod Simulator|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0},getEasing:function(t){if(!e.localScrollEasing||"function"!=typeof jQuery||void 0===jQuery.easing||"function"!=typeof jQuery.easing.jswing)return;let o=t||e.localScrollEasing;return jQuery.easing.hasOwnProperty(o)||(o="swing"),o},viewportWidth:function(){let e="inner",t=window;return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},isSelectorValid:function(e){try{t=e,document.createDocumentFragment().querySelector(t)}catch(e){return!1}var t;return!0},slideUp:function(e,t,o){if(!e)return;if("none"!==getComputedStyle(e).display){if(this.config.preferedReducedMotion)t=0;else{null===t&&(t=300);const o=getComputedStyle(e).transitionDuration;o&&"0s"===o||(t=parseFloat(o)*(o.indexOf("ms")>-1?1:1e3)),t||(t=300)}0===t||1===t?(e.style.display="none",o&&o()):(e.classList.add("wpex-transitioning"),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t))}},slideDown:function(e,t,o){if(!e)return;let n=getComputedStyle(e).display;if("block"!==n){if(this.config.preferedReducedMotion)t=0;else{null===t&&(t=300);const o=getComputedStyle(e).transitionDuration;o&&"0s"===o||(t=parseFloat(o)*(o.indexOf("ms")>-1?1:1e3))}if(0===t||1===t)e.style.removeProperty("display"),"none"===n&&(e.style.display="block"),o&&o();else{t||(t=300),e.classList.add("wpex-transitioning"),e.style.removeProperty("display"),"none"===n&&(n="block"),e.style.display=n,e.style.transitionProperty="none";const s=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=s+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),o&&o()}),t)}}},focusOnElement:function(e,t){const o=this,n=e.querySelectorAll('button,[href],input,select,textarea,a,summary,[tabindex]:not([tabindex="-1"])');if(!n.length)return;const s=[],i=e=>{e.focus({preventScroll:!0,focusVisible:!1})};for(let e=0;e<n.length;e++)o.isVisible(n[e])&&s.push(n[e]);if(!s.length)return;const r=s[0],l=s[s.length-1],c=l.closest("details");i(t||r);const a=e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),i(r))};l.addEventListener("keydown",a);const d=e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),c&&!c.hasAttribute("open")?i(c.querySelector("summary")):i(l))};r.addEventListener("keydown",d);const u=e=>{"Tab"!==e.key||e.shiftKey||c.hasAttribute("open")||(e.preventDefault(),i(r))};return c&&c.addEventListener("keydown",u),function(){l.removeEventListener("keydown",a),r.removeEventListener("keydown",d),c&&c.removeEventListener("keydown",u)}},wrap:function(e,t){e.childNodes||(e=[e]),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)},insertAfter:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},offset:function(e){const t=e.getBoundingClientRect();return{top:t.top+this.winScrollTop(),left:t.left+this.winScrollTop(),bottom:t.bottom+this.winScrollTop()}},elHeight:function(e){return e.getBoundingClientRect().height},isVisible:function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},isEmpty:function(e){return!e||""===e.innerHTML},isBeforeElement:function(e,t){if("wpadminbar"===e.id)return!0;if(!e||!t)return;return 4===e.compareDocumentPosition(t)},insertExtras:function(e,t,o){if(e&&t){switch(o){case"append":t.appendChild(e);break;case"prepend":t.insertBefore(e,t.firstChild)}e.classList.remove("wpex-hidden")}},winScrollTop:function(){let e=window.scrollY||0;return e<0&&(e=0),e},scrolledToBottom:function(e){return this.winScrollTop()>=e.offsetTop+e.offsetHeight-window.innerHeight},removeClassPrefix:function(e,t,o){e.forEach((e=>{const n=e.classList;for(let s=0;s<n.length;s++)if(t.test(n[s])){const t=n[s].replace(o,"");e.classList.replace(n[s],t)}}))},setHamburgerIconState:function(e){if(!e){const t=document.querySelector("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a");e=t?t.querySelector(".wpex-hamburger-icon"):null}e&&(e.classList.contains("wpex-hamburger-icon--active")?(e.classList.remove("wpex-hamburger-icon--active"),e.classList.add("wpex-hamburger-icon--inactive")):e.classList.contains("wpex-hamburger-icon--inactive")&&(e.classList.remove("wpex-hamburger-icon--inactive"),e.classList.add("wpex-hamburger-icon--active")))},getElTransitionDuration:function(e){let t=getComputedStyle(e).transitionDuration;return t&&"0s"===t||(t=parseFloat(t)*(t.indexOf("ms")>-1?1:1e3)),parseFloat(t)||0},htmlNoScroll:function(e){switch(e){case"add":document.querySelector("html").classList.add("html-noscroll");break;case"remove":document.querySelector("html").classList.remove("html-noscroll")}},throttle:function(e,t=10){let o=Date.now();return function(){o+t-Date.now()<0&&(e(),o=Date.now())}},debounce:function(e,t=10){let o=null;return(...n)=>{window.clearTimeout(o),o=window.setTimeout((()=>{e.apply(null,n)}),t)}},getScrollToBehavior:function(){return e.scrollToBehavior||"smooth"},preferedReducedMotion:function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}}).init()}(wpex_theme_params),"function"!==window.wpexEqualHeights&&(window.wpexEqualHeights=function(e,t,o){if(!e||!t)return;if(o&&o.childNodes||(o=document),!o.querySelector(t))return;const n=o.querySelectorAll(e);if(!n.length)return;let s=new Set;function i(e,o){let n=0;const s=e.querySelectorAll(t);if(s&&(s.forEach((function(e){if(!e.classList.contains("vc_column-inner")||!e.closest(".vc_row.vc_inner")){o&&(e.style.height="");var t=e.getBoundingClientRect().height;t>n&&(n=t)}})),n&&(s.forEach((function(e){e.style.height=n+"px"})),"undefined"!=typeof Isotope))){const t=Isotope.data(e);t&&t.layout()}}n.forEach((e=>{e.querySelector(t)&&s.add(e)})),s=[...s],s.length&&(s.forEach((function(e){"function"==typeof imagesLoaded?new imagesLoaded(e).on("always",(function(t){i(e,!1)})):i(e,!1)})),window.addEventListener("resize",function(e,t){let o;return function(...n){clearTimeout(o),o=setTimeout((()=>e.apply(this,n)),t)}}((function(){s.forEach((function(e){i(e,!0)}))}),100)))}),"undefined"!=typeof jQuery&&(jQuery.fn.wpexEqualHeights=function(){this.get()&&console.log("The jQuery wpexEqualHeights prototype has been deprecated. Please use the new wpexEqualHeights function.")});