/*! jQuery & Zepto Lazy v1.7.6 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2017 Daniel 'Eisbehr' Kern */ !function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;ee.top&&-ne.left&&-n=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;at||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l":"");if(n===i){m.one("error",e)}a.each(k,function(p,o){m.attr(o.name,o.value)});l.replaceWith(m)};b.one("loadedmetadata",function(){f(true)}).off("load error").attr("poster",b.attr("data-poster"));if(g.length){g.each(d)}else{if(b.attr(i)){a.each(b.attr(i).split(","),function(k,m){var l=m.split("|");b.append(a("").one("error",e).attr({src:l[0].trim(),type:l[1].trim()}))});if(this.config("removeAttribute")){b.removeAttr(i)}}else{f(false)}}if(j.length){j.each(d)}}else{f(false)}})})(window.jQuery||window.Zepto);(function(a){a.lazy(["frame","iframe"],"iframe",function(b,f){var e=this;if(b[0].tagName.toLowerCase()==="iframe"){var g="data-src",d="data-error-detect",c=b.attr(d);if(c!=="true"&&c!=="1"){b.attr("src",b.attr(g));if(e.config("removeAttribute")){b.removeAttr(g+" "+d)}}else{a.ajax({url:b.attr(g),dataType:"html",crossDomain:true,xhrFields:{withCredentials:true},success:function(h){b.html(h).attr("src",b.attr(g));if(e.config("removeAttribute")){b.removeAttr(g+" "+d)}},error:function(){f(false)}})}}else{f(false)}})})(window.jQuery||window.Zepto);(function(a){a.lazy("noop",function(){});a.lazy("noop-success",function(b,c){c(true)});a.lazy("noop-error",function(b,c){c(false)})})(window.jQuery||window.Zepto);(function(a){var g="data-src",h="data-srcset",d="data-media",f="data-sizes",i="data-type";a.lazy(["pic","picture"],["picture"],function(j,n){var k=j[0].tagName.toLowerCase();if(k==="picture"){var o=j.find(g),l=j.find("data-img"),m=this.config("imageBase");if(o.length){o.each(function(){e(a(this),"source",m)});if(l.length===1){l=e(l,"img",m);l.on("load",function(){n(true)}).on("error",function(){n(false)});l.attr("src",l.attr(g));if(this.config("removeAttribute")){l.removeAttr(g)}}else{if(j.attr(g)){b(j,m+j.attr(g),n);if(this.config("removeAttribute")){j.removeAttr(g)}}else{n(false)}}}else{if(j.attr(h)){a("").attr({media:j.attr(d),sizes:j.attr(f),type:j.attr(i),srcset:c(j.attr(h),m)}).appendTo(j);b(j,m+j.attr(g),n);if(this.config("removeAttribute")){j.removeAttr(g+" "+h+" "+d+" "+f+" "+i)}}else{n(false)}}}else{n(false)}});function e(k,n,l){var j=k.prop("attributes"),m=a("<"+n+">");a.each(j,function(p,o){if(o.name==="srcset"||o.name===g){o.value=c(o.value,l)}m.attr(o.name,o.value)});k.replaceWith(m);return m}function b(k,m,l){var j=a("").one("load",function(){l(true)}).one("error",function(){l(false)}).appendTo(k).attr("src",m);j.complete&&j.load()}function c(o,m){if(m){var j=o.split(",");o="";for(var k=0,n=j.length;k