!function(){var t={},e={},n={},r={};t=function(t){function e(){}function n(t,n){var r;return Object.create?r=Object.create(t):(e.prototype=t,r=new e),r.constructor=n,r}function r(t,e){if(t){if(t.nodeType)return[t];var e=e&&e.nodeType?e:document;return t&&"string"==typeof t?e.querySelectorAll(t):void 0}}for(var i=/\\?\{([^{}]+)\}/g,o="",s=/^[\s\xa0]+|[\s\xa0]+$/g,l=String.prototype.trim,u=l?function(t){return null==t?o:l.call(t)}:function(t){return null==t?o:(t+"").replace(s,o)},c=0,f=function(t){var e=t.offsetTop;return null!=t.offsetParent&&(e+=f(t.offsetParent)),e},a=function(t){var e=t.offsetLeft;return null!=t.offsetParent&&(e+=a(t.offsetParent)),e},p=({isObject:function(t){return t===Object(t)},isArray:Array.isArray||function(t){return"[object Array]"==toString.call(t)},isEmpty:function(t){if(null==t)return!0;if(this.isArray(t)||this.isString(t))return 0===t.length;for(var e in t)if(this.has(t,e))return!1;return!0},mix:function(t,e,n){for(var r in e)t[r]=e[r];return t},extend:function(t,e,r,i){if(!e||!t)return t;var o,s=e.prototype;return o=n(s,t),t.prototype=this.mix(o,t.prototype),t.superclass=n(s,e),r&&this.mix(o,r),i&&this.mix(t,i),t},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n},trim:u,substitute:function(t,e,n){return"string"==typeof t&&e?t.replace(n||i,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?o:e[n]}):t},vendor:function(){for(var t,e=document.createElement("div").style,n=["t","webkitT","MozT","msT","OT"],r=0,i=n.length;r1?n:n[0]||null}}}),"object"==typeof module&&module.exports?n=o:o}(n),r=function(e){var r=t,i=n,o=function(t){o.superclass.constructor.call(this,t),this.userConfig=r.mix({imgsSelector:"img",delay:200,imgSetter:function(t){var e=t.getAttribute("data-src");e&&t.setAttribute("src",e)}},t)};if(r.extend(o,i,{pluginId:"lazyload",pluginInitializer:function(t){var e=this;return e.xscroll=t,e.reset(),e._bindEvt(),e},pluginDestructor:function(){var t=this;t.xscroll&&t.xscroll.off("scroll scrollend afterrender",t._filterItem,t),t._isEvtBinded=!1},_filterItem:function(){var t=this;t.xscroll.getPlugin("infinite")?t._filterItemByInfinite.call(t):t._filterItemByNormal.call(t)},_filterItemByNormal:function(){for(var t,e=this,n=e.xscroll.getScrollPos(),r="x"==e.zoomType?n.scrollLeft:n.scrollTop,i="x"==e.zoomType?"offsetWidth":"offsetHeight",o="x"==e.zoomType?"left":"top",s="x"==e.zoomType?"right":"bottom",l=0,u=e.positions.length;l=r&&t[o]<=r+e.xscroll.renderTo[i]||t[s]>=r&&t[s]<=r+e.xscroll.renderTo[i])&&e.userConfig.imgSetter.call(e,e.imgs[l])},_filterItemByInfinite:function(){var t=this,e=t.xscroll.getPlugin("infinite");clearTimeout(t._timeout),t._timeout=setTimeout(function(){if(!t.xscroll["isScrolling"+t.zoomType.toUpperCase()]){for(var n=0;n