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KAAK,MAAM,uBACb,EAEA,SAAS,iBAAiB,oBAAoB,KAC5C,KAAK,KAAK,iBACV,KAAK,KAAK,UACV,KAAK,KAAK,QAAQ","file":"/npm/hexo-theme-next@8.13.0/source/js/next-boot.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hexo-theme-next@8.13.0/source/js/next-boot.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* global NexT, CONFIG */\n\nNexT.boot = {};\n\nNexT.boot.registerEvents = function() {\n\n  NexT.utils.registerScrollPercent();\n  NexT.utils.registerCanIUseTag();\n\n  // Mobile top menu bar.\n  document.querySelector('.site-nav-toggle .toggle').addEventListener('click', event => {\n    event.currentTarget.classList.toggle('toggle-close');\n    const siteNav = document.querySelector('.site-nav');\n    if (!siteNav) return;\n    siteNav.style.setProperty('--scroll-height', siteNav.scrollHeight + 'px');\n    document.body.classList.toggle('site-nav-on');\n  });\n\n  document.querySelectorAll('.sidebar-nav li').forEach((element, index) => {\n    element.addEventListener('click', () => {\n      NexT.utils.activateSidebarPanel(index);\n    });\n  });\n\n  window.addEventListener('hashchange', () => {\n    const tHash = location.hash;\n    if (tHash !== '' && !tHash.match(/%\\S{2}/)) {\n      const target = document.querySelector(`.tabs ul.nav-tabs li a[href=\"${tHash}\"]`);\n      target && target.click();\n    }\n  });\n};\n\nNexT.boot.refresh = function() {\n\n  /**\n   * Register JS handlers by condition option.\n   * Need to add config option in Front-End at 'scripts/helpers/next-config.js' file.\n   */\n  CONFIG.prism && window.Prism.highlightAll();\n  CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img', {\n    background: 'var(--content-bg-color)'\n  });\n  CONFIG.lazyload && window.lozad('.post-body img').observe();\n  CONFIG.pangu && window.pangu.spacingPage();\n\n  CONFIG.exturl && NexT.utils.registerExtURL();\n  NexT.utils.wrapTableWithBox();\n  NexT.utils.registerCopyCode();\n  NexT.utils.registerTabsTag();\n  NexT.utils.registerActiveMenuItem();\n  NexT.utils.registerLangSelect();\n  NexT.utils.registerSidebarTOC();\n  NexT.utils.registerPostReward();\n  NexT.utils.registerVideoIframe();\n};\n\nNexT.boot.motion = function() {\n  // Define Motion Sequence & Bootstrap Motion.\n  if (CONFIG.motion.enable) {\n    NexT.motion.integrator\n      .add(NexT.motion.middleWares.header)\n      .add(NexT.motion.middleWares.postList)\n      .add(NexT.motion.middleWares.sidebar)\n      .add(NexT.motion.middleWares.footer)\n      .bootstrap();\n  }\n  NexT.utils.updateSidebarPosition();\n};\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  NexT.boot.registerEvents();\n  NexT.boot.refresh();\n  NexT.boot.motion();\n});\n"]}