!function(){function e(){document.querySelectorAll(".crtoday-price-badge").forEach(e=>{const t=e.querySelector(".crtoday-price-badge__details");if(t)return e.classList.contains("crtoday-price-badge--expanded")?(t.open=!0,void t.addEventListener("toggle",()=>{t.open||(t.open=!0)})):void document.addEventListener("click",n=>{t.open&&(e.contains(n.target)||(t.open=!1))})})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();