jQuery(function(t){if("undefined"!=typeof ezTOC){function e(){if(0!==t(".ez-toc-widget-container.ez-toc-affix").length){var e=30;void 0!==ezTOC.scroll_offset&&(e=parseInt(ezTOC.scroll_offset)),t(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:e})}if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1===parseInt(ezTOC.smooth_scroll)&&t("a.ez-toc-link").on("click",function(){var e=t(this),i="",o=e.prop("hostname"),a=e.prop("pathname"),s=e.prop("search"),l=e.prop("hash");if(a.length>0&&"/"!==a.charAt(0)&&(a="/"+a),window.location.hostname===o&&window.location.pathname===a&&window.location.search===s&&""!==l){if(0===t(i='[id="'+l.replace("#","")+'"]').length&&(console.log("ezTOC scrollTarget Not Found: "+i),i=""),void 0!==ezTOC.scroll_offset)var c=-1*ezTOC.scroll_offset;else{var n=t("#wpadminbar");c=n.length>0&&n.is(":visible")?-30:0}i&&t.smoothScroll({scrollTarget:i,offset:c,beforeScroll:u,afterScroll:function(){p(),v()}})}}),void 0!==ezTOC.visibility_hide_by_default){var i=t("ul.ez-toc-list"),o=t("a.ez-toc-toggle"),a=ezTOC.visibility_hide_by_default,s="ezTOC_hidetoc";o.css("display","flex"),Cookies?(1==Cookies.get("ezTOC_hidetoc")?o.data("visible",!1):o.data("visible",!0),Cookies.remove("ezTOC_hidetoc")):(o.data("visible",!0),document.cookie=s+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"),a&&o.data("visible",!1),o.data("visible")||i.hide(),o.on("click",function(e){e.preventDefault();let o=document.querySelector("#ez-toc-container");if(o)o.classList.toggle("toc_close");else{let s=document.querySelector(".ez-toc-widget-container");s.classList.toggle("toc_close")}t(this).data("visible")?(t(this).data("visible",!1),Cookies&&(a?Cookies.set("ezTOC_hidetoc",null,{path:"/"}):Cookies.set("ezTOC_hidetoc","1",{expires:30,path:"/"})),i.hide("fast")):(t(this).data("visible",!0),Cookies&&(a?Cookies.set("ezTOC_hidetoc","1",{expires:30,path:"/"}):Cookies.set("ezTOC_hidetoc",null,{path:"/"})),i.show("fast"))})}var l,c,n,r=t("span.ez-toc-section").toArray(),h=(l=r,l.reduce(function(e,i){var o;return e[i.id]=t('.ez-toc-widget-container .ez-toc-list a[href="#'+t(o=i).attr("id")+'"]'),e},{})),f=t.map(h,function(t,e){return t}),d=(c=5,void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(c=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30),n=t("#wpadminbar"),n.length&&(c+=n.height()),c);function p(){var e,i,o,a,s,l=(e=d,i=r,o=t(window).scrollTop()+e+1,a=i[0],s=o-t(a).offset().top,i.forEach(function(e){var i=o-t(e).offset().top;i>0&&i'+g+""),$=t("#ez-toc-height-test"),z=$.height(),$.remove(),z-u.children("ul").first().height()),t("#ez-toc-active-height").remove(),t('").appendTo("head")}}function v(){r.length>0&&t(".ez-toc-widget-container").length&&t(window).on("load resize scroll",p)}function u(){t(window).off("load resize scroll",p)}v()}ezTOC.init=function(){e()},e()}function i(t,e){document.cookie=t+"="+e+"; Path=/;"}});