var mod;(mod=angular.module("infinite-scroll",[])).directive("infiniteScroll",["$rootScope","$window","$timeout",function(f,a,i){return{link:function(e,t,l){var o,n,r,c;return a=angular.element(a),r=0,null!=l.infiniteScrollDistance&&e.$watch(l.infiniteScrollDistance,function(i){return r=parseInt(i,10)}),o=!(c=!0),null!=l.infiniteScrollDisabled&&e.$watch(l.infiniteScrollDisabled,function(i){if((c=!i)&&o)return o=!1,n()}),n=function(){var i,n;return n=a.height()+a.scrollTop(),(i=t.offset().top+t.height()-n<=a.height()*r)&&c?f.$$phase?e.$eval(l.infiniteScroll):e.$apply(l.infiniteScroll):i?o=!0:void 0},a.on("scroll",n),e.$on("$destroy",function(){return a.off("scroll",n)}),i(function(){return l.infiniteScrollImmediateCheck?e.$eval(l.infiniteScrollImmediateCheck)?n():void 0:n()},0)}}}]);