{"version":3,"sources":["jsdelivr-header.js","/npm/hexo-theme-next@8.27.0/source/js/third-party/comments/disqus.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACJA,SAAS,iBAAiB,eAAe,UAEnC,OAAO,OAAO,QACZ,OAAO,cACT,OAAO,cAAc,SAAS,CAAE,OAAO,IAGvC,KAAK,MAAM,UAAU,WAAW,OAAO,OAAO,gCAAiC,CAC7E,WAAY,CAAE,GAAI,gBAAiB,OAAO,MAK5C,OAAO,KAAK,WAGd,OAAO,cAAgB,WACrB,KAAK,KAAK,IAAM,OAAO,KAAK,UAC5B,KAAK,KAAK,WAAa,OAAO,KAAK,KACnC,KAAK,KAAK,MAAQ,OAAO,KAAK,MACI,WAA9B,OAAO,OAAO,KAAK,SACrB,KAAK,SAAW,OAAO,OAAO,KAAK,OAEvC,QACM,KAAK,MAAM,aAAa,kBAC1B,OAAO,OACT,OAAO,MAAM,CACX,QAAQ,EACR,OAAQ,OAAO,gBAGjB,KAAK,MAAM,UAAU,WAAW,OAAO,OAAO,gCAAiC,CAC7E,WAAY,CAAE,QAAS,CAAE,UAAW,KAAM,IAAI,SAGpD","file":"/npm/hexo-theme-next@8.27.0/source/js/third-party/comments/disqus.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hexo-theme-next@8.27.0/source/js/third-party/comments/disqus.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, DISQUS */\n\ndocument.addEventListener('page:loaded', async () => {\n\n  if (CONFIG.disqus.count) {\n    if (window.DISQUSWIDGETS) {\n      window.DISQUSWIDGETS.getCount({ reset: true });\n    } else {\n      // Defer loading until the whole page loading is completed\n      NexT.utils.getScript(`https://${CONFIG.disqus.shortname}.disqus.com/count.js`, {\n        attributes: { id: 'dsq-count-scr', defer: true }\n      });\n    }\n  }\n\n  if (CONFIG.page.comments) {\n    // `disqus_config` should be a global variable\n    // See https://help.disqus.com/en/articles/1717084-javascript-configuration-variables\n    window.disqus_config = function() {\n      this.page.url = CONFIG.page.permalink;\n      this.page.identifier = CONFIG.page.path;\n      this.page.title = CONFIG.page.title;\n      if (CONFIG.disqus.i18n.disqus !== 'disqus') {\n        this.language = CONFIG.disqus.i18n.disqus;\n      }\n    };\n    await NexT.utils.loadComments('#disqus_thread');\n    if (window.DISQUS) {\n      DISQUS.reset({\n        reload: true,\n        config: window.disqus_config\n      });\n    } else {\n      NexT.utils.getScript(`https://${CONFIG.disqus.shortname}.disqus.com/embed.js`, {\n        attributes: { dataset: { timestamp: '' + +new Date() } }\n      });\n    }\n  }\n\n});\n"]}