// source --> https://aalbachtaler.de/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/js/public.js?ver=6.7.2 
jQuery(document).ready(function($) {

  jQuery('.efbl-popup-carousel-container img').removeAttr('srcset');

  /*
  *	Check if the like box has loaded. If yes then remove loader and add animation class!
  */

  if ($('.efbl_feed_wraper .efbl_custom_likebox')[0] ||
      $('.widget_easy_facebook_page_plugin .efbl-like-box')[0]) {

    if (typeof FB === 'undefined' || FB === null) {

      setTimeout(function() { $('.efbl-loader').remove(); }, 3000);

    }
    else {

      FB.Event.subscribe('xfbml.render', function(response) {

        var animclasses = $('.efbl-like-box .fb-page').data('animclass');

        $('.efbl-loader').remove();

        $('.efbl-like-box iframe').addClass('animated ' + animclasses);

      });

    }
  }

  // Sanitize content to prevent XSS attacks
  function sanitizeContent(content) {
    if (!content) return '';
    
    // Create a temporary div to safely parse and sanitize HTML
    var tempDiv = document.createElement('div');
    tempDiv.innerHTML = content;
    
    // Remove script tags and event handlers
    var scripts = tempDiv.querySelectorAll('script');
    for (var i = 0; i < scripts.length; i++) {
      scripts[i].parentNode.removeChild(scripts[i]);
    }
    
    // Remove event handlers from all elements
    var allElements = tempDiv.querySelectorAll('*');
    for (var i = 0; i < allElements.length; i++) {
      var element = allElements[i];
      var attributes = element.attributes;
      for (var j = attributes.length - 1; j >= 0; j--) {
        var attr = attributes[j];
        if (attr.name.toLowerCase().startsWith('on') || 
            attr.name.toLowerCase() === 'javascript:' ||
            attr.value.toLowerCase().includes('javascript:')) {
          element.removeAttribute(attr.name);
        }
      }
    }
    
    return tempDiv.innerHTML;
  }

  // Magic function that will prepare and render markup.
  function efbl_render_poup_markup(object) {

    var $story_link = object.data('storylink'),
        $story_link_text = object.data('linktext'),
        $caption = object.data('caption'),
        $image_url = object.data('imagelink'),
        $iframe_vid_url = object.data('videolink'),
        $video_url = object.data('video'),
        $itemnumber = object.data('itemnumber'),
        $windowWidth = window.innerWidth,
        $windowHeight = window.innerHeight - 200;

    // Detect GDPR mode and consent for this feed container.
    var $feedContainer = object.closest('.efbl_feed_wraper');
    var flagsAttr = $feedContainer.length ? ($feedContainer.attr('data-esf-flags') || '') : '';
    var flags = flagsAttr ? flagsAttr.split(',') : [];
    var hasGdpr = flags.indexOf('gdpr') > -1;
    var mode = 'none';

    if (flags.indexOf('gdpr_yes') > -1) {
      mode = 'yes';
    } else if (flags.indexOf('gdpr_auto') > -1) {
      mode = 'auto';
    }

    var consentGiven = false;
    if (window.ESFGDPR && typeof window.ESFGDPR.checkConsent === 'function' && $feedContainer.length) {
      consentGiven = window.ESFGDPR.checkConsent($feedContainer);
    }

    // Media is allowed only when:
    // - GDPR is not enabled, OR
    // - mode is "auto" and consent has been given.
    var mediaAllowed = true;
    if (hasGdpr) {
      if (mode === 'yes') {
        mediaAllowed = false;
      } else if (mode === 'auto' && !consentGiven) {
        mediaAllowed = false;
      }
    }

    $('.white-popup .efbl_popup_left_container').css({
      'width': 'auto',
      'height': 'auto',
    });

    $('.efbl_popup_image').css('height', 'auto');

    // Helper to get a placeholder image URL from the clicked element, if available.
    function getPlaceholderFromElement(el) {
      var bg = el.css('background-image') || '';
      if (!bg || bg === 'none') {
        return '';
      }
      // Expect format: url("...") or url('...') or url(...)
      bg = bg.replace(/^url\((['"]?)/, '').replace(/(['"]?)\)$/, '');
      return bg;
    }

    // IMAGES
    if ($image_url) {
      if (mediaAllowed) {
        $('#efblcf_holder .efbl_popup_image').attr('src', $image_url);
        $('#efblcf_holder .efbl_popup_image').css('display', 'block');
      } else {
        var placeholderImg = getPlaceholderFromElement(object);
        if (placeholderImg) {
          $('#efblcf_holder .efbl_popup_image').attr('src', placeholderImg);
          $('#efblcf_holder .efbl_popup_image').css('display', 'block');
        } else {
          // No safe placeholder, hide image completely.
          $('#efblcf_holder .efbl_popup_image').attr('src', '');
          $('#efblcf_holder .efbl_popup_image').css('display', 'none');
        }
      }
    }

    // IFRAME VIDEO
    if ($iframe_vid_url) {
      if (mediaAllowed) {
        $('#efblcf_holder .efbl_popup_if_video').attr('src', $iframe_vid_url);
        $('#efblcf_holder .efbl_popup_if_video').css({
          'display': 'block',
          'width': '720px',
          'height': '400px',
        });
      } else {
        $('#efblcf_holder .efbl_popup_if_video').attr('src', '');
        $('#efblcf_holder .efbl_popup_if_video').css('display', 'none');
      }

    }

    // HTML5 VIDEO
    if ($video_url) {
      if (mediaAllowed) {
        $('#efblcf_holder .efbl_popup_video').attr('src', $video_url);
        $('#efblcf_holder .efbl_popup_video').css('display', 'block');
        setTimeout(function() {
          $('#efblcf_holder .efbl_popup_video')[0].play();
        }, 500);
      } else {
        $('#efblcf_holder .efbl_popup_video').attr('src', '');
        $('#efblcf_holder .efbl_popup_video').css('display', 'none');
      }

    }

    //$('.efbl-popup-next').attr('data-itemnumber', $itemnumber+1);
    //$('.efbl-popup-prev').attr('data-itemnumber', $itemnumber-1);

    $('.efbl_feed_wraper #item_number').val($itemnumber);

    if ($caption) {
      // Sanitize caption and link text to prevent XSS
      var sanitizedCaption = sanitizeContent($caption);
      var sanitizedLinkText = sanitizeContent($story_link_text);
      
      $('#efblcf_holder .efbl_popupp_footer').
          html(
              '<p>' + sanitizedCaption + ' <br> <a class="efbl_popup_readmore" href="' +
              $story_link + '" target="_blank">' + sanitizedLinkText +
              '</a></p>');
      $('#efblcf_holder .efbl_popupp_footer').css('display', 'block');
    }

  }

  function reset_popup_holder() {
    //Clear the container for new instance
    $('#efblcf_holder .efbl_popup_image').attr('src', '');
    $('#efblcf_holder .efbl_popup_image').css('display', 'none');

    $('#efblcf_holder .efbl_popup_if_video').attr('src', '');
    $('#efblcf_holder .efbl_popup_if_video').css('display', 'none');

    $('#efblcf_holder .efbl_popup_video').attr('src', '');
    $('#efblcf_holder .efbl_popup_video').css('display', 'none');

    $('#efblcf_holder .efbl_popupp_footer').html('');
    $('#efblcf_holder .efbl_popupp_footer').css('display', 'none');
  }

  $('.efbl_feed_popup').esfFreePopup({
    type: 'ajax',
    tLoading: 'Loading...',
    preloader: false,
    mainClass: 'esfp-fade',

    callbacks: {

      ajaxContentAdded: function() {
        // Ajax content is loaded and appended to DOM

        efbl_render_poup_markup(this.st.el);

        // GDPR: if consent is already given and popup content contains
        // placeholder images (esf-no-consent), swap them to real URLs.
        if (window.ESFGDPR && typeof window.ESFGDPR.checkConsent === 'function') {
          try {
            // Use the first feed wrapper on the page to evaluate consent state.
            var $feedContainer = jQuery('.efbl_feed_wraper').first();
            if ($feedContainer.length && window.ESFGDPR.checkConsent($feedContainer)) {
              // Target the most recently added popup.
              var $popup = jQuery('.efbl-popup').last();
              if ($popup.length) {
                $popup.find('.esf-no-consent').each(function() {
                  var $element = jQuery(this);
                  var realImageUrl = $element.attr('data-image-url');

                  if (realImageUrl) {
                    // Update <img> tag if present.
                    var $img = $element.is('img') ? $element : $element.find('img');
                    if ($img.length) {
                      $img.attr('src', realImageUrl);
                    }

                    // Also update background-image if used.
                    $element.css('background-image', 'url(' + realImageUrl + ')');

                    $element.removeClass('esf-no-consent');
                    $element.removeAttr('data-image-url');
                  }
                });
              }
            }
          } catch (e) {
            // Fail silently; do not break popup if something goes wrong.
          }
        }
      },

      beforeOpen: function() {
        // console.log(this.st.el);

        // efbl_render_poup_markup(this.st.el);

      },

      beforeClose: function() {

        reset_popup_holder();

      },
    },

  });

  $('.efbl_share_links').click(function() {
    $(this).next('.efbl_links_container').slideToggle('slow');
  });

  $('.efbl_info').click(function() {
    $(this).siblings('.efbl_comments_wraper').slideToggle('slow');
  });

  jQuery(document).
      on('click', 'div[data-class=\'efbl_redirect_home\']', function(event) {

        window.open(
            'https://easysocialfeed.com/?utm_campaign=powered-by&utm_medium=link&utm_source=plugin',
            '_blank');
      });

  $('.esf-share').click(function(e) {
    e.preventDefault();
    $(this).next().slideToggle();
  });

});
// source --> https://aalbachtaler.de/wp-content/themes/one-page-express/assets/js/smoothscroll.js?ver=1.3.55 
var currentPageURL = document.location.toString();
var isAnchor = false;
if (location.hash) {
    isAnchor = true;
    window.scrollTo(0, 0);
}
jQuery(document).ready(function () {


    if (window.useManagedSmoothScroll) {
        return;
    }

    var duration = 1500;
    var easing = 'easeInOutQuart';
    var lastId, anchors, scrollItems;

    function targetIsSamePage(target) {
        return !target || target == "_self";
    }

    function getHash(url) {
        if (!url) {
            return false;
        }
        var indexOfHash = url.indexOf('#');
        if (indexOfHash > -1) {
            if (indexOfHash === 0) {
                return url.replace('#', '');
            }
            var hash = url.substring(indexOfHash + 1);
            var urlQuery = "";
            if (url.indexOf('?') > -1) {
                urlQuery = url.substring(url.indexOf('?'));
            }
            var absLinkRegExp = /(https?|file):\/\//;
            var pageLocation = window.location.pathname;
            var urlLocation = url.replace(urlQuery, '').replace('#' + hash, '').replace(absLinkRegExp, '');
            if (url.match(absLinkRegExp)) {
                pageLocation = window.location.host + pageLocation;
            } else {
                urlLocation = pageLocation.substring(0, pageLocation.lastIndexOf("/")) + "/" + urlLocation;
            }
            if (pageLocation == urlLocation || pageLocation == urlLocation + "/") {
                return hash;
            }
        }
        return false;
    }

    function change_url_hash(hash) {
        setTimeout(function () {
            if (hash) {
                hash = "#" + hash;
            } else {
                hash = "";
            }
            if (history && history.replaceState) {
                history.replaceState({}, "", hash);
            } else {
            }
        }, 100);
        /* safari issue fixed by throtteling the event */
    }

    var scrollStarted = false;


    function scrollToSection(section, elem) {
        if (scrollStarted) {
            return;
        }

        try {
            scrollStarted = true;

            if (section) {
                var parent;
                if (elem) {
                    parent = elem.parent().parentsUntil('body').filter(function () {
                        if (jQuery(this).css('position') == "fixed" && !jQuery(this).is('.mobile-overlay')) return jQuery(this);
                    }).eq(0);
                }

                var topDistance = 0;
                if (parent && parent.length) {
                    var parentClass = parent.attr("class");
                    var flexiMenu = jQuery('div[class*="_menu_wrapper"]');
                    if (parent.outerHeight() !== window.innerHeight || !parent.is('.full-sidebar')) {
                        topDistance = parent.outerHeight() + parent.position().top;
                    }
                }
                var scrollToValue = section.offset().top - topDistance;
                if (scrollToValue < 0) {
                    scrollToValue = 0;
                }
                var stickTo = jQuery("[data-cp-shrink=initial]");
                if (scrollToValue > stickTo.height()) {
                    scrollToValue -= jQuery('[data-cp-shrink=shrinked]').height();
                }
				
                var menuOffset = 0;
                var $fixed = jQuery('.navigation-wrapper');
                if ($fixed.length && jQuery(".header-top").attr("data-sticky-to")) {
                    menuOffset = $fixed[0].getBoundingClientRect().height;
					scrollToValue -= menuOffset;
                }

                var ratio = Math.max(0.5, scrollToValue / jQuery('body').height());

                jQuery('html, body').animate({
                    scrollTop: scrollToValue
                }, duration * ratio, easing, function () {
                    scrollStarted = false;
                    jQuery(window).trigger('scroll');
                    jQuery(document).trigger('scroll');
                });

                return true;
            }
        } catch (e) {
            alert('error in xtd one page site script ' + e);
        }
    }

    function linkClick(ev, elem) {

        if (!targetIsSamePage(elem.attr("target"))) {
            return;
        }

        var section = elem.data('onepage-section') ? elem.data('onepage-section') : false;

        if (section && section.length) {
            ev.preventDefault();

            // ev.stopPropagation();
        }

        var scrolled = scrollToSection(section, elem);
        if (scrolled && ev) {
            ev.preventDefault();
        }

    }

    function bubbleSortByTop(arr) {
        var swapped;
        do {
            swapped = false;
            for (var i = 0; i < arr.length - 1; i++) {
                var elem = arr[i];
                var elem2 = arr[i + 1];
                if (elem.offset().top > elem2.offset().top) {
                    var temp = arr[i];
                    arr[i] = arr[i + 1];
                    arr[i + 1] = temp;
                    swapped = true;
                }
            }
        } while (swapped);
    }

    function getAnchors() {
        scrollItems = [];
        anchors = jQuery('a').filter(function () {
            var elem = jQuery(this);
            var href = elem.attr('href');
            var target = elem.attr('target');
            var hash = getHash(href);
            if (hash && hash !== 'wp-toolbar') {
                try {
                    var section = jQuery("#" + hash);
                    if (section.length > 0) {
                        elem.data('onepage-section', section);
                        if (elem.parent()[0].tagName == "LI") {
                            section.data('onepage-anchor', elem);
                        }
                        scrollItems.push(section);
                        return true;
                    }
                } catch (e) {

                }
            }
            return false;
        });


        anchors.each(function () {

            if (jQuery(this).closest('.fm2_mobile_jq_menu').length || !jQuery(this).is(':visible')) {
                return;
            }

            if (jQuery(this).parent().is('li.menu-item')) {
                var selfAnchor = this;
                jQuery(this).unbind('click.onepage');
                jQuery(this).attr('data-smoothscroll', 'true');
                jQuery(this).parent().unbind('click.onepage').bind("click.onepage", function (e) {

                    if (!jQuery(e.target).parent().is(e.currentTarget)) {
                        return;
                    }

                    e.preventDefault();
                    e.stopPropagation();
                    linkClick(e, jQuery(selfAnchor));
                });
            } else {
                jQuery(this).unbind('click.onepage').bind("click.onepage", function (e) {

                    linkClick(e, jQuery(this));
                });
            }
        });
        try {
            bubbleSortByTop(scrollItems);
        } catch (e) {
        }
    }

    var scrollTimeout;
    var is_touch_device = 'ontouchstart' in document.documentElement;
    if (!is_touch_device) {
        jQuery(window).scroll(function () {
            clearTimeout(scrollTimeout);
            scrollTimeout = setTimeout(doneScrolling, 20);
        });
    }

    function doneScrolling() {
        var windowElem = jQuery(window);
        var fromTop = windowElem.scrollTop() + window.innerHeight * 0.5;
        var cur = [];
        if (!scrollItems) {
            getAnchors();
        }
        for (var i = 0; i < scrollItems.length; i++) {
            if (scrollItems[i].offset().top < fromTop) {
                cur.push(scrollItems[i]);
            }
        }
        var lastItem = scrollItems[scrollItems.length - 1];
        if ((windowElem.scrollTop() + windowElem.height() + 50) >= jQuery(document).height()) {
            cur.push(lastItem);
        }
        cur = cur[cur.length - 1];
        var id = cur && cur.length ? cur[0].id : "";
        change_url_hash(id);
        if (id.length === 0 && anchors) {
            // anchors.closest('ul').find('.current_page_item').removeClass('current_page_item');
            anchors.parent().addBack().removeClass('current_page_item');
            loc = (window.location + "").split('#')[0].replace(/\/$/, "");
            anchors.closest('ul').find('[href$="' + loc + '"]').eq(0).parent().addBack().addClass('current_page_item');
            if (!loc.length) {
                anchors.closest('ul').find('[href$="' + window.location + '"]').eq(0).parent().addBack().addClass('current_page_item');

            }
        }

        if (lastId !== id && id.length) {
            lastId = id;
            try {
                anchors.filter('.current_page_item').each(function () {
                    jQuery(this).parent().addBack().removeClass('current_page_item');

                });
                anchors.closest('ul').find('.current_page_item').removeClass('current_page_item');
                cur.data('onepage-anchor').parent().addBack().addClass('current_page_item');
            } catch (e) {
            }
        }
    }

    var id;
    jQuery(window).bind("resize orientationchange", function () {
        clearTimeout(id);
        id = setTimeout(doneResizing, 100);
    });

    function doneResizing() {
        getAnchors();
    }

    getAnchors();

    is_touch_device = 'ontouchstart' in document.documentElement;

    if (!is_touch_device) {
        doneScrolling();
    }
    if (isAnchor) {
        if (jQuery.find('a[href^="' + currentPageURL + '"]').length > 0) {
            jQuery(jQuery.find('a[href="' + currentPageURL + '"]')).trigger('click');
        } else {
            var hash = getHash(currentPageURL);
            if (hash.length) {
                jQuery(jQuery.find('a[href*="#' + hash + '"]')).trigger('click');
            }
        }
    } else {
        jQuery('a[href*="#"]').each(function (index, el) {
            var parts = el.href.split('#'),
                anchor = parts[parts.length - 1];

            if (parts.length >= 2) {
                if (anchor.length) {
                    jQuery(this).parent().addBack().removeClass('current_page_item');
                }
            }
        });
    }

    window.scrollToSection = scrollToSection;
    window.smoothScrollGetAnchors = getAnchors;
});
// source --> https://aalbachtaler.de/wp-content/plugins/easy-facebook-likebox/frontend/assets/js/imagesloaded.pkgd.min.js?ver=6.9.4 
/*!
 * imagesLoaded PACKAGED v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=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);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.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(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,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))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});