!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){if(e&&t){vari=this._events=this._events||{},n=i[e]=i[e]||[];returnn.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);vari=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};returnn[t]=!0,this}},t.off=function(e,t){vari=this._events&&this._events[e];if(i&&i.length){varn=i.indexOf(t);returnn!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){vari=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(varn=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){varr=i[o],s=n&&n[r];s&&(this.off(e,r),deleten[r]),r.apply(this,t)}returnthis}},t.allOff=function(){deletethis._events,deletethis._onceEvents},e}),function(e,t){"use strict";"function"==typeofdefine&&define.amd?define(["ev-emitter/ev-emitter"],function(i){returnt(e,i)}):"object"==typeofmodule&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeofwindow?window:this,function(e,t){functioni(e,t){for(variint)e[i]=t[i];returne}functionn(e){if(Array.isArray(e))returne;vart="object"==typeofe&&"number"==typeofe.length;returnt?d.call(e):[e]}functiono(e,t,r){if(!(thisinstanceofo))returnnewo(e,t,r);vars=e;return"string"==typeofe&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeoft?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=newh.Deferred),voidsetTimeout(this.check.bind(this))):voida.error("Bad element for imagesLoaded "+(s||e))}functionr(e){this.img=e}functions(e,t){this.url=e,this.element=t,this.img=newImage}varh=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);vart=e.nodeType;if(t&&u[t]){for(vari=e.querySelectorAll("img"),n=0;n<i.length;n++){varo=i[n];this.addImage(o)}if("string"==typeofthis.options.background){varr=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){vars=r[n];this.addElementBackgroundImages(s)}}}};varu={1:!0,9:!0,11:!0};returno.prototype.addElementBackgroundImages=function(e){vart=getComputedStyle(e);if(t)for(vari=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){varo=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){vart=newr(e);this.images.push(t)},o.prototype.addBackground=function(e,t){vari=news(e,t);this.images.push(i)},o.prototype.check=function(){functione(e,i,n){setTimeout(function(){t.progress(e,i,n)})}vart=this;returnthis.progressedCount=0,this.hasAnyBroken=!1,this.images.length?voidthis.images.forEach(function(t){t.once("progress",e),t.check()}):voidthis.complete()},o.prototype.progress=function(e,t,i){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&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){vare=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){vart=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){vare=this.getIsImageComplete();returne?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.addEv