𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/polyfill-php72/LE_ACME2Tests/min/js/library//lazysizes.js
!function(t,e){var a=function(t,e,a){"use strict";var i,n;if(function(){var e,a={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-orig-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in n=t.lazySizesConfig||t.lazysizesConfig||{},a)e in n||(n[e]=a[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:n,noSupport:!0};var r=e.documentElement,s=t.HTMLPictureElement,o=t.addEventListener.bind(t),l=t.setTimeout,d=t.requestAnimationFrame||l,u=t.requestIdleCallback,c=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,y=function(t,e){return g[e]||(g[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),g[e].test(t.getAttribute("class")||"")&&g[e]},v=function(t,e){y(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},z=function(t,e){var a;(a=y(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(a," "))},h=function(t,e,a){var i=a?"addEventListener":"removeEventListener";a&&h(t,e),f.forEach(function(a){t[i](a,e)})},b=function(t,a,n,r,s){var o=e.createEvent("Event");return n||(n={}),n.instance=i,o.initEvent(a,!r,!s),o.detail=n,t.dispatchEvent(o),o},p=function(e,a){var i;!s&&(i=t.picturefill||n.pf)?(a&&a.src&&!e.getAttribute("srcset")&&e.setAttribute("srcset",a.src),i({reevaluate:!0,elements:[e]})):a&&a.src&&(e.src=a.src)},A=function(t,e){return(getComputedStyle(t,null)||{})[e]},C=function(t,e,a){for(a=a||t.offsetWidth;a<n.minSize&&e&&!t._lazysizesWidth;)a=e.offsetWidth,e=e.parentNode;return a},E=(F=[],R=[],D=F,j=function(){var t=D;for(D=F.length?R:F,T=!0,k=!1;t.length;)t.shift()();T=!1},q=function(t,a){T&&!a?t.apply(this,arguments):(D.push(t),k||(k=!0,(e.hidden?l:d)(j)))},q._lsFlush=j,q),_=function(t,e){return e?function(){E(t)}:function(){var e=this,a=arguments;E(function(){t.apply(e,a)})}},w=function(t){var e,i,n=function(){e=null,t()},r=function(){var t=a.now()-i;t<99?l(r,99-t):(u||n)(n)};return function(){i=a.now(),e||(e=l(r,99))}},L=function(){var s,f,g,C,L,N,x,W,B,S,T,k,F,R,D,j,q,H,I,O=/^img$/i,P=/^iframe$/i,$="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),Q=0,V=0,J=-1,U=function(t){V--,(!t||V<0||!t.target)&&(V=0)},G=function(t){return null==k&&(k="hidden"==A(e.body,"visibility")),k||!("hidden"==A(t.parentNode,"visibility")&&"hidden"==A(t,"visibility"))},K=function(t,a){var i,n=t,s=G(t);for(W-=a,T+=a,B-=a,S+=a;s&&(n=n.offsetParent)&&n!=e.body&&n!=r;)(s=(A(n,"opacity")||1)>0)&&"visible"!=A(n,"overflow")&&(i=n.getBoundingClientRect(),s=S>i.left&&B<i.right&&T>i.top-1&&W<i.bottom+1);return s},X=function(){var t,a,o,l,d,u,c,g,m,y,v,z,h=i.elements;if((C=n.loadMode)&&V<8&&(t=h.length)){for(a=0,J++;a<t;a++)if(h[a]&&!h[a]._lazyRace)if(!$||i.prematureUnveil&&i.prematureUnveil(h[a]))nt(h[a]);else if((g=h[a].getAttribute("data-expand"))&&(u=1*g)||(u=Q),y||(y=!n.expand||n.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:n.expand,i._defEx=y,v=y*n.expFactor,z=n.hFac,k=null,Q<v&&V<1&&J>2&&C>2&&!e.hidden?(Q=v,J=0):Q=C>1&&J>1&&V<6?y:0),m!==u&&(N=innerWidth+u*z,x=innerHeight+u,c=-1*u,m=u),o=h[a].getBoundingClientRect(),(T=o.bottom)>=c&&(W=o.top)<=x&&(S=o.right)>=c*z&&(B=o.left)<=N&&(T||S||B||W)&&(n.loadHidden||G(h[a]))&&(f&&V<3&&!g&&(C<3||J<4)||K(h[a],u))){if(nt(h[a]),d=!0,V>9)break}else!d&&f&&!l&&V<4&&J<4&&C>2&&(s[0]||n.preloadAfterLoad)&&(s[0]||!g&&(T||S||B||W||"auto"!=h[a].getAttribute(n.sizesAttr)))&&(l=s[0]||h[a]);l&&!d&&nt(l)}},Y=(F=X,D=0,j=n.throttleDelay,q=n.ricTimeout,H=function(){R=!1,D=a.now(),F()},I=u&&q>49?function(){u(H,{timeout:q}),q!==n.ricTimeout&&(q=n.ricTimeout)}:_(function(){l(H)},!0),function(t){var e;(t=!0===t)&&(q=33),R||(R=!0,(e=j-(a.now()-D))<0&&(e=0),t||e<9?I():l(I,e))}),Z=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(U(t),v(e,n.loadedClass),z(e,n.loadingClass),h(e,et),b(e,"lazyloaded"))},tt=_(Z),et=function(t){tt({target:t.target})},at=function(t){var e,a=t.getAttribute(n.srcsetAttr);(e=n.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),a&&t.setAttribute("srcset",a)},it=_(function(t,e,a,i,r){var s,o,d,u,f,y;(f=b(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(a?v(t,n.autosizesClass):t.setAttribute("sizes",i)),o=t.getAttribute(n.srcsetAttr),s=t.getAttribute(n.srcAttr),r&&(d=t.parentNode,u=d&&c.test(d.nodeName||"")),y=e.firesLoad||"src"in t&&(o||s||u),f={target:t},v(t,n.loadingClass),y&&(clearTimeout(g),g=l(U,2500),h(t,et,!0)),u&&m.call(d.getElementsByTagName("source"),at),o?t.setAttribute("srcset",o):s&&!u&&(P.test(t.nodeName)?function(t,e){var a=t.getAttribute("data-load-mode")||n.iframeLoadMode;0==a?t.contentWindow.location.replace(e):1==a&&(t.src=e)}(t,s):t.src=s),r&&(o||u)&&p(t,{src:s})),t._lazyRace&&delete t._lazyRace,z(t,n.lazyClass),E(function(){var e=t.complete&&t.naturalWidth>1;y&&!e||(e&&v(t,n.fastLoadedClass),Z(f),t._lazyCache=!0,l(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&V--},!0)}),nt=function(t){if(!t._lazyRace){var e,a=O.test(t.nodeName),i=a&&(t.getAttribute(n.sizesAttr)||t.getAttribute("sizes")),r="auto"==i;(!r&&f||!a||!t.getAttribute("src")&&!t.srcset||t.complete||y(t,n.errorClass)||!y(t,n.lazyClass))&&(e=b(t,"lazyunveilread").detail,r&&M.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,V++,it(t,e,r,i,a))}},rt=w(function(){n.loadMode=3,Y()}),st=function(){3==n.loadMode&&(n.loadMode=2),rt()},ot=function(){f||(a.now()-L<999?l(ot,999):(f=!0,n.loadMode=3,Y(),o("scroll",st,!0)))};return{_:function(){L=a.now(),i.elements=e.getElementsByClassName(n.lazyClass),s=e.getElementsByClassName(n.lazyClass+" "+n.preloadClass),o("scroll",Y,!0),o("resize",Y,!0),o("pageshow",function(t){if(t.persisted){var a=e.querySelectorAll("."+n.loadingClass);a.length&&a.forEach&&d(function(){a.forEach(function(t){t.complete&&nt(t)})})}}),t.MutationObserver?new MutationObserver(Y).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r.addEventListener("DOMNodeInserted",Y,!0),r.addEventListener("DOMAttrModified",Y,!0),setInterval(Y,999)),o("hashchange",Y,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){e.addEventListener(t,Y,!0)}),/d$|^c/.test(e.readyState)?ot():(o("load",ot),e.addEventListener("DOMContentLoaded",Y),l(ot,2e4)),i.elements.length?(X(),E._lsFlush()):Y()},checkElems:Y,unveil:nt,_aLSL:st}}(),M=(W=_(function(t,e,a,i){var n,r,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),c.test(e.nodeName||""))for(n=e.getElementsByTagName("source"),r=0,s=n.length;r<s;r++)n[r].setAttribute("sizes",i);a.detail.dataAttr||p(t,a.detail)}),B=function(t,e,a){var i,n=t.parentNode;n&&(a=C(t,n,a),(i=b(t,"lazybeforesizes",{width:a,dataAttr:!!e})).defaultPrevented||(a=i.detail.width)&&a!==t._lazysizesWidth&&W(t,n,i,a))},S=w(function(){var t,e=x.length;if(e)for(t=0;t<e;t++)B(x[t])}),{_:function(){x=e.getElementsByClassName(n.autosizesClass),o("resize",S)},checkElems:S,updateElem:B}),N=function(){!N.i&&e.getElementsByClassName&&(N.i=!0,M._(),L._())};var x,W,B,S;var T,k,F,R,D,j,q;return l(function(){n.init&&N()}),i={cfg:n,autoSizer:M,loader:L,init:N,uP:p,aC:v,rC:z,hC:y,fire:b,gW:C,rAF:E}}(t,t.document,Date);t.lazySizes=a,"object"==typeof module&&module.exports&&(module.exports=a)}("undefined"!=typeof window?window:{});const lazyBg=function(t){var e=t.getAttribute("data-bg"),a=t.getAttribute("data-bg-medium")||e,i=t.getAttribute("data-bg-small")||a,n=t.getAttribute("data-bg-gradient");Modernizr.mq("only screen and (max-width: "+fusionJSVars.visibility_medium+"px)")&&(e=a),Modernizr.mq("only screen and (max-width: "+fusionJSVars.visibility_small+"px)")&&(e=i),n&&e?t.style.backgroundImage=n+",url("+e+")":e&&(t.style.backgroundImage="url("+e+")")};document.addEventListener("lazybeforeunveil",function(t){jQuery(t.target).is("iframe")?jQuery(t.target).parent().fitVids():lazyBg(t.target)}),window.addEventListener("resize",function(){const t=jQuery("[data-fusion-responsive-bg]");t.length&&t.each(function(t,e){lazyBg(e)})}),document.addEventListener("lazybeforesizes",function(t){const e=jQuery(t.target).parent();e.hasClass("awb-imageframe-style-dario")&&(e.css("display","block"),t.detail.width=t.target.offsetWidth>40?t.target.offsetWidth:e[0].offsetWidth,e.css("display",""))});