!function(e,t){"function"==typeofdefine&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeofmodule&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeofwindow?window:this,function(){functione(){}vart=e.prototype;returnt.on=function(e,t){varn;if(e&&t)return-1==(n=(n=this._events=this._events||{})[e]=n[e]||[]).indexOf(t)&&n.push(t),this},t.once=function(e,t){varn;if(e&&t)returnthis.on(e,t),((n=this._onceEvents=this._onceEvents||{})[e]=n[e]||{})[t]=!0,this},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length)return-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){varn=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(vari=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){varr=n[o];i&&i[r]&&(this.off(e,r),deletei[r]),r.apply(this,t)}returnthis}},t.allOff=function(){deletethis._events,deletethis._onceEvents},e}),function(t,n){"use strict";"function"==typeofdefine&&define.amd?define(["ev-emitter/ev-emitter"],function(e){returnn(t,e)}):"object"==typeofmodule&&module.exports?module.exports=n(t,require("ev-emitter")):t.imagesLoaded=n(t,t.EvEmitter)}("undefined"!=typeofwindow?window:this,function(t,e){functionr(e,t){for(varnint)e[n]=t[n];returne}functiona(e,t,n){vari,o;returnthisinstanceofa?(i="string"==typeof(i=e)?document.querySelectorAll(e):i)?(this.elements=(o=i,Array.isArray(o)?o:"object"==typeofo&&"number"==typeofo.length?c.call(o):[o]),this.options=r({},this.options),"function"==typeoft?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=news.Deferred),voidsetTimeout(this.check.bind(this))):voidl.error("Bad element for imagesLoaded "+(i||e)):newa(e,t,n)}functionn(e){this.img=e}functioni(e,t){this.url=e,this.element=t,this.img=newImage}vars=t.jQuery,l=t.console,c=Array.prototype.slice,u=((a.prototype=Object.create(e.prototype)).options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);vart=e.nodeType;if(t&&u[t]){for(varn=e.querySelectorAll("img"),i=0;i<n.length;i++){varo=n[i];this.addImage(o)}if("string"==typeofthis.options.background)for(varr=e.querySelectorAll(this.options.background),i=0;i<r.length;i++){vara=r[i];this.addElementBackgroundImages(a)}}},{1:!0,9:!0,11:!0});returna.prototype.addElementBackgroundImages=function(e){vart=getComputedStyle(e);if(t)for(varn=/url\((['"])?(.*?)\1\)/gi,i=n.exec(t.backgroundImage);null!==i;){varo=i&&i[2];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}},a.prototype.addImage=function(e){e=newn(e);this.images.push(e)},a.prototype.addBackground=function(e,t){e=newi(e,t);this.images.push(e)},a.prototype.check=function(){functiont(e,t,n){setTimeout(function(){i.progress(e,t,n)})}vari=this;returnthis.progressedCount=0,this.hasAnyBroken=!1,this.images.length?voidthis.images.forEach(function(e){e.once("progress",t),e.check()}):voidthis.complete()},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,e,t)},a.prototype.complete=function(){vare=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(n.prototype=Object.create(e.prototype)).check=function(){returnthis.getIsImageComplete()?voidthis.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=newImage,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){ret