sinzmise-cetastories 2.0.0-1729391855695 → 2.0.0-1730024687183

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/404/index.html +1 -1
  2. package/about/index.html +1 -1
  3. package/album/index.html +1 -1
  4. package/archives/2021/12/index.html +1 -1
  5. package/archives/2021/index.html +1 -1
  6. package/archives/2022/12/index.html +1 -1
  7. package/archives/2022/index.html +1 -1
  8. package/archives/2023/01/index.html +1 -1
  9. package/archives/2023/02/index.html +1 -1
  10. package/archives/2023/03/index.html +1 -1
  11. package/archives/2023/04/index.html +1 -1
  12. package/archives/2023/07/index.html +1 -1
  13. package/archives/2023/08/index.html +1 -1
  14. package/archives/2023/09/index.html +1 -1
  15. package/archives/2023/10/index.html +1 -1
  16. package/archives/2023/11/index.html +1 -1
  17. package/archives/2023/12/index.html +1 -1
  18. package/archives/2023/index.html +1 -1
  19. package/archives/2023/page/2/index.html +1 -1
  20. package/archives/2023/page/3/index.html +1 -1
  21. package/archives/2024/01/index.html +1 -1
  22. package/archives/2024/02/index.html +1 -1
  23. package/archives/2024/03/index.html +1 -1
  24. package/archives/2024/04/index.html +1 -1
  25. package/archives/2024/05/index.html +1 -1
  26. package/archives/2024/06/index.html +1 -1
  27. package/archives/2024/07/index.html +1 -1
  28. package/archives/2024/08/index.html +1 -1
  29. package/archives/2024/09/index.html +1 -1
  30. package/archives/2024/10/index.html +1 -1
  31. package/archives/2024/index.html +1 -1
  32. package/archives/2024/page/2/index.html +1 -1
  33. package/archives/index.html +1 -1
  34. package/archives/page/2/index.html +1 -1
  35. package/archives/page/3/index.html +1 -1
  36. package/archives/page/4/index.html +1 -1
  37. package/archives/page/5/index.html +1 -0
  38. package/assets/algolia/algoliasearch.js +2 -1
  39. package/assets/algolia/algoliasearchLite.js +2 -1
  40. package/atom.xml +114 -204
  41. package/bbs/bbs.html +1 -1
  42. package/bbs/bbs.js +2 -1
  43. package/bbs/index.html +1 -1
  44. package/categories/index.html +1 -1
  45. package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
  46. package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
  47. package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
  48. package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
  49. package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
  50. package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
  51. package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
  52. package/charts/index.html +1 -1
  53. package/comments/index.html +1 -1
  54. package/css/custom2.css +2 -1
  55. package/css/first.css +2 -0
  56. package/css/pace/big-counter.css +2 -1
  57. package/css/pace/corner-indicator.css +2 -1
  58. package/css/pace/flash.css +2 -1
  59. package/css/pace/mac-osx.css +2 -1
  60. package/css/pace/pace.css +2 -1
  61. package/css/plane.css +2 -1
  62. package/css/style.css +2 -0
  63. package/css/tags.css +2 -1
  64. package/essay/index.html +1 -1
  65. package/fcircle/index.html +1 -1
  66. package/games +3831 -509
  67. package/index.html +1 -1
  68. package/js/app.js +2 -0
  69. package/js/autoload.js +2 -1
  70. package/js/ceta/fancybox.css +2 -0
  71. package/js/ceta/fancybox.umd.js +2 -0
  72. package/js/ceta/iconfontInkss.js +2 -0
  73. package/js/ceta/lazyload.min.js +1 -0
  74. package/js/ceta/message.css +2 -0
  75. package/js/ceta/message.js +2 -0
  76. package/js/ceta/pjax.min.js +1 -0
  77. package/js/clock.js +2 -1
  78. package/js/kslink.js +2 -1
  79. package/js/newyear.js +2 -1
  80. package/js/plane.js +2 -1
  81. package/js/plugins/aplayer.js +2 -0
  82. package/js/plugins/parallax.js +2 -0
  83. package/js/plugins/rightMenus.js +2 -0
  84. package/js/plugins/tags/contributors.js +2 -0
  85. package/js/plugins/tags/friends.js +2 -0
  86. package/js/plugins/tags/sites.js +2 -0
  87. package/js/search/algolia.js +2 -0
  88. package/js/search/hexo.js +2 -0
  89. package/js/search/meilisearch.js +2 -0
  90. package/js/txmap.js +2 -1
  91. package/link/index.html +1 -1
  92. package/load.html +1 -1
  93. package/maps/assets/algolia/algoliasearch.js.map +1 -0
  94. package/maps/assets/algolia/algoliasearchLite.js.map +1 -0
  95. package/maps/bbs/bbs.js.map +1 -0
  96. package/maps/css/custom2.css.map +1 -0
  97. package/maps/css/first.css.map +1 -0
  98. package/maps/css/pace/big-counter.css.map +1 -0
  99. package/maps/css/pace/corner-indicator.css.map +1 -0
  100. package/maps/css/pace/flash.css.map +1 -0
  101. package/maps/css/pace/mac-osx.css.map +1 -0
  102. package/maps/css/pace/pace.css.map +1 -0
  103. package/maps/css/plane.css.map +1 -0
  104. package/maps/css/style.css.map +1 -0
  105. package/maps/css/tags.css.map +1 -0
  106. package/maps/js/app.js.map +1 -0
  107. package/maps/js/autoload.js.map +1 -0
  108. package/maps/js/ceta/fancybox.css.map +1 -0
  109. package/maps/js/ceta/fancybox.umd.js.map +1 -0
  110. package/maps/js/ceta/iconfontInkss.js.map +1 -0
  111. package/maps/js/ceta/message.css.map +1 -0
  112. package/maps/js/ceta/message.js.map +1 -0
  113. package/maps/js/clock.js.map +1 -0
  114. package/maps/js/kslink.js.map +1 -0
  115. package/maps/js/newyear.js.map +1 -0
  116. package/maps/js/plane.js.map +1 -0
  117. package/maps/js/plugins/aplayer.js.map +1 -0
  118. package/maps/js/plugins/parallax.js.map +1 -0
  119. package/maps/js/plugins/rightMenus.js.map +1 -0
  120. package/maps/js/plugins/tags/contributors.js.map +1 -0
  121. package/maps/js/plugins/tags/friends.js.map +1 -0
  122. package/maps/js/plugins/tags/sites.js.map +1 -0
  123. package/maps/js/search/algolia.js.map +1 -0
  124. package/maps/js/search/hexo.js.map +1 -0
  125. package/maps/js/search/meilisearch.js.map +1 -0
  126. package/maps/js/txmap.js.map +1 -0
  127. package/maps/sw.js.map +1 -0
  128. package/maps/weichuncai/css/style.css.map +1 -0
  129. package/maps/weichuncai/js/common.js.map +1 -0
  130. package/maps/weichuncai/js/jquery.js.map +1 -0
  131. package/maps/weichuncai/wcc-config.js.map +1 -0
  132. package/music/index.html +1 -1
  133. package/package.json +1 -1
  134. package/page/2/index.html +1 -1
  135. package/page/3/index.html +1 -1
  136. package/page/4/index.html +1 -1
  137. package/page/5/index.html +1 -0
  138. package/posts/10021/index.html +5 -1
  139. package/posts/10045/index.html +1 -1
  140. package/posts/10733/index.html +1 -1
  141. package/posts/10996/index.html +5 -1
  142. package/posts/12779/index.html +1 -1
  143. package/posts/13624/index.html +1 -1
  144. package/posts/15688/index.html +1 -1
  145. package/posts/15748/index.html +5 -1
  146. package/posts/15799/index.html +1 -1
  147. package/posts/15842/index.html +5 -1
  148. package/posts/16107/index.html +1 -1
  149. package/posts/18063/index.html +1 -1
  150. package/posts/20412/index.html +1 -1
  151. package/posts/21375/index.html +1 -1
  152. package/posts/22945/index.html +4 -1
  153. package/posts/23021/index.html +1 -1
  154. package/posts/27531/index.html +5 -1
  155. package/posts/28536/index.html +1 -1
  156. package/posts/28733/index.html +1 -1
  157. package/posts/29196/index.html +1 -1
  158. package/posts/38917/index.html +1 -1
  159. package/posts/38964/index.html +1 -1
  160. package/posts/42487/index.html +1 -1
  161. package/posts/42580/index.html +1 -1
  162. package/posts/45875/index.html +1 -1
  163. package/posts/46640/index.html +1 -1
  164. package/posts/48762/index.html +1 -1
  165. package/posts/50710/index.html +1 -1
  166. package/posts/52677/index.html +1 -1
  167. package/posts/53662/index.html +1 -1
  168. package/posts/54386/index.html +1 -1
  169. package/posts/54481/index.html +1 -1
  170. package/posts/54787/index.html +5 -1
  171. package/posts/56467/index.html +1 -1
  172. package/posts/57692/index.html +1 -1
  173. package/posts/58203/index.html +1 -1
  174. package/posts/61417/index.html +1 -1
  175. package/posts/61712/index.html +1 -0
  176. package/posts/646/index.html +1 -1
  177. package/posts/64856/index.html +1 -1
  178. package/posts/64935/index.html +1 -1
  179. package/search.xml +248 -335
  180. package/seas/index.html +1 -1
  181. package/sw.js +2 -1
  182. package/tags/Flash/347/233/270/345/205/263/index.html +1 -1
  183. package/tags/Steam/346/270/270/346/210/217/index.html +1 -1
  184. package/tags/Windows/350/275/257/344/273/266/index.html +1 -1
  185. package/tags/index.html +1 -1
  186. package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
  187. package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
  188. package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +1 -1
  189. package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +1 -1
  190. package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +1 -1
  191. package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
  192. package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
  193. package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +1 -1
  194. package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
  195. package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
  196. package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +1 -1
  197. package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +1 -1
  198. package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
  199. package/update/index.html +1 -1
  200. package/weichuncai/css/style.css +2 -1
  201. package/weichuncai/js/common.js +2 -1
  202. package/weichuncai/js/jquery.js +2 -1
  203. package/weichuncai/wcc-config.js +2 -1
  204. package/css/index.css +0 -1
  205. package/css/plugins/bootstrap.min.css +0 -6
  206. package/css/plugins/bootstrap.row.css +0 -1
  207. package/css/plugins/font-awesome.min.css +0 -1
  208. package/failure.ico +0 -0
  209. package/fonts/webfonts/fa-brands-400.woff2 +0 -0
  210. package/fonts/webfonts/fa-regular-400.woff2 +0 -0
  211. package/fonts/webfonts/fa-solid-900.woff2 +0 -0
  212. package/img/404.jpg +0 -0
  213. package/img/avatar.jpg +0 -0
  214. package/img/banner.png +0 -0
  215. package/img/block.jpg +0 -0
  216. package/img/favicon.svg +0 -39
  217. package/js/main.js +0 -1
  218. package/js/plugins/danmu.js +0 -1
  219. package/js/plugins/local_search.js +0 -1
  220. package/js/plugins/typing.js +0 -1
  221. package/serviceworker.js +0 -1
package/js/main.js DELETED
@@ -1 +0,0 @@
1
- (()=>{var e=[],t={q:e=>document.querySelector(e),qa:e=>document.querySelectorAll(e),gId:e=>document.getElementById(e),debounce(e,t,n){let i;return function(){let o=arguments;clearTimeout(i),i=setTimeout((()=>{i=null,n||e.apply(this,o)}),t),n&&!i&&e.apply(this,o)}},wrap(e,t,n={}){if("string"==typeof t){t=document.createElement(t);for(let[e,i]of Object.entries(n))t.setAttribute(e,i)}e.parentNode.insertBefore(t,e),t.appendChild(e)},urlFor:e=>/^(#|\/\/|http(s)?:)/.test(e)?e:(window.ASYNC_CONFIG.root+e).replace(/\/{2,}/g,"/"),siblings:(e,t)=>[...e.parentNode.children].filter((n=>t?n!==e&&n.matches(t):n!==e)),message(t,n="success"){let i=document.createElement("div");i.className=`trm-message ${n}`,i.style.top=30+60*e.length+"px",i.innerText=t,document.body.append(i),e.push(i),setTimeout((()=>{e=e.filter((e=>e!==i)),document.body.removeChild(i),e.forEach(((e,t)=>{e.style.top=30+60*t+"px"}))}),2e3)},loadScript:(e,t)=>new Promise(((n,i)=>{if(t)n();else{let t=document.createElement("script");t.src=e,t.setAttribute("async","false"),t.onerror=i,t.onload=()=>n(),document.head.appendChild(t)}})),runScriptBlock(e){let t=e.text||e.textContent||e.innerHTML||"",n=document.head||document.querySelector("head")||document.documentElement,i=document.createElement("script");if(t.match("document.write"))return console&&console.log&&console.log("Script contains document.write. Can’t be executed correctly. Code skipped "),!1;try{i.appendChild(document.createTextNode(t))}catch{i.text=t}n.appendChild(i),n.contains(i)&&n.removeChild(i)},icons:(e,t="font")=>"symbol"===t?`<svg class="symbol-icon " aria-hidden="true"><use xlink:href="#${e}"></use></svg>`:`<i class="iconfont ${e}"></i>`,diffDate:(e,t=!1)=>{let n,i=new Date,o=new Date(e),r=i.getTime()-o.getTime(),s=36e5,a=24*s;if(t){let e=r/(30*a),t=r/a,i=r/s,l=r/6e4;n=e>12?o.toISOString().slice(0,10):e>=1?parseInt(e.toString())+" "+window.ASYNC_CONFIG.date_suffix.month:t>=1?parseInt(t.toString())+" "+window.ASYNC_CONFIG.date_suffix.day:i>=1?parseInt(i.toString())+" "+window.ASYNC_CONFIG.date_suffix.hour:l>=1?parseInt(l.toString())+" "+window.ASYNC_CONFIG.date_suffix.min:window.ASYNC_CONFIG.date_suffix.just}else n=parseInt((r/a).toString());return n},getRandomItem(e){if(Array.isArray(e)){if(0===e.length)return;return e[Math.floor(Math.random()*e.length)]}return e},scrollBarWidth(){let e=document.createElement("div");e.className="async-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);let t=e.offsetWidth;e.style.overflow="scroll";let n=document.createElement("div");n.style.width="100%",e.appendChild(n);let i=n.offsetWidth;return e.parentNode.removeChild(e),t-i},clickoutside:(e,n)=>!n.includes(e)&&(!e.parentElement||t.clickoutside(e.parentElement,n)),isInViewPortOfOne(e){let n=t.viewPortHeight(),i=t.scrollTop()+n,{bottom:o,top:r,height:s}=e.getBoundingClientRect();return o>0&&r<i?{is:!0,ratio:r<0?Math.abs(r/s):0}:{is:!1}},scrollTop(){let e=void 0!==window.pageXOffset,t="CSS1Compat"===(document.compatMode||"");return e?window.pageYOffset:t?document.documentElement.scrollTop:document.body.scrollTop},viewPortHeight:()=>window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},n=(e=600)=>{let n=t.q("#trm-scroll-container"),i=t.q(".trm-mode-swich-animation-frame");return new Promise((t=>{i.classList.add("trm-active"),n.style.opacity="0",setTimeout((()=>{setTimeout((()=>{i.classList.remove("trm-active"),n.style.opacity="1"}),e),t()}),e)}))},i=(e="--theme-bg-color")=>{let n=getComputedStyle(document.documentElement).getPropertyValue(e),i=t.q('meta[name="theme-color"]');n&&i&&(i.content=n)},o={pageLoading:(e=600)=>new Promise((n=>{t.q("html").classList.add("is-animating"),t.q(".trm-scroll-container").style.opacity="0",setTimeout((()=>{t.q("html").classList.remove("is-animating"),t.q(".trm-scroll-container").style.opacity="1",n()}),e)})),themeLoading:n,switchSingleColumn:()=>{document.body.classList.toggle("trm-single-column")},switchReadMode:()=>{let e=document.body,n=document.createElement("button");n.type="button",n.title=window.ASYNC_CONFIG.i18n.exit_read_mode,n.className="trm-exit-readmode trm-glow",n.innerHTML=t.icons(window.ASYNC_CONFIG.icons.close,window.ASYNC_CONFIG.icontype);let i=()=>new Promise((e=>{let n=document.getElementById("article-container");if(n){let i=Array.from(n.children);for(let n=0;n<i.length;n++){let o=i[n],r=t.isInViewPortOfOne(o);if(r.is)return void e({el:o,ratio:r.ratio})}e()}else e()})),o=e=>{if(e&&e.ratio>0){let{top:n,height:i}=e.el.getBoundingClientRect(),o=e.ratio*i+n+t.scrollTop();window.scrollTo({top:o})}},r=()=>{i().then((t=>{e.classList.remove("trm-read-mode"),n.removeEventListener("click",r),n.remove(),o(t)}))};i().then((t=>{e.classList.add("trm-read-mode"),e.appendChild(n),n.addEventListener("click",r),o(t)}))},switchThemeMode:e=>{n().then((()=>{let n="style-dark"===e?"add":"remove";t.q(".trm-mode-swich-animation").classList[n]("trm-active"),document.documentElement.classList[n]("dark"),localStorage.setItem("theme-mode",e),i(),"function"==typeof window.changeGiscusTheme&&window.changeGiscusTheme()}))},setThemeColor:i,switchToc:(e,n,i)=>{let o=t.q("#post-toc");o&&!o.classList.contains("fixed")&&(void 0===e&&(e=!o.classList.contains("active")),e&&(n&&i?(i+o.clientHeight>window.innerHeight&&(i=Math.max(window.innerHeight-o.clientHeight,0)),n+o.clientWidth>window.innerWidth&&(n=Math.max(window.innerWidth-o.clientWidth,0)),o.style.left=`${n}px`,o.style.top=`${i}px`,o.style.right="unset",o.style.bottom="unset"):(o.style.removeProperty("left"),o.style.removeProperty("top"),o.style.removeProperty("right"),o.style.removeProperty("bottom"))),e?o.classList.add("active"):o.classList.remove("active"))}},r=class{constructor(e){this.name="HeadPlugin",this.isSwupPlugin=!0,this.defaultOptions={persistTags:!1,persistAssets:!1,specialTags:!1},this.getHeadAndReplace=()=>{let e=this.getHeadChildren(),t=this.getNextHeadChildren();this.replaceTags(e,t)},this.getHeadChildren=()=>document.head.children,this.getNextHeadChildren=()=>{let e=this.swup.cache.getCurrentPage().originalContent.replace("<head",'<div id="swupHead"').replace("</head>","</div>"),t=document.createElement("div");t.innerHTML=e;let n=t.querySelector("#swupHead").children;return t.innerHTML="",t=null,n},this.replaceTags=(e,t)=>{let n=document.head,i=Boolean(document.querySelector("[data-swup-theme]")),o=this.getTagsToAdd(e,t,i),r=this.getTagsToRemove(e,t);r.reverse().forEach((e=>{n.removeChild(e.tag)})),o.forEach((e=>{n.insertBefore(e.tag,n.children[e.index+1]||null)})),this.swup.log(`Removed ${r.length} / added ${o.length} tags in head`)},this.compareTags=(e,t)=>e.outerHTML===t.outerHTML,this.getTagsToRemove=(e,t)=>{let n=[];for(let i=0;i<e.length;i++){let o=null;for(let n=0;n<t.length;n++)if(this.compareTags(e[i],t[n])){o=n;break}null==o&&null===e[i].getAttribute("data-async-theme")&&!this.isMatchesTag(e[i],this.options.persistTags)&&n.push({tag:e[i]})}return n},this.getTagsToAdd=(e,t,n)=>{let i=[];for(let o=0;o<t.length;o++){let r=null;for(let n=0;n<e.length;n++)if(this.compareTags(e[n],t[o])){r=n;break}null==r&&!this.isMatchesTag(t[o],this.options.specialTags)&&i.push({index:n?o+1:o,tag:t[o]})}return i},this.isMatchesTag=(e,t=this.options.persistTags)=>"function"==typeof t?t(e):"string"==typeof t?e.matches(t):Boolean(t),this.updateHtmlLangAttribute=()=>{let e=document.documentElement,t=(new DOMParser).parseFromString(this.swup.cache.getCurrentPage().originalContent,"text/html").documentElement.lang;e.lang!==t&&(this.swup.log(`Updated lang attribute: ${e.lang} > ${t}`),e.lang=t)},this.options={...this.defaultOptions,...e},this.options.persistAssets&&!this.options.persistTags&&(this.options.persistTags="link[rel=stylesheet], script[src], style")}mount(){this.swup.on("contentReplaced",this.getHeadAndReplace),this.swup.on("contentReplaced",this.updateHtmlLangAttribute)}unmount(){this.swup.off("contentReplaced",this.getHeadAndReplace),this.swup.off("contentReplaced",this.updateHtmlLangAttribute)}},s=class{constructor(e={}){this.name="ScriptPlugin",this.isSwupPlugin=!0,this.defaultOptions={selectors:"script[data-swup-reload-script]"},this.getScriptAndInsert=()=>{let e=this.getNextScriptChildren();e.length&&(async e=>{let n=Array.from(document.scripts);for(let i=0;i<e.length;i++){let o=e[i];o.src?n.findIndex((e=>e.src===o.src&&!e.dataset.reset))<0&&await this.loadScript(o):t.runScriptBlock(o)}})(e)},this.options={...this.defaultOptions,...e}}mount(){this.swup.on("contentReplaced",this.getScriptAndInsert)}unmount(){this.swup.off("contentReplaced",this.getScriptAndInsert)}loadScript(e){return new Promise(((t,n)=>{let i=document.createElement("script");for(let{name:t,value:n}of(o=e.attributes,Array.prototype.slice.call(o)))i.setAttribute(t,n);var o;i.textContent=e.textContent,i.setAttribute("async","false"),i.onload=()=>{t(),document.body.contains(i)&&document.body.removeChild(i)},i.onerror=n,document.body.appendChild(i)}))}getNextScriptChildren(){let e=this.swup.cache.getCurrentPage().originalContent.replace("<body",'<div id="swupBody"').replace("</body>","</div>"),t=document.createElement("div");t.innerHTML=e;let n=t.querySelector("#swupBody").querySelectorAll(this.options.selectors);return t.innerHTML="",t=null,n}};function a(){window.Fancybox&&(window.Fancybox.bind("[data-fancybox]"),window.Fancybox.bind('[data-fancybox="light"],[data-fancybox="article"]',{groupAll:!0}),window.Fancybox.bind('[data-fancybox="dark"],[data-fancybox="article"]',{groupAll:!0}),window.Fancybox.defaults.Hash=!1)}function l(){window.Swiper&&new window.Swiper(".trm-slideshow",{slidesPerView:1,effect:"fade",parallax:!0,autoplay:!0,speed:1400})}function c(){window.Fancybox&&t.qa("#article-container img:not(.no-fancybox)").forEach((e=>{if(!e.parentNode.dataset.fancybox){let n="article";e.classList.contains("trm-light-icon")?n="light":e.classList.contains("trm-dark-icon")&&(n="dark"),t.wrap(e,"div",{"data-src":e.dataset.src||e.src,"data-fancybox":n})}}))}function d(e=!1){let n=t.q("#trm-swich"),i=t.q(".trm-mode-swich-animation"),r=t.q(".trm-mode-swich-animation-frame");if(e){let e="style-dark"==(localStorage.getItem("theme-mode")||window.ASYNC_CONFIG.theme.default),t=e?"add":"remove";i.classList[t]("trm-active"),r.classList.remove("trm-active"),o.setThemeColor(),n&&(n.checked=e)}n&&n.addEventListener("change",(function(){o.switchThemeMode(this.checked?"style-dark":"style-light")}))}function u(){let e=t.q(".trm-banner-cover"),n=t.q(".trm-sidebar"),i=t.q("#trm-back-top"),r=t.q("#scroll-triger"),s=t.q(".trm-fixed-container"),a=new IntersectionObserver((e=>{e.forEach((({isIntersecting:e,target:t})=>{e&&(t.classList.add("trm-active-el"),a.unobserve(t))}))}),{threshold:[0,1],rootMargin:"0px 0px -40px 0px"}),l=e=>window.scrollTo({top:0,behavior:e?"smooth":"auto"}),c=function(){let r=t.scrollTop(),{scrollHeight:a,clientHeight:l}=document.documentElement,c=r>500?"add":"remove";null==s||s.classList[c]("offset");let u=parseInt((r/(a-l)*100).toString());i&&(i.style.backgroundSize=`100% ${u}%`);let m=r>=70?"add":"remove";n&&(n.classList[m]("fixed"),d()),e&&(e.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, ${Math.min(r/3,100)}, 0, 1)`),o.switchToc(!1)},d=function(){n&&(window.innerWidth>992&&n.classList.contains("fixed")?(n.style.left=n.parentElement.offsetLeft+20+"px",n.style.width=n.parentElement.clientWidth-40+"px"):(n.style.left="unset",n.style.width="auto"))},u=function(){let e=t.q(".trm-banner");e&&window.scrollTo({top:e.clientHeight-20,behavior:"smooth"})},m=new MutationObserver((()=>d()));t.qa(".trm-scroll-animation").forEach((e=>e&&a.observe(e))),c(),d(),m.observe(document.body,{attributeFilter:["style","class"]}),null==i||i.addEventListener("click",l),null==r||r.addEventListener("click",u),window.addEventListener("scroll",c),window.addEventListener("resize",d),document.addEventListener("swup:contentReplaced",(()=>{a.disconnect(),null==i||i.removeEventListener("click",l),null==r||r.removeEventListener("click",u),window.removeEventListener("scroll",c),window.removeEventListener("resize",d),l(),m.disconnect()}))}function m(e=2e3){let n=(e,t,i,o)=>{(i+=t)>=o?e.innerText=o.toString():(e.innerText=parseInt(i.toString()).toString(),requestAnimationFrame((()=>n(e,t,i,o))))};t.qa(".trm-counter").forEach((t=>{let i=Number(t.innerText);if(!isNaN(i)){n(t,i/(e/16),0,i)}}))}function p(){let{i18n:e,toc:n,icons:i,icontype:r}=window.ASYNC_CONFIG,s=t.q("#post-toc"),a=t.q(".post-toc-btn");if(s){let l=s.querySelector("#post-toc-top"),c=s.querySelector(".trm-post-toc-header");l.addEventListener("click",(function(){s.classList.contains("fixed")?(s.classList.remove("fixed","active"),l.innerHTML=e.sticky):(s.classList.add("fixed"),l.innerHTML=t.icons(i.close,r))})),s.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();let n=e.target,i=n.getAttribute("href");if(i=i?i.replace(/^#/,""):n.parentElement.getAttribute("href").replace(/^#/,""),!i)return;let o=document.querySelector(`[id="${i}"]`);if(!o)return;let r=o.getBoundingClientRect().top+t.scrollTop();return window.scrollTo({top:r-110,behavior:"smooth"}),!1})),c.addEventListener("mousedown",(function(e){if(!s.classList.contains("fixed"))return;let t=c.getBoundingClientRect(),n=e.clientX,i=e.clientY,o=!0;document.onmousemove=function(e){if(o){let o=e.clientX,r=e.clientY;s.style.left=o-(n-t.x)+"px",s.style.top=r-(i-t.y)+"px",s.style.right="unset",s.style.bottom="unset",s.style.opacity=".6"}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,s.style.removeProperty("opacity")}})),n.post_title&&s.querySelectorAll(".trm-toc-link").forEach((e=>{let n=e.getAttribute("href").replace(/^#/,""),s=t.q(`[id="${n}"]`);if(!s)return;let a=document.createElement("span");a.className="trm-toc-icon",a.innerHTML=t.icons(i.toc_tag,r),a.onclick=function(e){return o.switchToc(!0,e.clientX,e.clientY),e.preventDefault(),e.stopPropagation(),!1},s.appendChild(a)}));let d=e=>{s.classList.contains("fixed")||(t.clickoutside(e.target,[s,a])?s.classList.remove("active"):o.switchToc())};window.addEventListener("click",d),document.addEventListener("swup:contentReplaced",(()=>{window.removeEventListener("click",d)}))}}function h(){let{i18n:e,highlight:n,icons:i,icontype:o}=window.ASYNC_CONFIG,r=n.copy,s=n.lang,a=n.height_limit,l=r||s,c="prismjs"===n.plugin,d="mac"===n.title,u=c?'pre[class*="language-"]':"figure.highlight",m=t.qa(u);if(!(l||a||m.length))return;let p=function(){try{let n=this.parentNode.parentNode,i=n.querySelector(".code");if(i||(i=n.querySelector("table")),i||(i=n.querySelector("code")),!i)return;navigator.clipboard.writeText(i.innerText),t.message(e.copy_success)}catch{t.message(e.copy_failure,"warning")}},h=function(){let e=this.classList.contains("expand-done"),n=t.scrollTop(),i=this.parentElement.clientHeight;this.classList.toggle("expand-done");let o=this.parentElement.clientHeight;if(e){let e=i-o;if(e<t.viewPortHeight())return;window.scrollTo({top:n-e})}};t.qa(u).forEach((e=>{let u=document.createDocumentFragment(),m=document.createElement("div");if(m.className="code-tools "+(l&&d?"mac-style":"default-style"),s){let t="";c?t=e.getAttribute("data-language")?e.getAttribute("data-language"):"Code":(t=e.getAttribute("class").split(" ")[1],("plain"===t||void 0===t)&&(t="Code"));let n=document.createElement("span");n.className="code-lang",n.innerText=t,m.append(n)}if(r){let e=document.createElement("span");e.className="copy-button",e.innerHTML=t.icons(i.copy,o),e.addEventListener("click",p),m.append(e)}if(a&&e.offsetHeight>n.height_limit+50){let e=document.createElement("div");e.innerHTML=t.icons(i.double_arrows,o),e.className="code-expand-btn",e.addEventListener("click",h),u.append(e)}if(u.append(m),c){t.wrap(e,"figure",{class:"highlight"}),e.parentNode.insertBefore(u,e);let n=e.querySelector(".caption,caption");n&&e.parentNode.appendChild(n)}else e.insertBefore(u,e.querySelector("table"))}))}function g(){t.qa(".trm-tabs .trm-tab > button").forEach((function(e){e.addEventListener("click",(function(){let e=this.parentNode;if(!e.classList.contains("active")){let n=e.parentNode.nextElementSibling,i=t.siblings(e,".active")[0];i&&i.classList.remove("active"),e.classList.add("active");let o=this.getAttribute("data-href").replace("#","");[...n.children].forEach((e=>{e.id===o?e.classList.add("active"):e.classList.remove("active")}))}}))}))}function f(){let e=t.qa(".fj-gallery");e.length&&(e.forEach((e=>{e.querySelectorAll("img").forEach((e=>{e.loading="eager",t.wrap(e,"div",{class:"fj-gallery-item","data-src":e.dataset.src||e.src,"data-fancybox":"gallery"})}))})),t.loadScript(window.ASYNC_CONFIG.plugin.flickr_justified_gallery,window.fjGallery).then((()=>{e.forEach((e=>{window.fjGallery(e,{itemSelector:".fj-gallery-item",rowHeight:220,gutter:4,onJustify:function(){this.$container.style.opacity="1"}})}))})))}function w(){let{notice_outdate:e,i18n:n}=window.ASYNC_CONFIG;if(e){let i=t.diffDate(window.PAGE_CONFIG.postUpdate);if(i>=e.limit_day){let t=document.createElement("div");t.className=`post-outdate-notice ${e.position}`,t.textContent=n.notice_outdate_message.replace("undefined",i.toString());let o=document.getElementById("article-container");"top"===e.position?o.insertBefore(t,o.firstChild):o.appendChild(t)}}}function y(){if(window.ASYNC_CONFIG.covers&&window.PAGE_CONFIG.isHome){let e=window.ASYNC_CONFIG.covers;t.qa("div[data-random-img]").forEach((n=>{let i=t.getRandomItem(e);i+=i.includes("?")?`&v=${Math.random()}`:`?v=${Math.random()}`,i&&(n.style.backgroundImage=`url(${i})`)}))}}function v(){t.q(".trm-menu-btn").addEventListener("click",(function(){t.q(".trm-menu-btn,.trm-right-side").classList.toggle("trm-active")}))}function C(){var e;let t=window.ASYNC_CONFIG.live_time;if(null!=t&&t.start_time){let n=new Date(t.start_time),i=(new Date).getTime()-n.getTime(),o=864e5,r=Math.floor(i/o),s=document.querySelector(".blog-run-long");s&&(s.innerHTML=null==(e=null==t?void 0:t.prefix)?void 0:e.replace("undefined",`<span class="trm-accent-color"> ${r} </span>`))}}function b(){(function(){let e=e=>console.log(e,"color: white; background: #0078E7; padding:5px 0;margin: 0 0 2px 0;border-radius: 4px 0 0 4px;","padding: 4px;border:1px solid #0078E7;border-radius: 0 4px 4px 0; background: linear-gradient(70deg, #e3f9eb, #d1dbff);");e(`%c 🚀 Hexo-Theme-Async ${"0.0.0"==window.ASYNC_CONFIG.theme_version?"Github":window.ASYNC_CONFIG.theme_version} %c https://github.com/MaLuns/hexo-theme-async `),e("%c 📑 Hexo-Theme-Async Docs %c https://hexo-theme-async.imalun.com ")})(),o.pageLoading(),function(){if(window.ASYNC_CONFIG&&window.ASYNC_CONFIG.favicon.visibilitychange){window.originTitle=document.title;let e,n=Array.from(t.qa('[rel="icon"]')),i=n.map((e=>e.href));document.addEventListener("visibilitychange",(function(){document.hidden?(n.forEach((e=>{e.href=t.urlFor(window.ASYNC_CONFIG.favicon.hidden)})),document.title=window.ASYNC_CONFIG.favicon.hideText||window.ASYNC_CONFIG.favicon.hide_text,clearTimeout(e)):(n.forEach(((e,t)=>{e.href=i[t]})),document.title=(window.ASYNC_CONFIG.favicon.showText||window.ASYNC_CONFIG.favicon.show_text)+window.originTitle,e=setTimeout((function(){document.title=window.originTitle}),2e3))}))}}(),window.PAGE_CONFIG.isPost&&w(),f(),c(),h(),g(),window.ASYNC_CONFIG.swup&&function(){let e=[];e.push(new r({specialTags:"#trm-switch-style"})),e.push(new s);let t={containers:["#trm-dynamic-content"],animateHistoryBrowsing:!0,linkSelector:".trm-menu a:not([data-no-swup]), .trm-anima-link:not([data-no-swup])",animationSelector:'[class="trm-swup-animation"]',plugins:e};new window.Swup(t)}(),v(),d(!0),m(),u(),l(),a(),p(),function(){if(window.ASYNC_CONFIG.creative_commons){let{author:e}=window.ASYNC_CONFIG,{i18n:t,creative_commons:n}=window.ASYNC_CONFIG,i=function(i){let o=i.clipboardData||window.clipboardData;if(!o)return;let r=window.getSelection().toString();if(r){i.preventDefault();let s=document.getElementById("post-author");s&&(e=s.innerText.replace("\n",""));let a=location.href,l=document.getElementById("original-link");l&&(a=l.innerText.replace("\n",""));let c=`\n\n${t.author}${e}\n${t.copyright_link}${a}\n${t.copyright_license_title}${t.copyright_license_content.replace("undefined","CC"+n.license.toUpperCase()+" "+("zero"==n.license?"1.0":"4.0"))}`;o.setData("text/plain",r+c)}};document.addEventListener("copy",i)}}(),y(),C(),window.ASYNC_CONFIG.swup&&document.addEventListener("swup:contentReplaced",(function(){let e=t.gId("async-page-config");e&&t.runScriptBlock(e),window.PAGE_CONFIG.isPost&&w(),v(),document.body.classList.remove("trm-read-mode"),C(),f(),c(),h(),g(),t.q(".trm-scroll-container").style.opacity="1",d(!0),m(),u(),l(),a(),p(),y()}))}window.asyncFun=o,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",b):b()})();
@@ -1 +0,0 @@
1
- (()=>{var t=new class{constructor(t){this.box=null,this.boxSize={width:0,height:0},this.rows=0,this.dataList=[],this.indexs=[],this.idMap={},this.avatar=!1,this.speed=20,this.height=36,this.gapWidth=20,this.gapHeight=20,this.delayRange=5e3,this.align="center",this.animates=new Map,this.stageAnimates=new Map,this.timeouts=new Map,this.update(t)}_divisor(t){let i=.5;switch(t){case"half":i=.5;break;case"top":i=1/3;break;case"full":i=1}return i}_initBarrageList(){if(!this.box.querySelector(".barrage-list")){let t=document.createElement("div");t.className="barrage-list",t.setAttribute("style",`gap:${this.gapHeight}px;justify-content: ${this.align};display: flex;height: 100%;flex-direction: column;overflow: hidden;`);for(let i=0;i<this.rows;i++){let e=document.createElement("div");e.className=`barrage-list-${i}`,e.setAttribute("style",`height:${this.height}px;position:relative;`),t.appendChild(e),this.dataList[i]=[]}this.box.appendChild(t)}}_pushOne(t){let i=this.dataList.map((t=>t.length)),e=Math.min(...i),s=i.findIndex((t=>t===e));this.dataList[s].push(t)}_pushList(t){this._sliceRowList(this.rows,t).forEach(((t,i)=>{this.dataList[i]?this.dataList[i]=this.dataList[i].concat(...t):this.dataList[i]=t}))}_sliceRowList(t,i){let e=[],s=Math.round(i.length/t);for(let a=0;a<t;a++){let h=[];h=a===t-1?i.slice(a*s):0===a?i.slice(0,s):i.slice(a*s,(a+1)*s),e.push(h)}return e}_dispatchItem(t,i,e){if(!t||this.idMap[t.id])return;this.idMap[t.id]=t.id;let s=this.box.querySelector(`.barrage-list-${i}`),a=document.createElement("div");a.className="danmu-item",a.setAttribute("style",` height:${this.height}px; padding: ${this.avatar?"4px 8px 4px 4px":"4px 8px"}; display:inline-flex; position: absolute; right: 0; background-color: var(--trm-danmu-bg-color,#fff); color: var(--trm-danmu-color,#000); border-radius: 32px; align-items: center; transform: translateX(100%);`),a.innerHTML=`\n\t\t\t\t\t${this.avatar?`<img class="danmu-avatar" style="display: inline-block;width:${this.height-8}px;height:${this.height-8}px;border-radius:50%;margin-right:6px;" src="${t.avatar}">`:""}\n\t\t\t\t\t<div class="danmu-text" style="text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;">${t.text}</div>`,s.appendChild(a);let{width:h}=a.getBoundingClientRect();a.style.width=`${h}px`;let r=(this.boxSize.width+h)/this.speed*1e3,n=(h+this.gapWidth)/(this.boxSize.width+h)*r;if(e<this.dataList[i].length){let t=a.animate({transform:["translateX(100%)",`translateX(-${this.gapWidth}px)`]},{duration:n});t.onfinish=()=>{this.stageAnimates.delete(t),this.indexs[i]=e+1,this._dispatchItem(this.dataList[i][e+1],i,e+1)},this.stageAnimates.set(t,t)}let l=a.animate({transform:["translateX(100%)",`translateX(-${this.boxSize.width}px)`]},{duration:r,fill:"forwards"});l.onfinish=()=>{this.animates.delete(l),a.remove(),a=null},this.animates.set(l,l)}_run(){let t=this.dataList.length;for(let i=0;i<t;i++){let t=this.dataList[i],e=this.indexs[i];if(!e&&0!==e&&(e=this.indexs[i]=0),t[e]){let s=setTimeout((()=>{this._dispatchItem(t[e],i,e),this.timeouts.delete(s)}),Math.random()*this.delayRange);this.timeouts.set(s,s)}}}pause(){return this.animates.forEach((t=>t.pause())),this.stageAnimates.forEach((t=>t.pause())),this}play(){return this.animates.forEach((t=>t.play())),this.stageAnimates.forEach((t=>t.play())),this}cancel(){return this.animates.forEach((t=>t.cancel())),this.stageAnimates.forEach((t=>t.cancel())),this.timeouts.forEach((t=>clearTimeout(t))),this.animates.clear(),this.stageAnimates.clear(),this.timeouts.clear(),this}reset(){return this.dataList=[],this.indexs=[],this.idMap={},this.cancel(),this.box.querySelector(".barrage-list")&&this.box.removeChild(this.box.querySelector(".barrage-list")),this}update(t){let i=document.querySelector(t.el);if(!i)throw new Error(`未找到容器 ${t.el}`);{let e=i.getBoundingClientRect();this.box=i,this.boxSize=e,this.speed=t.speed??this.speed,this.gapWidth=t.gapWidth??this.gapWidth,this.gapHeight=t.gapHeight??this.gapHeight,this.avatar=t.avatar??this.avatar,this.height=t.height??this.height,this.delayRange=t.delayRange??this.delayRange,this.align=t.align??this.align,this.rows=parseInt((e.height*this._divisor(t.mode??"half")/(this.height+this.gapHeight)).toString()),this.reset()}return this}pushData(t){switch(this._initBarrageList(),Object.prototype.toString.apply(t)){case"[object Object]":this._pushOne(t);break;case"[object Array]":this._pushList(t)}return this._run(),this}}(window.ASYNC_CONFIG.danmu);window.danMu=async i=>{t.update(window.ASYNC_CONFIG.danmu).pushData(await i()),window.ASYNC_CONFIG.swup&&document.addEventListener("swup:contentReplaced",(async function(){t.update(window.ASYNC_CONFIG.danmu).pushData(await i())}))}})();
@@ -1 +0,0 @@
1
- (()=>{var e=(()=>{let e=null;return()=>{if(LocalSearch){if(!e){let{search:t,root:n}=window.ASYNC_CONFIG;e=new LocalSearch({path:n+t.path,top_n_per_article:t.top_n_per_article,unescape:t.unescape})}return e}}})();function t(){let{search:t,i18n:n}=window.ASYNC_CONFIG;if(t){if(!t.path)return void console.warn("`hexo-generator-searchdb` plugin is not installed!");let r=document.querySelector(".trm-search-popup"),i=document.querySelector("#trm-search-btn"),c=document.querySelector(".trm-search-btn-close"),o=document.querySelector(".trm-search-input"),s=e();t.preload&&!s.isfetched&&s.fetchData();let a=()=>{if(!s.isfetched)return;let e=o.value.trim().toLowerCase(),t=e.split(/[-\s]+/),r=document.querySelector(".trm-search-result-container"),i=document.querySelector(".trm-search-stats"),c=[];if(e.length>0&&(c=s.getResultItems(t)),c.length>0)c.sort(((e,t)=>e.includedCount!==t.includedCount?t.includedCount-e.includedCount:e.hitCount!==t.hitCount?t.hitCount-e.hitCount:t.id-e.id)),r.innerHTML=`<ul class="search-result-list">${c.map((e=>e.item)).join("")}</ul>`,i.innerHTML=n.hits.replace(/\$\{hits}/,c.length.toString());else{let t=n.empty.replace(/\$\{query}/,e);r.innerHTML=`<div class="trm-search-empty">${t}</div>`,i.innerHTML=""}},l=()=>{r.classList.add("show"),setTimeout((()=>o.focus()),500),s.isfetched||s.fetchData()},u=function(){r.classList.remove("show")},d=function(e){"Escape"===e.key&&(u(),e.preventDefault(),e.stopPropagation())},p=function(e){"Enter"===e.key&&a()};"auto"===t.trigger?o.addEventListener("input",a):o.addEventListener("keypress",p);let h=e=>{e.target===r&&u()};c.addEventListener("click",u),i.addEventListener("click",l),window.addEventListener("keydown",d),r.addEventListener("click",h),document.addEventListener("swup:contentReplaced",(()=>{i.removeEventListener("click",l),c.removeEventListener("click",u),o.removeEventListener("input",a),o.removeEventListener("keypress",p),window.removeEventListener("keydown",d),r.removeEventListener("click",h)}))}}t(),window.ASYNC_CONFIG.swup&&document.addEventListener("swup:contentReplaced",(function(){t()}))})();
@@ -1 +0,0 @@
1
- (()=>{var t=document.querySelector(".trm-typed-text"),e=window.ASYNC_CONFIG.typed_text||[];function n(t,e){if(!t||!Array.isArray(e)||Array.isArray(e)&&!e.length)return;let n,r=0,o=0,u=0;function c(){n=setInterval(i,100)}function i(){let i=e[o];0==r?(u++,u==i.length&&(r=1,clearInterval(n),setTimeout(c,3e3))):1==r&&(u--,0==u&&(u=0,r=0,o++,o==e.length&&(o=0)));let l=i.substring(0,u);t.textContent=l}c()}n(t,e),window.ASYNC_CONFIG.swup&&document.addEventListener("swup:contentReplaced",(function(){n(document.querySelector(".trm-typed-text"),e)}))})();
package/serviceworker.js DELETED
@@ -1 +0,0 @@
1
- importScripts("https://jsd.cdn.storisinz.site/npm/workbox-cdn@5.1.3/workbox/workbox-sw.js"),workbox.setConfig({modulePathPrefix:"https://jsd.cdn.storisinz.site/npm/workbox-cdn@5.1.3/workbox/"}),self.__WB_DISABLE_DEV_LOGS=!0;const{core:core,precaching:precaching,routing:routing,strategies:strategies,expiration:expiration}=workbox,{CacheFirst:CacheFirst,NetworkFirst:NetworkFirst,NetworkOnly:NetworkOnly,StaleWhileRevalidate:StaleWhileRevalidate}=strategies,{ExpirationPlugin:ExpirationPlugin}=expiration,cacheSuffixVersion="_20200610";core.setCacheNameDetails({prefix:"CetaHouseCache",suffix:"_20200610"}),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((e=>Promise.all(e.map((e=>{if(!e.includes("_20200610"))return caches.delete(e)}))))))})),core.skipWaiting(),core.clientsClaim(),routing.registerRoute(/.*(cdn.jsdelivr.net|at.alicdn.com)/,new CacheFirst({cacheName:"static-cdn_20200610",fetchOptions:{mode:"cors",credentials:"omit"},plugins:[new ExpirationPlugin({maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]})),routing.registerRoute(/\/sw.js/,new NetworkOnly),routing.registerRoute(/\/serviceworker.js/,new NetworkOnly),routing.registerRoute(/.*\.(?:png|jpg|jpeg|svg|gif|webp)/,new CacheFirst({cacheName:"static-image_20200610"})),routing.registerRoute(/.*\.(css|js)$/,new CacheFirst({cacheName:"static-js-css_20200610"})),routing.registerRoute((({url:e})=>e.hostname===location.hostname),new NetworkFirst({cacheName:"static-other_20200610",plugins:[new ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}));