document.addEventListener("DOMContentLoaded",function(){var e=new WeakSet,t=function(t){if(t&&!e.has(t)){var n=t.getAttribute("data-src");if(n){e.add(t),t.setAttribute("loading","lazy");var r=function(){t.classList.add("loaded"),t.removeEventListener("load",r)};t.addEventListener("load",r),requestAnimationFrame(function(){t.setAttribute("src",n)})}}},n=function(n){n&&!e.has(n)&&(n.setAttribute("loading","lazy"),window.IntersectionObserver?r.observe(n):t(n))},r=null;("IntersectionObserver"in window&&(r=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var n=e.target;r.unobserve(n),t(n)}})},{rootMargin:"120px 0px",threshold:.01})),document.querySelectorAll(".lazy-iframe").forEach(n),"MutationObserver"in window)&&new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){e instanceof Element&&(e.matches(".lazy-iframe")&&n(e),e.querySelectorAll&&e.querySelectorAll(".lazy-iframe").forEach(n))})})}).observe(document.body,{childList:!0,subtree:!0});"IntersectionObserver"in window||document.querySelectorAll(".lazy-iframe").forEach(t)});