!function(e){function r(){return e(this).is(":appeared")}function t(){return!e(this).data("_appear_triggered")}function a(){p=!1;for(var a=0,n=i.length;a<n;a++){var o=e(i[a]).filter(r);if(o.filter(t).data("_appear_triggered",!0).trigger("_appear",[o]),s[a]){var f=s[a].not(o);f.data("_appear_triggered",!1).trigger("_disappear",[f])}s[a]=o}}function n(e){i.push(e),s.push()}var i=[],o=!1,p=!1,f={interval:250,force_process:!1},u=e(window),s=[];e.expr.pseudos.appeared=e.expr.createPseudo(function(r){return function(r){var t=e(r);if(!t.is(":visible"))return!1;var a=u.scrollLeft(),n=u.scrollTop(),i=t.offset(),o=i.left,p=i.top;return p+t.height()>=n&&p-(t.data("appear-top-offset")||0)<=n+u.height()&&o+t.width()>=a&&o-(t.data("appear-left-offset")||0)<=a+u.width()}}),e.fn.extend({_appear:function(r,t){return e._appear(this,t),this}}),e.extend({_appear:function(r,t){var i=e.extend({},f,t||{});if(!o){var u=function(){p||(p=!0,setTimeout(a,i.interval))};e(window).on("scroll",u).on("resize",u),o=!0}i.force_process&&setTimeout(a,i.interval),n(r)},force_appear:function(){return!!o&&(a(),!0)}})}(function(){return"undefined"!=typeof module?require("jquery"):jQuery}());