function _s(e,t,o,n){void 0===t&&(t=400),void 0===n&&(n=!1),e.style.overflow="hidden",n&&(e.style.display="flex");var r,i=window.getComputedStyle(e),a=parseFloat(i.getPropertyValue("height")),p=parseFloat(i.getPropertyValue("padding-top")),l=parseFloat(i.getPropertyValue("padding-bottom")),d=parseFloat(i.getPropertyValue("margin-top")),f=parseFloat(i.getPropertyValue("margin-bottom")),u=a/t,s=p/t,y=l/t,c=d/t,m=f/t;function g(i){void 0===r&&(r=i);var x=i-r;n?(e.style.height=u*x+"px",e.style.paddingTop=s*x+"px",e.style.paddingBottom=y*x+"px",e.style.marginTop=c*x+"px",e.style.marginBottom=m*x+"px"):(e.style.height=a-u*x+"px",e.style.paddingTop=p-s*x+"px",e.style.paddingBottom=l-y*x+"px",e.style.marginTop=d-c*x+"px",e.style.marginBottom=f-m*x+"px"),x>=t?(e.style.height="",e.style.paddingTop="",e.style.paddingBottom="",e.style.marginTop="",e.style.marginBottom="",e.style.overflow="",n||(e.style.display="none"),"function"==typeof o&&o()):window.requestAnimationFrame(g)}window.requestAnimationFrame(g)}function xExtrasRegisterAJAXHandler(e,t=!1,o=!1){let n=function(n){if("function"!=typeof window[e]){console.warn("BricksExtras: Function "+e+" not found. Make sure it's defined before AJAX events are triggered.");return}if(void 0===n.detail.queryId){if(void 0===n.detail.popupElement)return;window[e](n.detail.popupElement)}setTimeout(()=>{if(document.querySelector(".brxe-"+n.detail.queryId))t?o&&document.querySelector(".brxe-"+n.detail.queryId).closest(o)?window[e](document.querySelector(".brxe-"+n.detail.queryId).closest(o).parentElement,!0):window[e](document.querySelector(".brxe-"+n.detail.queryId).parentElement,!0):window[e](document.querySelector(".brxe-"+n.detail.queryId).parentElement);else{let r=document.createTreeWalker(document.body,NodeFilter.SHOW_COMMENT,null,!1);for(;r.nextNode();){let i=r.currentNode;i.nodeValue.includes("brx-loop-start-"+n.detail.queryId)&&(t?window[e](i.parentNode,!0):window[e](i.parentNode))}}},0)};return document.addEventListener("bricks/ajax/load_page/completed",n),document.addEventListener("bricks/ajax/pagination/completed",n),document.addEventListener("bricks/ajax/popup/loaded",n),document.addEventListener("bricks/ajax/end",n),n}function xProcessBricksColor(e){if(!e)return!1;let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(o){return e}if(t.raw&&t.raw.startsWith("var")){let n=t.raw.replace(/^var\(([^)]+)\)$/,"$1"),r=getComputedStyle(document.documentElement).getPropertyValue(n).trim();return r||!1}return t.raw?t.raw:e.hex?e.hex:e.rgb?e.rgb:!!e.hsl&&e.hsl}function xBricksExtrasElementsInit(e){"function"==typeof doExtrasAccordion&&doExtrasAccordion(e),"function"==typeof doExtrasSlider&&doExtrasSlider(e),"function"==typeof doExtrasReadmore&&setTimeout(()=>{doExtrasReadmore(e)},100),"function"==typeof doExtrasLightbox&&doExtrasLightbox(e,!0),"function"==typeof doExtrasSocialShare&&doExtrasSocialShare(e),"function"==typeof doExtrasOffCanvas&&doExtrasOffCanvas(e),"function"==typeof doExtrasModal&&doExtrasModal(e),"function"==typeof doExtrasPopover&&doExtrasPopover(e),"function"==typeof doExtrasTabs&&doExtrasTabs(e),"function"==typeof doExtrasLottie&&doExtrasLottie(e,!0),"function"==typeof doExtrasMediaPlayer&&doExtrasMediaPlayer(e),"function"==typeof doExtrasMediaPlayer?doExtrasMediaPlayer(e):"function"==typeof xDoMediaPlayerLoad&&xDoMediaPlayerLoad(),"function"==typeof doExtrasCopyToClipBoard&&doExtrasCopyToClipBoard(e),"function"==typeof doExtrasCopyToClipBoardPopover&&doExtrasCopyToClipBoardPopover(e),"function"==typeof doExtrasParallax&&doExtrasParallax(e),"function"==typeof doExtrasTilt&&doExtrasTilt(e),"function"==typeof doExtrasInteractions&&doExtrasInteractions(e),"function"==typeof doExtrasTable&&doExtrasTable(e),"function"==typeof doExtrasChart&&doExtrasChart(e),"function"==typeof doExtrasBeforeAfterImage&&doExtrasBeforeAfterImage(e),"function"==typeof doExtrasCountdown&&doExtrasCountdown(e),"function"==typeof doExtrasImageHotspots&&doExtrasImageHotspots(e),"function"==typeof doExtrasToggleSwitch&&doExtrasToggleSwitch(e),"function"==typeof doExtrasFavorite&&(doExtrasFavorite(e),"function"==typeof doExtrasFavoritePopover&&doExtrasFavoritePopover(e))}if(HTMLElement.prototype.xslideToggle=function(e,t){0===this.clientHeight?_s(this,e,t,!0):_s(this,e,t)},HTMLElement.prototype.xslideUp=function(e,t){_s(this,e,t)},HTMLElement.prototype.xslideDown=function(e,t){_s(this,e,t,!0)},!window.xColorSchemeObserverAdded){window.xColorSchemeObserverAdded=!0;let e=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"data-brx-theme"===e.attributeName&&document.dispatchEvent(new Event("x-color-scheme-change"))})});e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-brx-theme"]})};