(()=>{"use strict";Object.defineProperty(function(e,t){let s=t(".betterdocs-category-grid-inner-wrapper.masonry",e);if(0!=s?.length){var a=window.matchMedia("(max-width: 767px)"),r=window.matchMedia("(max-width: 1024px)");s.each((e,t)=>{var s;let o=0,c=0;switch(!0){case a.matches:o=t.getAttribute("data-column_mobile"),c=t.getAttribute("data-column_space_mobile");break;case r.matches:o=t.getAttribute("data-column_tab"),c=t.getAttribute("data-column_space_tab");break;default:o=t.getAttribute("data-column_desktop"),c=null!==(s=t.getAttribute("data-column_space_desktop"))&&void 0!==s?s:15}c=parseInt(c),o=parseInt(o);let i=t.querySelectorAll(".betterdocs-single-category-wrapper"),n=(o-1)*c;t&&(i.forEach(e=>{e.style.width=`calc((100% - ${n}px) / ${o})`}),new Masonry(t,{itemSelector:".betterdocs-single-category-wrapper",percentPosition:!0,gutter:c}))})}else(t(".betterdocs-single-category-wrapper",e)||[]).each((e,t)=>{t.removeAttribute("style")})},"name",{value:"default",configurable:!0}),window.addEventListener("load",function(){var e=jQuery;let t=e(".betterdocs-sidebar-content .betterdocs-category-grid-wrapper .betterdocs-single-category-wrapper.active"),s=e(".betterdocs-sidebar-content .betterdocs-category-grid-wrapper .betterdocs-single-category-wrapper .betterdocs-category-header"),a=e(".betterdocs-nested-category-title");e(".betterdocs-nested-category-title a").on("click",function(e){e.preventDefault()}),t.addClass("show").find(".betterdocs-body").css("display","block"),t.siblings().find(".betterdocs-body").css("display","none"),s.on("click",function(e){e.preventDefault();let t=jQuery(e.target).closest(".betterdocs-single-category-wrapper");t.find(".betterdocs-body").slideToggle(),t.addClass("active").toggleClass("show").siblings().removeClass("active").find(".betterdocs-body").slideUp()}),a.on("click",function(t){t.preventDefault(),e(this).children(".toggle-arrow").toggle(),e(this).next(".betterdocs-nested-category-list").hasClass("active")?e(this).next(".betterdocs-nested-category-list").slideUp("fast","swing",function(){e(this).toggleClass("active")}):e(this).next(".betterdocs-nested-category-list").slideDown("fast","swing",function(){e(this).toggleClass("active")})})})})();