document.addEventListener("DOMContentLoaded",()=>{const e=((window.nfdPerformance||{}).imageOptimization||{}).lazyLoading||{},t=e.classes||[],o=e.attributes||[],a=e=>{e.forEach(e=>{(e=>{const a=t.some(t=>e.classList.contains(t)),n=o.some(t=>e.hasAttribute(t)),s="lazy"===e.getAttribute("loading");return!a&&!n&&!s})(e)&&e.setAttribute("loading","lazy")})};new MutationObserver(e=>{e.forEach(e=>{Array.from(e.addedNodes).forEach(e=>{if(1===e.nodeType&&"IMG"===e.tagName)a([e]);else if(1===e.nodeType){const t=e.querySelectorAll("img");t.length>0&&a(t)}})})}).observe(document.body,{childList:!0,subtree:!0})});