(o=>{var n=o(window),c=[],p=[],i=!1,h=0,g={top:0,right:0,bottom:0,left:0};function s(){++h;var i,s,l,u,d,e=n.scrollTop(),t=n.scrollLeft(),r=t+n.width(),a=e+n.height(),e=(i=e+g.top,s=r+g.right,l=a+g.bottom,u=t+g.left,d=o(),o.each(c,function(e,t){var r=t.offset().top,a=t.offset().left,o=a+t.width(),n=r+t.height();s{var t=e.History=e.History||{},a=e.jQuery;if(void 0!==t.Adapter)throw new Error("History.js Adapter has already been loaded...");t.Adapter={bind:function(e,t,r){a(e).bind(t,r)},trigger:function(e,t,r){a(e).trigger(t,r)},extractEventData:function(e,t,r){return t&&t.originalEvent&&t.originalEvent[e]||r&&r[e]||void 0},onDomLoad:function(e){a(e)}},void 0!==t.init&&t.init()})(window),((o,r)=>{var s=o.console||r,l=o.document,a=o.navigator,n=!1,i=o.setTimeout,u=o.clearTimeout,d=o.setInterval,c=o.clearInterval,p=o.JSON,h=o.alert,g=o.History=o.History||{},f=o.history;try{(n=o.sessionStorage).setItem("TEST","1"),n.removeItem("TEST")}catch(e){n=!1}if(p.stringify=p.stringify||p.encode,p.parse=p.parse||p.decode,void 0!==g.init)throw new Error("History.js Core has already been loaded...");g.init=function(e){return void 0!==g.Adapter&&(void 0!==g.initCore&&g.initCore(),void 0!==g.initHtml4&&g.initHtml4(),!0)},g.initCore=function(e){if(void 0!==g.initCore.initialized)return!1;var t;if(g.initCore.initialized=!0,g.options=g.options||{},g.options.hashChangeInterval=g.options.hashChangeInterval||100,g.options.safariPollInterval=g.options.safariPollInterval||500,g.options.doubleCheckInterval=g.options.doubleCheckInterval||500,g.options.disableSuid=g.options.disableSuid||!1,g.options.storeInterval=g.options.storeInterval||1e3,g.options.busyDelay=g.options.busyDelay||250,g.options.debug=g.options.debug||!1,g.options.initialTitle=g.options.initialTitle||l.title,g.options.html4Mode=g.options.html4Mode||!1,g.options.delayInit=g.options.delayInit||!1,g.intervalList=[],g.clearAllIntervals=function(){var e,t=g.intervalList;if(null!=t){for(e=0;e{for(var e=3,t=l.createElement("div"),r=t.getElementsByTagName("i");(t.innerHTML="\x3c!--[if gt IE "+ ++e+"]>",">").replace(" & "," & ")}catch(e){}return l.title=r,g},g.queues=[],g.busy=function(e){var r;return void 0!==e?g.busy.flag=e:void 0===g.busy.flag&&(g.busy.flag=!1),g.busy.flag||(u(g.busy.timeout),g.busy.timeout=i(r=function(){var e,t;if(!g.busy.flag)for(e=g.queues.length-1;0<=e;--e)0!==(t=g.queues[e]).length&&(t=t.shift(),g.fireQueueItem(t),g.busy.timeout=i(r,g.options.busyDelay))},g.options.busyDelay)),g.busy.flag},g.busy.flag=!1,g.fireQueueItem=function(e){return e.callback.apply(e.scope||g,e.args||[])},g.pushQueue=function(e){return g.queues[e.queue||0]=g.queues[e.queue||0]||[],g.queues[e.queue||0].push(e),g},g.queue=function(e,t){return"function"==typeof e&&(e={callback:e}),void 0!==t&&(e.queue=t),g.busy()?g.pushQueue(e):g.fireQueueItem(e),g},g.clearQueue=function(){return g.busy.flag=!1,g.queues=[],g},g.stateChanged=!1,g.doubleChecker=!1,g.doubleCheckComplete=function(){return g.stateChanged=!0,g.doubleCheckClear(),g},g.doubleCheckClear=function(){return g.doubleChecker&&(u(g.doubleChecker),g.doubleChecker=!1),g},g.doubleCheck=function(e){return g.stateChanged=!1,g.doubleCheckClear(),g.bugs.ieDoubleCheck&&(g.doubleChecker=i(function(){return g.doubleCheckClear(),g.stateChanged||e(),!0},g.options.doubleCheckInterval)),g},g.safariStatePoll=function(){var e=g.extractState(g.getLocationHref());if(!g.isLastSavedState(e))return e||g.createStateObject(),g.Adapter.trigger(o,"popstate"),g},g.back=function(e){return!1!==e&&g.busy()?(g.pushQueue({scope:g,callback:g.back,args:arguments,queue:e}),!1):(g.busy(!0),g.doubleCheck(function(){g.back(!1)}),f.go(-1),!0)},g.forward=function(e){return!1!==e&&g.busy()?(g.pushQueue({scope:g,callback:g.forward,args:arguments,queue:e}),!1):(g.busy(!0),g.doubleCheck(function(){g.forward(!1)}),f.go(1),!0)},g.go=function(e,t){var r;if(0{var u="#main.site-main",d="h1.entry-title",c="nav.post-navigation",p="div#comments",h="yes",n=window.location.href,g=0,f=!1,o=astra.show_comments||"Show Comments",S=astra.edit_post_url||"",s=astra.site_url||"";function y(e){e=l(e);0!==e.length&&e.each(function(e){var t,r,a=l(this);0===a.find(".ast-show-comments-data").length&&(t=a.find(".comments-count-wrapper"),r='
',a.find(".comment-respond").hide(),0

'+t.find(".comments-title").text()+"

"),r=r+'
'+o+"
",a.find(".no-comments").hide(),a.prepend(r))})}function v(){l(".post-divider").off("scrollSpy:enter",e),l(".post-divider").off("scrollSpy:exit",t),l(".post-divider").on("scrollSpy:enter",e),l(".post-divider").on("scrollSpy:exit",t),l(".post-divider").scrollSpy()}function e(){r(l(this))}function t(){r(l(this))}function r(e){var e=l(e),t=e.attr("data-url"),r=e.attr("data-title"),a=e.attr("data-post-id"),o=e.offset(),i=l(document).scrollTop();if(o.top-i<200&&n!=t&&(n=t,History.pushState(null,r,t),0"+e+"");e=t.html();var e=l('
'+e),r=e.find(d),t=l(t).find("article").attr("id");void 0!==t&&""!==t&&(t=t.replace("post-",""));let a={ADD_TAGS:["iframe"],ADD_ATTR:["src","width","height","frameborder","allow","allowfullscreen"],ALLOW_DATA_ATTR:!1};e?.each((e,t)=>{t=DOMPurify.sanitize(t,a);l(u).append(t)}),"yes"===h&&y(p),l('hr[data-url="'+s+'"]').attr("data-title",r.text()).attr("data-post-id",t),v(),g+=1,l("body").trigger("astra-post-loaded",[r.text(),s,t,g])})}}}l(document).ready(function(){var e,t=!1;(t="undefined"!=typeof wp?void 0!==wp.customize:t)||-1')),v(),l("body").on("click",".ast-show-comments",function(e){var t=l(this).closest(".ast-show-comments-data");t.hide(),t.siblings().show()}),l("body").on("asta-post-changed",function(e,t,r,a,o,n){var i;"undefined"==typeof pageTracker&&"undefined"==typeof _gaq&&"undefined"==typeof ga&&"undefined"==typeof __gaTracker||(i=new RegExp(s,"gi"),r=r.replace(i,""),"undefined"!=typeof pageTracker&&null!==pageTracker&&pageTracker._trackPageview(r),"undefined"!=typeof _gaq&&null!==_gaq&&_gaq.push(["_trackPageview",r]),"undefined"!=typeof ga&&null!==ga&&ga("send","pageview",r),"undefined"!=typeof __gaTracker&&null!==__gaTracker&&__gaTracker("send","pageview",r),"undefined"!=typeof gtag&&null!==gtag&>ag("event","page_view",{page_title:t,page_path:r}))}))})})(jQuery);