mycpen-blog 0.0.0-fyvbcebmdn → 0.0.0-fyvdazuhhw

Sign up to get free protection for your applications and to get access to all the features.
package/js/main.js CHANGED
@@ -1 +1,422 @@
1
- document.addEventListener("DOMContentLoaded",(function(){let e,t,n=!1;const o=n=>{const o=e=>Array.from(e).reduce(((e,t)=>e+t.offsetWidth),0);if(n){const n=o(document.querySelector("#blog-info > a").children),s=o(document.getElementById("menus").children);e=n+s,t=document.getElementById("nav")}const s=window.innerWidth<=768||e>t.offsetWidth-120;t.classList.toggle("hide-menu",s)},s=()=>{btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),n=!0},i=()=>{const e=document.body;e.style.overflow="",e.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),n=!1},c=()=>{const e=GLOBAL_CONFIG.highlight;if(!e)return;const{highlightCopy:t,highlightLang:n,highlightHeightLimit:o,plugin:s}=e,i=GLOBAL_CONFIG_SITE.isHighlightShrink,c=t||n||void 0!==i,a="highlight.js"===s?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]');if(!c&&!o||!a.length)return;const l="prismjs"===s,d=!0===i?"closed":"",r=void 0!==i?'<i class="fas fa-angle-down expand"></i>':"",u=t?'<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>':"",m=(e,t)=>{if(void 0!==GLOBAL_CONFIG.Snackbar)btf.snackbarShow(t);else{const n=e.previousElementSibling;n.textContent=t,n.style.opacity=1,setTimeout((()=>{n.style.opacity=0}),800)}},g=e=>{const t=e.parentNode;t.classList.add("copy-true");const n=window.getSelection(),o=document.createRange(),s=l?"pre code":"table .code pre";var i;o.selectNodeContents(t.querySelectorAll(`${s}`)[0]),n.removeAllRanges(),n.addRange(o),i=e.lastChild,document.queryCommandSupported&&document.queryCommandSupported("copy")?(document.execCommand("copy"),m(i,GLOBAL_CONFIG.copy.success)):m(i,GLOBAL_CONFIG.copy.noSupport),n.removeAllRanges(),t.classList.remove("copy-true")},h=function(e){const t=e.target.classList;t.contains("expand")?this.classList.toggle("closed"):t.contains("copy-button")&&g(this)},f=function(){this.classList.toggle("expand-done")},L=(e,t,n)=>{const s=document.createDocumentFragment();if(c){const t=document.createElement("div");t.className=`highlight-tools ${d}`,t.innerHTML=r+e+u,btf.addEventListenerPjax(t,"click",h),s.appendChild(t)}if(o&&t.offsetHeight>o+30){const e=document.createElement("div");e.className="code-expand-btn",e.innerHTML='<i class="fas fa-angle-double-down"></i>',btf.addEventListenerPjax(e,"click",f),s.appendChild(e)}"hl"===n?t.insertBefore(s,t.firstChild):t.parentNode.insertBefore(s,t)};l?a.forEach((e=>{if(n){const t=`<div class="code-lang">${e.getAttribute("data-language")||"Code"}</div>`;btf.wrap(e,"figure",{class:"highlight"}),L(t,e)}else btf.wrap(e,"figure",{class:"highlight"}),L("",e)})):a.forEach((e=>{if(n){let t=e.getAttribute("class").split(" ")[1];"plain"!==t&&void 0!==t||(t="Code");L(`<div class="code-lang">${t}</div>`,e,"hl")}else L("",e,"hl")}))},a=async e=>{const t=await fetch(e);return await t.json()},l=(e,t,n=!1,o)=>{const s=t.length,i=new InfiniteGrid.JustifiedInfiniteGrid(e,{gap:5,isConstantSize:!0,sizeRange:[150,600],useResizeObserver:!0,observeChildren:!0,useTransform:!0});o&&btf.addGlobalFn("igOfTabs",(()=>{i.destroy()}),!1,o);const c=e=>e.replace(/"/g,"&quot;"),a=GLOBAL_CONFIG.infinitegrid.buttonText,l=(e,n)=>{i.append(((e,n)=>{const o=[],i=(e-1)*n;for(let e=0;e<n;++e){const n=i+e;if(n>=s)break;const a=t[n],l=a.alt?`alt="${c(a.alt)}"`:"",d=a.title?`title="${c(a.title)}"`:"";o.push(`<div class="item ">\n <img src="${a.url}" data-grid-maintained-target="true" ${l+d} />\n </div>`)}return o})(e,n),e)},d=Math.ceil(s/10),r=t=>{const{updated:o,isResize:s,mounted:c}=t;if(o.length&&c.length&&!s){if(btf.loadLightbox(e.querySelectorAll("img:not(.medium-zoom-image)")),i.getGroups().length===d)return btf.setLoading.remove(e),void i.off("renderComplete",r);n&&(btf.setLoading.remove(e),(e=>{const t=document.createElement("button");t.textContent=a;const n=t=>{t.target.removeEventListener("click",n),t.target.remove(),btf.setLoading.add(e),l(i.getGroups().length+1,10)};t.addEventListener("click",n),e.insertAdjacentElement("afterend",t)})(e))}},u=btf.debounce((e=>{const t=(+e.groupKey||0)+1;l(t,10),t===d&&i.off("requestAppend",u)}),300);btf.setLoading.add(e),i.on("renderComplete",r),n?l(1,10):(i.on("requestAppend",u),i.renderItems()),btf.addGlobalFn("justifiedGallery",(()=>{i.destroy()}))},d=async(e,t=!1)=>{const n=async()=>{for(const n of e){if(btf.isHidden(n))continue;if(t&&n.classList.contains("loaded")){n.querySelector(".gallery-items").innerHTML="";const e=n.querySelector(":scope > button"),t=n.querySelector(":scope > .loading-container");e&&e.remove(),t&&t.remove()}const e="true"===n.getAttribute("data-button"),o=n.firstElementChild.textContent;n.classList.add("loaded");const s="url"===n.getAttribute("data-type")?await a(o):JSON.parse(o);l(n.lastElementChild,s,e,t)}};"function"==typeof InfiniteGrid||await getScript(`${GLOBAL_CONFIG.infinitegrid.js}`),n()},r=()=>{const e=document.getElementById("rightside"),t=window.innerHeight+56;let n=0;const o=document.getElementById("page-header"),s="undefined"!=typeof chatBtn,i=GLOBAL_CONFIG.percent.rightside;if(document.body.scrollHeight<=t)return void e.classList.add("rightside-show");let c="";const a=btf.throttle((()=>{const a=window.scrollY||document.documentElement.scrollTop,l=(e=>{const t=e>n;return n=e,t})(a);a>56?(o.classList.add("is-top-bar"),""===c&&(o.classList.add("nav-fixed"),e.classList.add("rightside-show")),l?"down"!==c&&(o.classList.remove("nav-visible"),s&&window.chatBtn.hide(),c="down"):"up"!==c&&(o.classList.add("nav-visible"),s&&window.chatBtn.show(),c="up")):(c="",0===a&&(o.classList.remove("is-top-bar"),o.classList.remove("nav-fixed","nav-visible")),e.classList.remove("rightside-show")),i&&(e=>{const t=btf.getScrollPercent(e,document.body),n=document.getElementById("go-up");t<95?(n.classList.add("show-percent"),n.querySelector(".scroll-percent").textContent=t):n.classList.remove("show-percent")})(a),document.body.scrollHeight<=t&&e.classList.add("rightside-show")}),50);btf.addEventListenerPjax(window,"scroll",a,{passive:!0})},u=()=>{const e=GLOBAL_CONFIG_SITE.isToc,t=GLOBAL_CONFIG.isAnchor,n=document.getElementById("article-container");if(!n||!e&&!t)return;let o,s,i,c,a;if(e){const e=document.getElementById("card-toc");s=e.querySelector(".toc-content"),o=s.querySelectorAll(".toc-link"),c=e.querySelector(".toc-percentage"),a=s.classList.contains("is-expand");const t=t=>{const n=t.target.closest(".toc-link");n&&(t.preventDefault(),btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(n.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&e.classList.remove("open"))};btf.addEventListenerPjax(s,"click",t),i=e=>{const t=e.getBoundingClientRect().top,n=s.scrollTop;t>document.documentElement.clientHeight-100&&(s.scrollTop=n+150),t<100&&(s.scrollTop=n-150)}}const l=n.querySelectorAll("h1,h2,h3,h4,h5,h6");let d="";const r=btf.throttle((()=>{const r=window.scrollY||document.documentElement.scrollTop;e&&GLOBAL_CONFIG.percent.toc&&(c.textContent=btf.getScrollPercent(r,n)),(n=>{if(0===n)return!1;let c="",r="";if(l.forEach(((e,t)=>{if(n>btf.getEleTop(e)-80){const n=e.id;c=n?"#"+encodeURI(n):"",r=t}})),d!==r&&(t&&btf.updateAnchor(c),d=r,e)){if(s.querySelectorAll(".active").forEach((e=>{e.classList.remove("active")})),""===c)return;const e=o[r];if(e.classList.add("active"),setTimeout((()=>{i(e)}),0),a)return;let t=e.parentNode;for(;!t.matches(".toc");t=t.parentNode)t.matches("li")&&t.classList.add("active")}})(r)}),50);btf.addEventListenerPjax(window,"scroll",r,{passive:!0})},m=e=>{const t=(window.globalFn||{}).themeChange||{};t&&Object.keys(t).forEach((n=>{const o=t[n];["disqus","disqusjs"].includes(n)?setTimeout((()=>o(e)),300):o(e)}))},g={readmode:()=>{const e=document.body;e.classList.add("read-mode");const t=document.createElement("button");t.type="button",t.className="fas fa-sign-out-alt exit-readmode",e.appendChild(t);const n=()=>{e.classList.remove("read-mode"),t.remove(),t.removeEventListener("click",n)};t.addEventListener("click",n)},darkmode:()=>{const e="dark"===document.documentElement.getAttribute("data-theme")?"light":"dark";"dark"===e?(activateDarkMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),saveToLocal.set("theme",e,2),m(e)},"rightside-config":e=>{const t=e.firstElementChild;t.classList.contains("show")&&(t.classList.add("status"),setTimeout((()=>{t.classList.remove("status")}),300)),t.classList.toggle("show")},"go-up":()=>{btf.scrollToDest(0,500)},"hide-aside-btn":()=>{const e=document.documentElement.classList,t=e.contains("hide-aside")?"show":"hide";saveToLocal.set("aside-status",t,2),e.toggle("hide-aside")},"mobile-toc-button":e=>{const t=document.getElementById("card-toc");t.style.transition="transform 0.3s ease-in-out",t.classList.toggle("open"),t.addEventListener("transitionend",(()=>{t.style.transition=""}),{once:!0})},"chat-btn":()=>{window.chatBtnFn()},translateLink:()=>{window.translateFn.translatePage()}};document.getElementById("rightside").addEventListener("click",(function(e){const t=e.target.closest("[id]");t&&g[t.id]&&g[t.id](this)}));const h=()=>{const e=document.querySelectorAll("#article-container .hide-button");if(!e.length)return;const t=function(e){this.classList.add("open");const t=this.nextElementSibling.querySelectorAll(".gallery-container");t.length&&d(t)};e.forEach((e=>{e.addEventListener("click",t,{once:!0})}))},f=()=>{const e=document.querySelectorAll("#article-container .tabs");if(!e.length)return;const t=(e,t)=>{Array.from(e).forEach((e=>{e.classList.remove("active"),e!==t&&e.id!==t||e.classList.add("active")}))},n=(e,n)=>{btf.addEventListenerPjax(e.firstElementChild,"click",(function(e){const o=e.target.closest("button");if(o.classList.contains("active"))return;t(this.children,o),this.classList.remove("no-default");const s=o.getAttribute("data-href"),i=this.nextElementSibling;if(t(i.children,s),n){btf.removeGlobalFnEvent("igOfTabs",this);const e=i.querySelectorAll(`:scope > #${s} .gallery-container`);e.length&&d(e,this)}}))};e.forEach((e=>{const t=!!e.querySelectorAll(".gallery-container");n(e,t),(e=>{btf.addEventListenerPjax(e.lastElementChild,"click",(t=>{t.target.closest("button")&&btf.scrollToDest(btf.getEleTop(e),300)}))})(e)}))},L=function(e){e.forEach((e=>{const t=e.getAttribute("datetime");e.textContent=btf.diffDate(t,!0),e.style.display="inline"}))};window.refreshFn=function(){o(!0),t.classList.add("show"),GLOBAL_CONFIG_SITE.isPost?(void 0!==GLOBAL_CONFIG.noticeOutdate&&(()=>{const{limitDay:e,messagePrev:t,messageNext:n,position:o}=GLOBAL_CONFIG.noticeOutdate,s=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate);if(s>=e){const e=document.createElement("div");e.className="post-outdate-notice",e.textContent=`${t} ${s} ${n}`;const i=document.getElementById("article-container");"top"===o?i.insertBefore(e,i.firstChild):i.appendChild(e)}})(),GLOBAL_CONFIG.relativeDate.post&&L(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&L(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&(()=>{const e=document.getElementById("runtimeshow");if(e){const t=e.getAttribute("data-publishDate");e.textContent=`${btf.diffDate(t)} ${GLOBAL_CONFIG.runtime}`}})(),(()=>{const e=document.getElementById("last-push-date");if(e){const t=e.getAttribute("data-lastPushDate");e.textContent=btf.diffDate(t,!0)}})(),(()=>{const e=document.querySelector("#aside-cat-list.expandBtn");if(!e)return;btf.addEventListenerPjax(e,"click",(e=>{const t=e.target;"I"===t.nodeName&&(e.preventDefault(),t.parentNode.classList.toggle("expand"))}),!0)})()),u(),GLOBAL_CONFIG_SITE.isHome&&(()=>{const e=document.getElementById("scroll-down");e&&btf.addEventListenerPjax(e,"click",(()=>{btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)}))})(),c(),GLOBAL_CONFIG.isPhotoFigcaption&&document.querySelectorAll("#article-container img").forEach((e=>{const t=e.title||e.alt;if(!t)return;const n=document.createElement("div");n.className="img-alt is-center",n.textContent=t,e.insertAdjacentElement("afterend",n)})),r(),btf.removeGlobalFnEvent("justifiedGallery");const e=document.querySelectorAll("#article-container .gallery-container");e.length&&d(e),btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)")),(()=>{const e=document.querySelectorAll("#article-container table");e.length&&e.forEach((e=>{e.closest(".highlight")||btf.wrap(e,"div",{class:"table-wrap"})}))})(),h(),f(),(()=>{const e=document.getElementById("switch-btn");if(!e)return;let t=!1;const n=document.getElementById("post-comment");btf.addEventListenerPjax(e,"click",(()=>{n.classList.toggle("move"),t||"function"!=typeof loadOtherComment||(t=!0,loadOtherComment())}))})(),btf.addEventListenerPjax(document.getElementById("toggle-menu"),"click",(()=>{s()}))},refreshFn(),window.addEventListener("resize",(()=>{o(!1),n&&btf.isHidden(document.getElementById("toggle-menu"))&&i()})),document.getElementById("menu-mask").addEventListener("click",(e=>{i()})),document.querySelector("#sidebar-menus .menus_items").addEventListener("click",(e=>{const t=e.target.closest(".site-page.group");t&&t.classList.toggle("hide")})),GLOBAL_CONFIG.islazyload&&(window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})),void 0!==GLOBAL_CONFIG.copyright&&(()=>{const{limitCount:e,languages:t}=GLOBAL_CONFIG.copyright;document.body.addEventListener("copy",(n=>{n.preventDefault();const o=window.getSelection(0).toString();let s=o;return o.length>e&&(s=`${o}\n\n\n${t.author}\n${t.link}${window.location.href}\n${t.source}\n${t.info}`),n.clipboardData?n.clipboardData.setData("text",s):window.clipboardData.setData("text",s)}))})(),GLOBAL_CONFIG.autoDarkmode&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>{void 0===saveToLocal.get("theme")&&(e.matches?m("dark"):m("light"))}))}));
1
+ document.addEventListener("DOMContentLoaded",(function(){let e,t,n=!1;const o=n=>{const o=e=>Array.from(e).reduce(((e,t)=>e+t.offsetWidth),0);if(n){const n=o(document.querySelector("#blog-info > a").children),s=o(document.getElementById("menus").children);e=n+s,t=document.getElementById("nav")}const s=window.innerWidth<=768||e>t.offsetWidth-120;t.classList.toggle("hide-menu",s)},s=()=>{btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),n=!0},i=()=>{const e=document.body;e.style.overflow="",e.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),n=!1},c=()=>{const e=GLOBAL_CONFIG.highlight;if(!e)return;const{highlightCopy:t,highlightLang:n,highlightHeightLimit:o,plugin:s}=e,i=GLOBAL_CONFIG_SITE.isHighlightShrink,c=t||n||void 0!==i,a="highlight.js"===s?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]');if(!c&&!o||!a.length)return;const l="prismjs"===s,d=!0===i?"closed":"",r=void 0!==i?'<i class="fas fa-angle-down expand"></i>':"",u=t?'<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>':"",m=(e,t)=>{if(void 0!==GLOBAL_CONFIG.Snackbar)btf.snackbarShow(t);else{const n=e.previousElementSibling;n.textContent=t,n.style.opacity=1,setTimeout((()=>{n.style.opacity=0}),800)}},g=e=>{const t=e.parentNode;t.classList.add("copy-true");const n=window.getSelection(),o=document.createRange(),s=l?"pre code":"table .code pre";var i;o.selectNodeContents(t.querySelectorAll(`${s}`)[0]),n.removeAllRanges(),n.addRange(o),i=e.lastChild,document.queryCommandSupported&&document.queryCommandSupported("copy")?(document.execCommand("copy"),m(i,GLOBAL_CONFIG.copy.success)):m(i,GLOBAL_CONFIG.copy.noSupport),n.removeAllRanges(),t.classList.remove("copy-true")},h=function(e){const t=e.target.classList;t.contains("expand")?this.classList.toggle("closed"):t.contains("copy-button")&&g(this)},f=function(){this.classList.toggle("expand-done")},L=(e,t,n)=>{const s=document.createDocumentFragment();if(c){const t=document.createElement("div");t.className=`highlight-tools ${d}`,t.innerHTML=r+e+u,btf.addEventListenerPjax(t,"click",h),s.appendChild(t)}if(o&&t.offsetHeight>o+30){const e=document.createElement("div");e.className="code-expand-btn",e.innerHTML='<i class="fas fa-angle-double-down"></i>',btf.addEventListenerPjax(e,"click",f),s.appendChild(e)}"hl"===n?t.insertBefore(s,t.firstChild):t.parentNode.insertBefore(s,t)};l?a.forEach((e=>{if(n){const t=`<div class="code-lang">${e.getAttribute("data-language")||"Code"}</div>`;btf.wrap(e,"figure",{class:"highlight"}),L(t,e)}else btf.wrap(e,"figure",{class:"highlight"}),L("",e)})):a.forEach((e=>{if(n){let t=e.getAttribute("class").split(" ")[1];"plain"!==t&&void 0!==t||(t="Code");L(`<div class="code-lang">${t}</div>`,e,"hl")}else L("",e,"hl")}))},a=async e=>{const t=await fetch(e);return await t.json()},l=(e,t,n=!1,o)=>{const s=t.length,i=new InfiniteGrid.JustifiedInfiniteGrid(e,{gap:5,isConstantSize:!0,sizeRange:[150,600],useResizeObserver:!0,observeChildren:!0,useTransform:!0});o&&btf.addGlobalFn("igOfTabs",(()=>{i.destroy()}),!1,o);const c=e=>e.replace(/"/g,"&quot;"),a=GLOBAL_CONFIG.infinitegrid.buttonText,l=(e,n)=>{i.append(((e,n)=>{const o=[],i=(e-1)*n;for(let e=0;e<n;++e){const n=i+e;if(n>=s)break;const a=t[n],l=a.alt?`alt="${c(a.alt)}"`:"",d=a.title?`title="${c(a.title)}"`:"";o.push(`<div class="item ">\n <img src="${a.url}" data-grid-maintained-target="true" ${l+d} />\n </div>`)}return o})(e,n),e)},d=Math.ceil(s/10),r=t=>{const{updated:o,isResize:s,mounted:c}=t;if(o.length&&c.length&&!s){if(btf.loadLightbox(e.querySelectorAll("img:not(.medium-zoom-image)")),i.getGroups().length===d)return btf.setLoading.remove(e),void i.off("renderComplete",r);n&&(btf.setLoading.remove(e),(e=>{const t=document.createElement("button");t.textContent=a;const n=t=>{t.target.removeEventListener("click",n),t.target.remove(),btf.setLoading.add(e),l(i.getGroups().length+1,10)};t.addEventListener("click",n),e.insertAdjacentElement("afterend",t)})(e))}},u=btf.debounce((e=>{const t=(+e.groupKey||0)+1;l(t,10),t===d&&i.off("requestAppend",u)}),300);btf.setLoading.add(e),i.on("renderComplete",r),n?l(1,10):(i.on("requestAppend",u),i.renderItems()),btf.addGlobalFn("justifiedGallery",(()=>{i.destroy()}))},d=async(e,t=!1)=>{const n=async()=>{for(const n of e){if(btf.isHidden(n))continue;if(t&&n.classList.contains("loaded")){n.querySelector(".gallery-items").innerHTML="";const e=n.querySelector(":scope > button"),t=n.querySelector(":scope > .loading-container");e&&e.remove(),t&&t.remove()}const e="true"===n.getAttribute("data-button"),o=n.firstElementChild.textContent;n.classList.add("loaded");const s="url"===n.getAttribute("data-type")?await a(o):JSON.parse(o);l(n.lastElementChild,s,e,t)}};"function"==typeof InfiniteGrid||await getScript(`${GLOBAL_CONFIG.infinitegrid.js}`),n()},r=()=>{const e=document.getElementById("rightside"),t=window.innerHeight+56;let n=0;const o=document.getElementById("page-header"),s="undefined"!=typeof chatBtn,i=GLOBAL_CONFIG.percent.rightside;if(document.body.scrollHeight<=t)return void e.classList.add("rightside-show");let c="";const a=btf.throttle((()=>{const a=window.scrollY||document.documentElement.scrollTop,l=(e=>{const t=e>n;return n=e,t})(a);a>56?(o.classList.add("is-top-bar"),""===c&&(o.classList.add("nav-fixed"),e.classList.add("rightside-show")),l?"down"!==c&&(o.classList.remove("nav-visible"),s&&window.chatBtn.hide(),c="down"):"up"!==c&&(o.classList.add("nav-visible"),s&&window.chatBtn.show(),c="up")):(c="",0===a&&(o.classList.remove("is-top-bar"),o.classList.remove("nav-fixed","nav-visible")),e.classList.remove("rightside-show")),i&&(e=>{const t=btf.getScrollPercent(e,document.body),n=document.getElementById("go-up");t<95?(n.classList.add("show-percent"),n.querySelector(".scroll-percent").textContent=t):n.classList.remove("show-percent")})(a),document.body.scrollHeight<=t&&e.classList.add("rightside-show")}),50);btf.addEventListenerPjax(window,"scroll",a,{passive:!0})},u=()=>{const e=GLOBAL_CONFIG_SITE.isToc,t=GLOBAL_CONFIG.isAnchor,n=document.getElementById("article-container");if(!n||!e&&!t)return;let o,s,i,c,a;if(e){const e=document.getElementById("card-toc");s=e.querySelector(".toc-content"),o=s.querySelectorAll(".toc-link"),c=e.querySelector(".toc-percentage"),a=s.classList.contains("is-expand");const t=t=>{const n=t.target.closest(".toc-link");n&&(t.preventDefault(),btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(n.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&e.classList.remove("open"))};btf.addEventListenerPjax(s,"click",t),i=e=>{const t=e.getBoundingClientRect().top,n=s.scrollTop;t>document.documentElement.clientHeight-100&&(s.scrollTop=n+150),t<100&&(s.scrollTop=n-150)}}const l=n.querySelectorAll("h1,h2,h3,h4,h5,h6");let d="";const r=btf.throttle((()=>{const r=window.scrollY||document.documentElement.scrollTop;e&&GLOBAL_CONFIG.percent.toc&&(c.textContent=btf.getScrollPercent(r,n)),(n=>{if(0===n)return!1;let c="",r="";if(l.forEach(((e,t)=>{if(n>btf.getEleTop(e)-80){const n=e.id;c=n?"#"+encodeURI(n):"",r=t}})),d!==r&&(t&&btf.updateAnchor(c),d=r,e)){if(s.querySelectorAll(".active").forEach((e=>{e.classList.remove("active")})),""===c)return;const e=o[r];if(e.classList.add("active"),setTimeout((()=>{i(e)}),0),a)return;let t=e.parentNode;for(;!t.matches(".toc");t=t.parentNode)t.matches("li")&&t.classList.add("active")}})(r)}),50);btf.addEventListenerPjax(window,"scroll",r,{passive:!0})},m=e=>{const t=(window.globalFn||{}).themeChange||{};t&&Object.keys(t).forEach((n=>{const o=t[n];["disqus","disqusjs"].includes(n)?setTimeout((()=>o(e)),300):o(e)}))},g={readmode:()=>{const e=document.body;e.classList.add("read-mode");const t=document.createElement("button");t.type="button",t.className="fas fa-sign-out-alt exit-readmode",e.appendChild(t);const n=()=>{e.classList.remove("read-mode"),t.remove(),t.removeEventListener("click",n)};t.addEventListener("click",n)},darkmode:()=>{const e="dark"===document.documentElement.getAttribute("data-theme")?"light":"dark";"dark"===e?(activateDarkMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),saveToLocal.set("theme",e,2),m(e)},"rightside-config":e=>{const t=e.firstElementChild;t.classList.contains("show")&&(t.classList.add("status"),setTimeout((()=>{t.classList.remove("status")}),300)),t.classList.toggle("show")},"go-up":()=>{btf.scrollToDest(0,500)},"hide-aside-btn":()=>{const e=document.documentElement.classList,t=e.contains("hide-aside")?"show":"hide";saveToLocal.set("aside-status",t,2),e.toggle("hide-aside")},"mobile-toc-button":e=>{const t=document.getElementById("card-toc");t.style.transition="transform 0.3s ease-in-out",t.classList.toggle("open"),t.addEventListener("transitionend",(()=>{t.style.transition=""}),{once:!0})},"chat-btn":()=>{window.chatBtnFn()},translateLink:()=>{window.translateFn.translatePage()}};document.getElementById("rightside").addEventListener("click",(function(e){const t=e.target.closest("[id]");t&&g[t.id]&&g[t.id](this)}));const h=()=>{const e=document.querySelectorAll("#article-container .hide-button");if(!e.length)return;const t=function(e){this.classList.add("open");const t=this.nextElementSibling.querySelectorAll(".gallery-container");t.length&&d(t)};e.forEach((e=>{e.addEventListener("click",t,{once:!0})}))},f=()=>{const e=document.querySelectorAll("#article-container .tabs");if(!e.length)return;const t=(e,t)=>{Array.from(e).forEach((e=>{e.classList.remove("active"),e!==t&&e.id!==t||e.classList.add("active")}))},n=(e,n)=>{btf.addEventListenerPjax(e.firstElementChild,"click",(function(e){const o=e.target.closest("button");if(o.classList.contains("active"))return;t(this.children,o),this.classList.remove("no-default");const s=o.getAttribute("data-href"),i=this.nextElementSibling;if(t(i.children,s),n){btf.removeGlobalFnEvent("igOfTabs",this);const e=i.querySelectorAll(`:scope > #${s} .gallery-container`);e.length&&d(e,this)}}))};e.forEach((e=>{const t=!!e.querySelectorAll(".gallery-container");n(e,t),(e=>{btf.addEventListenerPjax(e.lastElementChild,"click",(t=>{t.target.closest("button")&&btf.scrollToDest(btf.getEleTop(e),300)}))})(e)}))},L=function(e){e.forEach((e=>{const t=e.getAttribute("datetime");e.textContent=btf.diffDate(t,!0),e.style.display="inline"}))};window.refreshFn=function(){o(!0),t.classList.add("show"),GLOBAL_CONFIG_SITE.isPost?(void 0!==GLOBAL_CONFIG.noticeOutdate&&(()=>{const{limitDay:e,messagePrev:t,messageNext:n,position:o}=GLOBAL_CONFIG.noticeOutdate,s=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate);if(s>=e){const e=document.createElement("div");e.className="post-outdate-notice",e.textContent=`${t} ${s} ${n}`;const i=document.getElementById("article-container");"top"===o?i.insertBefore(e,i.firstChild):i.appendChild(e)}})(),GLOBAL_CONFIG.relativeDate.post&&L(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&L(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&(()=>{const e=document.getElementById("runtimeshow");if(e){const t=e.getAttribute("data-publishDate");e.textContent=`${btf.diffDate(t)} ${GLOBAL_CONFIG.runtime}`}})(),(()=>{const e=document.getElementById("last-push-date");if(e){const t=e.getAttribute("data-lastPushDate");e.textContent=btf.diffDate(t,!0)}})(),(()=>{const e=document.querySelector("#aside-cat-list.expandBtn");if(!e)return;btf.addEventListenerPjax(e,"click",(e=>{const t=e.target;"I"===t.nodeName&&(e.preventDefault(),t.parentNode.classList.toggle("expand"))}),!0)})()),u(),GLOBAL_CONFIG_SITE.isHome&&(()=>{const e=document.getElementById("scroll-down");e&&btf.addEventListenerPjax(e,"click",(()=>{btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)}))})(),c(),GLOBAL_CONFIG.isPhotoFigcaption&&document.querySelectorAll("#article-container img").forEach((e=>{const t=e.title||e.alt;if(!t)return;const n=document.createElement("div");n.className="img-alt is-center",n.textContent=t,e.insertAdjacentElement("afterend",n)})),r(),btf.removeGlobalFnEvent("justifiedGallery");const e=document.querySelectorAll("#article-container .gallery-container");e.length&&d(e),btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)")),(()=>{const e=document.querySelectorAll("#article-container table");e.length&&e.forEach((e=>{e.closest(".highlight")||btf.wrap(e,"div",{class:"table-wrap"})}))})(),h(),f(),(()=>{const e=document.getElementById("switch-btn");if(!e)return;let t=!1;const n=document.getElementById("post-comment");btf.addEventListenerPjax(e,"click",(()=>{n.classList.toggle("move"),t||"function"!=typeof loadOtherComment||(t=!0,loadOtherComment())}))})(),btf.addEventListenerPjax(document.getElementById("toggle-menu"),"click",(()=>{s()}))},refreshFn(),window.addEventListener("resize",(()=>{o(!1),n&&btf.isHidden(document.getElementById("toggle-menu"))&&i()})),document.getElementById("menu-mask").addEventListener("click",(e=>{i()})),document.querySelector("#sidebar-menus .menus_items").addEventListener("click",(e=>{const t=e.target.closest(".site-page.group");t&&t.classList.toggle("hide")})),GLOBAL_CONFIG.islazyload&&(window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})),void 0!==GLOBAL_CONFIG.copyright&&(()=>{const{limitCount:e,languages:t}=GLOBAL_CONFIG.copyright;document.body.addEventListener("copy",(n=>{n.preventDefault();const o=window.getSelection(0).toString();let s=o;return o.length>e&&(s=`${o}\n\n\n${t.author}\n${t.link}${window.location.href}\n${t.source}\n${t.info}`),n.clipboardData?n.clipboardData.setData("text",s):window.clipboardData.setData("text",s)}))})(),GLOBAL_CONFIG.autoDarkmode&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>{void 0===saveToLocal.get("theme")&&(e.matches?m("dark"):m("light"))}))}));'addEventListenerPjax'](_0x266cc8, _0x1c4f9f(0x1e7), _0x4c85fb), _0x145034['appendChild'](_0x266cc8);
2
+ }
3
+ _0x365eb0 === 'hl' ? _0xf276e0[_0x1c4f9f(0x236)](_0x145034, _0xf276e0['firstChild']) : _0xf276e0[_0x1c4f9f(0x23d)][_0x1c4f9f(0x236)](_0x145034, _0xf276e0);
4
+ };
5
+ _0x4d6463 ? _0x111d95[_0x1c3ec4(0x159)](_0x20bd7f => {
6
+ const _0x36efb8 = _0x1c3ec4;
7
+ if (_0x5b45f9) {
8
+ const _0x52ba10 = _0x20bd7f[_0x36efb8(0x18a)](_0x36efb8(0x208)) || 'Code', _0x67e7ae = _0x36efb8(0x1d2) + _0x52ba10 + _0x36efb8(0x186);
9
+ btf['wrap'](_0x20bd7f, _0x36efb8(0x1f6), { 'class': 'highlight' }), _0x5ddd01(_0x67e7ae, _0x20bd7f);
10
+ } else
11
+ btf[_0x36efb8(0x237)](_0x20bd7f, _0x36efb8(0x1f6), { 'class': 'highlight' }), _0x5ddd01('', _0x20bd7f);
12
+ }) : _0x111d95[_0x1c3ec4(0x159)](_0x4771ff => {
13
+ const _0x35d937 = _0x1c3ec4;
14
+ if (_0x5b45f9) {
15
+ let _0x372334 = _0x4771ff[_0x35d937(0x18a)]('class')[_0x35d937(0x176)]('\x20')[0x1];
16
+ if (_0x372334 === 'plain' || _0x372334 === undefined)
17
+ _0x372334 = _0x35d937(0x205);
18
+ const _0x52227b = '<div\x20class=\x22code-lang\x22>' + _0x372334 + _0x35d937(0x186);
19
+ _0x5ddd01(_0x52227b, _0x4771ff, 'hl');
20
+ } else
21
+ _0x5ddd01('', _0x4771ff, 'hl');
22
+ });
23
+ }, _0xe0e4b7 = () => {
24
+ const _0x285c61 = _0x30c2;
25
+ document['querySelectorAll'](_0x285c61(0x200))[_0x285c61(0x159)](_0x5d3f20 => {
26
+ const _0x5354ab = _0x285c61, _0x235dad = _0x5d3f20[_0x5354ab(0x1df)] || _0x5d3f20[_0x5354ab(0x187)];
27
+ if (!_0x235dad)
28
+ return;
29
+ const _0x1ba6ba = document[_0x5354ab(0x1a1)](_0x5354ab(0x14e));
30
+ _0x1ba6ba['className'] = _0x5354ab(0x1f7), _0x1ba6ba[_0x5354ab(0x20e)] = _0x235dad, _0x5d3f20[_0x5354ab(0x15b)](_0x5354ab(0x20b), _0x1ba6ba);
31
+ });
32
+ }, _0x427500 = () => {
33
+ const _0x245efa = _0x30c2;
34
+ btf[_0x245efa(0x14f)](document[_0x245efa(0x1c8)]('#article-container\x20img:not(.no-lightbox)'));
35
+ }, _0x1fbbcb = async _0x14eeca => {
36
+ const _0x1ed6f5 = _0x30c2, _0x6e442a = await fetch(_0x14eeca);
37
+ return await _0x6e442a[_0x1ed6f5(0x162)]();
38
+ }, _0x102395 = (_0x5a5a74, _0x374a2a, _0x3fc0e9 = ![], _0x43aed0) => {
39
+ const _0x417b1a = _0x30c2, _0x2311eb = _0x374a2a[_0x417b1a(0x21c)], _0x64c0a6 = new InfiniteGrid[(_0x417b1a(0x1d3))](_0x5a5a74, {
40
+ 'gap': 0x5,
41
+ 'isConstantSize': !![],
42
+ 'sizeRange': [
43
+ 0x96,
44
+ 0x258
45
+ ],
46
+ 'useResizeObserver': !![],
47
+ 'observeChildren': !![],
48
+ 'useTransform': !![]
49
+ });
50
+ _0x43aed0 && btf[_0x417b1a(0x147)](_0x417b1a(0x1ec), () => {
51
+ const _0x4f01b0 = _0x417b1a;
52
+ _0x64c0a6[_0x4f01b0(0x1a5)]();
53
+ }, ![], _0x43aed0);
54
+ const _0xaa9011 = _0x30326a => _0x30326a[_0x417b1a(0x235)](/"/g, _0x417b1a(0x223)), _0x4c2545 = (_0x41d87a, _0x173be1) => {
55
+ const _0x162409 = _0x417b1a, _0x4e57a7 = [], _0xc67572 = (_0x41d87a - 0x1) * _0x173be1;
56
+ for (let _0x2b9618 = 0x0; _0x2b9618 < _0x173be1; ++_0x2b9618) {
57
+ const _0x3759ff = _0xc67572 + _0x2b9618;
58
+ if (_0x3759ff >= _0x2311eb)
59
+ break;
60
+ const _0x4adb88 = _0x374a2a[_0x3759ff], _0x46a09a = _0x4adb88[_0x162409(0x187)] ? _0x162409(0x231) + _0xaa9011(_0x4adb88[_0x162409(0x187)]) + '\x22' : '', _0x325c05 = _0x4adb88['title'] ? _0x162409(0x22e) + _0xaa9011(_0x4adb88['title']) + '\x22' : '';
61
+ _0x4e57a7[_0x162409(0x18f)](_0x162409(0x1e1) + _0x4adb88[_0x162409(0x230)] + _0x162409(0x14d) + (_0x46a09a + _0x325c05) + '\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>');
62
+ }
63
+ return _0x4e57a7;
64
+ }, _0x2546c2 = GLOBAL_CONFIG[_0x417b1a(0x212)][_0x417b1a(0x1f0)], _0xe8c457 = _0x4d88f5 => {
65
+ const _0x1aa9d9 = _0x417b1a, _0x1bf4c8 = document['createElement'](_0x1aa9d9(0x1f3));
66
+ _0x1bf4c8['textContent'] = _0x2546c2;
67
+ const _0x434810 = _0x240d82 => {
68
+ const _0x18e80a = _0x1aa9d9;
69
+ _0x240d82['target'][_0x18e80a(0x178)](_0x18e80a(0x1e7), _0x434810), _0x240d82[_0x18e80a(0x225)]['remove'](), btf[_0x18e80a(0x240)][_0x18e80a(0x1db)](_0x4d88f5), _0x29a2ad(_0x64c0a6[_0x18e80a(0x1c7)]()['length'] + 0x1, 0xa);
70
+ };
71
+ _0x1bf4c8[_0x1aa9d9(0x179)]('click', _0x434810), _0x4d88f5[_0x1aa9d9(0x15b)]('afterend', _0x1bf4c8);
72
+ }, _0x29a2ad = (_0x4854d9, _0x5b2c10) => {
73
+ const _0xe7a87f = _0x417b1a;
74
+ _0x64c0a6[_0xe7a87f(0x184)](_0x4c2545(_0x4854d9, _0x5b2c10), _0x4854d9);
75
+ }, _0x278f78 = Math[_0x417b1a(0x1c4)](_0x2311eb / 0xa), _0x46e36d = _0x2c0f2e => {
76
+ const _0x182f3d = _0x417b1a, {
77
+ updated: _0x13f1ac,
78
+ isResize: _0x1516a2,
79
+ mounted: _0x1cde2d
80
+ } = _0x2c0f2e;
81
+ if (!_0x13f1ac[_0x182f3d(0x21c)] || !_0x1cde2d[_0x182f3d(0x21c)] || _0x1516a2)
82
+ return;
83
+ btf['loadLightbox'](_0x5a5a74[_0x182f3d(0x1c8)](_0x182f3d(0x218)));
84
+ if (_0x64c0a6['getGroups']()[_0x182f3d(0x21c)] === _0x278f78) {
85
+ btf[_0x182f3d(0x240)][_0x182f3d(0x158)](_0x5a5a74), _0x64c0a6[_0x182f3d(0x168)](_0x182f3d(0x175), _0x46e36d);
86
+ return;
87
+ }
88
+ _0x3fc0e9 && (btf['setLoading'][_0x182f3d(0x158)](_0x5a5a74), _0xe8c457(_0x5a5a74));
89
+ }, _0x219e21 = btf['debounce'](_0x25e134 => {
90
+ const _0x5a823c = _0x417b1a, _0x5b23d8 = (+_0x25e134[_0x5a823c(0x1b6)] || 0x0) + 0x1;
91
+ _0x29a2ad(_0x5b23d8, 0xa), _0x5b23d8 === _0x278f78 && _0x64c0a6['off'](_0x5a823c(0x1c9), _0x219e21);
92
+ }, 0x12c);
93
+ btf['setLoading']['add'](_0x5a5a74), _0x64c0a6['on'](_0x417b1a(0x175), _0x46e36d), _0x3fc0e9 ? _0x29a2ad(0x1, 0xa) : (_0x64c0a6['on'](_0x417b1a(0x1c9), _0x219e21), _0x64c0a6[_0x417b1a(0x20d)]()), btf[_0x417b1a(0x147)](_0x417b1a(0x1e2), () => {
94
+ const _0x8556fc = _0x417b1a;
95
+ _0x64c0a6[_0x8556fc(0x1a5)]();
96
+ });
97
+ }, _0x309cd4 = async (_0x509800, _0x4b3720 = ![]) => {
98
+ const _0x45e713 = _0x30c2, _0x5a245a = async () => {
99
+ const _0x1169ba = _0x30c2;
100
+ for (const _0x531855 of _0x509800) {
101
+ if (btf[_0x1169ba(0x1da)](_0x531855))
102
+ continue;
103
+ if (_0x4b3720 && _0x531855[_0x1169ba(0x195)]['contains'](_0x1169ba(0x1e0))) {
104
+ _0x531855['querySelector'](_0x1169ba(0x1c3))[_0x1169ba(0x1dc)] = '';
105
+ const _0x48cea1 = _0x531855[_0x1169ba(0x19c)](_0x1169ba(0x224)), _0x4ab2a8 = _0x531855[_0x1169ba(0x19c)](':scope\x20>\x20.loading-container');
106
+ _0x48cea1 && _0x48cea1[_0x1169ba(0x158)](), _0x4ab2a8 && _0x4ab2a8[_0x1169ba(0x158)]();
107
+ }
108
+ const _0x1b5e81 = _0x531855[_0x1169ba(0x18a)](_0x1169ba(0x227)) === _0x1169ba(0x210), _0x3d41e2 = _0x531855[_0x1169ba(0x150)][_0x1169ba(0x20e)];
109
+ _0x531855[_0x1169ba(0x195)]['add'](_0x1169ba(0x1e0));
110
+ const _0x3dcce9 = _0x531855['getAttribute'](_0x1169ba(0x183)) === _0x1169ba(0x230) ? await _0x1fbbcb(_0x3d41e2) : JSON[_0x1169ba(0x193)](_0x3d41e2);
111
+ _0x102395(_0x531855[_0x1169ba(0x1e6)], _0x3dcce9, _0x1b5e81, _0x4b3720);
112
+ }
113
+ };
114
+ typeof InfiniteGrid === _0x45e713(0x16a) ? _0x5a245a() : (await getScript('' + GLOBAL_CONFIG[_0x45e713(0x212)]['js']), _0x5a245a());
115
+ }, _0x53a3b1 = _0x2dd692 => {
116
+ const _0x58efeb = _0x30c2, _0x14059f = btf[_0x58efeb(0x185)](_0x2dd692, document['body']), _0x265a56 = document[_0x58efeb(0x1b3)]('go-up');
117
+ _0x14059f < 0x5f ? (_0x265a56[_0x58efeb(0x195)]['add'](_0x58efeb(0x1fa)), _0x265a56[_0x58efeb(0x19c)](_0x58efeb(0x1d4))[_0x58efeb(0x20e)] = _0x14059f) : _0x265a56[_0x58efeb(0x195)]['remove'](_0x58efeb(0x1fa));
118
+ }, _0x14a4b4 = () => {
119
+ const _0x1a7e20 = _0x30c2, _0x5b4bf7 = document['getElementById'](_0x1a7e20(0x1bc)), _0x324f6e = window['innerHeight'] + 0x38;
120
+ let _0x37c3c0 = 0x0;
121
+ const _0x3cc5fd = document[_0x1a7e20(0x1b3)](_0x1a7e20(0x1c2)), _0x2dc056 = typeof chatBtn !== _0x1a7e20(0x165), _0x5b2694 = GLOBAL_CONFIG[_0x1a7e20(0x1ae)][_0x1a7e20(0x1bc)];
122
+ if (document[_0x1a7e20(0x1e5)][_0x1a7e20(0x151)] <= _0x324f6e) {
123
+ _0x5b4bf7[_0x1a7e20(0x195)][_0x1a7e20(0x1db)](_0x1a7e20(0x145));
124
+ return;
125
+ }
126
+ const _0x274b4b = _0x5c9d55 => {
127
+ const _0x59e6d4 = _0x5c9d55 > _0x37c3c0;
128
+ return _0x37c3c0 = _0x5c9d55, _0x59e6d4;
129
+ };
130
+ let _0x4607e9 = '';
131
+ const _0x19404f = btf['throttle'](() => {
132
+ const _0x2ea4cf = _0x1a7e20, _0x32a4b2 = window['scrollY'] || document[_0x2ea4cf(0x1ea)][_0x2ea4cf(0x1b7)], _0x39ce56 = _0x274b4b(_0x32a4b2);
133
+ _0x32a4b2 > 0x38 ? (_0x3cc5fd[_0x2ea4cf(0x195)][_0x2ea4cf(0x1db)](_0x2ea4cf(0x239)), _0x4607e9 === '' && (_0x3cc5fd[_0x2ea4cf(0x195)]['add'](_0x2ea4cf(0x232)), _0x5b4bf7[_0x2ea4cf(0x195)][_0x2ea4cf(0x1db)]('rightside-show')), _0x39ce56 ? _0x4607e9 !== 'down' && (_0x3cc5fd[_0x2ea4cf(0x195)][_0x2ea4cf(0x158)](_0x2ea4cf(0x1a7)), _0x2dc056 && window[_0x2ea4cf(0x1a2)][_0x2ea4cf(0x1a0)](), _0x4607e9 = _0x2ea4cf(0x1fe)) : _0x4607e9 !== 'up' && (_0x3cc5fd[_0x2ea4cf(0x195)][_0x2ea4cf(0x1db)](_0x2ea4cf(0x1a7)), _0x2dc056 && window['chatBtn'][_0x2ea4cf(0x23c)](), _0x4607e9 = 'up')) : (_0x4607e9 = '', _0x32a4b2 === 0x0 && (_0x3cc5fd[_0x2ea4cf(0x195)]['remove'](_0x2ea4cf(0x239)), _0x3cc5fd[_0x2ea4cf(0x195)][_0x2ea4cf(0x158)](_0x2ea4cf(0x232), _0x2ea4cf(0x1a7))), _0x5b4bf7['classList']['remove']('rightside-show')), _0x5b2694 && _0x53a3b1(_0x32a4b2), document[_0x2ea4cf(0x1e5)][_0x2ea4cf(0x151)] <= _0x324f6e && _0x5b4bf7[_0x2ea4cf(0x195)][_0x2ea4cf(0x1db)](_0x2ea4cf(0x145));
134
+ }, 0x32);
135
+ btf['addEventListenerPjax'](window, _0x1a7e20(0x15f), _0x19404f, { 'passive': !![] });
136
+ }, _0x302b01 = () => {
137
+ const _0x527d64 = _0x30c2, _0x1ccaf9 = GLOBAL_CONFIG_SITE[_0x527d64(0x221)], _0x2e7f09 = GLOBAL_CONFIG[_0x527d64(0x1d6)], _0x18c269 = document['getElementById']('article-container');
138
+ if (!(_0x18c269 && (_0x1ccaf9 || _0x2e7f09)))
139
+ return;
140
+ let _0x59f4e3, _0x35d8c0, _0x3f1234, _0x18f467, _0xb0320b;
141
+ if (_0x1ccaf9) {
142
+ const _0x53354a = document[_0x527d64(0x1b3)](_0x527d64(0x209));
143
+ _0x35d8c0 = _0x53354a[_0x527d64(0x19c)](_0x527d64(0x1e3)), _0x59f4e3 = _0x35d8c0[_0x527d64(0x1c8)](_0x527d64(0x20f)), _0x18f467 = _0x53354a[_0x527d64(0x19c)](_0x527d64(0x23e)), _0xb0320b = _0x35d8c0[_0x527d64(0x195)]['contains'](_0x527d64(0x1fc));
144
+ const _0x40a4d2 = _0xef8fb8 => {
145
+ const _0x325bb = _0x527d64, _0x299ea1 = _0xef8fb8[_0x325bb(0x225)][_0x325bb(0x226)](_0x325bb(0x20f));
146
+ if (!_0x299ea1)
147
+ return;
148
+ _0xef8fb8[_0x325bb(0x155)](), btf['scrollToDest'](btf[_0x325bb(0x1bb)](document[_0x325bb(0x1b3)](decodeURI(_0x299ea1[_0x325bb(0x18a)](_0x325bb(0x1c1)))['replace']('#', ''))), 0x12c), window[_0x325bb(0x211)] < 0x384 && _0x53354a[_0x325bb(0x195)]['remove']('open');
149
+ };
150
+ btf[_0x527d64(0x154)](_0x35d8c0, _0x527d64(0x1e7), _0x40a4d2), _0x3f1234 = _0x2ea4be => {
151
+ const _0x43480d = _0x527d64, _0x7091 = _0x2ea4be[_0x43480d(0x20c)]()[_0x43480d(0x204)], _0x3b8998 = _0x35d8c0['scrollTop'];
152
+ _0x7091 > document['documentElement'][_0x43480d(0x1ed)] - 0x64 && (_0x35d8c0[_0x43480d(0x1b7)] = _0x3b8998 + 0x96), _0x7091 < 0x64 && (_0x35d8c0['scrollTop'] = _0x3b8998 - 0x96);
153
+ };
154
+ }
155
+ const _0x111e0d = _0x18c269['querySelectorAll'](_0x527d64(0x17e));
156
+ let _0x163c51 = '';
157
+ const _0x1a01a7 = _0x13b44b => {
158
+ const _0x25a069 = _0x527d64;
159
+ if (_0x13b44b === 0x0)
160
+ return ![];
161
+ let _0x4603b3 = '', _0x3461be = '';
162
+ _0x111e0d[_0x25a069(0x159)]((_0x4fbdab, _0x501822) => {
163
+ const _0x5ef8a1 = _0x25a069;
164
+ if (_0x13b44b > btf[_0x5ef8a1(0x1bb)](_0x4fbdab) - 0x50) {
165
+ const _0x20b7f7 = _0x4fbdab['id'];
166
+ _0x4603b3 = _0x20b7f7 ? '#' + encodeURI(_0x20b7f7) : '', _0x3461be = _0x501822;
167
+ }
168
+ });
169
+ if (_0x163c51 === _0x3461be)
170
+ return;
171
+ if (_0x2e7f09)
172
+ btf[_0x25a069(0x219)](_0x4603b3);
173
+ _0x163c51 = _0x3461be;
174
+ if (_0x1ccaf9) {
175
+ _0x35d8c0['querySelectorAll'](_0x25a069(0x1f5))[_0x25a069(0x159)](_0x44710e => {
176
+ const _0x5042b0 = _0x25a069;
177
+ _0x44710e[_0x5042b0(0x195)][_0x5042b0(0x158)](_0x5042b0(0x174));
178
+ });
179
+ if (_0x4603b3 === '')
180
+ return;
181
+ const _0x4ef7f5 = _0x59f4e3[_0x3461be];
182
+ _0x4ef7f5[_0x25a069(0x195)][_0x25a069(0x1db)](_0x25a069(0x174)), setTimeout(() => {
183
+ _0x3f1234(_0x4ef7f5);
184
+ }, 0x0);
185
+ if (_0xb0320b)
186
+ return;
187
+ let _0x4e635c = _0x4ef7f5[_0x25a069(0x23d)];
188
+ for (; !_0x4e635c[_0x25a069(0x1d9)](_0x25a069(0x1c5)); _0x4e635c = _0x4e635c[_0x25a069(0x23d)]) {
189
+ if (_0x4e635c['matches']('li'))
190
+ _0x4e635c[_0x25a069(0x195)][_0x25a069(0x1db)]('active');
191
+ }
192
+ }
193
+ }, _0x7faf44 = btf[_0x527d64(0x164)](() => {
194
+ const _0x3bdc0b = _0x527d64, _0x14c30f = window['scrollY'] || document[_0x3bdc0b(0x1ea)][_0x3bdc0b(0x1b7)];
195
+ _0x1ccaf9 && GLOBAL_CONFIG[_0x3bdc0b(0x1ae)][_0x3bdc0b(0x1bd)] && (_0x18f467['textContent'] = btf[_0x3bdc0b(0x185)](_0x14c30f, _0x18c269)), _0x1a01a7(_0x14c30f);
196
+ }, 0x32);
197
+ btf['addEventListenerPjax'](window, _0x527d64(0x15f), _0x7faf44, { 'passive': !![] });
198
+ }, _0x54c3ea = _0xa5eb83 => {
199
+ const _0x2244ef = _0x30c2, _0x1c9dd9 = window[_0x2244ef(0x197)] || {}, _0x8c0b06 = _0x1c9dd9[_0x2244ef(0x163)] || {};
200
+ if (!_0x8c0b06)
201
+ return;
202
+ Object[_0x2244ef(0x20a)](_0x8c0b06)[_0x2244ef(0x159)](_0x1a233c => {
203
+ const _0x406ac2 = _0x2244ef, _0x500a8a = _0x8c0b06[_0x1a233c];
204
+ [
205
+ 'disqus',
206
+ _0x406ac2(0x180)
207
+ ]['includes'](_0x1a233c) ? setTimeout(() => _0x500a8a(_0xa5eb83), 0x12c) : _0x500a8a(_0xa5eb83);
208
+ });
209
+ }, _0x3ff3fd = {
210
+ 'readmode': () => {
211
+ const _0x306866 = _0x30c2, _0x97238b = document[_0x306866(0x1e5)];
212
+ _0x97238b[_0x306866(0x195)][_0x306866(0x1db)](_0x306866(0x1c0));
213
+ const _0xbd6c68 = document[_0x306866(0x1a1)](_0x306866(0x1f3));
214
+ _0xbd6c68[_0x306866(0x203)] = _0x306866(0x1f3), _0xbd6c68[_0x306866(0x169)] = _0x306866(0x19d), _0x97238b[_0x306866(0x173)](_0xbd6c68);
215
+ const _0x4bf02f = () => {
216
+ const _0x1eba23 = _0x306866;
217
+ _0x97238b[_0x1eba23(0x195)]['remove'](_0x1eba23(0x1c0)), _0xbd6c68[_0x1eba23(0x158)](), _0xbd6c68[_0x1eba23(0x178)](_0x1eba23(0x1e7), _0x4bf02f);
218
+ };
219
+ _0xbd6c68[_0x306866(0x179)](_0x306866(0x1e7), _0x4bf02f);
220
+ },
221
+ 'darkmode': () => {
222
+ const _0x103be5 = _0x30c2, _0x5323c2 = document[_0x103be5(0x1ea)][_0x103be5(0x18a)](_0x103be5(0x182)) === _0x103be5(0x1b8) ? 'light' : _0x103be5(0x1b8);
223
+ _0x5323c2 === _0x103be5(0x1b8) ? (activateDarkMode(), GLOBAL_CONFIG[_0x103be5(0x18e)] !== undefined && btf[_0x103be5(0x1a3)](GLOBAL_CONFIG[_0x103be5(0x18e)][_0x103be5(0x181)])) : (activateLightMode(), GLOBAL_CONFIG[_0x103be5(0x18e)] !== undefined && btf['snackbarShow'](GLOBAL_CONFIG[_0x103be5(0x18e)][_0x103be5(0x1ef)])), saveToLocal[_0x103be5(0x21f)]('theme', _0x5323c2, 0x2), _0x54c3ea(_0x5323c2);
224
+ },
225
+ 'rightside-config': _0x1109b8 => {
226
+ const _0x3cd2cc = _0x30c2, _0x32a303 = _0x1109b8[_0x3cd2cc(0x150)];
227
+ _0x32a303[_0x3cd2cc(0x195)][_0x3cd2cc(0x1b1)](_0x3cd2cc(0x23c)) && (_0x32a303['classList'][_0x3cd2cc(0x1db)](_0x3cd2cc(0x1bf)), setTimeout(() => {
228
+ const _0x9cf119 = _0x3cd2cc;
229
+ _0x32a303[_0x9cf119(0x195)][_0x9cf119(0x158)](_0x9cf119(0x1bf));
230
+ }, 0x12c)), _0x32a303[_0x3cd2cc(0x195)][_0x3cd2cc(0x1b4)](_0x3cd2cc(0x23c));
231
+ },
232
+ 'go-up': () => {
233
+ btf['scrollToDest'](0x0, 0x1f4);
234
+ },
235
+ 'hide-aside-btn': () => {
236
+ const _0x1ce970 = _0x30c2, _0x293a56 = document[_0x1ce970(0x1ea)]['classList'], _0x3c2ee8 = _0x293a56[_0x1ce970(0x1b1)]('hide-aside') ? _0x1ce970(0x23c) : _0x1ce970(0x1a0);
237
+ saveToLocal[_0x1ce970(0x21f)](_0x1ce970(0x238), _0x3c2ee8, 0x2), _0x293a56[_0x1ce970(0x1b4)](_0x1ce970(0x1ca));
238
+ },
239
+ 'mobile-toc-button': _0x16b278 => {
240
+ const _0x3640b5 = _0x30c2, _0x12e7fe = document[_0x3640b5(0x1b3)](_0x3640b5(0x209));
241
+ _0x12e7fe['style'][_0x3640b5(0x190)] = _0x3640b5(0x19e), _0x12e7fe[_0x3640b5(0x195)][_0x3640b5(0x1b4)](_0x3640b5(0x15c)), _0x12e7fe[_0x3640b5(0x179)](_0x3640b5(0x22d), () => {
242
+ const _0x2472c7 = _0x3640b5;
243
+ _0x12e7fe[_0x2472c7(0x1f8)]['transition'] = '';
244
+ }, { 'once': !![] });
245
+ },
246
+ 'chat-btn': () => {
247
+ window['chatBtnFn']();
248
+ },
249
+ 'translateLink': () => {
250
+ window['translateFn']['translatePage']();
251
+ }
252
+ };
253
+ document[_0x520515(0x1b3)](_0x520515(0x1bc))[_0x520515(0x179)](_0x520515(0x1e7), function (_0x7f26dc) {
254
+ const _0xcdd9d8 = _0x520515, _0x398e99 = _0x7f26dc['target']['closest'](_0xcdd9d8(0x202));
255
+ _0x398e99 && _0x3ff3fd[_0x398e99['id']] && _0x3ff3fd[_0x398e99['id']](this);
256
+ });
257
+ const _0x5440e4 = () => {
258
+ const _0x4bfec9 = _0x520515, _0x553bbb = _0x409e4c => {
259
+ const _0x450c63 = _0x30c2, _0x3b3848 = _0x409e4c[_0x450c63(0x225)][_0x450c63(0x226)]('.site-page.group');
260
+ if (!_0x3b3848)
261
+ return;
262
+ _0x3b3848[_0x450c63(0x195)][_0x450c63(0x1b4)](_0x450c63(0x1a0));
263
+ };
264
+ document[_0x4bfec9(0x19c)](_0x4bfec9(0x17d))['addEventListener'](_0x4bfec9(0x1e7), _0x553bbb);
265
+ }, _0x539a62 = () => {
266
+ const _0x37aea3 = _0x520515, _0x494aeb = () => {
267
+ _0x448a8b['open']();
268
+ };
269
+ btf[_0x37aea3(0x154)](document[_0x37aea3(0x1b3)]('toggle-menu'), _0x37aea3(0x1e7), _0x494aeb);
270
+ }, _0x46f20e = () => {
271
+ const _0x5dd740 = _0x520515, {
272
+ limitCount: _0x49515f,
273
+ languages: _0x51ca79
274
+ } = GLOBAL_CONFIG[_0x5dd740(0x23a)], _0x43b324 = _0x21b988 => {
275
+ const _0x1943ed = _0x5dd740;
276
+ _0x21b988['preventDefault']();
277
+ const _0x31d326 = window[_0x1943ed(0x148)](0x0)['toString']();
278
+ let _0x308c8e = _0x31d326;
279
+ return _0x31d326['length'] > _0x49515f && (_0x308c8e = _0x31d326 + _0x1943ed(0x1f1) + _0x51ca79[_0x1943ed(0x191)] + '\x0a' + _0x51ca79[_0x1943ed(0x1b2)] + window[_0x1943ed(0x1a4)]['href'] + '\x0a' + _0x51ca79[_0x1943ed(0x23f)] + '\x0a' + _0x51ca79['info']), _0x21b988[_0x1943ed(0x166)] ? _0x21b988[_0x1943ed(0x166)][_0x1943ed(0x1f4)]('text', _0x308c8e) : window[_0x1943ed(0x166)][_0x1943ed(0x1f4)]('text', _0x308c8e);
280
+ };
281
+ document['body'][_0x5dd740(0x179)](_0x5dd740(0x220), _0x43b324);
282
+ }, _0x3c31c3 = () => {
283
+ const _0x38d6ca = _0x520515, _0x46ac15 = document[_0x38d6ca(0x1b3)](_0x38d6ca(0x189));
284
+ if (_0x46ac15) {
285
+ const _0x57bbd1 = _0x46ac15[_0x38d6ca(0x18a)](_0x38d6ca(0x1ad));
286
+ _0x46ac15[_0x38d6ca(0x20e)] = btf[_0x38d6ca(0x17a)](_0x57bbd1) + '\x20' + GLOBAL_CONFIG[_0x38d6ca(0x1ac)];
287
+ }
288
+ }, _0x594cbc = () => {
289
+ const _0x1693c0 = _0x520515, _0x2757cd = document[_0x1693c0(0x1b3)]('last-push-date');
290
+ if (_0x2757cd) {
291
+ const _0x460213 = _0x2757cd['getAttribute'](_0x1693c0(0x1ee));
292
+ _0x2757cd[_0x1693c0(0x20e)] = btf[_0x1693c0(0x17a)](_0x460213, !![]);
293
+ }
294
+ }, _0x4e9b6e = () => {
295
+ const _0x1fb65c = _0x520515, _0x51c98b = document[_0x1fb65c(0x1c8)](_0x1fb65c(0x229));
296
+ if (!_0x51c98b[_0x1fb65c(0x21c)])
297
+ return;
298
+ _0x51c98b[_0x1fb65c(0x159)](_0x144293 => {
299
+ const _0x36ccd3 = _0x1fb65c;
300
+ !_0x144293['closest'](_0x36ccd3(0x23b)) && btf[_0x36ccd3(0x237)](_0x144293, 'div', { 'class': _0x36ccd3(0x146) });
301
+ });
302
+ }, _0x4cd021 = () => {
303
+ const _0x9a3427 = _0x520515, _0x369bba = document[_0x9a3427(0x1c8)]('#article-container\x20.hide-button');
304
+ if (!_0x369bba[_0x9a3427(0x21c)])
305
+ return;
306
+ const _0x4f413a = function (_0x4fb26c) {
307
+ const _0x2033e5 = _0x9a3427, _0x45fdf4 = this;
308
+ _0x45fdf4['classList'][_0x2033e5(0x1db)]('open');
309
+ const _0x50c9f7 = _0x45fdf4[_0x2033e5(0x15e)][_0x2033e5(0x1c8)](_0x2033e5(0x1ff));
310
+ _0x50c9f7['length'] && _0x309cd4(_0x50c9f7);
311
+ };
312
+ _0x369bba[_0x9a3427(0x159)](_0x5258ac => {
313
+ const _0x13d313 = _0x9a3427;
314
+ _0x5258ac[_0x13d313(0x179)](_0x13d313(0x1e7), _0x4f413a, { 'once': !![] });
315
+ });
316
+ }, _0x32fb1e = () => {
317
+ const _0x41678b = _0x520515, _0x8df550 = document[_0x41678b(0x1c8)](_0x41678b(0x188));
318
+ if (!_0x8df550[_0x41678b(0x21c)])
319
+ return;
320
+ const _0x3e3d9a = (_0x3935d2, _0x5c9d30) => {
321
+ const _0x6e09c1 = _0x41678b;
322
+ Array[_0x6e09c1(0x1a6)](_0x3935d2)[_0x6e09c1(0x159)](_0x26de18 => {
323
+ const _0x5eb29a = _0x6e09c1;
324
+ _0x26de18[_0x5eb29a(0x195)]['remove']('active'), (_0x26de18 === _0x5c9d30 || _0x26de18['id'] === _0x5c9d30) && _0x26de18[_0x5eb29a(0x195)][_0x5eb29a(0x1db)]('active');
325
+ });
326
+ }, _0x4e9bc1 = (_0x499b58, _0x1e2abc) => {
327
+ const _0x12b681 = _0x41678b, _0x3ff91d = function (_0x3f9a0c) {
328
+ const _0x24e8cb = _0x30c2, _0x400048 = _0x3f9a0c['target'][_0x24e8cb(0x226)](_0x24e8cb(0x1f3));
329
+ if (_0x400048['classList'][_0x24e8cb(0x1b1)](_0x24e8cb(0x174)))
330
+ return;
331
+ _0x3e3d9a(this[_0x24e8cb(0x156)], _0x400048), this[_0x24e8cb(0x195)][_0x24e8cb(0x158)](_0x24e8cb(0x217));
332
+ const _0x35e17f = _0x400048[_0x24e8cb(0x18a)](_0x24e8cb(0x207)), _0xc7f9d8 = this[_0x24e8cb(0x15e)];
333
+ _0x3e3d9a(_0xc7f9d8[_0x24e8cb(0x156)], _0x35e17f);
334
+ if (_0x1e2abc) {
335
+ btf['removeGlobalFnEvent'](_0x24e8cb(0x1ec), this);
336
+ const _0x184447 = _0xc7f9d8['querySelectorAll'](_0x24e8cb(0x1d7) + _0x35e17f + '\x20.gallery-container');
337
+ _0x184447[_0x24e8cb(0x21c)] && _0x309cd4(_0x184447, this);
338
+ }
339
+ };
340
+ btf['addEventListenerPjax'](_0x499b58[_0x12b681(0x150)], _0x12b681(0x1e7), _0x3ff91d);
341
+ }, _0x3e9ec6 = _0x278193 => {
342
+ const _0x32f14c = _0x41678b, _0xb3302f = _0x28dcfe => {
343
+ const _0x389181 = _0x30c2, _0x51ba2b = _0x28dcfe[_0x389181(0x225)][_0x389181(0x226)](_0x389181(0x1f3));
344
+ if (!_0x51ba2b)
345
+ return;
346
+ btf[_0x389181(0x192)](btf[_0x389181(0x1bb)](_0x278193), 0x12c);
347
+ };
348
+ btf[_0x32f14c(0x154)](_0x278193[_0x32f14c(0x1e6)], _0x32f14c(0x1e7), _0xb3302f);
349
+ };
350
+ _0x8df550[_0x41678b(0x159)](_0x2cce89 => {
351
+ const _0x1c97fd = _0x41678b, _0x4cb381 = !!_0x2cce89['querySelectorAll'](_0x1c97fd(0x1ff));
352
+ _0x4e9bc1(_0x2cce89, _0x4cb381), _0x3e9ec6(_0x2cce89);
353
+ });
354
+ }, _0x513156 = () => {
355
+ const _0x39565c = _0x520515, _0x565375 = document[_0x39565c(0x19c)](_0x39565c(0x22a));
356
+ if (!_0x565375)
357
+ return;
358
+ const _0x1aa777 = _0x53d096 => {
359
+ const _0x3fdb6d = _0x39565c, _0x5f0315 = _0x53d096[_0x3fdb6d(0x225)];
360
+ _0x5f0315[_0x3fdb6d(0x15d)] === 'I' && (_0x53d096[_0x3fdb6d(0x155)](), _0x5f0315[_0x3fdb6d(0x23d)][_0x3fdb6d(0x195)][_0x3fdb6d(0x1b4)](_0x3fdb6d(0x21b)));
361
+ };
362
+ btf[_0x39565c(0x154)](_0x565375, _0x39565c(0x1e7), _0x1aa777, !![]);
363
+ }, _0x49778b = () => {
364
+ const _0xfa8561 = _0x520515, _0x55e301 = document[_0xfa8561(0x1b3)](_0xfa8561(0x1d0));
365
+ if (!_0x55e301)
366
+ return;
367
+ let _0x36284b = ![];
368
+ const _0x17c506 = document['getElementById'](_0xfa8561(0x21e)), _0x591f8c = () => {
369
+ const _0x118736 = _0xfa8561;
370
+ _0x17c506['classList'][_0x118736(0x1b4)]('move'), !_0x36284b && typeof loadOtherComment === 'function' && (_0x36284b = !![], loadOtherComment());
371
+ };
372
+ btf[_0xfa8561(0x154)](_0x55e301, _0xfa8561(0x1e7), _0x591f8c);
373
+ }, _0x536aab = () => {
374
+ const _0x503db9 = _0x520515, {
375
+ limitDay: _0x45559d,
376
+ messagePrev: _0x255b73,
377
+ messageNext: _0x3eb85f,
378
+ position: _0x21cbf4
379
+ } = GLOBAL_CONFIG[_0x503db9(0x1b5)], _0x2220bc = btf[_0x503db9(0x17a)](GLOBAL_CONFIG_SITE[_0x503db9(0x1ce)]);
380
+ if (_0x2220bc >= _0x45559d) {
381
+ const _0x293e1a = document[_0x503db9(0x1a1)]('div');
382
+ _0x293e1a['className'] = _0x503db9(0x1d1), _0x293e1a[_0x503db9(0x20e)] = _0x255b73 + '\x20' + _0x2220bc + '\x20' + _0x3eb85f;
383
+ const _0x31bb69 = document[_0x503db9(0x1b3)](_0x503db9(0x1d5));
384
+ _0x21cbf4 === _0x503db9(0x204) ? _0x31bb69[_0x503db9(0x236)](_0x293e1a, _0x31bb69['firstChild']) : _0x31bb69[_0x503db9(0x173)](_0x293e1a);
385
+ }
386
+ }, _0x34ef22 = () => {
387
+ const _0x2bbdba = _0x520515;
388
+ window[_0x2bbdba(0x1eb)] = new LazyLoad({
389
+ 'elements_selector': _0x2bbdba(0x213),
390
+ 'threshold': 0x0,
391
+ 'data_src': _0x2bbdba(0x201)
392
+ });
393
+ }, _0x2c88ec = function (_0x235ade) {
394
+ const _0x3d040a = _0x520515;
395
+ _0x235ade[_0x3d040a(0x159)](_0x45b8a4 => {
396
+ const _0x2ccaf1 = _0x3d040a, _0x172104 = _0x45b8a4['getAttribute'](_0x2ccaf1(0x19f));
397
+ _0x45b8a4[_0x2ccaf1(0x20e)] = btf[_0x2ccaf1(0x17a)](_0x172104, !![]), _0x45b8a4[_0x2ccaf1(0x1f8)]['display'] = _0x2ccaf1(0x1d8);
398
+ });
399
+ }, _0x4f8da5 = function () {
400
+ const _0x5be40d = _0x520515;
401
+ window['addEventListener']('resize', () => {
402
+ const _0x3aeb56 = _0x30c2;
403
+ _0x4b6edf(![]), _0x2a80c7 && btf[_0x3aeb56(0x1da)](document[_0x3aeb56(0x1b3)](_0x3aeb56(0x1f9))) && _0x448a8b[_0x3aeb56(0x14c)]();
404
+ }), document['getElementById']('menu-mask')['addEventListener'](_0x5be40d(0x1e7), _0x4b099f => {
405
+ const _0x35e0df = _0x5be40d;
406
+ _0x448a8b[_0x35e0df(0x14c)]();
407
+ }), _0x5440e4(), GLOBAL_CONFIG[_0x5be40d(0x172)] && _0x34ef22(), GLOBAL_CONFIG['copyright'] !== undefined && _0x46f20e(), GLOBAL_CONFIG[_0x5be40d(0x1af)] && window[_0x5be40d(0x22f)](_0x5be40d(0x1b9))[_0x5be40d(0x179)]('change', _0x3c429d => {
408
+ const _0x229837 = _0x5be40d;
409
+ if (saveToLocal[_0x229837(0x16d)](_0x229837(0x1a8)) !== undefined)
410
+ return;
411
+ _0x3c429d[_0x229837(0x1d9)] ? _0x54c3ea(_0x229837(0x1b8)) : _0x54c3ea(_0x229837(0x216));
412
+ });
413
+ };
414
+ window['refreshFn'] = function () {
415
+ const _0x1ec8bc = _0x520515;
416
+ _0x3f3f41();
417
+ GLOBAL_CONFIG_SITE['isPost'] ? (GLOBAL_CONFIG[_0x1ec8bc(0x1b5)] !== undefined && _0x536aab(), GLOBAL_CONFIG[_0x1ec8bc(0x21a)]['post'] && _0x2c88ec(document[_0x1ec8bc(0x1c8)](_0x1ec8bc(0x16c)))) : (GLOBAL_CONFIG[_0x1ec8bc(0x21a)][_0x1ec8bc(0x1dd)] && _0x2c88ec(document['querySelectorAll']('#recent-posts\x20time')), GLOBAL_CONFIG['runtime'] && _0x3c31c3(), _0x594cbc(), _0x513156());
418
+ _0x302b01(), GLOBAL_CONFIG_SITE[_0x1ec8bc(0x215)] && _0x286ce1(), _0x1ac2f5(), GLOBAL_CONFIG['isPhotoFigcaption'] && _0xe0e4b7(), _0x14a4b4(), btf['removeGlobalFnEvent']('justifiedGallery');
419
+ const _0x12cb5d = document['querySelectorAll'](_0x1ec8bc(0x1cb));
420
+ _0x12cb5d['length'] && _0x309cd4(_0x12cb5d), _0x427500(), _0x4e9b6e(), _0x4cd021(), _0x32fb1e(), _0x49778b(), _0x539a62();
421
+ }, refreshFn(), _0x4f8da5();
422
+ }));