!function(){function t(){const t=document.querySelectorAll(".crtoday-ticker");if(t.forEach(t=>e(t)),"undefined"!=typeof ResizeObserver){const o=new ResizeObserver(t=>{for(const o of t){const t=o.target.closest(".crtoday-ticker");t&&e(t)}});t.forEach(t=>{const e=t.querySelector(".crtoday-ticker-content");e&&o.observe(e)})}}function e(t){const e=t.querySelector(".crtoday-ticker-content");if(!e)return;const o=parseInt(t.getAttribute("data-ticker-speed")||"40",10),r=Math.max(10,Math.min(200,o)),c=e.scrollWidth;if(c<=0)return;const n=c/r;t.style.setProperty("--crtoday-ticker-duration",`${n.toFixed(2)}s`)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}();