!function(){var e={2339:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector(".wp-mastertoolkit__header__left__title__version__open-modal-button"),t=document.querySelector(".wp-mastertoolkit__changelog-modal"),o=document.querySelector(".wp-mastertoolkit__changelog-modal__content__close");e.addEventListener("click",(()=>{t.classList.add("show")})),o.addEventListener("click",(()=>{t.classList.remove("show")}))})()))},5366:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelectorAll(".wp-mastertoolkit__body__sections__item"),t=document.querySelectorAll(".wp-mastertoolkit__body__groups__item"),o=document.querySelector(".wp-mastertoolkit__header__right__search input");let n=null;const a=e=>{t.forEach((t=>{const o=t.dataset.key;if(e===o){if(t.classList.add("active"),"settings"===o){const e=document.querySelector("#JS-wpmastertoolkit_modal_promot");e&&e.classList.add("show")}}else t.classList.remove("active")}))},r=t=>{e.forEach((e=>{const o=e.dataset.key,n=e.classList,a=o.split(" ");"all"===t&&!n.contains("hide-in-all")||a.includes(t)?e.classList.add("show"):e.classList.remove("show")}))};(()=>{let e=window.location.hash.substr(1);""===e&&(e="all",window.location.hash=e),r(e),a(e)})(),t.forEach((e=>{e.addEventListener("click",(()=>{const t=e.dataset.key;window.location.hash=t,o.value="",r(t),a(t)}))})),o.addEventListener("keyup",(t=>{clearInterval(n),n=setInterval((()=>{window.location.hash="all",a("all");let o=t.target.value.toLowerCase();o=o.normalize("NFD").replace(/[\u0300-\u036f]/g,""),e.forEach((e=>{let t=e.dataset.title,n=e.dataset.originaltitle;(t||n)&&(t=t.toLowerCase(),t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),n=n.toLowerCase(),n=n.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t.includes(o)||n.includes(o)?e.classList.add("show"):e.classList.remove("show"))})),clearInterval(n)}),500)})),o.addEventListener("keypress",(e=>{13===e.keyCode&&e.preventDefault()}))})()))},1017:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector('.wp-mastertoolkit__header__right__save input[type="submit"]'),t=document.querySelector('.wp-mastertoolkit__save-button button[type="submit"]'),o=document.querySelector(".wp-mastertoolkit__opt-in-modal");if(o){const n=()=>{o.classList.add("show");const e=o.querySelector("#JS-wpmastertoolkit_modal_optin_checkbox"),t=document.querySelector("#JS-wpmastertoolkit_settings_optin_checkbox");e.addEventListener("change",(o=>{t.checked=e.checked}))};e.addEventListener("click",(e=>{e.preventDefault(),n()})),t.addEventListener("click",(e=>{e.preventDefault(),n()}))}})()))},1538:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector("#JS-wpmastertoolkit_modal_promot_try_now"),t=document.querySelector("#JS-wpmastertoolkit_modal_promot_try_now_hidden");e&&e.addEventListener("click",(()=>{t.click()}))})()))},3907:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector(".wrap.wp-mastertoolkit form"),t=document.querySelector(".wp-mastertoolkit__save-button");e&&t&&e.addEventListener("change",(e=>{t.classList.add("show")}))})()))}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";o(5366),o(3907),o(2339),o(1017),o(1538)}()}();