(()=>{"use strict";const e=e=>{if(!e?.length)return 0;let t=0;const n=e.length;for(let o=0;o<n;o++){const n=e[o].getBoundingClientRect().height;n>t&&(t=n)}return t},t=t=>{if(!t?.length)return;const n=t.map(t=>t?.length?e(t):0);t.forEach((e,t)=>{const o=n[t];if(o>0&&e?.length){const t=`${o}px`,n=e.length;for(let o=0;o<n;o++)e[o].style.minHeight=t}})},n=e=>{e?.length&&e.forEach(e=>{if(e?.length){const t=e.length;for(let n=0;n<t;n++)e[n].style.removeProperty("min-height")}})},o=e=>{if(!e||"string"!=typeof e)return!1;try{return document.querySelector(e),!0}catch(e){return!1}},r=e=>`wp-block-${e.includes("core")?e.replace("core/",""):e.replaceAll("/","-")}`,c=new Map,l=new Map,s=e=>{if(l.has(e))return l.get(e);const t=r(e);return l.set(e,t),t},i=(e,o,r="set")=>{if(!e?.length||!o)return;const c=[],l=e.length;for(let t=0;t<l;t++){const n=s(e[t]),r=o.querySelectorAll(`.${n}`);r.length&&c.push(r)}c.length&&("set"===r?t(c):n(c))},u=(e,r,l="set")=>{if(!e?.length||!r)return;const s=[],i=e.length;for(let t=0;t<i;t++){const n=e[t];let l=c.get(n);if(void 0===l&&(l=o(n),c.set(n,l)),l){const e=r.querySelectorAll(n);e.length&&s.push(e)}}s.length&&("set"===l?t(s):n(s))};let a=null;const h=(e=!1)=>{if(!window.PBG_EqualHeight||!Object.keys(window.PBG_EqualHeight).length)return;const{breakPoints:t,...n}=window.PBG_EqualHeight;if(!t)return;const o=(e=>window.matchMedia(e.mobile).matches?"mobile":window.matchMedia(e.tablet).matches?"tablet":"desktop")(t);a===o&&"force"!==e||(a=o,((e,t)=>{if(!e||!t)return;const n=[];Object.entries(e).forEach(([e,o])=>{if(!o?.attributes)return;const r=document.querySelector(`.premium-container-${e}`);if(!r)return;const{customSelectors:c,equalHeightBlocks:l,equalHeightDevices:s}=o.attributes;s.includes(t)?n.push({containerBlock:r,equalHeightBlocks:l,customSelectors:c}):(i(l,r,"reset"),u(c,r,"reset"))}),n.length&&requestAnimationFrame(()=>{n.forEach(({containerBlock:e,equalHeightBlocks:t,customSelectors:n})=>{i(t,e),u(n,e)})})})(n,o))};function d(e,t){let n;return function(...o){const r=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(r,o)},t)}}const g=d(h,150),f=d(()=>h("force"),100);let m=null;const w=()=>{"undefined"!=typeof ResizeObserver?(m=new ResizeObserver(d(e=>{e.some(e=>e.target===document.documentElement)&&h()},150)),m.observe(document.documentElement)):window.addEventListener("resize",g,{passive:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{h("force"),w()}):requestAnimationFrame(()=>{h("force"),w()}),window.addEventListener("beforeunload",()=>{m&&(m.disconnect(),m=null)}),window.addEventListener("load",f,{passive:!0})})();