{"version":3,"sources":["jsdelivr-header.js","/npm/docsify-count@1.0.1/dist/countable.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,eAAiB,CACnB,WAAU,EACV,SAAS,QACT,MAAM,iBAIR,SAAS,OAAO,EAAM,GACpB,IAAI,EACJ,EAAK,WAAW,SAAU,GAGxB,OADA,EAAa,EAAQ,MAAM,iDAAiD,OACrE,CACT,GACA,EAAK,UAAU,SAAU,EAAM,GAC7B,EAAK,mDACqB,eAAe,uBAClC,eAAe,eACpB,iDAA4D,EAChE,EACF,CAGA,OAAO,SAAgB,MAAI,OAAO,OAAO,eAAgB,OAAO,SAAgB,OAChF,OAAO,SAAS,QAAU,GAAG,OAAO,OAAQ,OAAO,SAAS","file":"/npm/docsify-count@1.0.1/dist/countable.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/docsify-count@1.0.1/dist/countable.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var defaultOptions = {\n  countable:true,\n  fontsize:'0.9em',\n  color:'rgb(90,90,90)'\n};\n\n// Docsify plugin functions\nfunction plugin(hook, vm) {\n  let wordsCount;\n  hook.beforeEach(function (content) {\n    // 每次开始解析 Markdown 内容时调用\n    wordsCount = content.match(/[^\\s,\\#,\\*,\\-,\\|,\\~,\\[,\\],\\(,\\),\\>,\\<,\\!,\\?]/g).length;\n    return content;\n  });\n  hook.afterEach(function (html, next) {\n    next(`<div><span style=\"\n    float: right;font-size: ${defaultOptions.fontsize};\n   color:${defaultOptions.color};\n\">全文${wordsCount}字</span><div style=\"clear: both\"></div></div>` + html)\n  });\n}\n\n// Docsify plugin options\nwindow.$docsify['count'] = Object.assign(defaultOptions, window.$docsify['count']);\nwindow.$docsify.plugins = [].concat(plugin, window.$docsify.plugins);\n"]}