mycpen-blog 0.0.0-fiuyegukhx → 0.0.0-fjccwuvoyp

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/css/index.css +1 -1
  2. package/gallery/fe32.top/download.sh +1144 -0
  3. package/js/APlayer.js +1 -1
  4. package/js/Meting.js +1 -1
  5. package/js/ali_font.js +1 -1
  6. package/js/custom.js +1 -1
  7. package/js/fcircle.js +1 -1
  8. package/js/fcircle_manage_panel.js +9 -1
  9. package/js/home_page_swiper.js +1 -1
  10. package/js/people.js +1 -1
  11. package/js/tianli_gpt.js +1 -1
  12. package/json/friend.json +1 -0
  13. package/json/link.json +1 -0
  14. package/json/tianli_gpt.json +1 -0
  15. package/manifest.json +1 -1
  16. package/music1/main.css +1 -1
  17. package/music1/manifest.json +2 -2
  18. package/package.json +1 -1
  19. package/search.xml +48 -48
  20. package/sitemap.xml +88 -88
  21. package/wechatOA/main.css +1 -1
  22. package/friend.json +0 -1
  23. package/link.json +0 -1
  24. package/song/AZA/345/276/256/345/224/261/345/233/242//344/273/216/345/210/253/345/220/216/song.lrc +0 -43
  25. package/song/S.H.E//344/270/200/347/234/274/344/270/207/345/271/264/song.lrc +0 -51
  26. package/song/The Chainsmokers/Something Just Like This/song.lrc +0 -65
  27. package/song//345/221/250/346/235/260/344/274/246//344/270/203/351/207/214/351/246/231/song.lrc +0 -39
  28. package/song//345/221/250/346/235/260/344/274/246//345/217/215/346/226/271/345/220/221/347/232/204/351/222/237/song.lrc +0 -61
  29. package/song//345/221/250/346/235/260/344/274/246//346/230/216/346/230/216/345/260/261/song.lrc +0 -46
  30. package/song//345/221/250/346/235/260/344/274/246//346/234/200/351/225/277/347/232/204/347/224/265/345/275/261/song.lrc +0 -51
  31. package/song//345/221/250/346/235/260/344/274/246//347/250/273/351/246/231/song.lrc +0 -53
  32. package/song//345/221/250/346/235/260/344/274/246//347/272/242/351/242/234/345/246/202/351/234/234/song.lrc +0 -57
  33. package/song//345/221/250/346/235/260/344/274/246//350/257/264/345/245/275/347/232/204/345/271/270/347/246/217/345/221/242/song.lrc +0 -70
  34. package/song//345/221/250/346/235/260/344/274/246//351/235/222/350/212/261/347/223/267/song.lrc +0 -45
  35. package/song//346/242/201/351/223/255/347/220/233//351/241/273/350/207/276/song.lrc +0 -71
  36. package/song//350/214/203/347/216/256/347/220/252//346/234/200/345/210/235/347/232/204/346/242/246/346/203/263/song.lrc +0 -63
  37. package/song//350/221/243/347/234/237//346/200/235/345/246/202/351/233/252/song.lrc +0 -48
package/js/custom.js CHANGED
@@ -1 +1 @@
1
- var mycpen1js={changeNavPageNameTitle(){"Mycpen - Personal Blog"==document.title?document.getElementById("page-name").innerText=document.title:document.getElementById("page-name").innerText=document.title.split(" | Mycpen")[0]},getNavRightPagePercent(){let e=document.documentElement.scrollTop||window.pageYOffset,t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,n=Math.round(e/t*100),a=document.querySelector("#percent");n<=99||(n=99),a.innerHTML=n,r=window.scrollY+document.documentElement.clientHeight,p=document.getElementById("post-comment")||document.getElementById("footer"),p.offsetTop+p.offsetHeight/2<r||90<n?(document.querySelector("#nav-totop").classList.add("long"),a.innerHTML="返回顶部"):(document.querySelector("#nav-totop").classList.remove("long"),a.innerHTML=n)},share(){let e=window.location.origin+window.location.pathname;new ClipboardJS(".share",{text:function(){return"标题:"+document.title+"\n链接:"+e}}),btf.snackbarShow("复制成功")},getFooterRandomFlink(){var e={saveData:(e,t)=>{localStorage.setItem(e,JSON.stringify({time:Date.now(),data:t}))},loadData:(e,t)=>{let n=JSON.parse(localStorage.getItem(e));if(n){let e=Date.now()-n.time;if(e<60*t*1e3&&e>-1)return n.data}return 0},randomLink:()=>{let t=e.loadData("links",30);if(t){let e=document.querySelectorAll("#friend-links-in-footer .footer-item");if(!e.length)return;for(let n=0;n<3;n++){let a;do{a=parseInt(Math.random()*t.length)}while("失联"===t[a].tag);e[n].innerText=t[a].name,e[n].href=t[a].link,e[n].title=t[a].name,e[n].target="_blank",e[n].rel="noopener external nofollow noreferrer",t.splice(a,1)}}else fetch("https://registry.npmmirror.com/mycpen-blog/0.0.0-fiuyegukhx/files/link.json").then((e=>e.json())).then((t=>{e.saveData("links",t.link_list),e.randomLink()}))}};e.randomLink()},newYearCountdownCard(){(()=>{if(clearTimeout(null),!document.querySelector("#newYear"))return;let e=new Date(`${(new Date).getFullYear()+1}-01-01 00:00:00`).getTime()/1e3,t={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){let n=new Date,a=n.getMonth()+1,o=n.getDate();a=a>9?a:"0"+a,o=o>9?o:"0"+o,document.querySelector("#newYear .today").innerHTML=n.getFullYear()+"-"+a+"-"+o+" "+t[n.getDay()];let c=e-Math.round(n.getTime()/1e3);c<0?(document.querySelector("#newYear .title").innerHTML="Happy New Year!",document.querySelector("#newYear .newYear-time").innerHTML='<span class="happyNewYear">新年快乐</span>'):(document.querySelector("#newYear .title").innerHTML=`<i class="fa-solid fa-clock"></i> <span>距离</span> ${(new Date).getFullYear()+1} <span>年</span>`,document.querySelector("#newYear .newYear-time").innerHTML=`<span class="day">${Math.ceil(c/86400)}<span class="unit">天</span></span>`)}()})()},removeBodyPaceClass:function(){$("body").removeClass(),$("body").addClass("pace-done")},toPage:function(){var e=document.querySelectorAll(".page-number"),t=parseInt(e[e.length-1].innerHTML),n=document.getElementById("toPageText"),a=parseInt(n.value);if(!isNaN(a)&&a>0&&"0"!==(""+a)[0]&&a<=t){var o,c=window.location.href.replace(/\/page\/\d+\/$/,"/");o=1===a?c:c+(c.endsWith("/")?"":"/")+"page/"+a+"/",document.getElementById("toPageButton").href=o}},listenToPageInputPress(){var e=document.getElementById("toPageText"),t=document.getElementById("toPageButton");e&&(e.addEventListener("keydown",(e=>{13===e.keyCode&&(mycpen1js.toPage(),pjax.loadUrl(t.href))})),e.addEventListener("input",(function(){""===e.value||"0"===e.value?t.classList.remove("haveValue"):t.classList.add("haveValue");var n=document.querySelectorAll(".page-number"),a=+n[n.length-1].innerHTML;+document.getElementById("toPageText").value>a&&(e.value=a)})))},showConsole:function(){document.querySelector("#console").classList.add("show"),mycpen1js.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")},hideAsideBtn:()=>{const e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},tagPageActive:function(){var e=window.location.pathname;if(/\/tags\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #tag #tag-page-tags")){$("a").removeClass("select");var n=document.getElementById("mycpen1-tags-page-cloudTags-"+t);n&&n.classList.add("select")}}},categoryPageActive:function(){var e=window.location.pathname;if(/\/categories\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #category #category-page-categories")){$("a").removeClass("select");var n=document.getElementById("mycpen1-categories-page-cloudCategories-"+t);n&&n.classList.add("select")}}},addRandomCommentInfo:function(){const e=["美丽的","英俊的","聪明的","勇敢的","可爱的","慷慨的","善良的","可靠的","开朗的","成熟的","稳重的","真诚的","幽默的","豁达的","有趣的","活泼的","优雅的","敏捷的","温柔的","温暖的","敬业的","细心的","耐心的","深沉的","朴素的","含蓄的","率直的","开放的","务实的","坚强的","自信的","谦虚的","文静的","深刻的","纯真的","朝气蓬勃的","慎重的","大方的","顽强的","迷人的","机智的","善解人意的","富有想象力的","有魅力的","独立的","好奇的","干净的","宽容的","尊重他人的","体贴的","守信的","有耐性的","有责任心的","有担当的","有远见的","有智慧的","有眼光的","有冒险精神的","有爱心的","有同情心的","喜欢思考的","喜欢学习的","具有批判性思维的","善于表达的","善于沟通的","善于合作的","善于领导的","有激情的","有幽默感的","有思想的","有个性的","有正义感的","有责任感的","有创造力的","有想象力的","有艺术细胞的","有团队精神的","有协调能力的","有决策能力的","有组织能力的","有学习能力的","有执行能力的","有分析能力的","有逻辑思维的","有创新能力的","有专业素养的","有商业头脑的"],t=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜","西红柿","洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜","西兰花","蘑菇","金针菇","苹果","香蕉","橙子","柠檬","猕猴桃","草莓","葡萄","桃子","杏子","李子","石榴","西瓜","哈密瓜","蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子","火龙果"],n=`${e[Math.floor(Math.random()*e.length)]}${t[Math.floor(Math.random()*t.length)]}`;!function(){for(var e=["#author","input[name='comname']","#inpName","input[name='author']","#ds-dialog-name","#name","input[name='nick']","#comment_author"],t=["#mail","#email","input[name='commail']","#inpEmail","input[name='email']","#ds-dialog-email","input[name='mail']","#comment_email"],a=0;a<e.length;a++){var o=document.querySelector(e[a]);if(null!=o){o.value=n,o.dispatchEvent(new Event("input")),o.dispatchEvent(new Event("change"));break}}for(var c=0;c<t.length;c++){var s=document.querySelector(t[c]);if(null!=s){s.value="visitor@mycpen.cn",s.dispatchEvent(new Event("input")),s.dispatchEvent(new Event("change"));break}}}();var a=document.getElementsByClassName("el-textarea__inner")[0];a.focus(),a.setSelectionRange(-1,-1)},owoBigfunc(){document.getElementById("post-comment")&&function(){let e=1,t="",n=document.createElement("div"),a=document.querySelector("body");n.id="owo-big",a.appendChild(n),new MutationObserver((o=>{for(let c=0;c<o.length;c++){let s=o[c].addedNodes,r="";2==s.length&&"OwO-body"==s[1].className&&(r=s[1],document.body.clientWidth<=768&&r.addEventListener("contextmenu",(e=>e.preventDefault())),r.onmouseover=o=>{e&&"IMG"==o.target.tagName&&(e=0,t=setTimeout((()=>{let e=3*o.target.clientHeight,t=3*o.target.clientWidth,c=o.x-o.offsetX-(t-o.target.clientWidth)/2,s=o.y-o.offsetY;c+t>a.clientWidth&&(c-=c+t-a.clientWidth+10),c<0&&(c=10),n.style.cssText=`display:flex; height:${e}px; width:${t}px; left:${c}px; top:${s}px;`,n.innerHTML=`<img src="${o.target.src}">`}),300))},r.onmouseout=()=>{n.style.display="none",e=1,clearTimeout(t)})}})).observe(document.getElementById("post-comment"),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){function e(){const e=document.querySelector(".aplayer-fixed .aplayer-icon.aplayer-icon-lrc");e&&(t.disconnect(),setTimeout((()=>{e.click()}),1))}const t=new MutationObserver(((t,n)=>{for(let n of t)"childList"===n.type&&e()}));t.observe(document,{childList:!0,subtree:!0})},switchDarkMode(){"light"===("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"==typeof FB&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout((()=>window.disqusReset()),200)},essayUnknownPart(){},essayReplaceAll:(e,t,n)=>e.split(t).join(n),essayDiffDate:function(e,t=!1){const n=new Date,a=new Date(e),o=n.getTime()-a.getTime(),c=36e5,s=24*c;let r;if(t){const e=o/s,t=o/c,n=o/6e4;r=o/(30*s)>=1?a.toLocaleDateString().replace(/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix.day:t>=1?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:n>=1?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just}else r=parseInt(o/s);return r},essayChangeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach((function(e){var t=e,n=t.getAttribute("datetime");t.innerText=mycpen1js.essayDiffDate(n,!0),t.style.display="inline"}))},essayReflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout((function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")}),500)},essayCommentText:function(e){var t=document.querySelector("#post-comment").offsetTop;window.scrollTo(0,t-80),"undefined"!=e&&"null"!=e||(e="好棒!"),function t(){setTimeout((()=>{var n=document.getElementsByClassName("el-textarea__inner")[0];n||t();let a=document.createEvent("HTMLEvents");a.initEvent("input",!0,!0);let o=mycpen1js.essayReplaceAll(e,"\n","\n> ");n.value="> "+o+"\n\n",n.dispatchEvent(a),n.focus(),n.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show")}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{let e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=document.getElementsByTagName("time"),t=0;t<e.length;t++){var n,a=e[t].getAttribute("datetime"),o=new Date(a),c=(new Date).getTime()-o.getTime(),s=Math.floor(c/864e5);0===s?n="最近":1===s?n="昨天":2===s?n="前天":s<=7?n=s+"天前":o.getFullYear()!==(new Date).getFullYear()?(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=o.getFullYear()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),e[t].textContent=n}},switchPostChart:function(){let e="light"===document.documentElement.getAttribute("data-theme")?"#4C4948":"rgba(255,255,255,0.7)";if(document.getElementById("posts-chart")&&postsOption)try{let t=postsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,postsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("tags-chart")&&tagsOption)try{let t=tagsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,tagsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("categories-chart")&&categoriesOption)try{let t=categoriesOption;t.title.textStyle.color=e,t.legend.textStyle.color=e,categoryParentFlag||(t.series[0].label.color=e),categoriesChart.setOption(t)}catch(e){console.log(e)}},cpRemind(){document.addEventListener("copy",(function(e){window.getSelection().toString().trim().length>0&&btf.snackbarShow("复制成功")}))},closeAboutAplayer(){if(!document.getElementById("mycpen1-about-page-tag"))try{about_page_ap.pause(),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=new Date,t=e.getMonth()+1,n=e.getDate();for(var a of["04.04","05.12","07.07","08.14","09.09","09.18","09.30","11.30","12.13"]){var o=a.split(".");if(t==o[0]&&n==o[1]){var c="grayscale(100%)";$("html").css({filter:"gray !important;",filter:"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",filter:c,"-webkit-filter":c,"-moz-filter":c,"-ms-filter":c,"-o-filter":c});break}}},console(){var e=new Date,t=console.log;queueMicrotask((function(){var n=new Date(`${atob("MDgvMjgvMjAyMiA=")}${atob("MDA6MDA6MDA=")}`),a=new Date(`${atob("MTAvMjIvMTk5OCAwMA==")}:${atob("MDA6MDA=")}`),o=new Date(`${atob("MTAvMjIvMjA=")}${atob("MjggMDA6MDA6MDA=")}`),c=new Date(`${atob("MTA=")}/${atob("MjIvMjA1OCAwMDowMA==")}${atob("OjAw")}`),s=new Date("05/23/2025 00:00:00");e.setTime(e.getTime()+250);n=[" MYCPEN BLOG ",` ${window.location.origin} `,"\n\n███╗ ███╗██╗ ██╗ ██████╗██████╗ ███████╗███╗ ██╗\n████╗ ████║╚██╗ ██╔╝██╔════╝██╔══██╗██╔════╝████╗ ██║\n██╔████╔██║ ╚████╔╝ ██║ ██████╔╝█████╗ ██╔██╗ ██║\n██║╚██╔╝██║ ╚██╔╝ ██║ ██╔═══╝ ██╔══╝ ██║╚██╗██║\n██║ ╚═╝ ██║ ██║ ╚██████╗██║ ███████╗██║ ╚████║\n╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚══════╝╚═╝ ╚═══╝\n","距 2022-08-28 上线",Math.floor(Math.abs(e-n)/1e3/60/60/24+(e-n<0?1:0)).toString().padEnd(5," "),"天","距 1998-00-00 计时",Math.floor(Math.abs(e-a)/1e3/60/60/24+(e-a<0?1:0)).toString().padEnd(5," "),"天","距 2028-00-00 计时",Math.floor(Math.abs(e-o)/1e3/60/60/24+(e-o<0?1:0)).toString().padEnd(5," "),"天","距 2058-00-00 计时",Math.floor(Math.abs(e-c)/1e3/60/60/24+(e-c<0?1:0)).toString().padEnd(5," "),"天","距 2025-05-23 计时",Math.floor(Math.abs(e-s)/1e3/60/60/24+(e-s<0?1:0)).toString().padEnd(5," "),"天 (阿里云)"];setTimeout(function(){t.apply(console,arguments)}.bind(console,"\n%c".concat(n[0],"%c").concat(n[1],"%c").concat(n[2],"%c").concat(n[3],"%c ").concat(n[4],"%c ").concat(n[5],"\n").concat(n[6],"%c ").concat(n[7],"%c ").concat(n[8],"\n").concat(n[9],"%c ").concat(n[10],"%c ").concat(n[11],"\n").concat(n[12],"%c ").concat(n[13],"%c ").concat(n[14],"\n").concat(n[15],"%c ").concat(n[16],"%c ").concat(n[17],"\n").concat("\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;","color:#fadfa3","","color:#030307","","color:#030307","","color:#030307","","color:#030307","","color:#030307",""))}))},cardRefreshTimes(){const e=(new Date).getFullYear(),t=function(e){return e%4==0&&e%100!=0||e%400==0}(e)?366:365;var n=new Date,a=new Date(`${(new Date).getFullYear()}-01-01 00:00:00`),o=document.getElementById("card-widget-schedule");o&&(asideDay=(n-a)/1e3/60/60/24,o.querySelector("#pBar_year").value=asideDay,o.querySelector("#pBar_year").max=t,yearPercentage=(asideDay/t*100).toFixed(2),displayYearPercentage="100.00"===yearPercentage?"100%":yearPercentage+"%",o.querySelector("#p_span_year").innerHTML=displayYearPercentage,o.querySelector(".schedule-r0 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(t-asideDay))/10).toFixed(1)+" / "+t,currentDateMonth=new Date,currentDateMonth.setDate(1),currentDateMonth.setHours(0,0,0,0),currentMonthTimestamp=currentDateMonth.getTime(),asideMonthDay=(n-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal.getMonth(),currentDateMonthTotal.setMonth(currentMonth+1,1),currentDateMonthTotal.setDate(0),asideMonthDays=currentDateMonthTotal.getDate(),o.querySelector("#pBar_month").value=asideMonthDay,o.querySelector("#pBar_month").max=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100).toFixed(2),displayMonthPercentage="100.00"===monthPercentage?"100%":monthPercentage+"%",o.querySelector("#p_span_month").innerHTML=displayMonthPercentage,o.querySelector(".schedule-r1 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(asideMonthDays-asideMonthDay))/10).toFixed(1)+" / "+asideMonthDays.toString().padStart(3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek.getDay(),currentWeekTimestamp=currentDateWeek.setHours(0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=n-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,o.querySelector("#pBar_week").value=asideWeekDay,weekPercentage=(asideWeekDay/7*100).toFixed(2),displayWeekPercentage="100.00"===weekPercentage?"100%":weekPercentage+"%",o.querySelector("#p_span_week").innerHTML=displayWeekPercentage,o.querySelector(".schedule-r2 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(7-asideWeekDay))/10).toFixed(1)+" / 007",currentTimeStamp=(new Date).getTime(),startOfDay=new Date,startOfDay.setHours(0,0,0,0),startOfDayTimeStamp=startOfDay.getTime(),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,o.querySelector("#pBar_day").value=asideTodayHour,dayPercentage=(100*asideToday).toFixed(2),displayDayPercentage="100.00"===dayPercentage?"100%":dayPercentage+"%",o.querySelector("#p_span_day").innerHTML=displayDayPercentage,o.querySelector(".schedule-r3 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(24-asideTodayHour))/10).toFixed(1)+" / 024",month=n.getMonth()+1,day=n.getDate(),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document.querySelector("#aside-content .sticky_layout .card-widget#card-widget-schedule .item-content .schedule-today").innerHTML=n.getFullYear()+"-"+month+"-"+day+" "+week[n.getDay()])},PressEscapeKey(e){27===e.keyCode&&(document.getElementById("console")&&mycpen1js.hideConsole(),document.getElementById("cf-overlay")&&document.getElementById("cf-overshow")&&(document.querySelector(".cf-overshow-close")||document.querySelector(".cf-overshow"))&&(document.getElementById("mycpen1-fcircle-page-tag")&&closeShow(),document.getElementById("mycpen1-link-page-tag")&&mycpen1js.linkPageCloseShow()))},linkPageOpenMeShow(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/post?link="+e.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageOpenMeShowV2(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/postv2?name="+encodeURIComponent(e.currentTarget.dataset.name),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageCloseShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var e=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),t=document.querySelectorAll("#cf-overshow > .cf-overshow-close");e.forEach((function(e){e.remove()}));for(var n=1;n<t.length;n++)t[n].remove()}),100)},linkPageFetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ';fetch(url).then((e=>e.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);0!==statisticalData.article_num?(mycpen1js.linkPageLoadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)):btf.snackbarShow("未获取到订阅内容")})).catch((e=>{btf.snackbarShow("未获取到文章卡片")}))},linkPageLoadFcircleShow(e,t){for(var n=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${e.avatar}" alt="avatar" onerror="this.src='/img/flink404.svg'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${e.link}">${e.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,a=0;a<e.article_num;a++){var o=t[a];let e="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(e='style="color: var(--mycpen1-main); opacity: 1;"'),n+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${e}>${o.created}</span></p>\n `}n+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",n),document.getElementById("cf-overshow").className="cf-show-now"},linkPageRssAliveCheck(){apiurl="https://www.cpen.top:8002/",rssAliveCheckUrl=apiurl+"friendstatus",fetch(rssAliveCheckUrl).then((e=>e.json())).then((e=>{var t=e.lost_friends,n=e.not_lost_friends,a=e.total_friend_num;let o=[];for(const e in t){let n=t[e];n=n.replace(/^https?:\/\//,""),n=n.replace(/\/$/,""),o.push(n)}let c=[];for(const e in n){let t=n[e];t=t.replace(/^https?:\/\//,""),t=t.replace(/\/$/,""),c.push(t)}document.querySelectorAll("#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon").forEach((e=>{if(e){let t=e.getAttribute("data-link").replace(/^https?:\/\//,"");t=t.replace(/\/$/,""),a>0?c.includes(t)?e.classList.add("flink-mycpen1-rss-not-lost-friends"):o.includes(t)?e.classList.add("flink-mycpen1-rss-lost-friends"):e.classList.add("flink-mycpen1-rss-unknown-friends"):0===a&&e.classList.add("flink-mycpen1-rss-lost-friends")}}))}))},NzcheckLink:async e=>{const t=document.querySelectorAll(e);if(t){let e=new RegExp(/^[#].*/);for(let o=0;o<t.length;o++){const c=t[o];var n=c.hasAttribute("data-fancybox"),a=c.classList.contains("already-redirect-link");if(!n&&!a){let t=c.getAttribute("href"),n=c.getAttribute("data-download"),a=c.getAttribute("rel");e.test(t)||"prev"===a||"next"===a||"category"===a||"tag"===a||"javascript:void(0);"===t||(await mycpen1js.NzcheckLocalSite(t)||n?await mycpen1js.NzcheckLocalSite(t)||"goDown"!==n||c.setAttribute("href","/redirect.html?url="+btoa(t)+"&type=goDown"):c.setAttribute("href","/redirect.html?url="+btoa(t)))}c.classList.add("already-redirect-link")}}},NzcheckLocalSite:async e=>{try{const t=["localhost:4000","cpen.top","mycpen.cn"];let n=!1;for(let a=0;a<t.length;a++){const o=t[a];if(e.includes(o)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){window.addEventListener("load",(()=>{window.cookieconsent.initialise({type:"info",theme:"edgeless",static:!1,position:"bottom-right",content:{message:"我们使用 cookie 来确保在我们的网站上为您提供最佳体验。",dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:"#edeff5",text:"#838391"},button:{background:"#4b81e8"}}})}))}};function whenDOMReadyMycpen1JS(){mycpen1js.changeNavPageNameTitle(),mycpen1js.getFooterRandomFlink(),mycpen1js.removeBodyPaceClass(),mycpen1js.tagPageActive(),mycpen1js.categoryPageActive(),mycpen1js.listenToPageInputPress(),mycpen1js.owoBigfunc(),document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayChangeTimeInEssayByMycpen(),mycpen1js.essayReflashEssayWaterFall(),window.onresize=()=>{document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayReflashEssayWaterFall(),setTimeout((()=>{mycpen1js.essayReflashEssayWaterFall()}),300))}),document.getElementById("darkmode").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_navswitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_consoleSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_sidebarSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),mycpen1js.cpRemind(),mycpen1js.closeAboutAplayer(),document.getElementById("card-widget-schedule")&&(mycpen1js.cardRefreshTimes(),setInterval((()=>{mycpen1js.cardRefreshTimes()}),1e3)),document.getElementById("mycpen1-link-page-tag-2")&&mycpen1js.linkPageRssAliveCheck(),document.getElementById("mycpen1-link-page-tag")&&(mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.单向 > a"),mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.失联 > a")),document.getElementById("mycpen1-about-page-tag")&&mycpen1js.NzcheckLink("#article-container #mycpen1-about-page-tag-sponsor-part a"),document.getElementById("post-comment")&&setInterval((()=>{if(document.querySelector(".tk-comments-container")){mycpen1js.NzcheckLink(".tk-comments-container a:not(.already-redirect-link)");document.querySelectorAll(".tk-avatar.tk-clickable:not(.already-clear-clickEvent)").forEach((e=>{e.classList.add("already-clear-clickEvent");const t=document.createElement("a");for(Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)}));e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e);const n=t.nextElementSibling.firstElementChild.firstElementChild.firstElementChild.getAttribute("href");t.setAttribute("href",n),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener external nofollow noreferrer")}))}}),1e3)}mycpen1js.console(),document.removeEventListener("keydown",mycpen1js.PressEscapeKey),document.addEventListener("keydown",mycpen1js.PressEscapeKey),window.onscroll=mycpen1js.getNavRightPagePercent,mycpen1js.removeaAlayerFixedLrc(),whenDOMReadyMycpen1JS(),document.addEventListener("pjax:complete",whenDOMReadyMycpen1JS);
1
+ var mycpen1js={changeNavPageNameTitle(){"Mycpen - Personal Blog"==document.title?document.getElementById("page-name").innerText=document.title:document.getElementById("page-name").innerText=document.title.split(" | Mycpen")[0]},getNavRightPagePercent(){let e=document.documentElement.scrollTop||window.pageYOffset,t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,n=Math.round(e/t*100),a=document.querySelector("#percent");n<=99||(n=99),a.innerHTML=n,r=window.scrollY+document.documentElement.clientHeight,p=document.getElementById("post-comment")||document.getElementById("footer"),p.offsetTop+p.offsetHeight/2<r||90<n?(document.querySelector("#nav-totop").classList.add("long"),a.innerHTML="返回顶部"):(document.querySelector("#nav-totop").classList.remove("long"),a.innerHTML=n)},share(){let e=window.location.origin+window.location.pathname;new ClipboardJS(".share",{text:function(){return"标题:"+document.title+"\n链接:"+e}}),btf.snackbarShow("复制成功")},getFooterRandomFlink(){var e={saveData:(e,t)=>{localStorage.setItem(e,JSON.stringify({time:Date.now(),data:t}))},loadData:(e,t)=>{let n=JSON.parse(localStorage.getItem(e));if(n){let e=Date.now()-n.time;if(e<60*t*1e3&&e>-1)return n.data}return 0},randomLink:()=>{let t=e.loadData("links",30);if(t){let e=document.querySelectorAll("#friend-links-in-footer .footer-item");if(!e.length)return;for(let n=0;n<3;n++){let a;do{a=parseInt(Math.random()*t.length)}while("失联"===t[a].tag);e[n].innerText=t[a].name,e[n].href=t[a].link,e[n].title=t[a].name,e[n].target="_blank",e[n].rel="noopener external nofollow noreferrer",t.splice(a,1)}}else fetch("https://cdn.cbd.int/mycpen-blog@0.0.0-fjccwuvoyp/json/link.json").then((e=>e.json())).then((t=>{e.saveData("links",t.link_list),e.randomLink()}))}};e.randomLink()},newYearCountdownCard(){(()=>{if(clearTimeout(null),!document.querySelector("#newYear"))return;let e=new Date(`${(new Date).getFullYear()+1}-01-01 00:00:00`).getTime()/1e3,t={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){let n=new Date,a=n.getMonth()+1,o=n.getDate();a=a>9?a:"0"+a,o=o>9?o:"0"+o,document.querySelector("#newYear .today").innerHTML=n.getFullYear()+"-"+a+"-"+o+" "+t[n.getDay()];let c=e-Math.round(n.getTime()/1e3);c<0?(document.querySelector("#newYear .title").innerHTML="Happy New Year!",document.querySelector("#newYear .newYear-time").innerHTML='<span class="happyNewYear">新年快乐</span>'):(document.querySelector("#newYear .title").innerHTML=`<i class="fa-solid fa-clock"></i> <span>距离</span> ${(new Date).getFullYear()+1} <span>年</span>`,document.querySelector("#newYear .newYear-time").innerHTML=`<span class="day">${Math.ceil(c/86400)}<span class="unit">天</span></span>`)}()})()},removeBodyPaceClass:function(){$("body").removeClass(),$("body").addClass("pace-done")},toPage:function(){var e=document.querySelectorAll(".page-number"),t=parseInt(e[e.length-1].innerHTML),n=document.getElementById("toPageText"),a=parseInt(n.value);if(!isNaN(a)&&a>0&&"0"!==(""+a)[0]&&a<=t){var o,c=window.location.href.replace(/\/page\/\d+\/$/,"/");o=1===a?c:c+(c.endsWith("/")?"":"/")+"page/"+a+"/",document.getElementById("toPageButton").href=o}},listenToPageInputPress(){var e=document.getElementById("toPageText"),t=document.getElementById("toPageButton");e&&(e.addEventListener("keydown",(e=>{13===e.keyCode&&(mycpen1js.toPage(),pjax.loadUrl(t.href))})),e.addEventListener("input",(function(){""===e.value||"0"===e.value?t.classList.remove("haveValue"):t.classList.add("haveValue");var n=document.querySelectorAll(".page-number"),a=+n[n.length-1].innerHTML;+document.getElementById("toPageText").value>a&&(e.value=a)})))},showConsole:function(){document.querySelector("#console").classList.add("show"),mycpen1js.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")},hideAsideBtn:()=>{const e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},tagPageActive:function(){var e=window.location.pathname;if(/\/tags\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #tag #tag-page-tags")){$("a").removeClass("select");var n=document.getElementById("mycpen1-tags-page-cloudTags-"+t);n&&n.classList.add("select")}}},categoryPageActive:function(){var e=window.location.pathname;if(/\/categories\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #category #category-page-categories")){$("a").removeClass("select");var n=document.getElementById("mycpen1-categories-page-cloudCategories-"+t);n&&n.classList.add("select")}}},addRandomCommentInfo:function(){const e=["美丽的","英俊的","聪明的","勇敢的","可爱的","慷慨的","善良的","可靠的","开朗的","成熟的","稳重的","真诚的","幽默的","豁达的","有趣的","活泼的","优雅的","敏捷的","温柔的","温暖的","敬业的","细心的","耐心的","深沉的","朴素的","含蓄的","率直的","开放的","务实的","坚强的","自信的","谦虚的","文静的","深刻的","纯真的","朝气蓬勃的","慎重的","大方的","顽强的","迷人的","机智的","善解人意的","富有想象力的","有魅力的","独立的","好奇的","干净的","宽容的","尊重他人的","体贴的","守信的","有耐性的","有责任心的","有担当的","有远见的","有智慧的","有眼光的","有冒险精神的","有爱心的","有同情心的","喜欢思考的","喜欢学习的","具有批判性思维的","善于表达的","善于沟通的","善于合作的","善于领导的","有激情的","有幽默感的","有思想的","有个性的","有正义感的","有责任感的","有创造力的","有想象力的","有艺术细胞的","有团队精神的","有协调能力的","有决策能力的","有组织能力的","有学习能力的","有执行能力的","有分析能力的","有逻辑思维的","有创新能力的","有专业素养的","有商业头脑的"],t=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜","西红柿","洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜","西兰花","蘑菇","金针菇","苹果","香蕉","橙子","柠檬","猕猴桃","草莓","葡萄","桃子","杏子","李子","石榴","西瓜","哈密瓜","蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子","火龙果"],n=`${e[Math.floor(Math.random()*e.length)]}${t[Math.floor(Math.random()*t.length)]}`;!function(){for(var e=["#author","input[name='comname']","#inpName","input[name='author']","#ds-dialog-name","#name","input[name='nick']","#comment_author"],t=["#mail","#email","input[name='commail']","#inpEmail","input[name='email']","#ds-dialog-email","input[name='mail']","#comment_email"],a=0;a<e.length;a++){var o=document.querySelector(e[a]);if(null!=o){o.value=n,o.dispatchEvent(new Event("input")),o.dispatchEvent(new Event("change"));break}}for(var c=0;c<t.length;c++){var s=document.querySelector(t[c]);if(null!=s){s.value="donotreply@mycpen.cn",s.dispatchEvent(new Event("input")),s.dispatchEvent(new Event("change"));break}}}();var a=document.getElementsByClassName("el-textarea__inner")[0];a.focus(),a.setSelectionRange(-1,-1)},owoBigfunc(){document.getElementById("post-comment")&&function(){let e=1,t="",n=document.createElement("div"),a=document.querySelector("body");n.id="owo-big",a.appendChild(n),new MutationObserver((o=>{for(let c=0;c<o.length;c++){let s=o[c].addedNodes,r="";2==s.length&&"OwO-body"==s[1].className&&(r=s[1],document.body.clientWidth<=768&&r.addEventListener("contextmenu",(e=>e.preventDefault())),r.onmouseover=o=>{e&&"IMG"==o.target.tagName&&(e=0,t=setTimeout((()=>{let e=3*o.target.clientHeight,t=3*o.target.clientWidth,c=o.x-o.offsetX-(t-o.target.clientWidth)/2,s=o.y-o.offsetY;c+t>a.clientWidth&&(c-=c+t-a.clientWidth+10),c<0&&(c=10),n.style.cssText=`display:flex; height:${e}px; width:${t}px; left:${c}px; top:${s}px;`,n.innerHTML=`<img src="${o.target.src}">`}),300))},r.onmouseout=()=>{n.style.display="none",e=1,clearTimeout(t)})}})).observe(document.getElementById("post-comment"),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){function e(){const e=document.querySelector(".aplayer-fixed .aplayer-icon.aplayer-icon-lrc");e&&(t.disconnect(),setTimeout((()=>{e.click()}),1))}const t=new MutationObserver(((t,n)=>{for(let n of t)"childList"===n.type&&e()}));t.observe(document,{childList:!0,subtree:!0})},switchDarkMode(){"light"===("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"==typeof FB&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout((()=>window.disqusReset()),200)},essayUnknownPart(){},essayReplaceAll:(e,t,n)=>e.split(t).join(n),essayDiffDate:function(e,t=!1){const n=new Date,a=new Date(e),o=n.getTime()-a.getTime(),c=36e5,s=24*c;let r;if(t){const e=o/s,t=o/c,n=o/6e4;r=o/(30*s)>=1?a.toLocaleDateString().replace(/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix.day:t>=1?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:n>=1?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just}else r=parseInt(o/s);return r},essayChangeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach((function(e){var t=e,n=t.getAttribute("datetime");t.innerText=mycpen1js.essayDiffDate(n,!0),t.style.display="inline"}))},essayReflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout((function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")}),500)},essayCommentText:function(e){var t=document.querySelector("#post-comment").offsetTop;window.scrollTo(0,t-80),"undefined"!=e&&"null"!=e||(e="好棒!"),function t(){setTimeout((()=>{var n=document.getElementsByClassName("el-textarea__inner")[0];n||t();let a=document.createEvent("HTMLEvents");a.initEvent("input",!0,!0);let o=mycpen1js.essayReplaceAll(e,"\n","\n> ");n.value="> "+o+"\n\n",n.dispatchEvent(a),n.focus(),n.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show")}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{let e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=document.getElementsByTagName("time"),t=0;t<e.length;t++){var n,a=e[t].getAttribute("datetime"),o=new Date(a),c=(new Date).getTime()-o.getTime(),s=Math.floor(c/864e5);0===s?n="最近":1===s?n="昨天":2===s?n="前天":s<=7?n=s+"天前":o.getFullYear()!==(new Date).getFullYear()?(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=o.getFullYear()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),e[t].textContent=n}},switchPostChart:function(){let e="light"===document.documentElement.getAttribute("data-theme")?"#4C4948":"rgba(255,255,255,0.7)";if(document.getElementById("posts-chart")&&postsOption)try{let t=postsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,postsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("tags-chart")&&tagsOption)try{let t=tagsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,tagsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("categories-chart")&&categoriesOption)try{let t=categoriesOption;t.title.textStyle.color=e,t.legend.textStyle.color=e,categoryParentFlag||(t.series[0].label.color=e),categoriesChart.setOption(t)}catch(e){console.log(e)}},cpRemind(){document.addEventListener("copy",(function(e){window.getSelection().toString().trim().length>0&&btf.snackbarShow("复制成功")}))},closeAboutAplayer(){if(!document.getElementById("mycpen1-about-page-tag"))try{about_page_ap.pause(),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=new Date,t=e.getMonth()+1,n=e.getDate();for(var a of["04.04","05.12","07.07","08.14","09.09","09.18","09.30","11.30","12.13"]){var o=a.split(".");if(t==o[0]&&n==o[1]){var c="grayscale(100%)";$("html").css({filter:"gray !important;",filter:"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",filter:c,"-webkit-filter":c,"-moz-filter":c,"-ms-filter":c,"-o-filter":c});break}}},console(){var e=new Date,t=console.log;queueMicrotask((function(){var n=new Date(`${atob("MDgvMjgvMjAyMiA=")}${atob("MDA6MDA6MDA=")}`),a=new Date(`${atob("MTAvMjIvMTk5OCAwMA==")}:${atob("MDA6MDA=")}`),o=new Date(`${atob("MTAvMjIvMjA=")}${atob("MjggMDA6MDA6MDA=")}`),c=new Date(`${atob("MTA=")}/${atob("MjIvMjA1OCAwMDowMA==")}${atob("OjAw")}`),s=new Date("05/23/2025 00:00:00");e.setTime(e.getTime()+250);n=[" MYCPEN BLOG ",` ${window.location.origin} `,"\n\n","距 2022-08-28 上线",Math.floor(Math.abs(e-n)/1e3/60/60/24+(e-n<0?1:0)).toString().padEnd(5," "),"天","距 1998-00-00 计时",Math.floor(Math.abs(e-a)/1e3/60/60/24+(e-a<0?1:0)).toString().padEnd(5," "),"天","距 2028-00-00 计时",Math.floor(Math.abs(e-o)/1e3/60/60/24+(e-o<0?1:0)).toString().padEnd(5," "),"天","距 2058-00-00 计时",Math.floor(Math.abs(e-c)/1e3/60/60/24+(e-c<0?1:0)).toString().padEnd(5," "),"天","距 2025-05-23 计时",Math.floor(Math.abs(e-s)/1e3/60/60/24+(e-s<0?1:0)).toString().padEnd(5," "),"天 (阿里云)"];setTimeout(function(){t.apply(console,arguments)}.bind(console,"\n%c".concat(n[0],"%c").concat(n[1],"%c").concat(n[2],"%c").concat(n[3],"%c ").concat(n[4],"%c ").concat(n[5],"\n").concat(n[6],"%c ").concat(n[7],"%c ").concat(n[8],"\n").concat(n[9],"%c ").concat(n[10],"%c ").concat(n[11],"\n").concat(n[12],"%c ").concat(n[13],"%c ").concat(n[14],"\n").concat(n[15],"%c ").concat(n[16],"%c ").concat(n[17],"\n").concat("\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;","color:#fadfa3","","color:#030307","","color:#030307","","color:#030307","","color:#030307","","color:#030307",""))}))},cardRefreshTimes(){const e=(new Date).getFullYear(),t=function(e){return e%4==0&&e%100!=0||e%400==0}(e)?366:365;var n=new Date,a=new Date(`${(new Date).getFullYear()}-01-01 00:00:00`),o=document.getElementById("card-widget-schedule");o&&(asideDay=(n-a)/1e3/60/60/24,o.querySelector("#pBar_year").value=asideDay,o.querySelector("#pBar_year").max=t,yearPercentage=(asideDay/t*100).toFixed(2),displayYearPercentage="100.00"===yearPercentage?"100%":yearPercentage+"%",o.querySelector("#p_span_year").innerHTML=displayYearPercentage,o.querySelector(".schedule-r0 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(t-asideDay))/10).toFixed(1)+" / "+t,currentDateMonth=new Date,currentDateMonth.setDate(1),currentDateMonth.setHours(0,0,0,0),currentMonthTimestamp=currentDateMonth.getTime(),asideMonthDay=(n-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal.getMonth(),currentDateMonthTotal.setMonth(currentMonth+1,1),currentDateMonthTotal.setDate(0),asideMonthDays=currentDateMonthTotal.getDate(),o.querySelector("#pBar_month").value=asideMonthDay,o.querySelector("#pBar_month").max=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100).toFixed(2),displayMonthPercentage="100.00"===monthPercentage?"100%":monthPercentage+"%",o.querySelector("#p_span_month").innerHTML=displayMonthPercentage,o.querySelector(".schedule-r1 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(asideMonthDays-asideMonthDay))/10).toFixed(1)+" / "+asideMonthDays.toString().padStart(3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek.getDay(),currentWeekTimestamp=currentDateWeek.setHours(0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=n-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,o.querySelector("#pBar_week").value=asideWeekDay,weekPercentage=(asideWeekDay/7*100).toFixed(2),displayWeekPercentage="100.00"===weekPercentage?"100%":weekPercentage+"%",o.querySelector("#p_span_week").innerHTML=displayWeekPercentage,o.querySelector(".schedule-r2 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(7-asideWeekDay))/10).toFixed(1)+" / 007",currentTimeStamp=(new Date).getTime(),startOfDay=new Date,startOfDay.setHours(0,0,0,0),startOfDayTimeStamp=startOfDay.getTime(),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,o.querySelector("#pBar_day").value=asideTodayHour,dayPercentage=(100*asideToday).toFixed(2),displayDayPercentage="100.00"===dayPercentage?"100%":dayPercentage+"%",o.querySelector("#p_span_day").innerHTML=displayDayPercentage,o.querySelector(".schedule-r3 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(24-asideTodayHour))/10).toFixed(1)+" / 024",month=n.getMonth()+1,day=n.getDate(),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document.querySelector("#aside-content .card-widget#card-widget-schedule .item-content .schedule-today").innerHTML=n.getFullYear()+"-"+month+"-"+day+" "+week[n.getDay()])},PressEscapeKey(e){27===e.keyCode&&(document.getElementById("console")&&mycpen1js.hideConsole(),document.getElementById("cf-overlay")&&document.getElementById("cf-overshow")&&(document.querySelector(".cf-overshow-close")||document.querySelector(".cf-overshow"))&&(document.getElementById("mycpen1-fcircle-page-tag")&&closeShow(),document.getElementById("mycpen1-link-page-tag")&&mycpen1js.linkPageCloseShow()))},linkPageOpenMeShow(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/post?link="+e.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageOpenMeShowV2(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/postv2?name="+encodeURIComponent(e.currentTarget.dataset.name),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageCloseShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var e=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),t=document.querySelectorAll("#cf-overshow > .cf-overshow-close");e.forEach((function(e){e.remove()}));for(var n=1;n<t.length;n++)t[n].remove()}),100)},linkPageFetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ';fetch(url).then((e=>e.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);0!==statisticalData.article_num?(mycpen1js.linkPageLoadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)):btf.snackbarShow("未获取到订阅内容")})).catch((e=>{btf.snackbarShow("未获取到文章卡片")}))},linkPageLoadFcircleShow(e,t){for(var n=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${e.avatar}" alt="avatar" onerror="this.src='https://cdn.cbd.int/mycpen-blog@0.0.0-fjccwuvoyp/img/flink404.svg'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${e.link}">${e.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,a=0;a<e.article_num;a++){var o=t[a];let e="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(e='style="color: var(--mycpen1-main); opacity: 1;"'),n+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${e}>${o.created}</span></p>\n `}n+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",n),document.getElementById("cf-overshow").className="cf-show-now"},linkPageRssAliveCheck(){apiurl="https://www.cpen.top:8002/",rssAliveCheckUrl=apiurl+"friendstatus",fetch(rssAliveCheckUrl).then((e=>e.json())).then((e=>{var t=e.lost_friends,n=e.not_lost_friends,a=e.total_friend_num;let o=[];for(const e in t){let n=t[e];n=n.replace(/^https?:\/\//,""),n=n.replace(/\/$/,""),o.push(n)}let c=[];for(const e in n){let t=n[e];t=t.replace(/^https?:\/\//,""),t=t.replace(/\/$/,""),c.push(t)}document.querySelectorAll("#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon").forEach((e=>{if(e){let t=e.getAttribute("data-link").replace(/^https?:\/\//,"");t=t.replace(/\/$/,""),a>0?c.includes(t)?e.classList.add("flink-mycpen1-rss-not-lost-friends"):o.includes(t)?e.classList.add("flink-mycpen1-rss-lost-friends"):e.classList.add("flink-mycpen1-rss-unknown-friends"):0===a&&e.classList.add("flink-mycpen1-rss-lost-friends")}}))}))},NzcheckLink:async e=>{const t=document.querySelectorAll(e);if(t){let e=new RegExp(/^[#].*/);for(let o=0;o<t.length;o++){const c=t[o];var n=c.hasAttribute("data-fancybox"),a=c.classList.contains("already-redirect-link");if(!n&&!a){let t=c.getAttribute("href"),n=c.getAttribute("data-download"),a=c.getAttribute("rel");e.test(t)||"prev"===a||"next"===a||"category"===a||"tag"===a||"javascript:void(0);"===t||(await mycpen1js.NzcheckLocalSite(t)||n?await mycpen1js.NzcheckLocalSite(t)||"goDown"!==n||c.setAttribute("href","/redirect.html?url="+btoa(t)+"&type=goDown"):c.setAttribute("href","/redirect.html?url="+btoa(t)))}c.classList.add("already-redirect-link")}}},NzcheckLocalSite:async e=>{try{const t=["localhost:4000","cpen.top","mycpen.cn"];let n=!1;for(let a=0;a<t.length;a++){const o=t[a];if(e.includes(o)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){window.addEventListener("load",(()=>{window.cookieconsent.initialise({type:"info",theme:"edgeless",static:!1,position:"bottom-right",content:{message:"我们使用 cookie 来确保在我们的网站上为您提供最佳体验。",dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:"#edeff5",text:"#838391"},button:{background:"#4b81e8"}}})}))}};function whenDOMReadyMycpen1JS(){mycpen1js.changeNavPageNameTitle(),mycpen1js.getFooterRandomFlink(),mycpen1js.removeBodyPaceClass(),mycpen1js.tagPageActive(),mycpen1js.categoryPageActive(),mycpen1js.listenToPageInputPress(),mycpen1js.owoBigfunc(),document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayChangeTimeInEssayByMycpen(),mycpen1js.essayReflashEssayWaterFall(),window.onresize=()=>{document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayReflashEssayWaterFall(),setTimeout((()=>{mycpen1js.essayReflashEssayWaterFall()}),300))}),document.getElementById("darkmode").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_navswitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_consoleSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_sidebarSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),mycpen1js.cpRemind(),mycpen1js.closeAboutAplayer(),document.getElementById("card-widget-schedule")&&(mycpen1js.cardRefreshTimes(),setInterval((()=>{mycpen1js.cardRefreshTimes()}),1e3)),document.getElementById("mycpen1-link-page-tag-2")&&mycpen1js.linkPageRssAliveCheck(),document.getElementById("mycpen1-link-page-tag")&&(mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.单向 > a"),mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.失联 > a")),document.getElementById("mycpen1-about-page-tag")&&mycpen1js.NzcheckLink("#article-container #mycpen1-about-page-tag-sponsor-part a"),document.getElementById("post-comment")&&setInterval((()=>{if(document.querySelector(".tk-comments-container")){mycpen1js.NzcheckLink(".tk-comments-container a:not(.already-redirect-link)");document.querySelectorAll(".tk-avatar.tk-clickable:not(.already-clear-clickEvent)").forEach((e=>{e.classList.add("already-clear-clickEvent");const t=document.createElement("a");for(Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)}));e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e);const n=t.nextElementSibling.firstElementChild.firstElementChild.firstElementChild.getAttribute("href");t.setAttribute("href",n),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener external nofollow noreferrer")}))}}),1e3)}mycpen1js.console(),document.removeEventListener("keydown",mycpen1js.PressEscapeKey),document.addEventListener("keydown",mycpen1js.PressEscapeKey),window.onscroll=mycpen1js.getNavRightPagePercent,mycpen1js.removeaAlayerFixedLrc(),whenDOMReadyMycpen1JS(),document.addEventListener("pjax:complete",whenDOMReadyMycpen1JS);03)](_0x4de08a[0x5],'\x0a')['concat'](_0x4de08a[0x6],'%c\x20')['concat'](_0x4de08a[0x7],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0x8],'\x0a')['concat'](_0x4de08a[0x9],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0xa],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0xb],'\x0a')['concat'](_0x4de08a[0xc],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0xd],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0xe],'\x0a')[_0x198075(0x203)](_0x4de08a[0xf],'%c\x20')[_0x198075(0x203)](_0x4de08a[0x10],_0x198075(0x175))[_0x198075(0x203)](_0x4de08a[0x11],'\x0a')['concat']('\x0a'),_0x198075(0x2db),'background:\x20#fadfa3;\x20padding:5px\x200;',_0x198075(0x267),'','color:#030307','',_0x198075(0x2f1),'',_0x198075(0x2f1),'',_0x198075(0x2f1),'','color:#030307',''));});},'cardRefreshTimes'(){var _0x45ed99=_0xc535;function _0x2f4f9c(_0x107b70){return _0x107b70%0x4===0x0&&_0x107b70%0x64!==0x0||_0x107b70%0x190===0x0;}function _0x3524ac(_0x578ee4){return _0x2f4f9c(_0x578ee4)?0x16e:0x16d;}const _0x542649=new Date()[_0x45ed99(0x144)](),_0x37ff3c=_0x3524ac(_0x542649);var _0x2cee0e=new Date(),_0x35967e=new Date(new Date()[_0x45ed99(0x144)]()+_0x45ed99(0x2ae)),_0x1577ff=document[_0x45ed99(0x21b)]('card-widget-schedule');_0x1577ff&&(asideDay=(_0x2cee0e-_0x35967e)/0x3e8/0x3c/0x3c/0x18,_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x2b0))[_0x45ed99(0x2d7)]=asideDay,_0x1577ff[_0x45ed99(0x249)]('#pBar_year')[_0x45ed99(0x1ce)]=_0x37ff3c,yearPercentage=(asideDay/_0x37ff3c*0x64)[_0x45ed99(0x1b5)](0x2),displayYearPercentage=yearPercentage===_0x45ed99(0x214)?_0x45ed99(0x260):yearPercentage+'%',_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x1f2))[_0x45ed99(0x261)]=displayYearPercentage,_0x1577ff[_0x45ed99(0x249)]('.schedule-r0\x20.schedule-d1\x20.aside-span2')[_0x45ed99(0x261)]=(Math[_0x45ed99(0x1b0)]((_0x37ff3c-asideDay)*0xa)/0xa)[_0x45ed99(0x1b5)](0x1)+'\x20/\x20'+_0x37ff3c,currentDateMonth=new Date(),currentDateMonth[_0x45ed99(0x1ed)](0x1),currentDateMonth[_0x45ed99(0x1c8)](0x0,0x0,0x0,0x0),currentMonthTimestamp=currentDateMonth[_0x45ed99(0x145)](),asideMonthDay=(_0x2cee0e-currentMonthTimestamp)/0x3e8/0x3c/0x3c/0x18,currentDateMonthTotal=new Date(),currentMonth=currentDateMonthTotal[_0x45ed99(0x215)](),currentDateMonthTotal[_0x45ed99(0x14c)](currentMonth+0x1,0x1),currentDateMonthTotal[_0x45ed99(0x1ed)](0x0),asideMonthDays=currentDateMonthTotal[_0x45ed99(0x2e4)](),_0x1577ff['querySelector']('#pBar_month')[_0x45ed99(0x2d7)]=asideMonthDay,_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x1a1))[_0x45ed99(0x1ce)]=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*0x64)[_0x45ed99(0x1b5)](0x2),displayMonthPercentage=monthPercentage==='100.00'?'100%':monthPercentage+'%',_0x1577ff['querySelector'](_0x45ed99(0x25b))[_0x45ed99(0x261)]=displayMonthPercentage,_0x1577ff['querySelector'](_0x45ed99(0x27e))[_0x45ed99(0x261)]=(Math[_0x45ed99(0x1b0)]((asideMonthDays-asideMonthDay)*0xa)/0xa)['toFixed'](0x1)+_0x45ed99(0x283)+asideMonthDays[_0x45ed99(0x182)]()['padStart'](0x3,'0'),currentDateWeek=new Date(),currentDayOfWeek=currentDateWeek[_0x45ed99(0x1e4)](),currentWeekTimestamp=currentDateWeek[_0x45ed99(0x1c8)](0x0,0x0,0x0,0x0),firstDayOfWeekTimestamp=currentWeekTimestamp-(currentDayOfWeek===0x0?0x6:currentDayOfWeek-0x1)*0x18*0x3c*0x3c*0x3e8,pastWeekTimestamp=_0x2cee0e-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/0x3e8/0x3c/0x3c/0x18,_0x1577ff['querySelector'](_0x45ed99(0x234))['value']=asideWeekDay,weekPercentage=(asideWeekDay/0x7*0x64)['toFixed'](0x2),displayWeekPercentage=weekPercentage==='100.00'?_0x45ed99(0x260):weekPercentage+'%',_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x28a))[_0x45ed99(0x261)]=displayWeekPercentage,_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x1b7))[_0x45ed99(0x261)]=(Math[_0x45ed99(0x1b0)]((0x7-asideWeekDay)*0xa)/0xa)[_0x45ed99(0x1b5)](0x1)+_0x45ed99(0x2d6),currentTimeStamp=new Date()[_0x45ed99(0x145)](),startOfDay=new Date(),startOfDay[_0x45ed99(0x1c8)](0x0,0x0,0x0,0x0),startOfDayTimeStamp=startOfDay[_0x45ed99(0x145)](),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/0x3e8/0x3c/0x3c/0x18,asideTodayHour=timeDifferenceToday/0x36ee80,_0x1577ff[_0x45ed99(0x249)]('#pBar_day')['value']=asideTodayHour,dayPercentage=(asideToday*0x64)[_0x45ed99(0x1b5)](0x2),displayDayPercentage=dayPercentage===_0x45ed99(0x214)?_0x45ed99(0x260):dayPercentage+'%',_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x1a9))[_0x45ed99(0x261)]=displayDayPercentage,_0x1577ff[_0x45ed99(0x249)](_0x45ed99(0x21d))['innerHTML']=(Math[_0x45ed99(0x1b0)]((0x18-asideTodayHour)*0xa)/0xa)[_0x45ed99(0x1b5)](0x1)+_0x45ed99(0x1d4),month=_0x2cee0e[_0x45ed99(0x215)]()+0x1,day=_0x2cee0e['getDate'](),month=month>0x9?month:'0'+month,day=day>0x9?day:'0'+day,week={0x0:'周日',0x1:'周一',0x2:'周二',0x3:'周三',0x4:'周四',0x5:'周五',0x6:'周六'},document['querySelector']('#aside-content\x20.card-widget#card-widget-schedule\x20.item-content\x20.schedule-today')[_0x45ed99(0x261)]=_0x2cee0e[_0x45ed99(0x144)]()+'-'+month+'-'+day+'\x20'+week[_0x2cee0e[_0x45ed99(0x1e4)]()]);},'PressEscapeKey'(_0x4da142){var _0x11ad55=_0xc535;_0x4da142['keyCode']===0x1b&&(document[_0x11ad55(0x21b)](_0x11ad55(0x13d))&&mycpen1js[_0x11ad55(0x13c)](),document[_0x11ad55(0x21b)]('cf-overlay')&&document['getElementById'](_0x11ad55(0x2bd))&&((document['querySelector'](_0x11ad55(0x1de))||document['querySelector']('.cf-overshow'))&&(document['getElementById'](_0x11ad55(0x1f0))&&closeShow(),document['getElementById'](_0x11ad55(0x179))&&mycpen1js[_0x11ad55(0x1bf)]())));},'linkPageOpenMeShow'(_0x2b29ce){var _0x26be9a=_0xc535,_0x232a95={'apipublicurl':_0x26be9a(0x22c)},_0x4e80d1='ok',_0x5c1531=_0x26be9a(0x17e),_0x3f8fb9=document['getElementById'](_0x26be9a(0x179));if(_0x3f8fb9){if(document['getElementById']('cf-overlay')){}else _0x3f8fb9[_0x26be9a(0x1e3)](_0x26be9a(0x2f5),_0x5c1531);}_0x2b29ce[_0x26be9a(0x22a)]();var _0x49500e=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,_0x4f4019=_0x2b29ce[_0x26be9a(0x2ab)]['dataset'][_0x26be9a(0x2b8)][_0x26be9a(0x220)](_0x49500e,_0x26be9a(0x1cb)),_0x48edcd='';_0x48edcd=_0x232a95[_0x26be9a(0x1f9)]+_0x26be9a(0x19a)+_0x4f4019,_0x4e80d1=='ok'&&(_0x4e80d1='no',mycpen1js[_0x26be9a(0x159)](_0x48edcd));},'linkPageOpenMeShowV2'(_0x1ada08){var _0x650849=_0xc535,_0x5155d5={'apipublicurl':_0x650849(0x22c)},_0x203abb='ok',_0x3d1184=_0x650849(0x17e),_0xd76264=document[_0x650849(0x21b)]('mycpen1-link-page-tag');if(_0xd76264){if(document[_0x650849(0x21b)]('cf-overlay')){}else _0xd76264[_0x650849(0x1e3)]('afterend',_0x3d1184);}_0x1ada08[_0x650849(0x22a)]();var _0xbb1ef=encodeURIComponent(_0x1ada08['currentTarget'][_0x650849(0x2d4)][_0x650849(0x1ef)]),_0x291a99='';_0x291a99=_0x5155d5[_0x650849(0x1f9)]+_0x650849(0x232)+_0xbb1ef,_0x203abb=='ok'&&(_0x203abb='no',mycpen1js[_0x650849(0x159)](_0x291a99));},'linkPageCloseShow'(){var _0x42cc25=_0xc535;document[_0x42cc25(0x21b)]('cf-overlay')[_0x42cc25(0x25e)]-='cf-show-now',document[_0x42cc25(0x21b)](_0x42cc25(0x2bd))[_0x42cc25(0x25e)]-='cf-show-now',setTimeout(function(){var _0x4f63b6=_0x42cc25,_0x1ed0fe=document[_0x4f63b6(0x1d1)]('#cf-overshow\x20>\x20:not(.cf-overshow-close)'),_0x470a89=document[_0x4f63b6(0x1d1)]('#cf-overshow\x20>\x20.cf-overshow-close');_0x1ed0fe[_0x4f63b6(0x14d)](function(_0x467883){var _0x46d49c=_0x4f63b6;_0x467883[_0x46d49c(0x2ed)]();});for(var _0x16b2b4=0x1;_0x16b2b4<_0x470a89[_0x4f63b6(0x13a)];_0x16b2b4++){_0x470a89[_0x16b2b4][_0x4f63b6(0x2ed)]();}},0x64);},'linkPageFetchShow'(_0x47c050){var _0xfd4ff3=_0xc535,_0x8f312d=_0xfd4ff3(0x2bc);fetch(_0x47c050)[_0xfd4ff3(0x291)](_0x27a079=>_0x27a079[_0xfd4ff3(0x1d3)]())['then'](_0x1e3b2d=>{var _0x4f968b=_0xfd4ff3;noClick='ok';var _0x32bd45=_0x1e3b2d[_0x4f968b(0x1f1)],_0x1561f9=eval(_0x1e3b2d[_0x4f968b(0x146)]);if(_0x32bd45[_0x4f968b(0x23f)]===0x0){btf[_0x4f968b(0x2fa)](_0x4f968b(0x1ac));return;}mycpen1js['linkPageLoadFcircleShow'](_0x32bd45,_0x1561f9),document['getElementById'](_0x4f968b(0x2c9))[_0x4f968b(0x25e)]='cf-show-now',document['getElementById'](_0x4f968b(0x2bd))['insertAdjacentHTML']('afterbegin',_0x8f312d);})[_0xfd4ff3(0x2a7)](_0x5a29d9=>{btf['snackbarShow']('未获取到文章卡片');});},'linkPageLoadFcircleShow'(_0x2ae0e8,_0x48edd1){var _0x2c7f78=_0xc535,_0x452089='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-head\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22cf-img-avatar\x20avatar\x22\x20src=\x22'+_0x2ae0e8[_0x2c7f78(0x1df)]+_0x2c7f78(0x18b)+_0x2ae0e8[_0x2c7f78(0x2b8)]+'\x22>'+_0x2ae0e8['name']+_0x2c7f78(0x2aa);for(var _0x38d1f0=0x0;_0x38d1f0<_0x2ae0e8[_0x2c7f78(0x23f)];_0x38d1f0++){var _0x40960f=_0x48edd1[_0x38d1f0];let _0x207440='';Date[_0x2c7f78(0x166)]()-new Date(_0x40960f['created']+_0x2c7f78(0x1be))[_0x2c7f78(0x145)]()<=0x3e8*0x3c*0x3c*0x18*0x2&&(_0x207440='style=\x22color:\x20var(--mycpen1-main);\x20opacity:\x201;\x22'),_0x452089+=_0x2c7f78(0x2c8)+_0x40960f[_0x2c7f78(0x2b8)]+'\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20data-title=\x22'+_0x40960f[_0x2c7f78(0x217)]+'\x22>'+_0x40960f[_0x2c7f78(0x217)]+_0x2c7f78(0x1d7)+_0x207440+'>'+_0x40960f[_0x2c7f78(0x14b)]+_0x2c7f78(0x2d2);}_0x452089+=_0x2c7f78(0x2b7),document['getElementById'](_0x2c7f78(0x2bd))[_0x2c7f78(0x1e3)](_0x2c7f78(0x2cd),_0x452089),document[_0x2c7f78(0x21b)](_0x2c7f78(0x2bd))['className']=_0x2c7f78(0x269);},'linkPageRssAliveCheck'(){var _0x41eb87=_0xc535;apiurl=_0x41eb87(0x22c),rssAliveCheckUrl=apiurl+_0x41eb87(0x153),fetch(rssAliveCheckUrl)[_0x41eb87(0x291)](_0xa3e848=>_0xa3e848[_0x41eb87(0x1d3)]())['then'](_0x3cb306=>{var _0x49acc7=_0x41eb87,_0x730ace=_0x3cb306[_0x49acc7(0x277)],_0x142a8e=_0x3cb306['not_lost_friends'],_0x5dee12=_0x3cb306[_0x49acc7(0x265)];let _0x14fa5d=[];for(const _0xe3983 in _0x730ace){let _0x3641bb=_0x730ace[_0xe3983];_0x3641bb=_0x3641bb[_0x49acc7(0x220)](/^https?:\/\//,''),_0x3641bb=_0x3641bb['replace'](/\/$/,''),_0x14fa5d['push'](_0x3641bb);}let _0x33b299=[];for(const _0x369d60 in _0x142a8e){let _0x334d45=_0x142a8e[_0x369d60];_0x334d45=_0x334d45[_0x49acc7(0x220)](/^https?:\/\//,''),_0x334d45=_0x334d45[_0x49acc7(0x220)](/\/$/,''),_0x33b299[_0x49acc7(0x20c)](_0x334d45);}const _0xb71ee8=document[_0x49acc7(0x1d1)](_0x49acc7(0x1fa));_0xb71ee8[_0x49acc7(0x14d)](_0xa2db12=>{var _0x49fa6f=_0x49acc7;if(_0xa2db12){const _0x801855=_0xa2db12[_0x49fa6f(0x2fb)]('data-link');let _0x3ec993=_0x801855[_0x49fa6f(0x220)](/^https?:\/\//,'');_0x3ec993=_0x3ec993[_0x49fa6f(0x220)](/\/$/,'');if(_0x5dee12>0x0){if(_0x33b299[_0x49fa6f(0x1b9)](_0x3ec993))_0xa2db12[_0x49fa6f(0x26e)][_0x49fa6f(0x256)](_0x49fa6f(0x2fc));else _0x14fa5d[_0x49fa6f(0x1b9)](_0x3ec993)?_0xa2db12[_0x49fa6f(0x26e)][_0x49fa6f(0x256)]('flink-mycpen1-rss-lost-friends'):_0xa2db12[_0x49fa6f(0x26e)][_0x49fa6f(0x256)]('flink-mycpen1-rss-unknown-friends');}else _0x5dee12===0x0&&_0xa2db12[_0x49fa6f(0x26e)][_0x49fa6f(0x256)]('flink-mycpen1-rss-lost-friends');}});});},'NzcheckLink':async _0x8eba75=>{var _0x2a4103=_0xc535;const _0x4ad721=document['querySelectorAll'](_0x8eba75);if(_0x4ad721){let _0x16d051=new RegExp(/^[#].*/);for(let _0x30b9c1=0x0;_0x30b9c1<_0x4ad721[_0x2a4103(0x13a)];_0x30b9c1++){const _0x328081=_0x4ad721[_0x30b9c1];var _0x4b8ed4=_0x328081[_0x2a4103(0x1c3)](_0x2a4103(0x168)),_0x2024b4=_0x328081[_0x2a4103(0x26e)][_0x2a4103(0x2a8)](_0x2a4103(0x149));if(!_0x4b8ed4&&!_0x2024b4){let _0x5dea6e=_0x328081[_0x2a4103(0x2fb)](_0x2a4103(0x223)),_0x57a984=_0x328081[_0x2a4103(0x2fb)](_0x2a4103(0x2a1)),_0x4fbd3e=_0x328081['getAttribute'](_0x2a4103(0x1b1));if(!_0x16d051['test'](_0x5dea6e)&&_0x4fbd3e!=='prev'&&_0x4fbd3e!=='next'&&_0x4fbd3e!==_0x2a4103(0x163)&&_0x4fbd3e!==_0x2a4103(0x152)&&_0x5dea6e!==_0x2a4103(0x17b)){if(!await mycpen1js[_0x2a4103(0x1fe)](_0x5dea6e)&&!_0x57a984)_0x328081[_0x2a4103(0x28c)]('href','/redirect.html?url='+btoa(_0x5dea6e));else!await mycpen1js[_0x2a4103(0x1fe)](_0x5dea6e)&&_0x57a984===_0x2a4103(0x246)&&_0x328081[_0x2a4103(0x28c)](_0x2a4103(0x223),_0x2a4103(0x274)+btoa(_0x5dea6e)+_0x2a4103(0x251));}}_0x328081[_0x2a4103(0x26e)][_0x2a4103(0x256)](_0x2a4103(0x149));}}},'NzcheckLocalSite':async _0x36336c=>{var _0x30e4b8=_0xc535;try{const _0x1203a4=[_0x30e4b8(0x165),'cpen.top','mycpen.cn'];let _0x5dd835=![];for(let _0x57d44b=0x0;_0x57d44b<_0x1203a4[_0x30e4b8(0x13a)];_0x57d44b++){const _0x2269ff=_0x1203a4[_0x57d44b];if(_0x36336c[_0x30e4b8(0x1b9)](_0x2269ff)){_0x5dd835=!![];break;}}return _0x5dd835;}catch(_0x432073){return!![];}},'cookieConsent'(){var _0x7ebb3e=_0xc535;window[_0x7ebb3e(0x196)](_0x7ebb3e(0x2ec),()=>{var _0x5226b9=_0x7ebb3e;window[_0x5226b9(0x141)][_0x5226b9(0x190)]({'type':_0x5226b9(0x268),'theme':_0x5226b9(0x202),'static':![],'position':_0x5226b9(0x19f),'content':{'message':_0x5226b9(0x2cc),'dismiss':'接受','allow':'接受','deny':'拒绝','link':![]},'palette':{'popup':{'background':'#edeff5','text':'#838391'},'button':{'background':_0x5226b9(0x1f8)}}});});}};mycpen1js[_0x3ab5b9(0x13d)](),document[_0x3ab5b9(0x209)](_0x3ab5b9(0x1b2),mycpen1js[_0x3ab5b9(0x16e)]),document['addEventListener'](_0x3ab5b9(0x1b2),mycpen1js['PressEscapeKey']),window[_0x3ab5b9(0x13f)]=mycpen1js[_0x3ab5b9(0x1a3)],mycpen1js[_0x3ab5b9(0x2fd)]();function whenDOMReadyMycpen1JS(){var _0xc31f8d=_0x3ab5b9;mycpen1js['changeNavPageNameTitle'](),mycpen1js[_0xc31f8d(0x2ff)](),mycpen1js['removeBodyPaceClass'](),mycpen1js[_0xc31f8d(0x254)](),mycpen1js['categoryPageActive'](),mycpen1js['listenToPageInputPress'](),mycpen1js[_0xc31f8d(0x1cd)](),document[_0xc31f8d(0x21b)](_0xc31f8d(0x280))&&(mycpen1js[_0xc31f8d(0x295)](),mycpen1js[_0xc31f8d(0x2a4)](),window[_0xc31f8d(0x23d)]=()=>{var _0x49bbb6=_0xc31f8d;document[_0x49bbb6(0x21b)](_0x49bbb6(0x280))&&(mycpen1js['essayReflashEssayWaterFall'](),setTimeout(()=>{mycpen1js['essayReflashEssayWaterFall']();},0x12c));}),document[_0xc31f8d(0x21b)](_0xc31f8d(0x22f))[_0xc31f8d(0x196)](_0xc31f8d(0x257),function(){var _0x55ec50=_0xc31f8d;setTimeout(mycpen1js[_0x55ec50(0x1f7)],0x64);}),document[_0xc31f8d(0x21b)](_0xc31f8d(0x292))['addEventListener']('click',function(){var _0xb1fb1c=_0xc31f8d;setTimeout(mycpen1js[_0xb1fb1c(0x1f7)],0x64);}),document['getElementById'](_0xc31f8d(0x211))[_0xc31f8d(0x196)](_0xc31f8d(0x257),function(){setTimeout(mycpen1js['switchPostChart'],0x64);}),document[_0xc31f8d(0x21b)](_0xc31f8d(0x25d))[_0xc31f8d(0x196)](_0xc31f8d(0x257),function(){var _0x391e42=_0xc31f8d;setTimeout(mycpen1js[_0x391e42(0x1f7)],0x64);}),mycpen1js[_0xc31f8d(0x240)](),mycpen1js[_0xc31f8d(0x2e5)](),document[_0xc31f8d(0x21b)](_0xc31f8d(0x198))&&(mycpen1js['cardRefreshTimes'](),setInterval(()=>{mycpen1js['cardRefreshTimes']();},0x3e8)),document['getElementById'](_0xc31f8d(0x286))&&mycpen1js['linkPageRssAliveCheck'](),document['getElementById'](_0xc31f8d(0x179))&&(mycpen1js['NzcheckLink']('#article-container\x20.flink\x20.flink-list\x20>\x20.flink-list-item.单向\x20>\x20a'),mycpen1js[_0xc31f8d(0x20f)](_0xc31f8d(0x2a6))),document[_0xc31f8d(0x21b)]('mycpen1-about-page-tag')&&mycpen1js[_0xc31f8d(0x20f)](_0xc31f8d(0x235)),document[_0xc31f8d(0x21b)]('post-comment')&&setInterval(()=>{var _0x281c97=_0xc31f8d;if(document['querySelector'](_0x281c97(0x25a))){mycpen1js['NzcheckLink'](_0x281c97(0x2a0));const _0x50f181=document['querySelectorAll']('.tk-avatar.tk-clickable:not(.already-clear-clickEvent)');_0x50f181[_0x281c97(0x14d)](_0x24827e=>{var _0x42425e=_0x281c97;_0x24827e['classList'][_0x42425e(0x256)](_0x42425e(0x247));const _0x2856bf=document[_0x42425e(0x212)]('a');Array[_0x42425e(0x18c)](_0x24827e[_0x42425e(0x1e1)])['forEach'](_0x2de6a3=>{var _0x3f4b2a=_0x42425e;_0x2856bf[_0x3f4b2a(0x28c)](_0x2de6a3[_0x3f4b2a(0x1ef)],_0x2de6a3['value']);});while(_0x24827e[_0x42425e(0x177)]){_0x2856bf[_0x42425e(0x231)](_0x24827e[_0x42425e(0x177)]);}_0x24827e[_0x42425e(0x186)][_0x42425e(0x227)](_0x2856bf,_0x24827e);const _0x23f30f=_0x2856bf[_0x42425e(0x207)]['firstElementChild'][_0x42425e(0x293)][_0x42425e(0x293)],_0xdfd327=_0x23f30f['getAttribute'](_0x42425e(0x223));_0x2856bf[_0x42425e(0x28c)](_0x42425e(0x223),_0xdfd327),_0x2856bf[_0x42425e(0x28c)](_0x42425e(0x28f),'_blank'),_0x2856bf[_0x42425e(0x28c)](_0x42425e(0x1b1),'noopener\x20external\x20nofollow\x20noreferrer');});}},0x3e8);}function _0x42d8(){var _0x12a185=['getMonth','stop','title','pause','childList','开朗的','getElementById','善于表达的','.schedule-r3\x20.schedule-d1\x20.aside-span2','input','offsetTop','replace','getElementsByClassName','可爱的','href','vertical','05.12','118181fPCJpX','replaceChild','footer','scrollHeight','preventDefault','getSelection','https://www.cpen.top:8002/','body','#console','darkmode','mycpen1-categories-page-cloudCategories-','appendChild','postv2?name=','幽默的','#pBar_week','#article-container\x20#mycpen1-about-page-tag-sponsor-part\x20a','\x0a链接:','split','min','disconnect','.share','美丽的','comment-tips','onresize','grayscale(100%)','article_num','cpRemind','\x0a>\x20','inline','hide-aside','day_to_night','input[name=\x27mail\x27]','goDown','already-clear-clickEvent','data','querySelector','el-textarea__inner','有责任感的','toggle','#mail','#nav-totop','细心的','offsetY','&type=goDown','time','disqusReset','tagPageActive','abs','add','click','origin','ceil','.tk-comments-container','#p_span_month','有责任心的','darkmode_sidebarSwitch','className','nameTextStyle','100%','innerHTML','function','log','disqus_thread','total_friend_num','自信的','color:#fadfa3','info','cf-show-now','有智慧的','有耐性的','links','有逻辑思维的','classList','有艺术细胞的','#4C4948','#newYear\x20.title','天\x20(阿里云)','bbtalk','/redirect.html?url=','initEvent','善于沟通的','lost_friends','11165DBonLz','date_suffix','<span\x20class=\x22unit\x22>天</span></span>','select','MTAvMjIvMTk5OCAwMA==','#inpName','.schedule-r1\x20.schedule-d1\x20.aside-span2','<img\x20src=\x22','mycpen1-essay-page-tag','有学习能力的','#inpEmail','\x20/\x20','link_list','children','mycpen1-link-page-tag-2','深刻的','test','IMG','#p_span_week','type','setAttribute','addClass','onmouseenter','target','round','then','darkmode_navswitch','firstElementChild','gray\x20!important;','essayChangeTimeInEssayByMycpen','872ptUiiC','bind','喜欢思考的','observe','豁达的','padEnd','stringify','有担当的','px;\x20top:','MDA6MDA6MDA=','.tk-comments-container\x20a:not(.already-redirect-link)','data-download','文静的','距\x202025-05-23\x20计时','essayReflashEssayWaterFall','温柔的','#article-container\x20.flink\x20.flink-list\x20>\x20.flink-list-item.失联\x20>\x20a','catch','contains','join','</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-content\x22>\x0a\x20\x20\x20\x20','currentTarget','稳重的','有幽默感的','-01-01\x2000:00:00','toPageButton','#pBar_year','setSelectionRange','#comment_email','MDA6MDA=','clientHeight','color','#comment_author','</div></div>','link','05/23/2025\x2000:00:00','英俊的','有冒险精神的','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-close\x22\x20onclick=\x22mycpen1js.linkPageCloseShow()\x22></div>\x0a\x20\x20\x20\x20','cf-overshow','axisLabel','onmouseover','勇敢的','dark','display:flex;\x20height:','null','有团队精神的','真诚的','富有想象力的','谦虚的','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<p><a\x20class=\x22cf-article-title\x22\x20\x20href=\x22','cf-overlay','距\x202022-08-28\x20上线','show','我们使用\x20cookie\x20来确保在我们的网站上为您提供最佳体验。','beforeend','haveValue','initConsoleState','有组织能力的','有创新能力的','</span></p>\x0a\x20\x20\x20\x20\x20\x20','有激情的','dataset','慷慨的','\x20/\x20007','value','page-name','aside-status','12.13','color:\x20#fadfa3;\x20background:\x20#030307;\x20padding:5px\x200;','removeClass','<span\x20class=\x22happyNewYear\x22>新年快乐</span>','none','.page\x20.layout\x20#category\x20#category-page-categories','128079fLZliU','3LxninS','Snackbar','返回顶部','getDate','closeAboutAplayer','display','成熟的','toPageText','mycpen1-about-page-tag','\x20|\x20Mycpen','long','load','remove','location','setOption','<i\x20class=\x22fa-solid\x20fa-clock\x22></i>\x20<span>距离</span>\x20','color:#030307','addedNodes','documentElement','金针菇','afterend','.page\x20.layout\x20#tag\x20#tag-page-tags','px;\x20width:','scrollTop','1043943POwDcc','snackbarShow','getAttribute','flink-mycpen1-rss-not-lost-friends','removeaAlayerFixedLrc','div','getFooterRandomFlink','有正义感的','大方的','length','有眼光的','hideConsole','console','markLine','onscroll','火龙果','cookieconsent','light','#waterfall','getFullYear','getTime','article_data','focus','hour','already-redirect-link','loadFBComment','created','setMonth','forEach','setItem','HTMLEvents','#newYear\x20.newYear-time','18vielLM','tag','friendstatus','rgba(255,255,255,0.7)','apply','trim','set','西红柿','linkPageFetchShow','css','\x0a%c','datetime','series','object','tags-chart','innerText','theme','OjAw','category','start','localhost:4000','now','08.14','data-fancybox','4kmDwEt','07.07','https://cdn.cbd.int/mycpen-blog@0.0.0-fjccwuvoyp/json/link.json','#ds-dialog-email','体贴的','PressEscapeKey','MTA=','优雅的','pageYOffset','data-theme','有协调能力的','#name','%c\x20','坚强的','firstChild','post-comment','mycpen1-link-page-tag','copy','javascript:void(0);','style','09.30','\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22cf-overlay\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22mycpen1js.linkPageCloseShow()\x22></div>\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22cf-overshow\x22\x20class=\x22cf-new-add\x22></div>\x0a\x20\x20\x20\x20','开放的','randomLink','#bber\x20time','toString','复制成功','scrollY','266misqZD','parentNode','有执行能力的','.essay_bar_swiper_container','onmouseleave','DISQUS','\x22\x20alt=\x22avatar\x22\x20onerror=\x22this.src=\x27/img/flink404.svg\x27;\x20this.onerror\x20=\x20null;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20href=\x22','from','random','undefined','宽容的','initialise','善于领导的','.page-number','day','\x20MYCPEN\x20BLOG\x20','09.09','addEventListener','px;','card-widget-schedule','px;\x20left:','post?link=','有远见的','有爱心的','独立的','keyCode','bottom-right','loadUrl','#pBar_month','Happy\x20New\x20Year!','getNavRightPagePercent','dispatchEvent','有分析能力的','OwO-body','#percent','有思想的','#p_span_day','84MMKFfK','猕猴桃','未获取到订阅内容','lineStyle','createEvent','axisLine','floor','rel','keydown','waterfall','autoplay','toFixed','onmouseout','.schedule-r2\x20.schedule-d1\x20.aside-span2','label','includes','just','1356017UrXfgi','toPage','#post-comment','\x2000:00:00','linkPageCloseShow','src','_blank','#bber','hasAttribute','有决策能力的','input[name=\x27email\x27]','慎重的','#newYear\x20.today','setHours','2805655TesfDk','聪明的','$1:$2$3','offsetHeight','owoBigfunc','max','距\x202058-00-00\x20计时','tagName','querySelectorAll','善于合作的','json','\x20/\x20024','哈密瓜','可靠的','</a><span\x20','好奇的','owo-big','donotreply@mycpen.cn','textContent','善良的','loadData','.cf-overshow-close','avatar','noopener\x20external\x20nofollow\x20noreferrer','attributes','率直的','insertAdjacentHTML','getDay','saveData','410BVHTBL','有个性的','getItem','善解人意的','#consoleHideAside','essayReplaceAll','textStyle','setDate','552402OocDFT','name','mycpen1-fcircle-page-tag','statistical_data','#p_span_year','clientWidth','#author','#email','纯真的','switchPostChart','#4b81e8','apipublicurl','#article-container\x20.flink#mycpen1-link-page-tag-2\x20.flink-list>.flink-list-item\x20a\x20.flink-item-icon','input[name=\x27author\x27]','距\x202028-00-00\x20计时','具有批判性思维的','NzcheckLocalSite','change','pathname','守信的','edgeless','concat','essayDiffDate','有趣的','yAxis','nextElementSibling','scrollTo','removeEventListener','04.04','page/','push','xAxis','pace-done','NzcheckLink','parse','darkmode_consoleSwitch','createElement','<span\x20class=\x22day\x22>','100.00'];_0x42d8=function(){return _0x12a185;};return _0x42d8();}whenDOMReadyMycpen1JS(),document['addEventListener']('pjax:complete',whenDOMReadyMycpen1JS);
package/js/fcircle.js CHANGED
@@ -1 +1 @@
1
- var frdata={apiurl:"https://www.cpen.top:8002/",defaultFish:100,hungryFish:100},fdatalist=JSON.parse(localStorage.getItem("fdatalist")),fcdata={jsonurl:"",apiurl:"",apipublicurl:fdatalist.apiurl,initnumber:fdatalist.initnumber,stepnumber:fdatalist.stepnumber,article_sort:"created",error_img:"/img/flink404.svg"};if("undefined"!=typeof fdataUser)for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var article_num="",sortNow="",UrlNow="",friends_num="",container=document.getElementById("fcircleContainer")||document.getElementById("cf-container"),localSortNow=localStorage.getItem("sortNow"),localUrlNow=localStorage.getItem("urlNow");function loadStatistical(a){article_num=a.article_num,friends_num=a.friends_num;a.friends_num,a.active_num,a.article_num;var e=`\n <div id="cf-more" class="cf-new-add" onclick="loadNextArticle()"><i class="fas fa-angle-double-down"></i></div>\n <div id="cf-footer" class="cf-new-add">\n <span id="cf-version-up" onclick="checkVersion()"></span>\n <span class="cf-data-lastupdated">Powered by <a href="https://github.com/Rock-Candy-Tea/hexo-circle-of-friends" target="_blank" rel="noopener external nofollow noreferrer">FriendCircle</a></span>\n <span class="cf-data-lastupdated">订阅:${a.friends_num} 活跃:${a.active_num} 日志:${a.article_num}</span>\n <span class="cf-data-lastupdated">更新于:${a.last_updated_time}</span>\n 排序:<span id="cf-change-created" data-sort="created" onclick="changeSort(event)" class="${"created"==sortNow?"cf-change-now":""}">创建时间</span> | <span id="cf-change-updated" data-sort="updated" onclick="changeSort(event)" class="${"updated"==sortNow?"cf-change-now":""}" >更新时间</span>\n </div>\n <div id="cf-overlay" class="cf-new-add" onclick="closeShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n `;container&&(container.insertAdjacentHTML("afterend",e),setTimeout((function(){document.getElementById("hexo-circle-of-friends-root-notice").innerHTML=""}),0))}function loadArticleItem(a,e,t){var r="",o=t;if(t>article_num&&(o=article_num),e<article_num){for(var l=e;l<o;l++){var n=a[l];r+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${n.link}" target="_blank" rel="noopener nofollow" data-title="${n.title}">${n.title}</a>\n <span class="cf-article-floor">${n.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${n.link}" data-name="${n.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${n.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${n.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${n.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${n.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",r),fetchNextArticle()}else document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>'}function loadFcircleShow(a,e){for(var t=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${a.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${a.link}">${a.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,r=0;r<a.article_num;r++){var o=e[r];let a="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(a='style="color: var(--mycpen1-main); opacity: 1;"'),t+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${a}>${o.created}</span></p>\n `}t+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",t),document.getElementById("cf-overshow").className="cf-show-now"}function fetchNextArticle(){var start=document.getElementsByClassName("cf-article").length,end=start+fcdata.stepnumber,articleNum=article_num;if(end>articleNum&&(end=articleNum),start<articleNum){UrlNow=localStorage.getItem("urlNow");var fetchUrl=UrlNow+"rule="+sortNow+"&start="+start+"&end="+end;fetch(fetchUrl).then((a=>a.json())).then((json=>{var nextArticle=eval(json.article_data);localStorage.setItem("nextArticle",JSON.stringify(nextArticle))}))}else(start=articleNum)&&(document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>')}function loadNextArticle(){for(var a=JSON.parse(localStorage.getItem("nextArticle")),e="",t=0;t<a.length;t++){var r=a[t];e+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${r.link}" target="_blank" rel="noopener nofollow" data-title="${r.title}">${r.title}</a>\n <span class="cf-article-floor">${r.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${r.link}" data-name="${r.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${r.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${r.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${r.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${r.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",e),lazyLoadInstance.update(),fetchNextArticle()}function loadNoArticle(){var a=sortNow+"ArticleData";localStorage.removeItem(a),localStorage.removeItem("statisticalData"),document.getElementById("cf-more").remove(),window.scrollTo(0,document.getElementsByClassName("cf-state").offsetTop)}function clearLocal(){localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),localStorage.removeItem("sortNow"),localStorage.removeItem("urlNow"),location.reload()}function checkVersion(){var a=fcdata.apiurl+"version";fetch(a).then((a=>a.json())).then((a=>{var e=a.status,t=a.current_version,r=a.latest_version,o=document.getElementById("cf-version-up");o.innerHTML=0==e?"当前版本:v"+t:1==e?"发现新版本:v"+t+" ↦ "+r:"网络错误,检测失败!"}))}function changeEgg(){if(fcdata.jsonurl||fcdata.apiurl){document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),container.innerHTML="",UrlNow=localStorage.getItem("urlNow");var a=fcdata.apipublicurl+"all?";UrlNow!==a?changeUrl=fcdata.apipublicurl+"all?":fcdata.jsonurl?changeUrl=fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl&&(changeUrl=fcdata.apiurl+"all?"),localStorage.setItem("urlNow",changeUrl),FetchFriendCircle(sortNow,changeUrl)}else clearLocal()}function FetchFriendCircle(sortNow,changeUrl){var end=fcdata.initnumber,fetchUrl=UrlNow+"rule="+sortNow+"&start=0&end="+end;changeUrl&&(fetchUrl=changeUrl+"rule="+sortNow+"&start=0&end="+end),fetch(fetchUrl).then((a=>a.json())).then((json=>{var statisticalData=json.statistical_data,articleData=eval(json.article_data),articleSortData=sortNow+"ArticleData";loadStatistical(statisticalData),loadArticleItem(articleData,0,end),localStorage.setItem("statisticalData",JSON.stringify(statisticalData)),localStorage.setItem(articleSortData,JSON.stringify(articleData))}))}function changeSort(a){sortNow=a.currentTarget.dataset.sort,localStorage.setItem("sortNow",sortNow),document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),container.innerHTML="",changeUrl=localStorage.getItem("urlNow"),container.style.opacity=0,document.getElementById("hexo-circle-of-friends-root-notice").innerHTML="与主机通讯中......",setTimeout((function(){container.innerHTML="",initFriendCircle(sortNow,changeUrl),container.style.opacity=1}),300),fcdata.apiurl&&checkVersion()}function openMeShow(a){a.preventDefault();var e=a.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),t="";t=fcdata.apiurl?fcdata.apiurl+"post?link="+e:fcdata.apipublicurl+"post?link="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function openMeShowV2(a){a.preventDefault();var e=encodeURIComponent(a.currentTarget.dataset.name),t="";t=fcdata.apiurl?fcdata.apiurl+"postv2?name="+e:fcdata.apipublicurl+"postv2?name="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function closeShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var a=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),e=document.querySelectorAll("#cf-overshow > .cf-overshow-close");a.forEach((function(a){a.remove()}));for(var t=1;t<e.length;t++)e[t].remove()}),100)}localSortNow&&localUrlNow?(sortNow=localSortNow,UrlNow=localUrlNow):(sortNow=fcdata.article_sort,UrlNow=fcdata.jsonurl?fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl?fcdata.apiurl+"all?":fcdata.apipublicurl+"all?",localStorage.setItem("urlNow",UrlNow),localStorage.setItem("sortNow",sortNow));var noClick="ok";function openToShow(){var a="";a=fcdata.apiurl?fcdata.apiurl+"post":fcdata.apipublicurl+"post","ok"==noClick&&(noClick="no",fetchShow(a))}function fetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="closeShow()"></div>\n ';fetch(url).then((a=>a.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);loadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)})).catch((a=>{btf.snackbarShow("未获取到文章卡片")}))}function initFriendCircle(a,e){var t=a+"ArticleData";JSON.parse(localStorage.getItem("statisticalData")),JSON.parse(localStorage.getItem(t));container.innerHTML="",FetchFriendCircle(a,e)}initFriendCircle(sortNow);
1
+ var frdata={apiurl:"https://www.cpen.top:8002/",defaultFish:100,hungryFish:100},fdatalist=JSON.parse(localStorage.getItem("fdatalist")),fcdata={jsonurl:"",apiurl:"",apipublicurl:fdatalist.apiurl,initnumber:fdatalist.initnumber,stepnumber:fdatalist.stepnumber,article_sort:"created",error_img:"https://cdn.cbd.int/mycpen-blog@0.0.0-fjccwuvoyp/img/flink404.svg"};if("undefined"!=typeof fdataUser)for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var article_num="",sortNow="",UrlNow="",friends_num="",container=document.getElementById("fcircleContainer")||document.getElementById("cf-container"),localSortNow=localStorage.getItem("sortNow"),localUrlNow=localStorage.getItem("urlNow");function loadStatistical(a){article_num=a.article_num,friends_num=a.friends_num;a.friends_num,a.active_num,a.article_num;var e=`\n <div id="cf-more" class="cf-new-add" onclick="loadNextArticle()"><i class="fas fa-angle-double-down"></i></div>\n <div id="cf-footer" class="cf-new-add">\n <span id="cf-version-up" onclick="checkVersion()"></span>\n <span class="cf-data-lastupdated">Powered by <a href="https://github.com/Rock-Candy-Tea/hexo-circle-of-friends" target="_blank" rel="noopener external nofollow noreferrer">FriendCircle</a></span>\n <span class="cf-data-lastupdated">订阅:${a.friends_num} 活跃:${a.active_num} 日志:${a.article_num}</span>\n <span class="cf-data-lastupdated">更新于:${a.last_updated_time}</span>\n 排序:<span id="cf-change-created" data-sort="created" onclick="changeSort(event)" class="${"created"==sortNow?"cf-change-now":""}">创建时间</span> | <span id="cf-change-updated" data-sort="updated" onclick="changeSort(event)" class="${"updated"==sortNow?"cf-change-now":""}" >更新时间</span>\n </div>\n <div id="cf-overlay" class="cf-new-add" onclick="closeShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n `;container&&(container.insertAdjacentHTML("afterend",e),setTimeout((function(){document.getElementById("hexo-circle-of-friends-root-notice").innerHTML=""}),0))}function loadArticleItem(a,e,t){var r="",o=t;if(t>article_num&&(o=article_num),e<article_num){for(var l=e;l<o;l++){var n=a[l];r+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${n.link}" target="_blank" rel="noopener nofollow" data-title="${n.title}">${n.title}</a>\n <span class="cf-article-floor">${n.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${n.link}" data-name="${n.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${n.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${n.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${n.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${n.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",r),fetchNextArticle()}else document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>'}function loadFcircleShow(a,e){for(var t=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${a.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${a.link}">${a.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,r=0;r<a.article_num;r++){var o=e[r];let a="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(a='style="color: var(--mycpen1-main); opacity: 1;"'),t+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${a}>${o.created}</span></p>\n `}t+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",t),document.getElementById("cf-overshow").className="cf-show-now"}function fetchNextArticle(){var start=document.getElementsByClassName("cf-article").length,end=start+fcdata.stepnumber,articleNum=article_num;if(end>articleNum&&(end=articleNum),start<articleNum){UrlNow=localStorage.getItem("urlNow");var fetchUrl=UrlNow+"rule="+sortNow+"&start="+start+"&end="+end;fetch(fetchUrl).then((a=>a.json())).then((json=>{var nextArticle=eval(json.article_data);localStorage.setItem("nextArticle",JSON.stringify(nextArticle))}))}else(start=articleNum)&&(document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>')}function loadNextArticle(){for(var a=JSON.parse(localStorage.getItem("nextArticle")),e="",t=0;t<a.length;t++){var r=a[t];e+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${r.link}" target="_blank" rel="noopener nofollow" data-title="${r.title}">${r.title}</a>\n <span class="cf-article-floor">${r.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${r.link}" data-name="${r.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${r.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${r.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${r.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${r.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",e),lazyLoadInstance.update(),fetchNextArticle()}function loadNoArticle(){var a=sortNow+"ArticleData";localStorage.removeItem(a),localStorage.removeItem("statisticalData"),document.getElementById("cf-more").remove(),window.scrollTo(0,document.getElementsByClassName("cf-state").offsetTop)}function clearLocal(){localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),localStorage.removeItem("sortNow"),localStorage.removeItem("urlNow"),location.reload()}function checkVersion(){var a=fcdata.apiurl+"version";fetch(a).then((a=>a.json())).then((a=>{var e=a.status,t=a.current_version,r=a.latest_version,o=document.getElementById("cf-version-up");o.innerHTML=0==e?"当前版本:v"+t:1==e?"发现新版本:v"+t+" ↦ "+r:"网络错误,检测失败!"}))}function changeEgg(){if(fcdata.jsonurl||fcdata.apiurl){document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),container.innerHTML="",UrlNow=localStorage.getItem("urlNow");var a=fcdata.apipublicurl+"all?";UrlNow!==a?changeUrl=fcdata.apipublicurl+"all?":fcdata.jsonurl?changeUrl=fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl&&(changeUrl=fcdata.apiurl+"all?"),localStorage.setItem("urlNow",changeUrl),FetchFriendCircle(sortNow,changeUrl)}else clearLocal()}function FetchFriendCircle(sortNow,changeUrl){var end=fcdata.initnumber,fetchUrl=UrlNow+"rule="+sortNow+"&start=0&end="+end;changeUrl&&(fetchUrl=changeUrl+"rule="+sortNow+"&start=0&end="+end),fetch(fetchUrl).then((a=>a.json())).then((json=>{var statisticalData=json.statistical_data,articleData=eval(json.article_data),articleSortData=sortNow+"ArticleData";loadStatistical(statisticalData),loadArticleItem(articleData,0,end),localStorage.setItem("statisticalData",JSON.stringify(statisticalData)),localStorage.setItem(articleSortData,JSON.stringify(articleData))}))}function changeSort(a){sortNow=a.currentTarget.dataset.sort,localStorage.setItem("sortNow",sortNow),document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),container.innerHTML="",changeUrl=localStorage.getItem("urlNow"),container.style.opacity=0,document.getElementById("hexo-circle-of-friends-root-notice").innerHTML="与主机通讯中......",setTimeout((function(){container.innerHTML="",initFriendCircle(sortNow,changeUrl),container.style.opacity=1}),300),fcdata.apiurl&&checkVersion()}function openMeShow(a){a.preventDefault();var e=a.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),t="";t=fcdata.apiurl?fcdata.apiurl+"post?link="+e:fcdata.apipublicurl+"post?link="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function openMeShowV2(a){a.preventDefault();var e=encodeURIComponent(a.currentTarget.dataset.name),t="";t=fcdata.apiurl?fcdata.apiurl+"postv2?name="+e:fcdata.apipublicurl+"postv2?name="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function closeShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var a=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),e=document.querySelectorAll("#cf-overshow > .cf-overshow-close");a.forEach((function(a){a.remove()}));for(var t=1;t<e.length;t++)e[t].remove()}),100)}localSortNow&&localUrlNow?(sortNow=localSortNow,UrlNow=localUrlNow):(sortNow=fcdata.article_sort,UrlNow=fcdata.jsonurl?fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl?fcdata.apiurl+"all?":fcdata.apipublicurl+"all?",localStorage.setItem("urlNow",UrlNow),localStorage.setItem("sortNow",sortNow));var noClick="ok";function openToShow(){var a="";a=fcdata.apiurl?fcdata.apiurl+"post":fcdata.apipublicurl+"post","ok"==noClick&&(noClick="no",fetchShow(a))}function fetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="closeShow()"></div>\n ';fetch(url).then((a=>a.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);loadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)})).catch((a=>{btf.snackbarShow("未获取到文章卡片")}))}function initFriendCircle(a,e){var t=a+"ArticleData";JSON.parse(localStorage.getItem("statisticalData")),JSON.parse(localStorage.getItem(t));container.innerHTML="",FetchFriendCircle(a,e)}initFriendCircle(sortNow);cf32d=eval(_0x1d48a4[_0x42a348(0x17c)]),_0x284720=_0x242922+'ArticleData';loadStatistical(_0x953cef),loadArticleItem(_0x6cf32d,0x0,_0x8a79e1),localStorage[_0x42a348(0x16e)](_0x42a348(0x189),JSON[_0x42a348(0x160)](_0x953cef)),localStorage[_0x42a348(0x16e)](_0x284720,JSON[_0x42a348(0x160)](_0x6cf32d));});}function changeSort(_0x2a0cef){var _0xd9094=_0x235623;sortNow=_0x2a0cef['currentTarget'][_0xd9094(0x18a)]['sort'],localStorage['setItem'](_0xd9094(0x1aa),sortNow),document[_0xd9094(0x19b)](_0xd9094(0x17f))[_0xd9094(0x1b7)](_0xcae491=>_0xcae491['remove']()),container['innerHTML']='',changeUrl=localStorage['getItem']('urlNow'),container['style']['opacity']=0x0,document[_0xd9094(0x16f)](_0xd9094(0x199))[_0xd9094(0x1b8)]=_0xd9094(0x1a1),setTimeout(function(){var _0x138782=_0xd9094;container['innerHTML']='',initFriendCircle(sortNow,changeUrl),container[_0x138782(0x1bc)][_0x138782(0x1a2)]=0x1;},0x12c),fcdata[_0xd9094(0x1b0)]&&checkVersion();}function openMeShow(_0x1c7dce){var _0xab87d5=_0x235623;_0x1c7dce[_0xab87d5(0x176)]();var _0x555899=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,_0x49cc7e=_0x1c7dce[_0xab87d5(0x1c3)]['dataset']['link'][_0xab87d5(0x178)](_0x555899,'$1:$2$3'),_0x393536='';fcdata[_0xab87d5(0x1b0)]?_0x393536=fcdata['apiurl']+_0xab87d5(0x186)+_0x49cc7e:_0x393536=fcdata[_0xab87d5(0x164)]+_0xab87d5(0x186)+_0x49cc7e,noClick=='ok'&&(noClick='no',fetchShow(_0x393536));}function openMeShowV2(_0x1871ec){var _0x1c86b3=_0x235623;_0x1871ec[_0x1c86b3(0x176)]();var _0x383c58=encodeURIComponent(_0x1871ec[_0x1c86b3(0x1c3)][_0x1c86b3(0x18a)]['name']),_0x1d36bd='';fcdata['apiurl']?_0x1d36bd=fcdata[_0x1c86b3(0x1b0)]+'postv2?name='+_0x383c58:_0x1d36bd=fcdata[_0x1c86b3(0x164)]+_0x1c86b3(0x168)+_0x383c58,noClick=='ok'&&(noClick='no',fetchShow(_0x1d36bd));}function closeShow(){var _0x497a77=_0x235623;document[_0x497a77(0x16f)](_0x497a77(0x190))['className']-=_0x497a77(0x1ba),document['getElementById'](_0x497a77(0x175))[_0x497a77(0x15a)]-=_0x497a77(0x1ba),setTimeout(function(){var _0x5dc29f=_0x497a77,_0x5d25ae=document['querySelectorAll'](_0x5dc29f(0x196)),_0x5b5826=document[_0x5dc29f(0x19b)](_0x5dc29f(0x1a0));_0x5d25ae['forEach'](function(_0x5281bc){var _0x56f24c=_0x5dc29f;_0x5281bc[_0x56f24c(0x17a)]();});for(var _0x149d13=0x1;_0x149d13<_0x5b5826[_0x5dc29f(0x158)];_0x149d13++){_0x5b5826[_0x149d13][_0x5dc29f(0x17a)]();}},0x64);}var noClick='ok';function _0x28a5(){var _0x292a0a=['cf-overshow','preventDefault','article_num','replace','parse','remove','getElementsByClassName','article_data','version','getItem','.cf-new-add','cf-more','ArticleData','33714aNThsg','avatar','beforeend','catch','post?link=','initnumber','reload','statisticalData','dataset','offsetTop','friends_num','408envFfQ','\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20data-title=\x22','\x0a\x20\x20\x20\x20\x20\x20<p><a\x20class=\x22cf-article-title\x22\x20\x20href=\x22','cf-overlay','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-article\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22cf-article-title\x22\x20href=\x22','</span></a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-article-time\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-time-created\x22\x20style=\x22','fcircleContainer','cf-version-up','\x20日志:','#cf-overshow\x20>\x20:not(.cf-overshow-close)','69PLxOhC','title','hexo-circle-of-friends-root-notice','10zlFBhY','querySelectorAll','&start=','https://cdn.cbd.int/mycpen-blog@0.0.0-fjccwuvoyp/img/flink404.svg','stepnumber','\x22\x20>Updated</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x20\x20','#cf-overshow\x20>\x20.cf-overshow-close','与主机通讯中......','opacity','updated','\x22>Created</span>\x20|\x20<span\x20id=\x22cf-change-updated\x22\x20data-sort=\x22updated\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22','<div\x20id=\x22cf-more\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22loadNoArticle()\x22><small>一切皆有尽头!</small></div>','</span>\x0a\x20\x20\x20\x20\x20排序:<span\x20id=\x22cf-change-created\x22\x20data-sort=\x22created\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20','urlNow','removeItem','sortNow','post','status','</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-article-floor\x22>','当前版本:v','jsonurl','apiurl','current_version','355112LeQDjf','active_num','cf-article','last_updated_time','\x0a\x20\x20\x20\x20<div\x20class=\x22cf-overshow-close\x22\x20onclick=\x22closeShow()\x22></div>\x0a\x20\x20','forEach','innerHTML','json','cf-show-now','floor','style','\x22\x20class=\x22\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20href=\x22javascript:;\x22><img\x20class=\x22cf-img-avatar\x20avatar\x22\x20src=\x22','</span>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-data-article\x22\x20onclick=\x22clearLocal()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-label\x22>日志</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-message\x22>','279JwkhQy','\x22\x20>更新时间</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-overlay\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22closeShow()\x22></div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-overshow\x22\x20class=\x22cf-new-add\x22></div>\x0a\x20\x20','author','\x20活跃:','currentTarget','cf-change-now','27622DPbgzP','\x22\x20data-name=\x22','afterend','link','\x2000:00:00','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-head\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22cf-img-avatar\x20avatar\x22\x20src=\x22','cf-container','outerHTML','466071UWtiwd','scrollTo','article_sort','cf-state','26562WVtCkM','https://www.cpen.top:8002/','update','all?','insertAdjacentHTML','getTime','</span></p>\x0a\x20\x20\x20\x20','latest_version','6424319bATeAj','length','nextArticle','className','</div></div>','</span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>更新于:','\x20↦\x20','display:none','</a><span\x20','stringify','style=\x22color:\x20var(--mycpen1-main);\x20opacity:\x201;\x22','\x22>创建时间</span>\x20|\x20<span\x20id=\x22cf-change-updated\x22\x20data-sort=\x22updated\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22','then','apipublicurl','postjson?jsonlink=','created','updatedArticleData','postv2?name=','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-article-avatar\x20no-lightbox\x20flink-item-icon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20onclick=\x22openMeShowV2(event)\x22\x20data-link=\x22','name','rule=','</span>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-data-active\x22\x20onclick=\x22changeEgg()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-label\x22>活跃</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-message\x22>','error_img','setItem','getElementById','网络错误,检测失败!','\x0a\x20\x20\x20\x20<div\x20id=\x22cf-more\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22loadNextArticle()\x22><i\x20class=\x22fas\x20fa-angle-double-down\x22></i></div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-footer\x22\x20class=\x22cf-new-add\x22>\x0a\x20\x20\x20\x20\x20<span\x20id=\x22cf-version-up\x22\x20onclick=\x22checkVersion()\x22></span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>Powered\x20by\x20<a\x20href=\x22https://github.com/Rock-Candy-Tea/hexo-circle-of-friends\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20external\x20nofollow\x20noreferrer\x22>FriendCircle</a></span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>订阅:','94620zAQedC','&start=0&end=','\x22\x20alt=\x22avatar\x22\x20onerror=\x22this.src=\x27'];_0x28a5=function(){return _0x292a0a;};return _0x28a5();}function openToShow(){var _0x10a263=_0x235623,_0x55831c='';fcdata['apiurl']?_0x55831c=fcdata['apiurl']+_0x10a263(0x1ab):_0x55831c=fcdata['apipublicurl']+_0x10a263(0x1ab),noClick=='ok'&&(noClick='no',fetchShow(_0x55831c));}function fetchShow(_0x4921ac){var _0x5d8d99=_0x235623,_0x4a95da=_0x5d8d99(0x1b6);fetch(_0x4921ac)[_0x5d8d99(0x163)](_0x1fb3f7=>_0x1fb3f7[_0x5d8d99(0x1b9)]())[_0x5d8d99(0x163)](_0x376645=>{var _0x1e046d=_0x5d8d99;noClick='ok';var _0x2517b8=_0x376645['statistical_data'],_0x5cd789=eval(_0x376645[_0x1e046d(0x17c)]);loadFcircleShow(_0x2517b8,_0x5cd789),document[_0x1e046d(0x16f)](_0x1e046d(0x190))['className']=_0x1e046d(0x1ba),document[_0x1e046d(0x16f)](_0x1e046d(0x175))[_0x1e046d(0x1d5)]('afterbegin',_0x4a95da);})[_0x5d8d99(0x185)](_0x3a2584=>{btf['snackbarShow']('未获取到文章卡片');});}function initFriendCircle(_0x93b31a,_0x455557){var _0x4a324b=_0x235623,_0x2eab28=_0x93b31a+'ArticleData',_0x4d378c=JSON[_0x4a324b(0x179)](localStorage[_0x4a324b(0x17e)](_0x4a324b(0x189))),_0x38abe8=JSON[_0x4a324b(0x179)](localStorage[_0x4a324b(0x17e)](_0x2eab28));container[_0x4a324b(0x1b8)]='',FetchFriendCircle(_0x93b31a,_0x455557);}function _0x432c(_0x315337,_0x437ae8){var _0x28a5d6=_0x28a5();return _0x432c=function(_0x432c54,_0x303ab6){_0x432c54=_0x432c54-0x154;var _0x249343=_0x28a5d6[_0x432c54];return _0x249343;},_0x432c(_0x315337,_0x437ae8);}initFriendCircle(sortNow);