{"version":3,"sources":["jsdelivr-header.js","/npm/hexo-theme-next@8.20.0/source/js/comments.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACJA,OAAO,iBAAiB,iBAAiB,KACvC,IAAI,YAAE,GAAgB,OAAO,SAI7B,GAHI,OAAO,SAAS,UAClB,EAAc,aAAa,QAAQ,oBAAsB,GAEvD,EAAa,CACf,MAAM,EAAY,SAAS,cAAc,oBAAoB,OACzD,GACF,EAAU,OAEd,KAEE,OAAO,SAAS,SAClB,OAAO,iBAAiB,cAAc,IACpC,IAAK,EAAM,OAAO,QAAQ,wCAAyC,OACnE,MAAM,EAAe,EAAM,OAAO,UAAU,GAC5C,aAAa,QAAQ,kBAAmB,EAAa","file":"/npm/hexo-theme-next@8.20.0/source/js/comments.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hexo-theme-next@8.20.0/source/js/comments.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 CONFIG */\n\nwindow.addEventListener('tabs:register', () => {\n  let { activeClass } = CONFIG.comments;\n  if (CONFIG.comments.storage) {\n    activeClass = localStorage.getItem('comments_active') || activeClass;\n  }\n  if (activeClass) {\n    const activeTab = document.querySelector(`a[href=\"#comment-${activeClass}\"]`);\n    if (activeTab) {\n      activeTab.click();\n    }\n  }\n});\nif (CONFIG.comments.storage) {\n  window.addEventListener('tabs:click', event => {\n    if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;\n    const commentClass = event.target.classList[1];\n    localStorage.setItem('comments_active', commentClass);\n  });\n}\n"]}