(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(event){var MAIN_MENU=document.querySelector('[data-js="main-menu"]');if(MAIN_MENU){var MENU_ITEMS=MAIN_MENU.querySelectorAll("li");MENU_ITEMS.forEach(function(item,index){item.style.opacity="0",item.style.transition="opacity 200ms ease-in-out"}),window.addEventListener("main-menu:animate-in:start",function(){MENU_ITEMS.forEach(function(item,index){var reverseIndex=MENU_ITEMS.length-1-index;setTimeout(function(){item.style.opacity="1",0===index&&setTimeout(function(){window.dispatchEvent(new CustomEvent("main-menu:animate-in:complete"))},200)},200*reverseIndex+200)})},{passive:!0}),window.addEventListener("main-menu:animate-out:start",function(){MENU_ITEMS.forEach(function(item,index){setTimeout(function(){item.style.opacity="0",index===MENU_ITEMS.length-1&&setTimeout(function(){window.dispatchEvent(new CustomEvent("main-menu:animate-out:complete"))},200)},200*index)})},{passive:!0})}})})();