1"use strict";function _debounce(a,i,o){var s;return function(){var e=this,t=arguments,n=o&&!s;clearTimeout(s),s=setTimeout(function(){s=null,o||a.apply(e,t)},i),n&&a.apply(e,t)}}!function(c){function n(e,t){var n=this;this.options=t,n.window=c(window),n.element=c(e),n.menu=n.element.children("ul.ak-menu"),n.totalSpace=0,n.breakWidths=[],n.timer=null,n.init()}c.extend(n.prototype,{init:function(){var n=this;n.menu.children(".menu-item").each(function(e,t){n.totalSpace+=c(this).outerWidth(!0),n.breakWidths.push({i:n.totalSpace,ref:this})}),n.menu.append('<li class="menu-item menu-item-toggle"><a href="javascript:void(0)" aria-label="More"><i class="ak-icon fa fa-ellipsis-h" aria-hidden="true"></i></a><ul class="sub-menu ak-anim ak-anim-slide-in-down"></ul></li>'),n.check(),n.initEvents(),n.element.addClass("loaded")},getParantChildrenDiffWidth:function(e){for(var t=0,n=c(e).children(":not(.loaded)"),a=0;a<n.length;a++)t+=c(n[a]).outerWidth(!0);return t},check:function(){var e=this,n=!1,a=e.menu.children(".menu-item-toggle"),i=a.children(".sub-menu"),t=e.element.parent().outerWidth(),o=e.totalSpace,s=e.menu.outerWidth(!0),o=s<o?a.outerWidth(!0):0,r=t-Math.abs(t-s)-o-e.options.threshold;e.breakWidths.forEach(function(e,t){e.i>r?(c(e.ref).prependTo(i),n=!0):r>e.i&&c(e.ref).insertBefore(a)}),n?(a.addClass("menu-last-of-type").removeClass("hidden"),a.prev().removeClass("menu-last-of-type")):(a.removeClass("menu-last-of-type").addClass("hidden"),a.prev().addClass("menu-last-of-type"))},initEvents:function(){var e=this,t=_debounce(function(){e.check()},e.options.resize_delay);e.window.on("resize",t)}}),c.fn.Ak_More_Menu=function(e){var t={threshold:0,resize_delay:10};return e=e?c.extend(t,e):c.extend(t),this.each(function(){c.data(this,"Plugin_Ak_More_Menu")||c.data(this,"Plugin_Ak_More_Menu",new n(this,e))})}}(jQuery),function(d){window.newsy=window.newsy||{};var l=d("body"),u=d(window),p=l.hasClass("admin-bar"),r="1"===newsy_loc.is_login;window.newsy.security={xhr:null,nonce:newsy_loc.nonce,init:function(){this.check()},check:function(t){var n=this;null!==n.xhr&&n.xhr.abort(),n.xhr=d.ajax({url:ak_ajax_url,type:"post",data:{action:"ajax_refresh_nonce",refresh_nonce:"newsy_nonce"},dataType:"json",success:function(e){n.nonce=e.nonce}}).done(function(e){t().always(function(e){})})},handle_nonce:function(t){var n=this;return t().done(function(e){e.refresh_nonce&&n.check(t)})}},window.newsy.main={$document:d(document),init:function(){this.dark_mode(),this.setup_menu(),this.init_more_menu(),this.tabbed_mega_menu(),this.setup_responsive_header(),this.init_sticky_columns(),this.init_header_sticky(),this.back_to_top(),this.small_actions(),this.woo_commerce()},dark_mode:function(){for(var n=[],a=[],i=[],o=[],s=[d(".ak-bar:not(.ak-bar-dark) .ak-logo-image"),d(".ak-off-canvas-nav .ak-logo-image")],r=s.length,e=0;e<r;e++)n[e]=s[e].find("img").attr("data-light-src"),a[e]=s[e].find("img").attr("data-light-srcset"),i[e]=s[e].find("img").attr("data-dark-src"),o[e]=s[e].find("img").attr("data-dark-srcset");this.handleCookieAction(".ak-dark-mode-toggle","darkmode",function(e){if(e.is(":checked")){l.addClass("dark");for(var t=0;t<r;t++)s[t].find("img").attr({src:i[t],srcset:o[t]})}else if(!e.is(":checked")){l.removeClass("dark");for(t=0;t<r;t++)s[t].find("img").attr({src:n[t],srcset:a[t]})}},30)},handleCookieAction:function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:-1,i=4<arguments.length?arguments[4]:void 0,o=void 0===newsy_loc.site_slug?"/":newsy_loc.site_slug,s=void 0===newsy_loc.site_domain?window.location.hostname:newsy_loc.site_domain,r=!1,a=(a&&(r=new Date).setDate(r.getDate()+a),i=i||"1"===newsy_loc.is_ssl,window.location),a=new URL(a),c=a.searchParams.get("vc_editable"),l=a.searchParams.get("elementor-preview"),a=function(e){e=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return e?e[2]:null}(t),e=d(e);e.length&&(e.on("change",function(){var e;null===c&&null===l&&(e=d(this),n(e),e.is(":checked")?document.cookie=[t+"=true",o?"; path="+o:"",s?"; domain="+s:"",r?"; expires="+r.toUTCString():"",i?"; secure":""].join(""):e.is(":checked")||(document.cookie=[t+"=false",o?"; path="+o:"",s?"; domain="+s:"",r?"; expires="+r.toUTCString():"",i?"; secure":""].join("")))}),"true"===a?e.prop("checked",!0).trigger("change"):"false"===a&&e.prop("checked",!1).trigger("change"))},setup_responsive_header:function(e){var a=!1,n=d("#ak_drawer_holder"),i=0<n.length,t=".ak-header-menu-handler",o="ak-off-canvas-menu-open";function s(){d(".ak-off-canvas-close").on("click",function(e){e.preventDefault(),l.removeClass(o)}),d(".ak-off-canvas-overlay").on("click",function(e){e.preventDefault(),l.removeClass(o)})}function r(t){a||(a=!0,d.ajax({url:ak_ajax_url,type:"POST",dataType:"json",data:{action:"ajax_drawer_content",n
1once:newsy.security.nonce},success:function(e){e.success?(n.html(e.html),s(),t&&t(e)):a=!1},error:function(){a=!1}}))}function c(){var e=d(window).width()<992,t=d(e?".ak-header-mobile-wrap":".ak-header-wrap").outerHeight(),n=p?d("#wpadminbar").outerHeight():0,t=t+n;t<d(this).scrollTop()?d(".ak-off-canvas-nav").css("position","fixed").css("padding-top",e?0:n):d(".ak-off-canvas-nav").css("position","absolute").css("padding-top",t)}void 0===e&&(e=l),d(t).on("click",function(e){var t,n;e.preventDefault(),e.stopPropagation(),t=this,i&&!a?(n="ak-anim ak-anim-pulse infinite",d(t).addClass(n),r(function(e){setTimeout(function(){l.toggleClass(o),d(t).removeClass(n)},50)})):(l.toggleClass(o),a||(a=!0,s()))}),i&&(e=function(){d(window).width()<992&&!a&&r()},d(t).on("mouseover",function(e){e.preventDefault(),r()}),e(),t=_debounce(e,500),u.on("resize",t)),l.hasClass("ak-drawer-always-visible")&&(c(),d(window).on("scroll",_debounce(c,5)))},setup_menu:function(e){void 0===e&&(e=d("body")),d(e,".ak-menu").superfish({popUpSelector:".sub-menu,.ak-mega-menu",speed:150,delay:500,autoArrows:!1,hoverClass:"menu-entered"})},tabbed_mega_menu:function(){d(".ak-mega-tabbed-posts li a.ak-tab-btn").on("mouseenter",function(e){e.preventDefault(),d(this).trigger("click")})},init_more_menu:function(){d(".ak-menu-more-enabled").Ak_More_Menu()},small_actions:function(){d(".ak-dropdown-button").each(function(e){var t,n=d(this),a=n.next(".ak-dropdown"),i=n.parent(),o=a.data("event")||"click";0<a.length&&(t=function(e){e.preventDefault(),i.hasClass("ak-dropdown-expanded")?(i.removeClass("ak-dropdown-expanded"),a.find("input").trigger("focus")):(d(".ak-dropdown-expanded").removeClass("ak-dropdown-expanded"),i.addClass("ak-dropdown-expanded"),a.find("input").trigger("focusout"))},i.addClass("ak-dropdown-container"),"hover"===o?(n.on("mouseenter",t),a.on("mouseleave",_debounce(function(e){i.removeClass("ak-dropdown-expanded")},100))):n.on(o,t))}),d(document).on("mouseup",function(e){d(".ak-dropdown-container").length&&0<!d(e.target).parents(".ak-dropdown-container").length&&d(".ak-dropdown-container").removeClass("ak-dropdown-expanded")}),d(".remember-label").on("click",function(){d(this).siblings("input[type=checkbox]").trigger("click")}),d(".modal-step-container .go-modal-step").on("click",function(e){e.preventDefault();var e=d(this),t=e.data("modal-step"),e=(e.parents(".modal-step-container").find(".modal-step-page").removeClass("modal-current-step"),d("."+t).addClass("modal-current-step").addClass("ak-anim ak-anim-slide-in-right"),d.magnificPopup.instance);e&&e.updateItemHTML()}),d(".ak-post-meta-comment a").on("click",function(e){e.preventDefault(),d("body,html").animate({scrollTop:d("form.comment-form").offset().top-100},1e3)}),r||d(".ak_require_login_button").on("click",function(e){e.preventDefault(),e.stopPropagation(),newsy.auth.show_login()})},init_header_sticky:function(){var n=0,a=d(".ak-header-wrap").outerHeight(),i=d(".ak-header-sticky-wrap");0<i.length&&d(window).on("scroll",function(){var e,t=i.find(".ak-sticky-bar");0<t.length&&(e=d(this).scrollTop(),a<e?(t.addClass("sticky-active"),t.css("max-width",i.outerWidth()+"px")):t.removeClass("sticky-active"),i.hasClass("sticky-smart")&&(n<e&&a<e?t.addClass("sticky-down"):t.removeClass("sticky-down"),n=e))})},init_sticky_columns:function(){var e,t,n;!d.fn.theiaStickySidebar||d(window).width()<768||(e=p?50:10,d(".ak-header-sticky-wrap").hasClass("sticky-simple")&&(e+=d(".ak-sticky-bar").outerHeight()),0<d(".ak-post-sticky-wrap").length&&(e+=d(".ak-post-sticky-wrap .ak-bar").outerHeight()),t={additionalMarginTop:e,additionalMarginBottom:10,updateSidebarHeight:!1},l.hasClass("sticky-sidebars-active")&&d(".sidebar-column").theiaStickySidebar(t),d(".sticky-column").theiaStickySidebar(t),n=!1,d(window).on("resize",function(){window.innerWidth<=780?(n=!0,d(".sticky-column, .sidebar-column").theiaStickySidebar("destroy").removeAttr("style")):n&&(d(".sticky-column, .sidebar-column").theiaStickySidebar(t),n=!1)}))},back_to_top:function(){var e=d(".ak-back-top");newsy_loc.back_to_top&&0!==e.length&&(e.on("click",function(){d("body,html").animate({scrollTop:0},700)}),d(window).on("scroll",function(){300<d(this).scrollTop()?e.addClass("is-visible"):e.removeClass("is-visible")}))},woo_commerce:function(){0!==d(".ak-header-cart").length&&(d(".ak-header-cart").each(function(){d(this).hover(function(){d(this).addClass("open")},function(){d(this).removeClass("open")})}),d(document.body).on("added_to_cart removed_from_cart wc_fragments_refreshed",function(e,t,n){void 0!==t["total-items-in-cart"]&&1<=d(".ak-header-cart").length?d(".ak-header-cart .count").html(t["total-items-in-cart"]):setTimeout(function(){var t=0;d(".ak-header-cart .cart_list>li").each(function(){var e=d(this).find(".quantity").text().split(" Ã")[0].trim();t+=parseInt(e)}),d(".ak-header-cart .count").text(t)},300)}))}},newsy.main.init(),window.newsy.auth={xhr:null,captcha:[],headerTitle:null,defaultHeaderTitle:null,show_login:function(e){var t=this;t.defaultHeaderTitle||(t.defaultHeaderTitle=d("#userModal .modal-login-page h3").text()),e&&(t.headerTitle=e),d.magnificPopup.open(Object.assign({items:{src:"#userModal"}},t.popup_config(),{})),t.init_form()},init:function(){var e=d(".menu-login-user-icon");this.show_popup(e)},show_popup:function(e){0<e.length&&e.magnificPopup(this.popup_config())},popup_config:function(){var a=this;return{type:"inline",removalDelay:200,showCloseBtn:!0,midClick:!0,easing:"ease-in-out",callbacks:{beforeOpen:function(){a.headerTitle&&d("#userModal .modal-login-page h3").html(a.headerTitle),this.st.mainClass="mfp-zoom-in",a.init_form()},close:function(){a.defaultHeaderTitle&&(d("#userModal .modal-login-page h3").html(a.defaultHeaderTitle),a.headerTitle=null)},change:function(){var e,t,n;
1this.content.find(".modal-message").html(""),newsy_loc.enable_recaptcha&&(e=(t=this.content.find(".modal-current-step")).find(".g-recaptcha"),t=t.find("form").data("type"),n=e.data("sitekey"),d(e).hasClass("loaded")?grecaptcha.reset(a.captcha[t]):(a.captcha[t]=grecaptcha.render(e.get(0),{sitekey:n}),d(e).addClass("loaded")))}}}},init_form:function(){var a=this,i=d("#userModal"),o=i.find(".modal-message");i.find(".ak-loading-box").html(newsy_loc.loader_html),i.find("form").each(function(){var n=this;d(n).on("submit",function(e){e.preventDefault(),o.html(""),i.addClass("ak-loading"),a.xhr=newsy.security.handle_nonce(function(){return null!==a.xhr&&a.xhr.abort(),d.ajax({url:ak_ajax_url,type:"post",dataType:"json",data:d(n).serialize()+"&nonce="+newsy.security.nonce,success:function(e){var t;e.refresh_nonce||(i.removeClass("ak-loading"),1===e.success&&(i.find(".modal-step-page").remove(),o.html("<div class='alert alert-success'>"+e.message+"</div>"),1===e.refresh&&(""!==(t=d("#redirect_to").val())?window.location=t:location.reload())),0===e.success&&(o.html("<div class='alert alert-error'>"+e.message+"</div>"),newsy_loc.enable_recaptcha&&(t=d(n).data("type"),grecaptcha.reset(a.captcha[t]))))}})})})})}},newsy.auth.init(),window.newsy.follow={container:null,init:function(e){var t=this,e=(this.container=void 0===e?d("body"):e,d(this.container));e.length&&e.on("click",".friendship-button a, .follow-wrapper a, .follow-button a",function(e){return e.preventDefault(),t.do_action(d(this)),!1})},do_action:function(n){var e,t,a,i,o,s;r?(e=n.parent(),o=n.attr("id"),t=n.attr("href"),s="",a=e.find(".ak-spinner"),i="",s=(o=o.split("-"))[0],o=o[1],t=(t=(t=t.split("?_wpnonce="))[1].split("&"))[0],d.ajax({url:newsy_loc.ajax_url,type:"post",data:{action:"bp_"+s,uid:o,_wpnonce:t},beforeSend:function(){a.length&&(n.css("display","none"),a.css("display","block"))},success:function(e){var t;e.length&&(t=n.attr("class"),i=d(e),t=t.replace(s+" ",""),i.addClass(t))}}).always(function(){n.replaceWith(i),n.css("display",""),a.css("display","none")})):newsy.auth.show_login()}},newsy.follow.init(),window.newsy.post_image_popup={container:null,init:function(e){"hide"!==newsy_loc.image_popup&&(this.container=void 0===e?d("body"):e,e=".ak-post-featured a[href],.ak-post-content > figure > a[href$='.gif'],.ak-post-content > figure > a[href$='.jpg'],.ak-post-content > figure > a[href$='.png'],.ak-post-content > figure > a[href$='.svg'],.ak-post-content .wp-block-image > figure > a[href$='.gif'],.ak-post-content .wp-block-image > figure > a[href$='.jpg'],.ak-post-content .wp-block-image > figure > a[href$='.png'],.ak-post-content .wp-block-image > figure > a[href$='.svg'],.ak-post-content .gallery a[href$='.gif'],.ak-post-content .gallery a[href$='.jpg'],.ak-post-content .gallery a[href$='.png'],.ak-post-content .gallery a[href$='.svg'],.ak-post-content .wp-block-image a[href$='.gif'],.ak-post-content .wp-block-image a[href$='.jpg'],.ak-post-content .wp-block-image a[href$='.png'],.ak-post-content .wp-block-image a[href$='.svg'],.ak-post-content .wp-block-gallery a[href$='.gif'],.ak-post-content .wp-block-gallery a[href$='.jpg'],.ak-post-content .wp-block-gallery a[href$='.png'],.ak-post-content .wp-block-gallery a[href$='.svg']","yes"===newsy_loc.gallery_popup?this.popup_magnitif_single_gallery(e):this.popup_magnitif_normal(e))},expand_magnific:function(e){d(e).magnificPopup({gallery:{enabled:!0},type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0,titleSrc:function(e){return"FIGURE"===e.el.parent().prop("tagName")?e.el.parent().find("figcaption").text():e.el.parents(".gallery-item").find(".wp-caption-text").length?e.el.parents(".gallery-item").find(".wp-caption-text").text():e.el.find("img").attr("alt")}}})},expand_magnific_gallery:function(e){this.expand_magnific(e)},popup_magnitif_single_gallery:function(e){var t=[];d(this.container).find(e).each(function(){var e=this;"IMG"===d(this).prop("tagName")?(0<d(e).data("src").length&&d(e).attr("src",d(e).data("src")),t.push(d(e).parent().get(0))):t.push(d(e).get(0))}),this.expand_magnific(t)},popup_magnitif_normal:function(e){var t=this;d(t.container).find(e).each(function(){var e=this;"IMG"===d(this).prop("tagName")?(0<d(e).data("src").length&&d(e).attr("src",d(e).data("src")),t.expand_magnific(d(e).parent().get(0))):t.expand_magnific(d(e).get(0))})}},window.newsy.post_video_sticky={container:null,init:function(e){newsy_loc.video_sticky&&(this.container=d(void 0===e?"body.single-post":e),this.sticky_init())},sticky_init:function(){var t=d(".ak-post-featured .ak-featured-media",this.container),n="ak-featured-media-sticky",a="media-no-sticky";t.find(".ak-video-player").length?d(window).on("scroll",_debounce(function(){!t.hasClass(a)&&t.offset().top+t.outerHeight(!0)<d(this).scrollTop()?(t.addClass(n),d(".media-sticky-close",t).length||(t.find(".ak-video-player").prepend('<a href="#" class="media-sticky-close"><i class="ak-icon akfi akfi-cross"></i></a>'),t.find(".media-sticky-close").off("click").on("click",function(e){e.preventDefault(),e.stopPropagation(),t.removeClass(n),t.addClass(a)}))):t.removeClass(n)},10)):d(".ak-featured-media").addClass(a)}},window.newsy.counter={xhr:null,init:function(e){void 0===e&&(e=d(".ak-article")),this.do_ajax(e)},do_ajax:function(n){var e=this,a={total_view:".ak-post-meta-views .count",total_share:".ak-post-share-top .ak-share-total .counts",total_comment:".ak-post-meta-comment a .count"};e.xhr=newsy.security.handle_nonce(function(){return null!==e.xhr&&e.xhr.abort(),d.aja
1x({url:ak_ajax_url,type:"POST",dataType:"json",data:{action:"ajax_post_counter",post_id:n.data("id"),nonce:newsy.security.nonce}}).success(function(e){e&&e.counter&&d.each(e.counter,function(e,t){a[e].length&&n.find(a[e]).text(t)})})})}},window.newsy.comment={xhr:null,container:null,init:function(e){var e=(void 0===e?l:e).find("#comments");e.length&&(this.container=e,(e=d(this.container).find(".ajax_comment_button")).length?this.init_ajax_load(e):this.init_first())},init_ajax_load:function(e){var n=this;e.on("click",function(e){e.preventDefault();var t=this;d(t).hasClass("loading")||(d(t).addClass("loading"),n.xhr=newsy.security.handle_nonce(function(){return null!==n.xhr&&n.xhr.abort(),d.ajax({url:ak_ajax_url,type:"post",dataType:"html",data:{action:"ajax_post_comments",post_id:d(n.container).data("id"),nonce:newsy.security.nonce},success:function(e){e.refresh_nonce||(d(t).after(e).remove(),n.init_first())}})}))})},init_first:function(){var t=this,e=t.container.find(".comment-section").first();t.init_tab(e.data("type")),t.container.find(".comment-tabs>li").on("click",function(e){e.preventDefault();e=d(this);e.hasClass("active")||t.init_tab(e.data("type"))})},init_tab:function(e){var t=this,n=(t.container.find(".comment-tabs>li").removeClass("active"),t.container.find(".comment-section").hide(),t.container.find('.comment-tabs>li[data-type="'+e+'"]').addClass("active"),t.container.find('.comment-section[data-type="'+e+'"]'));n.show(),n.hasClass("inited")||(t.create(e),n.addClass("inited"))},create:function(e){var t,n,a,i,o;"disqus"!==e&&"facebook"!==e&&"easycomment"!==e||(t=this.container.find('.comment-section[data-type="'+e+'"]'),n=t.data("app-id"),"disqus"==e?d("#disqus-script").length?DISQUS.reset({reload:!0}):(d("#disqus-script").remove(),(o=document.createElement("script")).id="disqus-script",o.type="text/javascript",o.async=!0,o.src="//"+n+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(o)):"facebook"==e?d("#facebook-jssdk").length?"undefined"!=typeof FB&&FB.XFBML.parse():(o=n?"&appId="+n:"",n=document,a="facebook-jssdk",i=n.getElementsByTagName("script")[0],n.getElementById(a)||((n=n.createElement("script")).id=a,n.src="//connect.facebook.net/"+newsy_loc.lang+"/sdk.js#xfbml=1&version=v2.8"+o,i.parentNode.insertBefore(n,i))):"easycomment"==e&&(window.easyComment_Domain=t.data("url"),window.easyComment_Domain&&(window.easyComment_ContentID=t.data("content-id"),window.easyComment_Title=t.data("title"),window.easyComment_Language=newsy_loc.lang.split("_")[0],window.easyComment_FooterLinks="Off",window.easyComment_userid=t.data("userid"),window.easyComment_username=t.data("username"),window.easyComment_usericon=t.data("usericon"),window.easyComment_profillink=t.data("profillink"),(a=document.createElement("script")).type="text/javascript",a.async=!0,a.src=easyComment_Domain+"/plugin/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a))))}},window.newsy.post={init:function(e){void 0===e&&(e=d(".ak-article").first()),newsy.counter.init(e),newsy.post_image_popup.init(e),newsy.comment.init(e),newsy.video&&(newsy.video.init(e),d(e).find('.wp-block-video video[src$=".gif"]').length&&d(e).find('.wp-block-video video[src$=".gif"]').each(function(){newsy.video.init_gif(this,".wp-block-video")}))}},window.newsy.post_sticky={init:function(e){void 0===e&&(e=d(".ak-article.hentry").first()),d(".ak-sticky-bar").append('<div class="ak-post-progress-bar"><span class="progress-bar"></span></div>'),this.init_header_sticky(e),this.init_sticky_items(e)},init_header_sticky:function(e){var n,a;d(e).length&&(n=d(e).position().top,0<(a=d(".ak-post-sticky-wrap")).length&&(e=_debounce(function(){var e=a.find(".ak-sticky-bar"),t=d(window).scrollTop();n<t?(e.addClass("sticky-active"),e.css("max-width",d(a).outerWidth(!0)+"px")):e.removeClass("sticky-active")},5),u.on("scroll",e)))},init_sticky_items:function(e){var t=d(".ak-post-sticky-share .ak-share-container"),n=d(".ak-post-sticky-title"),a=d(".ak-post-title",e).text(),i=d(".ak-post-share-top",e).find(".ak-share-list > .ak-share-button:not(.ak-share-toggle-button)").clone();
1n.text(a),t.html("").append(i),newsy.share&&newsy.share.init(t),newsy.post_video_sticky.init(e),this.init_progress_bar(e)},init_progress_bar:function(o){var e,s=d(".ak-post-progress-bar");0<s.length&&(e=_debounce(function(){var e=d(o).height(),t=.8*d(window).height(),n=d(window).scrollTop(),a=d(o).offset().top,n=t-a+n,i=0;e+a<t?s.find(".progress-bar").width(0):(e<n?i=100:0<n&&(i=n/e*100),s.find(".progress-bar").width(i+"%"))},1,!0),u.on("scroll",e),u.on("resize",e))}},l.hasClass("single")&&(newsy.post.init(),newsy.post_sticky.init(),newsy.post_video_sticky.init()),window.newsy.autoload={xhr:null,current_url:window.location.href,init:function(){this.xhr=null,this.content_container=".ak-post-wrapper",this.inline_container=".content-column",this.article_container_class=".ak-post-wrap",this.article_class=".ak-article",this.init_autoload_posts()},init_autoload_posts:function(e){var n=this;void 0===e&&(e=d(n.article_class));d(e).hasClass("autoload-initted")||(d(e).addClass("autoload-initted"),d(e).waypoint(_debounce(function(e){var t;"down"===e?(n.init_current_post(this.element,e),n.ajax(this.element)):0<(t=0===(t=d(this.element).prev(n.article_class)).length?d(this.element).parents(n.article_container_
1class).prev(n.article_container_class).find(n.article_class):t).length&&n.init_current_post(t,e)},10,!0),{offset:"0%",context:window}))},init_current_post:function(e,t){var n=d(e),a=n.data("url"),i=n.data("title");n.data("id");if(this.current_url!==a){this.current_url=a;try{history&&history.pushState&&(history.pushState(null,i,a),document.title=i)}catch(e){console.log(e)}newsy.post_sticky.init_sticky_items(e)}},ajax:function(e){var t,n,a,i;this.xhr||(t=this,n=d(e).hasClass("autoload-loaded"),a=d(e).data("autoload"),i=d(e).data("template"),n||null!==t.xhr||(d(e).addClass("autoload-loaded"),t.handle_loading(!0),t.xhr=newsy.security.handle_nonce(function(){return d.ajax({url:ak_ajax_url,type:"POST",dataType:"json",data:{nonce:newsy.security.nonce,action:"ajax_post_autoload",post_id:a,template:i}}).success(function(e){e.refresh_nonce||t.handle_response(e)}).always(function(){t.xhr=null,t.handle_loading(!1)})})))},handle_response:function(e){var t,n=this;n.handle_loading(!1),e.success&&(t=e.inline?d(n.inline_container):d(n.content_container),""!==e.html&&(t.append(e.html),e=t.find(".ak-article").last(),newsy.main.init_sticky_columns(),newsy.post.init(e),d(document).trigger("newsy-ajax-load",e),n.init_autoload_posts(e),n.xhr=null))},handle_loading:function(e){e?d(this.content_container).append('<div class="ak-autoload-loading">'+newsy_loc.loader_html+"</div>"):d(".ak-autoload-loading").remove()}},l.hasClass("ak-post-autoload")&&newsy.autoload.init()}(jQuery),function(){for(var e,t=function(){},n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],a=n.length,i=window.console=window.console||{};a--;)i[e=n[a]]||(i[e]=t)}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.