PageSourceSearch

https://manonamai.lt/wp-content/themes/zeen/assets/js/imagesloaded.pkgd.min.js

js manonamai.lt collected 2026-10-02 13:03:09 UTC 5,960 bytes, 17 lines download raw bytes

1/*!
2 * imagesLoaded PACKAGED v4.1.4
3 * JavaScript is all like "You images are done yet or what?"
4 * MIT License
5 */
6/**
7 * EvEmitter v1.1.0
8 * Lil' event emitter
9 * MIT License
10 */
11(function(e,t){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",t)}else if(typeof module=="object"&&module.exports){module.exports=t()}else{e.EvEmitter=t()}})(typeof window!="undefined"?window:this,function(){function e(){}var t=e.prototype;t.on=function(e,t){if(!e||!t){return}var i=this._events=this._events||{};var r=i[e]=i[e]||[];if(r.indexOf(t)==-1){r.push(t)}return this};t.once=function(e,t){if(!e||!t){return}this.on(e,t);var i=this._onceEvents=this._onceEvents||{};var r=i[e]=i[e]||{};r[t]=true;return this};t.off=function(e,t){var i=this._events&&this._events[e];if(!i||!i.length){return}var r=i.indexOf(t);if(r!=-1){i.splice(r,1)}return this};t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(!i||!i.length){return}i=i.slice(0);t=t||[];var r=this._onceEvents&&this._onceEvents[e];for(var n=0;n<i.length;n++){var o=i[n];var s=r&&r[o];if(s){this.off(e,o);delete r[o]}o.apply(this,t)}return this};t.allOff=function(){delete this._events;delete this._onceEvents};return e});
12/*!
13 * imagesLoaded v4.1.4
14 * JavaScript is all like "You images are done yet or what?"
15 * MIT License
16 */
17(function(t,i){"use strict";if(typeof define=="function"&&define.amd){define(["ev-emitter/ev-emitter"],function(e){return i(t,e)})}else if(typeof module=="object"&&module.exports){module.exports=i(t,require("ev-emitter"))}else{t.imagesLoaded=i(t,t.EvEmitter)}})(typeof window!=="undefined"?window:this,function e(t,i){var n=t.jQuery;var o=t.console;function s(e,t){for(var i in t){e[i]=t[i]}return e}var r=Array.prototype.slice;function h(e){if(Array.isArray(e)){return e}var t=typeof e=="object"&&typeof e.length=="number";if(t){return r.call(e)}return[e]}function a(e,t,i){if(!(this instanceof a)){return new a(e,t,i)}var r=e;if(typeof e=="string"){r=document.querySelectorAll(e)}if(!r){o.error("Bad element for imagesLoaded "+(r||e));return}this.elements=h(r);this.options=s({},this.options);if(typeof t=="function"){i=t}else{s(this.options,t)}if(i){this.on("always",i)}this.getImages();if(n){this.jqDeferred=new n.Deferred}setTimeout(this.check.bind(this))}a.prototype=Object.create(i.prototype);a.prototype.options={};a.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};a.prototype.addElementImages=function(e){if(e.nodeName=="IMG"){this.addImage(e)}if(this.options.background===true){this.addElementBackgroundImages(e)}var t=e.nodeType;if(!t||!f[t]){return}var i=e.querySelectorAll("img");for(var r=0;r<i.length;r++){var n=i[r];this.addImage(n)}if(typeof this.options.background=="string"){var o=e.querySelectorAll(this.options.background);for(r=0;r<o.length;r++){var s=o[r];this.addElementBackgroundImages(s)}}};var f={1:true,9:true,11:true};a.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(!t){return}var i=/url\((['"])?(.*?)\1\)/gi;var r=i.exec(t.backgroundImage);while(r!==null){var n=r&&r[2];if(n){this.addBackground(n,e)}r=i.exec(t.backgroundImage)}};a.prototype.addImage=function(e){var t=new u(e);this.images.push(t)};a.prototype.addBackground=function(e,t){var i=new d(e,t);this.images.push(i)};a.prototype.check=function(){var r=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function t(e,t,i){setTimeout(function(){r.progress(e,t,i)})}this.images.forEach(function(e){e.once("progress",t);e.check()})};a.prototype.progress=function(e,t,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;this.emitEvent("progress",[this,e,t]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,e)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&o){o.log("progress: "+i,e,t)}};a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(e,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}};function u(e){this.img=e}u.prototype=Object.create(i.prototype);u.prototype.check=function(){var e=this.getIsImageComplete();
17if(e){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;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.src};u.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};u.prototype.confirm=function(e,t){this.isLoaded=e;this.emitEvent("progress",[this,this.img,t])};u.prototype.handleEvent=function(e){var t="on"+e.type;if(this[t]){this[t](e)}};u.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};u.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};u.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function d(e,t){this.url=e;this.element=t;this.img=new Image}d.prototype=Object.create(u.prototype);d.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var e=this.getIsImageComplete();if(e){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};d.prototype.confirm=function(e,t){this.isLoaded=e;this.emitEvent("progress",[this,this.element,t])};a.makeJQueryPlugin=function(e){e=e||t.jQuery;if(!e){return}n=e;n.fn.imagesLoaded=function(e,t){var i=new a(this,e,t);return i.jqDeferred.promise(n(this))}};a.makeJQueryPlugin();return a});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.