\n
\n

\n
\n \n '+t.name+'
\n ¥'+formatMoney(t.flash_price,"cent").short+'\n ¥'+formatMoney(t.origin_price,"cent").short+"
\n ");if(t.to_fetch){var e=r({url:"http://m.xiaomiyoupin.com/shop/detail?gid="+t.gid+"&pid="+t.pid,$dom:this.$dom,traceAppend:[t.pid],uid:!1});o.attr("href",e)}else o.append('\n 已抢完\n
');return ua.pc?o.css("zoom","1.3"):ua.iOS&&o.css("zoom","1.1"),o}},{key:"renderPage",value:function(t,o){for(var e=$(''),i=0;i'),n=i;no.name?1:-1:t.ctime-o.ctime});var s={};n.forEach(function(t){t.total<=0&&(t.total=1),t.to_fetch<0&&(t.to_fetch=0),t.to_fetch>t.total&&(t.to_fetch=t.total),1e3*t.start_time>i&&(t.to_fetch=t.total),s[t.start_time]||(s[t.start_time]=[]),s[t.start_time].push(t)});var l=Object.keys(s).sort(function(t,o){return 1*t-1*o}).map(function(t){return 1*t}),h=void 0,p=void 0;l.some(function(t,o){if(o===l.length-1)h||(h=l[o]);else{var e=l[o+1];if(0===o&&t>a)return p=t,!0;t<=a&&e>a&&(h=t,p=e)}});var g=function(t){var e=[];return t.length<=o.props.cnt?t:(t.forEach(function(t){t.to_fetch>0&&e.length=o)&&(a.push(t),!0)}),a.join(",")}var n={unit:"元",name:"",src:"",descr:"",price:"",marketPrice:"",showMarketPrice:"",showTag:t.showTag};if(o.attr_ext){var r=o.attr_ext;(1===r.price_tag||t.daiqi)&&(n.unit="元起"),r.custom_name&&!t.name&&(n.name=r.custom_name),r.custom_summary&&!t.descr&&(n.descr=r.custom_summary)}return n.name||(n.name=t.name||o.name),t.src?n.src=t.src:"限时购"===t.mode||t.showWhiteProductImage?n.src=o.pic_url:n.src=o.album[0],n.descr||(t.descr?n.descr=t.descr:e?n.descr=a(o.summary,18):n.descr=o.summary),o.market_price||(o.market_price=o.price_min),t.price&&(o.price_min=Math.round(100*t.price)),t.priceOriginal&&(o.market_price=Math.round(100*t.priceOriginal)),n.price=i(o.price_min,"cent").short,n.marketPrice=i(o.market_price,"cent").short,n.showMarketPrice=1*o.price_min<1*o.market_price,n.downPriceValue=o.market_price-o.price_min,n.downPrice=i(n.downPriceValue,"cent").short,n.downPriceText="直降"+n.downPrice+"元",n.discountText=""+Math.ceil(o.price_min/o.market_price*100)/10,n.discountText=""+n.discountText.replace(/\.\d+/,function(t){return t.slice(0,2)}).replace(/\.0/,""),n}function i(t,o){t(".unit").text(o.unit),t(".product-name").html(o.name),t(".product-descr").html(o.descr),t(".price-wrap .num").text(o.price),o.showMarketPrice&&(t(".price-wrap-market").show(),t(".price-wrap-market .num").text(o.marketPrice),o.showTag&&t(".link-wrap>.tag").show().text(o.downPriceText));var e=t('[data-editor-tag-name="horizontal_border_label"]'),i=t('[data-editor-tag-name="circle-background-double-line"]'),a=e.find(".tag-content"),n=i.find(".tag-content");if(e.length&&o.showMarketPrice&&(a.text()||(a.text(o.downPriceText),e.children().show())),i.length&&o.showMarketPrice&&!n.text().trim())if(i.find('[data-auto-mode="××折"]').length)n.html(''+o.discountText+'折
'),i.children().show();else{var r="";o.downPriceValue>1e5&&(r="#ffea00"),n.html('直降
'+o.downPrice+"
"),i.children().show()}}function a(t){function o(t,o){return t.length-1&&(a[o]=t.name)})});var n=void 0;return n=void 0!==t.onsale?t.onsale?1:0:parseInt(t.inventory),{map_id:t.map_id,pid:t.pid,type:a,price:t.price,inventory:n,image_url:t.img,origin_price:parseInt(t.market_price),name:t.name}}),n={price:g(o.detail.data.good.price_min,"cent").short,productName:o.detail.data.good.name,image_url:o.detail.data.good.pic_url};return{info:n,type:i,list:a}}function a(t,o){var i=void 0,a=void 0;parseInt(t)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:t,consumption:"1"}},a=l({url:w,$dom:e})):(i={model:"Cart",action:"add",parameters:{pid:t,num:"1"}},a=l({url:_,$dom:e})),c({detail:i},function(t){t.detail.code?toast(h(t.detail)||"加入购物车失败"):(v.emit("add-cart-success"),u.app?toast("加入购物车成功"):toast("已加入购物车,请前往有品App结算"),o&&o())},!1,a)}function n(){function o(t){r(".bottom").hide(),r('.bottom[data-mode="'+t+'"]').show()}function i(){function t(t,o){for(var e in o)if(t.type[e]!=o[e])return!1;return!0}var e={};r(".tag.active").each(function(){var t=$(this),o=t.parent().data("type-name"),i=t.text().trim();e[o]=i});for(var i in e)r(".tag:not(.active)").addClass("disabled");var a=void 0;b.list.forEach(function(o){if(t(o,e)){a=o;for(var i in o.type)e[i]||r('[data-type-name="'+i+"\"] .tag[data-tag='"+o.type[i]+"']").removeClass("disabled")}});var n=function(o){var i=Object.assign({},e);delete i[o],b.list.forEach(function(e){t(e,i)&&r('[data-type-name="'+o+'"] [data-tag="'+e.type[o]+'"]').removeClass("disabled")})};for(var i in e)n(i);Object.keys(e).length===Object.keys(b.type).length&&a?(r(".title").text(a.name),r(".price").text("¥"+g(a.price,"cent").short),r(".product-img").attr("src",a.image_url),h=a,o(a.inventory?"ready":"gone")):(r(".title").text(b.info.productName),r(".price").text("¥"+b.info.price),r(".product-img").attr("src",b.info.image_url),h=void 0,o("wait"))}var n=$(d(b.info.productName,b.info.price,b.info.image_url)),r=n.find.bind(n),c=function(t){var o=b.type[t],e=$(s(t));r(".layer>main").append(e),o.forEach(function(t){e.find("main").append($(p(t)))})};for(var l in b.type)c(l);var h=void 0;r(".add-cart").on("tap",function(){a(h.pid||h.mapId)});var v=void 0;r(".go-checkout").on("tap",function(){var o=e;if(!h)return void toast("请先选中商品");if(h.pid){if(h.map_id&&"0"!==h.map_id)return v(),void m("https://m.xiaomiyoupin.com/shop/detail?gid="+t.gid+"&pid="+h.pid,{$dom:o});u.app?(v(),m("https://m.xiaomiyoupin.com/shop/check?quickOrder=2&pid="+h.pid,{$dom:o})):(v(),m("https://m.xiaomiyoupin.com/shop/checkshop/check?quickOrder=2&pid="+h.pid,{$dom:o}))}else a(h.mapId,function(){v(),m("https://m.xiaomiyoupin.com/shop/cart",{$dom:o})})}),i();var w=u.pc?"mousedown":"touchstart";n.on(w,".tag",function(){var t=$(this),o=t.parent();t.hasClass("disabled")||(t.hasClass("active")?(t.inactive(),o.inactive()):(t.active(),o.active(),t.siblings().inactive()),i())});var _=f(n,function(){},!1,!0,!0);v=_.exit,n.parent().css({left:0,right:0,"max-width":"none"})}var d=function(t,o,e){return'\n
\n
\n \n

\n
\n \n \n
\n \n
\n
\n
\n
\n
\n'},s=function(t){return'\n'},p=function(t){return' \n '+t+" \n\n"},b={};if(t.gid){if(window.isEditor)return;r(t.gid,function(t){Object.assign(b,i(t))})}else b=t.config;o(function(){var t=0;return b.list?(b.list.forEach(function(o){o.inventory&&o.inventory>0&&t++}),void(t?b.list.length>1?n():a(b.list[0].pid):toast("商品已售罄"))):void getLogin().then(function(t){t?toast("数据加载中..."):jumptoLogin()})})}function r(t,o){k&&clearTimeout(k),j.push({gid:t,cb:o}),k=setTimeout(function(){var t=j.slice(0);j.length=0,k=0;var o={};t.forEach(function(t){var e=t.gid;o[e]={model:"Shopv2",action:"getDetail",parameters:{gid:e}}}),c(o,function(o){var e=function(e){t.forEach(function(t){var i=t.gid,a=t.cb;e==i&&a({detail:o[e]})})};for(var i in o)e(i)},function(t){toast("获取商品信息失败"),console.warn(t)},b(w,"editor-cache",""+Math.floor(Date.now()/36e5)),!0)})}var d=t("util"),c=d.miFetch,s=d.PIPE_URL,l=d.getTracedUrl2,h=d.getChineseMessage,p=d.GPIPE_URL,g=d.formatMoney,u=d.ua,m=d.jumpTo,f=d.showBottomWindow,b=d.addParam,v=d.eventEmitter,w=s.replace("static.",""),_=p.replace("static.",""),y="map_id_add_cart-floating-layer",k=void 0,j=[];o.exports={getFinalInfo:e,renderFinalInfo:i,getRemainTime:a,initBottomWindow:n,getDetail:r,floatingLayerId:y}}(a,t),t.exports&&(c["/cloud/module/product_big/util.js"]=t.exports)}(),function(){var t={type:"resource"};!function(t,i){var a=t("util"),n=a.miFetch,c=a.PIPE_URL,s=a.getTracedUrl2,l=a.getChineseMessage,h=a.GPIPE_URL,p=a.formatMoney,g=a.ua,u=a.jumpTo,m=a.showBottomWindow,f=a.addParam,b=a.getLogin,v=a.jumptoLogin,w=a.countEvent,_=a.EventEmitter,y=a.eventEmitter,k=function(t){function i(t){var o=this,a=t.id,n=void 0===a?"map_id_add_cart-floating-layer":a,d=t.gid,c=t.$sourceDom,s=t.cartExtraParams,l=void 0===s?{}:s;e(this,i),r(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),Object.assign(this,{id:n,gid:d,config:{},$sourceDom:c,cartExtraParams:l}),this.getDetail(d,function(t){Object.assign(o.config,o.handleResult(t)),o.emit("ready")})}return o(i,t),d(i,[{key:"getDetail",value:function(t,o){i.getDetailTimeout&&clearTimeout(i.getDetailTimeout),i.requestQueue.push({gid:t,cb:o}),i.getDetailTimeout=setTimeout(function(){var t=i.requestQueue.slice(0);i.requestQueue.length=0,i.getDetailTimeout=0;var o={};t.forEach(function(t){var e=t.gid;o[e]={model:"Shopv2",action:"getDetail",parameters:{gid:e}}}),n(o,function(o){var e=function(e){t.forEach(function(t){var i=t.gid,a=t.cb;e===""+i&&a({detail:o[e]})})};for(var i in o)e(i)},function(t){toast("获取商品信息失败"),console.warn(t)},f("/app/shop/pipe","editor-cache",""+Math.floor(Date.now()/36e5)),!0)},100)}},{key:"addCart",value:function(t,o){var e=this,i=void 0,a=void 0;return parseInt(t)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:t,consumption:"1"}},a=s({url:c,$dom:this.$sourceDom})):(i={model:"Cart",action:"add",parameters:{pid:t,num:"1"}},a=s({url:h,$dom:this.$sourceDom})),Object.assign(i.parameters,this.cartExtraParams),n({detail:i},function(t){t.detail.code?toast(l(t.detail)||"加入购物车失败"):(y.emit("add-cart-success"),e.emit("cart-success"),g.app?toast("加入购物车成功"):toast("已加入购物车,请前往有品App结算"),o&&o())},!1,a)}},{key:"renderSection",value:function(t){return'\n'}},{key:"renderTag",value:function(t){return' \n '+t.name+" \n\n"}},{key:"renderFooter",value:function(){return'\n \n '}},{key:"renderPanel",value:function(t,o,e){return'\n
\n
\n \n

\n
\n \n \n
\n \n '+this.renderFooter()+"\n
\n
\n "}},{key:"trigger",value:function(){if(window.isEditor)return void toast("不支持编辑器内使用");var t=0;return w("trigger-bottom",this.$sourceDom),this.config.list?(this.config.list.forEach(function(o){o.inventory&&o.inventory>0&&t++}),void(t?this.config.list.length>1?(this.emit("show"),this.show()):this.addCart(this.config.list[0].pid):toast("商品已售罄"))):void b().then(function(t){t?toast("数据加载中..."):v()})}},{key:"setMode",value:function(t){var o=this.$$;o(".bottom").hide(),o('.bottom[data-mode="'+t+'"]').show()}},{key:"onPressAddCart",value:function(t){this.addCart(t)}},{key:"onPressCheckout",value:function(){var t=this,o=this.$sourceDom;if(!this.selectingProduct)return void toast("请先选中商品");if(this.selectingProduct.pid){if(this.selectingProduct.map_id&&"0"!==this.selectingProduct.map_id)return this.exit(),void u("https://m.xiaomiyoupin.com/shop/detail?gid="+this.gid+"&pid="+this.selectingProduct.pid,{$dom:o});g.app?(this.exit(),u("https://m.xiaomiyoupin.com/shop/check?quickOrder=2&pid="+this.selectingProduct.pid,{$dom:o})):(this.exit(),u("https://m.xiaomiyoupin.com/shop/checkshop/check?quickOrder=2&pid="+this.selectingProduct.pid,{$dom:o}))}else this.addCart(this.selectingProduct.mapId,function(){t.exit(),u("https://m.xiaomiyoupin.com/shop/cart",{$dom:o})})}},{key:"onTriggerTag",value:function(){function t(t,o){for(var e in o)if(""+t.type[e].tid!=""+o[e])return!1;return!0}var o=this,e=this.$$,i={};e(".tag.active").each(function(){var t=$(this),o=t.parent().data("type-name"),e=t.data("tag");i[o]=e}),e(".tag:not(.active)").addClass("disabled");var a=void 0;this.config.list.forEach(function(o){if(t(o,i)){a=o;for(var n in o.type)i[n]||e('[data-type-name="'+n+"\"] .tag[data-tag='"+o.type[n].tid+"']").removeClass("disabled")}});var n=function(a){var n=Object.assign({},i);delete n[a],o.config.list.forEach(function(o){t(o,n)&&e('[data-type-name="'+a+'"] [data-tag="'+o.type[a].tid+'"]').removeClass("disabled")})};for(var r in i)n(r);Object.keys(i).length===Object.keys(this.config.type).length&&a?(e(".title").text(a.name),e(".price").text("¥"+p(a.price,"cent").short),e(".product-img").attr("src",a.image_url),this.selectingProduct=a,a.inventory?this.setMode("ready"):this.setMode("gone")):(e(".title").text(this.config.info.productName),e(".price").text("¥"+this.config.info.price),e(".product-img").attr("src",this.config.info.image_url),this.selectingProduct=void 0,this.setMode("wait")),this.emit("trigger-tag")}},{key:"show",value:function(){var t=this,o=$(this.renderPanel(this.config.info.productName,this.config.info.price,this.config.info.image_url)),e=o.find.bind(o);this.$$=e;var i=function(o){var i=t.config.type[o],a=$(t.renderSection(o));e(".layer>main").append(a),i.forEach(function(o){a.find("main").append($(t.renderTag(o)))})};for(var a in this.config.type)i(a);e(".add-cart").on("tap",function(){t.onPressAddCart(t.selectingProduct.pid||t.selectingProduct.mapId)}),e(".go-checkout").on("tap",function(){t.onPressCheckout()}),this.onTriggerTag();var n=this;o.on("tap",".tag",function(){var t=$(this),o=t.parent();t.hasClass("disabled")||(t.hasClass("active")?(t.inactive(),o.inactive()):(t.active(),o.active(),t.siblings().inactive()),n.onTriggerTag())});var r=m(o,function(){t.emit("exit")},!1,!0,!0),d=r.exit;this.exit=d,o.parent().css({left:0,right:0,"max-width":"none"})}},{key:"handleResult",value:function(t){if(t.detail.code)return void toast(t.detail.description);var o=t.detail.data.tag_prop,e={};if(!t.detail.data.group){var i="none"===this.$sourceDom[0].style.display||this.$sourceDom.hasClass("hide");return void console.warn("商品信息错误",t,this.gid,i?"(已隐藏)":"")}t.detail.data.group.forEach(function(t){e[t.name]=[],t.tags.forEach(function(o){e[t.name].push(o)})});var a=t.detail.data.props.map(function(e){var i=[],a={};o.forEach(function(t){t.pid===e.pid&&i.push(t.tid)}),t.detail.data.group.forEach(function(t){var o=t.name;t.tags.forEach(function(t){var e=i.indexOf(t.tid);e>-1&&(a[o]=t)})});var n=void 0;return n=void 0!==e.onsale?e.onsale?1:0:parseInt(e.inventory),{map_id:e.map_id,pid:e.pid,type:a,price:e.price,inventory:n,image_url:e.img,origin_price:parseInt(e.market_price),name:e.name}}),n={price:p(t.detail.data.good.price_min,"cent").short,productName:t.detail.data.good.name,image_url:t.detail.data.good.pic_url};return{info:n,type:e,list:a}}}]),i}(_);k.requestQueue=[],k.getDetailTimeout=0,i.exports=k}(a,t),t.exports&&(c["/cloud/module/product_big/bottom_window.js"]=t.exports)}(),l="/cloud/module/product_big/product_big.action.js",function(){var t={type:"resource"};!function(t,o){var i=t("util"),a=i.formatMoney,n=i.ua,r=i.setTrace,c=i.addParam,s=i.miFetch,l=t("/cloud/module/product_big/util.js"),h=l.getFinalInfo,p=l.renderFinalInfo,g=l.getRemainTime,u=(l.initBottomWindow,l.floatingLayerId),m=t("/cloud/module/product_big/bottom_window.js"),f=void 0,b=[];o.exports=function(){function t(o,i){e(this,t),this.init(o,i)}return d(t,[{key:"init",value:function(o,e){var i=this,d=$("[data-id="+e+"]"),c=d.find.bind(d);this.$$=c,this.$dom=d;var s=o.gid;if(s){n.pc&&1===window.devicePixelRatio&&d.find(".top-a-wrap").css("border","1px solid rgb(204,204,204)");var l=c("a.product-big-img-link"),g=c("a.buy-btn-wrap");o.startTime&&o.startTime>Date.now()/1e3&&this.initTimer(),o.href?(l.attr("href",o.href),g.attr("href",o.href)):(l.attr("href","//m.xiaomiyoupin.com/shop/detail?gid="+s),g.attr("href","//m.xiaomiyoupin.com/shop/detail?gid="+s)),r(l),r(g),c(".bottom-btn").on("tap",function(){window.countEvent&&window.countEvent("button",this)}),"加入购物车"===o.btn&&!function(){var t=new m({id:u,gid:s,$sourceDom:d});c(".bottom-btn.cart-btn").on("click",function(){t.trigger()})}();var f=d.parent().is('[data-name="horizontal_layout"],[data-name="test_container"],[data-name="horizontal_scroll_container"],.horizontal_scroll_container_body');this.isSmall=f;var b=d.find(".normal-mode"),v=$(".top-wrap");return n.android&&v.addClass("android"),n.iOS&&v.addClass("iOS"),n.pc&&v.addClass("pc"),f?b.addClass("thin"):b.addClass("big"),o.static?(p(c,o.finalInfo),void setTimeout(this.afterRender.bind(this))):void t.getDetail(s,function(t){var e=t.detail.data;if(!e)return void console.warn("gid error",s);var n=h(o,e.goods,f,a);p(c,n),i.afterRender()})}}},{key:"initTimer",value:function(){function t(t){e.text(g(t))}var o=this.$$,e=o(".bottom-btn"),i="倒计时",a=o(".bottom-btn-wrap"),n=e.html();a.css({"pointer-events":"none",cursor:"not-allowed"});var r=config.startTime-Date.now()/1e3,d=r/3600/24;d>1?(e.text(""+i+Math.floor(d)+"天"),e.addClass("left-days")):!function(){e.addClass("left-time");var o=Math.ceil(config.startTime-Date.now()/1e3);t(o);var i=setInterval(function(){o--,o?t(o):(clearInterval(i),e.html(n).removeClass("left-days").removeClass("left-time"),a.css({"pointer-events":"all",cursor:"pointer"}))},1e3)}()}},{key:"afterRender",value:function(){function t(){var t=e.parent()[0].containerAdjustHeight;t&&t()}function o(){r&&r.css("position","static").removeClass("loading"),n.removeClass("loading").css({"min-height":"0px"}),a?n.css("padding-top","100%"):n.css("padding-top","0px")}var e=this.$dom,i=this.$$,a=this.isSmall,n=i(".product-big-img-link"),r=i(".product");t(),r.length?r[0].naturalWidth?o():r.on("load",o):o()}}],[{key:"getDetail",value:function(t,o){f&&clearTimeout(f),b.push({gid:t,cb:o}),f=setTimeout(function(){var t=b.slice(0);b.length=0,f=0;var o={};t.forEach(function(t){var e=t.gid;o[e]={model:"Product",action:"GetDetail",parameters:{gid:e}}}),s(o,function(o){var e=function(e){t.forEach(function(t){var i=t.gid,a=t.cb;e===""+i&&a({detail:o[e]})})};for(var i in o)e(i)},function(t){toast("获取商品信息失败"),console.warn(t)},c("//m.xiaomiyoupin.com/app/shopv3/pipe","editor-cache",""+Math.floor(Date.now()/36e5)),!0)},100)}}]),t}()}(a,t),t.exports&&(c["/cloud/module/product_big/product_big.action.js"]=t.exports)}(),l="/cloud/module/scroll_footer/scroll_footer.action.js",function(){var t={type:"resource"
};!function(t,o){var i=t("util"),a=i.eventEmitter,r=i.ua;o.exports=function(){function t(o,i){var n=this;e(this,t);var d=$("[data-id="+i+"]"),c=d.find.bind(d);this.$$=c,this.$dom=d,this.props=o,this.setWidth($("#rags-container").width()),a.on("base-width-change",function(t){n.setWidth(t)});var s=$('');"footer"===o.mode?s.css("bottom","0"):s.css("top","0"),$(document.body).append(s),s.append(d);var l=this;d[0].addEventListener("tap",function(t){var o=$(t.target);"A"===o.prop("tagName")&&(l.onTap(o),t.preventDefault())}),this.render(),this.setScrolling(!1),r.pc||d.find(".wrap").addClass("hide-scrollbar"),this.updateOffsetHeight(),d[0].addEventListener("touchmove",function(t){t.preventDefault()},!1)}return d(t,[{key:"updateOffsetHeight",value:function(){this.offsetHeight=this.$dom.height()}},{key:"setScrolling",value:function(t){this.scrolling=t,t?this.$dom.find(".wrap").addClass("prevent"):this.$dom.find(".wrap").removeClass("prevent")}},{key:"active",value:function(t,o){var e=this,i=o.preventCheckingScroll;i&&(this.preventCheckingScroll=!0);var a=(this.$dom.find(".wrap"),$("#rags-container").width()),n=t.offset(),r=n.left+0+n.width/2-a/2;r<=0&&(r=0);this.iscroll&&this.iscroll.scrollToElement(t[0],700,0-a/2+n.width/2),t.css({color:this.props.colorHighlightText,backgroundColor:this.props.colorHighlightBg});var d=this.$dom.find("a");this.$dom.find(".splitter").remove(),d.forEach(function(o,i){var a=d[i+1]===t[0],n=o===t[0];i===d.length-1||a||n||$(o).append('')})}},{key:"inactive",value:function(t){t.css({color:this.props.colorText,backgroundColor:this.props.colorBg})}},{key:"show",value:function(){var t=this;this.iscroll||setTimeout(function(){t.iscroll=new window.IScroll(t.$dom[0],{mouseWheel:!0,tap:!0,scrollX:!0,scrollY:!1})},200),this.$dom.show()}},{key:"render",value:function(){var t=this,o=[];this.props.arr.forEach(function(t){var e=t.id,i=$("#"+e);o.push({$dom:i})});var e=$(window),i=!0;e.on("scroll",function(){i=!0});var r=function(){var i=[],r=e.scrollTop();r+=t.offsetHeight-5,o.forEach(function(t,o){var e=t.$dom,a=e.offset();if(a){var n=a.top;i[o]=n}}),i=i.map(function(t,o){var e=1/0;return i.forEach(function(i,a){o!==a&&i>t&&i=i&&ro-1.5*e)||(t(i),!1)})}var i=[];$("img[data-lazy-src]").each(function(){i.push($(this))}),setTimeout(function(){a.scroll(e),e()},500);var a=$(window),n=setInterval(function(){i.length?e():clearInterval(n)},400)}()})