/*! this file is auto-generated */ /*! * imagesloaded packaged v5.0.0 * javascript is all like "you images are done yet or what?" * mit license */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.evemitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceevents=this._onceevents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexof(e);return-1!=s&&i.splice(s,1),this},e.emitevent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceevents&&this._onceevents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.alloff=function(){return delete this._events,delete this._onceevents,this},t})), /*! * imagesloaded v5.0.0 * javascript is all like "you images are done yet or what?" * mit license */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesloaded=e(t,t.evemitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jquery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.queryselectorall(t)),r)?(this.elements=(h=r,array.isarray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:object.assign(this.options,e),o&&this.on("always",o),this.getimages(),i&&(this.jqdeferred=new i.deferred),settimeout(this.check.bind(this))):s.error(`bad element for imagesloaded ${r||t}`)}n.prototype=object.create(e.prototype),n.prototype.getimages=function(){this.images=[],this.elements.foreach(this.addelementimages,this)};const o=[1,9,11];n.prototype.addelementimages=function(t){"img"===t.nodename&&this.addimage(t),!0===this.options.background&&this.addelementbackgroundimages(t);let{nodetype:e}=t;if(!e||!o.includes(e))return;let i=t.queryselectorall("img");for(let t of i)this.addimage(t);if("string"==typeof this.options.background){let e=t.queryselectorall(this.options.background);for(let t of e)this.addelementbackgroundimages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new image}return n.prototype.addelementbackgroundimages=function(t){let e=getcomputedstyle(t);if(!e)return;let i=r.exec(e.backgroundimage);for(;null!==i;){let s=i&&i[2];s&&this.addbackground(s,t),i=r.exec(e.backgroundimage)}},n.prototype.addimage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addbackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedcount=0,this.hasanybroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{settimeout((()=>{this.progress(t,e,i)}))};this.images.foreach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedcount++,this.hasanybroken=this.hasanybroken||!t.isloaded,this.emitevent("progress",[this,t,e]),this.jqdeferred&&this.jqdeferred.notify&&this.jqdeferred.notify(this,t),this.progressedcount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasanybroken?"fail":"done";if(this.iscomplete=!0,this.emitevent(t,[this]),this.emitevent("always",[this]),this.jqdeferred){let t=this.hasanybroken?"reject":"resolve";this.jqdeferred[t](this)}},h.prototype=object.create(e.prototype),h.prototype.check=function(){this.getisimagecomplete()?this.confirm(0!==this.img.naturalwidth,"naturalwidth"):(this.proxyimage=new image,this.img.crossorigin&&(this.proxyimage.crossorigin=this.img.crossorigin),this.proxyimage.addeventlistener("load",this),this.proxyimage.addeventlistener("error",this),this.img.addeventlistener("load",this),this.img.addeventlistener("error",this),this.proxyimage.src=this.img.currentsrc||this.img.src)},h.prototype.getisimagecomplete=function(){return this.img.complete&&this.img.naturalwidth},h.prototype.confirm=function(t,e){this.isloaded=t;let{parentnode:i}=this.img,s="picture"===i.nodename?i:this.img;this.emitevent("progress",[this,s,e])},h.prototype.handleevent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindevents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindevents()},h.prototype.unbindevents=function(){this.proxyimage.removeeventlistener("load",this),this.proxyimage.removeeventlistener("error",this),this.img.removeeventlistener("load",this),this.img.removeeventlistener("error",this)},d.prototype=object.create(h.prototype),d.prototype.check=function(){this.img.addeventlistener("load",this),this.img.addeventlistener("error",this),this.img.src=this.url,this.getisimagecomplete()&&(this.confirm(0!==this.img.naturalwidth,"naturalwidth"),this.unbindevents())},d.prototype.unbindevents=function(){this.img.removeeventlistener("load",this),this.img.removeeventlistener("error",this)},d.prototype.confirm=function(t,e){this.isloaded=t,this.emitevent("progress",[this,this.element,e])},n.makejqueryplugin=function(e){(e=e||t.jquery)&&(i=e,i.fn.imagesloaded=function(t,e){return new n(this,t,e).jqdeferred.promise(i(this))})},n.makejqueryplugin(),n}));