+function($){"use strict";var AutoPager=function(element,options){this.options=options
this.$el=$(element)
this.init()}
AutoPager.DEFAULTS={}
AutoPager.prototype.init=function(){this.$el.on('inview',$.proxy(this.onViewChange,this))}
AutoPager.prototype.onViewChange=function(event,isInView){var $el=this.$el,currentPage=$el.data('current-page'),lastPage=$el.data('last-page'),isComplete=currentPage>=lastPage
$el.toggle(!isComplete)
if(isComplete||$el.hasClass('pager-is-loading')){return}
if(isInView){currentPage++
$el.addClass('pager-is-loading').data('request-data',{page:currentPage}).request().done(function(){$el.data('current-page',currentPage).removeClass('pager-is-loading')})}}
var old=$.fn.autoPager
$.fn.autoPager=function(option){var args=Array.prototype.slice.call(arguments,1),result
this.each(function(){var $this=$(this)
var data=$this.data('oc.autopager')
var options=$.extend({},AutoPager.DEFAULTS,$this.data(),typeof option=='object'&&option)
if(!data)$this.data('oc.autopager',(data=new AutoPager(this,options)))
if(typeof option=='string')result=data[option].apply(data,args)
if(typeof result!='undefined')return false})
return result?result:this}
$.fn.autoPager.Constructor=AutoPager
$.fn.autoPager.noConflict=function(){$.fn.autoPager=old
return this}
$(document).render(function(){$('[data-control="auto-pager"]').autoPager()})}(window.jQuery);(function(factory){if(typeof define=='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var inviewObjects=[],viewportSize,viewportOffset,d=document,w=window,documentElement=d.documentElement,timer;$.event.special.inview={add:function(data){inviewObjects.push({data:data,$element:$(this),element:this});if(!timer&&inviewObjects.length){timer=setInterval(checkInView,250);}},remove:function(data){for(var i=0;i