123 |
- /*! For license information please see app.js.LICENSE.txt */
- (()=>{var e,t,n,o,r,i={5132:(e,t,n)=>{n.d(t,{m:()=>i});const o={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0};class r{constructor(e,t){this.settings={...o,...t},this.elms=e||document.querySelectorAll(this.settings.selector),this.init()}elms;obs=null;settings;init(){if(!IntersectionObserver)return void this.load();const e=this;this.obs=new IntersectionObserver((function(t){Array.prototype.forEach.call(t,(function(t){t.isIntersecting&&(e.obs.unobserve(t.target),e.doLoad(t.target))}))}),{root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]}),this.elms.forEach((t=>{e.obs.observe(t)}))}loadAndDestroy(){this.settings&&(this.load(),this.destroy())}load(){if(!this.settings)return;const{settings:e}=this;Array.prototype.forEach.call(this.elms,this.doLoad)}doLoad=e=>{const{settings:t}=this,n=e.getAttribute(t.src),o=e.getAttribute(t.srcset),r=e.tagName.toLowerCase();"video"===r?n&&(e.src=n):"img"===r?(n&&(e.src=n),o&&(e.srcset=o)):e.style.backgroundImage="url('"+n+"')"};destroy(){this.settings&&(this.obs.disconnect(),this.settings=null)}}const i=(e,t)=>new r(e,t)},1280:(e,t,n)=>{n.d(t,{U:()=>a,G:()=>s});n(170);const o=_iro.cookie_version_control||"";const r=navigator.userAgent,i=Array.from(r.matchAll(/(Firefox|Chrome|Version|OPR|Edg)\/(\d+)/gi));function s(e){for(const[t,n,o]of i)if(parseFloat(o)>=e[n])return!0;return!1}const a=function(){const e=["image/*,*/*;q=0.8"];return s({Chrome:59,OPR:46,Firefox:3,Edg:79,Version:8})&&(e.push("image/apng"),s({Chrome:32,OPR:19,Firefox:65,Edg:18,Version:14})&&(!function(e,t,n){const r=n?"; expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString():"";document.cookie=e+o+"="+(t||"")+r+"; path=/"}("su_webp","1",114514),e.push("image/webp"),s({Chrome:85,OPR:71,Firefox:93})&&e.push("image/avif"))),e.reverse().join(",")}()},4164:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(6104),r=n(1211);const i=["# 商业转载请联系作者获得授权,非商业转载请注明出处。","# For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.","# 协议(License):署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)","# 作者(Author):"+_iro.author_name,"# 链接(URL):"+window.location.href,"# 来源(Source):"+_iro.site_name];function s(e){const t=window.getSelection();if(t){const n=t.toString();n.length>30&&(!function(e,t){e.preventDefault();const n=i.join("<br>")+"<br><br>"+t.replace(/\r\n/g,"<br>"),o=i.join("\n")+"\n\n"+t.toString().replace(/\r\n/g,"\n");if(e.clipboardData)e.clipboardData.setData("text/html",n),e.clipboardData.setData("text/plain",o);else if(window.clipboardData)window.clipboardData.setData("text",o)}(e,n),(0,o.f)((0,r.__)("复制成功!"),1e3))}}function a(){_iro.clipboardCopyright&&(document.body.removeEventListener("copy",s),document.body.addEventListener("copy",s))}},9586:(e,t,n)=>{n.d(t,{sk:()=>p,Rj:()=>w,U7:()=>v,k:()=>h,Tk:()=>g});n(2551),n(7693),n(8545);function o(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function r(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=o(n);return(e,n)=>r.then((o=>n(o.transaction(t,e).objectStore(t))))}const i=r("sakurairo","cache");var s=n(1280),a=n(1211),c=n(647),l=n(6104),d=n(1794);let u=1,m="";async function h(){p(await w(!0)),u++}async function g(){u--,p(await w(!0))}const f=document.querySelector(".centerbg"),p=_iro.site_bg_as_cover?e=>{document.body.style.backgroundImage=`url(${e})`,document.dispatchEvent(new CustomEvent("coverBG_change",{detail:e}))}:f?e=>{f.style.backgroundImage=`url(${e})`,document.dispatchEvent(new CustomEvent("coverBG_change",{detail:e}))}:d.ZT;function y(e){const t=e?.match(/^url\("(.+)"\)$/);if(t)return t[1]}const v=_iro.site_bg_as_cover?()=>y(document.body.style.backgroundImage):f?()=>y(f.style.backgroundImage):d.ZT;function b(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=new URL(_iro.cover_api);return(0,c.t)()&&1==_iro.random_graphs_mts?(t.searchParams.set("type","mobile"),t.toString()+(e?"&"+u:"")):t.toString()+(e?(""===t.search?"?":"&")+u:"")}const w=_iro.cache_cover?function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t="cover",i("readonly",(e=>o(e.get(t))))).then((t=>t&&t instanceof ArrayBuffer?(URL.revokeObjectURL(m),m="",m=URL.createObjectURL(new Blob([t])),m):b(e))).finally((()=>{!async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{const t=await fetch(b(e),{headers:{Accept:s.U}});if(500==t.status){const e=await t.json();(0,l.f)(e.message),console.warn(e.message)}else if(t.ok){const e=await t.arrayBuffer();try{((e,t)=>{i("readwrite",(n=>(n.put(t,e),o(n.transaction))))})("cover",e)}catch(e){console.warn(e)}}}catch(e){e instanceof TypeError&&(console.warn((0,a.__)("你的封面API好像不支持跨域调用,这种情况下缓存是不会生效的哦")),(e=>{i("readwrite",(t=>(t.delete(e),o(t.transaction))))})("cover"))}}(e)}));var t}:b},4121:(e,t,n)=>{n.d(t,{B3:()=>l,Lg:()=>d,N2:()=>i,q1:()=>m});const o=window.matchMedia("(prefers-color-scheme:dark)");let r=!1;const i=()=>r;function s(e){e!==r&&(document.dispatchEvent(new CustomEvent("darkmode",{detail:e})),r=e)}function a(){localStorage.getItem("dark")||(o.matches&&_iro.darkmode?l():d())}function c(e){e==u()?localStorage.removeItem("dark"):1==e?localStorage.setItem("dark","1"):localStorage.setItem("dark","0")}function l(e){document.documentElement.style.backgroundColor="#333",document.getElementsByClassName("site-content")[0].style.backgroundColor="#333",document.body.classList.add("dark"),e&&c(!0),s(!0)}function d(e){document.documentElement.style.backgroundColor="",document.getElementsByClassName("site-content")[0].style.backgroundColor="rgba(255, 255, 255, .8)",document.body.classList.remove("dark"),document.body.classList.remove("dynamic"),s(!1),e&&c(!1)}function u(){switch(_iro.dm_strategy){case"client":return o.matches;case"eien":return!0;default:return function(){const e=new Date;return e.getHours()>21||e.getHours()<7}()}}function m(){const e=localStorage.getItem("dark");e?"1"==e?l():d():u()&&_iro.darkmode?l():d()}"client"===_iro.dm_strategy&&(o.removeEventListener?o.removeEventListener("change",a):o.removeListener(a),o.addEventListener?o.addEventListener("change",a):o.addListener(a))},3022:(e,t,n)=>{n.d(t,{T:()=>u,y:()=>l});var o=n(6104),r=n(1211),i=n(647);let s,a;function c(e){return()=>{const{name:t}=e.dataset;t!=localStorage.getItem("font_family")&&("serif"==t?((0,i.t)()&&(0,o.f)((0,r.__)("将从网络加载字体,流量请注意")),document.body.classList.add("serif"),localStorage.setItem("font_family","serif"),d("serif")):(document.body.classList.remove("serif"),localStorage.setItem("font_family","sans-serif"),d("sans-serif")))}}function l(){const e=localStorage.getItem("font_family");e&&"serif"!=e||document.body.classList.add("serif")}function d(e){"sans-serif"===e||"sans-serif"==localStorage.getItem("font_family")?(s.classList.remove("selected"),a.classList.add("selected")):(a.classList.remove("selected"),s.classList.add("selected"))}function u(){const e=(s=document.getElementsByClassName("control-btn-serif")[0],a=document.getElementsByClassName("control-btn-sans-serif")[0],a&&s);e||localStorage.removeItem("font_family"),l(),e&&(d(),s.addEventListener("click",c(s)),a.addEventListener("click",c(a)))}},7301:(e,t,n)=>{async function o(){const e=document.getElementById("footer_yiyan");if(e){const t=_iro.yiyan_api||["https://api.maho.cc/yiyan/"];0==t.length&&console.warn("一言API: 路径为空");for(const n of t)try{const t=await r(n);e.innerText=t;break}catch(e){console.warn(`一言API: 尝试联系"${n}"时出错。 `,e);continue}}}n.d(t,{Z:()=>o});const r=async e=>{const t=await fetch(e,{headers:{Accept:"application/json"}});if(t.ok){const e=await t.json(),n=("null"==e.from_who?null:e.from_who)||"",o=e.from!=e.from_who?`「${e.from}」`:"";return e.hitokoto+"——"+n+o}throw t.status}},647:(e,t,n)=>{n.d(t,{T:()=>r,t:()=>s});let o=!1;function r(){const e=window.matchMedia("(max-width:860px)");o=e.matches,e.addEventListener?e.addEventListener("change",i):e.addListener(i)}function i(e){o=e.matches}const s=()=>o},152:(e,t,n)=>{function o(){for(const e of document.querySelectorAll(".showcard")){const t=e.querySelector(".img"),n=e.querySelector(".showcard-button");if(!t||!n)throw new Error("invalid structure for .showcard");t.addEventListener("mouseover",(function(){n.classList.add("hover")})),t.addEventListener("mouseout",(function(){n.classList.remove("hover")}))}}n.d(t,{Z:()=>o})},5032:(e,t,n)=>{n.d(t,{Z:()=>s,d:()=>i});var o=n(4363);let r;function i(){r&&(r.destroy(),r=null)}async function s(){const e=document.getElementById("typed-js-initial");if(e)try{const t=JSON.parse(e.innerHTML),i=document.querySelector(".element");if(i.innerText="",_iro.ext_shared_lib)window.Typed||await(0,o.V)("dist/typed.umd.js","typed.js"),r=new window.Typed(i,t);else{const{default:e}=await n.e(4107).then(n.bind(n,4107));r=new e(i,t)}}catch(e){console.error("请检查typed.js设置",e)}}},98:(e,t,n)=>{n.d(t,{$Q:()=>p,Ce:()=>g,MB:()=>f,ze:()=>y});n(2551),n(7693),n(8545);var o=n(1794),r=n(1211),i=n(4363);const s=document.getElementById("bgvideo"),a=_iro.movies.name?.split(",")||[];let c=new Array(a.length).fill(0).map(((e,t)=>t)),l=[];const d=()=>{0==c.length&&(c=new Array(a.length).fill(0).map(((e,t)=>t)));const e=Math.floor(Math.random()*c.length);return a[c.splice(e,1)[0]]};function u(){const e=document.getElementsByClassName("video-stu")[0],t=d();e.innerHTML=(0,r.__)("正在载入视频 ..."),e.style.bottom="0px",s.setAttribute("src",new URL(t,_iro.movies.url||location.origin).toString()),s.setAttribute("video-name",(0,o.cG)(t))}function m(){const e=document.getElementById("video-btn");e&&(e.classList.add("video-pause"),e.classList.remove("video-play"),e.style.display="");try{if(document.querySelector(".video-stu").style.bottom="-100px",document.querySelector(".focusinfo").style.top="-999px",_iro.float_player_on)return void Promise.all([n.e(7104),n.e(519)]).then(n.bind(n,7104)).then((e=>{let{pauseAllPlayer:t}=e;l=t(),s.play()}))}catch(e){console.warn(e)}s.play()}function h(){const e=document.getElementById("video-btn");e&&(e.classList.add("video-play"),e.classList.remove("video-pause"));try{document.querySelector(".focusinfo").style.top="49.3%"}catch{}s.pause();for(const e of l)e.play()}function g(){s&&null!=s.oncanplay&&document.querySelector(".haslive")&&document.querySelector(".videolive")&&m()}function f(){if(s&&null!=s.oncanplay&&document.querySelector(".haslive")){h();const e=document.getElementsByClassName("video-stu")[0];e.style.bottom="0px",e.innerHTML=(0,r.__)("已暂停...")}}function p(){const e=document.getElementById("video-btn");e&&e.addEventListener("click",(function(){this.classList.contains("loadvideo")?(this.classList.add("video-pause"),this.classList.remove("loadvideo"),u(),s.oncanplay=()=>{m(),document.getElementById("video-add").style.display="block",e.classList.add("videolive","haslive")}):this.classList.contains("video-pause")?(h(),e.classList.remove("videolive"),document.getElementsByClassName("video-stu")[0].style.bottom="0px",document.getElementsByClassName("video-stu")[0].innerHTML=(0,r.__)("已暂停...")):(m(),e.classList.add("videolive")),s.onended=function(){s.setAttribute("src",""),document.getElementById("video-add").style.display="none",document.querySelector(".focusinfo").style.top="49.3%",e&&(e.classList.add("loadvideo"),e.classList.remove("video-pause","videolive","haslive"),_iro.movies.loop&&e.click())}}));const t=document.getElementById("video-add");t&&t.addEventListener("click",u)}async function y(){!async function(){const e=document.querySelectorAll("video.hls");if(0==e.length)return;if(e[0].canPlayType("application/vnd.apple.mpegurl"))for(const t of e)t.src=t.dataset.src||t.src,t.autoplay=!0;else{if(!window.Hls)try{if(_iro.ext_shared_lib)await(0,i.V)("dist/hls.light.min.js","hls.js");else{const{default:e}=await n.e(9372).then(n.t.bind(n,9372,23));window.Hls=e}}catch(e){console.warn("Hls load failed: ",e)}Hls.isSupported()||console.error("Hls: Media Source Extensions is unsupported.");for(const t of e){const e=new Hls;e.loadSource(t.dataset.src||t.src),e.attachMedia(t),e.on(Hls.Events.MANIFEST_PARSED,(()=>{t.play()}))}}}(),async function(){document.querySelectorAll("video.lazyload").forEach((e=>e.addEventListener("canplay",v)))}()}function v(){this.poster=""}},2425:(e,t,n)=>{n.d(t,{k:()=>r});var o=n(1211);function r(){if(!_iro.audio)return;const e=window.AudioContext||window.webkitAudioContext;if(e){let t,n=0;const r=1,s=function(){const e=o.o.opt.web_audio?.sheet;if("string"==typeof e)return e.split(" ");if(e instanceof Array)return e}()||i,a=document.querySelectorAll(".site-title, #moblieGoTop, .site-branding, .searchbox, .changeSkin-gear, .menu-list li"),c="♪ ♩ ♫ ♬ ♭ € § ¶ ♯".split(" "),l=new e,d=e=>{if(t)return;let i=s[n];i||(n=0,i=s[n]),n+=r;const a=l.createOscillator(),d=l.createGain(),u=l.createGain();a.connect(d),d.connect(u),u.connect(l.destination),u.gain.setValueAtTime(o.o.opt.web_audio?.main_gain||1,l.currentTime),a.type="sine",a.frequency.value=i,d.gain.setValueAtTime(0,l.currentTime),d.gain.linearRampToValueAtTime(1,l.currentTime+.01),a.start(l.currentTime),d.gain.exponentialRampToValueAtTime(.001,l.currentTime+1),a.stop(l.currentTime+1);const m=Math.round(7*Math.random()),h=e.pageX,g=e.pageY-5;t=document.createElement("b"),t.textContent=c[m],t.style.zIndex="99999",t.style.top=g-100+"px",t.style.left=h+"px",t.style.position="absolute",t.style.color="#FF6EB4",document.body.appendChild(t),t.animate([{top:g+"px"},{opacity:0}],{duration:500}),setTimeout((()=>{t.remove(),t=null}),500)};a.forEach((e=>{e.addEventListener("mouseenter",d)}))}}const i="880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 659 698 659 698 1046 659 1046 1046 1046 987 698 698 987 987 880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 698 1046 987 1046 1174 1174 1174 1046 1046 880 987 784 880 1046 1174 1318 1174 1318 1567 1046 987 1046 1318 1318 1174 784 784 880 1046 987 1174 1046 784 784 1396 1318 1174 659 1318 1046 1318 1760 1567 1567 1318 1174 1046 1046 1174 1046 1174 1567 1318 1318 1760 1567 1318 1174 1046 1046 1174 1046 1174 987 880 880 987 880".split(" ")},6104:(e,t,n)=>{function o(){const e=document.getElementsByClassName("butterBar");if(e.length>0)for(let t=0;t<e.length;t++)e[t].remove()}function r(e,t){o();const n=document.createElement("div"),r=document.createElement("p");return n.classList.add("butterBar","butterBar--center"),r.classList.add("butterBar-message"),r.innerHTML=e,n.appendChild(r),document.body.appendChild(n),!0!==t&&setTimeout((()=>{o()}),"number"==typeof t?t:6e3),n}n.d(t,{f:()=>r})},4363:(e,t,n)=>{n.d(t,{V:()=>c,i:()=>a});const o="sakurairo_prefer_cdn",r=[["https://jsd.nmxc.ltd/npm/","@","/",""],["https://cdn.jsdelivr.net/npm/","@","/",""],["https://unpkg.com/","@","/",""]];const i=function(){const e=localStorage.getItem(o);if(e){const t=parseInt(e);return isNaN(t)||t>=r.length?(localStorage.removeItem(o),0):t}return 0}(),s={raw:r[i]},a=(e,t,n)=>String.raw(s,t,n||{"@fancyapps/fancybox":"3.5.7","@kotorik/palette":"2.1.0","@mui/utils":"5.14.12","@sliphua/pjax":"2.4.0","baguettebox.js":"1.11.1",buffer:"6.0.3","change-case":"4.1.2",clipboard:"2.0.11","color-space":"2.0.1","fg-loadcss":"3.1.0","highlight.js":"11.8.0","highlightjs-line-numbers.js":"2.8.0","hls.js":"1.4.12","idb-keyval":"6.2.1",jquery:"3.7.1",lightgallery:"2.7.2","lottie-web":"5.12.2",mathjax:"3.2.2",md5:"2.3.0",nprogress:"0.2.0","particles.js":"2.0.0",prismjs:"1.29.0","promise-worker":"2.0.1","smoothscroll-for-websites":"1.4.10","textarea-caret-position":"0.1.1",tocbot:"4.21.2","typed.js":"2.0.16"}[t]||"latest",e);const c=(e,t,n)=>{const o=`${t}${n?"@"+n:""}`;if(document.getElementById(o))return Promise.resolve();const r=document.createElement("script");return r.id=o,r.src=a(e,t,n),r.async=!0,new Promise(((e,n)=>{r.onload=()=>e(),r.onerror=()=>{r.remove(),n(new Error(t+"加载失败"))},document.body.append(r)})).finally((()=>{r.onload=r.onerror=null}))}},1211:(e,t,n)=>{n.d(t,{_$:()=>r,__:()=>o,o:()=>i,t:()=>s});const o=e=>window._sakurairoi18n&&_sakurairoi18n[e]||e,r=function(e){let t=o(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(const e in r)t=t.replace("{"+e+"}",r[e]);return t},i={opt:{},build:{hash:"d7bd401",date:"2023/11/1"}},s=(e,t)=>Object.defineProperty(i,e,{value:t,writable:!1,enumerable:!0});if("_sakurairo"in window){const e=window._sakurairo;"opt"in e&&(i.opt=e.opt)}window._sakurairo=i},1794:(e,t,n)=>{n.d(t,{Cd:()=>s,NB:()=>r,ZT:()=>d,bf:()=>l,cG:()=>a,wy:()=>c});n(170),n(2551),n(7693),n(8545);let o=[];const r=e=>{let t=!1;return function(){if(!t){t=!0;try{const n=e(...arguments);return n instanceof Promise?n.finally((()=>t=!1)):t=!1,n}catch(e){console.warn(e),t=!1}}}},i=()=>{document.removeEventListener("DOMContentLoaded",i);for(const e of o)e();o=[]},s=function(e){if("loading"!==document.readyState)return e();0==o.length&&document.addEventListener("DOMContentLoaded",i,!1),o.push(e)},a=e=>e.replace(/\.\w+$/,"");function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;const r=e;r.status=r.status||getComputedStyle(r,null).display;const i="none"!=r.status;1==i&&"show"==n||0==i&&"hide"==n||(r.status=i?"none":"block",r.style.transition="height "+t/1e3+"s",r.style.overflow="hidden",clearTimeout(r.tagTimer),r.tagTimer=r.tagTimer||null,r.style.display="block",r.tagHeight=r.tagHeight||r.clientHeight+"px",r.style.display="",r.style.height=i?r.tagHeight:"0px",setTimeout((()=>{r.style.height=i?"0px":r.tagHeight}),0),r.tagTimer=setTimeout((()=>{r.style.display=i?"none":"block",r.style.transition="",r.style.overflow="",r.style.height="",r.status=r.tagHeight=null}),t),o&&o())}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=new URL(e),{searchParams:r}=o;for(const[e,n]of Object.entries(t))r.set(e,n);return n&&r.set("_wpnonce",_iro.nonce),o.toString()}function d(){}},5535:(e,t,n)=>{n.d(t,{CE:()=>T,MN:()=>L,LP:()=>k,PE:()=>x,bp:()=>I,RD:()=>S,D9:()=>_,H5:()=>j,po:()=>B,nO:()=>b,Gl:()=>M,DH:()=>C,j6:()=>E});var o=n(5132),r=n(1794),i=n(9586),s=n(647);const a=document.getElementById("main-container");function c(){document.body.classList.toggle("navOpen"),a.classList.toggle("open"),document.getElementById("mo-nav").classList.toggle("open"),document.querySelector(".openNav").classList.toggle("open"),document.querySelector(".site-header").classList.toggle("open")}function l(){c(),document.documentElement.style.overflow="unset",a.removeEventListener("click",l)}var d=n(98),u=n(1211);let m;function h(e,t,n,o,r,i,s){if(e){const t=e.trim().split(" "),n=o.indexOf(t[t.length-1]),r=s.indexOf(t[t.length-1]);o=(o=n<60?o.slice(0,80):o.slice(n-30,n+30)).replace(t[t.length-1],'<mark class="search-keyword"> '+t[t.length-1].toUpperCase()+" </mark>"),s=(s=r<60?s.slice(0,80):s.slice(r-30,r+30)).replace(t[t.length-1],'<mark class="search-keyword"> '+t[t.length-1].toUpperCase()+" </mark>")}return`<div class="ins-selectable ins-search-item" href="${t}"><header><i class="fa-solid ${n}" aria-hidden="true"></i>${o}<i class="fa-solid ${r}">${i}</i></header><p class="ins-search-preview">${s}</p></div>`}function g(e,t){let n="",o="",r="",i="",s="",a="";const c='<section class="ins-section"><header class="ins-section-header">',l="</section>",d="</header>",m=function(e,t){for(let e=0;e<t.length;e++)-1!=[".","?","*"].indexOf(t[e])&&(t=t.slice(0,e)+"\\"+t.slice(e),e++);return t=t.replace(t,"^(?=.*?"+t+").+$").replace(/\s/g,")(?=.*?"),e.filter((e=>Object.values(e).some((e=>new RegExp(t+"").test(e)))))}(e,t.trim());for(const e of m)switch(e.type){case"post":o+=h(t,e.link,"fa-inbox",e.title,"fa-comments",e.comments,e.text);break;case"tag":s+=h("",e.link,"fa-tag",e.title,"none","","");break;case"category":i+=h("",e.link,"fa-folder",e.title,"none","","");break;case"page":r+=h(t,e.link,"fa-file",e.title,"fa-comments",e.comments,e.text);break;case"comment":a+=h(t,e.link,"fa-comment",e.title,"none","",e.text)}o&&(n=n+c+(0,u.__)("文章")+d+o+l),r&&(n=n+c+(0,u.__)("页面")+d+r+l),i&&(n=n+c+(0,u.__)("分类")+d+i+l),s&&(n=n+c+(0,u.__)("标签")+d+s+l),a&&(n=n+c+(0,u.__)("评论")+d+a+l),document.getElementById("PostlistBox").innerHTML=n}function f(){const e=document.querySelector(".search_close"),t=document.getElementById("Ty");for(const n of document.getElementsByClassName("ins-selectable"))n.addEventListener("click",(()=>{t.href=n.getAttribute("href"),t.click(),e.click()}))}function p(){if(document.getElementsByClassName("js-toggle-search")[0].classList.toggle("is-active"),document.getElementsByClassName("js-search")[0].classList.toggle("is-visible"),document.documentElement.style.overflowY="hidden",_iro.live_search){m=[],function(e){const t=document.getElementById("search-input");null!=sessionStorage.getItem("search")?(m=JSON.parse(sessionStorage.getItem("search")),g(m,t.value),f()):fetch(e).then((async e=>{if(e.ok){const n=await e.text();""!=n&&(sessionStorage.setItem("search",n),m=JSON.parse(n),g(m,t.value),f())}else console.warn("HTTP "+e.status)})).catch((e=>console.warn(e)))}((0,r.bf)(_iro.api+"sakura/v1/cache_search/json"));let e=document.getElementById("search-input"),t=null;e.oninput=function(){null!=t&&clearTimeout(t),t=setTimeout((function(){g(m,e.value),f()}),250)}}}var y=n(4121),v=!0;function b(){if(!1===v){const e=document.querySelector(".pattern-center"),t=document.querySelector(".headertop-bar");e&&(e.classList.remove("pattern-center"),e.classList.add("pattern-center-sakura")),t&&(t.classList.remove("headertop-bar"),t.classList.add("headertop-bar-sakura"))}else{const e=document.querySelector(".pattern-center-sakura"),t=document.querySelector(".headertop-bar-sakura");e&&(e.classList.remove("pattern-center-sakura"),e.classList.add("pattern-center")),t&&(t.classList.remove("headertop-bar-sakura"),t.classList.add("headertop-bar"))}}async function w(e){let t;switch(v="white-bg"==e||"dark-bg"==e,b(),e){case"white-bg":if(_iro.site_bg_as_cover)return void(0,i.sk)(await(0,i.Rj)());t=_iro.skin_bg0;break;case"diy1-bg":t=_iro.skin_bg1;break;case"diy2-bg":t=_iro.skin_bg2;break;case"diy3-bg":t=_iro.skin_bg3;break;case"diy4-bg":t=_iro.skin_bg4}document.body.style.backgroundImage=t?`url(${t})`:""}function _(){const e=document.getElementById("bg-next"),t=document.getElementById("bg-pre");e&&(e.onclick=i.k),t&&(t.onclick=i.Tk)}function E(e){let t=document.getElementById("archives");if(null==t)return;let n=t.getElementsByClassName("al_mon");if(1==e)t.addEventListener("click",(e=>{e.target.classList.contains("al_mon")&&(e.preventDefault(),(0,r.wy)(e.target.nextElementSibling,500))})),(0,o.m)();else{let e=document.getElementById("al_expand_collapse");e.style.cursor="s-resize";for(let e=0;e<n.length;e++){let t=n[e],o=t.nextElementSibling.getElementsByTagName("li").length;t.style.cursor="s-resize",t.querySelector("#post-num").textContent=o}const o=t.getElementsByClassName("al_post_list"),i=o[0],a=()=>{(0,r.wy)(i,500,"show")};for(const e of o)(0,r.wy)(e,500,"hide",a);if(t.addEventListener("click",(e=>{e.target.classList.contains("al_mon")&&((0,r.wy)(e.target.nextElementSibling,500),e.preventDefault())})),!(0,s.t)()){for(let e=0;e<o.length;e++){let t=o[e];t.parentNode.addEventListener("mouseover",(()=>((0,r.wy)(t,500,"show"),!1)))}0;let t=0;e.addEventListener("click",(()=>{if(0==t){for(let e=0;e<o.length;e++){let t=o[e];(0,r.wy)(t,500,"show")}t++}else if(1==t){for(let e=0;e<o.length;e++){let t=o[e];(0,r.wy)(t,500,"hide")}t--}}))}}}function L(){const e=document.querySelector(".iconflat");e&&e.addEventListener("click",(e=>{e.stopPropagation(),document.body.classList.contains("navOpen")?l():(c(),document.documentElement.style.overflow="hidden",a.addEventListener("click",l))}))}function k(){document.body.classList.contains("navOpen")&&l()}function S(){if("auto"==_iro.windowheight){if(document.querySelector("h1.main-title")){const e=document.getElementById("centerbg"),t=document.getElementById("bgvideo");e&&(e.style.height="100vh"),t&&(t.style.minHeight="100vh")}}else{const e=document.querySelector(".headertop");e&&e.classList.add("headertop-bar")}}function x(){const e=document.querySelector(".headertop");if(e){let t=document.querySelector(".blank");if(document.querySelector(".main-title")){try{t.style.paddingTop="0px"}catch(e){}e.style.height="auto",e.style.display="",_iro.movies.live&&(0,d.Ce)()}else{try{t.style.paddingTop="75px"}catch(e){}e.style.height="0px",e.style.display="none",(0,d.MB)()}}}function T(){let e=document.querySelector(".comments-fold"),t=document.querySelector(".comments-main");null!=e&&(e.style.display="block",t.style.display="none",e.addEventListener("click",(()=>{(0,r.wy)(t,500,"show"),e.style.display="none"})));let n=document.getElementsByClassName("archives");if(n.length>0){for(let e=1;e<n.length;e++)n[e].style.display="none";n[0].style.display="";let e=document.getElementById("archives-temp").getElementsByTagName("h3");const t=e=>{e.preventDefault(),e.stopPropagation(),(0,r.wy)(e.target.nextElementSibling,300)};for(let n=0;n<e.length;n++)e[n].addEventListener("click",t)}for(const e of document.getElementsByClassName("js-toggle-search"))e.addEventListener("click",p);const o=document.querySelector(".search_close");o&&o.addEventListener("click",(()=>{let e=document.getElementsByClassName("js-search")[0];e.classList.contains("is-visible")&&(document.getElementsByClassName("js-toggle-search")[0].classList.toggle("is-active"),e.classList.toggle("is-visible"),document.documentElement.style.overflowY="unset")}));try{const e=document.getElementById("loading");e.addEventListener("click",(()=>{e.classList.add("hide"),e.classList.remove("show")}))}catch(e){}}function C(){const e=document.getElementById("show-nav");e&&e.addEventListener("click",(()=>{const t=document.querySelector(".site-top .lower nav");e.classList.contains("showNav")?(e.classList.remove("showNav"),e.classList.add("hideNav"),t&&t.classList.add("navbar")):(e.classList.remove("hideNav"),e.classList.add("showNav"),t&&t.classList.remove("navbar"))}))}function I(){const e=document.querySelectorAll(".menu-list li"),t=e=>{const t=e.target.id||e.target.parentElement.id;"dark-bg"==t?(0,y.B3)(!0):((0,y.Lg)(!0),w(t),localStorage.setItem("bgImgSetting",t)),M()};for(const n of e)n.addEventListener("click",t)}function j(){return w(localStorage.getItem("bgImgSetting")||"white-bg")}async function B(){_iro.site_bg_as_cover||_iro.land_at_home&&((0,i.U7)()||(0,i.sk)(await(0,i.Rj)()))}function M(){document.querySelector(".skin-menu").classList.remove("show"),setTimeout((()=>{const e=document.querySelector(".changeSkin-gear");null!=e&&(e.style.visibility="visible")}),300)}},9723:()=>{window.imgError=function(e,t){switch(t){case 1:e.src="https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/friendlink.jpg";break;case 2:e.src="https://sdn.geekzu.org/avatar/?s=80&d=mm&r=g";break;default:e.src="https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/image-404.png"}},window.cmt_showPopup=function(e){let t=e.querySelector("#thePopup");t.classList.add("show"),e.querySelector("input").onblur=()=>{t.classList.remove("show")}},window.coverVideo=function(){let e=document.getElementById("coverVideo"),t=document.getElementById("cv-pc");if(e.paused){e.play();try{t.innerHTML='<i class="fa-solid fa-pause"></i>'}catch{}}else{e.pause();try{t.innerHTML='<i class="fa-solid fa-play"></i>'}catch{}}},window.coverVideoMute=function(){const e=document.getElementById("coverVideo"),t=document.getElementById("cv-vc");e.muted?(e.muted=!1,t.innerHTML='<i class="fa-solid fa-volume-high"></i>'):(e.muted=!0,t.innerHTML='<i class="fa-solid fa-volume-off"></i>')},window.killCoverVideo=function(){var e=document.getElementById("coverVideo"),t=document.getElementById("cv-pc");if(e.paused);else{e.pause();try{t.innerHTML='<i class="fa-solid fa-play"></i>'}catch(e){}}},window.mail_me=function(){window.open("mailto:"+_iro.email_name+"@"+_iro.email_domain)},window.headertop_down=function(){let e=document.getElementById("content").getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:e,behavior:"smooth"})}},3197:(e,t,n)=>{var o=n(9586),r=n(4164),i=(n(9966),n(5132)),s=(n(9723),n(1794));var a=n(1280),c=n(7301),l=n(2425),d=n(253);n(2551),n(7693),n(8545),Math.max(499,491,487,503);const u={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var m={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};m.max=m.whitepoint[2].D65,m.rgb=function(e,t){t=t||m.whitepoint[2].E;var n,o,r,i=e[0]/t[0],s=e[1]/t[1],a=e[2]/t[2];return o=-.96924363628087*i+1.87596750150772*s+.041555057407175*a,r=.055630079696993*i+-.20397695888897*s+1.056971514242878*a,n=(n=3.240969941904521*i+-1.537383177570093*s+-.498610760293*a)>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1)),255*(r=Math.min(Math.max(0,r),1))]},u.xyz=function(e,t){var n=e[0]/255,o=e[1]/255,r=e[2]/255,i=.21263900587151*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.71516867876775*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)+.072192315360733*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92),s=.019330818715591*n+.11919477979462*o+.95053215224966*r;return[(.41239079926595*n+.35758433938387*o+.18048078840183*r)*(t=t||m.whitepoint[2].E)[0],i*t[1],s*t[2]]};function h(e,t){const n=document.createElement("canvas"),o=n.getContext("2d");return n.height=t,n.width=e,o}function g(e,t){return new OffscreenCanvas(e,t).getContext("2d")}m.lab=function(e){var t=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]};f.bind(void 0,h),f.bind(void 0,g);function f(e,t){const{naturalWidth:n,naturalHeight:o}=t,r=e(n,o);return r.drawImage(t,0,0,n,o),r.getImageData(0,0,n,o)}const p=y.bind(void 0,h);y.bind(void 0,g);function y(e,t,n){const{naturalWidth:o,naturalHeight:r}=t,i=o*r/n;if(i>1){const n=o/Math.sqrt(i),s=r/Math.sqrt(i),a=e(n,s);return a.drawImage(t,0,0,n,s),a.getImageData(0,0,n,s)}{const n=e(o,r);return n.drawImage(t,0,0),n.getImageData(0,0,o,r)}}var v=n(3492),b=n.n(v),w=n(4121);let _,E;async function L(e){try{const t=document.createElement("img");t.src=e,t.crossOrigin="anonymous",await function(e){return new Promise(((t,n)=>{e.complete?t():(e.addEventListener("load",(e=>{t(e)})),e.addEventListener("error",(e=>{n(e)})))}))}(t);const n=p(t,1e4),o=await _.postMessage({k:8,img:n}),{label:r,centroid:i}=o,s=Math.max(...r),a=r.findIndex((e=>e==s));E=i[a],k()}catch(e){console.error(e),S(getComputedStyle(document.documentElement).getPropertyValue("--theme-skin-matching"))}}function k(e){const t=u.hsl(E);(void 0===e?(0,w.N2)():e)&&(t[2]*=.5),S(function(e){let[t,n,o,r]=e;return r?"hsla("+t+"deg,"+n+"%,"+o+"%,"+r+")":"hsl("+t+"deg,"+n+"%,"+o+"%)"}(t))}function S(e){const t=document.querySelector("meta[name=theme-color]");t&&(t.content=e)}function x(){const{effect:e}=_iro;e&&("yuki"==e.type?n.e(7003).then(n.bind(n,7003)):n.e(8506).then(n.bind(n,8506))),async function(){const e=document.getElementById("particles-js-cfg");if(e)try{await n.e(689).then(n.t.bind(n,689,23)),particlesJS("particles-js",JSON.parse(e.innerHTML))}catch(e){console.error(e)}}()}u.hsl=function(e){var t,n,o=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(o,r,i),a=Math.max(o,r,i),c=a-s;return a===s?t=0:o===a?t=(r-i)/c:r===a?t=2+(i-o)/c:i===a&&(t=4+(o-r)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?c/(a+s):c/(2-a-s)),100*n]};var T=n(647),C=n(3022);var I=n(5535),j=n(5032),B=n(152),M=n(5267),A=n.n(M),q=n(98);(0,T.T)(),_iro.pjax=_iro.pjax&&(0,a.G)({Firefox:60,Edg:79,Chrome:66,OPR:53,Version:12}),_iro.pjax&&n.e(6001).then(n.bind(n,6001)).then((e=>{let{default:t}=e;return t()})),(0,I.j6)(),(0,r.Z)(),setTimeout((function(){!function(){let e=document.getElementById("secondary");if((0,T.t)())e&&e.remove();else{let t=document.querySelector(".show-hide");t&&t.addEventListener("click",(()=>{e&&e.classList.toggle("active")}))}}()}),100),window.addEventListener("hashchange",(()=>{const e=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(e))return;const t=document.getElementById(e);t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1),(0,w.q1)(),(0,s.Cd)((function(){_iro.float_player_on&&((0,T.t)()||Promise.all([n.e(7104),n.e(519)]).then(n.bind(n,7104)).then((e=>{let{aplayerInit:t}=e;return t()}))),_iro.land_at_home&&(0,j.Z)(),Promise.all([(0,I.po)(),(0,I.H5)()]).then((()=>{if((0,a.G)({Version:15})){_||(_=new(b())(new Worker(new URL(n.p+n.u(8777),n.b)))),document.addEventListener("coverBG_change",(e=>{let{detail:t}=e;return L(t)})),document.addEventListener("darkmode",(e=>{let{detail:t}=e;return k(t)}));const e=(0,o.U7)();e&&L(e)}})),(0,I.bp)();let e=document.querySelector("#changskin"),t=document.querySelector(".skin-menu #close-skinMenu");e&&e.addEventListener("click",(function(){document.querySelector(".skin-menu").classList.toggle("show")})),t&&t.addEventListener("click",I.Gl),function(){const e=document.querySelector(".site-header"),t=document.querySelector(".skin-menu"),n=document.querySelector("#changskin"),o=document.querySelector("#moblieGoTop"),r=t=>{t>0?e.classList.add("yya"):e.classList.remove("yya");const r=t>20?"scale(1)":"scale(0)";o.style.transform=r,n.style.transform=r};if((0,T.t)()){const e=()=>{const e=document.documentElement.scrollTop||document.body.scrollTop;t&&t.classList.remove("show"),r(e)};window.addEventListener("scroll",e)}else{const e=document.getElementById("bar"),n=n=>{const o=document.documentElement.scrollHeight||document.body.scrollHeight,r=Math.round(n/(o-window.innerHeight)*100);e.style.width=r+"%",t&&t.classList.remove("show")},o=()=>{const e=document.documentElement.scrollTop||document.body.scrollTop;n(e),r(e)};window.addEventListener("scroll",o)}}();const r=document.querySelector("#moblieGoTop");r&&(r.onclick=()=>{window.scrollTo({top:0,behavior:"smooth"})}),(0,d.A)(),(0,I.MN)(),(0,q.$Q)(),(0,c.Z)(),(0,I.D9)(),(0,C.T)(),(0,I.RD)(),(0,I.PE)(),(0,I.CE)(),(0,I.DH)(),(0,l.k)(),function(){const e=document.getElementById("preload");if(e){let t=!1;const n=()=>{if(!t){if(document.documentElement.style.overflowY="unset",0!=_iro.preload_blur)try{return void(e.animate([{filter:"blur(0px)",backdropFilter:"blur(10px)",opacity:1},{backdropFilter:"blur(0px)grayscale(0)",opacity:.1},{opacity:0,filter:"blur(100px)"}],{duration:_iro.preload_blur,fill:"forwards",easing:"ease"}).onfinish=()=>{e.remove()})}catch(e){console.warn(e)}e.classList.add("hide"),e.classList.remove("show"),t=!0,setTimeout((()=>e.remove()),233)}};if("complete"===document.readyState)return n();window.addEventListener("load",n,{once:!0}),setTimeout(n,3e3)}}(),(0,i.m)(),(0,B.Z)(),A().colorful=!0,A().shake=!1,document.body.addEventListener("input",A()),(0,d.O)(),(0,q.ze)(),(0,I.nO)(),x(),function(){const e="background: linear-gradient(to bottom right, #7b2a52, #36307f,#272151);color:#fff";console.log("%c Sakurairo %c https://github.com/mirai-mamori/Sakurairo",e,""),console.log("誰もが信じ崇めてる\nまさに最強で無敵のアイドル\n弱点なんて見当たらない\n一番星を宿している\n弱いとこなんて見せちゃダメダメ\n知りたくないとこは見せずに\n唯一無二じゃなくちゃイヤイヤ\nそれこそ%c本物のアイ%c\n%c ⌜IDOL⌟ ","color:#b424b8","",e)}()}))},253:(e,t,n)=>{n.d(t,{A:()=>u,O:()=>l});var o=n(1794),r=n(5132),i=n(1211),s=n(5080);let a;const c=(0,o.NB)((function(){const e=document.location.href,t=document.querySelector("#pagination a");t.classList.contains("loading")||(t.classList.add("loading"),t.innerText="",fetch(t.getAttribute("href")+"#main").then((async n=>{const o=await n.text();if(e!=document.location.href)return;const a=(new DOMParser).parseFromString(o,"text/html"),c=a.querySelectorAll("#main .post, #shuoshuo_post"),d=a.querySelector("#pagination a"),u=d&&d.innerText,m=d&&d.getAttribute("href"),h=document.getElementById("main");for(let e=0;e<c.length;e++)h.append(c[e]);const g=document.querySelector("#pagination a"),f=document.querySelector("#add_post span");if(g&&(g.classList.remove("loading"),g.innerText=u),f&&(f.classList.remove("loading"),f.innerText=""),(0,r.m)(),(0,s.Ui)(),l(),document.dispatchEvent(new CustomEvent("ajax_post_loaded")),null!=m){t.setAttribute("href",m);let e=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop;window.scrollTo({top:e+300,behavior:"smooth"})}else document.getElementById("pagination").innerHTML="<span>"+(0,i.__)("很高兴你翻到这里,但是真的没有了...")+"</span>"})))}));function l(){const e=document.querySelectorAll("article.post-list-thumb");if(e){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.target.classList.contains("post-list-show")?(e.target.style.willChange="auto",t.unobserve(e.target)):e.isIntersecting&&(e.target.classList.add("post-list-show"),e.target.style.willChange="auto",t.unobserve(e.target))}))}),{root:null,threshold:[.66]});for(const n of e)t.observe(n)}}function d(e){"pagination"==e.target.parentElement.id&&(e.preventDefault(),e.stopPropagation(),clearTimeout(a),c())}function u(){new IntersectionObserver((e=>{if(e[0].intersectionRatio<=0)return;const t=document.querySelector("#pagination a");if(t){const e=t.getAttribute("href"),n=document.getElementById("add_post_time");if(null!=e&&n){const e=n.title;"233"!=e&&(console.log("%c 自动加载时倒计时 %c","background:#9a9da2; color:#ffffff; border-radius:4px;","","",e),a=setTimeout(c,1e3*e))}}})).observe(document.querySelector(".footer-device")),document.body.removeEventListener("click",d),document.body.addEventListener("click",d)}},5080:(e,t,n)=>{n.d(t,{Ui:()=>v});n(2551),n(7693),n(8545);var o=n(4121),r=n(9966),i=n(4363);const s="1.29.0",a={autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",contenteditable:"false",design:"by Mashiro"};function c(e,t){if(!e.children[0])return;let n="text";const o=e.children[0].className.match(/language-(\w+)/i);o&&(n=o[1]),e.classList.add("highlight-wrap");for(const t in a)e.setAttribute(t,a[t]);t.setAttribute("data-rel",n.toUpperCase())}const l=e=>{const t=e.target;if(t.classList.contains("highlight-wrap")){if(t.classList.contains("code-block-fullscreen"))t.remove();else{const e=t.cloneNode(!0);e.classList.toggle("code-block-fullscreen"),document.body.append(e)}document.documentElement.classList.toggle("code-block-fullscreen-html-scroll")}};async function d(e,t){try{await async function(){try{window.hljs||(window.hljs=(await Promise.all([n.e(5280),n.e(619),n.e(5740),n.e(5206),n.e(3187),n.e(9945),n.e(9001),n.e(3906),n.e(714),n.e(362),n.e(3994)]).then(n.bind(n,4548))).default,await n.e(6773).then(n.t.bind(n,6773,23)))}catch(e){console.warn(e)}}();for(let e=0;e<t.length;e++)t[e].classList.contains("hljs")||hljs.highlightElement(t[e]);for(let n=0;n<e.length;n++)e[n].classList.contains("highlight-wrap")||c(e[n],t[n]);hljs.initLineNumbersOnLoad(),document.body.addEventListener("click",l)}catch(e){console.warn(e)}}const u=_iro.code_highlight_prism?.autoload_path||(0,i.i)("","prismjs",s);let m;const h=(()=>{const{light:e,dark:t}=_iro.code_highlight_prism?.theme||{},n={light:e||"themes/prism.min.css",dark:t||"themes/prism-tomorrow.min.css"};for(const e in n)n[e]=new URL(n[e],u).toString();return n})();function g(e){const t=e?h.dark:h.light;if(m){if(m.href!==t){const e=(0,r.loadCSS)(t);e.addEventListener("load",(()=>{m.remove(),m=e}))}}else m=(0,r.loadCSS)(t)}const f=e=>{g(e.detail)},p=()=>document.removeEventListener("darkmode",f);async function y(){try{window.Prism||(g((0,o.N2)()),document.addEventListener("darkmode",f),(0,r.loadCSS)(new URL("plugins/toolbar/prism-toolbar.min.css",u).toString()),(0,r.loadCSS)(new URL("plugins/previewers/prism-previewers.min.css",u).toString()),_iro.ext_shared_lib?await Promise.all([(0,i.V)("components/prism-core.min.js","prismjs",s),(0,i.V)("plugins/autoloader/prism-autoloader.min.js","prismjs",s),(0,i.V)("plugins/toolbar/prism-toolbar.min.js","prismjs",s),(0,i.V)("plugins/previewers/prism-previewers.min.js","prismjs",s),(0,i.V)("plugins/show-language/prism-show-language.min.js","prismjs",s)]):await n.e(5054).then(n.bind(n,5054)),Prism.plugins.autoloader.languages_path=new URL("components/",u).toString())}catch(e){console.warn(e)}}async function v(){const e=document.getElementsByTagName("pre"),t=document.querySelectorAll("pre code");if(!e.length)switch(_iro.code_highlight){case"hljs":return void document.body.removeEventListener("click",l);case"prism":return void p()}switch(_iro.code_highlight){case"hljs":await d(e,t);break;case"prism":await async function(e){try{let t=!1,o=!1,a=!1;_iro.code_highlight_prism.line_number_all&&(document.querySelector(".entry-content").classList.add("line-numbers"),t=!0);for(const n of e)n.parentElement.classList.contains("line-numbers")&&(t=!0),n.classList.contains("match-braces")&&(o=!0),(n.dataset.prompt||n.dataset.host||n.dataset.user)&&(a=!0);await Promise.all([y(),t&&((0,r.loadCSS)(new URL("plugins/line-numbers/prism-line-numbers.min.css",u).toString()),_iro.ext_shared_lib?(0,i.V)("plugins/line-numbers/prism-line-numbers.min.js","prismjs",s):n.e(6518).then(n.t.bind(n,6518,23))),o&&((0,r.loadCSS)(new URL("plugins/match-braces/prism-match-braces.min.css",u).toString()),_iro.ext_shared_lib?(0,i.V)("plugins/match-braces/prism-match-braces.min.js","prismjs",s):n.e(8270).then(n.t.bind(n,8270,23))),a&&((0,r.loadCSS)(new URL("plugins/command-line/prism-command-line.css",u).toString()),_iro.ext_shared_lib?(0,i.V)("plugins/command-line/prism-command-line.min.js","prismjs",s):n.e(3104).then(n.t.bind(n,3104,23)))]);for(const t of e)t.firstChild?.classList?.contains("token")||Prism.highlightElement(t);Prism.plugins.fileHighlight&&Prism.plugins.fileHighlight.highlight()}catch(e){console.warn(e)}}(t);break;case"custom":return;default:console.warn(`_iro.code_highlight这咋填的是个${_iro.code_highlight}啊🤔`)}if(t.length>0){for(let e=0;e<t.length;e++){const n=t[e].parentElement.querySelectorAll("a");for(const e of n)e.classList.contains("copy-code")&&e.remove();t[e].setAttribute("id","code-block-"+e),t[e].insertAdjacentHTML("afterend",'<a class="copy-code" href="javascript:" data-clipboard-target="#code-block-'+e+'" title="'+__("拷贝代码")+'"><i class="fa-regular fa-clipboard"></i>')}if(_iro.ext_shared_lib)await(0,i.V)("dist/clipboard.min.js","clipboard"),new ClipboardJS(".copy-code");else{new(0,(await n.e(9013).then(n.t.bind(n,9013,23))).default)(".copy-code")}}}},9966:function(e,t,n){var o;o=void 0!==n.g?n.g:this,t.loadCSS=function(e,t,n,r){var i,s=o.document,a=s.createElement("link");if(t)i=t;else{var c=(s.body||s.getElementsByTagName("head")[0]).childNodes;i=c[c.length-1]}var l=s.styleSheets;if(r)for(var d in r)r.hasOwnProperty(d)&&a.setAttribute(d,r[d]);a.rel="stylesheet",a.href=e,a.media="only x",function e(t){if(s.body)return t();setTimeout((function(){e(t)}))}((function(){i.parentNode.insertBefore(a,t?i:i.nextSibling)}));var u=function(e){for(var t=a.href,n=l.length;n--;)if(l[n].href===t)return e();setTimeout((function(){u(e)}))};function m(){a.addEventListener&&a.removeEventListener("load",m),a.media=n||"all"}return a.addEventListener&&a.addEventListener("load",m),a.onloadcssdefined=u,u(m),a}},5267:function(e){var t;t=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var o=document.createElement("canvas");o.width=window.innerWidth,o.height=window.innerHeight,o.style.cssText="position:fixed;top:0;left:0;pointer-events:none;z-index:999999",window.addEventListener("resize",(function(){o.width=window.innerWidth,o.height=window.innerHeight})),document.body.appendChild(o);var r=o.getContext("2d"),i=[],s=0,a=!1;function c(e,t){return Math.random()*(t-e)+e}function l(e){if(u.colorful){var t=c(0,360);return"hsla("+c(t-10,t+10)+", 100%, "+c(50,80)+"%, 1)"}return window.getComputedStyle(e).color}function d(e,t,n){return{x:e,y:t,alpha:1,color:n,velocity:{x:2*Math.random()-1,y:2*Math.random()-3.5}}}function u(){for(var e=function(){var e,t=document.activeElement;if("TEXTAREA"===t.tagName||"INPUT"===t.tagName&&"text"===t.getAttribute("type")){var o=n(1)(t,t.selectionEnd);return e=t.getBoundingClientRect(),{x:o.left+e.left,y:o.top+e.top,color:l(t)}}var r=window.getSelection();if(r.rangeCount){var i=r.getRangeAt(0),s=i.startContainer;return s.nodeType===document.TEXT_NODE&&(s=s.parentNode),{x:(e=i.getBoundingClientRect()).left,y:e.top,color:l(s)}}return{x:0,y:0,color:"transparent"}}(),t=5+Math.round(10*Math.random());t--;)i[s]=d(e.x,e.y,e.color),s=(s+1)%500;if(u.shake){var o=1+2*Math.random(),r=o*(Math.random()>.5?-1:1),c=o*(Math.random()>.5?-1:1);document.body.style.marginLeft=r+"px",document.body.style.marginTop=c+"px",setTimeout((function(){document.body.style.marginLeft="",document.body.style.marginTop=""}),75)}a||requestAnimationFrame(m)}function m(){a=!0,r.clearRect(0,0,o.width,o.height);for(var e=!1,t=o.getBoundingClientRect(),n=0;n<i.length;++n){var s=i[n];s.alpha<=.1||(s.velocity.y+=.075,s.x+=s.velocity.x,s.y+=s.velocity.y,s.alpha*=.96,r.globalAlpha=s.alpha,r.fillStyle=s.color,r.fillRect(Math.round(s.x-1.5)-t.left,Math.round(s.y-1.5)-t.top,3,3),e=!0)}e?requestAnimationFrame(m):a=!1}u.shake=!0,u.colorful=!1,e.exports=u},function(e,t){!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=null!=window.mozInnerScreenX;function o(e,o,r){var i=r&&r.debug||!1;if(i){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);var c=a.style,l=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",i||(c.visibility="hidden"),t.forEach((function(e){c[e]=l[e]})),n?e.scrollHeight>parseInt(l.height)&&(c.overflowY="scroll"):c.overflow="hidden",a.textContent=e.value.substring(0,o),"INPUT"===e.nodeName&&(a.textContent=a.textContent.replace(/\s/g," "));var d=document.createElement("span");d.textContent=e.value.substring(o)||".",a.appendChild(d);var u={top:d.offsetTop+parseInt(l.borderTopWidth),left:d.offsetLeft+parseInt(l.borderLeftWidth)};return i?d.style.backgroundColor="#aaa":document.body.removeChild(a),u}void 0!==e&&void 0!==e.exports?e.exports=o:window.getCaretCoordinates=o}()}])},e.exports=t()},3492:e=>{var t=0;function n(e,t){var n=t.data;if(Array.isArray(n)&&!(n.length<2)){var o=n[0],r=n[1],i=n[2],s=e._callbacks[o];s&&(delete e._callbacks[o],s(r,i))}}function o(e){var t=this;t._worker=e,t._callbacks={},e.addEventListener("message",(function(e){n(t,e)}))}o.prototype.postMessage=function(e){var o=this,r=t++,i=[r,e];return new Promise((function(e,t){if(o._callbacks[r]=function(n,o){if(n)return t(new Error(n.message));e(o)},void 0!==o._worker.controller){var s=new MessageChannel;s.port1.onmessage=function(e){n(o,e)},o._worker.controller.postMessage(i,[s.port2])}else o._worker.postMessage(i)}))},e.exports=o}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,e=[],a.O=(t,n,o,r)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,o,r]=e[d],s=!0,c=0;c<n.length;c++)(!1&r||i>=r)&&Object.keys(a.O).every((e=>a.O[e](n[c])))?n.splice(c--,1):(s=!1,r<i&&(i=r));if(s){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);a.r(r);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&o&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,a.d(r,i),r},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>(({173:"lg-3",558:"lg-8",2018:"lg-2",2453:"lg-11",2478:"lg-6",3321:"lg-12",3388:"lg-1",3637:"lg-5",3730:"lg-9",3963:"lg-0",4441:"lg-10",6440:"lg-4",9868:"lg-7"}[e]||e)+".js"),a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},r="sakurairo-scripts:",a.l=(e,t,n,i)=>{if(o[e])o[e].push(t);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){s=u;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+n),s.src=e),o[e]=[t];var m=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var r=o[e];if(delete o[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(n))),t)return t(n)},h=setTimeout(m.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=m.bind(null,s.onerror),s.onload=m.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,n)=>{var o=a.miniCssF(e),r=a.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o<n.length;o++){var r=(s=n[o]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===e||r===t))return s}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var s;if((r=(s=i[o]).getAttribute("data-href"))===e||r===t)return s}})(o,r))return t();((e,t,n,o,r)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)o();else{var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,i.parentNode&&i.parentNode.removeChild(i),r(c)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,r,null,t,n)})),t={2143:0};a.f.miniCss=(n,o)=>{t[n]?o.push(t[n]):0!==t[n]&&{519:1,9088:1}[n]&&o.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{a.b=document.baseURI||self.location.href;var e={2143:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(519|9088)$/.test(t))e[t]=0;else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,o[1](s)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[i,s,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(c)var d=c(a)}for(t&&t(n);l<i.length;l++)r=i[l],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(d)},n=globalThis.webpackChunksakurairo_scripts=globalThis.webpackChunksakurairo_scripts||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c=a.O(void 0,[1920],(()=>a(3197)));c=a.O(c)})();
- //# sourceMappingURL=app.js.map
|