!function(n){n(window).on("load",(function(){!function(){if("undefined"!=typeof colormagInfiniteScrollParams){var t=colormagInfiniteScrollParams,o=n(".tg-infinite-pagination"),i=n(".tg-infinite-scroll-container"),l=t.infiniteScrollEvent;o.length&&i.length&&o.find(".next").length&&!o.infinitescroll&&(o.infinitescroll=new InfiniteScroll(".tg-infinite-scroll-container",{path:".next",checkLastPage:".next",append:".tg-infinite-scroll-container .post",button:"button"===l?".tg-load-more-btn":null,outlayer:null,scrollThreshold:"scroll"===l&&500,onInit:function(){var n=o.find(".tg-load-more");this.on("load",(function(){n.removeClass("loading")})),this.on("request",(function(){n.addClass("loading")})),this.on("last",(function(){n.find(".tg-all-post-loaded-text").css("display","block")}))}}))}}(),function(){if("undefined"!=typeof colormagInfiniteScrollParams){var t=colormagInfiniteScrollParams,o=n(".tg-infinite-pagination"),i=n(".tg-autoload-posts"),l=t.autoLoadEvent;i.length&&o.find(".next").length&&!o.infinitescroll&&(o.infinitescroll=new InfiniteScroll(".tg-autoload-posts",{path:function(){var n=o.find('a[data-index="'+(this.pageIndex+1)+'"]');return n.length||(this.canLoad=!1),n.attr("href")},append:".tg-autoload-posts .tg-post",button:"button"===l?".tg-load-more-btn":null,outlayer:null,scrollThreshold:"scroll"===l&&500,onInit:function(){var n=o.find(".tg-load-more");this.on("load",(function(){n.removeClass("loading")})),this.on("request",(function(){n.addClass("loading")})),this.on("last",(function(){n.hide()}))}}))}}()}))}(jQuery);