(()=>{"use strict";function e(e){e.classList.add("flexa-bg-loaded"),e.removeAttribute("data-flexa-lazy-bg")}function t(){const t=document.querySelectorAll("[data-flexa-lazy-bg]");if(!t.length)return;if(void 0===window.IntersectionObserver)return void t.forEach(e);const n=new window.IntersectionObserver((t,n)=>{t.forEach(t=>{t.isIntersecting&&(e(t.target),n.unobserve(t.target))})},{rootMargin:"200px 0px"});t.forEach(e=>n.observe(e))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()})();