{"version":3,"names":["ImageLoader","constructor","options","this","queue","backgroundQueue","lazyImageObserver","lazyBgObserver","webpSupported","supportsWebp","initialize","getImagesToLazyLoad","window","abort","onContentLoaded","setGenericPlaceholder","forEach","lazyImage","observe","lazyBg","document","querySelectorAll","genericImagePlaceholder","img","setAttribute","genericBgPlaceholder","bg","style","backgroundColor","IntersectionObserver","entries","entry","isIntersecting","target","classList","contains","dataset","src","srcset","remove","unobserve","webP","getAttribute","i","length","elem","createElement","getContext","toDataURL","indexOf","AspectRatio","ratioX","ratio","ratioY","element","type","maintain","setAspectRatio","addEventListener","currentWidth","clientWidth","heightPctByRatio","computedHeight","minHeight","height"],"sources":["src/global/image-loader.ts"],"sourcesContent":["/**\r\n * Lazy loads images that are set up properly. Aslo handled webp fallbacks\r\n * For img tags: \r\n * \r\n