lazysizes
Advanced tools
Comparing version 5.3.0 to 5.3.1
# Changelog | ||
### 5.3.1 | ||
- Added basic Typescript support | ||
### 5.3.0 | ||
@@ -4,0 +7,0 @@ |
@@ -10,7 +10,16 @@ (function(window, factory) { | ||
} | ||
}(window, function l(window, document, Date) { // Pass in the windoe Date function also for SSR because the Date class can be lost | ||
}(window, | ||
/** | ||
* import("./types/global") | ||
* @typedef { import("./types/lazysizes-config").LazySizesConfigPartial } LazySizesConfigPartial | ||
*/ | ||
function l(window, document, Date) { // Pass in the window Date function also for SSR because the Date class can be lost | ||
'use strict'; | ||
/*jshint eqnull:true */ | ||
var lazysizes, lazySizesCfg; | ||
var lazysizes, | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
lazySizesCfg; | ||
@@ -57,3 +66,9 @@ (function(){ | ||
init: function () {}, | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
cfg: lazySizesCfg, | ||
/** | ||
* @type { true } | ||
*/ | ||
noSupport: true, | ||
@@ -91,2 +106,6 @@ }; | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var hasClass = function(ele, cls) { | ||
@@ -99,2 +118,6 @@ if(!regClassCache[cls]){ | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var addClass = function(ele, cls) { | ||
@@ -106,2 +129,6 @@ if (!hasClass(ele, cls)){ | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var removeClass = function(ele, cls) { | ||
@@ -124,2 +151,10 @@ var reg; | ||
/** | ||
* @param elem { Element } | ||
* @param name { string } | ||
* @param detail { any } | ||
* @param noBubbles { boolean } | ||
* @param noCancelable { boolean } | ||
* @returns { CustomEvent } | ||
*/ | ||
var triggerEvent = function(elem, name, detail, noBubbles, noCancelable){ | ||
@@ -158,2 +193,9 @@ var event = document.createEvent('Event'); | ||
/** | ||
* | ||
* @param elem { Element } | ||
* @param parent { Element } | ||
* @param [width] {number} | ||
* @returns {number} | ||
*/ | ||
var getWidth = function(elem, parent, width){ | ||
@@ -558,2 +600,6 @@ width = width || elem.offsetWidth; | ||
/** | ||
* | ||
* @param elem { Element } | ||
*/ | ||
var unveilElement = function (elem){ | ||
@@ -697,2 +743,8 @@ if (elem._lazyRace) {return;} | ||
}); | ||
/** | ||
* | ||
* @param elem {Element} | ||
* @param dataAttr | ||
* @param [width] { number } | ||
*/ | ||
var getSizeElement = function (elem, dataAttr, width){ | ||
@@ -755,2 +807,5 @@ var event; | ||
lazysizes = { | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
cfg: lazySizesCfg, | ||
@@ -757,0 +812,0 @@ autoSizer: autoSizer, |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e){var t=function(f,D,u){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=f.lazySizesConfig||f.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=f.HTMLPictureElement,P="addEventListener",$="getAttribute",q=f[P].bind(f),I=f.setTimeout,U=f.requestAnimationFrame||I,o=f.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return a[t].test(e[$]("class")||"")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(a," "))}},V=function(t,a,e){var i=e?P:"removeEventListener";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent("Event");if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=f.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=u.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(u.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=u.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=u.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in f&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,"opacity")||1)>0;if(r&&Z(i,"overflow")!="visible"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,f,u,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$]("data-expand"))||!(n=o*1)){n=w}if(!f){f=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=f;u=f*H.expFactor;c=H.hFac;A=null;if(w<u&&M<1&&N>2&&h>2&&!D.hidden){w=u;N=0}else if(h>1&&N>1&&M<6){w=f}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,"lazyloaded")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute("data-load-mode")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(a){e.setAttribute("srcset",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,f,u;if(!(f=X(t,"lazybeforeunveil",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute("sizes",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||"")}u=e.firesLoad||"src"in t&&(s||n||l);f={target:t};K(t,H.loadingClass);if(u){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName("source"),F)}if(s){t.setAttribute("srcset",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!u||e){if(e){K(t,H.fastLoadedClass)}S(f);t._lazyCache=true;I(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$]("sizes"));var r=i=="auto";if((r||!m)&&a&&(e[$]("src")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(u.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q("scroll",o,true)};return{_:function(){e=u.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+" "+H.preloadClass);q("scroll",a,true);q("resize",a,true);q("pageshow",function(e){if(e.persisted){var t=D.querySelectorAll("."+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(f.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P]("DOMNodeInserted",a,true);O[P]("DOMAttrModified",a,true);setInterval(a,999)}q("hashchange",a,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q("load",l);D[P]("DOMContentLoaded",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+="px";e.setAttribute("sizes",i);if(j.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,"lazybeforesizes",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q("resize",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(t):e.lazySizes=t}(window); |
@@ -8,7 +8,16 @@ (function(window, factory) { | ||
}(typeof window != 'undefined' ? | ||
window : {}, function l(window, document, Date) { // Pass in the windoe Date function also for SSR because the Date class can be lost | ||
window : {}, | ||
/** | ||
* import("./types/global") | ||
* @typedef { import("./types/lazysizes-config").LazySizesConfigPartial } LazySizesConfigPartial | ||
*/ | ||
function l(window, document, Date) { // Pass in the window Date function also for SSR because the Date class can be lost | ||
'use strict'; | ||
/*jshint eqnull:true */ | ||
var lazysizes, lazySizesCfg; | ||
var lazysizes, | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
lazySizesCfg; | ||
@@ -55,3 +64,9 @@ (function(){ | ||
init: function () {}, | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
cfg: lazySizesCfg, | ||
/** | ||
* @type { true } | ||
*/ | ||
noSupport: true, | ||
@@ -89,2 +104,6 @@ }; | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var hasClass = function(ele, cls) { | ||
@@ -97,2 +116,6 @@ if(!regClassCache[cls]){ | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var addClass = function(ele, cls) { | ||
@@ -104,2 +127,6 @@ if (!hasClass(ele, cls)){ | ||
/** | ||
* @param ele {Element} | ||
* @param cls {string} | ||
*/ | ||
var removeClass = function(ele, cls) { | ||
@@ -122,2 +149,10 @@ var reg; | ||
/** | ||
* @param elem { Element } | ||
* @param name { string } | ||
* @param detail { any } | ||
* @param noBubbles { boolean } | ||
* @param noCancelable { boolean } | ||
* @returns { CustomEvent } | ||
*/ | ||
var triggerEvent = function(elem, name, detail, noBubbles, noCancelable){ | ||
@@ -156,2 +191,9 @@ var event = document.createEvent('Event'); | ||
/** | ||
* | ||
* @param elem { Element } | ||
* @param parent { Element } | ||
* @param [width] {number} | ||
* @returns {number} | ||
*/ | ||
var getWidth = function(elem, parent, width){ | ||
@@ -556,2 +598,6 @@ width = width || elem.offsetWidth; | ||
/** | ||
* | ||
* @param elem { Element } | ||
*/ | ||
var unveilElement = function (elem){ | ||
@@ -695,2 +741,8 @@ if (elem._lazyRace) {return;} | ||
}); | ||
/** | ||
* | ||
* @param elem {Element} | ||
* @param dataAttr | ||
* @param [width] { number } | ||
*/ | ||
var getSizeElement = function (elem, dataAttr, width){ | ||
@@ -753,2 +805,5 @@ var event; | ||
lazysizes = { | ||
/** | ||
* @type { LazySizesConfigPartial } | ||
*/ | ||
cfg: lazySizesCfg, | ||
@@ -755,0 +810,0 @@ autoSizer: autoSizer, |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e){var t=function(u,D,f){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=u.HTMLPictureElement,P="addEventListener",$="getAttribute",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,o=u.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return a[t].test(e[$]("class")||"")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(a," "))}},V=function(t,a,e){var i=e?P:"removeEventListener";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent("Event");if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=u.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=f.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(f.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=f.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,"opacity")||1)>0;if(r&&Z(i,"overflow")!="visible"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,u,f,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$]("data-expand"))||!(n=o*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&h>2&&!D.hidden){w=f;N=0}else if(h>1&&N>1&&M<6){w=u}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,"lazyloaded")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute("data-load-mode")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(a){e.setAttribute("srcset",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,u,f;if(!(u=X(t,"lazybeforeunveil",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute("sizes",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||"")}f=e.firesLoad||"src"in t&&(s||n||l);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName("source"),F)}if(s){t.setAttribute("srcset",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,H.fastLoadedClass)}S(u);t._lazyCache=true;I(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$]("sizes"));var r=i=="auto";if((r||!m)&&a&&(e[$]("src")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(f.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q("scroll",o,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+" "+H.preloadClass);q("scroll",a,true);q("resize",a,true);q("pageshow",function(e){if(e.persisted){var t=D.querySelectorAll("."+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P]("DOMNodeInserted",a,true);O[P]("DOMAttrModified",a,true);setInterval(a,999)}q("hashchange",a,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q("load",l);D[P]("DOMContentLoaded",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+="px";e.setAttribute("sizes",i);if(j.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,"lazybeforesizes",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q("resize",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}); |
{ | ||
"name": "lazysizes", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"filename": "lazysizes.min.js", | ||
@@ -14,3 +14,4 @@ "license": "MIT", | ||
"browser": "lazysizes.js", | ||
"devDependencies": { | ||
"types": "lazysizes.d.ts", | ||
"devDependencies": { | ||
"grunt": "~1.1.0", | ||
@@ -66,3 +67,5 @@ "grunt-bytesize": "~0.2.0", | ||
], | ||
"dependencies": {} | ||
"dependencies": { | ||
"typescript": "^4.1.5" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var i;e&&(i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(o,e,u){"use strict";var d,t,l,f,m,h,p,s;function g(e){return'source[data-tag~="'+e+'"]'}function n(e){var t,i,a,r,s,n,c=e.getAttribute("media");return{source:e,aspectRatio:(t=e,s=parseFloat(t.getAttribute("data-aspectratio")),n=t.getAttribute(d.srcsetAttr)||t.getAttribute("srcset"),s||(r=(i=n.match(f))?"w"==i[2]?(a=i[1],i[3]):(a=i[3],i[1]):(a=t.getAttribute("width"),t.getAttribute("height")),s=a/r),s),isSelected:!c||o.matchMedia(c).matches}}function c(e,t){return e.aspectRatio<t.aspectRatio}function y(e,t){e._lsMedia=t,u.rAF(function(){e._lsMedia&&delete e._lsMedia,e.setAttribute("media",t)})}function b(t){var e,i=(e=t.img).offsetWidth/e.offsetHeight,a=s.call(t.picture.getElementsByTagName("source")).map(n).sort(c),r=function(e,t){for(var i=e[0],a=1,r=e.length;a<r;a++)Math.abs(i.aspectRatio-t)>Math.abs(e[a].aspectRatio-t)&&(i=e[a]);return i}(t.selector?a.filter(function(e){return e.source.matches(t.selector)}):a,i);r.isSelected||y(r.source,"(min-width: 1px)"),a.filter(function(e){return e!=r&&e.isSelected}).forEach(function(e){y(e.source,"(x)")})}o.addEventListener&&(d=u.cfg,t=(o.Element||Node||o.HTMLElement).prototype,l=/artdirect/,f=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,m=/artdirect["']*\s*:\s*["']*(.+?)(?=($|'|"|;))/,h=/^picture$/i,p=/[\s,]+/g,s=[].slice,t.matches||(t.matches=t.matchesSelector||t.webkitMatchesSelector||t.msMatchesSelector||t.oMatchesSelector),o.addEventListener("lazybeforesizes",function(e){var t,i,a,r,s,n,c;e.detail.instance==u&&(t=e.target,r=(a=t).parentNode,s=h.test(r.nodeName||""),n=(o.getComputedStyle(a)||{}).fontFamily,c=null,s&&(d.autoArtDirect||l.test(n||""))&&(c={picture:r,img:a,tags:n.match(m)}).tags&&(c.selector=c.tags[1].split(p).map(g).join(",")),(i=c)&&b(i))},!0))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(o,r,e){"use strict";var s,t,i,n,d,c,a,u,f,l,m,h,p;function g(){this.ratioElems=r.getElementsByClassName("lazyaspectratio"),this._setupEvents(),this.processImages()}o.addEventListener&&(s=Array.prototype.forEach,d=/^picture$/i,a="img["+(c="data-aspectratio")+"]",u=function(e){return o.matchMedia?(u=function(e){return!e||(matchMedia(e)||{}).matches})(e):o.Modernizr&&Modernizr.mq?!e||Modernizr.mq(e):!e},f=e.aC,l=e.rC,m=e.cfg,g.prototype={_setupEvents:function(){function t(e){e.naturalWidth<36?n.addAspectRatio(e,!0):n.removeAspectRatio(e,!0)}function e(){n.processImages()}var i,n=this;function a(){s.call(n.ratioElems,t)}r.addEventListener("load",function(e){e.target.getAttribute&&e.target.getAttribute(c)&&t(e.target)},!0),addEventListener("resize",function(){clearTimeout(i),i=setTimeout(a,99)}),r.addEventListener("DOMContentLoaded",e),addEventListener("load",e)},processImages:function(e){for(var t=("length"in(e=e||r)&&!e.nodeName?e:e.querySelectorAll(a)),i=0;i<t.length;i++)36<t[i].naturalWidth?this.removeAspectRatio(t[i]):this.addAspectRatio(t[i])},getSelectedRatio:function(e){var t,i,n,a,o,r=e.parentNode;if(r&&d.test(r.nodeName||""))for(t=0,i=(n=r.getElementsByTagName("source")).length;t<i;t++)if(a=n[t].getAttribute("data-media")||n[t].getAttribute("media"),m.customMedia[a]&&(a=m.customMedia[a]),u(a)){o=n[t].getAttribute(c);break}return o||e.getAttribute(c)||""},parseRatio:(h=/^\s*([+\d\.]+)(\s*[\/x]\s*([+\d\.]+))?\s*$/,p={},function(e){var t;return!p[e]&&(t=e.match(h))&&(t[3]?p[e]=t[1]/t[3]:p[e]=+t[1]),p[e]}),addAspectRatio:function(e,t){var i,n=e.offsetWidth,a=e.offsetHeight;t||f(e,"lazyaspectratio"),n<36&&a<=0?(n||a&&o.console)&&console.log("Define width or height of image, so we can calculate the other dimension"):(i=this.getSelectedRatio(e),(i=this.parseRatio(i))&&(n?e.style.height=n/i+"px":e.style.width=a*i+"px"))},removeAspectRatio:function(e){l(e,"lazyaspectratio"),e.style.height="",e.style.width="",e.removeAttribute(c)}},(i=function(){(n=o.jQuery||o.Zepto||o.shoestring||o.$)&&n.fn&&!n.fn.imageRatio&&n.fn.filter&&n.fn.add&&n.fn.find?n.fn.imageRatio=function(){return t.processImages(this.find(a).add(this.filter(a))),this}:n=!1})(),setTimeout(i),t=new g,o.imageRatio=t,"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd&&define(t))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n;e&&(n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0))}("undefined"!=typeof window?window:0,function(f,v,y){"use strict";var b=function(){function e(e){for(var t,n,a=0,i=e.length;a<i;a++)(n=(t=e[a]).target).getAttribute(t.attributeName)&&("source"==n.localName&&n.parentNode&&(n=n.parentNode.querySelector("img")),n&&l.test(n.className)&&function(e){y.rAF(function(){y.rC(e,o.loadedClass),o.unloadedClass&&y.rC(e,o.unloadedClass),y.aC(e,o.lazyClass),("none"==e.style.display||e.parentNode&&"none"==e.parentNode.style.display)&&setTimeout(function(){y.loader.unveil(e)},0)})}(n))}var t,n,a,i,s,r,o=y.cfg,d={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1},l="(\\s|^)("+o.loadedClass,u=v.documentElement;function c(){e(r),s=!(r=[])}o.unloadedClass&&(l+="|"+o.unloadedClass),l+="|"+o.loadingClass+")(\\s|$)",l=new RegExp(l),d[o.srcAttr]=1,d[o.srcsetAttr]=1,n=f.MutationObserver?(a=new MutationObserver(e),t=function(){i||(i=!0,a.observe(u,{subtree:!0,attributes:!0,attributeFilter:Object.keys(d)}))},function(){i&&(i=!1,a.disconnect())}):(u.addEventListener("DOMAttrModified",(r=[],function(e){i&&d[e.attrName]&&e.newValue&&(r.push({target:e.target,attributeName:e.attrName}),s||(setTimeout(c),s=!0))}),!0),t=function(){i=!0},function(){i=!1}),addEventListener("lazybeforeunveil",n,!0),addEventListener("lazybeforeunveil",t),addEventListener("lazybeforesizes",n,!0),addEventListener("lazybeforesizes",t),t(),removeEventListener("lazybeforeunveil",b)};addEventListener("lazybeforeunveil",b)}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var a=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",a,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0)}(window,function(e,z,c){"use strict";var g,y,b,f,r,l,s,v,m;e.addEventListener&&(g=c.cfg,y=/\s+/g,b=/\s*\|\s+|\s+\|\s*/g,f=/^(.+?)(?:\s+\[\s*(.+?)\s*\])(?:\s+\[\s*(.+?)\s*\])?$/,r=/^\s*\(*\s*type\s*:\s*(.+?)\s*\)*\s*$/,l=/\(|\)|'/,s={contain:1,cover:1},v=function(e,t){var a;t&&((a=t.match(r))&&a[1]?e.setAttribute("type",a[1]):e.setAttribute("media",g.customMedia[t]||t))},m=function(e){var t,a,r,i,s;e.target._lazybgset&&(a=(t=e.target)._lazybgset,(r=t.currentSrc||t.src)&&(i=l.test(r)?JSON.stringify(r):r,(s=c.fire(a,"bgsetproxy",{src:r,useSrc:i,fullSrc:null})).defaultPrevented||(a.style.backgroundImage=s.detail.fullSrc||"url("+s.detail.useSrc+")")),t._lazybgsetLoading&&(c.fire(a,"_lazyloaded",{},!1,!0),delete t._lazybgsetLoading))},addEventListener("lazybeforeunveil",function(e){var t,a,r,i,s,l,n,d,u,o;!e.defaultPrevented&&(t=e.target.getAttribute("data-bgset"))&&(u=e.target,(o=z.createElement("img")).alt="",o._lazybgsetLoading=!0,e.detail.firesLoad=!0,a=t,r=u,i=o,s=z.createElement("picture"),l=r.getAttribute(g.sizesAttr),n=r.getAttribute("data-ratio"),d=r.getAttribute("data-optimumx"),r._lazybgset&&r._lazybgset.parentNode==r&&r.removeChild(r._lazybgset),Object.defineProperty(i,"_lazybgset",{value:r,writable:!0}),Object.defineProperty(r,"_lazybgset",{value:s,writable:!0}),a=a.replace(y," ").split(b),s.style.display="none",i.className=g.lazyClass,1!=a.length||l||(l="auto"),a.forEach(function(e){var t,a=z.createElement("source");l&&"auto"!=l&&a.setAttribute("sizes",l),(t=e.match(f))?(a.setAttribute(g.srcsetAttr,t[1]),v(a,t[2]),v(a,t[3])):a.setAttribute(g.srcsetAttr,e),s.appendChild(a)}),l&&(i.setAttribute(g.sizesAttr,l),r.removeAttribute(g.sizesAttr),r.removeAttribute("sizes")),d&&i.setAttribute("data-optimumx",d),n&&i.setAttribute("data-ratio",n),s.appendChild(i),r.appendChild(s),setTimeout(function(){c.loader.unveil(o),c.rAF(function(){c.fire(o,"_lazyloaded",{},!0,!0),o.complete&&m({target:o})})}))}),z.addEventListener("load",m,!0),e.addEventListener("lazybeforesizes",function(e){var t,a,r,i;e.detail.instance==c&&e.target._lazybgset&&e.detail.dataAttr&&(t=e.target._lazybgset,r=t,i=(getComputedStyle(r)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!s[i]&&s[r.style.backgroundSize]&&(i=r.style.backgroundSize),s[a=i]&&(e.target._lazysizesParentFit=a,c.rAF(function(){e.target.setAttribute("data-parent-fit",a),e.target._lazysizesParentFit&&delete e.target._lazysizesParentFit})))},!0),z.documentElement.addEventListener("lazybeforesizes",function(e){var t,a;!e.defaultPrevented&&e.target._lazybgset&&e.detail.instance==c&&(e.detail.width=(t=e.target._lazybgset,a=c.gW(t,t.parentNode),(!t._lazysizesWidth||a>t._lazysizesWidth)&&(t._lazysizesWidth=a),t._lazysizesWidth))}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var a;e&&(a=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",a,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0))}("undefined"!=typeof window?window:0,function(l,b,A){"use strict";var a;!function(){var e,t={blurUpClass:"ls-blur-up-img",blurUpLoadingClass:"ls-blur-up-is-loading",blurUpInviewClass:"ls-inview",blurUpLoadedClass:"ls-blur-up-loaded",blurUpLoadedOriginalClass:"ls-original-loaded"};for(e in a=A.cfg||{},t)e in a||(a[e]=t[e])}();function r(e,t){var i;return(e?n.call(e.querySelectorAll("source, img")):[t]).forEach(function(e){var t,a,n,r;i||(!(t=e.getAttribute("data-lowsrc"))||(n=(a=e).getAttribute("data-media")||a.getAttribute("media"),(r=a.getAttribute("type"))&&!o.test(r)||n&&!l.matchMedia(A.cfg.customMedia[n]||n).matches)||(i=t))}),i}function i(e,t,a,n){function r(){l&&A.rAF(function(){A.rC(t,A.cfg.blurUpLoadingClass);try{l.parentNode.removeChild(l)}catch(e){}l=null})}function i(e){c++,u=e||u,e?r():1<c&&setTimeout(r,5e3)}var l,s,o=!1,u=!1,d="always"==n?0:Date.now(),c=0,f=(e||t).parentNode,v=function(){t.removeEventListener("load",v),t.removeEventListener("error",v),l&&A.rAF(function(){l&&A.aC(l,A.cfg.blurUpLoadedOriginalClass)}),A.fire(t,"blurUpLoaded"),"always"!=n&&(!o||Date.now()-d<66)?i(!0):i()};a&&(s=function(e){o=!0,l=l||e.target,A.rAF(function(){A.rC(t,A.cfg.blurUpLoadingClass),l&&A.aC(l,A.cfg.blurUpLoadedClass)}),l&&(l.removeEventListener("load",s),l.removeEventListener("error",s))},(l=b.createElement("img")).addEventListener("load",s),l.addEventListener("error",s),l.className=A.cfg.blurUpClass,l.cssText=t.cssText,l.src=a,l.alt="",l.setAttribute("aria-hidden","true"),f.insertBefore(l,(e||t).nextSibling),"always"!=n&&(l.style.visibility="hidden",A.rAF(function(){l&&setTimeout(function(){l&&A.rAF(function(){!u&&l&&(l.style.visibility="")})},A.cfg.blurupCacheDelay||33)}))),t.addEventListener("load",v),t.addEventListener("error",v),A.aC(t,A.cfg.blurUpLoadingClass);var g=function(e){f==e.target&&(A.aC(l||t,A.cfg.blurUpInviewClass),i(),f.removeEventListener("lazybeforeunveil",g))};f.getAttribute("data-expand")||f.setAttribute("data-expand",-1),f.addEventListener("lazybeforeunveil",g),A.aC(f,A.cfg.lazyClass)}var n=[].slice,s=/blur-up["']*\s*:\s*["']*(always|auto)/,o=/image\/(jpeg|png|gif|svg\+xml)/;l.addEventListener("lazybeforeunveil",function(e){var t,a,n=e.detail;n.instance==A&&n.blurUp&&("PICTURE"!=(a=(t=e.target).parentNode).nodeName&&(a=null),i(a,t,r(a,t)||"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n.blurUp))}),l.addEventListener("lazyunveilread",function(e){var t,a,n=e.detail;n.instance==A&&(t=e.target,((a=(getComputedStyle(t,null)||{fontFamily:""}).fontFamily.match(s))||t.getAttribute("data-lowsrc"))&&(n.blurUp=a&&a[1]||A.cfg.blurupMode||"always"))})}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(e,i,a){"use strict";var n,t,r,o=i.documentElement;function u(e,t){return((getComputedStyle(e,t)||{getPropertyValue:function(){}}).getPropertyValue("content")||"none").replace(n,"").trim()}function s(e,i){e.split(t).forEach(function(e){var t=e.match(r);t&&(i[t[1]]=t[2])})}a.getCustomMedias=(n=/['"]/g,t=/\s*\|\s*/g,r=/^([a-z0-9_-]+)\s*:\s*(.+)$/i,function(e,t){return e=e||a.cfg.customMedia,t=t||i.querySelector("html"),s(u(t,":before"),e),s(u(t,":after"),e),e}),a.updateCustomMedia=function(){var e,t,i,n=o.querySelectorAll("source[media][data-media][srcset]");for(a.getCustomMedias(),e=0,t=n.length;e<t;e++)(i=a.cfg.customMedia[n[e].getAttribute("data-media")||n[e].getAttribute("media")])&&n[e].setAttribute("media",i);for(e=0,t=(n=o.querySelector("source[media][data-media][srcset] ~ img")).length;e<t;e++)a.uP(n[e]);a.autoSizer.checkElems()},a.getCustomMedias()}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,i,a){"use strict";var s,o,t=i.createElement("img"),n="sizes"in t&&"srcset"in t,c=/\s+\d+h/g,r=(s=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,o=Array.prototype.forEach,function(){function n(e){var t,n,r=e.getAttribute(lazySizesConfig.srcsetAttr);r&&(n=r.match(s))&&((t="w"==n[2]?n[1]/n[3]:n[3]/n[1])&&e.setAttribute("data-aspectratio",t),e.setAttribute(lazySizesConfig.srcsetAttr,r.replace(c,"")))}function e(e){var t;e.detail.instance==a&&((t=e.target.parentNode)&&"PICTURE"==t.nodeName&&o.call(t.getElementsByTagName("source"),n),n(e.target))}function t(){r.currentSrc&&i.removeEventListener("lazybeforeunveil",e)}var r=i.createElement("img");i.addEventListener("lazybeforeunveil",e),r.onload=t,r.onerror=t,r.srcset="data:,a 1w 1h",r.complete&&t()});!a.hasHDescriptorFix&&e.HTMLPictureElement&&n&&i.msElementsFromPoint&&(a.hasHDescriptorFix=!0,r())}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var r=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",r,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?r():e.addEventListener("lazyunveilread",r,!0)}(window,function(e,c,l){"use strict";var d,o=l.cfg,t=c.createElement("img");!("srcset"in t)||"sizes"in t||e.HTMLPictureElement||(d=/^picture$/i,c.addEventListener("lazybeforeunveil",function(e){var t,r,i,n,s,a,u;e.detail.instance==l&&!e.defaultPrevented&&!o.noIOSFix&&(t=e.target)&&(i=t.getAttribute(o.srcsetAttr))&&(r=t.parentNode)&&((s=d.test(r.nodeName||""))||(n=t.getAttribute("sizes")||t.getAttribute(o.sizesAttr)))&&(a=s?r:c.createElement("picture"),t._lazyImgSrc||Object.defineProperty(t,"_lazyImgSrc",{value:c.createElement("source"),writable:!0}),u=t._lazyImgSrc,n&&u.setAttribute("sizes",n),u.setAttribute(o.srcsetAttr,i),t.setAttribute("data-pfsrcset",i),t.removeAttribute(o.srcsetAttr),s||(r.insertBefore(a,t),a.appendChild(t)),a.insertBefore(u,t))}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,n){var t=function(){n(e.lazySizes),e.removeEventListener("lazyunveilread",t,!0)};n=n.bind(null,e,e.document),"object"==typeof module&&module.exports?n(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],n):e.lazySizes?t():e.addEventListener("lazyunveilread",t,!0)}(window,function(a,o,L){"use strict";var s,l,r,d,c,u,f,t,m,y,h,i,p,T,e,v,g,z,E,M,n,C,q;function b(){E.length&&(g=0,E.d())}function S(){for(var e=0,n=i.length;e<n;e++)!L.hC(i[e],q.lazyClass)&&I(i[e])&&L.aC(i[e],q.lazyClass)}function x(e){var n;(n=e.match(t))?this.urls[n[1]]=s.map[n[2]]||n[2]:this.urls.include=s.map[e]||e}function H(e){var n,t,i;return e=e.trim(),(n=(t=(e=s.map[e]||e).match(m))?(i=t[1],{condition:q.include.conditions[t[3]]||q.customMedia[t[3]]||t[2]||null,name:t[3]}):(i=e,{condition:null,name:""})).urls={},(s.map[i]||i).split(f).forEach(x,n),!n.urls.include&&n.urls.amd&&(this.saved=!0,n.initial=this),n}function A(e,n){var t,i=!n.condition;return n.condition&&(r||((l=l||o.querySelector(s.contentElement))?(t=(p(l,":after").getPropertyValue("content")||"none").replace(y,""),r={},t&&(r[t]=1),(t=(p(l,":before").getPropertyValue("content")||"none").replace(y,""))&&(r[t]=1)):r={}),r[n.name]?i=!0:a.matchMedia&&"string"==typeof n.condition?i=(matchMedia(n.condition)||{}).matches:"function"==typeof n.condition&&(i=n.condition(e,n))),i}function I(e){var n,t,i=e.lazyInclude;if(i&&i.candidates)for(n=0;n<i.candidates.length&&!A(e,t=i.candidates[n]);n++);return t&&t!=i.current||(t=null),t}function w(t,e,n){var i,a,l,r;u[t]?n&&(!0===u[t]?setTimeout(n):u[t].push(n)):(i=o.createElement(!0===e?"script":"link"),a=o.getElementsByTagName("script")[0],e?(i.src=t,i.async=!1):(i.rel="stylesheet",i.href=t),u[t]=[],u[i.href]=u[t],n&&(r=function(e){if("readystatechange"!=e.type||c[e.target.readyState]){var n=u[t];for(i.removeEventListener("load",r),i.removeEventListener("error",r),i.removeEventListener("readystatechange",r),i.removeEventListener("loadcssdefined",r),l&&clearInterval(l),u[t]=!0,u[i.href]=!0;n.length;)n.shift()()}},u[i.href][0]=n,e||(l=setInterval(function(){!function(e){for(var n=!1,t=o.styleSheets,i=e.href,a=0,l=t.length;a<l;a++)if(t[a].href==i){n=!0;break}return n}(i)||r({})},60)),i.addEventListener("load",r),i.addEventListener("error",r),i.addEventListener("readystatechange",r),i.addEventListener("loadcssdefined",r)),a.parentNode.insertBefore(i,a))}function N(e){e&&"function"==typeof e.lazytransform&&e.lazytransform(this)}function P(e){e&&"function"==typeof e.lazyunload&&e.lazyunload(this)}function R(e){e&&"function"==typeof e.lazyload&&e.lazyload(this)}function B(r,o){var s,d,e,n,t,i,a,l,c,u,f,m,y,h,p,v,g,z=r.lazyInclude.current||null,E={candidate:o,openArgs:["GET",o.urls.include,!0],sendData:null,xhrModifier:null,content:o.content&&o.content.content||o.content,oldCandidate:z};L.fire(r,"lazyincludeload",E).defaultPrevented?T.d():(v=function(){s&&d&&!e&&g()},g=function(){var e,n=s.status,t=s.content||s.responseText,i=!(null!=t||!z||!z.urls.include),a={candidate:o,content:t,text:s.responseText||s.content,response:s.response,xml:s.responseXML,isSuccess:!("status"in s)||(200<=n&&n<300||304===n),oldCandidate:z,insert:!0,resetHTML:i},l={target:r,details:a,detail:a};o.modules=d,z&&z.modules&&(z.modules.forEach(P,l),z.modules=null,a.resetHTML&&null==a.content&&o.initial&&o.initial.saved&&(a.content=o.initial.content)),d.forEach(N,l),e=L.fire(r,"lazyincludeloaded",a),a.insert&&a.isSuccess&&!e.defaultPrevented&&null!=a.content&&a.content!=r.innerHTML&&(r.innerHTML=a.content),T.d(),d.forEach(R,l),setTimeout(function(){L.fire(r,"lazyincluded",a)}),d=s=null},r.lazyInclude.current=o,r.setAttribute("data-currentinclude",o.name),o.urls.css&&(e=!0,n=o.urls.css,t=function(){e=!1,v()},i=(n=n.split("|,|")).length-1,n.forEach(function(e,n){w(e,!1,n==i?t:null)})),null==E.content&&o.urls.include?(a=E,l=function(e){s=e,v()},(c=new XMLHttpRequest).addEventListener("readystatechange",function(){var e=this.DONE||4;this.readyState===e&&(l(c),c=null)},!1),c.open.apply(c,a.openArgs),c.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.xhrModifier&&a.xhrModifier(c,a.candidate),c.send(a.sendData)):s=E,o.urls.amd||o.urls.module?(u=function(){d=Array.prototype.slice.call(arguments),v()},o.urls.amd?(y=o.urls.amd,h=u,p=(y=y.split("|,|")).length-1,L.cfg.requireJs?L.cfg.requireJs(y,h):y.forEach(function(e,n){w(e,n==p?h:null)})):(f=o.urls.module,m=u,L.cfg.systemJs?L.cfg.systemJs(f,m):w(f,m))):d=[],v())}function D(e){var n,t,i,a,l,r;return(l=(t=e).getAttribute("data-include")||"",(r=t.lazyInclude)&&r.str==l&&!s.allowReload||(a={saved:!1,content:null},!(i=(r={str:l,candidates:(s.map[l]||l).split(d).map(H,a)}).candidates.length)||r.candidates[i-1].condition?(a.saved=!0,r.candidates.push({urls:{},condition:null,name:"initial",content:a})):a.saved&&1==r.candidates.length&&(a.saved=!1),(r.initialContent=a).saved&&(a.content=t.innerHTML),1<(t.lazyInclude=r).candidates.length?L.aC(t,"lazyconditionalinclude"):L.rC(t,"lazyconditionalinclude")),r).candidates.length&&h.contains(e)&&((n=I(e))&&B(e,n),1)}o.getElementsByClassName&&(d=/\s*,+\s+/,c={complete:1,loaded:1},u={},f=/\s+/,t=/^(amd|css|module)\:(.+)/i,m=/(.+)\s+(\(\s*(.+)\s*\))/,y=/['"]/g,h=o.documentElement,i=o.getElementsByClassName("lazyconditionalinclude"),p=function(e,n){var t=e.ownerDocument.defaultView;return t.opener||(t=a),t.getComputedStyle(e,n||null)||{getPropertyValue:function(){},isNull:!0}},v=2,z=g=0,E=[],M=function(){clearTimeout(e),e=setTimeout(b,999)},T={q:function(e){var n=null==e.getAttribute("data-lazyqueue");n&&(z++,v=3),v<g?E[n?"unshift":"push"](e):D(e)&&(g++,M())},d:function(){if(g&&g--,0<z&&(--z||(v=2)),!(v<g)){for(;E.length;)if(D(E.shift())){g++;break}M()}}},n=function(e){clearTimeout(C),r=null,C=setTimeout(S,"resize"==e.type?31:0)},(q=L&&L.cfg).include||(q.include={}),(s=q.include).contentElement||(s.contentElement="html"),s.conditions||(s.conditions={}),s.map||(s.map={}),addEventListener("lazybeforeunveil",function(e){e.detail.instance==L&&!e.defaultPrevented&&e.target.getAttribute("data-include")&&(T.q(e.target),e.detail.firesLoad=!0)},!1),addEventListener("resize",n,!1),addEventListener("lazyrefreshincludes",n,!1))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(a,o,r){"use strict";var s="loading"in HTMLImageElement.prototype,d="loading"in HTMLIFrameElement.prototype,l=!1,t=r.prematureUnveil,v=r.cfg,u={focus:1,mouseover:1,click:1,load:1,transitionend:1,animationend:1,scroll:1,resize:1};function n(){var e,t,n;function i(){setTimeout(function(){a.removeEventListener("scroll",e._aLSL,!0)},1e3)}l||(l=!0,s&&d&&v.nativeLoading.disableListeners&&(!0===v.nativeLoading.disableListeners&&(v.nativeLoading.setLoadingAttribute=!0),e=r.loader,t=e.checkElems,(n="object"==typeof v.nativeLoading.disableListeners?v.nativeLoading.disableListeners:u).scroll&&(a.addEventListener("load",i),i(),a.removeEventListener("scroll",t,!0)),n.resize&&a.removeEventListener("resize",t,!0),Object.keys(n).forEach(function(e){n[e]&&o.removeEventListener(e,t,!0)})),v.nativeLoading.setLoadingAttribute&&a.addEventListener("lazybeforeunveil",function(e){var t=e.target;"loading"in t&&!t.getAttribute("loading")&&t.setAttribute("loading","lazy")},!0))}v.nativeLoading||(v.nativeLoading={}),a.addEventListener&&a.MutationObserver&&(s||d)&&(r.prematureUnveil=function(e){return l||n(),!(!("loading"in e&&(v.nativeLoading.setLoadingAttribute||e.getAttribute("loading")))||"auto"==e.getAttribute("data-sizes")&&!e.offsetWidth)||(t?t(e):void 0)})}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,d){"use strict";var l={nodeName:""},s=!!e.HTMLPictureElement&&"sizes"in t.createElement("img"),r=e.lazySizes&&d.cfg;r.getNoscriptContent=function(e){return e.textContent||e.innerText},e.addEventListener("lazybeforeunveil",function(e){var t,n;e.detail.instance!=d||e.defaultPrevented||null==e.target.getAttribute("data-noscript")||(t=e.target.querySelector('noscript, script[type*="html"]')||{},(n=r.getNoscriptContent(t))&&(e.target.innerHTML=n,function(t){for(var e,n,r,i,a=t.target.querySelectorAll("img, iframe"),o=0;o<a.length;o++)e=a[o].getAttribute("srcset")||"picture"==(a[o].parentNode||l).nodeName.toLowerCase(),!s&&e&&d.uP(a[o]),a[o].complete||!e&&!a[o].src||(t.detail.firesLoad=!0,r&&i||(i=0,r=function(e){i--,e&&!(i<1)||n||(n=!0,t.detail.firesLoad=!1,d.fire(t.target,"_lazyloaded",{},!1,!0)),e&&e.target&&(e.target.removeEventListener("load",r),e.target.removeEventListener("error",r))},setTimeout(r,3500)),i++,a[o].addEventListener("load",r),a[o].addEventListener("error",r))}(e)))})}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,i){var a;e&&(a=function(t){i(e.lazySizes,t),e.removeEventListener("lazyunveilread",a,!0)},i=i.bind(null,e,e.document),"object"==typeof module&&module.exports?i(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],i):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0))}("undefined"!=typeof window?window:0,function(t,u,f,e){"use strict";var y,i,a=u.createElement("a").style,r="objectFit"in a,s=/object-fit["']*\s*:\s*["']*(contain|cover)/,l=/object-position["']*\s*:\s*["']*(.+?)(?=($|,|'|"|;))/,A="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n=/\(|\)|'/,d={center:"center","50% 50%":"center"};function c(o,r){function s(){var t=o.currentSrc||o.src;t&&i!==t&&(i=t,d.backgroundImage="url("+(n.test(t)?JSON.stringify(t):t)+")",e||(e=!0,f.rC(l,c.loadingClass),f.aC(l,c.loadedClass)))}function t(){f.rAF(s)}var e,i,l,d,c=f.cfg;o._lazysizesParentFit=r.fit,o.addEventListener("lazyloaded",t,!0),o.addEventListener("load",t,!0),f.rAF(function(){var t,e,i,a=o,n=o.parentNode;"PICTURE"==n.nodeName.toUpperCase()&&(n=(a=n).parentNode),(e=(t=a).previousElementSibling)&&f.hC(e,y)&&(e.parentNode.removeChild(e),t.style.position=e.getAttribute("data-position")||"",t.style.visibility=e.getAttribute("data-visibility")||""),y||y||(i=u.createElement("style"),y=f.cfg.objectFitClass||"lazysizes-display-clone",u.querySelector("head").appendChild(i)),l=o.cloneNode(!1),d=l.style,l.addEventListener("load",function(){var t=l.currentSrc||l.src;t&&t!=A&&(l.src=A,l.srcset="")}),f.rC(l,c.loadedClass),f.rC(l,c.lazyClass),f.rC(l,c.autosizesClass),f.aC(l,c.loadingClass),f.aC(l,y),["data-parent-fit","data-parent-container","data-object-fit-polyfilled",c.srcsetAttr,c.srcAttr].forEach(function(t){l.removeAttribute(t)}),l.src=A,l.srcset="",d.backgroundRepeat="no-repeat",d.backgroundPosition=r.position,d.backgroundSize=r.fit,l.setAttribute("data-position",a.style.position),l.setAttribute("data-visibility",a.style.visibility),a.style.visibility="hidden",a.style.position="absolute",o.setAttribute("data-parent-fit",r.fit),o.setAttribute("data-parent-container","prev"),o.setAttribute("data-object-fit-polyfilled",""),o._objectFitPolyfilledDisplay=l,n.insertBefore(l,a),o._lazysizesParentFit&&delete o._lazysizesParentFit,o.complete&&s()})}r&&(r&&"objectPosition"in a)||(i=function(t){if(t.detail.instance==f){var e,i,a,n=t.target,o=(e=(getComputedStyle(n,null)||{}).fontFamily||"",i=e.match(s)||"",a=(a=i&&e.match(l)||"")&&a[1],{fit:i&&i[1]||"",position:d[a]||a||"center"});return!(!o.fit||r&&"center"==o.position)&&(c(n,o),!0)}},t.addEventListener("lazybeforesizes",function(t){var e;t.detail.instance==f&&(null==(e=t.target).getAttribute("data-object-fit-polyfilled")||e._objectFitPolyfilledDisplay||i(t)||f.rAF(function(){e.removeAttribute("data-object-fit-polyfilled")}))}),t.addEventListener("lazyunveilread",i,!0),e&&e.detail&&i(e))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n;e&&(n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0))}("undefined"!=typeof window?window:0,function(t,e,s){"use strict";var c,d,n,r,o,i,l,u,f,m,a;function p(e,t,n,i,r,a,d,u){o.push({c:t,u:n,w:+("w"==u?d:i)})}function v(e,t){return e.w-t.w}function y(e,t){var n={srcset:e.getAttribute(s.cfg.srcsetAttr)||""},i=r(n.srcset);return Object.defineProperty(e,t,{value:n,writable:!0}),n.cands=i,n.index=0,n.dirty=!1,i[0]&&i[0].w?(i.sort(v),n.cSrcset=[i[n.index].c]):(n.cSrcset=n.srcset?[n.srcset]:[],n.cands=[]),n}function g(e,t,n,i,r){var a,d=e[r];d&&(a=d.index,u[r](d,t,n),d.dirty&&a==d.index||(d.cSrcset.join(", "),e.setAttribute(i,d.cSrcset.join(", ")),d.dirty=!0))}t.addEventListener&&(d=/^picture$/i,n=e.documentElement,i=/(([^,\s].[^\s]+)\s+(\d+)(w|h)(\s+(\d+)(w|h))?)/g,r=function(e){return o=[],e.replace(i,p),o},l=function(e,t){var n,i,r,a;if(!e[t]&&(a=e.parentNode||{},e[t]=y(e,t),e[t].isImg=!0,d.test(a.nodeName||"")))for(e[t].picture=!0,i=0,r=(n=a.getElementsByTagName("source")).length;i<r;i++)y(n[i],t).isImg=!1;return e[t]},u={_lazyOptimumx:function(e,t,n){for(var i,r,a,d,u,s,c=0;c<e.cands.length;c++)if((i=e.cands[c]).d=(i.w||1)/t,!(e.index>=c)){if(!(i.d<=n)&&(r=e.cands[c-1],a=i.d,d=n,s=u=void 0,r&&r.d&&(s=.7<d?.6:.4,r.d>=d||((u=Math.pow(r.d-s,1.6)||.1)<.1?u=.1:3<u&&(u=3),!(r.d+(a-d)*u<d)))))break;e.cSrcset.push(i.c),e.index=c}}},f=function(e,t,n,i,r){var a,d,u,s,c=e[r];if(c.width=t,c.picture&&(d=e.parentNode))for(s=0,u=(a=d.getElementsByTagName("source")).length;s<u;s++)g(a[s],t,n,i,r);g(e,t,n,i,r)},m=function(e){var t=e.getAttribute("data-optimumx")||e.getAttribute("data-maxdpr");return!t&&c.constrainPixelDensity&&(t="auto"),t=t&&("auto"==t?c.getOptimumX(e):parseFloat(t,10))},a=function(){s&&!s.getOptimumX&&(s.getX=m,s.pWS=r,n.removeEventListener("lazybeforeunveil",a))},n.addEventListener("lazybeforeunveil",a),setTimeout(a),"function"!=typeof(c=s&&s.cfg).getOptimumX&&(c.getOptimumX=function(){var e=t.devicePixelRatio||1;return 2.6<e?e*=.6:1.9<e?e*=.8:e-=.01,Math.min(Math.round(100*e)/100,2)}),t.devicePixelRatio&&addEventListener("lazybeforesizes",function(e){var t,n,i,r,a,d,u;e.detail.instance==s&&(a=e.target,u=(d=e.detail).dataAttr,e.defaultPrevented||!(t=m(a))||t>=devicePixelRatio||(!u||!a._lazyOptimumx||d.reloaded||c.unloadedClass&&s.hC(a,c.unloadedClass)||(a._lazyOptimumx=null),n=l(a,"_lazyOptimumx"),(i=d.width)&&(n.width||0)<i&&(r=u?s.cfg.srcsetAttr:"srcset",s.rAF(function(){f(a,i,t,r,"_lazyOptimumx")}))))}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(t,e){var i;t&&(i=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",i,!0)},e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?i():t.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(u,t,i){"use strict";var l,s,d,f,g,o;u.addEventListener&&(l=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,s=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,d=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,f=/^picture$/i,g=i.cfg,o={getParent:function(t,e){var i=t,a=t.parentNode;return e&&"prev"!=e||!a||!f.test(a.nodeName||"")||(a=a.parentNode),"self"!=e&&(i="prev"==e?t.previousElementSibling:e&&(a.closest||u.jQuery)&&(a.closest?a.closest(e):jQuery(a).closest(e)[0])||a),i},getFit:function(t){var e,i,a=getComputedStyle(t,null)||{},n=a.content||a.fontFamily,r={fit:t._lazysizesParentFit||t.getAttribute("data-parent-fit")};return!r.fit&&n&&(e=n.match(s))&&(r.fit=e[1]),r.fit?(!(i=t._lazysizesParentContainer||t.getAttribute("data-parent-container"))&&n&&(e=n.match(d))&&(i=e[1]),r.parent=o.getParent(t,i)):r.fit=a.objectFit,r},getImageRatio:function(t){for(var e,i,a,n,r,s,d=t.parentNode,o=d&&f.test(d.nodeName||"")?d.querySelectorAll("source, img"):[t],c=0;c<o.length;c++)if(e=(t=o[c]).getAttribute(g.srcsetAttr)||t.getAttribute("srcset")||t.getAttribute("data-pfsrcset")||t.getAttribute("data-risrcset")||"",i=t._lsMedia||t.getAttribute("media"),i=g.customMedia[t.getAttribute("data-media")||i]||i,e&&(!i||(u.matchMedia&&matchMedia(i)||{}).matches)){(a=parseFloat(t.getAttribute("data-aspectratio")))||(s=(n=e.match(l))?"w"==n[2]?(r=n[1],n[3]):(r=n[3],n[1]):(r=t.getAttribute("width"),t.getAttribute("height")),a=r/s);break}return a},calculateSize:function(t,e){var i,a,n,r=this.getFit(t),s=r.fit,d=r.parent;return"width"==s||("contain"==s||"cover"==s)&&(a=this.getImageRatio(t))?(d?e=d.clientWidth:d=t,n=e,"width"==s?n=e:(i=e/d.clientHeight)&&("cover"==s&&i<a||"contain"==s&&a<i)&&(n=e*(a/i)),n):e}},i.parentFit=o,t.addEventListener("lazybeforesizes",function(t){var e;t.defaultPrevented||t.detail.instance!=i||(e=t.target,t.detail.width=o.calculateSize(e,t.detail.width))}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,n){var i=function(){n(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};n=n.bind(null,e,e.document),"object"==typeof module&&module.exports?n(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],n):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(e,i,t){"use strict";var n,a,d,r;e.addEventListener&&(n=t&&t.cfg,a=n.lazyClass||"lazyload",d=function(){var e,n;if("string"==typeof a&&(a=i.getElementsByClassName(a)),t)for(e=0,n=a.length;e<n;e++)t.loader.unveil(a[e])},addEventListener("beforeprint",d,!1),!("onbeforeprint"in e)&&e.matchMedia&&(r=matchMedia("print"))&&r.addListener&&r.addListener(function(){r.matches&&d()}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,i){"use strict";var r,a;"srcset"in t.createElement("img")&&(r=/^img$/i,a=function(e){e.target.style.backgroundSize="",e.target.style.backgroundImage="",e.target.removeEventListener(e.type,a)},t.addEventListener("lazybeforeunveil",function(e){var t,n;e.detail.instance==i&&(t=e.target,!r.test(t.nodeName)||(n=t.getAttribute("src"))&&(t.style.backgroundSize="100% 100%",t.style.backgroundImage="url("+n+")",t.removeAttribute("src"),t.addEventListener("load",a)))},!1))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var r;e&&(r=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",r,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?r():e.addEventListener("lazyunveilread",r,!0))}("undefined"!=typeof window?window:0,function(d,n,p){"use strict";var i,a,s,l,t,r,f,o,c,m,u,y=p.cfg,e=n.createElement("img"),g="sizes"in e&&"srcset"in e,h=/\s+\d+h/g,z=(a=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,s=Array.prototype.forEach,function(){function r(e){var t,r,i=e.getAttribute(y.srcsetAttr);i&&(r=i.match(a))&&((t="w"==r[2]?r[1]/r[3]:r[3]/r[1])&&e.setAttribute("data-aspectratio",t),e.setAttribute(y.srcsetAttr,i.replace(h,"")))}function e(e){var t;e.detail.instance==p&&((t=e.target.parentNode)&&"PICTURE"==t.nodeName&&s.call(t.getElementsByTagName("source"),r),r(e.target))}function t(){i.currentSrc&&n.removeEventListener("lazybeforeunveil",e)}var i=n.createElement("img");n.addEventListener("lazybeforeunveil",e),i.onload=t,i.onerror=t,i.srcset="data:,a 1w 1h",i.complete&&t()});function v(e,t){return e.w-t.w}function w(e,t,r,i){l.push({c:t,u:r,w:+i})}function b(e,t){var r,i=e.getAttribute("srcset")||e.getAttribute(y.srcsetAttr);!i&&t&&(i=e._lazypolyfill?e._lazypolyfill._set:e.getAttribute(y.srcAttr)||e.getAttribute("src")),e._lazypolyfill&&e._lazypolyfill._set==i||(r=o(i||""),t&&e.parentNode&&(r.isPicture="PICTURE"==e.parentNode.nodeName.toUpperCase(),r.isPicture&&d.matchMedia&&(p.aC(e,"lazymatchmedia"),c())),r._set=i,Object.defineProperty(e,"_lazypolyfill",{value:r,writable:!0}))}function A(e){var t,r,i,n,a,s,l,o,c,u=e;if(b(u,!0),(n=u._lazypolyfill).isPicture)for(r=0,i=(t=e.parentNode.getElementsByTagName("source")).length;r<i;r++)if(y.supportsType(t[r].getAttribute("type"),e)&&m(t[r].getAttribute("media"))){u=t[r],b(u),n=u._lazypolyfill;break}return 1<n.length?(s=u.getAttribute("sizes")||"",s=f.test(s)&&parseInt(s,10)||p.gW(e,e.parentNode),n.d=(l=e,o=d.devicePixelRatio||1,c=p.getX&&p.getX(l),Math.min(c||o,2.5,o)),!n.src||!n.w||n.w<s?(n.w=s,a=function(e){for(var t,r,i=e.length,n=e[i-1],a=0;a<i;a++)if((n=e[a]).d=n.w/e.w,n.d>=e.d){!n.cached&&(t=e[a-1])&&t.d>e.d-.13*Math.pow(e.d,2.2)&&(r=Math.pow(t.d-.6,1.6),t.cached&&(t.d+=.15*r),t.d+(n.d-e.d)*r>e.d&&(n=t));break}return n}(n.sort(v)),n.src=a):a=n.src):a=n[0],a}function E(e){var t;g&&e.parentNode&&"PICTURE"!=e.parentNode.nodeName.toUpperCase()||(t=A(e))&&t.u&&e._lazypolyfill.cur!=t.u&&(e._lazypolyfill.cur=t.u,t.cached=!0,e.setAttribute(y.srcAttr,t.u),e.setAttribute("src",t.u))}y.supportsType||(y.supportsType=function(e){return!e}),d.HTMLPictureElement&&g?!p.hasHDescriptorFix&&n.msElementsFromPoint&&(p.hasHDescriptorFix=!0,z()):d.picturefill||y.pf||(y.pf=function(e){var t,r;if(!d.picturefill)for(t=0,r=e.elements.length;t<r;t++)i(e.elements[t])},f=/^\s*\d+\.*\d*px\s*$/,t=/(([^,\s].[^\s]+)\s+(\d+)w)/g,r=/\s/,c=function(){var e,r;function t(){for(var e=0,t=r.length;e<t;e++)i(r[e])}c.init||(c.init=!0,addEventListener("resize",(r=n.getElementsByClassName("lazymatchmedia"),function(){clearTimeout(e),e=setTimeout(t,66)})))},m=function(e){return d.matchMedia?(m=function(e){return!e||(matchMedia(e)||{}).matches})(e):!e},E.parse=o=function(e){return l=[],(e=e.trim()).replace(h,"").replace(t,w),l.length||!e||r.test(e)||l.push({c:e,u:e,w:99}),l},i=E,y.loadedClass&&y.loadingClass&&(u=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(e){u.push(e+y.loadedClass),u.push(e+y.loadingClass)}),y.pf({elements:n.querySelectorAll(u.join(", "))})))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(t,e){var r=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",r,!0)};e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?r():t.addEventListener("lazyunveilread",r,!0)}(window,function(f,u,g){"use strict";var b,m,i=g.cfg,d={string:1,number:1},l=/^\-*\+*\d+\.*\d*$/,p=/^picture$/i,v=/\s*\{\s*width\s*\}\s*/i,y=/\s*\{\s*height\s*\}\s*/i,h=/\s*\{\s*([a-z0-9]+)\s*\}\s*/gi,z=/^\[.*\]|\{.*\}$/,A=/^(?:auto|\d+(px)?)$/,w=u.createElement("a"),t=u.createElement("img"),P="srcset"in t&&!("sizes"in t),E=!!f.HTMLPictureElement&&!P;function N(a,t,s){var e,r,i,n,o,c=f.getComputedStyle(a);if(s){for(n in o={},s)o[n]=s[n];s=o}else r=a.parentNode,s={isPicture:!(!r||!p.test(r.nodeName||""))};for(e in i=function(t,e){var r,i=a.getAttribute("data-"+t);if(i||(r=c.getPropertyValue("--ls-"+t))&&(i=r.trim()),i){if("true"==i)i=!0;else if("false"==i)i=!1;else if(l.test(i))i=parseFloat(i);else if("function"==typeof m[t])i=m[t](a,i);else if(z.test(i))try{i=JSON.parse(i)}catch(t){}s[t]=i}else t in m&&"function"!=typeof m[t]&&!s[t]?s[t]=m[t]:e&&"function"==typeof m[t]&&(s[t]=m[t](a,i))},m)i(e);return t.replace(h,function(t,e){e in s||i(e,!0)}),s}function _(t,e,r){var s,n,o,i=0,a=0,c=r;if(t){if("container"===e.ratio){for(i=c.scrollWidth,a=c.scrollHeight;!(i&&a||c===u);)i=(c=c.parentNode).scrollWidth,a=c.scrollHeight;i&&a&&(e.ratio=e.traditionalRatio?a/i:i/a)}s=t,n=e,(o=[]).srcset=[],n.absUrl&&(w.setAttribute("href",s),s=w.href),s=((n.prefix||"")+s+(n.postfix||"")).replace(h,function(t,e){return d[typeof n[e]]?n[e]:t}),n.widths.forEach(function(t){var e=n.widthmap[t]||t,r=n.aspectratio||n.ratio,i=!n.aspectratio&&m.traditionalRatio,a={u:s.replace(v,e).replace(y,r?i?Math.round(t*r):Math.round(t/r):""),w:t};o.push(a),o.srcset.push(a.c=a.u+" "+t+"w")}),(t=o).isPicture=e.isPicture,P&&"IMG"==r.nodeName.toUpperCase()?r.removeAttribute(b.srcsetAttr):r.setAttribute(b.srcsetAttr,t.srcset.join(", ")),Object.defineProperty(r,"_lazyrias",{value:t,writable:!0})}}function x(t){return t.getAttribute(t.getAttribute("data-srcattr")||m.srcAttr)||t.getAttribute(b.srcsetAttr)||t.getAttribute(b.srcAttr)||t.getAttribute("data-pfsrcset")||""}!function(){var t,e={prefix:"",postfix:"",srcAttr:"data-src",absUrl:!1,modifyOptions:function(){},widthmap:{},ratio:!1,traditionalRatio:!1,aspectratio:!1};for(t in(b=g&&g.cfg).supportsType||(b.supportsType=function(t){return!t}),b.rias||(b.rias={}),"widths"in(m=b.rias)||(m.widths=[],function(t){for(var e,r=0;!e||e<3e3;)30<(r+=5)&&(r+=1),e=36*r,t.push(e)}(m.widths)),e)t in m||(m[t]=e[t])}(),addEventListener("lazybeforesizes",function(t){if(t.detail.instance==g){var e,r,i,a,s,n,o,c,u,d,f,l=t.target;if(t.detail.dataAttr&&!t.defaultPrevented&&!m.disabled&&(o=l.getAttribute(b.sizesAttr)||l.getAttribute("sizes"))&&A.test(o)){var p,y,h=x(l);if(y=N(p=l,h),m.modifyOptions.call(p,{target:p,details:y,detail:y}),g.fire(p,"lazyriasmodifyoptions",y),e=y,u=v.test(e.prefix)||v.test(e.postfix),e.isPicture&&(r=l.parentNode))for(a=0,s=(i=r.getElementsByTagName("source")).length;a<s;a++)(u||v.test(n=x(i[a])))&&(_(n,N(i[a],n,e),i[a]),d=!0);u||v.test(h)?(_(h,e,l),d=!0):d&&((f=[]).srcset=[],f.isPicture=!0,Object.defineProperty(l,"_lazyrias",{value:f,writable:!0})),d&&(E?l.removeAttribute(b.srcAttr):"auto"!=o&&(c={width:parseInt(o,10)},M({target:l,detail:c})))}}},!0);var a,M=(a=function(t){var e,r;t.detail.instance==g&&(r=t.target,P||!(f.respimage||f.picturefill||i.pf)?("_lazyrias"in r||t.detail.dataAttr&&O(r,!0))&&(e=s(r,t.detail.width))&&e.u&&r._lazyrias.cur!=e.u&&(r._lazyrias.cur=e.u,e.cached=!0,g.rAF(function(){r.setAttribute(b.srcAttr,e.u),r.setAttribute("src",e.u)})):u.removeEventListener("lazybeforesizes",a))},E?a=function(){}:addEventListener("lazybeforesizes",a),a);function L(t,e){return t.w-e.w}function O(t,e){var r;return!t._lazyrias&&g.pWS&&(r=g.pWS(t.getAttribute(b.srcsetAttr||""))).length&&(Object.defineProperty(t,"_lazyrias",{value:r,writable:!0}),e&&t.parentNode&&(r.isPicture="PICTURE"==t.parentNode.nodeName.toUpperCase())),t._lazyrias}function s(t,e){var r,i,a,s,n,o,c,u,d=t._lazyrias;if(d.isPicture&&f.matchMedia)for(i=0,a=(r=t.parentNode.getElementsByTagName("source")).length;i<a;i++)if(O(r[i])&&!r[i].getAttribute("type")&&(!(s=r[i].getAttribute("media"))||(matchMedia(s)||{}).matches)){d=r[i]._lazyrias;break}return(!d.w||d.w<e)&&(d.w=e,d.d=(o=t,c=f.devicePixelRatio||1,u=g.getX&&g.getX(o),Math.min(u||c,2.4,c)),n=function(t){for(var e,r,i=t.length,a=t[i-1],s=0;s<i;s++)if((a=t[s]).d=a.w/t.w,a.d>=t.d){!a.cached&&(e=t[s-1])&&e.d>t.d-.13*Math.pow(t.d,2.2)&&(r=Math.pow(e.d-.6,1.6),e.cached&&(e.d+=.15*r),e.d+(a.d-t.d)*r>t.d&&(a=e));break}return a}(d.sort(L))),n}}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(e,i,t){var n,a,s,o,r=navigator.userAgent;function d(){for(var e=i.querySelectorAll("picture > img, img[srcset][sizes]"),t=0;t<e.length;t++)!function(e){var t,i,n=e.parentNode;"PICTURE"===n.nodeName.toUpperCase()?(t=s.cloneNode(),n.insertBefore(t,n.firstElementChild),setTimeout(function(){n.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,i=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=i}))}(e[t])}function c(){clearTimeout(a),a=setTimeout(d,99)}function f(){c(),o&&o.addListener&&o.addListener(c)}e.HTMLPictureElement&&/ecko/.test(r)&&(n=r.match(/rv\:(\d+)/))&&n[1]<41&&addEventListener("resize",(s=i.createElement("source"),o=e.matchMedia&&matchMedia("(orientation: landscape)"),s.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(i.readyState||"")?f():i.addEventListener("DOMContentLoaded",f),c))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var i;e&&(i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(r,a,d){"use strict";var o;a.addEventListener("lazybeforeunveil",function(e){var t,i,n;e.detail.instance!=d||(t=e.target.getAttribute("data-twitter"))&&(d.aC(e.target,t),r.twttr&&twttr.widgets?twttr.widgets.load():o||(i=a.createElement("script"),n=a.getElementsByTagName("script")[0],i.src="//platform.twitter.com/widgets.js",o=!0,n.parentNode.insertBefore(i,n)))})}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var a=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",a,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0)}(window,function(s,d,i){"use strict";var r,u,o,c,f,A;d.addEventListener&&(o=i.cfg,c=[],f=s.requestAnimationFrame||setTimeout,A={checkElements:function(){for(var e,t=1.1*(i._defEx+99),a=-1*t,n=a,l=innerHeight+t,s=innerWidth+t,d=0,o=u.length;d<o;d++)((e=u[d].getBoundingClientRect()).top>l||e.bottom<a||e.left>s||e.right<n||r.unloadHidden&&!e.top&&!e.bottom&&!e.left&&!e.right)&&c.push(u[d]);f(A.unloadElements)},unload:function(e){var t,a,n,l,s=e.parentNode;if(i.rC(e,r.loadedClass),e.getAttribute(r.srcsetAttr)&&(e.setAttribute("srcset",r.emptySrc),a=!0),s&&"PICTURE"==s.nodeName.toUpperCase()){for(n=0,l=(t=s.getElementsByTagName("source")).length;n<l;n++)t[n].setAttribute("srcset",r.emptySrc);a=!0}i.hC(e,r.autosizesClass)&&(i.rC(e,r.autosizesClass),e.setAttribute(r.sizesAttr,"auto")),(a||e.getAttribute(r.srcAttr))&&(e.src=r.emptySrc),i.aC(e,r.unloadedClass),i.aC(e,r.lazyClass),i.fire(e,"lazyafterunload")},unloadElements:function(e){for(e=Array.isArray(e)?e:c;e.length;)A.unload(e.shift())},_reload:function(e){i.hC(e.target,r.unloadedClass)&&e.detail&&(e.detail.reloaded=!0,i.rC(e.target,r.unloadedClass))}},addEventListener("lazybeforeunveil",function e(){var t,a,n;function l(){A.checkElements(),n=!1}s.lazySizes&&!u&&(t=d.documentElement,a=function(){n||(n=!0,setTimeout(l,999))},r=i.cfg,removeEventListener("lazybeforeunveil",e),"unloadClass"in r||(r.unloadClass="lazyunload"),"unloadedClass"in r||(r.unloadedClass="lazyunloaded"),"unloadHidden"in r||(r.unloadHidden=!0),"emptySrc"in r||(r.emptySrc="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),"autoUnload"in r||(r.autoUnload=!0),"unloadPixelThreshold"in r||(r.unloadPixelThreshold=6e4),r.autoUnload&&t.addEventListener("load",function(e){e.target.naturalWidth*e.target.naturalHeight>r.unloadPixelThreshold&&e.target.className&&e.target.className.indexOf&&-1!=e.target.className.indexOf(o.loadingClass)&&-1==e.target.className.indexOf(o.preloadClass)&&i.aC(e.target,o.unloadClass)},!0),i.unloader=A,u=d.getElementsByClassName([r.unloadClass,r.loadedClass].join(" ")),setInterval(a,9999),addEventListener("lazybeforeunveil",a),addEventListener("lazybeforeunveil",A._reload,!0))}))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var a=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",a,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0)}(window,function(e,i,o){"use strict";var l,d,u={};function s(e,t,a){var n,r;u[e]||(n=i.createElement(t?"link":"script"),r=i.getElementsByTagName("script")[0],t?(n.rel="stylesheet",n.href=e):(n.onload=function(){n.onerror=null,n.onload=null,a()},n.onerror=n.onload,n.src=e),u[e]=!0,u[n.src||n.href]=!0,r.parentNode.insertBefore(n,r))}i.addEventListener&&(l=function(e,t){var a=i.createElement("img");a.onload=function(){a.onload=null,a.onerror=null,a=null,t()},a.onerror=a.onload,a.src=e,a&&a.complete&&a.onload&&a.onload()},addEventListener("lazybeforeunveil",function(e){var t,a,n;if(e.detail.instance==o&&!e.defaultPrevented){var r=e.target;if("none"==r.preload&&(r.preload=r.getAttribute("data-preload")||"auto"),null!=r.getAttribute("data-autoplay"))if(r.getAttribute("data-expand")&&!r.autoplay)try{r.play()}catch(e){}else requestAnimationFrame(function(){r.setAttribute("data-expand","-10"),o.aC(r,o.cfg.lazyClass)});(t=r.getAttribute("data-link"))&&s(t,!0),(t=r.getAttribute("data-script"))&&(e.detail.firesLoad=!0,s(t,null,function(){e.detail.firesLoad=!1,o.fire(r,"_lazyloaded",{},!0,!0)})),(t=r.getAttribute("data-require"))&&(o.cfg.requireJs?o.cfg.requireJs([t]):s(t)),(a=r.getAttribute("data-bg"))&&(e.detail.firesLoad=!0,l(a,function(){r.style.backgroundImage="url("+(d.test(a)?JSON.stringify(a):a)+")",e.detail.firesLoad=!1,o.fire(r,"_lazyloaded",{},!0,!0)})),(n=r.getAttribute("data-poster"))&&(e.detail.firesLoad=!0,l(n,function(){r.poster=n,e.detail.firesLoad=!1,o.fire(r,"_lazyloaded",{},!0,!0)}))}},!(d=/\(|\)|\s|'/)))}); |
@@ -1,3 +0,3 @@ | ||
/*! lazysizes - v5.3.0 */ | ||
/*! lazysizes - v5.3.1 */ | ||
!function(e,t){var a;e&&(a=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",a,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?a():e.addEventListener("lazyunveilread",a,!0))}("undefined"!=typeof window?window:0,function(l,o,u){"use strict";var e,d,c,s,r,n,m,f,v,p;function b(e,t){var a,i,r,n;a=v.replace(c,e),i=function(e){e&&e.thumbnail_url&&(t.style.backgroundImage="url("+e.thumbnail_url+")")},r="vimeoCallback"+d,n=o.createElement("script"),a+="&callback="+r,d++,l[r]=function(e){n.parentNode.removeChild(n),delete l[r],i(e)},n.src=a,o.head.appendChild(n),t.addEventListener("click",y)}function y(e){var t=e.currentTarget,a=t.getAttribute("data-vimeo"),i=t.getAttribute("data-vimeoparams")||"";t.removeEventListener("click",y),a&&n.test(a)&&(!i||n.test(i))&&(i&&!r.test(i)&&(i="&"+i),e.preventDefault(),t.innerHTML='<iframe src="'+p.replace(c,a)+i+'" frameborder="0" allowfullscreen="" width="640" height="390"></iframe>')}function g(e){var t=e.currentTarget,a=t.getAttribute("data-youtube"),i=t.getAttribute("data-ytparams")||"";t.removeEventListener("click",g),a&&n.test(a)&&(!i||n.test(i))&&(i&&!r.test(i)&&(i="&"+i),e.preventDefault(),t.innerHTML='<iframe src="'+f.replace(c,a)+i+'" frameborder="0" allowfullscreen="" width="640" height="390"></iframe>')}o.getElementsByClassName&&(e="https:"==location.protocol?"https:":"http:",d=Date.now(),c=/\{\{id}}/,s=/\{\{hqdefault}}/,r=/^&/,n=/^[a-z0-9-_&=]+$/i,m=e+"//img.youtube.com/vi/{{id}}/{{hqdefault}}.jpg",f=e+"//www.youtube.com/embed/{{id}}?autoplay=1",v=e+"//vimeo.com/api/oembed.json?url=https%3A//vimeo.com/{{id}}",p=e+"//player.vimeo.com/video/{{id}}?autoplay=1",o.addEventListener("lazybeforeunveil",function(e){var t,a,i,r,n,l;e.detail.instance==u&&(a=(t=e.target).getAttribute("data-youtube"),i=t.getAttribute("data-vimeo"),a&&t&&(r=a,l=(n=t).getAttribute("data-thumb-size")||u.cfg.ytThumb||"hqdefault",n.style.backgroundImage="url("+m.replace(c,r).replace(s,l)+")",n.addEventListener("click",g)),i&&t&&b(i,t))}))}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
335877
80
4858
1
1
+ Addedtypescript@^4.1.5
+ Addedtypescript@4.9.5(transitive)