mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
62 lines
308 KiB
JavaScript
62 lines
308 KiB
JavaScript
import{d as defineAsyncComponent,r as ref,a as readonly,b as reactive,c as defineComponent,i as isString$1,e as isArray,f as dedupeHead,g as resolveLocalePath,o as onMounted,h as computed,j as h$3,k as isLinkHttp,l as removeLeadingSlash,m as inject,n as getCurrentInstance,p as isPlainObject,q as camelize,s as capitalize,t as isFunction$1,u as unref,v as nextTick,w as isRef,x as watch,y as getCurrentScope,z as onScopeDispose,A as shallowRef,B as watchEffect,C as useRoute,D as useRouter,R as RouterLink,T as Transition,E as onBeforeUnmount,F as createBaseVNode,G as onUnmounted,H as openBlock,I as createElementBlock,J as toDisplayString,K as Fragment,L as renderList,M as createCommentVNode,N as normalizeStyle,O as createVNode,P as normalizeClass,Q as withDirectives,S as vModelText,U as vShow,V as createTextVNode,W as createBlock,X as vModelDynamic,Y as resolveComponent,Z as provide,_ as isLinkMailto,$ as toRef,a0 as isLinkTel,a1 as isLinkExternal,a2 as ensureEndingSlash,a3 as TransitionGroup,a4 as removeEndingSlash,a5 as useLink,a6 as createSSRApp,a7 as RouterView,a8 as createRouter,a9 as START_LOCATION_NORMALIZED,aa as createWebHistory}from"./framework-2050cf2c.js";const scriptRel="modulepreload",assetsURL=function(b){return"/"+b},seen={},__vitePreload=function($,j,U){if(!j||j.length===0)return $();const Bn=document.getElementsByTagName("link");return Promise.all(j.map(Fn=>{if(Fn=assetsURL(Fn),Fn in seen)return;seen[Fn]=!0;const qn=Fn.endsWith(".css"),Wn=qn?'[rel="stylesheet"]':"";if(!!U)for(let Yn=Bn.length-1;Yn>=0;Yn--){const Zn=Bn[Yn];if(Zn.href===Fn&&(!qn||Zn.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${Fn}"]${Wn}`))return;const Qn=document.createElement("link");if(Qn.rel=qn?"stylesheet":scriptRel,qn||(Qn.as="script",Qn.crossOrigin=""),Qn.href=Fn,document.head.appendChild(Qn),qn)return new Promise((Yn,Zn)=>{Qn.addEventListener("load",Yn),Qn.addEventListener("error",()=>Zn(new Error(`Unable to preload CSS for ${Fn}`)))})})).then(()=>$())},pagesData$1={"v-8daa1a0e":()=>__vitePreload(()=>import("./index.html-b78e8cf1.js"),[]).then(({data:b})=>b),"v-67f865c9":()=>__vitePreload(()=>import("./community.html-4259ed5c.js"),[]).then(({data:b})=>b),"v-c360777a":()=>__vitePreload(()=>import("./markmap.html-0f0f34c6.js"),[]).then(({data:b})=>b),"v-590a42d9":()=>__vitePreload(()=>import("./project.html-ee74980c.js"),[]).then(({data:b})=>b),"v-96f5eae0":()=>__vitePreload(()=>import("./quick-start.html-7ec59c0d.js"),[]).then(({data:b})=>b),"v-35ed7d28":()=>__vitePreload(()=>import("./star-request.html-0a6171e5.js"),[]).then(({data:b})=>b),"v-4f87b30d":()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-cd4faf5f.js"),[]).then(({data:b})=>b),"v-5b94d45f":()=>__vitePreload(()=>import("./HttpRequestException.html-eec3d65c.js"),[]).then(({data:b})=>b),"v-0288c929":()=>__vitePreload(()=>import("./artifact-rating-rules.html-6f9d5a47.js"),[]).then(({data:b})=>b),"v-9a0eaba6":()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-f336e33e.js"),[]).then(({data:b})=>b),"v-179f15e2":()=>__vitePreload(()=>import("./how-to.html-eb31d630.js"),[]).then(({data:b})=>b),"v-401b4afa":()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-0cc42bbd.js"),[]).then(({data:b})=>b),"v-289a9e83":()=>__vitePreload(()=>import("./why.html-777696e0.js"),[]).then(({data:b})=>b),"v-28eb1946":()=>__vitePreload(()=>import("./symposium1.html-97fedc99.js"),[]).then(({data:b})=>b),"v-2a9ff1e5":()=>__vitePreload(()=>import("./symposium2.html-86329c7b.js"),[]).then(({data:b})=>b),"v-2d0a870d":()=>__vitePreload(()=>import("./index.html-59219388.js"),[]).then(({data:b})=>b),"v-c4a44b52":()=>__vitePreload(()=>import("./markmap.html-f4ccea80.js"),[]).then(({data:b})=>b),"v-586858ed":()=>__vitePreload(()=>import("./project.html-d154f424.js"),[]).then(({data:b})=>b),"v-0c01f6a4":()=>__vitePreload(()=>import("./quick-start.html-f867c09e.js"),[]).then(({data:b})=>b),"v-35380e8e":()=>__vitePreload(()=>import("./index.html-60c96614.js"),[]).then(({data:b})=>b),"v-73139ec8":()=>__vitePreload(()=>import("./achievements.html-45b07921.js"),[]).then(({data:b})=>b),"v-1c93fc72":()=>__vitePreload(()=>import("./character-data.html-82865b71.js"),[]).then(({data:b})=>b),"v-e37f5fa8":()=>__vitePreload(()=>import("./character-wiki.html-8f26f5ab.js"),[]).then(({data:b})=>b),"v-646944b6":()=>__vitePreload(()=>import("./daily-notes.html-29eff528.js"),[]).then(({data:b})=>b),"v-1ae10847":()=>__vitePreload(()=>import("./develop-plan.html-5365831e.js"),[]).then(({data:b})=>b),"v-923d01d2":()=>__vitePreload(()=>import("./game-launcher.html-08956561.js"),[]).then(({data:b})=>b),"v-6de46920":()=>__vitePreload(()=>import("./hutao-API.html-f638b185.js"),[]).then(({data:b})=>b),"v-0c385e36":()=>__vitePreload(()=>import("./hutao-settings.html-f04f126d.js"),[]).then(({data:b})=>b),"v-3e40bb9d":()=>__vitePreload(()=>import("./mhy-account-switch.html-b6e2ae33.js"),[]).then(({data:b})=>b),"v-7070f771":()=>__vitePreload(()=>import("./weapon-wiki.html-d9fd70e8.js"),[]).then(({data:b})=>b),"v-f4f67790":()=>__vitePreload(()=>import("./wish-export.html-9a746c0c.js"),[]).then(({data:b})=>b),"v-39f4c4da":()=>__vitePreload(()=>import("./bug-report.html-b552c51c.js"),[]).then(({data:b})=>b),"v-6730cc6c":()=>__vitePreload(()=>import("./privacy-notice.html-63f617f2.js"),[]).then(({data:b})=>b),"v-d670f89a":()=>__vitePreload(()=>import("./tos.html-5b085922.js"),[]).then(({data:b})=>b),"v-39caee21":()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-8d0fa850.js"),[]).then(({data:b})=>b),"v-28cb28cb":()=>__vitePreload(()=>import("./HttpRequestException.html-30830cd8.js"),[]).then(({data:b})=>b),"v-47c5fb86":()=>__vitePreload(()=>import("./artifact-rating-rules.html-2550311a.js"),[]).then(({data:b})=>b),"v-eab988ce":()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-a069d9e6.js"),[]).then(({data:b})=>b),"v-5a1bb67b":()=>__vitePreload(()=>import("./how-to.html-437f0776.js"),[]).then(({data:b})=>b),"v-0744e30e":()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-b6dfe79e.js"),[]).then(({data:b})=>b),"v-27f8b497":()=>__vitePreload(()=>import("./why.html-6c589158.js"),[]).then(({data:b})=>b),"v-fc43fa9c":()=>__vitePreload(()=>import("./symposium1.html-b33e3d7f.js"),[]).then(({data:b})=>b),"v-f8da495e":()=>__vitePreload(()=>import("./symposium2.html-b5df9842.js"),[]).then(({data:b})=>b),"v-30f089b6":()=>__vitePreload(()=>import("./index.html-c8b6cf82.js"),[]).then(({data:b})=>b),"v-699a13b0":()=>__vitePreload(()=>import("./achievements.html-27f51021.js"),[]).then(({data:b})=>b),"v-f3692af4":()=>__vitePreload(()=>import("./character-data.html-1c1cfa19.js"),[]).then(({data:b})=>b),"v-10108380":()=>__vitePreload(()=>import("./character-wiki.html-509d6ec0.js"),[]).then(({data:b})=>b),"v-28566fde":()=>__vitePreload(()=>import("./daily-notes.html-010f2176.js"),[]).then(({data:b})=>b),"v-83f6294a":()=>__vitePreload(()=>import("./develop-plan.html-c6ac2429.js"),[]).then(({data:b})=>b),"v-7839fe83":()=>__vitePreload(()=>import("./game-launcher.html-d367bfe6.js"),[]).then(({data:b})=>b),"v-0106e0dc":()=>__vitePreload(()=>import("./hutao-API.html-d894b7e4.js"),[]).then(({data:b})=>b),"v-639b3ef9":()=>__vitePreload(()=>import("./hutao-settings.html-ecc905c0.js"),[]).then(({data:b})=>b),"v-03aaffb1":()=>__vitePreload(()=>import("./mhy-account-switch.html-d713d3a7.js"),[]).then(({data:b})=>b),"v-e30b3c46":()=>__vitePreload(()=>import("./weapon-wiki.html-39644c93.js"),[]).then(({data:b})=>b),"v-b8e3a2b8":()=>__vitePreload(()=>import("./wish-export.html-a631d689.js"),[]).then(({data:b})=>b),"v-45ceb024":()=>__vitePreload(()=>import("./bug-report.html-f69951f4.js"),[]).then(({data:b})=>b),"v-b4085a44":()=>__vitePreload(()=>import("./privacy-notice.html-7a160e19.js"),[]).then(({data:b})=>b),"v-b1c7a1c2":()=>__vitePreload(()=>import("./tos.html-6a9f1d6e.js"),[]).then(({data:b})=>b),"v-3706649a":()=>__vitePreload(()=>import("./404.html-32d5d192.js"),[]).then(({data:b})=>b),"v-74379e72":()=>__vitePreload(()=>import("./index.html-79b9b84e.js"),[]).then(({data:b})=>b),"v-437b37b6":()=>__vitePreload(()=>import("./index.html-00b54548.js"),[]).then(({data:b})=>b),"v-b573819c":()=>__vitePreload(()=>import("./index.html-534cbddc.js"),[]).then(({data:b})=>b),"v-07470886":()=>__vitePreload(()=>import("./index.html-4f0d6788.js"),[]).then(({data:b})=>b),"v-ca0fb86c":()=>__vitePreload(()=>import("./index.html-318a4b43.js"),[]).then(({data:b})=>b),"v-a4f9d2c4":()=>__vitePreload(()=>import("./index.html-2bc60034.js"),[]).then(({data:b})=>b)},siteData$1=JSON.parse('{"base":"/","lang":"en-US","title":"","description":"","head":[["script",{"async":"","defer":"","data-website-id":"f586534f-1741-450e-a0f4-3c0189f993c9","src":"https://umami.irain.in/umami.js"},"\\n "],["link",{"rel":"icon","href":"/favicon.ico"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-512.png","type":"image/png","sizes":"512x512"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-192.png","type":"image/png","sizes":"192x192"}],["link",{"rel":"manifest","href":"/manifest.webmanifest","crossorigin":"use-credentials"}],["meta",{"name":"theme-color","content":"#f26d6d"}],["link",{"rel":"apple-touch-icon","href":"/favicon.ico"}],["meta",{"name":"apple-mobile-web-app-capable","content":"yes"}],["meta",{"name":"apple-mobile-web-app-status-bar-style","content":"black"}],["meta",{"name":"msapplication-TileImage","content":"/favicon.ico"}],["meta",{"name":"msapplication-TileColor","content":"#ffffff"}],["meta",{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}]],"locales":{"/":{"lang":"zh-CN","title":"胡桃工具箱","description":"多功能的原神工具箱"},"/en/":{"lang":"en-US","title":"Snap Hutao","description":"Super utilitarian Genshin Impact Tool"}}}'),pagesComponents={"v-8daa1a0e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c0b215e3.js"),["assets/index.html-c0b215e3.js","assets/framework-2050cf2c.js"])),"v-67f865c9":defineAsyncComponent(()=>__vitePreload(()=>import("./community.html-b313a1f6.js"),["assets/community.html-b313a1f6.js","assets/framework-2050cf2c.js"])),"v-c360777a":defineAsyncComponent(()=>__vitePreload(()=>import("./markmap.html-35e571d4.js"),["assets/markmap.html-35e571d4.js","assets/framework-2050cf2c.js"])),"v-590a42d9":defineAsyncComponent(()=>__vitePreload(()=>import("./project.html-3e4ddd91.js"),["assets/project.html-3e4ddd91.js","assets/framework-2050cf2c.js"])),"v-96f5eae0":defineAsyncComponent(()=>__vitePreload(()=>import("./quick-start.html-6eb6aa21.js"),["assets/quick-start.html-6eb6aa21.js","assets/framework-2050cf2c.js"])),"v-35ed7d28":defineAsyncComponent(()=>__vitePreload(()=>import("./star-request.html-a111ddc0.js"),["assets/star-request.html-a111ddc0.js","assets/framework-2050cf2c.js"])),"v-4f87b30d":defineAsyncComponent(()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-abf4ddb4.js"),["assets/Gacha-system-and-export-principal.html-abf4ddb4.js","assets/framework-2050cf2c.js"])),"v-5b94d45f":defineAsyncComponent(()=>__vitePreload(()=>import("./HttpRequestException.html-2143ce68.js"),["assets/HttpRequestException.html-2143ce68.js","assets/framework-2050cf2c.js"])),"v-0288c929":defineAsyncComponent(()=>__vitePreload(()=>import("./artifact-rating-rules.html-2ad9f1be.js"),["assets/artifact-rating-rules.html-2ad9f1be.js","assets/framework-2050cf2c.js"])),"v-9a0eaba6":defineAsyncComponent(()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-a02de77c.js"),["assets/get-stoken-cookie-from-the-third-party.html-a02de77c.js","assets/framework-2050cf2c.js"])),"v-179f15e2":defineAsyncComponent(()=>__vitePreload(()=>import("./how-to.html-702e4cb9.js"),["assets/how-to.html-702e4cb9.js","assets/framework-2050cf2c.js"])),"v-401b4afa":defineAsyncComponent(()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-1202309e.js"),["assets/mihoyo-risk-tip.html-1202309e.js","assets/framework-2050cf2c.js"])),"v-289a9e83":defineAsyncComponent(()=>__vitePreload(()=>import("./why.html-a6afd3ae.js"),["assets/why.html-a6afd3ae.js","assets/framework-2050cf2c.js"])),"v-28eb1946":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium1.html-3ced5dc3.js"),["assets/symposium1.html-3ced5dc3.js","assets/framework-2050cf2c.js"])),"v-2a9ff1e5":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium2.html-bad37c5f.js"),["assets/symposium2.html-bad37c5f.js","assets/framework-2050cf2c.js"])),"v-2d0a870d":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-12187913.js"),["assets/index.html-12187913.js","assets/framework-2050cf2c.js"])),"v-c4a44b52":defineAsyncComponent(()=>__vitePreload(()=>import("./markmap.html-c8233cb5.js"),["assets/markmap.html-c8233cb5.js","assets/framework-2050cf2c.js"])),"v-586858ed":defineAsyncComponent(()=>__vitePreload(()=>import("./project.html-2471e533.js"),["assets/project.html-2471e533.js","assets/framework-2050cf2c.js"])),"v-0c01f6a4":defineAsyncComponent(()=>__vitePreload(()=>import("./quick-start.html-90efb2be.js"),["assets/quick-start.html-90efb2be.js","assets/framework-2050cf2c.js"])),"v-35380e8e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c412ed13.js"),["assets/index.html-c412ed13.js","assets/framework-2050cf2c.js"])),"v-73139ec8":defineAsyncComponent(()=>__vitePreload(()=>import("./achievements.html-d587d759.js"),["assets/achievements.html-d587d759.js","assets/framework-2050cf2c.js"])),"v-1c93fc72":defineAsyncComponent(()=>__vitePreload(()=>import("./character-data.html-d4e82894.js"),["assets/character-data.html-d4e82894.js","assets/framework-2050cf2c.js"])),"v-e37f5fa8":defineAsyncComponent(()=>__vitePreload(()=>import("./character-wiki.html-c3f4fc0d.js"),["assets/character-wiki.html-c3f4fc0d.js","assets/framework-2050cf2c.js"])),"v-646944b6":defineAsyncComponent(()=>__vitePreload(()=>import("./daily-notes.html-0811c141.js"),["assets/daily-notes.html-0811c141.js","assets/framework-2050cf2c.js"])),"v-1ae10847":defineAsyncComponent(()=>__vitePreload(()=>import("./develop-plan.html-304a21a8.js"),["assets/develop-plan.html-304a21a8.js","assets/framework-2050cf2c.js"])),"v-923d01d2":defineAsyncComponent(()=>__vitePreload(()=>import("./game-launcher.html-50a156eb.js"),["assets/game-launcher.html-50a156eb.js","assets/framework-2050cf2c.js"])),"v-6de46920":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-API.html-bf294432.js"),["assets/hutao-API.html-bf294432.js","assets/framework-2050cf2c.js"])),"v-0c385e36":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-settings.html-3f7f8a22.js"),["assets/hutao-settings.html-3f7f8a22.js","assets/framework-2050cf2c.js"])),"v-3e40bb9d":defineAsyncComponent(()=>__vitePreload(()=>import("./mhy-account-switch.html-1d2b5649.js"),["assets/mhy-account-switch.html-1d2b5649.js","assets/framework-2050cf2c.js"])),"v-7070f771":defineAsyncComponent(()=>__vitePreload(()=>import("./weapon-wiki.html-33bb156f.js"),["assets/weapon-wiki.html-33bb156f.js","assets/framework-2050cf2c.js"])),"v-f4f67790":defineAsyncComponent(()=>__vitePreload(()=>import("./wish-export.html-77d78b46.js"),["assets/wish-export.html-77d78b46.js","assets/framework-2050cf2c.js"])),"v-39f4c4da":defineAsyncComponent(()=>__vitePreload(()=>import("./bug-report.html-665f088a.js"),["assets/bug-report.html-665f088a.js","assets/framework-2050cf2c.js"])),"v-6730cc6c":defineAsyncComponent(()=>__vitePreload(()=>import("./privacy-notice.html-6cb5a329.js"),["assets/privacy-notice.html-6cb5a329.js","assets/framework-2050cf2c.js"])),"v-d670f89a":defineAsyncComponent(()=>__vitePreload(()=>import("./tos.html-00997ad6.js"),["assets/tos.html-00997ad6.js","assets/framework-2050cf2c.js"])),"v-39caee21":defineAsyncComponent(()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-3d8f95e8.js"),["assets/Gacha-system-and-export-principal.html-3d8f95e8.js","assets/framework-2050cf2c.js"])),"v-28cb28cb":defineAsyncComponent(()=>__vitePreload(()=>import("./HttpRequestException.html-a0acbb00.js"),["assets/HttpRequestException.html-a0acbb00.js","assets/framework-2050cf2c.js"])),"v-47c5fb86":defineAsyncComponent(()=>__vitePreload(()=>import("./artifact-rating-rules.html-322d1054.js"),["assets/artifact-rating-rules.html-322d1054.js","assets/framework-2050cf2c.js"])),"v-eab988ce":defineAsyncComponent(()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-c037f77d.js"),["assets/get-stoken-cookie-from-the-third-party.html-c037f77d.js","assets/framework-2050cf2c.js"])),"v-5a1bb67b":defineAsyncComponent(()=>__vitePreload(()=>import("./how-to.html-8debd350.js"),["assets/how-to.html-8debd350.js","assets/framework-2050cf2c.js"])),"v-0744e30e":defineAsyncComponent(()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-75cfdf1a.js"),["assets/mihoyo-risk-tip.html-75cfdf1a.js","assets/framework-2050cf2c.js"])),"v-27f8b497":defineAsyncComponent(()=>__vitePreload(()=>import("./why.html-7f1768ad.js"),["assets/why.html-7f1768ad.js","assets/framework-2050cf2c.js"])),"v-fc43fa9c":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium1.html-fa167b8f.js"),["assets/symposium1.html-fa167b8f.js","assets/framework-2050cf2c.js"])),"v-f8da495e":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium2.html-fb7d6fad.js"),["assets/symposium2.html-fb7d6fad.js","assets/framework-2050cf2c.js"])),"v-30f089b6":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-19d09097.js"),["assets/index.html-19d09097.js","assets/framework-2050cf2c.js"])),"v-699a13b0":defineAsyncComponent(()=>__vitePreload(()=>import("./achievements.html-5cf193bb.js"),["assets/achievements.html-5cf193bb.js","assets/framework-2050cf2c.js"])),"v-f3692af4":defineAsyncComponent(()=>__vitePreload(()=>import("./character-data.html-475bdb70.js"),["assets/character-data.html-475bdb70.js","assets/framework-2050cf2c.js"])),"v-10108380":defineAsyncComponent(()=>__vitePreload(()=>import("./character-wiki.html-0fe53523.js"),["assets/character-wiki.html-0fe53523.js","assets/framework-2050cf2c.js"])),"v-28566fde":defineAsyncComponent(()=>__vitePreload(()=>import("./daily-notes.html-7e7d6130.js"),["assets/daily-notes.html-7e7d6130.js","assets/framework-2050cf2c.js"])),"v-83f6294a":defineAsyncComponent(()=>__vitePreload(()=>import("./develop-plan.html-03e71559.js"),["assets/develop-plan.html-03e71559.js","assets/framework-2050cf2c.js"])),"v-7839fe83":defineAsyncComponent(()=>__vitePreload(()=>import("./game-launcher.html-29b84590.js"),["assets/game-launcher.html-29b84590.js","assets/framework-2050cf2c.js"])),"v-0106e0dc":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-API.html-cec29434.js"),["assets/hutao-API.html-cec29434.js","assets/framework-2050cf2c.js"])),"v-639b3ef9":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-settings.html-4c52a2e7.js"),["assets/hutao-settings.html-4c52a2e7.js","assets/framework-2050cf2c.js"])),"v-03aaffb1":defineAsyncComponent(()=>__vitePreload(()=>import("./mhy-account-switch.html-e9ad7c01.js"),["assets/mhy-account-switch.html-e9ad7c01.js","assets/framework-2050cf2c.js"])),"v-e30b3c46":defineAsyncComponent(()=>__vitePreload(()=>import("./weapon-wiki.html-041f1bea.js"),["assets/weapon-wiki.html-041f1bea.js","assets/framework-2050cf2c.js"])),"v-b8e3a2b8":defineAsyncComponent(()=>__vitePreload(()=>import("./wish-export.html-453bb400.js"),["assets/wish-export.html-453bb400.js","assets/framework-2050cf2c.js"])),"v-45ceb024":defineAsyncComponent(()=>__vitePreload(()=>import("./bug-report.html-003189b0.js"),["assets/bug-report.html-003189b0.js","assets/framework-2050cf2c.js"])),"v-b4085a44":defineAsyncComponent(()=>__vitePreload(()=>import("./privacy-notice.html-c8d33cc7.js"),["assets/privacy-notice.html-c8d33cc7.js","assets/framework-2050cf2c.js"])),"v-b1c7a1c2":defineAsyncComponent(()=>__vitePreload(()=>import("./tos.html-830e1c50.js"),["assets/tos.html-830e1c50.js","assets/framework-2050cf2c.js"])),"v-3706649a":defineAsyncComponent(()=>__vitePreload(()=>import("./404.html-0864d709.js"),["assets/404.html-0864d709.js","assets/framework-2050cf2c.js"])),"v-74379e72":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-6108273b.js"),["assets/index.html-6108273b.js","assets/framework-2050cf2c.js"])),"v-437b37b6":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-a508a192.js"),["assets/index.html-a508a192.js","assets/framework-2050cf2c.js"])),"v-b573819c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-de9c2355.js"),["assets/index.html-de9c2355.js","assets/framework-2050cf2c.js"])),"v-07470886":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-31b9fd98.js"),["assets/index.html-31b9fd98.js","assets/framework-2050cf2c.js"])),"v-ca0fb86c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-5eeca8dc.js"),["assets/index.html-5eeca8dc.js","assets/framework-2050cf2c.js"])),"v-a4f9d2c4":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-cc7a9c8b.js"),["assets/index.html-cc7a9c8b.js","assets/framework-2050cf2c.js"]))};var layoutsSymbol=Symbol(""),pagesData=ref(pagesData$1),pageDataEmpty=readonly({key:"",path:"",title:"",lang:"",frontmatter:{},headers:[]}),pageData=ref(pageDataEmpty),usePageData=()=>pageData,pageFrontmatterSymbol=Symbol(""),usePageFrontmatter=()=>{const b=inject(pageFrontmatterSymbol);if(!b)throw new Error("usePageFrontmatter() is called without provider.");return b},pageHeadSymbol=Symbol(""),usePageHead=()=>{const b=inject(pageHeadSymbol);if(!b)throw new Error("usePageHead() is called without provider.");return b},pageHeadTitleSymbol=Symbol(""),pageLangSymbol=Symbol(""),usePageLang=()=>{const b=inject(pageLangSymbol);if(!b)throw new Error("usePageLang() is called without provider.");return b},pageLayoutSymbol=Symbol(""),usePageLayout=()=>{const b=inject(pageLayoutSymbol);if(!b)throw new Error("usePageLayout() is called without provider.");return b},routeLocaleSymbol=Symbol(""),useRouteLocale=()=>{const b=inject(routeLocaleSymbol);if(!b)throw new Error("useRouteLocale() is called without provider.");return b},siteData=ref(siteData$1),useSiteData=()=>siteData,siteLocaleDataSymbol=Symbol(""),useSiteLocaleData=()=>{const b=inject(siteLocaleDataSymbol);if(!b)throw new Error("useSiteLocaleData() is called without provider.");return b},updateHeadSymbol=Symbol(""),LAYOUT_NAME_DEFAULT="Layout",LAYOUT_NAME_NOT_FOUND="NotFound",resolvers=reactive({resolveLayouts:b=>b.reduce(($,j)=>({...$,...j.layouts}),{}),resolvePageData:async b=>{const $=pagesData.value[b];return await($==null?void 0:$())??pageDataEmpty},resolvePageFrontmatter:b=>b.frontmatter,resolvePageHead:(b,$,j)=>{const U=isString$1($.description)?$.description:j.description,Bn=[...isArray($.head)?$.head:[],...j.head,["title",{},b],["meta",{name:"description",content:U}]];return dedupeHead(Bn)},resolvePageHeadTitle:(b,$)=>[b.title,$.title].filter(j=>!!j).join(" | "),resolvePageLang:b=>b.lang||"en",resolvePageLayout:(b,$)=>{let j;if(b.path){const U=b.frontmatter.layout;isString$1(U)?j=U:j=LAYOUT_NAME_DEFAULT}else j=LAYOUT_NAME_NOT_FOUND;return $[j]},resolveRouteLocale:(b,$)=>resolveLocalePath(b,$),resolveSiteLocaleData:(b,$)=>({...b,...b.locales[$]})}),ClientOnly=defineComponent({name:"ClientOnly",setup(b,$){const j=ref(!1);return onMounted(()=>{j.value=!0}),()=>{var U,Bn;return j.value?(Bn=(U=$.slots).default)==null?void 0:Bn.call(U):null}}}),Content=defineComponent({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup(b){const $=usePageData(),j=computed(()=>pagesComponents[b.pageKey||$.value.key]);return()=>j.value?h$3(j.value):h$3("div","404 Not Found")}}),defineClientConfig=(b={})=>b,withBase=b=>isLinkHttp(b)?b:`/${removeLeadingSlash(b)}`;const hopeInject="",clientConfig0={};var u8=Uint8Array,u16=Uint16Array,u32=Uint32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(b,$){for(var j=new u16(31),U=0;U<31;++U)j[U]=$+=1<<b[U-1];for(var Bn=new u32(j[30]),U=1;U<30;++U)for(var Fn=j[U];Fn<j[U+1];++Fn)Bn[Fn]=Fn-j[U]<<5|U;return[j,Bn]},_a$1=freb(fleb,2),fl=_a$1[0],revfl=_a$1[1];fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b[0],rev=new u16(32768);for(var i$5=0;i$5<32768;++i$5){var x$3=(i$5&43690)>>>1|(i$5&21845)<<1;x$3=(x$3&52428)>>>2|(x$3&13107)<<2,x$3=(x$3&61680)>>>4|(x$3&3855)<<4,rev[i$5]=((x$3&65280)>>>8|(x$3&255)<<8)>>>1}var hMap=function(b,$,j){for(var U=b.length,Bn=0,Fn=new u16($);Bn<U;++Bn)b[Bn]&&++Fn[b[Bn]-1];var qn=new u16($);for(Bn=0;Bn<$;++Bn)qn[Bn]=qn[Bn-1]+Fn[Bn-1]<<1;var Wn;if(j){Wn=new u16(1<<$);var Gn=15-$;for(Bn=0;Bn<U;++Bn)if(b[Bn])for(var Qn=Bn<<4|b[Bn],Yn=$-b[Bn],Zn=qn[b[Bn]-1]++<<Yn,Jn=Zn|(1<<Yn)-1;Zn<=Jn;++Zn)Wn[rev[Zn]>>>Gn]=Qn}else for(Wn=new u16(U),Bn=0;Bn<U;++Bn)b[Bn]&&(Wn[Bn]=rev[qn[b[Bn]-1]++]>>>15-b[Bn]);return Wn},flt=new u8(288);for(var i$5=0;i$5<144;++i$5)flt[i$5]=8;for(var i$5=144;i$5<256;++i$5)flt[i$5]=9;for(var i$5=256;i$5<280;++i$5)flt[i$5]=7;for(var i$5=280;i$5<288;++i$5)flt[i$5]=8;var fdt=new u8(32);for(var i$5=0;i$5<32;++i$5)fdt[i$5]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function(b){for(var $=b[0],j=1;j<b.length;++j)b[j]>$&&($=b[j]);return $},bits=function(b,$,j){var U=$/8|0;return(b[U]|b[U+1]<<8)>>($&7)&j},bits16=function(b,$){var j=$/8|0;return(b[j]|b[j+1]<<8|b[j+2]<<16)>>($&7)},shft=function(b){return(b+7)/8|0},slc=function(b,$,j){($==null||$<0)&&($=0),(j==null||j>b.length)&&(j=b.length);var U=new(b.BYTES_PER_ELEMENT==2?u16:b.BYTES_PER_ELEMENT==4?u32:u8)(j-$);return U.set(b.subarray($,j)),U},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(b,$,j){var U=new Error($||ec[b]);if(U.code=b,Error.captureStackTrace&&Error.captureStackTrace(U,err),!j)throw U;return U},inflt=function(b,$,j){var U=b.length;if(!U||j&&j.f&&!j.l)return $||new u8(0);var Bn=!$||j,Fn=!j||j.i;j||(j={}),$||($=new u8(U*3));var qn=function(Ma){var Ra=$.length;if(Ma>Ra){var za=new u8(Math.max(Ra*2,Ma));za.set($),$=za}},Wn=j.f||0,Gn=j.p||0,Qn=j.b||0,Yn=j.l,Zn=j.d,Jn=j.m,Kn=j.n,ea=U*8;do{if(!Yn){Wn=bits(b,Gn,1);var Xn=bits(b,Gn+1,3);if(Gn+=3,Xn)if(Xn==1)Yn=flrm,Zn=fdrm,Jn=9,Kn=5;else if(Xn==2){var ca=bits(b,Gn,31)+257,pa=bits(b,Gn+10,15)+4,va=ca+bits(b,Gn+5,31)+1;Gn+=14;for(var ga=new u8(va),ia=new u8(19),la=0;la<pa;++la)ia[clim[la]]=bits(b,Gn+la*3,7);Gn+=pa*3;for(var ya=max(ia),La=(1<<ya)-1,Ia=hMap(ia,ya,1),la=0;la<va;){var ka=Ia[bits(b,Gn,La)];Gn+=ka&15;var ta=ka>>>4;if(ta<16)ga[la++]=ta;else{var sa=0,aa=0;for(ta==16?(aa=3+bits(b,Gn,3),Gn+=2,sa=ga[la-1]):ta==17?(aa=3+bits(b,Gn,7),Gn+=3):ta==18&&(aa=11+bits(b,Gn,127),Gn+=7);aa--;)ga[la++]=sa}}var oa=ga.subarray(0,ca),da=ga.subarray(ca);Jn=max(oa),Kn=max(da),Yn=hMap(oa,Jn,1),Zn=hMap(da,Kn,1)}else err(1);else{var ta=shft(Gn)+4,na=b[ta-4]|b[ta-3]<<8,ra=ta+na;if(ra>U){Fn&&err(0);break}Bn&&qn(Qn+na),$.set(b.subarray(ta,ra),Qn),j.b=Qn+=na,j.p=Gn=ra*8,j.f=Wn;continue}if(Gn>ea){Fn&&err(0);break}}Bn&&qn(Qn+131072);for(var ua=(1<<Jn)-1,ha=(1<<Kn)-1,ba=Gn;;ba=Gn){var sa=Yn[bits16(b,Gn)&ua],wa=sa>>>4;if(Gn+=sa&15,Gn>ea){Fn&&err(0);break}if(sa||err(2),wa<256)$[Qn++]=wa;else if(wa==256){ba=Gn,Yn=null;break}else{var xa=wa-254;if(wa>264){var la=wa-257,Ea=fleb[la];xa=bits(b,Gn,(1<<Ea)-1)+fl[la],Gn+=Ea}var Aa=Zn[bits16(b,Gn)&ha],Ba=Aa>>>4;Aa||err(3),Gn+=Aa&15;var da=fd[Ba];if(Ba>3){var Ea=fdeb[Ba];da+=bits16(b,Gn)&(1<<Ea)-1,Gn+=Ea}if(Gn>ea){Fn&&err(0);break}Bn&&qn(Qn+131072);for(var Da=Qn+xa;Qn<Da;Qn+=4)$[Qn]=$[Qn-da],$[Qn+1]=$[Qn+1-da],$[Qn+2]=$[Qn+2-da],$[Qn+3]=$[Qn+3-da];Qn=Da}}j.l=Yn,j.p=ba,j.b=Qn,j.f=Wn,Yn&&(Wn=1,j.m=Jn,j.d=Zn,j.n=Kn)}while(!Wn);return Qn==$.length?$:slc($,0,Qn)},et$2=new u8(0),zlv=function(b){((b[0]&15)!=8||b[0]>>>4>7||(b[0]<<8|b[1])%31)&&err(6,"invalid zlib data"),b[1]&32&&err(6,"invalid zlib data: preset dictionaries not supported")};function unzlibSync(b,$){return inflt((zlv(b),b.subarray(2,-4)),$)}var te$2=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et$2,{stream:!0}),tds=1}catch{}var dutf8=function(b){for(var $="",j=0;;){var U=b[j++],Bn=(U>127)+(U>223)+(U>239);if(j+Bn>b.length)return[$,slc(b,j-1)];Bn?Bn==3?(U=((U&15)<<18|(b[j++]&63)<<12|(b[j++]&63)<<6|b[j++]&63)-65536,$+=String.fromCharCode(55296|U>>10,56320|U&1023)):Bn&1?$+=String.fromCharCode((U&31)<<6|b[j++]&63):$+=String.fromCharCode((U&15)<<12|(b[j++]&63)<<6|b[j++]&63):$+=String.fromCharCode(U)}};function strToU8(b,$){if($){for(var j=new u8(b.length),U=0;U<b.length;++U)j[U]=b.charCodeAt(U);return j}if(te$2)return te$2.encode(b);for(var Bn=b.length,Fn=new u8(b.length+(b.length>>1)),qn=0,Wn=function(Yn){Fn[qn++]=Yn},U=0;U<Bn;++U){if(qn+5>Fn.length){var Gn=new u8(qn+8+(Bn-U<<1));Gn.set(Fn),Fn=Gn}var Qn=b.charCodeAt(U);Qn<128||$?Wn(Qn):Qn<2048?(Wn(192|Qn>>6),Wn(128|Qn&63)):Qn>55295&&Qn<57344?(Qn=65536+(Qn&1023<<10)|b.charCodeAt(++U)&1023,Wn(240|Qn>>18),Wn(128|Qn>>12&63),Wn(128|Qn>>6&63),Wn(128|Qn&63)):(Wn(224|Qn>>12),Wn(128|Qn>>6&63),Wn(128|Qn&63))}return slc(Fn,0,qn)}function strFromU8(b,$){if($){for(var j="",U=0;U<b.length;U+=16384)j+=String.fromCharCode.apply(null,b.subarray(U,U+16384));return j}else{if(td)return td.decode(b);var Bn=dutf8(b),Fn=Bn[0],qn=Bn[1];return qn.length&&err(8),Fn}}const P$5=({name:b="",color:$="currentColor"},{slots:j})=>{var U;return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${b}-icon`],viewBox:"0 0 1024 1024",fill:$,"aria-label":`${b} icon`},(U=j.default)==null?void 0:U.call(j))};P$5.displayName="IconBase";const Ct$1=(b,{slots:$})=>{var j;return((j=$.default)==null?void 0:j.call($))||null},vt$1=()=>h$3(P$5,{name:"github"},()=>h$3("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));vt$1.displayName="GitHubIcon";const pt$1=()=>h$3(P$5,{name:"gitlab"},()=>h$3("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));pt$1.displayName="GitlabIcon";const $t$1=()=>h$3(P$5,{name:"gitee"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));$t$1.displayName="GiteeIcon";const gt$1=()=>h$3(P$5,{name:"bitbucket"},()=>h$3("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));gt$1.displayName="BitbucketIcon";const yt$1=()=>h$3(P$5,{name:"source"},()=>h$3("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));yt$1.displayName="SourceIcon";const _t$1=(b,$)=>{const j=$?$._instance:getCurrentInstance();return isPlainObject(j==null?void 0:j.appContext.components)&&(b in j.appContext.components||camelize(b)in j.appContext.components||capitalize(camelize(b))in j.appContext.components)},kt$1=b=>{const $=useRouteLocale();return computed(()=>b[$.value])},Ht$1=b=>/\b(?:Android|iPhone)/i.test(b),Gt$1=(b,$)=>{let j=1;for(let U=0;U<b.length;U++)j+=b.charCodeAt(U),j+=j<<10,j^=j>>6;return j+=j<<3,j^=j>>11,j%$};let Pt$1=class{constructor(){this.messageElements={};const $="message-container",j=document.getElementById($);j?this.containerElement=j:(this.containerElement=document.createElement("div"),this.containerElement.id=$,document.body.appendChild(this.containerElement))}pop($,j=2e3){const U=document.createElement("div"),Bn=Date.now();return U.className="message move-in",U.innerHTML=$,this.containerElement.appendChild(U),this.messageElements[Bn]=U,j>0&&setTimeout(()=>{this.close(Bn)},j),Bn}close($){if($){const j=this.messageElements[$];j.className=j.className.replace("move-in",""),j.className+="move-out",j.addEventListener("animationend",()=>{j.remove(),delete this.messageElements[$]})}else Object.keys(this.messageElements).forEach(j=>this.close(Number(j)))}destroy(){document.body.removeChild(this.containerElement)}};const bt$1=/#.*$/u,St$1=b=>{const $=bt$1.exec(b);return $?$[0]:""},et$1=b=>decodeURI(b).replace(bt$1,"").replace(/(index)?\.(md|html)$/,""),Rt$1=(b,$)=>{if($===void 0)return!1;const j=et$1(b.path),U=et$1($),Bn=St$1($);return Bn?Bn===b.hash&&(!U||j===U):j===U},Bt$1=b=>{const $=atob(b);return strFromU8(unzlibSync(strToU8($,!0)))},Ft$1=b=>isLinkHttp(b)?b:`https://github.com/${b}`,Jt$1=b=>!isLinkHttp(b)||/github\.com/.test(b)?"GitHub":/bitbucket\.org/.test(b)?"Bitbucket":/gitlab\.com/.test(b)?"GitLab":/gitee\.com/.test(b)?"Gitee":null,Dt$1=(b,...$)=>{const j=b.resolve(...$),U=j.matched[j.matched.length-1];if(!(U!=null&&U.redirect))return j;const{redirect:Bn}=U,Fn=isFunction$1(Bn)?Bn(j):Bn,qn=isString$1(Fn)?{path:Fn}:Fn;return Dt$1(b,{hash:j.hash,query:j.query,params:j.params,...qn})};var K$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nt$1={},qt$1={get exports(){return nt$1},set exports(b){nt$1=b}};(function(b,$){(function(j,U){b.exports=U()})(K$1,function(){var j=1e3,U=6e4,Bn=36e5,Fn="millisecond",qn="second",Wn="minute",Gn="hour",Qn="day",Yn="week",Zn="month",Jn="quarter",Kn="year",ea="date",Xn="Invalid Date",ta=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,na=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ra={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(sa){var aa=["th","st","nd","rd"],oa=sa%100;return"["+sa+(aa[(oa-20)%10]||aa[oa]||aa[0])+"]"}},ca=function(sa,aa,oa){var da=String(sa);return!da||da.length>=aa?sa:""+Array(aa+1-da.length).join(oa)+sa},pa={s:ca,z:function(sa){var aa=-sa.utcOffset(),oa=Math.abs(aa),da=Math.floor(oa/60),ua=oa%60;return(aa<=0?"+":"-")+ca(da,2,"0")+":"+ca(ua,2,"0")},m:function sa(aa,oa){if(aa.date()<oa.date())return-sa(oa,aa);var da=12*(oa.year()-aa.year())+(oa.month()-aa.month()),ua=aa.clone().add(da,Zn),ha=oa-ua<0,ba=aa.clone().add(da+(ha?-1:1),Zn);return+(-(da+(oa-ua)/(ha?ua-ba:ba-ua))||0)},a:function(sa){return sa<0?Math.ceil(sa)||0:Math.floor(sa)},p:function(sa){return{M:Zn,y:Kn,w:Yn,d:Qn,D:ea,h:Gn,m:Wn,s:qn,ms:Fn,Q:Jn}[sa]||String(sa||"").toLowerCase().replace(/s$/,"")},u:function(sa){return sa===void 0}},va="en",ga={};ga[va]=ra;var ia=function(sa){return sa instanceof Ia},la=function sa(aa,oa,da){var ua;if(!aa)return va;if(typeof aa=="string"){var ha=aa.toLowerCase();ga[ha]&&(ua=ha),oa&&(ga[ha]=oa,ua=ha);var ba=aa.split("-");if(!ua&&ba.length>1)return sa(ba[0])}else{var wa=aa.name;ga[wa]=aa,ua=wa}return!da&&ua&&(va=ua),ua||!da&&va},ya=function(sa,aa){if(ia(sa))return sa.clone();var oa=typeof aa=="object"?aa:{};return oa.date=sa,oa.args=arguments,new Ia(oa)},La=pa;La.l=la,La.i=ia,La.w=function(sa,aa){return ya(sa,{locale:aa.$L,utc:aa.$u,x:aa.$x,$offset:aa.$offset})};var Ia=function(){function sa(oa){this.$L=la(oa.locale,null,!0),this.parse(oa)}var aa=sa.prototype;return aa.parse=function(oa){this.$d=function(da){var ua=da.date,ha=da.utc;if(ua===null)return new Date(NaN);if(La.u(ua))return new Date;if(ua instanceof Date)return new Date(ua);if(typeof ua=="string"&&!/Z$/i.test(ua)){var ba=ua.match(ta);if(ba){var wa=ba[2]-1||0,xa=(ba[7]||"0").substring(0,3);return ha?new Date(Date.UTC(ba[1],wa,ba[3]||1,ba[4]||0,ba[5]||0,ba[6]||0,xa)):new Date(ba[1],wa,ba[3]||1,ba[4]||0,ba[5]||0,ba[6]||0,xa)}}return new Date(ua)}(oa),this.$x=oa.x||{},this.init()},aa.init=function(){var oa=this.$d;this.$y=oa.getFullYear(),this.$M=oa.getMonth(),this.$D=oa.getDate(),this.$W=oa.getDay(),this.$H=oa.getHours(),this.$m=oa.getMinutes(),this.$s=oa.getSeconds(),this.$ms=oa.getMilliseconds()},aa.$utils=function(){return La},aa.isValid=function(){return this.$d.toString()!==Xn},aa.isSame=function(oa,da){var ua=ya(oa);return this.startOf(da)<=ua&&ua<=this.endOf(da)},aa.isAfter=function(oa,da){return ya(oa)<this.startOf(da)},aa.isBefore=function(oa,da){return this.endOf(da)<ya(oa)},aa.$g=function(oa,da,ua){return La.u(oa)?this[da]:this.set(ua,oa)},aa.unix=function(){return Math.floor(this.valueOf()/1e3)},aa.valueOf=function(){return this.$d.getTime()},aa.startOf=function(oa,da){var ua=this,ha=!!La.u(da)||da,ba=La.p(oa),wa=function(za,Oa){var fa=La.w(ua.$u?Date.UTC(ua.$y,Oa,za):new Date(ua.$y,Oa,za),ua);return ha?fa:fa.endOf(Qn)},xa=function(za,Oa){return La.w(ua.toDate()[za].apply(ua.toDate("s"),(ha?[0,0,0,0]:[23,59,59,999]).slice(Oa)),ua)},Ea=this.$W,Aa=this.$M,Ba=this.$D,Da="set"+(this.$u?"UTC":"");switch(ba){case Kn:return ha?wa(1,0):wa(31,11);case Zn:return ha?wa(1,Aa):wa(0,Aa+1);case Yn:var Ma=this.$locale().weekStart||0,Ra=(Ea<Ma?Ea+7:Ea)-Ma;return wa(ha?Ba-Ra:Ba+(6-Ra),Aa);case Qn:case ea:return xa(Da+"Hours",0);case Gn:return xa(Da+"Minutes",1);case Wn:return xa(Da+"Seconds",2);case qn:return xa(Da+"Milliseconds",3);default:return this.clone()}},aa.endOf=function(oa){return this.startOf(oa,!1)},aa.$set=function(oa,da){var ua,ha=La.p(oa),ba="set"+(this.$u?"UTC":""),wa=(ua={},ua[Qn]=ba+"Date",ua[ea]=ba+"Date",ua[Zn]=ba+"Month",ua[Kn]=ba+"FullYear",ua[Gn]=ba+"Hours",ua[Wn]=ba+"Minutes",ua[qn]=ba+"Seconds",ua[Fn]=ba+"Milliseconds",ua)[ha],xa=ha===Qn?this.$D+(da-this.$W):da;if(ha===Zn||ha===Kn){var Ea=this.clone().set(ea,1);Ea.$d[wa](xa),Ea.init(),this.$d=Ea.set(ea,Math.min(this.$D,Ea.daysInMonth())).$d}else wa&&this.$d[wa](xa);return this.init(),this},aa.set=function(oa,da){return this.clone().$set(oa,da)},aa.get=function(oa){return this[La.p(oa)]()},aa.add=function(oa,da){var ua,ha=this;oa=Number(oa);var ba=La.p(da),wa=function(Aa){var Ba=ya(ha);return La.w(Ba.date(Ba.date()+Math.round(Aa*oa)),ha)};if(ba===Zn)return this.set(Zn,this.$M+oa);if(ba===Kn)return this.set(Kn,this.$y+oa);if(ba===Qn)return wa(1);if(ba===Yn)return wa(7);var xa=(ua={},ua[Wn]=U,ua[Gn]=Bn,ua[qn]=j,ua)[ba]||1,Ea=this.$d.getTime()+oa*xa;return La.w(Ea,this)},aa.subtract=function(oa,da){return this.add(-1*oa,da)},aa.format=function(oa){var da=this,ua=this.$locale();if(!this.isValid())return ua.invalidDate||Xn;var ha=oa||"YYYY-MM-DDTHH:mm:ssZ",ba=La.z(this),wa=this.$H,xa=this.$m,Ea=this.$M,Aa=ua.weekdays,Ba=ua.months,Da=function(Oa,fa,ma,Ca){return Oa&&(Oa[fa]||Oa(da,ha))||ma[fa].slice(0,Ca)},Ma=function(Oa){return La.s(wa%12||12,Oa,"0")},Ra=ua.meridiem||function(Oa,fa,ma){var Ca=Oa<12?"AM":"PM";return ma?Ca.toLowerCase():Ca},za={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Ea+1,MM:La.s(Ea+1,2,"0"),MMM:Da(ua.monthsShort,Ea,Ba,3),MMMM:Da(Ba,Ea),D:this.$D,DD:La.s(this.$D,2,"0"),d:String(this.$W),dd:Da(ua.weekdaysMin,this.$W,Aa,2),ddd:Da(ua.weekdaysShort,this.$W,Aa,3),dddd:Aa[this.$W],H:String(wa),HH:La.s(wa,2,"0"),h:Ma(1),hh:Ma(2),a:Ra(wa,xa,!0),A:Ra(wa,xa,!1),m:String(xa),mm:La.s(xa,2,"0"),s:String(this.$s),ss:La.s(this.$s,2,"0"),SSS:La.s(this.$ms,3,"0"),Z:ba};return ha.replace(na,function(Oa,fa){return fa||za[Oa]||ba.replace(":","")})},aa.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},aa.diff=function(oa,da,ua){var ha,ba=La.p(da),wa=ya(oa),xa=(wa.utcOffset()-this.utcOffset())*U,Ea=this-wa,Aa=La.m(this,wa);return Aa=(ha={},ha[Kn]=Aa/12,ha[Zn]=Aa,ha[Jn]=Aa/3,ha[Yn]=(Ea-xa)/6048e5,ha[Qn]=(Ea-xa)/864e5,ha[Gn]=Ea/Bn,ha[Wn]=Ea/U,ha[qn]=Ea/j,ha)[ba]||Ea,ua?Aa:La.a(Aa)},aa.daysInMonth=function(){return this.endOf(Zn).$D},aa.$locale=function(){return ga[this.$L]},aa.locale=function(oa,da){if(!oa)return this.$L;var ua=this.clone(),ha=la(oa,da,!0);return ha&&(ua.$L=ha),ua},aa.clone=function(){return La.w(this.$d,this)},aa.toDate=function(){return new Date(this.valueOf())},aa.toJSON=function(){return this.isValid()?this.toISOString():null},aa.toISOString=function(){return this.$d.toISOString()},aa.toString=function(){return this.$d.toUTCString()},sa}(),ka=Ia.prototype;return ya.prototype=ka,[["$ms",Fn],["$s",qn],["$m",Wn],["$H",Gn],["$W",Qn],["$M",Zn],["$y",Kn],["$D",ea]].forEach(function(sa){ka[sa[1]]=function(aa){return this.$g(aa,sa[0],sa[1])}}),ya.extend=function(sa,aa){return sa.$i||(sa(aa,Ia,ya),sa.$i=!0),ya},ya.locale=la,ya.isDayjs=ia,ya.unix=function(sa){return ya(1e3*sa)},ya.en=ga[va],ya.Ls=ga,ya.p={},ya})})(qt$1);var R$1=nt$1,it$1={},Qt$1={get exports(){return it$1},set exports(b){it$1=b}};(function(b,$){(function(j,U){b.exports=U()})(K$1,function(){return function(j,U,Bn){var Fn=U.prototype,qn=function(Jn){var Kn,ea=Jn.date,Xn=Jn.utc,ta={};if(!((Kn=ea)instanceof Date||Kn instanceof Array||Fn.$utils().u(Kn)||Kn.constructor.name!=="Object")){if(!Object.keys(ea).length)return new Date;var na=Xn?Bn.utc():Bn();Object.keys(ea).forEach(function(ya){var La,Ia;ta[La=ya,Ia=Fn.$utils().p(La),Ia==="date"?"day":Ia]=ea[ya]});var ra=ta.day||(ta.year||ta.month>=0?1:na.date()),ca=ta.year||na.year(),pa=ta.month>=0?ta.month:ta.year||ta.day?0:na.month(),va=ta.hour||0,ga=ta.minute||0,ia=ta.second||0,la=ta.millisecond||0;return Xn?new Date(Date.UTC(ca,pa,ra,va,ga,ia,la)):new Date(ca,pa,ra,va,ga,ia,la)}return ea},Wn=Fn.parse;Fn.parse=function(Jn){Jn.date=qn.bind(this)(Jn),Wn.bind(this)(Jn)};var Gn=Fn.set,Qn=Fn.add,Yn=Fn.subtract,Zn=function(Jn,Kn,ea,Xn){Xn===void 0&&(Xn=1);var ta=Object.keys(Kn),na=this;return ta.forEach(function(ra){na=Jn.bind(na)(Kn[ra]*Xn,ra)}),na};Fn.set=function(Jn,Kn){return Kn=Kn===void 0?Jn:Kn,Jn.constructor.name==="Object"?Zn.bind(this)(function(ea,Xn){return Gn.bind(this)(Xn,ea)},Kn,Jn):Gn.bind(this)(Jn,Kn)},Fn.add=function(Jn,Kn){return Jn.constructor.name==="Object"?Zn.bind(this)(Qn,Jn,Kn):Qn.bind(this)(Jn,Kn)},Fn.subtract=function(Jn,Kn){return Jn.constructor.name==="Object"?Zn.bind(this)(Qn,Jn,Kn,-1):Yn.bind(this)(Jn,Kn)}}})})(Qt$1);var Kt$1=it$1,rt$1={},Xt$1={get exports(){return rt$1},set exports(b){rt$1=b}};(function(b,$){(function(j,U){b.exports=U()})(K$1,function(){var j={year:0,month:1,day:2,hour:3,minute:4,second:5},U={};return function(Bn,Fn,qn){var Wn,Gn=function(Jn,Kn,ea){ea===void 0&&(ea={});var Xn=new Date(Jn),ta=function(na,ra){ra===void 0&&(ra={});var ca=ra.timeZoneName||"short",pa=na+"|"+ca,va=U[pa];return va||(va=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:na,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ca}),U[pa]=va),va}(Kn,ea);return ta.formatToParts(Xn)},Qn=function(Jn,Kn){for(var ea=Gn(Jn,Kn),Xn=[],ta=0;ta<ea.length;ta+=1){var na=ea[ta],ra=na.type,ca=na.value,pa=j[ra];pa>=0&&(Xn[pa]=parseInt(ca,10))}var va=Xn[3],ga=va===24?0:va,ia=Xn[0]+"-"+Xn[1]+"-"+Xn[2]+" "+ga+":"+Xn[4]+":"+Xn[5]+":000",la=+Jn;return(qn.utc(ia).valueOf()-(la-=la%1e3))/6e4},Yn=Fn.prototype;Yn.tz=function(Jn,Kn){Jn===void 0&&(Jn=Wn);var ea=this.utcOffset(),Xn=this.toDate(),ta=Xn.toLocaleString("en-US",{timeZone:Jn}),na=Math.round((Xn-new Date(ta))/1e3/60),ra=qn(ta).$set("millisecond",this.$ms).utcOffset(15*-Math.round(Xn.getTimezoneOffset()/15)-na,!0);if(Kn){var ca=ra.utcOffset();ra=ra.add(ea-ca,"minute")}return ra.$x.$timezone=Jn,ra},Yn.offsetName=function(Jn){var Kn=this.$x.$timezone||qn.tz.guess(),ea=Gn(this.valueOf(),Kn,{timeZoneName:Jn}).find(function(Xn){return Xn.type.toLowerCase()==="timezonename"});return ea&&ea.value};var Zn=Yn.startOf;Yn.startOf=function(Jn,Kn){if(!this.$x||!this.$x.$timezone)return Zn.call(this,Jn,Kn);var ea=qn(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return Zn.call(ea,Jn,Kn).tz(this.$x.$timezone,!0)},qn.tz=function(Jn,Kn,ea){var Xn=ea&&Kn,ta=ea||Kn||Wn,na=Qn(+qn(),ta);if(typeof Jn!="string")return qn(Jn).tz(ta);var ra=function(ga,ia,la){var ya=ga-60*ia*1e3,La=Qn(ya,la);if(ia===La)return[ya,ia];var Ia=Qn(ya-=60*(La-ia)*1e3,la);return La===Ia?[ya,La]:[ga-60*Math.min(La,Ia)*1e3,Math.max(La,Ia)]}(qn.utc(Jn,Xn).valueOf(),na,ta),ca=ra[0],pa=ra[1],va=qn(ca).utcOffset(pa);return va.$x.$timezone=ta,va},qn.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},qn.tz.setDefault=function(Jn){Wn=Jn}}})})(Xt$1);var te$1=rt$1,st$1={},ee$1={get exports(){return st$1},set exports(b){st$1=b}};(function(b,$){(function(j,U){b.exports=U()})(K$1,function(){var j="minute",U=/[+-]\d\d(?::?\d\d)?/g,Bn=/([+-]|\d\d)/g;return function(Fn,qn,Wn){var Gn=qn.prototype;Wn.utc=function(Xn){var ta={date:Xn,utc:!0,args:arguments};return new qn(ta)},Gn.utc=function(Xn){var ta=Wn(this.toDate(),{locale:this.$L,utc:!0});return Xn?ta.add(this.utcOffset(),j):ta},Gn.local=function(){return Wn(this.toDate(),{locale:this.$L,utc:!1})};var Qn=Gn.parse;Gn.parse=function(Xn){Xn.utc&&(this.$u=!0),this.$utils().u(Xn.$offset)||(this.$offset=Xn.$offset),Qn.call(this,Xn)};var Yn=Gn.init;Gn.init=function(){if(this.$u){var Xn=this.$d;this.$y=Xn.getUTCFullYear(),this.$M=Xn.getUTCMonth(),this.$D=Xn.getUTCDate(),this.$W=Xn.getUTCDay(),this.$H=Xn.getUTCHours(),this.$m=Xn.getUTCMinutes(),this.$s=Xn.getUTCSeconds(),this.$ms=Xn.getUTCMilliseconds()}else Yn.call(this)};var Zn=Gn.utcOffset;Gn.utcOffset=function(Xn,ta){var na=this.$utils().u;if(na(Xn))return this.$u?0:na(this.$offset)?Zn.call(this):this.$offset;if(typeof Xn=="string"&&(Xn=function(va){va===void 0&&(va="");var ga=va.match(U);if(!ga)return null;var ia=(""+ga[0]).match(Bn)||["-",0,0],la=ia[0],ya=60*+ia[1]+ +ia[2];return ya===0?0:la==="+"?ya:-ya}(Xn),Xn===null))return this;var ra=Math.abs(Xn)<=16?60*Xn:Xn,ca=this;if(ta)return ca.$offset=ra,ca.$u=Xn===0,ca;if(Xn!==0){var pa=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ca=this.local().add(ra+pa,j)).$offset=ra,ca.$x.$localOffset=pa}else ca=this.utc();return ca};var Jn=Gn.format;Gn.format=function(Xn){var ta=Xn||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Jn.call(this,ta)},Gn.valueOf=function(){var Xn=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*Xn},Gn.isUTC=function(){return!!this.$u},Gn.toISOString=function(){return this.toDate().toISOString()},Gn.toString=function(){return this.toDate().toUTCString()};var Kn=Gn.toDate;Gn.toDate=function(Xn){return Xn==="s"&&this.$offset?Wn(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Kn.call(this)};var ea=Gn.diff;Gn.diff=function(Xn,ta,na){if(Xn&&this.$u===Xn.$u)return ea.call(this,Xn,ta,na);var ra=this.local(),ca=Wn(Xn).local();return ea.call(ra,ca,ta,na)}}})})(ee$1);var ne$1=st$1;R$1.extend(Kt$1),R$1.extend(ne$1),R$1.extend(te$1);const ot$1=(b,$)=>{if(b){if(R$1(b instanceof Date?b:b.trim()).isValid()){const U=$?R$1(b).tz($):R$1(b),Bn=U.year(),Fn=U.month()+1,qn=U.date(),Wn=U.hour(),Gn=U.minute(),Qn=U.second(),Yn=U.millisecond(),Zn=Wn===0&&Gn===0&&Qn===0&&Yn===0;return{value:U.toDate(),info:{year:Bn,month:Fn,day:qn,...Zn?{}:{hour:Wn,minute:Gn,second:Qn}},type:Zn?"date":"full"}}const j=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(b.trim());if(j){const[,U,Bn,Fn,qn,Wn,Gn]=j,Qn=ta=>typeof ta>"u"?void 0:Number(ta),Yn=ta=>ta&&ta<100?ta+2e3:ta,Zn=ta=>qn&&Wn&&!Gn?0:ta,Jn={year:Yn(Qn(U)),month:Qn(Bn),day:Qn(Fn),hour:Qn(qn),minute:Qn(Wn),second:Zn(Qn(Gn))},Kn=U===void 0&&Bn===void 0&&Fn===void 0,ea=qn===void 0&&Wn===void 0&&Gn===void 0,Xn=R$1({...Jn,month:Jn.month-1}).toDate();return{value:Kn?void 0:Xn,info:ea?{year:Jn.year,month:Jn.month,day:Jn.day}:Kn?{hour:Jn.hour,minute:Jn.minute,second:Jn.second}:Jn,type:Kn?"time":ea?"date":"full"}}}return null},at$1=(b,...$)=>{if($.length===0)return b;const j=$.shift()||null;return j&&Object.entries(j).forEach(([U,Bn])=>{U==="__proto__"||U==="constructor"||(isPlainObject(b[U])&&isPlainObject(Bn)?at$1(b[U],Bn):isArray(Bn)?b[U]=[...Bn]:isPlainObject(Bn)?b[U]={...Bn}:b[U]=j[U])}),at$1(b,...$)},re$1=(b,$=!1)=>b?isArray(b)?b.map(j=>isString$1(j)?{name:j}:j):isString$1(b)?[{name:b}]:isPlainObject(b)&&b.name?[b]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${$?"":"| false"} | undefined\`, but got`,b),[]):[],ut$1=(b,$)=>{if(b){if(isArray(b))return b;if(isString$1(b))return[b];console.error(`Expect ${$||"value"} to be \`string[] | string | undefined\`, but got`,b)}return[]},se$1=b=>ut$1(b,"category"),oe$1=b=>ut$1(b,"tag"),ue$1=b=>isString$1(b)&&b.startsWith("/");var _a;const isClient=typeof window<"u",isFunction=b=>typeof b=="function",isString=b=>typeof b=="string",noop=()=>{};isClient&&((_a=window==null?void 0:window.navigator)!=null&&_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(b){return typeof b=="function"?b():unref(b)}function createFilterWrapper(b,$){function j(...U){return new Promise((Bn,Fn)=>{Promise.resolve(b(()=>$.apply(this,U),{fn:$,thisArg:this,args:U})).then(Bn).catch(Fn)})}return j}const bypassFilter=b=>b();function debounceFilter(b,$={}){let j,U,Bn=noop;const Fn=Wn=>{clearTimeout(Wn),Bn(),Bn=noop};return Wn=>{const Gn=resolveUnref(b),Qn=resolveUnref($.maxWait);return j&&Fn(j),Gn<=0||Qn!==void 0&&Qn<=0?(U&&(Fn(U),U=null),Promise.resolve(Wn())):new Promise((Yn,Zn)=>{Bn=$.rejectOnCancel?Zn:Yn,Qn&&!U&&(U=setTimeout(()=>{j&&Fn(j),U=null,Yn(Wn())},Qn)),j=setTimeout(()=>{U&&Fn(U),U=null,Yn(Wn())},Gn)})}}function throttleFilter(b,$=!0,j=!0,U=!1){let Bn=0,Fn,qn=!0,Wn=noop,Gn;const Qn=()=>{Fn&&(clearTimeout(Fn),Fn=void 0,Wn(),Wn=noop)};return Zn=>{const Jn=resolveUnref(b),Kn=Date.now()-Bn,ea=()=>Gn=Zn();if(Qn(),Jn<=0)return Bn=Date.now(),ea();if(Kn>Jn&&(j||!qn))Bn=Date.now(),ea();else if($)return new Promise((Xn,ta)=>{Wn=U?ta:Xn,Fn=setTimeout(()=>{Bn=Date.now(),qn=!0,Xn(ea()),Qn()},Jn-Kn)});return!j&&!Fn&&(Fn=setTimeout(()=>qn=!0,Jn)),qn=!1,Gn}}function pausableFilter(b=bypassFilter){const $=ref(!0);function j(){$.value=!1}function U(){$.value=!0}return{isActive:$,pause:j,resume:U,eventFilter:(...Fn)=>{$.value&&b(...Fn)}}}function identity(b){return b}function tryOnScopeDispose(b){return getCurrentScope()?(onScopeDispose(b),!0):!1}function useDebounceFn(b,$=200,j={}){return createFilterWrapper(debounceFilter($,j),b)}function useThrottleFn(b,$=200,j=!1,U=!0,Bn=!1){return createFilterWrapper(throttleFilter($,j,U,Bn),b)}function resolveRef(b){return typeof b=="function"?computed(b):ref(b)}function tryOnMounted(b,$=!0){getCurrentInstance()?onMounted(b):$?b():nextTick(b)}function useIntervalFn(b,$=1e3,j={}){const{immediate:U=!0,immediateCallback:Bn=!1}=j;let Fn=null;const qn=ref(!1);function Wn(){Fn&&(clearInterval(Fn),Fn=null)}function Gn(){qn.value=!1,Wn()}function Qn(){unref($)<=0||(qn.value=!0,Bn&&b(),Wn(),Fn=setInterval(b,resolveUnref($)))}if(U&&isClient&&Qn(),isRef($)||isFunction($)){const Yn=watch($,()=>{qn.value&&isClient&&Qn()});tryOnScopeDispose(Yn)}return tryOnScopeDispose(Gn),{isActive:qn,pause:Gn,resume:Qn}}var __getOwnPropSymbols$6$1=Object.getOwnPropertySymbols,__hasOwnProp$6$1=Object.prototype.hasOwnProperty,__propIsEnum$6$1=Object.prototype.propertyIsEnumerable,__objRest$5=(b,$)=>{var j={};for(var U in b)__hasOwnProp$6$1.call(b,U)&&$.indexOf(U)<0&&(j[U]=b[U]);if(b!=null&&__getOwnPropSymbols$6$1)for(var U of __getOwnPropSymbols$6$1(b))$.indexOf(U)<0&&__propIsEnum$6$1.call(b,U)&&(j[U]=b[U]);return j};function watchWithFilter(b,$,j={}){const U=j,{eventFilter:Bn=bypassFilter}=U,Fn=__objRest$5(U,["eventFilter"]);return watch(b,createFilterWrapper(Bn,$),Fn)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(b,$,j)=>$ in b?__defProp$2(b,$,{enumerable:!0,configurable:!0,writable:!0,value:j}):b[$]=j,__spreadValues$2=(b,$)=>{for(var j in $||($={}))__hasOwnProp$2.call($,j)&&__defNormalProp$2(b,j,$[j]);if(__getOwnPropSymbols$2)for(var j of __getOwnPropSymbols$2($))__propIsEnum$2.call($,j)&&__defNormalProp$2(b,j,$[j]);return b},__spreadProps$2=(b,$)=>__defProps$2(b,__getOwnPropDescs$2($)),__objRest$1=(b,$)=>{var j={};for(var U in b)__hasOwnProp$2.call(b,U)&&$.indexOf(U)<0&&(j[U]=b[U]);if(b!=null&&__getOwnPropSymbols$2)for(var U of __getOwnPropSymbols$2(b))$.indexOf(U)<0&&__propIsEnum$2.call(b,U)&&(j[U]=b[U]);return j};function watchPausable(b,$,j={}){const U=j,{eventFilter:Bn}=U,Fn=__objRest$1(U,["eventFilter"]),{eventFilter:qn,pause:Wn,resume:Gn,isActive:Qn}=pausableFilter(Bn);return{stop:watchWithFilter(b,$,__spreadProps$2(__spreadValues$2({},Fn),{eventFilter:qn})),pause:Wn,resume:Gn,isActive:Qn}}function unrefElement(b){var $;const j=resolveUnref(b);return($=j==null?void 0:j.$el)!=null?$:j}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;isClient&&window.navigator;isClient&&window.location;function useEventListener(...b){let $,j,U,Bn;if(isString(b[0])||Array.isArray(b[0])?([j,U,Bn]=b,$=defaultWindow):[$,j,U,Bn]=b,!$)return noop;Array.isArray(j)||(j=[j]),Array.isArray(U)||(U=[U]);const Fn=[],qn=()=>{Fn.forEach(Yn=>Yn()),Fn.length=0},Wn=(Yn,Zn,Jn)=>(Yn.addEventListener(Zn,Jn,Bn),()=>Yn.removeEventListener(Zn,Jn,Bn)),Gn=watch(()=>unrefElement($),Yn=>{qn(),Yn&&Fn.push(...j.flatMap(Zn=>U.map(Jn=>Wn(Yn,Zn,Jn))))},{immediate:!0,flush:"post"}),Qn=()=>{Gn(),qn()};return tryOnScopeDispose(Qn),Qn}function onClickOutside(b,$,j={}){const{window:U=defaultWindow,ignore:Bn=[],capture:Fn=!0,detectIframe:qn=!1}=j;if(!U)return;let Wn=!0,Gn;const Qn=Kn=>Bn.some(ea=>{if(typeof ea=="string")return Array.from(U.document.querySelectorAll(ea)).some(Xn=>Xn===Kn.target||Kn.composedPath().includes(Xn));{const Xn=unrefElement(ea);return Xn&&(Kn.target===Xn||Kn.composedPath().includes(Xn))}}),Yn=Kn=>{U.clearTimeout(Gn);const ea=unrefElement(b);if(!(!ea||ea===Kn.target||Kn.composedPath().includes(ea))){if(Kn.detail===0&&(Wn=!Qn(Kn)),!Wn){Wn=!0;return}$(Kn)}},Zn=[useEventListener(U,"click",Yn,{passive:!0,capture:Fn}),useEventListener(U,"pointerdown",Kn=>{const ea=unrefElement(b);ea&&(Wn=!Kn.composedPath().includes(ea)&&!Qn(Kn))},{passive:!0}),useEventListener(U,"pointerup",Kn=>{if(Kn.button===0){const ea=Kn.composedPath();Kn.composedPath=()=>ea,Gn=U.setTimeout(()=>Yn(Kn),50)}},{passive:!0}),qn&&useEventListener(U,"blur",Kn=>{var ea;const Xn=unrefElement(b);((ea=U.document.activeElement)==null?void 0:ea.tagName)==="IFRAME"&&!(Xn!=null&&Xn.contains(U.document.activeElement))&&$(Kn)})].filter(Boolean);return()=>Zn.forEach(Kn=>Kn())}function useSupported(b,$=!1){const j=ref(),U=()=>j.value=Boolean(b());return U(),tryOnMounted(U,$),j}function useMediaQuery(b,$={}){const{window:j=defaultWindow}=$,U=useSupported(()=>j&&"matchMedia"in j&&typeof j.matchMedia=="function");let Bn;const Fn=ref(!1),qn=()=>{Bn&&("removeEventListener"in Bn?Bn.removeEventListener("change",Wn):Bn.removeListener(Wn))},Wn=()=>{U.value&&(qn(),Bn=j.matchMedia(resolveRef(b).value),Fn.value=Bn.matches,"addEventListener"in Bn?Bn.addEventListener("change",Wn):Bn.addListener(Wn))};return watchEffect(Wn),tryOnScopeDispose(()=>qn()),Fn}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};const handlers=_global[globalKey];function getSSRHandler(b,$){return handlers[b]||$}function guessSerializerType(b){return b==null?"any":b instanceof Set?"set":b instanceof Map?"map":b instanceof Date?"date":typeof b=="boolean"?"boolean":typeof b=="string"?"string":typeof b=="object"?"object":Number.isNaN(b)?"any":"number"}var __defProp$j=Object.defineProperty,__getOwnPropSymbols$l=Object.getOwnPropertySymbols,__hasOwnProp$l=Object.prototype.hasOwnProperty,__propIsEnum$l=Object.prototype.propertyIsEnumerable,__defNormalProp$j=(b,$,j)=>$ in b?__defProp$j(b,$,{enumerable:!0,configurable:!0,writable:!0,value:j}):b[$]=j,__spreadValues$j=(b,$)=>{for(var j in $||($={}))__hasOwnProp$l.call($,j)&&__defNormalProp$j(b,j,$[j]);if(__getOwnPropSymbols$l)for(var j of __getOwnPropSymbols$l($))__propIsEnum$l.call($,j)&&__defNormalProp$j(b,j,$[j]);return b};const StorageSerializers={boolean:{read:b=>b==="true",write:b=>String(b)},object:{read:b=>JSON.parse(b),write:b=>JSON.stringify(b)},number:{read:b=>Number.parseFloat(b),write:b=>String(b)},any:{read:b=>b,write:b=>String(b)},string:{read:b=>b,write:b=>String(b)},map:{read:b=>new Map(JSON.parse(b)),write:b=>JSON.stringify(Array.from(b.entries()))},set:{read:b=>new Set(JSON.parse(b)),write:b=>JSON.stringify(Array.from(b))},date:{read:b=>new Date(b),write:b=>b.toISOString()}};function useStorage(b,$,j,U={}){var Bn;const{flush:Fn="pre",deep:qn=!0,listenToStorageChanges:Wn=!0,writeDefaults:Gn=!0,mergeDefaults:Qn=!1,shallow:Yn,window:Zn=defaultWindow,eventFilter:Jn,onError:Kn=ia=>{console.error(ia)}}=U,ea=(Yn?shallowRef:ref)($);if(!j)try{j=getSSRHandler("getDefaultStorage",()=>{var ia;return(ia=defaultWindow)==null?void 0:ia.localStorage})()}catch(ia){Kn(ia)}if(!j)return ea;const Xn=resolveUnref($),ta=guessSerializerType(Xn),na=(Bn=U.serializer)!=null?Bn:StorageSerializers[ta],{pause:ra,resume:ca}=watchPausable(ea,()=>pa(ea.value),{flush:Fn,deep:qn,eventFilter:Jn});return Zn&&Wn&&useEventListener(Zn,"storage",ga),ga(),ea;function pa(ia){try{if(ia==null)j.removeItem(b);else{const la=na.write(ia),ya=j.getItem(b);ya!==la&&(j.setItem(b,la),Zn&&(Zn==null||Zn.dispatchEvent(new StorageEvent("storage",{key:b,oldValue:ya,newValue:la,storageArea:j}))))}}catch(la){Kn(la)}}function va(ia){const la=ia?ia.newValue:j.getItem(b);if(la==null)return Gn&&Xn!==null&&j.setItem(b,na.write(Xn)),Xn;if(!ia&&Qn){const ya=na.read(la);return isFunction(Qn)?Qn(ya,Xn):ta==="object"&&!Array.isArray(ya)?__spreadValues$j(__spreadValues$j({},Xn),ya):ya}else return typeof la!="string"?la:na.read(la)}function ga(ia){if(!(ia&&ia.storageArea!==j)){if(ia&&ia.key==null){ea.value=Xn;return}if(!(ia&&ia.key!==b)){ra();try{ea.value=va(ia)}catch(la){Kn(la)}finally{ia?nextTick(ca):ca()}}}}}function usePreferredDark(b){return useMediaQuery("(prefers-color-scheme: dark)",b)}function useRafFn(b,$={}){const{immediate:j=!0,window:U=defaultWindow}=$,Bn=ref(!1);let Fn=0,qn=null;function Wn(Yn){if(!Bn.value||!U)return;const Zn=Yn-Fn;b({delta:Zn,timestamp:Yn}),Fn=Yn,qn=U.requestAnimationFrame(Wn)}function Gn(){!Bn.value&&U&&(Bn.value=!0,qn=U.requestAnimationFrame(Wn))}function Qn(){Bn.value=!1,qn!=null&&U&&(U.cancelAnimationFrame(qn),qn=null)}return j&&Gn(),tryOnScopeDispose(Qn),{isActive:Bn,pause:Qn,resume:Gn}}const functionsMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function useFullscreen(b,$={}){const{document:j=defaultDocument,autoExit:U=!1}=$,Bn=b||(j==null?void 0:j.querySelector("html")),Fn=ref(!1);let qn=functionsMap[0];const Wn=useSupported(()=>{if(j){for(const Xn of functionsMap)if(Xn[1]in j)return qn=Xn,!0}else return!1;return!1}),[Gn,Qn,Yn,,Zn]=qn;async function Jn(){Wn.value&&(j!=null&&j[Yn]&&await j[Qn](),Fn.value=!1)}async function Kn(){if(!Wn.value)return;await Jn();const Xn=unrefElement(Bn);Xn&&(await Xn[Gn](),Fn.value=!0)}async function ea(){Fn.value?await Jn():await Kn()}return j&&useEventListener(j,Zn,()=>{Fn.value=!!(j!=null&&j[Yn])},!1),U&&tryOnScopeDispose(Jn),{isSupported:Wn,isFullscreen:Fn,enter:Kn,exit:Jn,toggle:ea}}function useLocalStorage(b,$,j={}){const{window:U=defaultWindow}=j;return useStorage(b,$,U==null?void 0:U.localStorage,j)}var __defProp$6=Object.defineProperty,__getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__defNormalProp$6=(b,$,j)=>$ in b?__defProp$6(b,$,{enumerable:!0,configurable:!0,writable:!0,value:j}):b[$]=j,__spreadValues$6=(b,$)=>{for(var j in $||($={}))__hasOwnProp$6.call($,j)&&__defNormalProp$6(b,j,$[j]);if(__getOwnPropSymbols$6)for(var j of __getOwnPropSymbols$6($))__propIsEnum$6.call($,j)&&__defNormalProp$6(b,j,$[j]);return b};function useNow(b={}){const{controls:$=!1,interval:j="requestAnimationFrame"}=b,U=ref(new Date),Bn=()=>U.value=new Date,Fn=j==="requestAnimationFrame"?useRafFn(Bn,{immediate:!0}):useIntervalFn(Bn,j,{immediate:!0});return $?__spreadValues$6({now:U},Fn):U}var SwipeDirection;(function(b){b.UP="UP",b.RIGHT="RIGHT",b.DOWN="DOWN",b.LEFT="LEFT",b.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));let _id=0;function useStyleTag(b,$={}){const j=ref(!1),{document:U=defaultDocument,immediate:Bn=!0,manual:Fn=!1,id:qn=`vueuse_styletag_${++_id}`}=$,Wn=ref(b);let Gn=()=>{};const Qn=()=>{if(!U)return;const Zn=U.getElementById(qn)||U.createElement("style");Zn.isConnected||(Zn.type="text/css",Zn.id=qn,$.media&&(Zn.media=$.media),U.head.appendChild(Zn)),!j.value&&(Gn=watch(Wn,Jn=>{Zn.textContent=Jn},{immediate:!0}),j.value=!0)},Yn=()=>{!U||!j.value||(Gn(),U.head.removeChild(U.getElementById(qn)),j.value=!1)};return Bn&&!Fn&&tryOnMounted(Qn),Fn||tryOnScopeDispose(Yn),{id:qn,css:Wn,unload:Yn,load:Qn,isLoaded:readonly(j)}}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(b,$,j)=>$ in b?__defProp(b,$,{enumerable:!0,configurable:!0,writable:!0,value:j}):b[$]=j,__spreadValues=(b,$)=>{for(var j in $||($={}))__hasOwnProp.call($,j)&&__defNormalProp(b,j,$[j]);if(__getOwnPropSymbols)for(var j of __getOwnPropSymbols($))__propIsEnum.call($,j)&&__defNormalProp(b,j,$[j]);return b};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);const fontIcon="";var s$3=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(b){const $=computed(()=>{const j={};return b.color&&(j.color=b.color),b.size&&(j["font-size"]=Number.isNaN(Number(b.size))?b.size:`${b.size}px`),Object.keys(j).length?j:null});return()=>b.icon?h$3("span",{class:["font-icon icon",`iconfont icon-${b.icon}`],style:$.value}):null}});const catalog="";var f$1=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(b){const $=computed(()=>{const j={};return b.color&&(j.color=b.color),b.size&&(j["font-size"]=Number.isNaN(Number(b.size))?b.size:`${b.size}px`),Object.keys(j).length?j:null});return()=>b.icon?h$3("span",{class:["font-icon icon",`iconfont icon-${b.icon}`],style:$.value}):null}}),S$6=defineComponent({name:"Catalog",props:{base:{type:String,default:""},level:{type:Number,default:3},titleGetter:{type:Function,default:b=>b.title},iconGetter:{type:Function,default:b=>b.icon},orderGetter:{type:Function,default:b=>b.order||0},shouldIndex:{type:Function,default:b=>b.index!==!1}},setup(b){const $=kt$1({"/en/":{title:"Catalog"},"/":{title:"目录"}}),j=useRoute(),U=useRouter(),Bn=useSiteData(),Fn=()=>{const Wn=b.base||j.path.replace(/\/[^/]+$/,"/"),Gn=U.getRoutes(),Qn=[];return Gn.filter(({meta:Yn,path:Zn})=>{if(!Zn.startsWith(Wn)||Zn===Wn)return!1;if(Wn==="/"){const Jn=Object.keys(Bn.value.locales).filter(Kn=>Kn!=="/");if(Zn==="/404.html"||Jn.some(Kn=>Zn.startsWith(Kn)))return!1}return(Zn.endsWith(".html")&&!Zn.endsWith("/index.html")||Zn.endsWith("/"))&&b.shouldIndex(Yn)}).map(({path:Yn,meta:Zn})=>{const Jn=Yn.substring(Wn.length).split("/").length;return{title:b.titleGetter(Zn),icon:b.iconGetter(Zn),base:Yn.replace(/\/[^/]+\/?$/,"/"),order:b.orderGetter(Zn),level:Yn.endsWith("/")?Jn-1:Jn,path:Yn}}).filter(({title:Yn,level:Zn})=>Zn<=b.level||!Yn).sort((Yn,Zn)=>Yn.level-Zn.level||(Yn.path.endsWith("/index.html")?-1:Zn.path.endsWith("/index.html")?1:Yn.order===null?Zn.order===null?Yn.title.localeCompare(Zn.title):Zn.order:Zn.order===null?Yn.order:Yn.order>0?Zn.order>0?Yn.order-Zn.order:-1:Zn.order<0?Yn.order-Zn.order:1)).forEach(Yn=>{var Zn;const{base:Jn,level:Kn}=Yn;switch(Kn){case 1:Qn.push(Yn);break;case 2:{const ea=Qn.find(Xn=>Xn.path===Jn);ea&&(ea.children??(ea.children=[])).push(Yn);break}default:{const ea=Qn.find(Xn=>Xn.path===Jn.replace(/\/[^/]+\/$/,"/"));if(ea){const Xn=(Zn=ea.children)==null?void 0:Zn.find(ta=>ta.path===Jn);Xn&&(Xn.children??(Xn.children=[])).push(Yn)}}}}),Qn},qn=computed(()=>Fn());return()=>h$3("div",{class:"catalog-wrapper"},[h$3("h2",{class:"main-title"},$.value.title),...qn.value.map(({children:Wn=[],icon:Gn,path:Qn,title:Yn},Zn)=>[h$3("h3",{id:Yn,class:["child-title",{"has-children":Wn.length}]},[h$3("a",{href:`#${Yn}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:Qn},()=>[Gn?h$3(f$1,{icon:Gn}):null,`${Zn+1}. ${Yn||"Unknown"}`])]),Wn.length?h$3("ul",{class:"child-catalog-wrapper"},Wn.map(({children:Jn=[],icon:Kn,path:ea,title:Xn},ta)=>h$3("li",{class:"child-catalog-item"},[h$3("div",{class:["sub-title",{"has-children":Jn.length}]},[h$3("a",{href:`#${Xn}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:ea},()=>[Kn?h$3(f$1,{icon:Kn}):null,`${Zn+1}.${ta+1} ${Xn||"Unknown"}`])]),Jn.length?h$3("div",{class:"sub-catalog-wrapper"},Jn.map(({icon:na,path:ra,title:ca},pa)=>h$3(RouterLink,{class:"sub-catalog-item",to:ra},()=>[na?h$3(f$1,{icon:na}):null,`${Zn+1}.${ta+1}.${pa+1} ${ca||"Unknown"}`]))):null]))):null])])}});const Catalog=Object.freeze(Object.defineProperty({__proto__:null,default:S$6},Symbol.toStringTag,{value:"Module"})),backToTop="",a$5=()=>h$3(P$5,{name:"back-to-top"},()=>[h$3("path",{d:"M512 843.2c-36.2 0-66.4-13.6-85.8-21.8-10.8-4.6-22.6 3.6-21.8 15.2l7 102c.4 6.2 7.6 9.4 12.6 5.6l29-22c3.6-2.8 9-1.8 11.4 2l41 64.2c3 4.8 10.2 4.8 13.2 0l41-64.2c2.4-3.8 7.8-4.8 11.4-2l29 22c5 3.8 12.2.6 12.6-5.6l7-102c.8-11.6-11-20-21.8-15.2-19.6 8.2-49.6 21.8-85.8 21.8z"}),h$3("path",{d:"m795.4 586.2-96-98.2C699.4 172 513 32 513 32S324.8 172 324.8 488l-96 98.2c-3.6 3.6-5.2 9-4.4 14.2L261.2 824c1.8 11.4 14.2 17 23.6 10.8L419 744s41.4 40 94.2 40c52.8 0 92.2-40 92.2-40l134.2 90.8c9.2 6.2 21.6.6 23.6-10.8l37-223.8c.4-5.2-1.2-10.4-4.8-14zM513 384c-34 0-61.4-28.6-61.4-64s27.6-64 61.4-64c34 0 61.4 28.6 61.4 64S547 384 513 384z"})]);a$5.displayName="BackToTopIcon";var h$2=defineComponent({name:"BackToTop",props:{threshold:{type:Number,default:300}},setup(b){const $=usePageFrontmatter(),j=kt$1({"/en/":{backToTop:"Back to top"},"/":{backToTop:"返回顶部"}}),U=ref(0),Bn=computed(()=>$.value.backToTop!==!1&&U.value>b.threshold),Fn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return onMounted(()=>{U.value=Fn()}),useEventListener("scroll",useDebounceFn(()=>{U.value=Fn()},100)),()=>h$3(Transition,{name:"fade"},()=>Bn.value?h$3("button",{class:"back-to-top","aria-label":j.value.backToTop,"data-balloon-pos":"left",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),U.value=0}},h$3(a$5)):null)}});const srOnly="",clientConfig1=defineClientConfig({enhance:({app:b})=>{_t$1("FontIcon")||b.component("FontIcon",s$3),_t$1("Catalog")||b.component("Catalog",S$6)},setup:()=>{useStyleTag('@import url("//at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css");',{id:"icon-assets"})},rootComponents:[()=>h$3(h$2,{threshold:300})]});function r$4(b,$,j){var U,Bn,Fn;$===void 0&&($=50),j===void 0&&(j={});var qn=(U=j.isImmediate)!=null&&U,Wn=(Bn=j.callback)!=null&&Bn,Gn=j.maxWait,Qn=Date.now(),Yn=[];function Zn(){if(Gn!==void 0){var Kn=Date.now()-Qn;if(Kn+$>=Gn)return Gn-Kn}return $}var Jn=function(){var Kn=[].slice.call(arguments),ea=this;return new Promise(function(Xn,ta){var na=qn&&Fn===void 0;if(Fn!==void 0&&clearTimeout(Fn),Fn=setTimeout(function(){if(Fn=void 0,Qn=Date.now(),!qn){var ca=b.apply(ea,Kn);Wn&&Wn(ca),Yn.forEach(function(pa){return(0,pa.resolve)(ca)}),Yn=[]}},Zn()),na){var ra=b.apply(ea,Kn);return Wn&&Wn(ra),Xn(ra)}Yn.push({resolve:Xn,reject:ta})})};return Jn.cancel=function(Kn){Fn!==void 0&&clearTimeout(Fn),Yn.forEach(function(ea){return(0,ea.reject)(Kn)}),Yn=[]},Jn}const useActiveHeaderLinks=({headerLinkSelector:b,headerAnchorSelector:$,delay:j,offset:U=5})=>{const Bn=useRouter(),qn=r$4(()=>{var Xn,ta;const Wn=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(Wn-0)<U){updateHash(Bn,"");return}const Qn=window.innerHeight+Wn,Yn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),Zn=Math.abs(Yn-Qn)<U,Jn=Array.from(document.querySelectorAll(b)),ea=Array.from(document.querySelectorAll($)).filter(na=>Jn.some(ra=>ra.hash===na.hash));for(let na=0;na<ea.length;na++){const ra=ea[na],ca=ea[na+1],pa=Wn>=(((Xn=ra.parentElement)==null?void 0:Xn.offsetTop)??0)-U,va=!ca||Wn<(((ta=ca.parentElement)==null?void 0:ta.offsetTop)??0)-U;if(!(pa&&va))continue;const ia=decodeURIComponent(Bn.currentRoute.value.hash),la=decodeURIComponent(ra.hash);if(ia===la)return;if(Zn){for(let ya=na+1;ya<ea.length;ya++)if(ia===decodeURIComponent(ea[ya].hash))return}updateHash(Bn,la);return}},j);onMounted(()=>{window.addEventListener("scroll",qn)}),onBeforeUnmount(()=>{window.removeEventListener("scroll",qn)})},updateHash=async(b,$)=>{const{scrollBehavior:j}=b.options;b.options.scrollBehavior=void 0,await b.replace({query:b.currentRoute.value.query,hash:$,force:!0}).finally(()=>b.options.scrollBehavior=j)},headerLinkSelector=".sidebar-link, .toc-link",headerAnchorSelector=".header-anchor",delay=200,offset=5,clientConfig2=defineClientConfig({setup(){useActiveHeaderLinks({headerLinkSelector,headerAnchorSelector,delay,offset})}});var a$4=defineClientConfig({enhance:({app:b})=>{!_t$1("AutoCatalog",b)&&b.component("AutoCatalog",defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>Catalog),void 0)))}});const vars$1="",externalLinkIcon="",svg=h$3("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[h$3("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),h$3("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),ExternalLinkIcon=defineComponent({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(b){const $=useRouteLocale(),j=computed(()=>b.locales[$.value]??{openInNewWindow:"open in new window"});return()=>h$3("span",[svg,h$3("span",{class:"external-link-icon-sr-only"},j.value.openInNewWindow)])}}),locales={},clientConfig4=defineClientConfig({enhance({app:b}){b.component("ExternalLinkIcon",h$3(ExternalLinkIcon,{locales}))}});/**
|
||
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT
|
||
*/const nprogress$1={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:b=>{const $=nprogress$1.isStarted();b=clamp(b,nprogress$1.settings.minimum,1),nprogress$1.status=b===1?null:b;const j=nprogress$1.render(!$),U=j.querySelector(nprogress$1.settings.barSelector),Bn=nprogress$1.settings.speed,Fn=nprogress$1.settings.easing;return j.offsetWidth,queue(qn=>{css(U,{transform:"translate3d("+toBarPerc(b)+"%,0,0)",transition:"all "+Bn+"ms "+Fn}),b===1?(css(j,{transition:"none",opacity:"1"}),j.offsetWidth,setTimeout(function(){css(j,{transition:"all "+Bn+"ms linear",opacity:"0"}),setTimeout(function(){nprogress$1.remove(),qn()},Bn)},Bn)):setTimeout(()=>qn(),Bn)}),nprogress$1},isStarted:()=>typeof nprogress$1.status=="number",start:()=>{nprogress$1.status||nprogress$1.set(0);const b=()=>{setTimeout(()=>{nprogress$1.status&&(nprogress$1.trickle(),b())},nprogress$1.settings.trickleSpeed)};return nprogress$1.settings.trickle&&b(),nprogress$1},done:b=>!b&&!nprogress$1.status?nprogress$1:nprogress$1.inc(.3+.5*Math.random()).set(1),inc:b=>{let $=nprogress$1.status;return $?(typeof b!="number"&&(b=(1-$)*clamp(Math.random()*$,.1,.95)),$=clamp($+b,0,.994),nprogress$1.set($)):nprogress$1.start()},trickle:()=>nprogress$1.inc(Math.random()*nprogress$1.settings.trickleRate),render:b=>{if(nprogress$1.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");const $=document.createElement("div");$.id="nprogress",$.innerHTML=nprogress$1.settings.template;const j=$.querySelector(nprogress$1.settings.barSelector),U=b?"-100":toBarPerc(nprogress$1.status||0),Bn=document.querySelector(nprogress$1.settings.parent);return css(j,{transition:"all 0 linear",transform:"translate3d("+U+"%,0,0)"}),Bn!==document.body&&addClass(Bn,"nprogress-custom-parent"),Bn==null||Bn.appendChild($),$},remove:()=>{removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(nprogress$1.settings.parent),"nprogress-custom-parent");const b=document.getElementById("nprogress");b&&removeElement(b)},isRendered:()=>!!document.getElementById("nprogress")},clamp=(b,$,j)=>b<$?$:b>j?j:b,toBarPerc=b=>(-1+b)*100,queue=function(){const b=[];function $(){const j=b.shift();j&&j($)}return function(j){b.push(j),b.length===1&&$()}}(),css=function(){const b=["Webkit","O","Moz","ms"],$={};function j(qn){return qn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Wn,Gn){return Gn.toUpperCase()})}function U(qn){const Wn=document.body.style;if(qn in Wn)return qn;let Gn=b.length;const Qn=qn.charAt(0).toUpperCase()+qn.slice(1);let Yn;for(;Gn--;)if(Yn=b[Gn]+Qn,Yn in Wn)return Yn;return qn}function Bn(qn){return qn=j(qn),$[qn]||($[qn]=U(qn))}function Fn(qn,Wn,Gn){Wn=Bn(Wn),qn.style[Wn]=Gn}return function(qn,Wn){for(const Gn in Wn){const Qn=Wn[Gn];Qn!==void 0&&Object.prototype.hasOwnProperty.call(Wn,Gn)&&Fn(qn,Gn,Qn)}}}(),hasClass=(b,$)=>(typeof b=="string"?b:classList(b)).indexOf(" "+$+" ")>=0,addClass=(b,$)=>{const j=classList(b),U=j+$;hasClass(j,$)||(b.className=U.substring(1))},removeClass=(b,$)=>{const j=classList(b);if(!hasClass(b,$))return;const U=j.replace(" "+$+" "," ");b.className=U.substring(1,U.length-1)},classList=b=>(" "+(b.className||"")+" ").replace(/\s+/gi," "),removeElement=b=>{b&&b.parentNode&&b.parentNode.removeChild(b)},vars="",nprogress="",useNprogress=()=>{onMounted(()=>{const b=useRouter(),$=new Set;$.add(b.currentRoute.value.path),b.beforeEach(j=>{$.has(j.path)||nprogress$1.start()}),b.afterEach(j=>{$.add(j.path),nprogress$1.done()})})},clientConfig5=defineClientConfig({setup(){useNprogress()}}),themeData$1=JSON.parse(`{"encrypt":{},"locales":{"/en/":{"lang":"en-US","navbarLocales":{"langName":"English","selectLangAriaLabel":"Select language"},"metaLocales":{"author":"Author","date":"Writing Date","origin":"Original","views":"Page views","category":"Category","tag":"Tag","readingTime":"Reading Time","words":"Words","toc":"On This Page","prev":"Prev","next":"Next","lastUpdated":"Last update","contributors":"Contributors","editLink":"Edit this page on GitHub"},"outlookLocales":{"themeColor":"Theme Color","darkmode":"Theme Mode","fullscreen":"Full Screen"},"encryptLocales":{"iconLabel":"Page Encrypted","placeholder":"Enter password","remember":"Remember password","errorHint":"Please enter the correct password!"},"routeLocales":{"skipToContent":"Skip to main content","notFoundMsg":["There’s nothing here.","How did we get here?","That’s a Four-Oh-Four.","Looks like we've got some broken links."],"back":"Go back","home":"Take me home","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/en",{"text":"Document","icon":"article","link":"/features/README.md"},{"text":"Download","icon":"install","link":"https://d.hut.ao"}],"sidebar":{"/en/":["",{"icon":"play","text":"快速开始","link":"quick-start.md"}]},"footer":"Be the best Genshin Impact tool","displayFooter":true},"/":{"lang":"zh-CN","navbarLocales":{"langName":"简体中文","selectLangAriaLabel":"选择语言"},"metaLocales":{"author":"作者","date":"写作日期","origin":"原创","views":"访问量","category":"分类","tag":"标签","readingTime":"阅读时间","words":"字数","toc":"此页内容","prev":"上一页","next":"下一页","lastUpdated":"上次编辑于","contributors":"贡献者","editLink":"在 GitHub 上编辑此页"},"outlookLocales":{"themeColor":"主题色","darkmode":"外观","fullscreen":"全屏"},"encryptLocales":{"iconLabel":"文章已加密","placeholder":"输入密码","remember":"记住密码","errorHint":"请输入正确的密码"},"routeLocales":{"skipToContent":"跳至主要內容","notFoundMsg":["这里什么也没有","我们是怎么来到这儿的?","这 是 四 零 四 !","看起来你访问了一个失效的链接"],"back":"返回上一页","home":"带我回家","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/",{"text":"文档","icon":"article","link":"/features/README.md"},{"text":"下载","icon":"install","link":"https://d.hut.ao"},{"text":"加入社区讨论","icon":"community","link":"/community.md"}],"sidebar":{"/":["",{"icon":"workingDirectory","text":"项目介绍","link":"project.md"},{"icon":"play","text":"快速开始","link":"quick-start.md"},{"icon":"read","text":"功能指南","prefix":"features/","children":"structure"},{"icon":"ask","text":"常见问题","prefix":"FAQ/","children":"structure"},{"icon":"article","text":"声明和公告","prefix":"statements/","children":"structure"}]},"footer":"做最好的原神工具","displayFooter":true}}}`),themeData=ref(themeData$1),useThemeData$1=()=>themeData,themeLocaleDataSymbol=Symbol(""),useThemeLocaleData$1=()=>{const b=inject(themeLocaleDataSymbol);if(!b)throw new Error("useThemeLocaleData() is called without provider.");return b},resolveThemeLocaleData=(b,$)=>{var j;return{...b,...(j=b.locales)==null?void 0:j[$]}},clientConfig6=defineClientConfig({enhance({app:b}){const $=useThemeData$1(),j=b._context.provides[routeLocaleSymbol],U=computed(()=>resolveThemeLocaleData($.value,j.value));b.provide(themeLocaleDataSymbol,U),Object.defineProperties(b.config.globalProperties,{$theme:{get(){return $.value}},$themeLocale:{get(){return U.value}}})}});var e$2,t$2,n$2=typeof Map=="function"?new Map:(e$2=[],t$2=[],{has:function(b){return e$2.indexOf(b)>-1},get:function(b){return t$2[e$2.indexOf(b)]},set:function(b,$){e$2.indexOf(b)===-1&&(e$2.push(b),t$2.push($))},delete:function(b){var $=e$2.indexOf(b);$>-1&&(e$2.splice($,1),t$2.splice($,1))}}),o$3=function(b){return new Event(b,{bubbles:!0})};try{new Event("test")}catch{o$3=function($){var j=document.createEvent("Event");return j.initEvent($,!0,!1),j}}function r$3(b){var $=n$2.get(b);$&&$.destroy()}function i$4(b){var $=n$2.get(b);$&&$.update()}var l$3=null;typeof window>"u"||typeof window.getComputedStyle!="function"?((l$3=function(b){return b}).destroy=function(b){return b},l$3.update=function(b){return b}):((l$3=function(b,$){return b&&Array.prototype.forEach.call(b.length?b:[b],function(j){return function(U){if(U&&U.nodeName&&U.nodeName==="TEXTAREA"&&!n$2.has(U)){var Bn,Fn=null,qn=null,Wn=null,Gn=function(){U.clientWidth!==qn&&Jn()},Qn=function(Kn){window.removeEventListener("resize",Gn,!1),U.removeEventListener("input",Jn,!1),U.removeEventListener("keyup",Jn,!1),U.removeEventListener("autosize:destroy",Qn,!1),U.removeEventListener("autosize:update",Jn,!1),Object.keys(Kn).forEach(function(ea){U.style[ea]=Kn[ea]}),n$2.delete(U)}.bind(U,{height:U.style.height,resize:U.style.resize,overflowY:U.style.overflowY,overflowX:U.style.overflowX,wordWrap:U.style.wordWrap});U.addEventListener("autosize:destroy",Qn,!1),"onpropertychange"in U&&"oninput"in U&&U.addEventListener("keyup",Jn,!1),window.addEventListener("resize",Gn,!1),U.addEventListener("input",Jn,!1),U.addEventListener("autosize:update",Jn,!1),U.style.overflowX="hidden",U.style.wordWrap="break-word",n$2.set(U,{destroy:Qn,update:Jn}),(Bn=window.getComputedStyle(U,null)).resize==="vertical"?U.style.resize="none":Bn.resize==="both"&&(U.style.resize="horizontal"),Fn=Bn.boxSizing==="content-box"?-(parseFloat(Bn.paddingTop)+parseFloat(Bn.paddingBottom)):parseFloat(Bn.borderTopWidth)+parseFloat(Bn.borderBottomWidth),isNaN(Fn)&&(Fn=0),Jn()}function Yn(Kn){var ea=U.style.width;U.style.width="0px",U.style.width=ea,U.style.overflowY=Kn}function Zn(){if(U.scrollHeight!==0){var Kn=function(ea){for(var Xn=[];ea&&ea.parentNode&&ea.parentNode instanceof Element;)ea.parentNode.scrollTop&&(ea.parentNode.style.scrollBehavior="auto",Xn.push([ea.parentNode,ea.parentNode.scrollTop])),ea=ea.parentNode;return function(){return Xn.forEach(function(ta){var na=ta[0];na.scrollTop=ta[1],na.style.scrollBehavior=null})}}(U);U.style.height="",U.style.height=U.scrollHeight+Fn+"px",qn=U.clientWidth,Kn()}}function Jn(){Zn();var Kn=Math.round(parseFloat(U.style.height)),ea=window.getComputedStyle(U,null),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(ea.height)):U.offsetHeight;if(Xn<Kn?ea.overflowY==="hidden"&&(Yn("scroll"),Zn(),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(U,null).height)):U.offsetHeight):ea.overflowY!=="hidden"&&(Yn("hidden"),Zn(),Xn=ea.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(U,null).height)):U.offsetHeight),Wn!==Xn){Wn=Xn;var ta=o$3("autosize:resized");try{U.dispatchEvent(ta)}catch{}}}}(j)}),b}).destroy=function(b){return b&&Array.prototype.forEach.call(b.length?b:[b],r$3),b},l$3.update=function(b){return b&&Array.prototype.forEach.call(b.length?b:[b],i$4),b});var a$3=l$3;function getDefaults(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults=getDefaults();function changeDefaults(b){defaults=b}const escapeTest=/[&<>"']/,escapeReplace=new RegExp(escapeTest.source,"g"),escapeTestNoEncode=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode=new RegExp(escapeTestNoEncode.source,"g"),escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=b=>escapeReplacements[b];function escape(b,$){if($){if(escapeTest.test(b))return b.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(b))return b.replace(escapeReplaceNoEncode,getEscapeReplacement);return b}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape(b){return b.replace(unescapeTest,($,j)=>(j=j.toLowerCase(),j==="colon"?":":j.charAt(0)==="#"?j.charAt(1)==="x"?String.fromCharCode(parseInt(j.substring(2),16)):String.fromCharCode(+j.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit(b,$){b=typeof b=="string"?b:b.source,$=$||"";const j={replace:(U,Bn)=>(Bn=Bn.source||Bn,Bn=Bn.replace(caret,"$1"),b=b.replace(U,Bn),j),getRegex:()=>new RegExp(b,$)};return j}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(b,$,j){if(b){let U;try{U=decodeURIComponent(unescape(j)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(U.indexOf("javascript:")===0||U.indexOf("vbscript:")===0||U.indexOf("data:")===0)return null}$&&!originIndependentUrl.test(j)&&(j=resolveUrl($,j));try{j=encodeURI(j).replace(/%25/g,"%")}catch{return null}return j}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(b,$){baseUrls[" "+b]||(justDomain.test(b)?baseUrls[" "+b]=b+"/":baseUrls[" "+b]=rtrim(b,"/",!0)),b=baseUrls[" "+b];const j=b.indexOf(":")===-1;return $.substring(0,2)==="//"?j?$:b.replace(protocol,"$1")+$:$.charAt(0)==="/"?j?$:b.replace(domain,"$1")+$:b+$}const noopTest={exec:function(){}};function merge(b){let $=1,j,U;for(;$<arguments.length;$++){j=arguments[$];for(U in j)Object.prototype.hasOwnProperty.call(j,U)&&(b[U]=j[U])}return b}function splitCells(b,$){const j=b.replace(/\|/g,(Fn,qn,Wn)=>{let Gn=!1,Qn=qn;for(;--Qn>=0&&Wn[Qn]==="\\";)Gn=!Gn;return Gn?"|":" |"}),U=j.split(/ \|/);let Bn=0;if(U[0].trim()||U.shift(),U.length>0&&!U[U.length-1].trim()&&U.pop(),U.length>$)U.splice($);else for(;U.length<$;)U.push("");for(;Bn<U.length;Bn++)U[Bn]=U[Bn].trim().replace(/\\\|/g,"|");return U}function rtrim(b,$,j){const U=b.length;if(U===0)return"";let Bn=0;for(;Bn<U;){const Fn=b.charAt(U-Bn-1);if(Fn===$&&!j)Bn++;else if(Fn!==$&&j)Bn++;else break}return b.slice(0,U-Bn)}function findClosingBracket(b,$){if(b.indexOf($[1])===-1)return-1;const j=b.length;let U=0,Bn=0;for(;Bn<j;Bn++)if(b[Bn]==="\\")Bn++;else if(b[Bn]===$[0])U++;else if(b[Bn]===$[1]&&(U--,U<0))return Bn;return-1}function checkSanitizeDeprecation(b){b&&b.sanitize&&!b.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(b,$){if($<1)return"";let j="";for(;$>1;)$&1&&(j+=b),$>>=1,b+=b;return j+b}function outputLink(b,$,j,U){const Bn=$.href,Fn=$.title?escape($.title):null,qn=b[1].replace(/\\([\[\]])/g,"$1");if(b[0].charAt(0)!=="!"){U.state.inLink=!0;const Wn={type:"link",raw:j,href:Bn,title:Fn,text:qn,tokens:U.inlineTokens(qn)};return U.state.inLink=!1,Wn}return{type:"image",raw:j,href:Bn,title:Fn,text:escape(qn)}}function indentCodeCompensation(b,$){const j=b.match(/^(\s+)(?:```)/);if(j===null)return $;const U=j[1];return $.split(`
|
||
`).map(Bn=>{const Fn=Bn.match(/^\s+/);if(Fn===null)return Bn;const[qn]=Fn;return qn.length>=U.length?Bn.slice(U.length):Bn}).join(`
|
||
`)}class Tokenizer{constructor($){this.options=$||defaults}space($){const j=this.rules.block.newline.exec($);if(j&&j[0].length>0)return{type:"space",raw:j[0]}}code($){const j=this.rules.block.code.exec($);if(j){const U=j[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:j[0],codeBlockStyle:"indented",text:this.options.pedantic?U:rtrim(U,`
|
||
`)}}}fences($){const j=this.rules.block.fences.exec($);if(j){const U=j[0],Bn=indentCodeCompensation(U,j[3]||"");return{type:"code",raw:U,lang:j[2]?j[2].trim().replace(this.rules.inline._escapes,"$1"):j[2],text:Bn}}}heading($){const j=this.rules.block.heading.exec($);if(j){let U=j[2].trim();if(/#$/.test(U)){const Bn=rtrim(U,"#");(this.options.pedantic||!Bn||/ $/.test(Bn))&&(U=Bn.trim())}return{type:"heading",raw:j[0],depth:j[1].length,text:U,tokens:this.lexer.inline(U)}}}hr($){const j=this.rules.block.hr.exec($);if(j)return{type:"hr",raw:j[0]}}blockquote($){const j=this.rules.block.blockquote.exec($);if(j){const U=j[0].replace(/^ *>[ \t]?/gm,""),Bn=this.lexer.state.top;this.lexer.state.top=!0;const Fn=this.lexer.blockTokens(U);return this.lexer.state.top=Bn,{type:"blockquote",raw:j[0],tokens:Fn,text:U}}}list($){let j=this.rules.block.list.exec($);if(j){let U,Bn,Fn,qn,Wn,Gn,Qn,Yn,Zn,Jn,Kn,ea,Xn=j[1].trim();const ta=Xn.length>1,na={type:"list",raw:"",ordered:ta,start:ta?+Xn.slice(0,-1):"",loose:!1,items:[]};Xn=ta?`\\d{1,9}\\${Xn.slice(-1)}`:`\\${Xn}`,this.options.pedantic&&(Xn=ta?Xn:"[*+-]");const ra=new RegExp(`^( {0,3}${Xn})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;$&&(ea=!1,!(!(j=ra.exec($))||this.rules.block.hr.test($)));){if(U=j[0],$=$.substring(U.length),Yn=j[2].split(`
|
||
`,1)[0].replace(/^\t+/,pa=>" ".repeat(3*pa.length)),Zn=$.split(`
|
||
`,1)[0],this.options.pedantic?(qn=2,Kn=Yn.trimLeft()):(qn=j[2].search(/[^ ]/),qn=qn>4?1:qn,Kn=Yn.slice(qn),qn+=j[1].length),Gn=!1,!Yn&&/^ *$/.test(Zn)&&(U+=Zn+`
|
||
`,$=$.substring(Zn.length+1),ea=!0),!ea){const pa=new RegExp(`^ {0,${Math.min(3,qn-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),va=new RegExp(`^ {0,${Math.min(3,qn-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ga=new RegExp(`^ {0,${Math.min(3,qn-1)}}(?:\`\`\`|~~~)`),ia=new RegExp(`^ {0,${Math.min(3,qn-1)}}#`);for(;$&&(Jn=$.split(`
|
||
`,1)[0],Zn=Jn,this.options.pedantic&&(Zn=Zn.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ga.test(Zn)||ia.test(Zn)||pa.test(Zn)||va.test($)));){if(Zn.search(/[^ ]/)>=qn||!Zn.trim())Kn+=`
|
||
`+Zn.slice(qn);else{if(Gn||Yn.search(/[^ ]/)>=4||ga.test(Yn)||ia.test(Yn)||va.test(Yn))break;Kn+=`
|
||
`+Zn}!Gn&&!Zn.trim()&&(Gn=!0),U+=Jn+`
|
||
`,$=$.substring(Jn.length+1),Yn=Zn.slice(qn)}}na.loose||(Qn?na.loose=!0:/\n *\n *$/.test(U)&&(Qn=!0)),this.options.gfm&&(Bn=/^\[[ xX]\] /.exec(Kn),Bn&&(Fn=Bn[0]!=="[ ] ",Kn=Kn.replace(/^\[[ xX]\] +/,""))),na.items.push({type:"list_item",raw:U,task:!!Bn,checked:Fn,loose:!1,text:Kn}),na.raw+=U}na.items[na.items.length-1].raw=U.trimRight(),na.items[na.items.length-1].text=Kn.trimRight(),na.raw=na.raw.trimRight();const ca=na.items.length;for(Wn=0;Wn<ca;Wn++)if(this.lexer.state.top=!1,na.items[Wn].tokens=this.lexer.blockTokens(na.items[Wn].text,[]),!na.loose){const pa=na.items[Wn].tokens.filter(ga=>ga.type==="space"),va=pa.length>0&&pa.some(ga=>/\n.*\n/.test(ga.raw));na.loose=va}if(na.loose)for(Wn=0;Wn<ca;Wn++)na.items[Wn].loose=!0;return na}}html($){const j=this.rules.block.html.exec($);if(j){const U={type:"html",raw:j[0],pre:!this.options.sanitizer&&(j[1]==="pre"||j[1]==="script"||j[1]==="style"),text:j[0]};if(this.options.sanitize){const Bn=this.options.sanitizer?this.options.sanitizer(j[0]):escape(j[0]);U.type="paragraph",U.text=Bn,U.tokens=this.lexer.inline(Bn)}return U}}def($){const j=this.rules.block.def.exec($);if(j){const U=j[1].toLowerCase().replace(/\s+/g," "),Bn=j[2]?j[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",Fn=j[3]?j[3].substring(1,j[3].length-1).replace(this.rules.inline._escapes,"$1"):j[3];return{type:"def",tag:U,raw:j[0],href:Bn,title:Fn}}}table($){const j=this.rules.block.table.exec($);if(j){const U={type:"table",header:splitCells(j[1]).map(Bn=>({text:Bn})),align:j[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:j[3]&&j[3].trim()?j[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(U.header.length===U.align.length){U.raw=j[0];let Bn=U.align.length,Fn,qn,Wn,Gn;for(Fn=0;Fn<Bn;Fn++)/^ *-+: *$/.test(U.align[Fn])?U.align[Fn]="right":/^ *:-+: *$/.test(U.align[Fn])?U.align[Fn]="center":/^ *:-+ *$/.test(U.align[Fn])?U.align[Fn]="left":U.align[Fn]=null;for(Bn=U.rows.length,Fn=0;Fn<Bn;Fn++)U.rows[Fn]=splitCells(U.rows[Fn],U.header.length).map(Qn=>({text:Qn}));for(Bn=U.header.length,qn=0;qn<Bn;qn++)U.header[qn].tokens=this.lexer.inline(U.header[qn].text);for(Bn=U.rows.length,qn=0;qn<Bn;qn++)for(Gn=U.rows[qn],Wn=0;Wn<Gn.length;Wn++)Gn[Wn].tokens=this.lexer.inline(Gn[Wn].text);return U}}}lheading($){const j=this.rules.block.lheading.exec($);if(j)return{type:"heading",raw:j[0],depth:j[2].charAt(0)==="="?1:2,text:j[1],tokens:this.lexer.inline(j[1])}}paragraph($){const j=this.rules.block.paragraph.exec($);if(j){const U=j[1].charAt(j[1].length-1)===`
|
||
`?j[1].slice(0,-1):j[1];return{type:"paragraph",raw:j[0],text:U,tokens:this.lexer.inline(U)}}}text($){const j=this.rules.block.text.exec($);if(j)return{type:"text",raw:j[0],text:j[0],tokens:this.lexer.inline(j[0])}}escape($){const j=this.rules.inline.escape.exec($);if(j)return{type:"escape",raw:j[0],text:escape(j[1])}}tag($){const j=this.rules.inline.tag.exec($);if(j)return!this.lexer.state.inLink&&/^<a /i.test(j[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(j[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(j[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(j[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:j[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):escape(j[0]):j[0]}}link($){const j=this.rules.inline.link.exec($);if(j){const U=j[2].trim();if(!this.options.pedantic&&/^</.test(U)){if(!/>$/.test(U))return;const qn=rtrim(U.slice(0,-1),"\\");if((U.length-qn.length)%2===0)return}else{const qn=findClosingBracket(j[2],"()");if(qn>-1){const Gn=(j[0].indexOf("!")===0?5:4)+j[1].length+qn;j[2]=j[2].substring(0,qn),j[0]=j[0].substring(0,Gn).trim(),j[3]=""}}let Bn=j[2],Fn="";if(this.options.pedantic){const qn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Bn);qn&&(Bn=qn[1],Fn=qn[3])}else Fn=j[3]?j[3].slice(1,-1):"";return Bn=Bn.trim(),/^</.test(Bn)&&(this.options.pedantic&&!/>$/.test(U)?Bn=Bn.slice(1):Bn=Bn.slice(1,-1)),outputLink(j,{href:Bn&&Bn.replace(this.rules.inline._escapes,"$1"),title:Fn&&Fn.replace(this.rules.inline._escapes,"$1")},j[0],this.lexer)}}reflink($,j){let U;if((U=this.rules.inline.reflink.exec($))||(U=this.rules.inline.nolink.exec($))){let Bn=(U[2]||U[1]).replace(/\s+/g," ");if(Bn=j[Bn.toLowerCase()],!Bn){const Fn=U[0].charAt(0);return{type:"text",raw:Fn,text:Fn}}return outputLink(U,Bn,U[0],this.lexer)}}emStrong($,j,U=""){let Bn=this.rules.inline.emStrong.lDelim.exec($);if(!Bn||Bn[3]&&U.match(/[\p{L}\p{N}]/u))return;const Fn=Bn[1]||Bn[2]||"";if(!Fn||Fn&&(U===""||this.rules.inline.punctuation.exec(U))){const qn=Bn[0].length-1;let Wn,Gn,Qn=qn,Yn=0;const Zn=Bn[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Zn.lastIndex=0,j=j.slice(-1*$.length+qn);(Bn=Zn.exec(j))!=null;){if(Wn=Bn[1]||Bn[2]||Bn[3]||Bn[4]||Bn[5]||Bn[6],!Wn)continue;if(Gn=Wn.length,Bn[3]||Bn[4]){Qn+=Gn;continue}else if((Bn[5]||Bn[6])&&qn%3&&!((qn+Gn)%3)){Yn+=Gn;continue}if(Qn-=Gn,Qn>0)continue;Gn=Math.min(Gn,Gn+Qn+Yn);const Jn=$.slice(0,qn+Bn.index+(Bn[0].length-Wn.length)+Gn);if(Math.min(qn,Gn)%2){const ea=Jn.slice(1,-1);return{type:"em",raw:Jn,text:ea,tokens:this.lexer.inlineTokens(ea)}}const Kn=Jn.slice(2,-2);return{type:"strong",raw:Jn,text:Kn,tokens:this.lexer.inlineTokens(Kn)}}}}codespan($){const j=this.rules.inline.code.exec($);if(j){let U=j[2].replace(/\n/g," ");const Bn=/[^ ]/.test(U),Fn=/^ /.test(U)&&/ $/.test(U);return Bn&&Fn&&(U=U.substring(1,U.length-1)),U=escape(U,!0),{type:"codespan",raw:j[0],text:U}}}br($){const j=this.rules.inline.br.exec($);if(j)return{type:"br",raw:j[0]}}del($){const j=this.rules.inline.del.exec($);if(j)return{type:"del",raw:j[0],text:j[2],tokens:this.lexer.inlineTokens(j[2])}}autolink($,j){const U=this.rules.inline.autolink.exec($);if(U){let Bn,Fn;return U[2]==="@"?(Bn=escape(this.options.mangle?j(U[1]):U[1]),Fn="mailto:"+Bn):(Bn=escape(U[1]),Fn=Bn),{type:"link",raw:U[0],text:Bn,href:Fn,tokens:[{type:"text",raw:Bn,text:Bn}]}}}url($,j){let U;if(U=this.rules.inline.url.exec($)){let Bn,Fn;if(U[2]==="@")Bn=escape(this.options.mangle?j(U[0]):U[0]),Fn="mailto:"+Bn;else{let qn;do qn=U[0],U[0]=this.rules.inline._backpedal.exec(U[0])[0];while(qn!==U[0]);Bn=escape(U[0]),U[1]==="www."?Fn="http://"+U[0]:Fn=U[0]}return{type:"link",raw:U[0],text:Bn,href:Fn,tokens:[{type:"text",raw:Bn,text:Bn}]}}}inlineText($,j){const U=this.rules.inline.text.exec($);if(U){let Bn;return this.lexer.state.inRawBlock?Bn=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(U[0]):escape(U[0]):U[0]:Bn=escape(this.options.smartypants?j(U[0]):U[0]),{type:"text",raw:U[0],text:Bn}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic=merge({},block.normal,{html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function smartypants(b){return b.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mangle(b){let $="",j,U;const Bn=b.length;for(j=0;j<Bn;j++)U=b.charCodeAt(j),Math.random()>.5&&(U="x"+U.toString(16)),$+="&#"+U+";";return $}class Lexer{constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||defaults,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const j={block:block.normal,inline:inline.normal};this.options.pedantic?(j.block=block.pedantic,j.inline=inline.pedantic):this.options.gfm&&(j.block=block.gfm,this.options.breaks?j.inline=inline.breaks:j.inline=inline.gfm),this.tokenizer.rules=j}static get rules(){return{block,inline}}static lex($,j){return new Lexer(j).lex($)}static lexInline($,j){return new Lexer(j).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens($,this.tokens);let j;for(;j=this.inlineQueue.shift();)this.inlineTokens(j.src,j.tokens);return this.tokens}blockTokens($,j=[]){this.options.pedantic?$=$.replace(/\t/g," ").replace(/^ +$/gm,""):$=$.replace(/^( *)(\t+)/gm,(Wn,Gn,Qn)=>Gn+" ".repeat(Qn.length));let U,Bn,Fn,qn;for(;$;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Wn=>(U=Wn.call({lexer:this},$,j))?($=$.substring(U.raw.length),j.push(U),!0):!1))){if(U=this.tokenizer.space($)){$=$.substring(U.raw.length),U.raw.length===1&&j.length>0?j[j.length-1].raw+=`
|
||
`:j.push(U);continue}if(U=this.tokenizer.code($)){$=$.substring(U.raw.length),Bn=j[j.length-1],Bn&&(Bn.type==="paragraph"||Bn.type==="text")?(Bn.raw+=`
|
||
`+U.raw,Bn.text+=`
|
||
`+U.text,this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U);continue}if(U=this.tokenizer.fences($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.heading($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.hr($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.blockquote($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.list($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.html($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.def($)){$=$.substring(U.raw.length),Bn=j[j.length-1],Bn&&(Bn.type==="paragraph"||Bn.type==="text")?(Bn.raw+=`
|
||
`+U.raw,Bn.text+=`
|
||
`+U.raw,this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):this.tokens.links[U.tag]||(this.tokens.links[U.tag]={href:U.href,title:U.title});continue}if(U=this.tokenizer.table($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.lheading($)){$=$.substring(U.raw.length),j.push(U);continue}if(Fn=$,this.options.extensions&&this.options.extensions.startBlock){let Wn=1/0;const Gn=$.slice(1);let Qn;this.options.extensions.startBlock.forEach(function(Yn){Qn=Yn.call({lexer:this},Gn),typeof Qn=="number"&&Qn>=0&&(Wn=Math.min(Wn,Qn))}),Wn<1/0&&Wn>=0&&(Fn=$.substring(0,Wn+1))}if(this.state.top&&(U=this.tokenizer.paragraph(Fn))){Bn=j[j.length-1],qn&&Bn.type==="paragraph"?(Bn.raw+=`
|
||
`+U.raw,Bn.text+=`
|
||
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U),qn=Fn.length!==$.length,$=$.substring(U.raw.length);continue}if(U=this.tokenizer.text($)){$=$.substring(U.raw.length),Bn=j[j.length-1],Bn&&Bn.type==="text"?(Bn.raw+=`
|
||
`+U.raw,Bn.text+=`
|
||
`+U.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Bn.text):j.push(U);continue}if($){const Wn="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(Wn);break}else throw new Error(Wn)}}return this.state.top=!0,j}inline($,j=[]){return this.inlineQueue.push({src:$,tokens:j}),j}inlineTokens($,j=[]){let U,Bn,Fn,qn=$,Wn,Gn,Qn;if(this.tokens.links){const Yn=Object.keys(this.tokens.links);if(Yn.length>0)for(;(Wn=this.tokenizer.rules.inline.reflinkSearch.exec(qn))!=null;)Yn.includes(Wn[0].slice(Wn[0].lastIndexOf("[")+1,-1))&&(qn=qn.slice(0,Wn.index)+"["+repeatString("a",Wn[0].length-2)+"]"+qn.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Wn=this.tokenizer.rules.inline.blockSkip.exec(qn))!=null;)qn=qn.slice(0,Wn.index)+"["+repeatString("a",Wn[0].length-2)+"]"+qn.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Wn=this.tokenizer.rules.inline.escapedEmSt.exec(qn))!=null;)qn=qn.slice(0,Wn.index+Wn[0].length-2)+"++"+qn.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;$;)if(Gn||(Qn=""),Gn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(Yn=>(U=Yn.call({lexer:this},$,j))?($=$.substring(U.raw.length),j.push(U),!0):!1))){if(U=this.tokenizer.escape($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.tag($)){$=$.substring(U.raw.length),Bn=j[j.length-1],Bn&&U.type==="text"&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if(U=this.tokenizer.link($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.reflink($,this.tokens.links)){$=$.substring(U.raw.length),Bn=j[j.length-1],Bn&&U.type==="text"&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if(U=this.tokenizer.emStrong($,qn,Qn)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.codespan($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.br($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.del($)){$=$.substring(U.raw.length),j.push(U);continue}if(U=this.tokenizer.autolink($,mangle)){$=$.substring(U.raw.length),j.push(U);continue}if(!this.state.inLink&&(U=this.tokenizer.url($,mangle))){$=$.substring(U.raw.length),j.push(U);continue}if(Fn=$,this.options.extensions&&this.options.extensions.startInline){let Yn=1/0;const Zn=$.slice(1);let Jn;this.options.extensions.startInline.forEach(function(Kn){Jn=Kn.call({lexer:this},Zn),typeof Jn=="number"&&Jn>=0&&(Yn=Math.min(Yn,Jn))}),Yn<1/0&&Yn>=0&&(Fn=$.substring(0,Yn+1))}if(U=this.tokenizer.inlineText(Fn,smartypants)){$=$.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(Qn=U.raw.slice(-1)),Gn=!0,Bn=j[j.length-1],Bn&&Bn.type==="text"?(Bn.raw+=U.raw,Bn.text+=U.text):j.push(U);continue}if($){const Yn="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(Yn);break}else throw new Error(Yn)}}return j}}class Renderer{constructor($){this.options=$||defaults}code($,j,U){const Bn=(j||"").match(/\S*/)[0];if(this.options.highlight){const Fn=this.options.highlight($,Bn);Fn!=null&&Fn!==$&&(U=!0,$=Fn)}return $=$.replace(/\n$/,"")+`
|
||
`,Bn?'<pre><code class="'+this.options.langPrefix+escape(Bn)+'">'+(U?$:escape($,!0))+`</code></pre>
|
||
`:"<pre><code>"+(U?$:escape($,!0))+`</code></pre>
|
||
`}blockquote($){return`<blockquote>
|
||
${$}</blockquote>
|
||
`}html($){return $}heading($,j,U,Bn){if(this.options.headerIds){const Fn=this.options.headerPrefix+Bn.slug(U);return`<h${j} id="${Fn}">${$}</h${j}>
|
||
`}return`<h${j}>${$}</h${j}>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list($,j,U){const Bn=j?"ol":"ul",Fn=j&&U!==1?' start="'+U+'"':"";return"<"+Bn+Fn+`>
|
||
`+$+"</"+Bn+`>
|
||
`}listitem($){return`<li>${$}</li>
|
||
`}checkbox($){return"<input "+($?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph($){return`<p>${$}</p>
|
||
`}table($,j){return j&&(j=`<tbody>${j}</tbody>`),`<table>
|
||
<thead>
|
||
`+$+`</thead>
|
||
`+j+`</table>
|
||
`}tablerow($){return`<tr>
|
||
${$}</tr>
|
||
`}tablecell($,j){const U=j.header?"th":"td";return(j.align?`<${U} align="${j.align}">`:`<${U}>`)+$+`</${U}>
|
||
`}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del($){return`<del>${$}</del>`}link($,j,U){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return U;let Bn='<a href="'+$+'"';return j&&(Bn+=' title="'+j+'"'),Bn+=">"+U+"</a>",Bn}image($,j,U){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return U;let Bn=`<img src="${$}" alt="${U}"`;return j&&(Bn+=` title="${j}"`),Bn+=this.options.xhtml?"/>":">",Bn}text($){return $}}class TextRenderer{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,j,U){return""+U}image($,j,U){return""+U}br(){return""}}class Slugger{constructor(){this.seen={}}serialize($){return $.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug($,j){let U=$,Bn=0;if(this.seen.hasOwnProperty(U)){Bn=this.seen[$];do Bn++,U=$+"-"+Bn;while(this.seen.hasOwnProperty(U))}return j||(this.seen[$]=Bn,this.seen[U]=0),U}slug($,j={}){const U=this.serialize($);return this.getNextSafeSlug(U,j.dryrun)}}class Parser{constructor($){this.options=$||defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse($,j){return new Parser(j).parse($)}static parseInline($,j){return new Parser(j).parseInline($)}parse($,j=!0){let U="",Bn,Fn,qn,Wn,Gn,Qn,Yn,Zn,Jn,Kn,ea,Xn,ta,na,ra,ca,pa,va,ga;const ia=$.length;for(Bn=0;Bn<ia;Bn++){if(Kn=$[Bn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Kn.type]&&(ga=this.options.extensions.renderers[Kn.type].call({parser:this},Kn),ga!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Kn.type))){U+=ga||"";continue}switch(Kn.type){case"space":continue;case"hr":{U+=this.renderer.hr();continue}case"heading":{U+=this.renderer.heading(this.parseInline(Kn.tokens),Kn.depth,unescape(this.parseInline(Kn.tokens,this.textRenderer)),this.slugger);continue}case"code":{U+=this.renderer.code(Kn.text,Kn.lang,Kn.escaped);continue}case"table":{for(Zn="",Yn="",Wn=Kn.header.length,Fn=0;Fn<Wn;Fn++)Yn+=this.renderer.tablecell(this.parseInline(Kn.header[Fn].tokens),{header:!0,align:Kn.align[Fn]});for(Zn+=this.renderer.tablerow(Yn),Jn="",Wn=Kn.rows.length,Fn=0;Fn<Wn;Fn++){for(Qn=Kn.rows[Fn],Yn="",Gn=Qn.length,qn=0;qn<Gn;qn++)Yn+=this.renderer.tablecell(this.parseInline(Qn[qn].tokens),{header:!1,align:Kn.align[qn]});Jn+=this.renderer.tablerow(Yn)}U+=this.renderer.table(Zn,Jn);continue}case"blockquote":{Jn=this.parse(Kn.tokens),U+=this.renderer.blockquote(Jn);continue}case"list":{for(ea=Kn.ordered,Xn=Kn.start,ta=Kn.loose,Wn=Kn.items.length,Jn="",Fn=0;Fn<Wn;Fn++)ra=Kn.items[Fn],ca=ra.checked,pa=ra.task,na="",ra.task&&(va=this.renderer.checkbox(ca),ta?ra.tokens.length>0&&ra.tokens[0].type==="paragraph"?(ra.tokens[0].text=va+" "+ra.tokens[0].text,ra.tokens[0].tokens&&ra.tokens[0].tokens.length>0&&ra.tokens[0].tokens[0].type==="text"&&(ra.tokens[0].tokens[0].text=va+" "+ra.tokens[0].tokens[0].text)):ra.tokens.unshift({type:"text",text:va}):na+=va),na+=this.parse(ra.tokens,ta),Jn+=this.renderer.listitem(na,pa,ca);U+=this.renderer.list(Jn,ea,Xn);continue}case"html":{U+=this.renderer.html(Kn.text);continue}case"paragraph":{U+=this.renderer.paragraph(this.parseInline(Kn.tokens));continue}case"text":{for(Jn=Kn.tokens?this.parseInline(Kn.tokens):Kn.text;Bn+1<ia&&$[Bn+1].type==="text";)Kn=$[++Bn],Jn+=`
|
||
`+(Kn.tokens?this.parseInline(Kn.tokens):Kn.text);U+=j?this.renderer.paragraph(Jn):Jn;continue}default:{const la='Token with "'+Kn.type+'" type was not found.';if(this.options.silent){console.error(la);return}else throw new Error(la)}}}return U}parseInline($,j){j=j||this.renderer;let U="",Bn,Fn,qn;const Wn=$.length;for(Bn=0;Bn<Wn;Bn++){if(Fn=$[Bn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Fn.type]&&(qn=this.options.extensions.renderers[Fn.type].call({parser:this},Fn),qn!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(Fn.type))){U+=qn||"";continue}switch(Fn.type){case"escape":{U+=j.text(Fn.text);break}case"html":{U+=j.html(Fn.text);break}case"link":{U+=j.link(Fn.href,Fn.title,this.parseInline(Fn.tokens,j));break}case"image":{U+=j.image(Fn.href,Fn.title,Fn.text);break}case"strong":{U+=j.strong(this.parseInline(Fn.tokens,j));break}case"em":{U+=j.em(this.parseInline(Fn.tokens,j));break}case"codespan":{U+=j.codespan(Fn.text);break}case"br":{U+=j.br();break}case"del":{U+=j.del(this.parseInline(Fn.tokens,j));break}case"text":{U+=j.text(Fn.text);break}default:{const Gn='Token with "'+Fn.type+'" type was not found.';if(this.options.silent){console.error(Gn);return}else throw new Error(Gn)}}}return U}}function marked(b,$,j){if(typeof b>"u"||b===null)throw new Error("marked(): input parameter is undefined or null");if(typeof b!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(b)+", string expected");if(typeof $=="function"&&(j=$,$=null),$=merge({},marked.defaults,$||{}),checkSanitizeDeprecation($),j){const Bn=$.highlight;let Fn;try{Fn=Lexer.lex(b,$)}catch(Gn){return j(Gn)}const qn=function(Gn){let Qn;if(!Gn)try{$.walkTokens&&marked.walkTokens(Fn,$.walkTokens),Qn=Parser.parse(Fn,$)}catch(Yn){Gn=Yn}return $.highlight=Bn,Gn?j(Gn):j(null,Qn)};if(!Bn||Bn.length<3||(delete $.highlight,!Fn.length))return qn();let Wn=0;marked.walkTokens(Fn,function(Gn){Gn.type==="code"&&(Wn++,setTimeout(()=>{Bn(Gn.text,Gn.lang,function(Qn,Yn){if(Qn)return qn(Qn);Yn!=null&&Yn!==Gn.text&&(Gn.text=Yn,Gn.escaped=!0),Wn--,Wn===0&&qn()})},0))}),Wn===0&&qn();return}function U(Bn){if(Bn.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,$.silent)return"<p>An error occurred:</p><pre>"+escape(Bn.message+"",!0)+"</pre>";throw Bn}try{const Bn=Lexer.lex(b,$);if($.walkTokens){if($.async)return Promise.all(marked.walkTokens(Bn,$.walkTokens)).then(()=>Parser.parse(Bn,$)).catch(U);marked.walkTokens(Bn,$.walkTokens)}return Parser.parse(Bn,$)}catch(Bn){U(Bn)}}marked.options=marked.setOptions=function(b){return merge(marked.defaults,b),changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults;marked.use=function(...b){const $=marked.defaults.extensions||{renderers:{},childTokens:{}};b.forEach(j=>{const U=merge({},j);if(U.async=marked.defaults.async||U.async,j.extensions&&(j.extensions.forEach(Bn=>{if(!Bn.name)throw new Error("extension name required");if(Bn.renderer){const Fn=$.renderers[Bn.name];Fn?$.renderers[Bn.name]=function(...qn){let Wn=Bn.renderer.apply(this,qn);return Wn===!1&&(Wn=Fn.apply(this,qn)),Wn}:$.renderers[Bn.name]=Bn.renderer}if(Bn.tokenizer){if(!Bn.level||Bn.level!=="block"&&Bn.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");$[Bn.level]?$[Bn.level].unshift(Bn.tokenizer):$[Bn.level]=[Bn.tokenizer],Bn.start&&(Bn.level==="block"?$.startBlock?$.startBlock.push(Bn.start):$.startBlock=[Bn.start]:Bn.level==="inline"&&($.startInline?$.startInline.push(Bn.start):$.startInline=[Bn.start]))}Bn.childTokens&&($.childTokens[Bn.name]=Bn.childTokens)}),U.extensions=$),j.renderer){const Bn=marked.defaults.renderer||new Renderer;for(const Fn in j.renderer){const qn=Bn[Fn];Bn[Fn]=(...Wn)=>{let Gn=j.renderer[Fn].apply(Bn,Wn);return Gn===!1&&(Gn=qn.apply(Bn,Wn)),Gn}}U.renderer=Bn}if(j.tokenizer){const Bn=marked.defaults.tokenizer||new Tokenizer;for(const Fn in j.tokenizer){const qn=Bn[Fn];Bn[Fn]=(...Wn)=>{let Gn=j.tokenizer[Fn].apply(Bn,Wn);return Gn===!1&&(Gn=qn.apply(Bn,Wn)),Gn}}U.tokenizer=Bn}if(j.walkTokens){const Bn=marked.defaults.walkTokens;U.walkTokens=function(Fn){let qn=[];return qn.push(j.walkTokens.call(this,Fn)),Bn&&(qn=qn.concat(Bn.call(this,Fn))),qn}}marked.setOptions(U)})};marked.walkTokens=function(b,$){let j=[];for(const U of b)switch(j=j.concat($.call(marked,U)),U.type){case"table":{for(const Bn of U.header)j=j.concat(marked.walkTokens(Bn.tokens,$));for(const Bn of U.rows)for(const Fn of Bn)j=j.concat(marked.walkTokens(Fn.tokens,$));break}case"list":{j=j.concat(marked.walkTokens(U.items,$));break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[U.type]?marked.defaults.extensions.childTokens[U.type].forEach(function(Bn){j=j.concat(marked.walkTokens(U[Bn],$))}):U.tokens&&(j=j.concat(marked.walkTokens(U.tokens,$)))}return j};marked.parseInline=function(b,$){if(typeof b>"u"||b===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof b!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(b)+", string expected");$=merge({},marked.defaults,$||{}),checkSanitizeDeprecation($);try{const j=Lexer.lexInline(b,$);return $.walkTokens&&marked.walkTokens(j,$.walkTokens),Parser.parseInline(j,$)}catch(j){if(j.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,$.silent)return"<p>An error occurred:</p><pre>"+escape(j.message+"",!0)+"</pre>";throw j}};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;const O$2=({size:b})=>h$3("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:b,height:b},[h$3("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),h$3("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),P$4=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),V$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),T$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),h$3("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),D$2=({active:b=!1})=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(b?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:b?"red":"currentColor"})]),N$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),h$3("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),B$1=()=>h$3("svg",{width:"16",height:"16",ariaHidden:"true"},h$3("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),W$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),F$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),K=()=>h$3("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},h$3("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),q$1=({size:b})=>h$3("svg",{width:b,height:b,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},h$3("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},h$3("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),G=()=>h$3("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[h$3("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),h$3("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Z={"Content-Type":"application/json"},J$1=(b,$="")=>{if(typeof b=="object"&&b.errno)throw new TypeError(`${$} failed with ${b.errno}: ${b.errmsg}`);return b},Y=({serverURL:b,lang:$,path:j,type:U,action:Bn})=>fetch(`${b}/article?lang=${$}`,{method:"POST",headers:Z,body:JSON.stringify({path:j,type:U,action:Bn})}).then(Fn=>Fn.json()),X=({serverURL:b,lang:$,token:j,objectId:U,comment:Bn})=>fetch(`${b}/comment/${U}?lang=${$}`,{method:"PUT",headers:{...Z,Authorization:`Bearer ${j}`},body:JSON.stringify(Bn)}).then(Fn=>Fn.json()).then(Fn=>J$1(Fn,"Update comment"));let Q$1=null;const ee=()=>Q$1||(Q$1=useStorage("WALINE_LIKE",[]));let te=null;const ne=()=>te??(te=useStorage("WALINE_REACTION",{}));var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},le={},ie={},oe={},re=ae&&ae.__awaiter||function(b,$,j,U){return new(j||(j=Promise))(function(Bn,Fn){function qn(Qn){try{Gn(U.next(Qn))}catch(Yn){Fn(Yn)}}function Wn(Qn){try{Gn(U.throw(Qn))}catch(Yn){Fn(Yn)}}function Gn(Qn){var Yn;Qn.done?Bn(Qn.value):(Yn=Qn.value,Yn instanceof j?Yn:new j(function(Zn){Zn(Yn)})).then(qn,Wn)}Gn((U=U.apply(b,$||[])).next())})},se=ae&&ae.__generator||function(b,$){var j,U,Bn,Fn,qn={label:0,sent:function(){if(1&Bn[0])throw Bn[1];return Bn[1]},trys:[],ops:[]};return Fn={next:Wn(0),throw:Wn(1),return:Wn(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function Wn(Gn){return function(Qn){return function(Yn){if(j)throw new TypeError("Generator is already executing.");for(;qn;)try{if(j=1,U&&(Bn=2&Yn[0]?U.return:Yn[0]?U.throw||((Bn=U.return)&&Bn.call(U),0):U.next)&&!(Bn=Bn.call(U,Yn[1])).done)return Bn;switch(U=0,Bn&&(Yn=[2&Yn[0],Bn.value]),Yn[0]){case 0:case 1:Bn=Yn;break;case 4:return qn.label++,{value:Yn[1],done:!1};case 5:qn.label++,U=Yn[1],Yn=[0];continue;case 7:Yn=qn.ops.pop(),qn.trys.pop();continue;default:if(Bn=qn.trys,!((Bn=Bn.length>0&&Bn[Bn.length-1])||Yn[0]!==6&&Yn[0]!==2)){qn=0;continue}if(Yn[0]===3&&(!Bn||Yn[1]>Bn[0]&&Yn[1]<Bn[3])){qn.label=Yn[1];break}if(Yn[0]===6&&qn.label<Bn[1]){qn.label=Bn[1],Bn=Yn;break}if(Bn&&qn.label<Bn[2]){qn.label=Bn[2],qn.ops.push(Yn);break}Bn[2]&&qn.ops.pop(),qn.trys.pop();continue}Yn=$.call(b,qn)}catch(Zn){Yn=[6,Zn],U=0}finally{j=Bn=0}if(5&Yn[0])throw Yn[1];return{value:Yn[0]?Yn[1]:void 0,done:!0}}([Gn,Qn])}}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.ReCaptchaInstance=void 0;var ce=function(){function b($,j,U){this.siteKey=$,this.recaptchaID=j,this.recaptcha=U,this.styleContainer=null}return b.prototype.execute=function($){return re(this,void 0,void 0,function(){return se(this,function(j){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:$}):this.recaptcha.execute(this.recaptchaID,{action:$})]})})},b.prototype.getSiteKey=function(){return this.siteKey},b.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},b.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},b}();oe.ReCaptchaInstance=ce,Object.defineProperty(ie,"__esModule",{value:!0}),ie.getInstance=ie.load=void 0;var ue,de=oe;(function(b){b[b.NOT_LOADED=0]="NOT_LOADED",b[b.LOADING=1]="LOADING",b[b.LOADED=2]="LOADED"})(ue||(ue={}));var me=function(){function b(){}return b.load=function($,j){if(j===void 0&&(j={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(b.getLoadingState()===ue.LOADED)return b.instance.getSiteKey()===$?Promise.resolve(b.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(b.getLoadingState()===ue.LOADING)return $!==b.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(Bn,Fn){b.successfulLoadingConsumers.push(function(qn){return Bn(qn)}),b.errorLoadingRunnable.push(function(qn){return Fn(qn)})});b.instanceSiteKey=$,b.setLoadingState(ue.LOADING);var U=new b;return new Promise(function(Bn,Fn){U.loadScript($,j.useRecaptchaNet||!1,j.useEnterprise||!1,j.renderParameters?j.renderParameters:{},j.customUrl).then(function(){b.setLoadingState(ue.LOADED);var qn=U.doExplicitRender(grecaptcha,$,j.explicitRenderParameters?j.explicitRenderParameters:{},j.useEnterprise||!1),Wn=new de.ReCaptchaInstance($,qn,grecaptcha);b.successfulLoadingConsumers.forEach(function(Gn){return Gn(Wn)}),b.successfulLoadingConsumers=[],j.autoHideBadge&&Wn.hideBadge(),b.instance=Wn,Bn(Wn)}).catch(function(qn){b.errorLoadingRunnable.forEach(function(Wn){return Wn(qn)}),b.errorLoadingRunnable=[],Fn(qn)})})},b.getInstance=function(){return b.instance},b.setLoadingState=function($){b.loadingState=$},b.getLoadingState=function(){return b.loadingState===null?ue.NOT_LOADED:b.loadingState},b.prototype.loadScript=function($,j,U,Bn,Fn){var qn=this;j===void 0&&(j=!1),U===void 0&&(U=!1),Bn===void 0&&(Bn={}),Fn===void 0&&(Fn="");var Wn=document.createElement("script");Wn.setAttribute("recaptcha-v3-script","");var Gn="https://www.google.com/recaptcha/api.js";j&&(Gn=U?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),U&&(Gn="https://www.google.com/recaptcha/enterprise.js"),Fn&&(Gn=Fn),Bn.render&&(Bn.render=void 0);var Qn=this.buildQueryString(Bn);return Wn.src=Gn+"?render=explicit"+Qn,new Promise(function(Yn,Zn){Wn.addEventListener("load",qn.waitForScriptToLoad(function(){Yn(Wn)},U),!1),Wn.onerror=function(Jn){b.setLoadingState(ue.NOT_LOADED),Zn(Jn)},document.head.appendChild(Wn)})},b.prototype.buildQueryString=function($){return Object.keys($).length<1?"":"&"+Object.keys($).filter(function(j){return!!$[j]}).map(function(j){return j+"="+$[j]}).join("&")},b.prototype.waitForScriptToLoad=function($,j){var U=this;return function(){window.grecaptcha===void 0?setTimeout(function(){U.waitForScriptToLoad($,j)},b.SCRIPT_LOAD_DELAY):j?window.grecaptcha.enterprise.ready(function(){$()}):window.grecaptcha.ready(function(){$()})}},b.prototype.doExplicitRender=function($,j,U,Bn){var Fn={sitekey:j,badge:U.badge,size:U.size,tabindex:U.tabindex};return U.container?Bn?$.enterprise.render(U.container,Fn):$.render(U.container,Fn):Bn?$.enterprise.render(Fn):$.render(Fn)},b.loadingState=null,b.instance=null,b.instanceSiteKey=null,b.successfulLoadingConsumers=[],b.errorLoadingRunnable=[],b.SCRIPT_LOAD_DELAY=25,b}();ie.load=me.load,ie.getInstance=me.getInstance,function(b){Object.defineProperty(b,"__esModule",{value:!0}),b.ReCaptchaInstance=b.getInstance=b.load=void 0;var $=ie;Object.defineProperty(b,"load",{enumerable:!0,get:function(){return $.load}}),Object.defineProperty(b,"getInstance",{enumerable:!0,get:function(){return $.getInstance}});var j=oe;Object.defineProperty(b,"ReCaptchaInstance",{enumerable:!0,get:function(){return j.ReCaptchaInstance}})}(le);const ve={};let pe=null;const he=()=>pe??(pe=useStorage("WALINE_USER",{})),ge={key:0,class:"wl-reaction"},fe=["textContent"],ye={class:"wl-reaction-list"},we=["onClick"],be={class:"wl-reaction-img"},ke=["src","alt"],Ce=["textContent"],$e=["textContent"];var Le=defineComponent({__name:"ArticleReaction",setup(b,{expose:$}){$();const j=ne(),U=inject("config"),Bn=ref(-1),Fn=ref([]),qn=computed(()=>U.value.locale),Wn=computed(()=>U.value.reaction.length>0),Gn=computed(()=>{const{reaction:Zn,path:Jn}=U.value;return Zn.map((Kn,ea)=>({icon:Kn,desc:qn.value[`reaction${ea}`],active:j.value[Jn]===ea}))});let Qn;const Yn=async()=>{if(Wn.value){const{serverURL:Zn,lang:Jn,path:Kn,reaction:ea}=U.value,Xn=new AbortController;Qn=Xn.abort.bind(Xn);const ta=await(({serverURL:na,lang:ra,paths:ca,type:pa,signal:va})=>fetch(`${na}/article?path=${encodeURIComponent(ca.join(","))}&type=${encodeURIComponent(pa.join(","))}&lang=${ra}`,{signal:va}).then(ga=>ga.json()))({serverURL:Zn,lang:Jn,paths:[Kn],type:ea.map((na,ra)=>`reaction${ra}`),signal:Xn.signal});if(Array.isArray(ta)||typeof ta=="number")return;Fn.value=ea.map((na,ra)=>ta[`reaction${ra}`])}};return onMounted(()=>{watch(()=>[U.value.serverURL,U.value.path],()=>{Yn()},{immediate:!0})}),onUnmounted(()=>Qn==null?void 0:Qn()),(Zn,Jn)=>unref(Gn).length?(openBlock(),createElementBlock("div",ge,[createBaseVNode("div",{class:"wl-reaction-title",textContent:toDisplayString(unref(qn).reactionTitle)},null,8,fe),createBaseVNode("ul",ye,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Gn),({active:Kn,icon:ea,desc:Xn},ta)=>(openBlock(),createElementBlock("li",{key:ta,class:normalizeClass(["wl-reaction-item",{active:Kn}]),onClick:na=>(async ra=>{if(Bn.value===-1){const{serverURL:ca,lang:pa,path:va}=U.value,ga=j.value[va];Bn.value=ra,ga!==void 0&&(await Y({serverURL:ca,lang:pa,path:va,type:`reaction${ga}`,action:"desc"}),Fn.value[ga]=Math.max(Fn.value[ga]-1,0)),ga!==ra&&(await Y({serverURL:ca,lang:pa,path:va,type:`reaction${ra}`}),Fn.value[ra]=(Fn.value[ra]||0)+1),ga===ra?delete j.value[va]:j.value[va]=ra,Bn.value=-1}})(ta)},[createBaseVNode("div",be,[createBaseVNode("img",{src:ea,alt:Xn},null,8,ke),Bn.value===ta?(openBlock(),createBlock(unref(q$1),{key:0,class:"wl-reaction-loading"})):(openBlock(),createElementBlock("div",{key:1,class:"wl-reaction-votes",textContent:toDisplayString(Fn.value[ta]||0)},null,8,Ce))]),createBaseVNode("div",{class:"wl-reaction-text",textContent:toDisplayString(Xn)},null,8,$e)],10,we))),128))])])):createCommentVNode("v-if",!0)}}),xe=(b,$)=>{const j=b.__vccOpts||b;for(const[U,Bn]of $)j[U]=Bn;return j},Ie=xe(Le,[["__file","ArticleReaction.vue"]]);const Re=["data-index"],Ee=["src","title","onClick"];var je=xe(defineComponent({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(b,{expose:$}){const j=b;$();let U=null;const Bn=ref(null),Fn=ref({}),qn=ref([]),Wn=()=>{const Zn=Math.floor((Bn.value.getBoundingClientRect().width+j.gap)/(j.columnWidth+j.gap));return Zn>0?Zn:1},Gn=async Zn=>{var Kn;if(Zn>=j.items.length)return;await nextTick();const Jn=Array.from(((Kn=Bn.value)==null?void 0:Kn.children)||[]).reduce((ea,Xn)=>Xn.getBoundingClientRect().height<ea.getBoundingClientRect().height?Xn:ea);qn.value[Number(Jn.dataset.index)].push(Zn),await Gn(Zn+1)},Qn=async(Zn=!1)=>{if(qn.value.length===Wn()&&!Zn)return;var Jn;qn.value=(Jn=Wn(),new Array(Jn).fill(null).map(()=>[]));const Kn=window.scrollY;await Gn(0),window.scrollTo({top:Kn})},Yn=Zn=>{Fn.value[Zn.target.src]=!0};return onMounted(()=>{Qn(!0),U=new ResizeObserver(()=>{Qn()}),U.observe(Bn.value),watch(()=>[j.items],()=>{Fn.value={},Qn(!0)}),watch(()=>[j.columnWidth,j.gap],()=>{Qn()})}),onBeforeUnmount(()=>U.unobserve(Bn.value)),(Zn,Jn)=>(openBlock(),createElementBlock("div",{ref_key:"wall",ref:Bn,class:"wl-gallery",style:normalizeStyle({gap:`${b.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(qn.value,(Kn,ea)=>(openBlock(),createElementBlock("div",{key:ea,class:"wl-gallery-column","data-index":ea,style:normalizeStyle({gap:`${b.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Kn,Xn=>(openBlock(),createElementBlock(Fragment,{key:Xn},[Fn.value[b.items[Xn].src]?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(q$1),{key:0,size:36,style:{margin:"20px auto"}})),createBaseVNode("img",{class:"wl-gallery-item",src:b.items[Xn].src,title:b.items[Xn].title,loading:"lazy",onLoad:Yn,onClick:ta=>Zn.$emit("insert",``)},null,40,Ee)],64))),128))],12,Re))),128))],4))}}),[["__file","ImageWall.vue"]]);const Se=["nick","mail","link"],_e=b=>b.filter($=>Se.includes($)),Ae=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ze=b=>new Promise(($,j)=>{if(b.size>128e3)return j(new Error("File too large! File size limit 128KB"));const U=new FileReader;U.readAsDataURL(b),U.onload=()=>{var Bn;return $(((Bn=U.result)==null?void 0:Bn.toString())||"")},U.onerror=j}),Ue=b=>b===!0?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',Me=b=>{const $=async(j,U={})=>fetch(`https://api.giphy.com/v1/gifs/${j}?${new URLSearchParams({lang:b,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...U}).toString()}`).then(Bn=>Bn.json()).then(({data:Bn})=>Bn.map(Fn=>({title:Fn.title,src:Fn.images.downsized_medium.url})));return{search:j=>$("search",{q:j,offset:"0"}),default:()=>$("trending",{}),more:(j,U=0)=>$("search",{q:j,offset:U.toString()})}},He=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Oe=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),Pe=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ve={},Te=b=>{let $=0;return b.replace(Oe,(j,U,Bn)=>{if(Bn)return`<span style="color: slategray">${Bn}</span>`;if(U==="<")return"<";let Fn;Ve[U]?Fn=Ve[U]:(Fn=Pe[$],Ve[U]=Fn);const qn=`<span style="color: #${Fn}">${U}</span>`;return $=++$%Pe.length,qn})},De=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],Ne=b=>Object.fromEntries(b.map(($,j)=>[De[j],$]));var Be=Ne(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
||
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),We=Ne(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
||
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Fe=Ne(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
||
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ke=Ne(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字",`評論字數應在 $0 到 $1 字之間!
|
||
當前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),qe=Ne(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
||
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Ge=Ne(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
||
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const Ze={zh:Fe,"zh-cn":Fe,"zh-CN":Fe,"zh-tw":Ke,"zh-TW":Ke,en:Be,"en-US":Be,"en-us":Be,jp:We,ja:We,"jp-jp":We,"jp-JP":We,"pt-br":qe,"pt-BR":qe,ru:Ge,"ru-ru":Ge,"ru-RU":Ge},Je=b=>{try{b=decodeURI(b)}catch{}return b},Ye=(b="")=>b.replace(/\/$/u,""),Xe=b=>/^(https?:)?\/\//.test(b),Qe=b=>{const $=Ye(b);return Xe($)?$:`https://${$}`},et=b=>Array.isArray(b)?b:!!b&&[0,b],tt=(b,$)=>typeof b=="function"?b:b!==!1&&$,nt="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",at=(b,$)=>{let j=b.toString();for(;j.length<$;)j="0"+j;return j},lt=(b,$,j)=>{if(!b)return"";const U=typeof b=="string"?new Date(b.indexOf(" ")!==-1?b.replace(/-/g,"/"):b):b,Bn=$.getTime()-U.getTime(),Fn=Math.floor(Bn/864e5);if(Fn===0){const qn=Bn%864e5,Wn=Math.floor(qn/36e5);if(Wn===0){const Gn=qn%36e5,Qn=Math.floor(Gn/6e4);if(Qn===0){const Yn=Gn%6e4;return`${Math.round(Yn/1e3)} ${j.seconds}`}return`${Qn} ${j.minutes}`}return`${Wn} ${j.hours}`}return Fn<0?j.now:Fn<8?`${Fn} ${j.days}`:(qn=>{const Wn=at(qn.getDate(),2),Gn=at(qn.getMonth()+1,2);return`${at(qn.getFullYear(),2)}-${Gn}-${Wn}`})(U)},it=b=>{const $=useStorage("WALINE_EMOJI",{}),j=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(b));if(j){const U=$.value[b];if(U)return Promise.resolve(U)}return fetch(`${b}/info.json`).then(U=>U.json()).then(U=>{const Bn={folder:b,...U};return j&&($.value[b]=Bn),Bn})},ot=(b,$="",j="",U="")=>`${$?`${$}/`:""}${j}${b}${U?`.${U}`:""}`,rt=b=>b.type.includes("image"),st=b=>{const $=Array.from(b).find(rt);return $?$.getAsFile():null},ct=/\$.*?\$/,ut=/^\$(.*?)\$/,dt=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,mt=(b="",$={})=>b.replace(/:(.+?):/g,(j,U)=>$[U]?`<img class="wl-emoji" src="${$[U]}" alt="${U}">`:j),vt=(b,{emojiMap:$,highlighter:j,texRenderer:U})=>{if(marked.setOptions({highlight:j||void 0,breaks:!0,smartLists:!0,smartypants:!0}),U){const Bn=(Fn=>[{name:"blockMath",level:"block",tokenizer(qn){const Wn=dt.exec(qn);if(Wn!==null)return{type:"html",raw:Wn[0],text:Fn(!0,Wn[1])}}},{name:"inlineMath",level:"inline",start(qn){const Wn=qn.search(ct);return Wn!==-1?Wn:qn.length},tokenizer(qn){const Wn=ut.exec(qn);if(Wn!==null)return{type:"html",raw:Wn[0],text:Fn(!1,Wn[1])}}}])(U);marked.use({extensions:Bn})}return marked.parse(mt(b,$))},pt={class:"wl-comment"},ht={key:0,class:"wl-login-info"},gt={class:"wl-avatar"},ft=["title"],yt=["title"],wt=["src"],bt=["title","textContent"],kt={class:"wl-panel"},Ct=["for","textContent"],$t=["id","onUpdate:modelValue","name","type"],Lt=["placeholder"],xt={class:"wl-preview"},It=createBaseVNode("hr",null,null,-1),Rt=["innerHTML"],Et={class:"wl-footer"},jt={class:"wl-actions"},St={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},_t=["title"],At=["title"],zt=["title"],Ut=["title"],Mt={class:"wl-info"},Ht={class:"wl-text-number"},Ot={key:0},Pt=["textContent"],Vt=["textContent"],Tt=["disabled"],Dt=["placeholder"],Nt={key:0,class:"wl-loading"},Bt={key:0,class:"wl-tab-wrapper"},Wt=["title","onClick"],Ft=["src","alt"],Kt={key:0,class:"wl-tabs"},qt=["onClick"],Gt=["src","alt","title"],Zt=["title"];var Jt=defineComponent({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(b,{expose:$,emit:j}){const U=b;$();const Bn=inject("config"),Fn=useStorage("WALINE_COMMENT_BOX_EDITOR",""),qn=useStorage("WALINE_USER_META",{nick:"",mail:"",link:""}),Wn=he(),Gn=ref({}),Qn=ref(null),Yn=ref(null),Zn=ref(null),Jn=ref(null),Kn=ref(null),ea=ref(null),Xn=ref(null),ta=ref({tabs:[],map:{}}),na=ref(0),ra=ref(!1),ca=ref(!1),pa=ref(!1),va=ref(""),ga=ref(0),ia=reactive({loading:!0,list:[]}),la=ref(0),ya=ref(!1),La=ref(""),Ia=ref(!1),ka=ref(!1),sa=computed(()=>Bn.value.locale),aa=computed(()=>{var fa;return Boolean((fa=Wn.value)==null?void 0:fa.token)}),oa=computed(()=>Bn.value.imageUploader!==!1),da=fa=>{const ma=Qn.value,Ca=ma.selectionStart,Pa=ma.selectionEnd||0,$a=ma.scrollTop;Fn.value=ma.value.substring(0,Ca)+fa+ma.value.substring(Pa,ma.value.length),ma.focus(),ma.selectionStart=Ca+fa.length,ma.selectionEnd=Ca+fa.length,ma.scrollTop=$a},ua=fa=>{const ma=fa.key;(fa.ctrlKey||fa.metaKey)&&ma==="Enter"&&Ea()},ha=fa=>{const ma=`![${Bn.value.locale.uploading} ${fa.name}]()`;return da(ma),Promise.resolve().then(()=>Bn.value.imageUploader(fa)).then(Ca=>{Fn.value=Fn.value.replace(ma,`\r
|
||
`)}).catch(Ca=>{alert(Ca.message),Fn.value=Fn.value.replace(ma,"")})},ba=fa=>{var ma;if((ma=fa.dataTransfer)!=null&&ma.items){const Ca=st(fa.dataTransfer.items);Ca&&oa.value&&(ha(Ca),fa.preventDefault())}},wa=fa=>{if(fa.clipboardData){const ma=st(fa.clipboardData.items);ma&&oa.value&&ha(ma)}},xa=()=>{const fa=Yn.value;fa.files&&oa.value&&ha(fa.files[0]).then(()=>{fa.value=""})},Ea=async()=>{var Ha,ja,Fa,Wa,qa;const{serverURL:fa,lang:ma,login:Ca,wordLimit:Pa,requiredMeta:$a}=Bn.value;let Ta="";Bn.value.recaptchaV3Key&&(Ta=await(Va=>{const Ua=ve[Va]??(ve[Va]=le.load(Va,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:Ga=>Ua.then(Qa=>Qa.execute(Ga))}})(Bn.value.recaptchaV3Key).execute("social"));const Sa={comment:La.value,nick:qn.value.nick,mail:qn.value.mail,link:qn.value.link,ua:navigator.userAgent,url:Bn.value.path,recaptchaV3:Ta};if((Ha=Wn.value)!=null&&Ha.token)Sa.nick=Wn.value.display_name,Sa.mail=Wn.value.email,Sa.link=Wn.value.url;else{if(Ca==="force")return;if($a.indexOf("nick")>-1&&!Sa.nick)return(ja=Gn.value.nick)==null||ja.focus(),alert(sa.value.nickError);if($a.indexOf("mail")>-1&&!Sa.mail||Sa.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(Sa.mail))return(Fa=Gn.value.mail)==null||Fa.focus(),alert(sa.value.mailError);if(!Sa.comment)return void((Wa=Qn.value)==null?void 0:Wa.focus());Sa.nick||(Sa.nick=sa.value.anonymous)}if(!ya.value)return alert(sa.value.wordHint.replace("$0",Pa[0].toString()).replace("$1",Pa[1].toString()).replace("$2",ga.value.toString()));Sa.comment=mt(Sa.comment,ta.value.map),U.replyId&&U.rootId&&(Sa.pid=U.replyId,Sa.rid=U.rootId,Sa.at=U.replyUser),Ia.value=!0;const Na={serverURL:fa,lang:ma,token:(qa=Wn.value)==null?void 0:qa.token,comment:Sa};(U.edit?X({objectId:U.edit.objectId,...Na}):(({serverURL:Va,lang:Ua,token:Ga,comment:Qa})=>{const Ya={"Content-Type":"application/json"};return Ga&&(Ya.Authorization=`Bearer ${Ga}`),fetch(`${Va}/comment?lang=${Ua}`,{method:"POST",headers:Ya,body:JSON.stringify(Qa)}).then(Za=>Za.json())})(Na)).then(Va=>{var Ua;if(Ia.value=!1,Va.errmsg)return alert(Va.errmsg);j("submit",Va.data),Fn.value="",va.value="",U.replyId&&j("cancelReply"),(Ua=U.edit)!=null&&Ua.objectId&&j("cancelEdit")}).catch(Va=>{Ia.value=!1,alert(Va.message)})},Aa=fa=>{fa.preventDefault();const{lang:ma,serverURL:Ca}=Bn.value;(({lang:Pa,serverURL:$a})=>{const Ta=(window.innerWidth-450)/2,Sa=(window.innerHeight-450)/2,Na=window.open(`${$a}/ui/login?lng=${encodeURIComponent(Pa)}`,"_blank",`width=450,height=450,left=${Ta},top=${Sa},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return Na==null||Na.postMessage({type:"TOKEN",data:null},"*"),new Promise(Ha=>{const ja=({data:Fa})=>{Fa&&typeof Fa=="object"&&Fa.type==="userInfo"&&Fa.data.token&&(Na==null||Na.close(),window.removeEventListener("message",ja),Ha(Fa.data))};window.addEventListener("message",ja)})})({serverURL:Ca,lang:ma}).then(Pa=>{Wn.value=Pa,(Pa.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(Pa)),j("log")})},Ba=()=>{Wn.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),j("log")},Da=fa=>{var Sa;fa.preventDefault();const{lang:ma,serverURL:Ca}=Bn.value,Pa=(window.innerWidth-800)/2,$a=(window.innerHeight-800)/2,Ta=new URLSearchParams({lng:ma,token:Wn.value.token});(Sa=window.open(`${Ca}/ui/profile?${Ta.toString()}`,"_blank",`width=800,height=800,left=${Pa},top=${$a},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`))==null||Sa.postMessage({type:"TOKEN",data:Wn.value.token},"*")},Ma=fa=>{var ma,Ca,Pa,$a;(ma=Zn.value)!=null&&ma.contains(fa.target)||(Ca=Jn.value)!=null&&Ca.contains(fa.target)||(ra.value=!1),(Pa=Kn.value)!=null&&Pa.contains(fa.target)||($a=ea.value)!=null&&$a.contains(fa.target)||(ca.value=!1)},Ra=async fa=>{var Na;const{scrollTop:ma,clientHeight:Ca,scrollHeight:Pa}=fa.target,$a=(Ca+ma)/Pa,Ta=Bn.value.search,Sa=((Na=Xn.value)==null?void 0:Na.value)||"";$a<.9||ia.loading||ka.value||(ia.loading=!0,(Ta.more&&ia.list.length?await Ta.more(Sa,ia.list.length):await Ta.search(Sa)).length?ia.list=[...ia.list,...Ta.more&&ia.list.length?await Ta.more(Sa,ia.list.length):await Ta.search(Sa)]:ka.value=!0,ia.loading=!1,setTimeout(()=>{fa.target.scrollTop=ma},50))},za=useDebounceFn(fa=>{ia.list=[],ka.value=!1,Ra(fa)},300);watch([Bn,ga],([fa,ma])=>{const{wordLimit:Ca}=fa;Ca?ma<Ca[0]&&Ca[0]!==0?(la.value=Ca[0],ya.value=!1):ma>Ca[1]?(la.value=Ca[1],ya.value=!1):(la.value=Ca[1],ya.value=!0):(la.value=0,ya.value=!0)},{immediate:!0});const Oa=({data:fa})=>{fa&&fa.type==="profile"&&(Wn.value={...Wn.value,...fa.data},[localStorage,sessionStorage].filter(ma=>ma.getItem("WALINE_USER")).forEach(ma=>ma.setItem("WALINE_USER",JSON.stringify(Wn))))};return onMounted(()=>{var fa;document.body.addEventListener("click",Ma),window.addEventListener("message",Oa),(fa=U.edit)!=null&&fa.objectId&&(Fn.value=U.edit.orig),watch(ca,async ma=>{if(!ma)return;const Ca=Bn.value.search;Xn.value&&(Xn.value.value=""),ia.loading=!0,ia.list=Ca.default?await Ca.default():await Ca.search(""),ia.loading=!1}),watch(()=>Fn.value,ma=>{const{highlighter:Ca,texRenderer:Pa}=Bn.value;La.value=ma,va.value=vt(ma,{emojiMap:ta.value.map,highlighter:Ca,texRenderer:Pa}),ga.value=($a=>(Ta=>Ta.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])($a).reduce((Ta,Sa)=>Ta+(Sa.trim()===""?0:Sa.trim().split(/\s+/u).length),0)+(Ta=>Ta.match(/[\u4E00-\u9FA5]/gu)||[])($a).length)(ma),ma?a$3(Qn.value):a$3.destroy(Qn.value)},{immediate:!0}),watch(()=>Bn.value.emoji,ma=>{return(Ca=ma,Promise.all(Ca.map(Pa=>typeof Pa=="string"?it(Ye(Pa)):Promise.resolve(Pa))).then(Pa=>{const $a={tabs:[],map:{}};return Pa.forEach(Ta=>{const{name:Sa,folder:Na,icon:Ha,prefix:ja,type:Fa,items:Wa}=Ta;$a.tabs.push({name:Sa,icon:ot(Ha,Na,ja,Fa),items:Wa.map(qa=>{const Va=`${ja||""}${qa}`;return $a.map[Va]=ot(qa,Na,ja,Fa),Va})})}),$a})).then(Pa=>{ta.value=Pa});var Ca},{immediate:!0})}),onUnmounted(()=>{document.body.removeEventListener("click",Ma),window.removeEventListener("message",Oa)}),(fa,ma)=>{var Ca,Pa;return openBlock(),createElementBlock("div",pt,[unref(Bn).login!=="disable"&&unref(aa)&&!((Ca=b.edit)!=null&&Ca.objectId)?(openBlock(),createElementBlock("div",ht,[createBaseVNode("div",gt,[createBaseVNode("button",{type:"submit",class:"wl-logout-btn",title:unref(sa).logout,onClick:Ba},[createVNode(unref(O$2),{size:14})],8,ft),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(sa).profile,onClick:Da},[createBaseVNode("img",{src:unref(Wn).avatar,alt:"avatar"},null,8,wt)],8,yt)]),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(sa).profile,onClick:Da,textContent:toDisplayString(unref(Wn).display_name)},null,8,bt)])):createCommentVNode("v-if",!0),createBaseVNode("div",kt,[unref(Bn).login!=="force"&&unref(Bn).meta.length&&!unref(aa)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["wl-header",`item${unref(Bn).meta.length}`])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Bn).meta,$a=>(openBlock(),createElementBlock("div",{key:$a,class:"wl-header-item"},[createBaseVNode("label",{for:`wl-${$a}`,textContent:toDisplayString(unref(sa)[$a]+(unref(Bn).requiredMeta.includes($a)||!unref(Bn).requiredMeta.length?"":`(${unref(sa).optional})`))},null,8,Ct),withDirectives(createBaseVNode("input",{id:`wl-${$a}`,ref_for:!0,ref:Ta=>{Ta&&(Gn.value[$a]=Ta)},"onUpdate:modelValue":Ta=>unref(qn)[$a]=Ta,class:normalizeClass(["wl-input",`wl-${$a}`]),name:$a,type:$a==="mail"?"email":"text"},null,10,$t),[[vModelDynamic,unref(qn)[$a]]])]))),128))],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("textarea",{id:"wl-edit",ref_key:"editorRef",ref:Qn,"onUpdate:modelValue":ma[0]||(ma[0]=$a=>isRef(Fn)?Fn.value=$a:null),class:"wl-editor",placeholder:b.replyUser?`@${b.replyUser}`:unref(sa).placeholder,onKeydown:ua,onDrop:ba,onPaste:wa},null,40,Lt),[[vModelText,unref(Fn)]]),withDirectives(createBaseVNode("div",xt,[It,createBaseVNode("h4",null,toDisplayString(unref(sa).preview)+":",1),createBaseVNode("div",{class:"wl-content",innerHTML:va.value},null,8,Rt)],512),[[vShow,pa.value]]),createBaseVNode("div",Et,[createBaseVNode("div",jt,[createBaseVNode("a",St,[createVNode(unref(B$1))]),withDirectives(createBaseVNode("button",{ref_key:"emojiButtonRef",ref:Zn,type:"button",class:normalizeClass(["wl-action",{active:ra.value}]),title:unref(sa).emoji,onClick:ma[1]||(ma[1]=$a=>ra.value=!ra.value)},[createVNode(unref(V$1))],10,_t),[[vShow,ta.value.tabs.length]]),unref(Bn).search?(openBlock(),createElementBlock("button",{key:0,ref_key:"gifButtonRef",ref:Kn,type:"button",class:normalizeClass(["wl-action",{active:ca.value}]),title:unref(sa).gif,onClick:ma[2]||(ma[2]=$a=>ca.value=!ca.value)},[createVNode(unref(G))],10,At)):createCommentVNode("v-if",!0),createBaseVNode("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:Yn,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:xa},null,544),unref(oa)?(openBlock(),createElementBlock("label",{key:1,for:"wl-image-upload",class:"wl-action",title:unref(sa).uploadImage},[createVNode(unref(T$1))],8,zt)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-action",{active:pa.value}]),title:unref(sa).preview,onClick:ma[3]||(ma[3]=$a=>pa.value=!pa.value)},[createVNode(unref(N$2))],10,Ut)]),createBaseVNode("div",Mt,[createBaseVNode("div",Ht,[createTextVNode(toDisplayString(ga.value)+" ",1),unref(Bn).wordLimit?(openBlock(),createElementBlock("span",Ot,[createTextVNode(" / "),createBaseVNode("span",{class:normalizeClass({illegal:!ya.value}),textContent:toDisplayString(la.value)},null,10,Pt)])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(unref(sa).word),1)]),unref(Bn).login==="disable"||unref(aa)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-btn",onClick:Aa,textContent:toDisplayString(unref(sa).login)},null,8,Vt)),unref(Bn).login!=="force"||unref(aa)?(openBlock(),createElementBlock("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Ia.value,onClick:Ea},[Ia.value?(openBlock(),createBlock(unref(q$1),{key:0,size:16})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(unref(sa).submit),1)],64))],8,Tt)):createCommentVNode("v-if",!0)]),createBaseVNode("div",{ref_key:"gifPopupRef",ref:ea,class:normalizeClass(["wl-gif-popup",{display:ca.value}])},[createBaseVNode("input",{ref_key:"gifSearchInputRef",ref:Xn,type:"text",placeholder:unref(sa).gifSearchPlaceholder,onInput:ma[4]||(ma[4]=(...$a)=>unref(za)&&unref(za)(...$a))},null,40,Dt),createVNode(je,{items:ia.list,"column-width":200,gap:6,onInsert:ma[5]||(ma[5]=$a=>da($a)),onScroll:Ra},null,8,["items"]),ia.loading?(openBlock(),createElementBlock("div",Nt,[createVNode(unref(q$1),{size:30})])):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref_key:"emojiPopupRef",ref:Jn,class:normalizeClass(["wl-emoji-popup",{display:ra.value}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ta.value.tabs,($a,Ta)=>(openBlock(),createElementBlock(Fragment,{key:$a.name},[Ta===na.value?(openBlock(),createElementBlock("div",Bt,[(openBlock(!0),createElementBlock(Fragment,null,renderList($a.items,Sa=>(openBlock(),createElementBlock("button",{key:Sa,type:"button",title:Sa,onClick:Na=>da(`:${Sa}:`)},[ra.value?(openBlock(),createElementBlock("img",{key:0,class:"wl-emoji",src:ta.value.map[Sa],alt:Sa,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ft)):createCommentVNode("v-if",!0)],8,Wt))),128))])):createCommentVNode("v-if",!0)],64))),128)),ta.value.tabs.length>1?(openBlock(),createElementBlock("div",Kt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ta.value.tabs,($a,Ta)=>(openBlock(),createElementBlock("button",{key:$a.name,type:"button",class:normalizeClass(["wl-tab",{active:na.value===Ta}]),onClick:Sa=>na.value=Ta},[createBaseVNode("img",{class:"wl-emoji",src:$a.icon,alt:$a.name,title:$a.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Gt)],10,qt))),128))])):createCommentVNode("v-if",!0)],2)])]),b.replyId||(Pa=b.edit)!=null&&Pa.objectId?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-close",title:unref(sa).cancelReply,onClick:ma[6]||(ma[6]=$a=>fa.$emit(b.replyId?"cancelReply":"cancelEdit"))},[createVNode(unref(O$2),{size:24})],8,Zt)):createCommentVNode("v-if",!0)])}}}),Yt=xe(Jt,[["__file","CommentBox.vue"]]);const Xt=["id"],Qt={class:"wl-user","aria-hidden":"true"},en=["src"],tn={class:"wl-card"},nn={class:"wl-head"},an=["href"],ln={key:1,class:"wl-nick"},on=["textContent"],rn=["textContent"],sn=["textContent"],cn=["textContent"],un=["textContent"],dn={class:"wl-comment-actions"},mn=["title"],vn=["textContent"],pn=["title"],hn={class:"wl-meta","aria-hidden":"true"},gn=["data-value","textContent"],fn=["data-value","textContent"],yn=["data-value","textContent"],wn=["innerHTML"],bn={key:1,class:"wl-admin-actions"},kn={class:"wl-comment-status"},Cn=["disabled","onClick","textContent"],$n={key:3,class:"wl-quote"};var Ln=xe(defineComponent({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(b){const $=b,j=["approved","waiting","spam"],U=inject("config"),Bn=ee(),Fn=useNow(),qn=he(),Wn=computed(()=>U.value.locale),Gn=computed(()=>{const{link:Xn}=$.comment;return Xn?Xe(Xn)?Xn:`https://${Xn}`:""}),Qn=computed(()=>Bn.value.includes($.comment.objectId)),Yn=computed(()=>lt($.comment.insertedAt,Fn.value,Wn.value)),Zn=computed(()=>qn.value.type==="administrator"),Jn=computed(()=>$.comment.user_id&&qn.value.objectId===$.comment.user_id),Kn=computed(()=>{var Xn;return $.comment.objectId===((Xn=$.reply)==null?void 0:Xn.objectId)}),ea=computed(()=>{var Xn;return $.comment.objectId===((Xn=$.edit)==null?void 0:Xn.objectId)});return(Xn,ta)=>{var ra;const na=resolveComponent("CommentCard",!0);return openBlock(),createElementBlock("div",{id:b.comment.objectId,class:"wl-card-item"},[createBaseVNode("div",Qt,[b.comment.avatar?(openBlock(),createElementBlock("img",{key:0,src:b.comment.avatar},null,8,en)):createCommentVNode("v-if",!0),b.comment.type?(openBlock(),createBlock(unref(K),{key:1})):createCommentVNode("v-if",!0)]),createBaseVNode("div",tn,[createBaseVNode("div",nn,[unref(Gn)?(openBlock(),createElementBlock("a",{key:0,class:"wl-nick",href:unref(Gn),target:"_blank",rel:"noopener noreferrer"},toDisplayString(b.comment.nick),9,an)):(openBlock(),createElementBlock("span",ln,toDisplayString(b.comment.nick),1)),b.comment.type==="administrator"?(openBlock(),createElementBlock("span",{key:2,class:"wl-badge",textContent:toDisplayString(unref(Wn).admin)},null,8,on)):createCommentVNode("v-if",!0),b.comment.label?(openBlock(),createElementBlock("span",{key:3,class:"wl-badge",textContent:toDisplayString(b.comment.label)},null,8,rn)):createCommentVNode("v-if",!0),b.comment.sticky?(openBlock(),createElementBlock("span",{key:4,class:"wl-badge",textContent:toDisplayString(unref(Wn).sticky)},null,8,sn)):createCommentVNode("v-if",!0),b.comment.level!==void 0&&b.comment.level>=0?(openBlock(),createElementBlock("span",{key:5,class:normalizeClass(`wl-badge level${b.comment.level}`),textContent:toDisplayString(unref(Wn)[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,cn)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:"wl-time",textContent:toDisplayString(unref(Yn))},null,8,un),createBaseVNode("div",dn,[unref(Zn)||unref(Jn)?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-edit",onClick:ta[0]||(ta[0]=()=>Xn.$emit("edit",b.comment))},[createVNode(unref(F$2))])):createCommentVNode("v-if",!0),unref(Zn)||unref(Jn)?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-delete",onClick:ta[1]||(ta[1]=ca=>Xn.$emit("delete",b.comment))},[createVNode(unref(P$4))])):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"wl-like",title:unref(Qn)?unref(Wn).cancelLike:unref(Wn).like,onClick:ta[2]||(ta[2]=ca=>Xn.$emit("like",b.comment))},[createVNode(unref(D$2),{active:unref(Qn)},null,8,["active"]),"like"in b.comment?(openBlock(),createElementBlock("span",{key:0,textContent:toDisplayString(b.comment.like)},null,8,vn)):createCommentVNode("v-if",!0)],8,mn),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-reply",{active:unref(Kn)}]),title:unref(Kn)?unref(Wn).cancelReply:unref(Wn).reply,onClick:ta[3]||(ta[3]=ca=>Xn.$emit("reply",unref(Kn)?null:b.comment))},[createVNode(unref(W$1))],10,pn)])]),createBaseVNode("div",hn,[b.comment.addr?(openBlock(),createElementBlock("span",{key:0,class:"wl-addr","data-value":b.comment.addr,textContent:toDisplayString(b.comment.addr)},null,8,gn)):createCommentVNode("v-if",!0),b.comment.browser?(openBlock(),createElementBlock("span",{key:1,class:"wl-browser","data-value":b.comment.browser,textContent:toDisplayString(b.comment.browser)},null,8,fn)):createCommentVNode("v-if",!0),b.comment.os?(openBlock(),createElementBlock("span",{key:2,class:"wl-os","data-value":b.comment.os,textContent:toDisplayString(b.comment.os)},null,8,yn)):createCommentVNode("v-if",!0)]),unref(ea)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:"wl-content",innerHTML:b.comment.comment},null,8,wn)),unref(Zn)&&!unref(ea)?(openBlock(),createElementBlock("div",bn,[createBaseVNode("span",kn,[(openBlock(),createElementBlock(Fragment,null,renderList(j,ca=>createBaseVNode("button",{key:ca,type:"submit",class:normalizeClass(`wl-btn wl-${ca}`),disabled:b.comment.status===ca,onClick:pa=>Xn.$emit("status",{status:ca,comment:b.comment}),textContent:toDisplayString(unref(Wn)[ca])},null,10,Cn)),64))]),unref(Zn)&&!b.comment.rid?(openBlock(),createElementBlock("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:ta[4]||(ta[4]=ca=>Xn.$emit("sticky",b.comment))},toDisplayString(b.comment.sticky?unref(Wn).unsticky:unref(Wn).sticky),1)):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0),unref(Kn)||unref(ea)?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass({"wl-reply-wrapper":unref(Kn),"wl-edit-wrapper":unref(ea)})},[createVNode(Yt,{edit:b.edit,"reply-id":(ra=b.reply)==null?void 0:ra.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:ta[5]||(ta[5]=ca=>Xn.$emit("log")),onCancelReply:ta[6]||(ta[6]=ca=>Xn.$emit("reply",null)),onCancelEdit:ta[7]||(ta[7]=ca=>Xn.$emit("edit",null)),onSubmit:ta[8]||(ta[8]=ca=>Xn.$emit("submit",ca))},null,8,["edit","reply-id","reply-user","root-id"])],2)):createCommentVNode("v-if",!0),b.comment.children?(openBlock(),createElementBlock("div",$n,[(openBlock(!0),createElementBlock(Fragment,null,renderList(b.comment.children,ca=>(openBlock(),createBlock(na,{key:ca.objectId,comment:ca,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:ta[9]||(ta[9]=pa=>Xn.$emit("log")),onDelete:ta[10]||(ta[10]=pa=>Xn.$emit("delete",pa)),onEdit:ta[11]||(ta[11]=pa=>Xn.$emit("edit",pa)),onLike:ta[12]||(ta[12]=pa=>Xn.$emit("like",pa)),onReply:ta[13]||(ta[13]=pa=>Xn.$emit("reply",pa)),onStatus:ta[14]||(ta[14]=pa=>Xn.$emit("status",pa)),onSticky:ta[15]||(ta[15]=pa=>Xn.$emit("sticky",pa)),onSubmit:ta[16]||(ta[16]=pa=>Xn.$emit("submit",pa))},null,8,["comment","reply","edit","root-id"]))),128))])):createCommentVNode("v-if",!0)])],8,Xt)}}}),[["__file","CommentCard.vue"]]);const xn="2.14.6",In={"data-waline":""},Rn={class:"wl-meta-head"},En={class:"wl-count"},jn=["textContent"],Sn={class:"wl-sort"},_n=["onClick"],An={class:"wl-cards"},zn={key:1,class:"wl-operation"},Un=["textContent"],Mn={key:0,class:"wl-loading"},Hn=["textContent"],On={key:2,class:"wl-operation"},Pn=["textContent"],Vn={key:3,class:"wl-power"},Tn=createBaseVNode("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Dn=defineComponent({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(b){const $=b,j={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},U=Object.keys(j),Bn=he(),Fn=ee(),qn=ref("loading"),Wn=ref(0),Gn=ref(1),Qn=ref(0),Yn=computed(()=>(({serverURL:ka,path:sa=location.pathname,lang:aa=typeof navigator>"u"?"en-US":navigator.language,locale:oa,emoji:da=Ae,meta:ua=["nick","mail","link"],requiredMeta:ha=[],dark:ba=!1,pageSize:wa=10,wordLimit:xa,imageUploader:Ea,highlighter:Aa,texRenderer:Ba,copyright:Da=!0,login:Ma="enable",search:Ra,reaction:za,recaptchaV3Key:Oa="",commentSorting:fa="latest",...ma})=>({serverURL:Qe(ka),path:Je(sa),locale:{...Ze[aa]||Ze["en-US"],...typeof oa=="object"?oa:{}},wordLimit:et(xa),meta:_e(ua),requiredMeta:_e(ha),imageUploader:tt(Ea,ze),highlighter:tt(Aa,Te),texRenderer:tt(Ba,Ue),lang:Object.keys(Ze).includes(aa)?aa:"en-US",dark:ba,emoji:typeof da=="boolean"?da?Ae:[]:da,pageSize:wa,login:Ma,copyright:Da,search:Ra!==!1&&(typeof Ra=="object"?Ra:Me(aa)),recaptchaV3Key:Oa,reaction:Array.isArray(za)?za:za===!0?He:[],commentSorting:fa,...ma}))($)),Zn=ref(Yn.value.commentSorting),Jn=ref([]),Kn=ref(null),ea=ref(null),Xn=computed(()=>{return typeof(ka=Yn.value.dark)=="string"?ka==="auto"?`@media(prefers-color-scheme:dark){body${nt}}`:`${ka}${nt}`:ka===!0?`:root${nt}`:"";var ka}),ta=computed(()=>Yn.value.locale);let na;useStyleTag(Xn);const ra=ka=>{var ua;const{serverURL:sa,path:aa,pageSize:oa}=Yn.value,da=new AbortController;qn.value="loading",na==null||na(),(({serverURL:ha,lang:ba,path:wa,page:xa,pageSize:Ea,sortBy:Aa,signal:Ba,token:Da})=>{const Ma={};return Da&&(Ma.Authorization=`Bearer ${Da}`),fetch(`${ha}/comment?path=${encodeURIComponent(wa)}&pageSize=${Ea}&page=${xa}&lang=${ba}&sortBy=${Aa}`,{signal:Ba,headers:Ma}).then(Ra=>Ra.json()).then(Ra=>J$1(Ra,"Get comment data"))})({serverURL:sa,lang:Yn.value.lang,path:aa,pageSize:oa,sortBy:j[Zn.value],page:ka,signal:da.signal,token:(ua=Bn.value)==null?void 0:ua.token}).then(ha=>{qn.value="success",Wn.value=ha.count,Jn.value.push(...ha.data),Gn.value=ka,Qn.value=ha.totalPages}).catch(ha=>{ha.name!=="AbortError"&&(console.error(ha.message),qn.value="error")}),na=da.abort.bind(da)},ca=()=>ra(Gn.value+1),pa=()=>{Wn.value=0,Jn.value=[],ra(1)},va=ka=>{Kn.value=ka},ga=ka=>{ea.value=ka},ia=ka=>{if(ea.value)ea.value.comment=ka.comment,ea.value.orig=ka.orig;else if(ka.rid){const sa=Jn.value.find(({objectId:aa})=>aa===ka.rid);if(!sa)return;Array.isArray(sa.children)||(sa.children=[]),sa.children.push(ka)}else Jn.value.unshift(ka)},la=async({comment:ka,status:sa})=>{var da;if(ka.status===sa)return;const{serverURL:aa,lang:oa}=Yn.value;await X({serverURL:aa,lang:oa,token:(da=Bn.value)==null?void 0:da.token,objectId:ka.objectId,comment:{status:sa}}),ka.status=sa},ya=async ka=>{var oa;if(ka.rid)return;const{serverURL:sa,lang:aa}=Yn.value;await X({serverURL:sa,lang:aa,token:(oa=Bn.value)==null?void 0:oa.token,objectId:ka.objectId,comment:{sticky:ka.sticky?0:1}}),ka.sticky=!ka.sticky},La=async({objectId:ka})=>{var oa;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:sa,lang:aa}=Yn.value;await(({serverURL:da,lang:ua,token:ha,objectId:ba})=>fetch(`${da}/comment/${ba}?lang=${ua}`,{method:"DELETE",headers:{Authorization:`Bearer ${ha}`}}).then(wa=>wa.json()).then(wa=>J$1(wa,"Delete comment")))({serverURL:sa,lang:aa,token:(oa=Bn.value)==null?void 0:oa.token,objectId:ka}),Jn.value.some((da,ua)=>da.objectId===ka?(Jn.value=Jn.value.filter((ha,ba)=>ba!==ua),!0):da.children.some((ha,ba)=>ha.objectId===ka&&(Jn.value[ua].children=da.children.filter((wa,xa)=>xa!==ba),!0)))},Ia=async ka=>{var ua;const{serverURL:sa,lang:aa}=Yn.value,{objectId:oa}=ka,da=Fn.value.includes(oa);await X({serverURL:sa,lang:aa,objectId:oa,token:(ua=Bn.value)==null?void 0:ua.token,comment:{like:!da}}),da?Fn.value=Fn.value.filter(ha=>ha!==oa):(Fn.value=[...Fn.value,oa],Fn.value.length>50&&(Fn.value=Fn.value.slice(-50))),ka.like=(ka.like||0)+(da?-1:1)};return provide("config",Yn),onMounted(()=>{watch(()=>[$.serverURL,$.path],()=>pa(),{immediate:!0})}),onUnmounted(()=>na==null?void 0:na()),(ka,sa)=>(openBlock(),createElementBlock("div",In,[createVNode(Ie),Kn.value?createCommentVNode("v-if",!0):(openBlock(),createBlock(Yt,{key:0,onLog:pa,onSubmit:ia})),createBaseVNode("div",Rn,[createBaseVNode("div",En,[Wn.value?(openBlock(),createElementBlock("span",{key:0,class:"wl-num",textContent:toDisplayString(Wn.value)},null,8,jn)):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(unref(ta).comment),1)]),createBaseVNode("ul",Sn,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(U),aa=>(openBlock(),createElementBlock("li",{key:aa,class:normalizeClass([aa===Zn.value?"active":""]),onClick:oa=>(da=>{Zn.value!==da&&(Zn.value=da,pa())})(aa)},toDisplayString(unref(ta)[aa]),11,_n))),128))])]),createBaseVNode("div",An,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Jn.value,aa=>(openBlock(),createBlock(Ln,{key:aa.objectId,"root-id":aa.objectId,comment:aa,reply:Kn.value,edit:ea.value,onLog:pa,onReply:va,onEdit:ga,onSubmit:ia,onStatus:la,onDelete:La,onSticky:ya,onLike:Ia},null,8,["root-id","comment","reply","edit"]))),128))]),qn.value==="error"?(openBlock(),createElementBlock("div",zn,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:pa,textContent:toDisplayString(unref(ta).refresh)},null,8,Un)])):(openBlock(),createElementBlock(Fragment,{key:2},[qn.value==="loading"?(openBlock(),createElementBlock("div",Mn,[createVNode(unref(q$1),{size:30})])):Jn.value.length?Gn.value<Qn.value?(openBlock(),createElementBlock("div",On,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:ca,textContent:toDisplayString(unref(ta).more)},null,8,Pn)])):createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:1,class:"wl-empty",textContent:toDisplayString(unref(ta).sofa)},null,8,Hn))],64)),unref(Yn).copyright?(openBlock(),createElementBlock("div",Vn,[createTextVNode(" Powered by "),Tn,createTextVNode(" v"+toDisplayString(unref(xn)),1)])):createCommentVNode("v-if",!0)]))}}),Nn=xe(Dn,[["__file","WalineComment.vue"]]);const t$1={"Content-Type":"application/json"},n$1=({serverURL:b,lang:$,paths:j,signal:U})=>(({serverURL:Bn,lang:Fn,paths:qn,type:Wn,signal:Gn})=>fetch(`${Bn}/article?path=${encodeURIComponent(qn.join(","))}&type=${encodeURIComponent(Wn.join(","))}&lang=${Fn}`,{signal:Gn}).then(Qn=>Qn.json()))({serverURL:b,lang:$,paths:j,type:["time"],signal:U}).then(Bn=>Array.isArray(Bn)?Bn:[Bn]),a$2=b=>(({serverURL:$,lang:j,path:U,type:Bn,action:Fn})=>fetch(`${$}/article?lang=${j}`,{method:"POST",headers:t$1,body:JSON.stringify({path:U,type:Bn,action:Fn})}).then(qn=>qn.json()))({...b,type:"time",action:"inc"}),r$2=b=>{const $=((j="")=>j.replace(/\/$/u,""))(b);return/^(https?:)?\/\//.test($)?$:`https://${$}`},o$2=b=>{b.name!=="AbortError"&&console.error(b.message)},l$2=b=>b.dataset.path||b.getAttribute("id"),s$2=(b,$)=>{$.forEach((j,U)=>{j.innerText=b[U].toString()})},i$3=({serverURL:b,path:$=window.location.pathname,selector:j=".waline-pageview-count",update:U=!0,lang:Bn=navigator.language})=>{const Fn=new AbortController,qn=Array.from(document.querySelectorAll(j)),Wn=Qn=>{const Yn=l$2(Qn);return Yn!==null&&$!==Yn},Gn=Qn=>n$1({serverURL:r$2(b),paths:Qn.map(Yn=>l$2(Yn)||$),lang:Bn,signal:Fn.signal}).then(Yn=>s$2(Yn,Qn)).catch(o$2);if(U){const Qn=qn.filter(Zn=>!Wn(Zn)),Yn=qn.filter(Wn);a$2({serverURL:r$2(b),path:$,lang:Bn}).then(Zn=>s$2(new Array(Qn.length).fill(Zn),Qn)),Yn.length&&Gn(Yn)}else Gn(qn);return Fn.abort.bind(Fn)},waline$1="",waline="",e$1={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!0},k$4={"/en/":{placeholder:"Write a comment here (Fill in the email address to receive an email notification when being replied)"},"/":{placeholder:"请留言。(填写邮箱可在被回复时收到邮件提醒)"}},i$2=Boolean(e$1.serverURL);__vitePreload(()=>import("./waline-meta-a31b78ed.js"),[]);var A$4=defineComponent({name:"WalineComment",setup(){const b=useRoute(),$=usePageFrontmatter(),j=usePageLang(),U=kt$1(k$4);let Bn;const Fn=computed(()=>{if(!i$2)return!1;const Gn=e$1.comment!==!1,Qn=$.value.comment;return Boolean(Qn)||Gn!==!1&&Qn!==!1}),qn=computed(()=>{if(!i$2)return!1;const Gn=e$1.pageview!==!1,Qn=$.value.pageview;return Boolean(Qn)||Gn!==!1&&Qn!==!1}),Wn=computed(()=>({lang:j.value==="zh-CN"?"zh-CN":"en",locale:U.value,emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili"],dark:"html.dark",...e$1,path:withBase(b.path)}));return onMounted(()=>{watch(()=>b.path,()=>{Bn==null||Bn(),qn.value&&setTimeout(()=>{Bn=i$3({serverURL:e$1.serverURL,path:withBase(b.path)})},e$1.delay||800)},{immediate:!0})}),()=>Fn.value?h$3("div",{class:"waline-wrapper"},i$2?h$3(Nn,Wn.value):[]):null}});const l$1={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!0}.comment!==!1;var s$1=defineClientConfig({enhance:({app:b})=>{const $=defineComponent({name:"CommentService",props:{darkmode:Boolean},setup(j){const U=usePageFrontmatter(),Bn=computed(()=>U.value.comment||l$1&&U.value.comment!==!1);return()=>h$3(A$4,{darkmode:j.darkmode,style:{display:Bn.value?"block":"none"}})}});b.component("CommentService",$)}});const message="",balloon="",button="",L$2=800,S$5=2e3,_$1={"/en/":{copy:"Copy code",copied:"Copied",hint:"Copied successfully"},"/":{copy:"复制代码",copied:"已复制",hint:"复制成功"}},d$3='.theme-hope-content div[class*="language-"] pre',g$3=!1,w$2=async b=>{try{return navigator.clipboard.writeText(b)}catch{const $=document.createElement("textarea"),j=document.activeElement;$.value=b,$.setAttribute("readonly",""),$.style.contain="strict",$.style.position="absolute",$.style.left="-9999px",$.style.fontSize="12pt";const U=document.getSelection(),Bn=U?U.rangeCount>0&&U.getRangeAt(0):null;document.body.appendChild($),$.select(),$.selectionStart=0,$.selectionEnd=b.length,document.execCommand("copy"),document.body.removeChild($),Bn&&(U.removeAllRanges(),U.addRange(Bn)),j&&j.focus()}},P$3='<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#06a35a"><path d="M822.812 824.618c-83.076 81.992-188.546 124.614-316.05 127.865-122.085-3.251-223.943-45.873-305.935-127.865S76.213 640.406 72.962 518.682c3.251-127.503 45.873-232.973 127.865-316.05 81.992-83.075 184.211-126.058 305.936-129.309 127.503 3.251 232.973 46.234 316.049 129.31 83.076 83.076 126.059 188.546 129.31 316.05-2.89 121.723-46.234 223.943-129.31 305.935zM432.717 684.111c3.973 3.974 8.307 5.78 13.364 6.14 5.057.362 9.753-1.444 13.365-5.417l292.57-287.515c3.974-3.973 5.78-8.307 5.78-13.364s-1.806-9.753-5.78-13.365l1.807 1.806c-3.973-3.973-8.669-5.779-14.087-6.14-5.418-.361-10.475 1.445-14.809 5.418L460.529 592.006c-3.973 3.25-8.669 4.695-14.448 4.695-5.78 0-10.836-1.445-15.531-3.973l-94.273-72.962c-4.335-3.251-9.392-4.335-14.448-3.973s-9.392 3.25-12.642 7.585l-2.89 3.973c-3.25 4.334-4.334 9.391-3.973 14.81.722 5.417 2.528 10.113 5.779 14.086L432.717 684.11z"/></svg>',C$2=()=>navigator?/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/iu.test(navigator.userAgent):!1,p$2=new Map,x$2=()=>{const b=useRoute(),$=kt$1(_$1);let j;const U=qn=>{if(!qn.hasAttribute("copy-code-registered")){const Wn=document.createElement("button");Wn.classList.add("copy-code-button"),Wn.innerHTML='<div class="copy-icon" />',Wn.setAttribute("aria-label",$.value.copy),Wn.setAttribute("data-copied",$.value.copied),Wn.setAttribute("data-balloon-pos","left"),qn.parentElement&&qn.parentElement.insertBefore(Wn,qn),qn.setAttribute("copy-code-registered","")}},Bn=()=>{setTimeout(()=>{isString$1(d$3)?document.querySelectorAll(d$3).forEach(U):isArray(d$3)&&d$3.forEach(qn=>{document.querySelectorAll(qn).forEach(U)})},L$2)},Fn=(qn,Wn,Gn)=>{let{innerText:Qn=""}=Wn;/language-(shellscript|shell|bash|sh|zsh)/.test(qn.classList.toString())&&(Qn=Qn.replace(/^ *(\$|>) /gm,"")),w$2(Qn).then(()=>{Gn.classList.add("copied"),clearTimeout(p$2.get(Gn));const Yn=setTimeout(()=>{Gn.classList.remove("copied"),Gn.blur(),p$2.delete(Gn)},2e3);p$2.set(Gn,Yn),j.pop(`${P$3}<span>${$.value.hint} 🎉</span>`,S$5)})};onMounted(()=>{j=new Pt$1,(!C$2()||g$3)&&Bn(),window.addEventListener("click",qn=>{const Wn=qn.target;if(Wn.matches('div[class*="language-"] > button.copy')){const Gn=Wn.parentElement,Qn=Wn.nextElementSibling;Qn&&Fn(Gn,Qn,Wn)}else if(Wn.matches('div[class*="language-"] div.copy-icon')){const Gn=Wn.parentElement,Qn=Gn.parentElement,Yn=Gn.nextElementSibling;Yn&&Fn(Qn,Yn,Gn)}}),watch(()=>b.path,()=>{(!C$2()||g$3)&&Bn()})})};var D$1=defineClientConfig({setup:()=>{x$2()}});const chart="",LoadingIcon$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),parseChartConfig=(config,type)=>{if(type==="json")return JSON.parse(config);const exports={},module={exports};return eval(config),module.exports};var ChartJS=defineComponent({name:"ChartJS",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup(b){const $=ref(),j=ref(),U=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./auto-f37428bb.js"),[]),new Promise(Bn=>setTimeout(Bn,800))]).then(([{default:Bn}])=>{Bn.defaults.maintainAspectRatio=!1;const Fn=parseChartConfig(Bt$1(b.config),b.type),qn=j.value.getContext("2d");new Bn(qn,Fn),U.value=!1})}),()=>[b.title?h$3("div",{class:"chart-title"},decodeURIComponent(b.title)):null,U.value?h$3("div",{class:"chart-loading-wrapper"},h$3(LoadingIcon$1)):null,h$3("div",{ref:$,class:"chart-wrapper",id:b.id,style:{display:U.value?"none":"block"}},h$3("canvas",{ref:j,height:400}))]}});const codeTabs="",o$1=useStorage("VUEPRESS_CODE_TAB_STORE",{});var S$4=defineComponent({name:"CodeTabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup(b,{slots:$}){const j=ref(b.active),U=ref([]),Bn=()=>{if(b.tabId){const{title:Qn,id:Yn=Qn}=b.data[j.value];o$1.value[b.tabId]=Yn}},Fn=(Qn=j.value)=>{j.value=Qn<U.value.length-1?Qn+1:0,U.value[j.value].focus()},qn=(Qn=j.value)=>{j.value=Qn>0?Qn-1:U.value.length-1,U.value[j.value].focus()},Wn=(Qn,Yn)=>{if(Qn.key===" "||Qn.key==="Enter"?(Qn.preventDefault(),j.value=Yn):Qn.key==="ArrowRight"?(Qn.preventDefault(),Fn()):Qn.key==="ArrowLeft"&&(Qn.preventDefault(),qn()),b.tabId){const{title:Zn,id:Jn=Zn}=b.data[j.value];o$1.value[b.tabId]=Jn}},Gn=()=>{if(b.tabId){const Qn=b.data.findIndex(({title:Yn,id:Zn=Yn})=>o$1.value[b.tabId]===Zn);if(Qn!==-1)return Qn}return b.active};return onMounted(()=>{j.value=Gn(),watch(()=>o$1.value[b.tabId],(Qn,Yn)=>{if(b.tabId&&Qn!==Yn){const Zn=b.data.findIndex(({title:Jn,id:Kn=Jn})=>Kn===Qn);Zn!==-1&&(j.value=Zn)}})}),()=>b.data.length?h$3("div",{class:"code-tabs"},[h$3("div",{class:"code-tabs-nav",role:"tablist"},b.data.map(({title:Qn},Yn)=>{const Zn=Yn===j.value;return h$3("button",{ref:Jn=>{Jn&&(U.value[Yn]=Jn)},class:["code-tabs-nav-tab",{active:Zn}],role:"tab","aria-controls":`codetab-${b.id}-${Yn}`,"aria-selected":Zn,onClick:()=>{j.value=Yn,Bn()},onKeydown:Jn=>Wn(Jn,Yn)},Qn)})),b.data.map(({title:Qn,id:Yn=Qn},Zn)=>{var Jn;const Kn=Zn===j.value;return h$3("div",{class:["code-tab",{active:Kn}],id:`codetab-${b.id}-${Zn}`,role:"tabpanel","aria-expanded":Kn},(Jn=$[`tab${Zn}`])==null?void 0:Jn.call($,{title:Qn,value:Yn,isActive:Kn}))})]):null}});const index$2="",codeDemo="",M$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),O$1='<svg class="codepen-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M123.429 668L468 897.714V692.571L277.143 565.143zM88 585.714L198.286 512 88 438.286v147.428zm468 312L900.571 668 746.857 565.143 556 692.57v205.143zM512 616l155.429-104L512 408 356.571 512zM277.143 458.857L468 331.43V126.286L123.429 356zM825.714 512L936 585.714V438.286zm-78.857-53.143L900.571 356 556 126.286v205.143zM1024 356v312q0 23.429-19.429 36.571l-468 312Q524.571 1024 512 1024t-24.571-7.429l-468-312Q0 691.43 0 668V356q0-23.429 19.429-36.571l468-312Q499.429 0 512 0t24.571 7.429l468 312Q1024 332.57 1024 356z"/></svg>',N$1='<svg class="jsfiddle-icon" viewBox="0 0 1170 1024" xmlns="http://www.w3.org/2000/svg" width="228.516" height="200"><path d="M1028.571 441.143q63.429 26.286 102.572 83.143t39.143 126.571q0 93.714-67.429 160.286T940 877.714q-2.286 0-6.571-.285t-6-.286H232q-97.143-5.714-164.571-71.714T0 645.143q0-62.857 31.429-116t84-84q-6.858-22.286-6.858-46.857 0-65.715 46.858-112T269.143 240q54.286 0 98.286 33.143 42.857-88 127.142-141.714t186.572-53.715q94.857 0 174.857 46t126.571 124.857 46.572 172q0 3.429-.286 10.286t-.286 10.286zm-761.142 152q0 69.714 48 110.286T434.286 744q78.285 0 137.143-56.571-9.143-11.429-27.143-32.286t-24.857-28.857q-38.286 37.143-82.286 37.143-31.429 0-53.429-19.143t-22-50q0-30.286 22-49.715T436 525.143q25.143 0 48.286 12T526 568.57t37.143 42.858 39.428 46.857 44 42.857T702 732.57t69.429 12q69.142 0 116.857-40.857T936 594.857q0-69.143-48-109.714T769.714 444.57Q688 444.571 632 500l53.143 61.714q37.714-36.571 81.143-36.571 29.714 0 52.571 18.857t22.857 48q0 32.571-21.143 52.286T766.857 664q-24.571 0-47.143-12t-41.143-31.429-37.428-42.857-39.714-46.857T557.143 488 502 456.571t-67.714-12q-69.715 0-118.286 40.286t-48.571 108.286z"/></svg>',L$1={useBabel:!1,jsLib:[],cssLib:[],codepenLayout:"left",codepenEditors:"101",babel:"https://unpkg.com/@babel/standalone/babel.min.js",vue:"https://unpkg.com/vue/dist/vue.global.prod.js",react:"https://unpkg.com/react/umd/react.production.min.js",reactDOM:"https://unpkg.com/react-dom/umd/react-dom.production.min.js"},C$1={html:{types:["html","slim","haml","md","markdown","vue"],map:{html:"none",vue:"none",md:"markdown"}},js:{types:["js","javascript","coffee","coffeescript","ts","typescript","ls","livescript"],map:{js:"none",javascript:"none",coffee:"coffeescript",ls:"livescript",ts:"typescript"}},css:{types:["css","less","sass","scss","stylus","styl"],map:{css:"none",styl:"stylus"}}},A$3=(b,$,j)=>{const U=document.createElement(b);return $&&Object.keys($).forEach(Bn=>{if(Bn.indexOf("data"))U[Bn]=$[Bn];else{const Fn=Bn.replace("data","");U.dataset[Fn]=$[Bn]}}),j&&j.forEach(Bn=>{U.appendChild(Bn)}),U},w$1=b=>({...L$1,...b,jsLib:Array.from(new Set([...L$1.jsLib||[],...b.jsLib||[]])),cssLib:Array.from(new Set([...L$1.cssLib||[],...b.cssLib||[]]))}),v$1=(b,$)=>{if(b[$]!==void 0)return b[$];const j=new Promise(U=>{var Bn;const Fn=document.createElement("script");Fn.src=$,(Bn=document.querySelector("body"))==null||Bn.appendChild(Fn),Fn.onload=()=>{U()}});return b[$]=j,j},k$3=(b,$)=>{if($.css&&Array.from(b.childNodes).every(j=>j.nodeName!=="STYLE")){const j=A$3("style",{innerHTML:$.css});b.appendChild(j)}},D=(b,$,j)=>{const U=j.getScript();if(U&&Array.from($.childNodes).every(Bn=>Bn.nodeName!=="SCRIPT")){const Bn=document.createElement("script");Bn.appendChild(document.createTextNode(`{const document=window.document.querySelector('#${b} .code-demo-container').shadowRoot;
|
||
${U}}`)),$.appendChild(Bn)}},R=b=>{const $=Object.keys(b),j={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(U=>{const Bn=$.filter(Fn=>C$1[U].types.includes(Fn));if(Bn.length){const Fn=Bn[0];j[U]=[b[Fn].replace(/^\n|\n$/g,""),C$1[U].map[Fn]||Fn]}}),j.isLegal=(!j.html.length||j.html[1]==="none")&&(!j.js.length||j.js[1]==="none")&&(!j.css.length||j.css[1]==="none"),j},x$1=b=>b.replace(/<br \/>/g,"<br>").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1></$2>"),_=b=>`<div id="app">
|
||
${x$1(b)}
|
||
</div>`,B=b=>`${b.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")};
|
||
ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,V=b=>b.replace(/export\s+default\s*\{(\n*[\s\S]*)\n*\}\s*;?$/u,"Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{(\n*[\s\S]*)\n*\}\s*\)\s*;?$/u,"Vue.createApp({$1}).mount('#app')").trim(),q=b=>`(function(exports){var module={};module.exports=exports;${b};return module.exports.__esModule?module.exports.default:module.exports;})({})`,z=(b,$)=>{const j=w$1($),U=b.js[0]||"";return{...j,html:x$1(b.html[0]||""),js:U,css:b.css[0]||"",isLegal:b.isLegal,getScript:()=>{var Bn;return j.useBabel?((Bn=window.Babel.transform(U,{presets:["es2015"]}))==null?void 0:Bn.code)||"":U}}},P$2=(b,$)=>{const j=w$1($),U=b.html[0]||"",Bn=/<template>([\s\S]+)<\/template>/u.exec(U),Fn=/<script(\s*lang=(['"])(.*?)\2)?>([\s\S]+)<\/script>/u.exec(U),qn=/<style(\s*lang=(['"])(.*?)\2)?\s*(?:scoped)?>([\s\S]+)<\/style>/u.exec(U),Wn=Bn?Bn[1].replace(/^\n|\n$/g,""):"",[Gn="",Qn=""]=Fn?[Fn[4].replace(/^\n|\n$/g,""),Fn[3]]:[],[Yn="",Zn=""]=qn?[qn[4].replace(/^\n|\n$/g,""),qn[3]]:[],Jn=Qn===""&&(Zn===""||Zn==="css");return{...j,html:_(Wn),js:V(Gn),css:Yn,isLegal:Jn,jsLib:[j.vue,...j.jsLib],getScript:()=>{var Kn,ea;const Xn=$.useBabel?((ea=(Kn=window.Babel)==null?void 0:Kn.transform(Gn,{presets:["es2015"]}))==null?void 0:ea.code)||"":Gn.replace(/export\s+default/u,"return");return`const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${q(Xn)};appOptions.template=\`${Wn.replace("`",'\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`}}},H$2=(b,$)=>{const j=w$1($);return{...j,html:_(""),js:B(b.js[0]||""),css:b.css[0]||(b.js[0]?b.js[0].replace(/App\.__style__(?:\s*)=(?:\s*)`([\s\S]*)?`/,"$1").trim():""),isLegal:b.isLegal,jsLib:[j.react,j.reactDOM,...j.jsLib],jsx:!0,getScript:()=>{var U,Bn;const Fn=((Bn=(U=window.Babel)==null?void 0:U.transform(b.js[0]||"",{presets:["es2015","react"]}))==null?void 0:Bn.code)||"";return`window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${q(Fn)}))`}}},h$1={},I$2=b=>Promise.all([v$1(h$1,b.babel),v$1(h$1,b.react),v$1(h$1,b.reactDOM)]),J=b=>{const $=[v$1(h$1,b.vue)];return b.useBabel&&$.push(v$1(h$1,b.babel)),Promise.all($)},Q=b=>b.useBabel?v$1(h$1,b.babel):Promise.resolve();var F$1=defineComponent({name:"CodeDemo",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},title:{type:String,default:""},config:{type:String,default:""},code:{type:String,required:!0}},setup(b,{slots:$}){const j=ref(!1),U=ref(),Bn=ref(),Fn=ref("0"),qn=ref(!1),Wn=computed(()=>JSON.parse(b.config?Bt$1(b.config):"{}")),Gn=computed(()=>{const Kn=JSON.parse(Bt$1(b.code));return R(Kn)}),Qn=computed(()=>b.type==="react"?H$2(Gn.value,Wn.value):b.type==="vue"?P$2(Gn.value,Wn.value):z(Gn.value,Wn.value)),Yn=computed(()=>Qn.value.isLegal),Zn=(Kn=!1)=>{const ea=U.value.attachShadow({mode:"open"}),Xn=document.createElement("div");Xn.classList.add("code-demo-app"),ea.appendChild(Xn),Yn.value?(Kn&&(Xn.innerHTML=Qn.value.html),k$3(ea,Qn.value),D(b.id,ea,Qn.value),Fn.value="0"):Fn.value="auto",qn.value=!0},Jn=()=>{switch(b.type){case"react":return I$2(Qn.value).then(()=>Zn());case"vue":return J(Qn.value).then(()=>Zn());default:return Q(Qn.value).then(()=>Zn(!0))}};return onMounted(()=>{setTimeout(()=>{Jn()},800)}),()=>{var Kn;return h$3("div",{class:"code-demo-wrapper",id:b.id},[qn.value?null:h$3("div",{class:"loading"},h$3(M$1)),h$3("div",{class:"code-demo-header"},[Qn.value.isLegal?h$3("button",{class:["toggle-button",j.value?"down":"right"],onClick:()=>{Fn.value=j.value?"0":`${Bn.value.clientHeight+13.8}px`,j.value=!j.value}}):null,b.title?h$3("span",{class:"title"},decodeURIComponent(b.title)):null,Qn.value.isLegal&&Qn.value.jsfiddle!==!1?h$3("form",{class:"code-demo-jsfiddle",target:"_blank",action:"https://jsfiddle.net/api/post/library/pure/",method:"post"},[h$3("input",{type:"hidden",name:"html",value:Qn.value.html}),h$3("input",{type:"hidden",name:"js",value:Qn.value.js}),h$3("input",{type:"hidden",name:"css",value:Qn.value.css}),h$3("input",{type:"hidden",name:"wrap",value:"1"}),h$3("input",{type:"hidden",name:"panel_js",value:"3"}),h$3("input",{type:"hidden",name:"resources",value:[...Qn.value.cssLib,...Qn.value.jsLib].join(",")}),h$3("button",{type:"submit",class:"jsfiddle-button",innerHTML:N$1,"aria-label":"JSFiddle","data-balloon-pos":"up"})]):null,!Qn.value.isLegal||Qn.value.codepen!==!1?h$3("form",{class:"code-demo-codepen",target:"_blank",action:"https://codepen.io/pen/define",method:"post"},[h$3("input",{type:"hidden",name:"data",value:JSON.stringify({html:Qn.value.html,js:Qn.value.js,css:Qn.value.css,js_external:Qn.value.jsLib.join(";"),css_external:Qn.value.cssLib.join(";"),layout:Qn.value.codepenLayout,html_pre_processor:Gn.value?Gn.value.html[1]:"none",js_pre_processor:Gn.value?Gn.value.js[1]:Qn.value.jsx?"babel":"none",css_pre_processor:Gn.value?Gn.value.css[1]:"none",editors:Qn.value.codepenEditors})}),h$3("button",{type:"submit",innerHTML:O$1,class:"codepen-button","aria-label":"Codepen","data-balloon-pos":"up"})]):null]),h$3("div",{ref:U,class:"code-demo-container",style:{display:Yn.value&&qn.value?"block":"none"}}),h$3("div",{class:"code-demo-code-wrapper",style:{height:Fn.value}},h$3("div",{ref:Bn,class:"code-demo-codes"},(Kn=$.default)==null?void 0:Kn.call($)))])}}});const echarts="",LoadingIcon=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),parseEChartsConfig=(config,type)=>{if(type==="js"){const exports={},module={exports};return eval(config),module.exports}return JSON.parse(config)};var ECharts=defineComponent({name:"ECharts",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup(b){const $=ref();let j;const U=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./index-8764208e.js"),[]),new Promise(Bn=>setTimeout(Bn,800))]).then(([Bn])=>{const Fn=parseEChartsConfig(Bt$1(b.config),b.type);j=Bn.init($.value),j.showLoading(),j.setOption(Fn),j.hideLoading(),U.value=!1}),useEventListener("resize",useDebounceFn(()=>j==null?void 0:j.resize(),100))}),onBeforeUnmount(()=>{j==null||j.dispose()}),()=>[b.title?h$3("div",{class:"echarts-title"},decodeURIComponent(b.title)):null,U.value?h$3("div",{class:"echarts-loading-wrapper"},h$3(LoadingIcon)):null,h$3("div",{ref:$,class:"echarts-wrapper",id:b.id})]}});const figure="",flowchart="",y$1=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})])));var a$1={x:0,y:0,"line-width":2,"line-length":40,"text-margin":8,"font-size":14,"font-color":"#8DA1AC","line-color":"#8DA1AC","element-color":"black",fill:"white","yes-text":"Yes","no-text":"No","arrow-end":"block",scale:1},F={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#595959","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#595959","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#FF485E","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FF485E","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"}}},C={...a$1,"line-width":1,symbols:{start:{class:"start-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},end:{class:"end-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},operation:{class:"operation-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},inputoutput:{class:"inputoutput-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},subroutine:{class:"subroutine-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},condition:{class:"condition-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},parallel:{class:"parallel-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"}}},g$2={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#00BC7D","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#EB4D5D","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#937AC4","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FFB500","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"}}},p$1={ant:F,vue:g$2,pie:C},k$2=defineComponent({name:"FlowChart",props:{code:{type:String,required:!0},id:{type:String,required:!0},preset:{type:String,default:"vue"}},setup(b){let $;const j=ref(),U=ref(!0),Bn=ref(1),Fn=computed(()=>p$1[b.preset]||(console.warn(`[md-enhance:flowchart] Unknown preset: ${b.preset}`),p$1.vue)),qn=Wn=>Wn<419?.8:Wn>1280?1:.9;return onMounted(()=>{Promise.all([__vitePreload(()=>import("./flowchart.parse-0007e96c.js").then(Wn=>Wn.f),[]),new Promise(Wn=>setTimeout(Wn,800))]).then(([{default:Wn}])=>{$=Wn(Bt$1(b.code)),Bn.value=qn(window.innerWidth),U.value=!1,$.drawSVG(b.id,{...Fn.value,scale:Bn.value}),useEventListener("resize",useDebounceFn(()=>{const Gn=qn(window.innerWidth);Bn.value!==Gn&&(Bn.value=Gn,$.drawSVG(b.id,{...Fn.value,scale:Gn}))},100))})}),()=>[U.value?h$3("div",{class:"flowchart-loading-wrapper"},h$3(y$1)):null,h$3("div",{ref:j,class:["flowchart-wrapper",b.preset],id:b.id,style:{display:U.value?"none":"block"}})]}});const footnote="",imageMark="",mermaid="",M=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),k$1=b=>({dark:b,background:b?"#1e1e1e":"#fff",primaryColor:b?"#389d70":"#4abf8a",primaryBorderColor:b?"#389d70":"#4abf8a",primaryTextColor:"#fff",secondaryColor:"#ffb500",secondaryBorderColor:b?"#fff":"#000",secondaryTextColor:b?"#ddd":"#333",tertiaryColor:b?"#282828":"#efeef4",tertiaryBorderColor:b?"#bbb":"#242424",tertiaryTextColor:b?"#ddd":"#333",noteBkgColor:b?"#f6d365":"#fff5ad",noteTextColor:"#242424",noteBorderColor:b?"#f6d365":"#333",lineColor:b?"#d3d3d3":"#333",textColor:b?"#fff":"#242424",mainBkg:b?"#389d70":"#4abf8a",errorBkgColor:"#eb4d5d",errorTextColor:"#fff",nodeBorder:b?"#389d70":"#4abf8a",nodeTextColor:b?"#fff":"#242424",signalTextColor:b?"#9e9e9e":"#242424",classText:"#fff",labelColor:"#fff",fillType0:b?"#cf1322":"#f1636e",fillType1:"#f39c12",fillType2:"#2ecc71",fillType3:"#fa541c",fillType4:"#25a55b",fillType5:"#13c2c2",fillType6:"#096dd9",fillType7:"#aa6fe9"});var w=defineComponent({name:"Mermaid",props:{id:{type:String,required:!0},code:{type:String,required:!0}},setup(b){const $=ref(""),j=ref(),U=ref(!1);let Bn=null;return onMounted(()=>{const Fn=document.querySelector("html"),qn=Bt$1(b.code),Wn=()=>Fn.classList.contains("dark")||Fn.getAttribute("data-theme")==="dark";U.value=Wn(),Promise.all([__vitePreload(()=>import("./mermaid.esm.min-bc08675d.js"),[]),__vitePreload(()=>import("./mermaid-mindmap.esm.min-8f72be22.js"),["assets/mermaid-mindmap.esm.min-8f72be22.js","assets/framework-2050cf2c.js"]),new Promise(Gn=>setTimeout(Gn,800))]).then(async([{default:Gn},{default:Qn}])=>{try{await Gn.registerExternalDiagrams([Qn])}catch{}const Yn=async()=>{const Zn=document.createElement("div");Zn.style.position="relative",Zn.style.top="-9999px";const Jn=Kn=>{$.value=Kn,document.body.removeChild(Zn)};Gn.initialize({theme:"base",themeVariables:k$1(U.value),flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},journey:{useMaxWidth:!1},gantt:{useMaxWidth:!1},er:{useMaxWidth:!1},pie:{useMaxWidth:!1},startOnLoad:!1}),$.value="",document.body.appendChild(Zn),await nextTick(),await Gn.renderAsync(b.id,qn,Jn,Zn)};await Yn(),Bn=new MutationObserver(()=>{U.value=Wn()}),Bn.observe(Fn,{attributeFilter:["class","data-theme"],attributes:!0}),watch(U,Yn)})}),onBeforeUnmount(()=>{Bn==null||Bn.disconnect()}),()=>h$3("div",{ref:j,class:["mermaid-wrapper",{loading:!$.value}]},$.value?h$3("div",{class:"content",innerHTML:$.value}):h$3(M))}});const o=()=>__vitePreload(()=>import("./highlight.esm-a794bb63.js"),[]),t=()=>__vitePreload(()=>import("./markdown.esm-d92a2fc9.js"),[]),e=()=>__vitePreload(()=>import("./math.esm-70a288c8.js"),[]),r$1=()=>__vitePreload(()=>import("./notes.esm-224f94d9.js"),[]),a=()=>__vitePreload(()=>import("./reveal.esm-e5069ce0.js"),[]),i$1=()=>__vitePreload(()=>import("./search.esm-2c3fba7d.js"),[]),c=()=>__vitePreload(()=>import("./zoom.esm-b83b91d0.js"),[]),useReveal=()=>[a(),t(),o(),e(),i$1(),r$1(),c()],index$1="",leagueGothic="",sourceSansPro="",k=()=>h$3(P$5,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})])));var S$3=defineComponent({name:"Presentation",props:{id:{type:String,required:!0},code:{type:String,required:!0},theme:{type:String,default:"auto"}},setup(b){const $=usePageFrontmatter(),j=ref(""),U=ref(!1),Bn=ref(),Fn=ref();let qn;return onMounted(()=>{if(Fn.value){j.value=Bt$1(b.code),Fn.value.setAttribute("id",b.id),Fn.value.setAttribute("data-theme",b.theme);const Wn=[new Promise(Gn=>setTimeout(Gn,800)),...useReveal()];Promise.all(Wn).then(([,Gn,...Qn])=>{qn=new Gn.default(Fn.value,{plugins:Qn.map(Yn=>Yn.default)}),qn.initialize({backgroundTransition:"slide",hash:$.value.layout==="Slide",mouseWheel:$.value.layout==="Slide",transition:"slide",slideNumber:!0,...$.value.reveal||{},embedded:$.value.layout!=="Slide"}).then(()=>{U.value=!1,qn.configure({backgroundTransition:"slide"})})})}}),onBeforeUnmount(()=>{qn==null||qn.destroy()}),()=>h$3("div",{ref:Bn,class:{"md-enhance-presentation":!0,loading:U.value}},[U.value?h$3(k):null,h$3("div",{ref:Fn,class:["reveal","reveal-viewport"]},h$3("div",{class:"slides",style:{display:U.value?"none":"block"},innerHTML:`<section data-markdown data-separator="^\\r?\\n---\\r?\\n$" data-separator-vertical="^\\r?\\n--\\r?\\n$"><script type="text/template">${j.value}<\/script></section>`}))])}});const playground="",n='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 74.667C270.933 74.667 74.667 270.933 74.667 512S270.933 949.333 512 949.333 949.333 753.067 949.333 512 753.067 74.667 512 74.667zm0 810.666C307.2 885.333 138.667 716.8 138.667 512S307.2 138.667 512 138.667 885.333 307.2 885.333 512 716.8 885.333 512 885.333z"/><path d="M708.267 465.067 473.6 330.667c-8.533-4.267-17.067-6.4-25.6-6.4-29.867 0-53.333 23.466-53.333 53.333v268.8c0 8.533 2.133 19.2 6.4 25.6 10.666 17.067 27.733 27.733 46.933 27.733 8.533 0 17.067-2.133 25.6-6.4l234.667-134.4c8.533-4.266 14.933-10.666 19.2-19.2 6.4-12.8 8.533-27.733 4.266-40.533-2.133-14.933-10.666-25.6-23.466-34.133zM458.667 627.2V396.8L661.333 512 458.667 627.2z"/></svg>';var r=defineComponent({name:"Playground",props:{title:{type:String,default:""},link:{type:String,required:!0}},setup(b){return()=>[h$3("div",{class:"playground-wrapper"},[h$3("div",{class:"title-wrapper"},[b.title?h$3("div",{class:"title"},decodeURIComponent(b.title)):null,h$3("div",{class:"actions"},[h$3("a",{class:"action",href:decodeURIComponent(b.link),target:"_blank",innerHTML:n})])]),h$3("div",{class:"preview-container"},h$3("iframe",{class:"iframe-preview",src:decodeURIComponent(b.link)}))])]}});const tabs="",v=useStorage("VUEPRESS_TAB_STORE",{});var S$2=defineComponent({name:"Tabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup(b,{slots:$}){const j=ref(b.active),U=ref([]),Bn=()=>{if(b.tabId){const{title:Qn,id:Yn=Qn}=b.data[j.value];v.value[b.tabId]=Yn}},Fn=(Qn=j.value)=>{j.value=Qn<U.value.length-1?Qn+1:0,U.value[j.value].focus()},qn=(Qn=j.value)=>{j.value=Qn>0?Qn-1:U.value.length-1,U.value[j.value].focus()},Wn=(Qn,Yn)=>{Qn.key===" "||Qn.key==="Enter"?(Qn.preventDefault(),j.value=Yn):Qn.key==="ArrowRight"?(Qn.preventDefault(),Fn()):Qn.key==="ArrowLeft"&&(Qn.preventDefault(),qn()),Bn()},Gn=()=>{if(b.tabId){const Qn=b.data.findIndex(({title:Yn,id:Zn=Yn})=>v.value[b.tabId]===Zn);if(Qn!==-1)return Qn}return b.active};return onMounted(()=>{j.value=Gn(),watch(()=>v.value[b.tabId],(Qn,Yn)=>{if(b.tabId&&Qn!==Yn){const Zn=b.data.findIndex(({title:Jn,id:Kn=Jn})=>Kn===Qn);Zn!==-1&&(j.value=Zn)}})}),()=>b.data.length?h$3("div",{class:"tab-list"},[h$3("div",{class:"tab-list-nav",role:"tablist"},b.data.map(({title:Qn},Yn)=>{const Zn=Yn===j.value;return h$3("button",{ref:Jn=>{Jn&&(U.value[Yn]=Jn)},class:["tab-list-nav-item",{active:Zn}],role:"tab","aria-controls":`tab-${b.id}-${Yn}`,"aria-selected":Zn,onClick:()=>{j.value=Yn,Bn()},onKeydown:Jn=>Wn(Jn,Yn)},Qn)})),b.data.map(({title:Qn,id:Yn=Qn},Zn)=>{var Jn;const Kn=Zn===j.value;return h$3("div",{class:["tab-item",{active:Kn}],id:`tab-${b.id}-${Zn}`,role:"tabpanel","aria-expanded":Kn},(Jn=$[`tab${Zn}`])==null?void 0:Jn.call($,{title:Qn,value:Yn,isActive:Kn}))})]):null}});const tasklist="",katex="",clientConfig9=defineClientConfig({enhance:({app:b})=>{b.component("ChartJS",ChartJS),b.component("CodeTabs",S$4),b.component("CodeDemo",F$1),b.component("ECharts",ECharts),b.component("FlowChart",k$2),b.component("Mermaid",w),b.component("Presentation",S$3),b.component("Playground",r),b.component("Tabs",S$2),b.component("VuePlayground",defineAsyncComponent(()=>__vitePreload(()=>import("./VuePlayground-77a48263.js"),["assets/VuePlayground-77a48263.js","assets/framework-2050cf2c.js"])))}}),photoswipe="",E$1=".theme-hope-content :not(a) > img",P$1={"/en/":{closeTitle:"Close",downloadTitle:"Download Image",fullscreenTitle:"Switch to full screen",zoomTitle:"Zoom in/out",arrowPrevTitle:"Prev (Arrow Left)",arrowNextTitle:"Next (Arrow Right)"},"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}},O=800,H$1={},d$2=b=>({src:b.src,width:b.naturalWidth,height:b.naturalHeight,alt:b.alt}),I$1=b=>{const $=isString$1(b)?Array.from(document.querySelectorAll(b)):b.map(j=>Array.from(document.querySelectorAll(j))).flat();return Promise.all($.map(j=>new Promise((U,Bn)=>{j.complete?U(d$2(j)):(j.onload=()=>U(d$2(j)),j.onerror=Fn=>Bn(Fn))}))).then(j=>({elements:$,infos:j}))},A$2=()=>{const{isSupported:b,toggle:$}=useFullscreen(),j=kt$1(P$1),U=useRoute(),Bn=()=>{Promise.all([__vitePreload(()=>import("./photoswipe.esm-a9093b7c.js"),[]),new Promise(Fn=>setTimeout(Fn,O)).then(()=>I$1(E$1))]).then(([Fn,qn])=>{qn.elements.forEach((Wn,Gn)=>{const Qn=()=>{const Yn=new Fn.default({dataSource:qn.infos,...j.value,...H$1,index:Gn});Yn.on("uiRegister",()=>{b&&Yn.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'<svg class="pswp__icn" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M249.5 270.833H437v-75H212a37.5 37.5 0 0 0-37.5 37.5v225h75v-187.5zm-37.5 600h225v-75H249.5v-187.5h-75v225a37.5 37.5 0 0 0 37.5 37.5zm637.5-37.5v-225h-75v187.5H587v75h225a37.5 37.5 0 0 0 37.5-37.5zM587 270.833h187.5v187.5h75v-225a37.5 37.5 0 0 0-37.5-37.5H587v75z"/></svg>',onClick:()=>{$()}}),Yn.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1-1.5-1.6ZM23 23H9v2h14" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(Zn,Jn)=>{Zn.setAttribute("download",""),Zn.setAttribute("target","_blank"),Zn.setAttribute("rel","noopener"),Jn.on("change",()=>{Zn.href=Jn.currSlide.data.src})}})}),Yn.init()};Wn.style.cursor="zoom-in",Wn.addEventListener("click",Qn),Wn.addEventListener("keypress",({key:Yn})=>{Yn==="Enter"&&Qn()})})})};onMounted(()=>{Bn(),watch(()=>U.path,()=>Bn())})};var y=defineClientConfig({setup:()=>{A$2()}});function i(b){return{all:b=b||new Map,on:function($,j){var U=b.get($);U?U.push(j):b.set($,[j])},off:function($,j){var U=b.get($);U&&(j?U.splice(U.indexOf(j)>>>0,1):b.set($,[]))},emit:function($,j){var U=b.get($);U&&U.slice().map(function(Bn){Bn(j)}),(U=b.get("*"))&&U.slice().map(function(Bn){Bn($,j)})}}}const l=Symbol.for("PWAEvent"),g$1=async b=>{const{register:$}=await __vitePreload(()=>import("./index-70769223.js"),[]);$(withBase("service-worker.js"),{ready(j){console.log("[PWA]: Service worker is active"),b.emit("ready",j)},registered(j){console.log("[PWA]: Service worker has been registered."),b.emit("registered",j)},cached(j){console.log("[PWA]: Content has been cached for offline usage"),b.emit("cached",j)},async updatefound(j){await navigator.serviceWorker.getRegistration()&&(console.log("[PWA]: New content is downloading."),b.emit("updatefound",j))},updated(j){console.log("[PWA]: New content is available, please refresh.");const U="service-worker-version",Bn=Number(localStorage.getItem(U)||0);localStorage.setItem(U,(Bn+1).toString()),localStorage.removeItem("manifest"),b.emit("updated",j)},offline(){console.log("[PWA]: No internet connection found. App is running in offline mode."),b.emit("offline")},error(j){console.log("[PWA]: Error during service worker registration:",j),b.emit("error",j)}})},m$1=()=>{const b=i();provide(l,b),onMounted(async()=>{var $;let j=!1;($=navigator.serviceWorker)!=null&&$.controller&&navigator.serviceWorker.addEventListener("controllerchange",()=>{j||(j=!0,window.location.reload())}),await g$1(b)})},popup="",W={"/en/":{install:"Install",iOSInstall:"Tap the share button and then 'Add to Home Screen'",cancel:"Cancel",close:"Close",prevImage:"Previous Image",nextImage:"Next Image",desc:"Description",feature:"Key Features",explain:"This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system. ",hint:"New content found.",update:"New content is available."},"/":{install:"安装",iOSInstall:"点击分享按钮然后点击“添加到主屏幕”",cancel:"取消",close:"关闭",prevImage:"上一张图片",nextImage:"下一张图片",desc:"详情",feature:"主要特色",explain:"该应用可以安装在你的 PC 或移动设备上。这将使该 Web 应用程序外观和行为与其他应用程序相同。它将在出现在应用程序列表中,并可以固定到主屏幕,开始菜单或任务栏。此 Web 应用程序还将能够与其他应用程序和你的操作系统安全地进行交互。",hint:"发现新内容可用",update:"新内容已就绪"}},s=()=>h$3(P$5,{name:"update"},()=>h$3("path",{d:"M949.949 146.25v255.826c0 21.981-13.989 35.97-35.97 35.97H658.154c-13.988 0-25.983-7.992-33.973-21.981-5.997-13.989-4-27.977 7.991-39.97l79.942-77.946c-55.954-51.973-121.918-77.955-199.863-77.955-37.975 0-75.95 8.002-113.924 21.99-37.975 15.985-67.948 37.976-91.934 63.957-25.982 23.987-47.973 53.96-63.957 91.934-29.983 73.955-29.983 153.895 0 227.85 15.984 37.976 37.975 67.947 63.957 91.934 23.986 25.982 53.959 47.973 91.934 63.956 37.974 13.989 75.95 21.991 113.924 21.991 45.967 0 87.942-9.998 127.913-29.982 41.976-17.99 75.951-45.967 101.931-83.943 7.993-4 11.994-5.995 13.989-5.995 5.997 0 9.998 1.994 13.988 5.995l77.958 77.946c3.989 4 5.986 7.993 5.986 11.994 0 1.994-1.996 5.995-3.99 11.994-43.973 51.962-93.941 91.934-151.9 117.914-53.958 25.983-115.92 39.972-185.874 39.972-61.961 0-119.921-11.984-169.89-33.973-57.96-25.985-105.923-57.963-139.896-93.943-35.98-33.972-67.958-81.936-93.94-139.897-45.967-101.93-45.967-237.846 0-339.777 25.982-57.96 57.96-105.923 93.94-139.896 33.973-35.98 81.936-67.958 139.896-93.94 49.968-21.99 107.928-33.974 169.89-33.974 55.963 0 109.923 9.988 161.885 29.973 53.97 21.99 101.933 51.963 139.908 89.938l73.954-73.944c9.987-9.998 23.987-13.988 39.971-8.002 13.988 8.002 21.98 19.995 21.98 33.984z"}));s.displayName="UpdateIcon";const P=Symbol.for("PWAEvent"),S$1=()=>{const b=inject(P);if(!b)throw new Error("usePWAEvent() is called without provider.");return b},g=b=>{const $=b.waiting;if(!$)return;const j=new MessageChannel;$.postMessage({type:"SKIP_WAITING"},[j.port2])};var A$1=defineComponent({name:"SWUpdatePopup",setup(b,{slots:$}){const j=kt$1(W),U=ref(),Bn=computed(()=>Boolean(U.value)),Fn=()=>{U.value&&(g(U.value),U.value=void 0)};return onMounted(()=>{S$1().on("updated",qn=>{qn&&(U.value=qn)})}),()=>h$3(Transition,{name:"popup"},()=>{var qn;return((qn=$.default)==null?void 0:qn.call($,{enabled:Bn.value,reload:Fn}))||(Bn.value?h$3("button",{class:"sw-update-popup",tabindex:0,onClick:()=>Fn()},[j.value.update,h$3("span",{class:"icon-wrapper"},h$3(s))]):null)})}});const clientConfig11=defineClientConfig({setup:()=>{m$1()},rootComponents:[A$1]}),useAutoLink=(b,$=!1)=>{const j=useRouter(),{fullPath:U,meta:Bn,name:Fn}=Dt$1(j,encodeURI(b));return{text:!$&&Bn.s?Bn.s:Bn.title||b,link:Fn==="404"?b:U,...Bn.i?{icon:Bn.i}:{}}},useThemeData=()=>useThemeData$1(),useThemeLocaleData=()=>useThemeLocaleData$1(),usePure=()=>computed(()=>Boolean(useThemeData().value.pure)),useWindowSize=()=>{const b=useThemeData(),$=ref(!1),j=ref(!1),U=()=>{$.value=window.innerWidth<=(b.value.mobileBreakPoint||719),j.value=window.innerWidth>=(b.value.wideBreakPoint||1440)};return onMounted(()=>{U(),useEventListener("resize",U,!1),useEventListener("orientationchange",U,!1)}),{isMobile:$,isWide:j}},useNavigate=()=>{const b=useRouter(),$=useRoute();return j=>{if(j)if(ue$1(j))$.path!==j&&b.push(j);else if(isLinkHttp(j)||isLinkMailto(j))window&&window.open(j);else{const U=$.path.slice(0,$.path.lastIndexOf("/"));b.push(`${U}/${encodeURI(j)}`)}}},usePageAuthor=()=>{const b=useThemeLocaleData(),$=usePageFrontmatter();return computed(()=>{const{author:j}=$.value;return j?re$1(j):j===!1?[]:re$1(b.value.author,!1)})},usePageCategory=()=>{const b=usePageFrontmatter();return computed(()=>se$1(b.value.category).map($=>({name:$,path:""})))},usePageTag=()=>{const b=usePageFrontmatter();return computed(()=>oe$1(b.value.tag).map($=>({name:$,path:""})))},usePageDate=()=>{const b=usePageFrontmatter(),$=usePageData();return computed(()=>{const{date:j}=b.value;if(j)return ot$1(j);const{createdTime:U}=$.value.git||{};return U?ot$1(new Date(U)):null})},usePageInfo=()=>{const b=useThemeLocaleData(),$=usePageData(),j=usePageFrontmatter(),U=usePageAuthor(),Bn=usePageCategory(),Fn=usePageTag(),qn=usePageDate(),Wn=computed(()=>({author:U.value,category:Bn.value,date:qn.value,localizedDate:$.value.localizedDate,tag:Fn.value,isOriginal:j.value.isOriginal||!1,readingTime:$.value.readingTime||null,pageview:"pageview"in j.value?j.value.pageview:!0})),Gn=computed(()=>"pageInfo"in j.value?j.value.pageInfo:"pageInfo"in b.value?b.value.pageInfo:null);return{info:Wn,items:Gn}};let promise=null,promiseResolve=null;const scrollPromise={wait:()=>promise,pending:()=>{promise=new Promise(b=>promiseResolve=b)},resolve:()=>{promiseResolve==null||promiseResolve(),promise=null,promiseResolve=null}},useScrollPromise=()=>scrollPromise,footer="",PageFooter=defineComponent({name:"PageFooter",setup(){const b=usePageFrontmatter(),$=useThemeLocaleData(),j=usePageAuthor(),U=computed(()=>{const{copyright:qn,footer:Wn}=b.value;return Wn!==!1&&Boolean(qn||Wn||$.value.displayFooter)}),Bn=computed(()=>{const{footer:qn}=b.value;return qn===!1?!1:isString$1(qn)?qn:$.value.footer||""}),Fn=computed(()=>"copyright"in b.value?b.value.copyright:"copyright"in $.value?$.value.copyright:j.value.length?`Copyright © ${new Date().getFullYear()} ${j.value[0].name}`:!1);return()=>U.value?h$3("footer",{class:"footer-wrapper"},[h$3("div",{class:"footer",innerHTML:Bn.value}),Fn.value?h$3("div",{class:"copyright",innerHTML:Fn.value}):null]):null}}),I18nIcon=()=>h$3(P$5,{name:"i18n"},()=>[h$3("path",{d:"M379.392 460.8 494.08 575.488l-42.496 102.4L307.2 532.48 138.24 701.44l-71.68-72.704L234.496 460.8l-45.056-45.056c-27.136-27.136-51.2-66.56-66.56-108.544h112.64c7.68 14.336 16.896 27.136 26.112 35.84l45.568 46.08 45.056-45.056C382.976 312.32 409.6 247.808 409.6 204.8H0V102.4h256V0h102.4v102.4h256v102.4H512c0 70.144-37.888 161.28-87.04 210.944L378.88 460.8zM576 870.4 512 1024H409.6l256-614.4H768l256 614.4H921.6l-64-153.6H576zM618.496 768h196.608L716.8 532.48 618.496 768z"})]);I18nIcon.displayName="I18nIcon";const Icon=b=>{const{icon:$=""}=b;return isLinkHttp($)?h$3("img",{class:"icon",src:$}):ue$1($)?h$3("img",{class:"icon",src:withBase($)}):h$3(resolveComponent("FontIcon"),b)};Icon.displayName="Icon";const AutoLink=defineComponent({name:"AutoLink",inheritAttrs:!1,props:{config:{type:Object,required:!0},exact:Boolean,noExternalLinkIcon:Boolean},emits:{focusout:()=>!0},setup(b,{attrs:$,emit:j,slots:U}){const Bn=useRoute(),Fn=useSiteData(),qn=toRef(b,"config"),Wn=computed(()=>isLinkHttp(qn.value.link)),Gn=computed(()=>isLinkMailto(qn.value.link)||isLinkTel(qn.value.link)),Qn=computed(()=>Gn.value?void 0:qn.value.target||(Wn.value?"_blank":void 0)),Yn=computed(()=>Qn.value==="_blank"),Zn=computed(()=>!Wn.value&&!Gn.value&&!Yn.value),Jn=computed(()=>Gn.value?void 0:qn.value.rel||(Yn.value?"noopener noreferrer":void 0)),Kn=computed(()=>qn.value.ariaLabel||qn.value.text),ea=computed(()=>{if(b.exact)return!1;const ta=Object.keys(Fn.value.locales);return ta.length?ta.every(na=>na!==qn.value.link):qn.value.link!=="/"}),Xn=computed(()=>Zn.value?qn.value.activeMatch?new RegExp(qn.value.activeMatch).test(Bn.path):ea.value?Bn.path.startsWith(qn.value.link):Bn.path===qn.value.link:!1);return()=>{var ca,pa,va;const{text:ta,icon:na,link:ra}=qn.value;return Zn.value?h$3(RouterLink,{to:ra,"aria-label":Kn.value,...$,class:["nav-link",{active:Xn.value},$.class],onFocusout:()=>j("focusout")},()=>{var ga,ia,la;return((ga=U.default)==null?void 0:ga.call(U))||[((ia=U.before)==null?void 0:ia.call(U))||h$3(Icon,{icon:na}),ta,(la=U.after)==null?void 0:la.call(U)]}):h$3("a",{href:ra,rel:Jn.value,target:Qn.value,"aria-label":Kn.value,...$,class:["nav-link",$.class],onFocusout:()=>j("focusout")},((ca=U.default)==null?void 0:ca.call(U))||[((pa=U.before)==null?void 0:pa.call(U))||h$3(Icon,{icon:na}),ta,b.noExternalLinkIcon?null:h$3(ExternalLinkIcon),(va=U.after)==null?void 0:va.call(U)])}}}),dropdownLink="",DropdownLink=defineComponent({name:"NavbarDropdownLink",props:{config:{type:Object,required:!0}},setup(b,{slots:$}){const j=useRoute(),U=toRef(b,"config"),Bn=computed(()=>U.value.ariaLabel||U.value.text),Fn=ref(!1);watch(()=>j.path,()=>{Fn.value=!1});const qn=Wn=>{Wn.detail===0&&(Fn.value=!Fn.value)};return()=>{var Wn;return h$3("div",{class:["dropdown-wrapper",{open:Fn.value}]},[h$3("button",{class:"dropdown-title",type:"button","aria-label":Bn.value,onClick:qn},[((Wn=$.title)==null?void 0:Wn.call($))||h$3("span",{class:"title"},[h$3(Icon,{icon:U.value.icon}),b.config.text]),h$3("span",{class:"arrow"}),h$3("ul",{class:"nav-dropdown"},U.value.children.map((Gn,Qn)=>{const Yn=Qn===U.value.children.length-1;return h$3("li",{class:"dropdown-item"},"children"in Gn?[h$3("h4",{class:"dropdown-subtitle"},Gn.link?h$3(AutoLink,{config:Gn,onFocusout:()=>{Gn.children.length===0&&Yn&&(Fn.value=!1)}}):h$3("span",Gn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},Gn.children.map((Zn,Jn)=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Zn,onFocusout:()=>{Jn===Gn.children.length-1&&Yn&&(Fn.value=!1)}}))))]:h$3(AutoLink,{config:Gn,onFocusout:()=>{Yn&&(Fn.value=!1)}}))}))])])}}}),resolveNavbarItem=(b,$="")=>isString$1(b)?useAutoLink(`${$}${b}`):"children"in b?{...b,...b.link&&!isLinkExternal(b.link)?useAutoLink(`${$}${b.link}`):{},children:b.children.map(j=>resolveNavbarItem(j,`${$}${b.prefix||""}`))}:{...b,link:isLinkExternal(b.link)?b.link:useAutoLink(`${$}${b.link}`).link},useNavbarConfig=()=>computed(()=>(useThemeLocaleData().value.navbar||[]).map(b=>resolveNavbarItem(b))),useNavbarLanguageDropdown=()=>{const b=useRouter(),$=useRouteLocale(),j=useSiteLocaleData(),U=useThemeData(),Bn=useThemeLocaleData();return computed(()=>{const Fn=Object.keys(j.value.locales);if(Fn.length<2)return null;const{path:qn,fullPath:Wn}=b.currentRoute.value,{navbarLocales:Gn}=Bn.value;return{text:"",ariaLabel:Gn==null?void 0:Gn.selectLangAriaLabel,children:Fn.map(Yn=>{var ta,na,ra;const Zn=((ta=j.value.locales)==null?void 0:ta[Yn])??{},Jn=((na=U.value.locales)==null?void 0:na[Yn])??{},Kn=Zn.lang||"",ea=((ra=Jn.navbarLocales)==null?void 0:ra.langName)??Kn;let Xn;if(Kn===j.value.lang)Xn=qn;else{const ca=qn.replace($.value,Yn);Xn=b.getRoutes().some(pa=>pa.path===ca)?Wn.replace(qn,ca):Jn.home??Yn}return{text:ea,link:Xn}})}})},useNavbarRepo=()=>{const b=useThemeLocaleData(),$=computed(()=>b.value.repo||null),j=computed(()=>$.value?Ft$1($.value):null),U=computed(()=>$.value?Jt$1($.value):null),Bn=computed(()=>j.value?b.value.repoLabel??(U.value===null?"Source":U.value):null);return computed(()=>!j.value||!Bn.value||b.value.repoDisplay===!1?null:{type:U.value||"Source",label:Bn.value,link:j.value})},LanguageDropdown=defineComponent({name:"LanguageDropdown",setup(){const b=useNavbarLanguageDropdown();return()=>b.value?h$3("div",{class:"nav-item"},h$3(DropdownLink,{class:"i18n-dropdown",config:b.value},{title:()=>{var $;return h$3(I18nIcon,{"aria-label":($=b.value)==null?void 0:$.ariaLabel,style:{width:"1rem",height:"1rem",verticalAlign:"middle"}})}})):null}}),navbarBrand="",NavbarBrand=defineComponent({name:"NavbarBrand",setup(){const b=useRouteLocale(),$=useSiteLocaleData(),j=useThemeLocaleData(),U=computed(()=>j.value.home||b.value),Bn=computed(()=>$.value.title),Fn=computed(()=>j.value.logo?withBase(j.value.logo):null),qn=computed(()=>j.value.logoDark?withBase(j.value.logoDark):null);return()=>h$3(RouterLink,{to:U.value,class:"brand"},()=>[Fn.value?h$3("img",{class:["logo",{light:Boolean(qn.value)}],src:Fn.value,alt:Bn.value}):null,qn.value?h$3("img",{class:["logo dark"],src:qn.value,alt:Bn.value}):null,Bn.value?h$3("span",{class:["site-name",{"hide-in-pad":Fn.value&&j.value.hideSiteNameOnMobile!==!1}]},Bn.value):null])}}),navbarLinks="",NavbarLinks=defineComponent({name:"NavbarLinks",setup(){const b=useNavbarConfig();return()=>b.value.length?h$3("nav",{class:"nav-links"},[...b.value.map($=>h$3("div",{class:"nav-item hide-in-mobile"},"children"in $?h$3(DropdownLink,{config:$}):h$3(AutoLink,{config:$})))]):null}});function _toConsumableArray(b){if(Array.isArray(b)){for(var $=0,j=Array(b.length);$<b.length;$++)j[$]=b[$];return j}else return Array.from(b)}var hasPassiveEvents=!1;if(typeof window<"u"){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting=void 0,previousBodyPaddingRight=void 0,allowTouchMove=function b($){return locks.some(function(j){return!!(j.options.allowTouchMove&&j.options.allowTouchMove($))})},preventDefault=function b($){var j=$||window.event;return allowTouchMove(j.target)||j.touches.length>1?!0:(j.preventDefault&&j.preventDefault(),!1)},setOverflowHidden=function b($){if(previousBodyPaddingRight===void 0){var j=!!$&&$.reserveScrollBarGap===!0,U=window.innerWidth-document.documentElement.clientWidth;j&&U>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=U+"px")}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=function b(){previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},isTargetElementTotallyScrolled=function b($){return $?$.scrollHeight-$.scrollTop<=$.clientHeight:!1},handleScroll=function b($,j){var U=$.targetTouches[0].clientY-initialClientY;return allowTouchMove($.target)?!1:j&&j.scrollTop===0&&U>0||isTargetElementTotallyScrolled(j)&&U<0?preventDefault($):($.stopPropagation(),!0)},disableBodyScroll=function b($,j){if(!$){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!locks.some(function(Bn){return Bn.targetElement===$})){var U={targetElement:$,options:j||{}};locks=[].concat(_toConsumableArray(locks),[U]),isIosDevice?($.ontouchstart=function(Bn){Bn.targetTouches.length===1&&(initialClientY=Bn.targetTouches[0].clientY)},$.ontouchmove=function(Bn){Bn.targetTouches.length===1&&handleScroll(Bn,$)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)):setOverflowHidden(j)}},clearAllBodyScrollLocks=function b(){isIosDevice?(locks.forEach(function($){$.targetElement.ontouchstart=null,$.targetElement.ontouchmove=null}),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),initialClientY=-1):restoreOverflowSetting(),locks=[]};const navScreenDropdown="",NavScreenDropdown=defineComponent({name:"NavScreenDropdown",props:{config:{type:Object,required:!0}},setup(b){const $=useRoute(),j=toRef(b,"config"),U=computed(()=>j.value.ariaLabel||j.value.text),Bn=ref(!1);watch(()=>$.path,()=>{Bn.value=!1});const Fn=(qn,Wn)=>Wn[Wn.length-1]===qn;return()=>[h$3("button",{class:["nav-screen-dropdown-title",{active:Bn.value}],type:"button","aria-label":U.value,onClick:()=>{Bn.value=!Bn.value}},[h$3("span",{class:"title"},[h$3(Icon,{icon:j.value.icon}),b.config.text]),h$3("span",{class:["arrow",Bn.value?"down":"right"]})]),h$3("ul",{class:["nav-screen-dropdown",{hide:!Bn.value}]},j.value.children.map(qn=>h$3("li",{class:"dropdown-item"},"children"in qn?[h$3("h4",{class:"dropdown-subtitle"},qn.link?h$3(AutoLink,{config:qn,onFocusout:()=>{Fn(qn,j.value.children)&&qn.children.length===0&&(Bn.value=!1)}}):h$3("span",qn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},qn.children.map(Wn=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Wn,onFocusout:()=>{Fn(Wn,qn.children)&&Fn(qn,j.value.children)&&(Bn.value=!1)}}))))]:h$3(AutoLink,{config:qn,onFocusout:()=>{Fn(qn,j.value.children)&&(Bn.value=!1)}}))))]}}),navScreenLinks="",NavScreenLinks=defineComponent({name:"NavScreenLinks",setup(){const b=useNavbarConfig();return()=>b.value.length?h$3("nav",{class:"nav-screen-links"},b.value.map($=>h$3("div",{class:"navbar-links-item"},"children"in $?h$3(NavScreenDropdown,{config:$}):h$3(AutoLink,{config:$})))):null}}),DarkIcon=()=>h$3(P$5,{name:"dark"},()=>h$3("path",{d:"M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"}));DarkIcon.displayName="DarkIcon";const LightIcon=()=>h$3(P$5,{name:"light"},()=>h$3("path",{d:"M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"}));LightIcon.displayName="LightIcon";const AutoIcon=()=>h$3(P$5,{name:"auto"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"}));AutoIcon.displayName="AutoIcon";const EnterFullScreenIcon=()=>h$3(P$5,{name:"enter-fullscreen"},()=>h$3("path",{d:"M762.773 90.24h-497.28c-96.106 0-174.4 78.293-174.4 174.4v497.28c0 96.107 78.294 174.4 174.4 174.4h497.28c96.107 0 175.04-78.293 174.4-174.4V264.64c0-96.213-78.186-174.4-174.4-174.4zm-387.2 761.173H215.04c-21.867 0-40.427-17.92-41.067-41.066V649.92c0-22.507 17.92-40.427 40.427-40.427 11.307 0 21.227 4.694 28.48 11.947 7.253 7.253 11.947 17.92 11.947 28.48v62.293l145.28-145.28c15.893-15.893 41.813-15.893 57.706 0 15.894 15.894 15.894 41.814 0 57.707l-145.28 145.28h62.294c22.506 0 40.426 17.92 40.426 40.427s-17.173 41.066-39.68 41.066zM650.24 165.76h160.427c21.866 0 40.426 17.92 41.066 41.067v160.426c0 22.507-17.92 40.427-40.426 40.427-11.307 0-21.227-4.693-28.48-11.947-7.254-7.253-11.947-17.92-11.947-28.48v-62.186L625.6 450.347c-15.893 15.893-41.813 15.893-57.707 0-15.893-15.894-15.893-41.814 0-57.707l145.28-145.28H650.88c-22.507 0-40.427-17.92-40.427-40.427s17.174-41.173 39.787-41.173z"}));EnterFullScreenIcon.displayName="EnterFullScreenIcon";const CancelFullScreenIcon=()=>h$3(P$5,{name:"cancel-fullscreen"},()=>h$3("path",{d:"M778.468 78.62H247.922c-102.514 0-186.027 83.513-186.027 186.027V795.08c0 102.514 83.513 186.027 186.027 186.027h530.432c102.514 0 186.71-83.513 186.026-186.027V264.647C964.494 162.02 880.981 78.62 778.468 78.62zM250.88 574.35h171.122c23.324 0 43.122 19.115 43.804 43.805v171.121c0 24.008-19.114 43.122-43.122 43.122-12.06 0-22.641-5.006-30.378-12.743s-12.743-19.115-12.743-30.379V722.83L224.597 877.91c-16.953 16.952-44.6 16.952-61.553 0-16.953-16.954-16.953-44.602 0-61.554L318.009 661.39h-66.446c-24.007 0-43.122-19.114-43.122-43.122 0-24.12 18.432-43.918 42.439-43.918zm521.899-98.873H601.657c-23.325 0-43.122-19.114-43.805-43.804V260.55c0-24.007 19.115-43.122 43.122-43.122 12.06 0 22.642 5.007 30.379 12.743s12.743 19.115 12.743 30.38v66.445l154.965-154.965c16.953-16.953 44.601-16.953 61.554 0 16.953 16.953 16.953 44.6 0 61.554L705.536 388.55h66.446c24.007 0 43.122 19.115 43.122 43.122.114 24.007-18.318 43.804-42.325 43.804z"}));CancelFullScreenIcon.displayName="CancelFullScreenIcon";const OutlookIcon=()=>h$3(P$5,{name:"outlook"},()=>[h$3("path",{d:"M224 800c0 9.6 3.2 44.8 6.4 54.4 6.4 48-48 76.8-48 76.8s80 41.6 147.2 0 134.4-134.4 38.4-195.2c-22.4-12.8-41.6-19.2-57.6-19.2C259.2 716.8 227.2 761.6 224 800zM560 675.2l-32 51.2c-51.2 51.2-83.2 32-83.2 32 25.6 67.2 0 112-12.8 128 25.6 6.4 51.2 9.6 80 9.6 54.4 0 102.4-9.6 150.4-32l0 0c3.2 0 3.2-3.2 3.2-3.2 22.4-16 12.8-35.2 6.4-44.8-9.6-12.8-12.8-25.6-12.8-41.6 0-54.4 60.8-99.2 137.6-99.2 6.4 0 12.8 0 22.4 0 12.8 0 38.4 9.6 48-25.6 0-3.2 0-3.2 3.2-6.4 0-3.2 3.2-6.4 3.2-6.4 6.4-16 6.4-16 6.4-19.2 9.6-35.2 16-73.6 16-115.2 0-105.6-41.6-198.4-108.8-268.8C704 396.8 560 675.2 560 675.2zM224 419.2c0-28.8 22.4-51.2 51.2-51.2 28.8 0 51.2 22.4 51.2 51.2 0 28.8-22.4 51.2-51.2 51.2C246.4 470.4 224 448 224 419.2zM320 284.8c0-22.4 19.2-41.6 41.6-41.6 22.4 0 41.6 19.2 41.6 41.6 0 22.4-19.2 41.6-41.6 41.6C339.2 326.4 320 307.2 320 284.8zM457.6 208c0-12.8 12.8-25.6 25.6-25.6 12.8 0 25.6 12.8 25.6 25.6 0 12.8-12.8 25.6-25.6 25.6C470.4 233.6 457.6 220.8 457.6 208zM128 505.6C128 592 153.6 672 201.6 736c28.8-60.8 112-60.8 124.8-60.8-16-51.2 16-99.2 16-99.2l316.8-422.4c-48-19.2-99.2-32-150.4-32C297.6 118.4 128 291.2 128 505.6zM764.8 86.4c-22.4 19.2-390.4 518.4-390.4 518.4-22.4 28.8-12.8 76.8 22.4 99.2l9.6 6.4c35.2 22.4 80 12.8 99.2-25.6 0 0 6.4-12.8 9.6-19.2 54.4-105.6 275.2-524.8 288-553.6 6.4-19.2-3.2-32-19.2-32C777.6 76.8 771.2 80 764.8 86.4z"})]);OutlookIcon.displayName="OutlookIcon";const darkModeSymbol=Symbol.for("darkMode"),useDarkmode=()=>{const b=inject(darkModeSymbol);if(!b)throw new Error("useDarkmode() is called without provider.");return b},injectDarkMode=b=>{const $=useThemeData(),j=usePreferredDark(),U=useStorage("vuepress-theme-hope-scheme","auto"),Bn=computed(()=>$.value.darkmode||"switch"),Fn=computed(()=>{const Wn=Bn.value;return Wn==="disable"?!1:Wn==="enable"?!0:Wn==="auto"?j.value:Wn==="toggle"?U.value==="dark":U.value==="dark"||U.value==="auto"&&j.value}),qn=computed(()=>{const Wn=Bn.value;return Wn==="switch"||Wn==="toggle"});b.provide(darkModeSymbol,{canToggle:qn,config:Bn,isDarkMode:Fn,status:U}),Object.defineProperties(b.config.globalProperties,{$isDarkMode:{get:()=>Fn.value}})},setupDarkMode=()=>{const{isDarkMode:b}=useDarkmode(),$=(j=b.value)=>{const U=window==null?void 0:window.document.querySelector("html");U==null||U.setAttribute("data-theme",j?"dark":"light")};onMounted(()=>{watch(b,$,{immediate:!0})})},appearanceSwitch="",AppearanceSwitch=defineComponent({name:"AppearanceSwitch",setup(){const{config:b,status:$}=useDarkmode(),j=()=>{b.value==="switch"?$.value={light:"dark",dark:"auto",auto:"light"}[$.value]:$.value=$.value==="light"?"dark":"light"};return()=>h$3("button",{id:"appearance-switch",onClick:()=>j()},[h$3(AutoIcon,{style:{display:$.value==="auto"?"block":"none"}}),h$3(DarkIcon,{style:{display:$.value==="dark"?"block":"none"}}),h$3(LightIcon,{style:{display:$.value==="light"?"block":"none"}})])}}),AppearanceMode=defineComponent({name:"AppearanceMode",setup(){const b=useThemeLocaleData(),{canToggle:$}=useDarkmode(),j=computed(()=>b.value.outlookLocales.darkmode);return()=>$.value?h$3("div",{class:"appearance-wrapper"},[h$3("label",{class:"appearance-title",for:"appearance-switch"},j.value),h$3(AppearanceSwitch)]):null}}),themeColorPicker="",ThemeColorPicker=defineComponent({name:"ThemeColorPicker",props:{themeColor:{type:Object,required:!0}},setup(b){const $=(j="")=>{const U=document.documentElement.classList,Bn=Object.keys(b.themeColor).map(Fn=>`theme-${Fn}`);if(!j){localStorage.removeItem("theme"),U.remove(...Bn);return}U.remove(...Bn.filter(Fn=>Fn!==`theme-${j}`)),U.add(`theme-${j}`),localStorage.setItem("theme",j)};return onMounted(()=>{const j=localStorage.getItem("theme");j&&$(j)}),()=>h$3("ul",{id:"theme-color-picker"},[h$3("li",h$3("span",{class:"theme-color",onClick:()=>$()})),...Object.entries(b.themeColor).map(([j,U])=>h$3("li",h$3("span",{style:{background:U},onClick:()=>$(j)})))])}}),ThemeColor=defineComponent({name:"ThemeColor",setup(){const b=useThemeData(),$=useThemeLocaleData(),j=computed(()=>$.value.outlookLocales.themeColor),U=computed(()=>{const{themeColor:Bn}=b.value;return Bn===!1?null:Bn});return()=>U.value?h$3("div",{class:"theme-color-wrapper"},[h$3("label",{class:"theme-color-title",for:"theme-color-picker"},j.value),h$3(ThemeColorPicker,{themeColor:U.value})]):null}}),toggleFullScreenButton="",ToggleFullScreenButton=defineComponent({name:"ToggleFullScreenButton",setup(){const b=useThemeLocaleData(),{isSupported:$,isFullscreen:j,toggle:U}=useFullscreen(),Bn=computed(()=>b.value.outlookLocales.fullscreen);return()=>$?h$3("div",{class:"fullscreen-wrapper"},[h$3("label",{class:"full-screen-title",for:"full-screen-switch"},Bn.value),h$3("button",{class:"full-screen",id:"full-screen-switch",ariaPressed:j.value,onClick:()=>U()},j.value?h$3(CancelFullScreenIcon):h$3(EnterFullScreenIcon))]):null}}),OutlookSettings=defineComponent({name:"OutlookSettings",setup(){const b=useThemeData(),$=usePure(),j=computed(()=>!$.value&&Boolean(b.value.themeColor)),U=computed(()=>!$.value&&b.value.fullscreen);return()=>h$3(ClientOnly,()=>[j.value?h$3(ThemeColor):null,h$3(AppearanceMode),U.value?h$3(ToggleFullScreenButton):null])}}),navScreen="",NavScreen=defineComponent({name:"NavScreen",props:{show:Boolean},emits:{close:()=>!0},setup(b,{emit:$,slots:j}){const U=useRoute(),{isMobile:Bn}=useWindowSize(),Fn=ref();return onMounted(()=>{watch(Bn,qn=>{!qn&&b.show&&(clearAllBodyScrollLocks(),$("close"))}),watch(()=>U.path,()=>{clearAllBodyScrollLocks(),$("close")})}),onBeforeUnmount(()=>{clearAllBodyScrollLocks()}),()=>h$3(Transition,{name:"fade",onEnter:()=>disableBodyScroll(Fn.value,{reserveScrollBarGap:!0}),onAfterLeave:()=>clearAllBodyScrollLocks()},()=>{var qn,Wn;return b.show?h$3("div",{id:"nav-screen",ref:Fn},h$3("div",{class:"container"},[(qn=j.before)==null?void 0:qn.call(j),h$3(NavScreenLinks),h$3("div",{class:"outlook-wrapper"},h$3(OutlookSettings)),(Wn=j.after)==null?void 0:Wn.call(j)])):null})}}),outlookButton="",OutlookButton=defineComponent({name:"OutlookButton",setup(){const{isSupported:b}=useFullscreen(),$=useThemeData(),j=usePure(),U=useRoute(),{canToggle:Bn}=useDarkmode(),Fn=ref(!1),qn=computed(()=>!j.value&&Boolean($.value.themeColor)),Wn=computed(()=>!j.value&&$.value.fullscreen&&b);return watch(()=>U.path,()=>{Fn.value=!1}),()=>Bn.value||Wn.value||qn.value?h$3("div",{class:"nav-item hide-in-mobile"},Bn.value&&!Wn.value&&!qn.value?h$3(AppearanceSwitch):Wn.value&&!Bn.value&&!qn.value?h$3(ToggleFullScreenButton):h$3("button",{class:["outlook-button",{open:Fn.value}],tabindex:"-1",ariaHidden:!0},[h$3(OutlookIcon),h$3("div",{class:"outlook-dropdown"},h$3(OutlookSettings))])):null}}),toggleNavbarButton="",ToggleNavbarButton=({active:b=!1},{emit:$})=>h$3("button",{class:["toggle-navbar-button",{"is-active":b}],"aria-label":"Toggle Navbar","aria-expanded":b,"aria-controls":"nav-screen",onClick:()=>$("toggle")},h$3("span",{class:"button-container"},[h$3("span",{class:"button-top"}),h$3("span",{class:"button-middle"}),h$3("span",{class:"button-bottom"})]));ToggleNavbarButton.displayName="ToggleNavbarButton";const toggleSidebarButton="",ToggleSidebarButton=(b,{emit:$})=>h$3("button",{class:"toggle-sidebar-button",title:"Toggle Sidebar",onClick:()=>$("toggle")},h$3("span",{class:"icon"}));ToggleSidebarButton.displayName="ToggleSidebarButton";ToggleSidebarButton.emits=["toggle"];const repoLink="",RepoLink=defineComponent({name:"RepoLink",components:{BitbucketIcon:gt$1,GiteeIcon:$t$1,GitHubIcon:vt$1,GitlabIcon:pt$1,SourceIcon:yt$1},setup(){const b=useNavbarRepo();return()=>b.value?h$3("div",{class:"nav-item"},h$3("a",{class:"repo-link",href:b.value.link,target:"_blank",rel:"noopener noreferrer","aria-label":b.value.label},h$3(resolveComponent(`${b.value.type}Icon`),{style:{width:"1.25rem",height:"1.25rem",verticalAlign:"middle"}}))):null}}),navbar="",Navbar=defineComponent({name:"NavBar",emits:{toggleSidebar:()=>!0},setup(b,{emit:$,slots:j}){const U=useThemeLocaleData(),{isMobile:Bn}=useWindowSize(),Fn=ref(!1),qn=computed(()=>{const{navbarAutoHide:Gn="mobile"}=U.value;return Gn!=="none"&&(Gn==="always"||Bn.value)}),Wn=computed(()=>U.value.navbarLayout||{left:["Brand"],center:["Links"],right:["Language","Repo","Outlook","Search"]});return()=>{var Qn,Yn,Zn,Jn,Kn,ea;const Gn={Brand:h$3(NavbarBrand),Language:h$3(LanguageDropdown),Links:h$3(NavbarLinks),Repo:h$3(RepoLink),Outlook:h$3(OutlookButton),Search:_t$1("Docsearch")?h$3(resolveComponent("Docsearch")):_t$1("SearchBox")?h$3(resolveComponent("SearchBox")):_t$1("SearchBox")?h$3(resolveComponent("SearchBox")):null};return[h$3("header",{class:["navbar",{"auto-hide":qn.value,"hide-icon":U.value.navbarIcon===!1}],id:"navbar"},[h$3("div",{class:"navbar-left"},[h$3(ToggleSidebarButton,{onToggle:()=>{Fn.value&&(Fn.value=!1),$("toggleSidebar")}}),(Qn=j.leftStart)==null?void 0:Qn.call(j),...Wn.value.left.map(Xn=>Gn[Xn]),(Yn=j.leftEnd)==null?void 0:Yn.call(j)]),h$3("div",{class:"navbar-center"},[(Zn=j.centerStart)==null?void 0:Zn.call(j),...Wn.value.center.map(Xn=>Gn[Xn]),(Jn=j.centerEnd)==null?void 0:Jn.call(j)]),h$3("div",{class:"navbar-right"},[(Kn=j.rightStart)==null?void 0:Kn.call(j),...Wn.value.right.map(Xn=>Gn[Xn]),(ea=j.rightEnd)==null?void 0:ea.call(j),h$3(ToggleNavbarButton,{active:Fn.value,onToggle:()=>{Fn.value=!Fn.value}})])]),h$3(NavScreen,{show:Fn.value,onClose:()=>{Fn.value=!1}},{before:()=>{var Xn;return(Xn=j.screenTop)==null?void 0:Xn.call(j)},after:()=>{var Xn;return(Xn=j.screenBottom)==null?void 0:Xn.call(j)}})]}}}),isActiveSidebarItem=(b,$,j=!1)=>"activeMatch"in $?new RegExp($.activeMatch).test(b.path):Rt$1(b,$.link)?!0:$.children&&!j?$.children.some(U=>isActiveSidebarItem(b,U)):!1,isMatchedSidebarItem=(b,$)=>$.type==="group"?$.children.some(j=>j.type==="group"?isMatchedSidebarItem(b,j):j.type==="page"&&isActiveSidebarItem(b,j,!0))||"prefix"in $&&Rt$1(b,$.prefix):!1,renderItem=(b,$)=>b.link?h$3(AutoLink,{...$,config:b}):h$3("p",$,[h$3(Icon,{icon:b.icon}),b.text]),renderChildren$1=b=>{const $=useRoute();return b?h$3("ul",{class:"sidebar-sub-headers"},b.map(j=>{const U=isActiveSidebarItem($,j,!0);return h$3("li",{class:"sidebar-sub-header"},[renderItem(j,{class:["sidebar-link","heading",{active:U}]}),renderChildren$1(j.children)])})):null},sidebarData={"/features/":["README.md","develop-plan.md","daily-notes.md","character-data.md","achievements.md","weapon-wiki.md","wish-export.md","mhy-account-switch.md","hutao-API.md","character-wiki.md","hutao-settings.md","game-launcher.md"],"/FAQ/":["HttpRequestException.md","why.md","get-stoken-cookie-from-the-third-party.md","artifact-rating-rules.md","how-to.md","Gacha-system-and-export-principal.md","mihoyo-risk-tip.md"],"/statements/":["bug-report.md","tos.md","privacy-notice.md"]},resolvePrefix=(b="",$="")=>ue$1($)?$:`${ensureEndingSlash(b)}${$}`,headerToSidebarItem=(b,$)=>{const j=usePageData();return{type:"heading",text:b.title,link:`${j.value.path}#${b.slug}`,children:headersToSidebarItemChildren(b.children,$)}},headersToSidebarItemChildren=(b,$)=>$>0?b.map(j=>headerToSidebarItem(j,$-1)):[],resolveHeadingSidebarItems=b=>{const $=usePageData();return headersToSidebarItemChildren($.value.headers,b)},resolveArraySidebarItems=(b,$,j="")=>{const U=usePageData(),Bn=useRoute(),Fn=(qn,Wn=j)=>{var Qn;const Gn=isString$1(qn)?useAutoLink(resolvePrefix(Wn,qn)):qn.link?{...qn,...isLinkExternal(qn.link)?{}:{link:useAutoLink(resolvePrefix(Wn,qn.link)).link}}:qn;if("children"in Gn){const Yn=resolvePrefix(Wn,Gn.prefix),Zn=Gn.children==="structure"?sidebarData[Yn]:Gn.children;return{type:"group",...Gn,prefix:Yn,children:Zn.map(Jn=>Fn(Jn,Yn))}}return{type:"page",...Gn,children:Gn.link===Bn.path?headersToSidebarItemChildren(((Qn=U.value.headers[0])==null?void 0:Qn.level)===1?U.value.headers[0].children:U.value.headers,$):[]}};return b.map(qn=>Fn(qn))},resolveMultiSidebarItems=(b,$)=>{const j=useRoute(),U=Object.keys(b).sort((Bn,Fn)=>Fn.length-Bn.length);for(const Bn of U)if(decodeURI(j.path).startsWith(Bn)){const Fn=b[Bn];return Fn?resolveArraySidebarItems(Fn==="structure"?sidebarData[Bn]:Fn,$,Bn):[]}return console.warn(`${j.path} is missing sidebar config.`),[]},resolveSidebarItems=()=>{const b=useRouteLocale(),$=usePageFrontmatter(),j=useThemeLocaleData(),U=$.value.home?!1:$.value.sidebar??j.value.sidebar??"structure",Bn=$.value.headerDepth??j.value.headerDepth??2;return U===!1?[]:U==="heading"?resolveHeadingSidebarItems(Bn):U==="structure"?resolveArraySidebarItems(sidebarData[b.value],Bn,b.value):isArray(U)?resolveArraySidebarItems(U,Bn):isPlainObject(U)?resolveMultiSidebarItems(U,Bn):[]},sidebarItemsSymbol=Symbol.for("sidebarItems"),setupSidebarItems=()=>{const b=computed(()=>resolveSidebarItems());provide(sidebarItemsSymbol,b)},useSidebarItems=()=>{const b=inject(sidebarItemsSymbol);if(!b)throw new Error("useSidebarItems() is called without provider.");return b},sidebarChild="",SidebarChild=defineComponent({name:"SidebarChild",props:{config:{type:Object,required:!0}},setup(b){const $=useRoute();return()=>[renderItem(b.config,{class:["sidebar-link",`sidebar-${b.config.type}`,{active:isActiveSidebarItem($,b.config,!0)}],exact:!0}),renderChildren$1(b.config.children)]}}),sidebarGroup="",SidebarGroup=defineComponent({name:"SidebarGroup",props:{config:{type:Object,required:!0},open:{type:Boolean,required:!0}},emits:{toggle:()=>!0},setup(b,{emit:$}){const j=useRoute(),U=computed(()=>isActiveSidebarItem(j,b.config)),Bn=computed(()=>isActiveSidebarItem(j,b.config,!0));return()=>{const{collapsible:Fn,children:qn=[],icon:Wn,prefix:Gn,link:Qn,text:Yn}=b.config;return h$3("section",{class:"sidebar-group"},[h$3(Fn?"button":"p",{class:["sidebar-heading",{clickable:Fn||Qn,exact:Bn.value,active:U.value}],...Fn?{onClick:()=>$("toggle"),onKeydown:Zn=>{Zn.key==="Enter"&&$("toggle")}}:{}},[h$3(Icon,{icon:Wn}),Qn?h$3(RouterLink,{to:Qn,class:"title"},()=>Yn):h$3("span",{class:"title"},Yn),Fn?h$3("span",{class:["arrow",b.open?"down":"right"]}):null]),b.open||!Fn?h$3(SidebarLinks,{key:Gn,config:qn}):null])}}}),sidebarLinks="",SidebarLinks=defineComponent({name:"SidebarLinks",props:{config:{type:Array,required:!0}},setup(b){const $=useRoute(),j=ref(-1),U=Bn=>{j.value=Bn===j.value?-1:Bn};return watch(()=>$.path,()=>{const Bn=b.config.findIndex(Fn=>isMatchedSidebarItem($,Fn));j.value=Bn},{immediate:!0,flush:"post"}),()=>h$3("ul",{class:"sidebar-links"},b.config.map((Bn,Fn)=>h$3("li",Bn.type==="group"?h$3(SidebarGroup,{config:Bn,open:Fn===j.value,onToggle:()=>U(Fn)}):h$3(SidebarChild,{config:Bn}))))}}),sidebar="",Sidebar=defineComponent({name:"SideBar",setup(b,{slots:$}){const j=useRoute(),U=useThemeLocaleData(),Bn=useSidebarItems(),Fn=ref();return onMounted(()=>{watch(()=>j.hash,qn=>{const Wn=document.querySelector(`.sidebar a.sidebar-link[href="${j.path}${qn}"]`);if(!Wn)return;const{top:Gn,height:Qn}=Fn.value.getBoundingClientRect(),{top:Yn,height:Zn}=Wn.getBoundingClientRect();Yn<Gn?Wn.scrollIntoView(!0):Yn+Zn>Gn+Qn&&Wn.scrollIntoView(!1)})}),()=>{var qn,Wn,Gn;return h$3("aside",{class:["sidebar",{"hide-icon":U.value.sidebarIcon===!1}],id:"sidebar",ref:Fn},[(qn=$.top)==null?void 0:qn.call($),((Wn=$.default)==null?void 0:Wn.call($))||h$3(SidebarLinks,{config:Bn.value}),(Gn=$.bottom)==null?void 0:Gn.call($)])}}}),common="",CommonWrapper=defineComponent({name:"CommonWrapper",props:{noNavbar:Boolean,noSidebar:Boolean},setup(b,{slots:$}){const j=useRouter(),U=usePageData(),Bn=usePageFrontmatter(),Fn=useThemeLocaleData(),{isMobile:qn,isWide:Wn}=useWindowSize(),Gn=ref(!1),Qn=computed(()=>b.noNavbar||Bn.value.navbar===!1||Fn.value.navbar===!1?!1:Boolean(U.value.title||Fn.value.logo||Fn.value.repo||Fn.value.navbar)),Yn=useSidebarItems(),Zn=computed(()=>b.noSidebar?!1:Bn.value.sidebar!==!1&&Yn.value.length!==0&&!Bn.value.home),Jn=ref(!1),Kn=ref(!1),ea=ia=>{Jn.value=typeof ia=="boolean"?ia:!Jn.value},Xn=ia=>{Kn.value=typeof ia=="boolean"?ia:!Kn.value},ta={x:0,y:0},na=ia=>{ta.x=ia.changedTouches[0].clientX,ta.y=ia.changedTouches[0].clientY},ra=ia=>{const la=ia.changedTouches[0].clientX-ta.x,ya=ia.changedTouches[0].clientY-ta.y;Math.abs(la)>Math.abs(ya)*1.5&&Math.abs(la)>40&&(la>0&&ta.x<=80?ea(!0):ea(!1))},ca=computed(()=>Bn.value.home?!1:Bn.value.toc||Fn.value.toc!==!1&&Bn.value.toc!==!1),pa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;let va,ga=0;return useEventListener("scroll",useThrottleFn(()=>{const ia=pa();ga<ia&&ia>58?Jn.value||(Gn.value=!0):Gn.value=!1,ga=ia},300,!0)),watch(qn,ia=>{ia||ea(!1)}),onMounted(()=>{va=j.afterEach(()=>{ea(!1)})}),onBeforeUnmount(()=>{va()}),()=>h$3(_t$1("GlobalEncrypt")?resolveComponent("GlobalEncrypt"):Ct$1,()=>{var ia;return h$3("div",{class:["theme-container",{"no-navbar":!Qn.value,"no-sidebar":!Zn.value&&!($.sidebar||$.sidebarTop||$.sidebarBottom),"has-toc":ca.value,"hide-navbar":Gn.value,"sidebar-collapsed":!qn.value&&!Wn.value&&Kn.value,"sidebar-open":qn.value&&Jn.value},Bn.value.containerClass||""],onTouchStart:na,onTouchEnd:ra},[Qn.value?h$3(Navbar,{onToggleSidebar:()=>ea()},{leftStart:()=>{var la;return(la=$.navbarLeftStart)==null?void 0:la.call($)},leftEnd:()=>{var la;return(la=$.navbarLeftEnd)==null?void 0:la.call($)},centerStart:()=>{var la;return(la=$.navbarCenterStart)==null?void 0:la.call($)},centerEnd:()=>{var la;return(la=$.navbarCenterEnd)==null?void 0:la.call($)},rightStart:()=>{var la;return(la=$.navbarRightStart)==null?void 0:la.call($)},rightEnd:()=>{var la;return(la=$.navbarRightEnd)==null?void 0:la.call($)},screenTop:()=>{var la;return(la=$.navScreenTop)==null?void 0:la.call($)},screenBottom:()=>{var la;return(la=$.navScreenBottom)==null?void 0:la.call($)}}):null,h$3(Transition,{name:"fade"},()=>Jn.value?h$3("div",{class:"sidebar-mask",onClick:()=>ea(!1)}):null),h$3(Transition,{name:"fade"},()=>qn.value?null:h$3("div",{class:"toggle-sidebar-wrapper",onClick:()=>Xn()},h$3("span",{class:["arrow",Kn.value?"right":"left"]}))),h$3(Sidebar,{},{...$.sidebar?{default:()=>{var la;return(la=$.sidebar)==null?void 0:la.call($)}}:{},top:()=>{var la;return(la=$.sidebarTop)==null?void 0:la.call($)},bottom:()=>{var la;return(la=$.sidebarBottom)==null?void 0:la.call($)}}),(ia=$.default)==null?void 0:ia.call($),h$3(PageFooter)])})}}),DropTransition=defineComponent({name:"DropTransition",props:{type:{type:String,default:"single"},delay:{type:Number,default:0},duration:{type:Number,default:.25},appear:Boolean},setup(b,{slots:$}){const j=Bn=>{Bn.style.transition=`transform ${b.duration}s ease-in-out ${b.delay}s, opacity ${b.duration}s ease-in-out ${b.delay}s`,Bn.style.transform="translateY(-20px)",Bn.style.opacity="0"},U=Bn=>{Bn.style.transform="translateY(0)",Bn.style.opacity="1"};return()=>h$3(b.type==="single"?Transition:TransitionGroup,{name:"drop",appear:b.appear,onAppear:j,onAfterAppear:U,onEnter:j,onAfterEnter:U,onBeforeLeave:j},()=>{var Bn;return(Bn=$.default)==null?void 0:Bn.call($)})}}),featurePanel="",FeaturePanel=defineComponent({name:"FeaturePanel",props:{items:{type:Object,default:()=>[]},header:{type:String,default:""}},setup(b){return()=>h$3("div",{class:"feature-panel"},[b.header?h$3("h2",{class:"feature-header"},b.header):null,b.items.length?h$3("div",{class:"feature-wrapper"},b.items.map($=>{const j=[h$3("h3",[h$3(Icon,{icon:$.icon}),h$3("span",{innerHTML:$.title})]),h$3("p",{innerHTML:$.details})];return $.link?isLinkExternal($.link)?h$3("a",{class:"feature-item link",href:$.link,role:"navigation","aria-label":$.title,target:"_blank"},j):h$3(RouterLink,{class:"feature-item link",to:$.link,role:"navigation","aria-label":$.title},()=>j):h$3("div",{class:"feature-item"},j)})):null])}}),heroInfo="",HeroInfo=defineComponent({name:"HeroInfo",setup(b,{slots:$}){const j=usePageFrontmatter(),U=useSiteLocaleData(),Bn=computed(()=>j.value.heroText===!1?!1:j.value.heroText||U.value.title||"Hello"),Fn=computed(()=>j.value.tagline===!1?!1:j.value.tagline||U.value.description||"Welcome to your VuePress site"),qn=computed(()=>j.value.heroImage?withBase(j.value.heroImage):null),Wn=computed(()=>j.value.heroImageDark?withBase(j.value.heroImageDark):null),Gn=computed(()=>j.value.heroAlt||Bn.value||"hero"),Qn=computed(()=>j.value.actions??[]);return()=>{var Yn,Zn;return h$3("header",{class:"hero-info-wrapper"},[((Yn=$.heroImage)==null?void 0:Yn.call($))||h$3(DropTransition,{appear:!0,type:"group"},()=>[qn.value?h$3("img",{key:"light",class:{light:Wn.value},src:qn.value,alt:Gn.value}):null,Wn.value?h$3("img",{key:"dark",class:"dark",src:Wn.value,alt:Gn.value}):null]),((Zn=$.heroInfo)==null?void 0:Zn.call($))||h$3("div",{class:"hero-info"},[Bn.value?h$3(DropTransition,{appear:!0,delay:.04},()=>h$3("h1",{id:"main-title"},Bn.value)):null,Fn.value?h$3(DropTransition,{appear:!0,delay:.08},()=>h$3("p",{class:"description"},Fn.value)):null,Qn.value.length?h$3(DropTransition,{appear:!0,delay:.12},()=>h$3("p",{class:"actions"},Qn.value.map(Jn=>h$3(AutoLink,{class:["action-button",Jn.type||"default"],config:Jn,noExternalLinkIcon:!0})))):null])])}}}),MarkdownContent=({custom:b})=>h$3(Content,{class:["theme-hope-content",{custom:b}]});MarkdownContent.displayName="MarkdownContent";MarkdownContent.props={custom:Boolean};const homePage="",HomePage=defineComponent({name:"HopePage",setup(b,{slots:$}){const j=usePure(),U=usePageFrontmatter(),Bn=computed(()=>{const{features:Fn}=U.value;return isArray(Fn)?Fn.some(qn=>!("items"in qn))?[{items:Fn}]:Fn:[]});return()=>{var Fn,qn,Wn;return h$3("main",{class:["home project",{pure:j.value}],id:"main-content","aria-labelledby":U.value.heroText===null?void 0:"main-title"},[(Fn=$.top)==null?void 0:Fn.call($),h$3(HeroInfo),Bn.value.map(({header:Gn="",items:Qn},Yn)=>h$3(DropTransition,{appear:!0,delay:.16+Yn*.08},()=>h$3(FeaturePanel,{header:Gn,items:Qn}))),(qn=$.center)==null?void 0:qn.call($),h$3(DropTransition,{appear:!0,delay:.16+Bn.value.length*.08},()=>h$3(MarkdownContent,{custom:!0})),(Wn=$.bottom)==null?void 0:Wn.call($)])}}}),getAncestorLinks=(b,$)=>{const j=b.path.replace($,"/").split("/"),U=[];let Bn=removeEndingSlash($);return j.forEach((Fn,qn)=>{qn!==j.length-1?(Bn+=`${Fn}/`,U.push(Bn)):Fn!==""&&(Bn+=Fn,U.push(Bn))}),U},breadcrumb="",BreadCrumb=defineComponent({name:"BreadCrumb",setup(){const b=useRouter(),$=useRoute(),j=useRouteLocale(),U=usePageFrontmatter(),Bn=useThemeLocaleData(),Fn=ref([]),qn=computed(()=>(U.value.breadcrumb||U.value.breadcrumb!==!1&&Bn.value.breadcrumb!==!1)&&Fn.value.length>1),Wn=computed(()=>U.value.breadcrumbIcon||U.value.breadcrumbIcon!==!1&&Bn.value.breadcrumbIcon!==!1),Gn=()=>{const Qn=b.getRoutes(),Yn=getAncestorLinks($,j.value).map(Zn=>{const Jn=Qn.find(Kn=>Kn.path===Zn);if(Jn){const{meta:Kn,path:ea}=Dt$1(b,Jn.path),Xn=Kn.s||Kn.title;if(Xn)return{title:Xn,icon:Kn.i,path:ea}}return null}).filter(Zn=>Zn!==null);Yn.length>1&&(Fn.value=Yn)};return onMounted(()=>{Gn(),watch(()=>$.path,Gn)}),()=>h$3("nav",{class:["breadcrumb",{disable:!qn.value}]},qn.value?h$3("ol",{vocab:"https://schema.org/",typeof:"BreadcrumbList"},Fn.value.map((Qn,Yn)=>h$3("li",{class:{"is-active":Fn.value.length-1===Yn},property:"itemListElement",typeof:"ListItem"},[h$3(RouterLink,{to:Qn.path,property:"item",typeof:"WebPage"},()=>[Wn.value?h$3(Icon,{icon:Qn.icon}):null,h$3("span",{property:"name"},Qn.title||"Unknown")]),h$3("meta",{property:"position",content:Yn+1})]))):[])}}),pageNav="",resolveFromFrontmatterConfig=b=>b===!1?!1:isString$1(b)?useAutoLink(b,!0):isPlainObject(b)?b:null,resolveFromSidebarItems=(b,$,j)=>{const U=b.findIndex(Bn=>Bn.link===$);if(U!==-1){const Bn=b[U+j];return Bn!=null&&Bn.link?Bn:null}for(const Bn of b)if(Bn.children){const Fn=resolveFromSidebarItems(Bn.children,$,j);if(Fn)return Fn}return null},PageNav=defineComponent({name:"PageNav",setup(){const b=useThemeLocaleData(),$=usePageFrontmatter(),j=useSidebarItems(),U=useRoute(),Bn=useNavigate(),Fn=computed(()=>{const Wn=resolveFromFrontmatterConfig($.value.prev);return Wn===!1?null:Wn||(b.value.prevLink===!1?null:resolveFromSidebarItems(j.value,U.path,-1))}),qn=computed(()=>{const Wn=resolveFromFrontmatterConfig($.value.next);return Wn===!1?null:Wn||(b.value.nextLink===!1?null:resolveFromSidebarItems(j.value,U.path,1))});return useEventListener("keydown",Wn=>{Wn.altKey&&(Wn.key==="ArrowRight"?qn.value&&(Bn(qn.value.link),Wn.preventDefault()):Wn.key==="ArrowLeft"&&Fn.value&&(Bn(Fn.value.link),Wn.preventDefault()))}),()=>Fn.value||qn.value?h$3("nav",{class:"page-nav"},[Fn.value?h$3(AutoLink,{class:"prev",config:Fn.value},()=>{var Wn,Gn;return[h$3("div",{class:"hint"},[h$3("span",{class:"arrow left"}),b.value.metaLocales.prev]),h$3("div",{class:"link"},[h$3(Icon,{icon:(Wn=Fn.value)==null?void 0:Wn.icon}),(Gn=Fn.value)==null?void 0:Gn.text])]}):null,qn.value?h$3(AutoLink,{class:"next",config:qn.value},()=>{var Wn,Gn;return[h$3("div",{class:"hint"},[b.value.metaLocales.next,h$3("span",{class:"arrow right"})]),h$3("div",{class:"link"},[(Wn=qn.value)==null?void 0:Wn.text,h$3(Icon,{icon:(Gn=qn.value)==null?void 0:Gn.icon})])]}):null]):null}}),AuthorIcon=()=>h$3(P$5,{name:"author"},()=>h$3("path",{d:"M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"}));AuthorIcon.displayName="AuthorIcon";const CalendarIcon=()=>h$3(P$5,{name:"calendar"},()=>h$3("path",{d:"M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"}));CalendarIcon.displayName="CalendarIcon";const CategoryIcon=()=>h$3(P$5,{name:"category"},()=>h$3("path",{d:"M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"}));CategoryIcon.displayName="CategoryIcon";const EyeIcon=()=>h$3(P$5,{name:"eye"},()=>h$3("path",{d:"M992 512.096c0-5.76-.992-10.592-1.28-11.136-.192-2.88-1.152-8.064-2.08-10.816-.256-.672-.544-1.376-.832-2.08-.48-1.568-1.024-3.104-1.6-4.32C897.664 290.112 707.104 160 512 160c-195.072 0-385.632 130.016-473.76 322.592-1.056 2.112-1.792 4.096-2.272 5.856a55.512 55.512 0 00-.64 1.6c-1.76 5.088-1.792 8.64-1.632 7.744-.832 3.744-1.568 11.168-1.568 11.168-.224 2.272-.224 4.032.032 6.304 0 0 .736 6.464 1.088 7.808.128 1.824.576 4.512 1.12 6.976h-.032c.448 2.08 1.12 4.096 1.984 6.08.48 1.536.992 2.976 1.472 4.032C126.432 733.856 316.992 864 512 864c195.136 0 385.696-130.048 473.216-321.696 1.376-2.496 2.24-4.832 2.848-6.912.256-.608.48-1.184.672-1.728 1.536-4.48 1.856-8.32 1.728-8.32l-.032.032c.608-3.104 1.568-7.744 1.568-13.28zM512 672c-88.224 0-160-71.776-160-160s71.776-160 160-160 160 71.776 160 160-71.776 160-160 160z"}));EyeIcon.displayName="EyeIcon";const FireIcon=()=>h$3(P$5,{name:"fire"},()=>h$3("path",{d:"M726.4 201.6c-12.8-9.6-28.8-6.4-38.4 0-9.6 9.6-16 25.6-9.6 38.4 6.4 12.8 9.6 28.8 12.8 44.8C604.8 83.2 460.8 38.4 454.4 35.2c-9.6-3.2-22.4 0-28.8 6.4-9.6 6.4-12.8 19.2-9.6 28.8 12.8 86.4-25.6 188.8-115.2 310.4-6.4-25.6-16-51.2-32-80-9.6-9.6-22.4-16-35.2-12.8-16 3.2-25.6 12.8-25.6 28.8-3.2 48-25.6 92.8-51.2 140.8C134.4 499.2 112 544 102.4 592c-32 150.4 99.2 329.6 233.6 380.8 9.6 3.2 19.2 6.4 32 9.6-25.6-19.2-41.6-51.2-48-96C294.4 691.2 505.6 640 515.2 460.8c153.6 105.6 224 336 137.6 505.6 3.2 0 6.4-3.2 9.6-3.2 0 0 3.2 0 3.2-3.2 163.2-89.6 252.8-208 259.2-345.6 16-211.2-163.2-390.4-198.4-412.8z"}));FireIcon.displayName="FireIcon";const PrintIcon=()=>h$3(P$5,{name:"print"},()=>h$3("path",{d:"M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"}));PrintIcon.displayName="PrintIcon";const TagIcon=()=>h$3(P$5,{name:"tag"},()=>h$3("path",{d:"M939.902 458.563L910.17 144.567c-1.507-16.272-14.465-29.13-30.737-30.737L565.438 84.098h-.402c-3.215 0-5.726 1.005-7.634 2.913l-470.39 470.39a10.004 10.004 0 000 14.164l365.423 365.424c1.909 1.908 4.42 2.913 7.132 2.913s5.223-1.005 7.132-2.913l470.39-470.39c2.01-2.11 3.014-5.023 2.813-8.036zm-240.067-72.121c-35.458 0-64.286-28.828-64.286-64.286s28.828-64.285 64.286-64.285 64.286 28.828 64.286 64.285-28.829 64.286-64.286 64.286z"}));TagIcon.displayName="TagIcon";const TimerIcon=()=>h$3(P$5,{name:"timer"},()=>h$3("path",{d:"M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"}));TimerIcon.displayName="TimerIcon";const WordIcon=()=>h$3(P$5,{name:"word"},()=>[h$3("path",{d:"M518.217 432.64V73.143A73.143 73.143 0 01603.43 1.097a512 512 0 01419.474 419.474 73.143 73.143 0 01-72.046 85.212H591.36a73.143 73.143 0 01-73.143-73.143z"}),h$3("path",{d:"M493.714 566.857h340.297a73.143 73.143 0 0173.143 85.577A457.143 457.143 0 11371.566 117.76a73.143 73.143 0 0185.577 73.143v339.383a36.571 36.571 0 0036.571 36.571z"})]);WordIcon.displayName="WordIcon";const useMetaLocale=()=>{const b=useThemeLocaleData();return computed(()=>b.value.metaLocales)},readingTimeLocales={"/en/":{word:"About $word words",less1Minute:"Less than 1 minute",time:"About $time min"},"/":{word:"约 $word 字",less1Minute:"小于 1 分钟",time:"大约 $time 分钟"}},editLinkPatterns={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},resolveEditLink=({docsRepo:b,docsBranch:$,docsDir:j,filePathRelative:U,editLinkPattern:Bn})=>{if(!U)return null;const Fn=Jt$1(b);let qn;return Bn?qn=Bn:Fn!==null&&(qn=editLinkPatterns[Fn]),qn?qn.replace(/:repo/,isLinkHttp(b)?b:`https://github.com/${b}`).replace(/:branch/,$).replace(/:path/,removeLeadingSlash(`${removeEndingSlash(j)}/${U}`)):null},useEditLink=()=>{const b=useThemeLocaleData(),$=usePageData(),j=usePageFrontmatter();return computed(()=>{const{repo:U,docsRepo:Bn=U,docsBranch:Fn="main",docsDir:qn="",editLink:Wn,editLinkPattern:Gn=""}=b.value;if(!(j.value.editLink??Wn??!0)||!Bn)return null;const Yn=resolveEditLink({docsRepo:Bn,docsBranch:Fn,docsDir:qn,editLinkPattern:Gn,filePathRelative:$.value.filePathRelative});return Yn?{text:b.value.metaLocales.editLink,link:Yn}:null})},useUpdateTime=()=>{const b=useSiteLocaleData(),$=useThemeLocaleData(),j=usePageData(),U=usePageFrontmatter();return computed(()=>{var qn,Wn;return!(U.value.lastUpdated??$.value.lastUpdated??!0)||!((qn=j.value.git)!=null&&qn.updatedTime)?null:new Date((Wn=j.value.git)==null?void 0:Wn.updatedTime).toLocaleString(b.value.lang)})},useContributors=()=>{const b=useThemeLocaleData(),$=usePageData(),j=usePageFrontmatter();return computed(()=>{var Bn;return j.value.contributors??b.value.contributors??!0?((Bn=$.value.git)==null?void 0:Bn.contributors)??null:null})},authorInfo="",AuthorInfo=defineComponent({name:"AuthorInfo",inheritAttrs:!1,props:{author:{type:Array,required:!0},pure:Boolean},setup(b){const $=useMetaLocale();return()=>b.author.length?h$3("span",{class:"page-author-info","aria-label":`${$.value.author}${b.pure?"":"🖊"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(AuthorIcon),h$3("span",b.author.map(j=>j.url?h$3("a",{class:"page-author-item",href:j.url,target:"_blank",rel:"noopener noreferrer"},j.name):h$3("span",{class:"page-author-item"},j.name))),h$3("span",{property:"author",content:b.author.map(j=>j.name).join(", ")})]):null}}),categoryInfo="",CategoryInfo=defineComponent({name:"CategoryInfo",inheritAttrs:!1,props:{category:{type:Array,required:!0},pure:Boolean},setup(b){const $=useRouter(),j=useRoute(),U=useMetaLocale(),Bn=(Fn,qn="")=>{qn&&j.path!==qn&&(Fn.preventDefault(),$.push(qn))};return()=>b.category.length?h$3("span",{class:"page-category-info","aria-label":`${U.value.category}${b.pure?"":"🌈"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(CategoryIcon),...b.category.map(({name:Fn,path:qn})=>h$3("span",{class:["page-category-item",{[`category${Gt$1(Fn,9)}`]:!b.pure,clickable:qn}],role:qn?"navigation":"",onClick:Wn=>Bn(Wn,qn)},Fn)),h$3("meta",{property:"articleSection",content:b.category.map(({name:Fn})=>Fn).join(",")})]):null}}),DateInfo=defineComponent({name:"DateInfo",inheritAttrs:!1,props:{date:{type:Object,default:null},localizedDate:{type:String,default:""},pure:Boolean},setup(b){const $=usePageLang(),j=useMetaLocale();return()=>{var U,Bn;return b.date?h$3("span",{class:"page-date-info","aria-label":`${j.value.date}${b.pure?"":"📅"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(CalendarIcon),h$3("span",h$3(ClientOnly,()=>{var Fn;return b.localizedDate||((Fn=b.date.value)==null?void 0:Fn.toLocaleDateString($.value))})),h$3("meta",{property:"datePublished",content:((Bn=(U=b.date)==null?void 0:U.value)==null?void 0:Bn.toISOString())||""})]):null}}}),PageViewInfo=defineComponent({name:"PageViewInfo",inheritAttrs:!1,props:{pageview:{type:[Boolean,String],default:!1},pure:Boolean},setup(b){const $=useRoute(),j=useMetaLocale(),U=ref(0),Bn=()=>{const Fn=document.querySelector(".waline-pageview-count");if(Fn){const qn=Fn.textContent;qn&&!isNaN(Number(qn))?U.value=Number(qn):setTimeout(Bn,500)}};return onMounted(()=>{setTimeout(Bn,1500)}),watch(()=>$.path,(Fn,qn)=>{Fn!==qn&&setTimeout(Bn,500)}),()=>b.pageview?h$3("span",{class:"page-pageview-info","aria-label":`${j.value.views}${b.pure?"":"🔢"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(U.value<1e3?EyeIcon:FireIcon),h$3("span",{class:"waline-pageview-count","data-path":isString$1(b.pageview)?b.pageview:withBase($.path)},"...")]):null}}),ReadingTimeInfo=defineComponent({name:"ReadingTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup(b){const $=useMetaLocale(),j=kt$1(readingTimeLocales),U=computed(()=>{if(!b.readingTime)return null;const{minutes:Bn}=b.readingTime;return Bn<1?{text:j.value.less1Minute,time:"PT1M"}:{text:j.value.time.replace("$time",Math.round(Bn).toString()),time:`PT${Math.round(Bn)}M`}});return()=>U.value?h$3("span",{class:"page-reading-time-info","aria-label":`${$.value.readingTime}${b.pure?"":"⌛"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(TimerIcon),h$3("span",U.value.text),h$3("meta",{property:"timeRequired",content:U.value.time})]):null}}),tagInfo="",TagInfo=defineComponent({name:"TagInfo",inheritAttrs:!1,props:{tag:{type:Array,default:()=>[]},pure:Boolean},setup(b){const $=useRouter(),j=useRoute(),U=useMetaLocale(),Bn=(Fn,qn="")=>{qn&&j.path!==qn&&(Fn.preventDefault(),$.push(qn))};return()=>b.tag.length?h$3("span",{class:"page-tag-info","aria-label":`${U.value.tag}${b.pure?"":"🏷"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(TagIcon),...b.tag.map(({name:Fn,path:qn})=>h$3("span",{class:["page-tag-item",{[`tag${Gt$1(Fn,9)}`]:!b.pure,clickable:qn}],role:qn?"navigation":"",onClick:Wn=>Bn(Wn,qn)},Fn)),h$3("meta",{property:"keywords",content:b.tag.map(({name:Fn})=>Fn).join(",")})]):null}}),originalInfo="",OriginalInfo=defineComponent({name:"OriginalInfo",inheritAttrs:!1,props:{isOriginal:Boolean},setup(b){const $=useMetaLocale();return()=>b.isOriginal?h$3("span",{class:"page-original-info"},$.value.origin):null}}),WordInfo=defineComponent({name:"ReadTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup(b){const $=useMetaLocale(),j=kt$1(readingTimeLocales),U=computed(()=>{var Fn;return(Fn=b.readingTime)==null?void 0:Fn.words.toString()}),Bn=computed(()=>j.value.word.replace("$word",U.value||""));return()=>U.value?h$3("span",{class:"page-word-info","aria-label":`${$.value.words}${b.pure?"":"🔠"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(WordIcon),h$3("span",Bn.value),h$3("meta",{property:"wordCount",content:U.value})]):null}}),pageInfo="",PageInfo=defineComponent({name:"PageInfo",components:{AuthorInfo,CategoryInfo,DateInfo,OriginalInfo,PageViewInfo,ReadingTimeInfo,TagInfo,WordInfo},props:{items:{type:[Array,Boolean],default:()=>["Author","Original","Date","PageView","ReadingTime","Category","Tag"]},info:{type:Object,required:!0}},setup(b){const $=usePure();return()=>b.items?h$3("div",{class:"page-info"},b.items.map(j=>h$3(resolveComponent(`${j}Info`),{...b.info,pure:$.value}))):null}}),pageTitle="",PageTitle=defineComponent({name:"PageTitle",setup(){const b=usePageData(),$=usePageFrontmatter(),j=useThemeLocaleData(),{info:U,items:Bn}=usePageInfo();return()=>h$3("div",{class:"page-title"},[h$3("h1",[j.value.titleIcon!==!1?h$3(Icon,{icon:$.value.icon}):null,b.value.title]),h$3(PageInfo,{info:U.value,...Bn.value===null?{}:{items:Bn.value}}),h$3("hr")])}}),EditIcon=()=>h$3(P$5,{name:"edit"},()=>[h$3("path",{d:"M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"}),h$3("path",{d:"M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"})]);EditIcon.displayName="EditIcon";const NotFoundIcon=()=>h$3("svg",{xmlns:"http://www.w3.org/2000/svg",class:"not-found-icon",viewBox:"0 0 178 130",innerHTML:'<defs><linearGradient id="b" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#e9e9e9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="c" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#dcdcdc"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="d" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#f1f1f1"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="e" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#dedede"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="f" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#e8e8e8"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="g" x1=".213" y1="1.265" x2=".846" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#f5f5f5"/></linearGradient><linearGradient id="h" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#c5c5c5"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="i" x1=".5" x2=".5" y2="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#acacac"/><stop offset="1" stop-color="#f2f2f2" stop-opacity=".388"/></linearGradient><clipPath id="a"><path transform="translate(744 1111)" fill="none" d="M0 0h178v130H0z"/></clipPath></defs><g transform="translate(-744 -1111)" clip-path="url(#a)"><path d="M0 10.795 36.6 0v93.779L0 104.574z" transform="translate(772.466 1122.142)" fill="url(#b)"/><path d="M-8.492 10.642-26.361-.469v93.78l17.868 11.111z" transform="translate(780.958 1122.293)" fill="url(#c)"/><path d="M-8.5 5.55 28.106-5.3 10.228-16.437l-36.6 10.845z" transform="translate(780.963 1127.438)" fill="url(#d)"/><path d="M0 10.539 35.741 0v91.56L0 102.1z" transform="translate(870.158 1123.617)" fill="url(#d)"/><path d="M-8.913 10.38-26.361-.469v91.562l17.448 10.848z" transform="translate(879.071 1123.775)" fill="url(#e)"/><path d="m-8.918 5.032 35.741-10.59L9.366-16.437-26.375-5.848z" transform="translate(879.076 1129.175)" fill="url(#d)"/><path d="M0 9.137 30.839 0v79.381L0 88.519z" transform="translate(799.678 1151.579)" fill="url(#f)"/><path d="m-11.306 8.936-15.054-9.4v79.377l15.054 9.4z" transform="translate(810.985 1151.78)" fill="url(#c)"/><path d="M-11.313 2.087 19.526-7.05 4.464-16.437-26.375-7.3z" transform="translate(810.991 1158.63)" fill="url(#g)"/><path d="M178 53H0a51.361 51.361 0 0 1 10.453-20.952 74.532 74.532 0 0 1 19.742-16.811A103.3 103.3 0 0 1 57.089 4.058a127.515 127.515 0 0 1 63.823 0 103.3 103.3 0 0 1 26.894 11.179 74.532 74.532 0 0 1 19.741 16.811A51.363 51.363 0 0 1 178 53z" transform="translate(744 1187.549)" fill="url(#h)"/><path d="m814.529 1199.586-1.272 1.212h2.3l1.2-1.212zM816.725 1194.909l-1.272 1.212h2.3l1.263-1.212zM863.284 1199.585l-1.272 1.212h2.3l1.2-1.212zM865.519 1194.9l-1.272 1.212h2.3l1.263-1.212z" fill="#cbcbcb"/><path d="m799.527 1191.21 10.182-21.97h4.381l-9.931 21.719h14.876v3.941h-19.508zm13.081-9.493h4.152v17.859h-4.152zm20.728 18.151q-4.256 0-6.457-2.274a8.74 8.74 0 0 1-2.2-6.343v-13.791a8.708 8.708 0 0 1 2.21-6.353q2.212-2.264 6.447-2.264 4.256 0 6.457 2.253a8.726 8.726 0 0 1 2.2 6.363v13.792a8.708 8.708 0 0 1-2.21 6.349q-2.211 2.268-6.447 2.268zm0-4.048a4.29 4.29 0 0 0 3.328-1.178 4.862 4.862 0 0 0 1.074-3.39v-13.792a4.893 4.893 0 0 0-1.064-3.39 4.285 4.285 0 0 0-3.338-1.179 4.285 4.285 0 0 0-3.338 1.179 4.893 4.893 0 0 0-1.064 3.39v13.791a4.862 4.862 0 0 0 1.075 3.391 4.29 4.29 0 0 0 3.327 1.178zm14.928-4.61 10.181-21.97h4.381l-9.931 21.719h14.876v3.941h-19.507zm13.081-9.493h4.152v17.859h-4.152z" fill="#c6c6c6"/><path d="m798.306 1192.431 10.182-21.97h4.381l-9.931 21.719h14.876v3.941h-19.508zm13.081-9.493h4.152v17.859h-4.152zm20.728 18.151q-4.256 0-6.457-2.274a8.74 8.74 0 0 1-2.2-6.343v-13.791a8.708 8.708 0 0 1 2.21-6.353q2.212-2.264 6.447-2.264 4.256 0 6.457 2.253a8.726 8.726 0 0 1 2.2 6.363v13.792a8.708 8.708 0 0 1-2.21 6.349q-2.211 2.268-6.447 2.268zm0-4.048a4.29 4.29 0 0 0 3.328-1.178 4.862 4.862 0 0 0 1.074-3.39v-13.792a4.893 4.893 0 0 0-1.064-3.39 4.285 4.285 0 0 0-3.338-1.179 4.285 4.285 0 0 0-3.338 1.179 4.893 4.893 0 0 0-1.064 3.39v13.791a4.862 4.862 0 0 0 1.075 3.391 4.29 4.29 0 0 0 3.327 1.178zm14.928-4.61 10.181-21.97h4.381l-9.931 21.719h14.876v3.941h-19.507zm13.081-9.493h4.152v17.859h-4.152z" fill="#b2b2b2"/><path d="m-27.694-19.435 10.182 14.517h4.381l-9.931-14.352h14.876v-2.606h-19.508zm13.081 6.273h4.152v-11.8h-4.152zM6.115-25.156q-4.256 0-6.457 1.5a4.8 4.8 0 0 0-2.2 4.191v9.113a4.784 4.784 0 0 0 2.212 4.2 11.511 11.511 0 0 0 6.447 1.5q4.256 0 6.457-1.489a4.786 4.786 0 0 0 2.2-4.2v-9.113a4.784 4.784 0 0 0-2.212-4.2 11.511 11.511 0 0 0-6.447-1.502zm0 2.675a5.705 5.705 0 0 1 3.328.779 2.6 2.6 0 0 1 1.074 2.24v9.113a2.607 2.607 0 0 1-1.064 2.24 5.7 5.7 0 0 1-3.338.779 5.7 5.7 0 0 1-3.338-.779 2.607 2.607 0 0 1-1.064-2.24v-9.113A2.6 2.6 0 0 1 2.788-21.7a5.705 5.705 0 0 1 3.327-.782zm14.927 3.047L31.224-4.918h4.381l-9.931-14.351H40.55v-2.606H21.043zm13.081 6.273h4.152v-11.8h-4.151z" transform="translate(826 1226.245)" opacity=".32" fill="url(#i)"/><g fill="#e6e6e6"><path d="m858.428 1169.23-1.2 1.259h4.388l1.178-1.259zM802.944 1192.187l1.288-1.375h7.143v1.375zm8.415-9.25 1.273-1.234h4.15l-1.235 1.234zm-2.855-12.469 1.198-1.259h4.367l-1.178 1.259zM861.362 1181.678l-1.27 1.3h4.188l1.236-1.3zM865.519 1190.9l-1.27 1.3h2.3l1.162-1.3zM852.838 1190.791l-1.207 1.508h8.447v-1.508z"/></g></g>'}),pageMeta="",PageMeta=defineComponent({name:"PageMeta",setup(){const b=useThemeLocaleData(),$=useEditLink(),j=useUpdateTime(),U=useContributors();return()=>{const{metaLocales:Bn}=b.value;return h$3("footer",{class:"page-meta"},[$.value?h$3("div",{class:"meta-item edit-link"},h$3(AutoLink,{class:"label",config:$.value},{before:()=>h$3(EditIcon)})):null,h$3("div",{class:"meta-item git-info"},[j.value?h$3("div",{class:"update-time"},[h$3("span",{class:"label"},`${Bn.lastUpdated}: `),h$3(ClientOnly,()=>h$3("span",{class:"info"},j.value))]):null,U.value&&U.value.length?h$3("div",{class:"contributors"},[h$3("span",{class:"label"},`${Bn.contributors}: `),U.value.map(({email:Fn,name:qn},Wn)=>[h$3("span",{class:"contributor",title:`email: ${Fn}`},qn),Wn!==U.value.length-1?",":""])]):null])])}}}),toc="",renderHeader=({title:b,level:$,slug:j})=>h$3(RouterLink,{to:`#${j}`,class:["toc-link",`level${$}`]},()=>b),renderChildren=(b,$)=>{const j=useRoute();return b.length&&$>0?h$3("ul",{class:"toc-list"},b.map(U=>[h$3("li",{class:["toc-item",{active:Rt$1(j,`#${U.slug}`)}]},renderHeader(U)),renderChildren(U.children,$-1)])):null},TOC=defineComponent({name:"TOC",props:{items:{type:Array,default:()=>[]},headerDepth:{type:Number,default:2}},setup(b){const $=useRoute(),j=usePageData(),U=useMetaLocale(),Bn=useThemeData(),Fn=ref(),qn=Wn=>{var Gn;(Gn=Fn.value)==null||Gn.scrollTo({top:Wn,behavior:"smooth"})};return onMounted(()=>{watch(()=>$.hash,Wn=>{if(Fn.value){const Gn=document.querySelector(`#toc a.toc-link[href$="${Wn}"]`);if(!Gn)return;const{top:Qn,height:Yn}=Fn.value.getBoundingClientRect(),{top:Zn,height:Jn}=Gn.getBoundingClientRect();Zn<Qn?qn(Fn.value.scrollTop+Zn-Qn):Zn+Jn>Qn+Yn&&qn(Fn.value.scrollTop+Zn+Jn-Qn-Yn)}})}),()=>{const Wn=b.items.length?renderChildren(b.items,b.headerDepth):j.value.headers?renderChildren(j.value.headers,b.headerDepth):null;return Wn?h$3("div",{class:"toc-place-holder"},[h$3("aside",{id:"toc"},[h$3("div",{class:"toc-header"},[U.value.toc,Bn.value.print?h$3("button",{class:"print-button",title:"print",onClick:()=>{window.print()}},h$3(PrintIcon)):null]),h$3("div",{class:"toc-wrapper",ref:Fn},[Wn])])]):null}}}),page="",NormalPage=defineComponent({name:"NormalPage",setup(b,{slots:$}){const j=usePageFrontmatter(),{isDarkMode:U}=useDarkmode(),Bn=useThemeLocaleData(),Fn=computed(()=>j.value.toc||j.value.toc!==!1&&Bn.value.toc!==!1);return()=>h$3("main",{class:"page",id:"main-content"},h$3(_t$1("LocalEncrypt")?resolveComponent("LocalEncrypt"):Ct$1,()=>{var qn,Wn,Gn,Qn;return[(qn=$.top)==null?void 0:qn.call($),h$3(BreadCrumb),h$3(PageTitle),Fn.value?h$3(TOC,{headerDepth:j.value.headerDepth??Bn.value.headerDepth??2}):null,(Wn=$.contentBefore)==null?void 0:Wn.call($),h$3(MarkdownContent),(Gn=$.contentAfter)==null?void 0:Gn.call($),h$3(PageMeta),h$3(PageNav),_t$1("CommentService")?h$3(resolveComponent("CommentService"),{darkmode:U.value}):null,(Qn=$.bottom)==null?void 0:Qn.call($)]}))}}),fadeSlideY="",FadeSlideY=defineComponent({name:"FadeSlideY",setup(b,{slots:$}){const j=useScrollPromise(),U=j.resolve,Bn=j.pending;return()=>h$3(Transition,{name:"fade-slide-y",mode:"out-in",onBeforeEnter:U,onBeforeLeave:Bn},()=>{var Fn;return(Fn=$.default)==null?void 0:Fn.call($)})}}),skipLink="",SkipLink=defineComponent({name:"SkipLink",props:{content:{type:String,default:"main-content"}},setup(b){const $=useRoute(),j=useThemeLocaleData(),U=ref(),Bn=({target:Fn})=>{const qn=document.querySelector(Fn.hash);if(qn){const Wn=()=>{qn.removeAttribute("tabindex"),qn.removeEventListener("blur",Wn)};qn.setAttribute("tabindex","-1"),qn.addEventListener("blur",Wn),qn.focus(),window.scrollTo(0,0)}};return onMounted(()=>{watch(()=>$.path,()=>U.value.focus())}),()=>[h$3("span",{ref:U,tabindex:"-1"}),h$3("a",{href:`#${b.content}`,class:"skip-link sr-only",onClick:Bn},j.value.routeLocales.skipToContent)]}}),Layout=defineComponent({name:"Layout",setup(){useThemeLocaleData();const b=usePageData(),$=usePageFrontmatter(),{isMobile:j}=useWindowSize(),U=computed(()=>"none");return()=>[h$3(SkipLink),h$3(CommonWrapper,{},{default:()=>$.value.home?h$3(HomePage):h$3(FadeSlideY,()=>h$3(NormalPage,{key:b.value.path})),...U.value!=="none"?{navScreenBottom:()=>h$3(resolveComponent("BloggerInfo"))}:{},...!j.value&&U.value==="always"?{sidebar:()=>h$3(resolveComponent("BloggerInfo"))}:{}})]}}),notFound="",NotFound=defineComponent({name:"NotFound",setup(){const b=useRouteLocale(),$=useThemeLocaleData(),j=()=>{const Bn=$.value.routeLocales.notFoundMsg;return Bn[Math.floor(Math.random()*Bn.length)]},{navigate:U}=useLink({to:$.value.home??b.value});return()=>[h$3(SkipLink),h$3(CommonWrapper,{noSidebar:!0},()=>h$3("main",{class:"page not-found",id:"main-content"},[h$3(NotFoundIcon),h$3("blockquote",j()),h$3("button",{class:"action-button",onClick:()=>{window.history.go(-1)}},$.value.routeLocales.back),h$3("button",{class:"action-button",onClick:()=>U()},$.value.routeLocales.home)]))]}}),index="",slidePage="",d$1=()=>h$3(P$5,{name:"back"},()=>h$3("path",{d:"M1014.749 449.156v125.688H260.626l345.64 345.64-89.239 89.237L19.307 512l497.72-497.721 89.238 89.238-345.64 345.64h754.124z"})),h=()=>h$3(P$5,{name:"home"},()=>h$3("path",{d:"M780.106 420.978L506.994 147.866 233.882 420.978h.045v455.11H780.06v-455.11h.046zm90.977 90.976V876.09a91.022 91.022 0 01-91.023 91.022H233.927a91.022 91.022 0 01-91.022-91.022V511.954l-67.22 67.175-64.307-64.307 431.309-431.31c35.498-35.498 93.115-35.498 128.614 0l431.309 431.31-64.307 64.307L871.083 512z"}));var f=defineComponent({name:"SlidePage",setup(){const b=useRouter(),$=ref(!1),j=ref(),U=()=>{$.value=!$.value},Bn=()=>{$.value=!1},Fn=()=>{Bn(),window.history.go(-1)},qn=()=>{Bn(),b.push("/")};return onClickOutside(j,Bn),()=>h$3("div",{class:"presentation"},[h$3(Content),h$3("div",{ref:j,class:["menu",{active:$.value}]},[h$3("button",{class:"menu-button",onClick:()=>U()},h$3("span",{class:"icon"})),h$3("button",{class:"back-button",onClick:()=>Fn()},h$3(d$1)),h$3("button",{class:"home-button",onClick:()=>qn()},h$3(h))])])}});const clientConfig12=defineClientConfig({enhance:({app:b,router:$})=>{const{scrollBehavior:j}=$.options;$.options.scrollBehavior=async(...U)=>(await useScrollPromise().wait(),j(...U)),injectDarkMode(b)},setup:()=>{setupDarkMode(),setupSidebarItems()},layouts:{Layout,NotFound,Slide:f}}),searchBox="",searchModal="",u=()=>h$3(P$5,{name:"search"},()=>h$3("path",{d:"M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"}));u.displayName="SearchIcon";const d=Symbol.for("search-pro"),S=()=>{const b=ref(!1);provide(d,b)},E=[{key:"k",ctrl:!0}],p={"/en/":{cancel:"Cancel",placeholder:"Search",search:"Search",select:"to select",navigate:"to navigate",exit:"to exit",history:"Search History",emptyHistory:"Empty Search History",emptyResult:"No results found",loading:"Loading search indexes..."},"/":{cancel:"取消",placeholder:"搜索",search:"搜索",select:"选择",navigate:"切换",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."}},L=b=>b instanceof Element?document.activeElement===b&&(["TEXTAREA","SELECT","INPUT"].includes(b.tagName)||b.hasAttribute("contenteditable")):!1,T=b=>E.some($=>{const{key:j,ctrl:U=!1,shift:Bn=!1,alt:Fn=!1}=$;return j===b.key&&U===b.ctrlKey&&Bn===b.shiftKey&&Fn===b.altKey});var A=defineComponent({name:"SearchBox",setup(){const b=kt$1(p),$=inject(d);return useEventListener("keydown",j=>{!$.value&&T(j)&&!L(j.target)&&(j.preventDefault(),$.value=!0)}),()=>[h$3("button",{class:"search-pro-button",role:"search","aria-label":b.value.search,onClick:()=>{$.value=!0}},h$3(u))]}});const m=()=>h$3("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100"},[h$3("circle",{cx:"28",cy:"75",r:"11",fill:"currentColor"},h$3("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 47a28 28 0 0 1 28 28"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.1s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 25a50 50 0 0 1 50 50"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.2s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"}))]);m.displayName="LoadingIcon";const x=defineComponent({name:"SearchLoading",setup(){const b=kt$1(p);return()=>h$3("div",{class:"search-pro-result loading"},[h$3(m),b.value.loading])}}),H=defineAsyncComponent({loader:()=>__vitePreload(()=>import("./SearchResult-653743d2.js"),["assets/SearchResult-653743d2.js","assets/framework-2050cf2c.js"]),loadingComponent:x});var I=defineComponent({name:"SearchModal",setup(){const b=inject(d),$=kt$1(p),j=ref(""),U=ref(!1),Bn=ref();return useEventListener("keydown",Fn=>{b.value&&Fn.key==="Escape"&&(b.value=!1)}),onMounted(()=>{U.value=Ht$1(navigator.userAgent),watch(b,Fn=>{var qn;Fn&&((qn=Bn.value)==null||qn.focus())})}),()=>b.value?h$3("div",{class:"search-pro-modal-wrapper"},[h$3("div",{class:"background",onClick:()=>{b.value=!1,j.value=""}}),h$3("div",{class:"search-pro-modal"},[h$3("div",{class:"search-pro-box"},[h$3(u),h$3("input",{ref:Bn,type:"text",class:"search-pro-input",placeholder:$.value.placeholder,spellcheck:"false",value:j.value,onInput:({target:Fn})=>{j.value=Fn.value}}),h$3("button",{class:"close-button",onClick:()=>{b.value=!1,j.value=""}},$.value.cancel)]),h$3(H,{query:j.value,onClose:()=>{b.value=!1},onUpdateQuery:Fn=>{j.value=Fn}}),U.value?null:h$3("div",{class:"search-pro-hints"},[h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Enter key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"></path></g></svg>'}),$.value.select]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow down" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 3.5v8M10.5 8.5l-3 3-3-3"></path></g></svg>'}),h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow up" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 11.5v-8M10.5 6.5l-3-3-3 3"></path></g></svg>'}),$.value.navigate]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Escape key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"></path></g></svg>'}),$.value.exit])])])]):null}}),N=defineClientConfig({enhance({app:b}){b.component("SearchBox",A)},setup(){S()},rootComponents:[I]});const clientConfigs=[clientConfig0,clientConfig1,clientConfig2,a$4,clientConfig4,clientConfig5,clientConfig6,s$1,D$1,clientConfig9,y,clientConfig11,clientConfig12,N],pagesRoutes=[["v-8daa1a0e","/",{y:"h",title:"首页",i:"home"},["/index.html","/README.md"]],["v-67f865c9","/community.html",{y:"a",title:"加入用户社区"},["/community","/community.md"]],["v-c360777a","/markmap.html",{y:"a",title:"胡桃工具箱"},["/markmap","/markmap.md"]],["v-590a42d9","/project.html",{y:"a",title:"项目说明"},["/project","/project.md"]],["v-96f5eae0","/quick-start.html",{y:"a",title:"快速开始"},["/quick-start","/quick-start.md"]],["v-35ed7d28","/star-request.html",{y:"a",title:""},["/star-request","/star-request.md"]],["v-4f87b30d","/FAQ/Gacha-system-and-export-principal.html",{y:"a",title:"祈愿系统与导出原理"},["/FAQ/Gacha-system-and-export-principal","/FAQ/Gacha-system-and-export-principal.md"]],["v-5b94d45f","/FAQ/HttpRequestException.html",{y:"a",title:"HttpRequestException错误"},["/FAQ/HttpRequestException","/FAQ/HttpRequestException.md"]],["v-0288c929","/FAQ/artifact-rating-rules.html",{y:"a",title:"圣遗物评分机制"},["/FAQ/artifact-rating-rules","/FAQ/artifact-rating-rules.md"]],["v-9a0eaba6","/FAQ/get-stoken-cookie-from-the-third-party.html",{y:"a",title:"使用第三方工具获取有 Stoken 的 cookie"},["/FAQ/get-stoken-cookie-from-the-third-party","/FAQ/get-stoken-cookie-from-the-third-party.md"]],["v-179f15e2","/FAQ/how-to.html",{y:"a",title:"如何..."},["/FAQ/how-to","/FAQ/how-to.md"]],["v-401b4afa","/FAQ/mihoyo-risk-tip.html",{y:"a",title:"账号风险及异常提示"},["/FAQ/mihoyo-risk-tip","/FAQ/mihoyo-risk-tip.md"]],["v-289a9e83","/FAQ/why.html",{y:"a",title:"为什么..."},["/FAQ/why","/FAQ/why.md"]],["v-28eb1946","/development-log/symposium1.html",{y:"a",title:"第一期开发组座谈会"},["/development-log/symposium1","/development-log/symposium1.md"]],["v-2a9ff1e5","/development-log/symposium2.html",{y:"a",title:"第二期开发组座谈会"},["/development-log/symposium2","/development-log/symposium2.md"]],["v-2d0a870d","/en/",{y:"h",title:"Home",i:"home"},["/en/index.html","/en/README.md"]],["v-c4a44b52","/en/markmap.html",{y:"a",title:"胡桃工具箱"},["/en/markmap","/en/markmap.md"]],["v-586858ed","/en/project.html",{y:"a",title:"项目说明"},["/en/project","/en/project.md"]],["v-0c01f6a4","/en/quick-start.html",{y:"a",title:"快速开始"},["/en/quick-start","/en/quick-start.md"]],["v-35380e8e","/features/",{y:"a",title:"功能列表"},["/features/index.html","/features/README.md"]],["v-73139ec8","/features/achievements.html",{y:"a",title:"成就管理"},["/features/achievements","/features/achievements.md"]],["v-1c93fc72","/features/character-data.html",{y:"a",title:"属性统计"},["/features/character-data","/features/character-data.md"]],["v-e37f5fa8","/features/character-wiki.html",{y:"a",title:"角色资料"},["/features/character-wiki","/features/character-wiki.md"]],["v-646944b6","/features/daily-notes.html",{y:"a",title:"实时便笺"},["/features/daily-notes","/features/daily-notes.md"]],["v-1ae10847","/features/develop-plan.html",{y:"a",title:"养成计划"},["/features/develop-plan","/features/develop-plan.md"]],["v-923d01d2","/features/game-launcher.html",{y:"a",title:"高级启动器"},["/features/game-launcher","/features/game-launcher.md"]],["v-6de46920","/features/hutao-API.html",{y:"a",title:"胡桃数据库/深渊统计"},["/features/hutao-API","/features/hutao-API.md"]],["v-0c385e36","/features/hutao-settings.html",{y:"a",title:"软件设置"},["/features/hutao-settings","/features/hutao-settings.md"]],["v-3e40bb9d","/features/mhy-account-switch.html",{y:"a",title:"米游社多帐号切换"},["/features/mhy-account-switch","/features/mhy-account-switch.md"]],["v-7070f771","/features/weapon-wiki.html",{y:"a",title:"武器资料"},["/features/weapon-wiki","/features/weapon-wiki.md"]],["v-f4f67790","/features/wish-export.html",{y:"a",title:"祈愿记录"},["/features/wish-export","/features/wish-export.md"]],["v-39f4c4da","/statements/bug-report.html",{y:"a",title:"提交BUG报告"},["/statements/bug-report","/statements/bug-report.md"]],["v-6730cc6c","/statements/privacy-notice.html",{y:"a",title:"用户数据和隐私权益"},["/statements/privacy-notice","/statements/privacy-notice.md"]],["v-d670f89a","/statements/tos.html",{y:"a",title:"用户使用协议和法律声明"},["/statements/tos","/statements/tos.md"]],["v-39caee21","/en/FAQ/Gacha-system-and-export-principal.html",{y:"a",title:"祈愿系统与导出原理"},["/en/FAQ/Gacha-system-and-export-principal","/en/FAQ/Gacha-system-and-export-principal.md"]],["v-28cb28cb","/en/FAQ/HttpRequestException.html",{y:"a",title:"HttpRequestException错误"},["/en/FAQ/HttpRequestException","/en/FAQ/HttpRequestException.md"]],["v-47c5fb86","/en/FAQ/artifact-rating-rules.html",{y:"a",title:"圣遗物评分机制"},["/en/FAQ/artifact-rating-rules","/en/FAQ/artifact-rating-rules.md"]],["v-eab988ce","/en/FAQ/get-stoken-cookie-from-the-third-party.html",{y:"a",title:"使用第三方工具获取有 Stoken 的 cookie"},["/en/FAQ/get-stoken-cookie-from-the-third-party","/en/FAQ/get-stoken-cookie-from-the-third-party.md"]],["v-5a1bb67b","/en/FAQ/how-to.html",{y:"a",title:"如何..."},["/en/FAQ/how-to","/en/FAQ/how-to.md"]],["v-0744e30e","/en/FAQ/mihoyo-risk-tip.html",{y:"a",title:"账号风险及异常提示"},["/en/FAQ/mihoyo-risk-tip","/en/FAQ/mihoyo-risk-tip.md"]],["v-27f8b497","/en/FAQ/why.html",{y:"a",title:"为什么..."},["/en/FAQ/why","/en/FAQ/why.md"]],["v-fc43fa9c","/en/development-log/symposium1.html",{y:"a",title:"第一期开发组座谈会"},["/en/development-log/symposium1","/en/development-log/symposium1.md"]],["v-f8da495e","/en/development-log/symposium2.html",{y:"a",title:"第二期开发组座谈会"},["/en/development-log/symposium2","/en/development-log/symposium2.md"]],["v-30f089b6","/en/features/",{y:"a",title:"功能列表"},["/en/features/index.html","/en/features/README.md"]],["v-699a13b0","/en/features/achievements.html",{y:"a",title:"成就管理"},["/en/features/achievements","/en/features/achievements.md"]],["v-f3692af4","/en/features/character-data.html",{y:"a",title:"属性统计"},["/en/features/character-data","/en/features/character-data.md"]],["v-10108380","/en/features/character-wiki.html",{y:"a",title:"角色资料"},["/en/features/character-wiki","/en/features/character-wiki.md"]],["v-28566fde","/en/features/daily-notes.html",{y:"a",title:"实时便笺"},["/en/features/daily-notes","/en/features/daily-notes.md"]],["v-83f6294a","/en/features/develop-plan.html",{y:"a",title:"养成计划"},["/en/features/develop-plan","/en/features/develop-plan.md"]],["v-7839fe83","/en/features/game-launcher.html",{y:"a",title:"高级启动器"},["/en/features/game-launcher","/en/features/game-launcher.md"]],["v-0106e0dc","/en/features/hutao-API.html",{y:"a",title:"胡桃数据库/深渊统计"},["/en/features/hutao-API","/en/features/hutao-API.md"]],["v-639b3ef9","/en/features/hutao-settings.html",{y:"a",title:"软件设置"},["/en/features/hutao-settings","/en/features/hutao-settings.md"]],["v-03aaffb1","/en/features/mhy-account-switch.html",{y:"a",title:"米游社多帐号切换"},["/en/features/mhy-account-switch","/en/features/mhy-account-switch.md"]],["v-e30b3c46","/en/features/weapon-wiki.html",{y:"a",title:"武器资料"},["/en/features/weapon-wiki","/en/features/weapon-wiki.md"]],["v-b8e3a2b8","/en/features/wish-export.html",{y:"a",title:"祈愿记录"},["/en/features/wish-export","/en/features/wish-export.md"]],["v-45ceb024","/en/statements/bug-report.html",{y:"a",title:"提交BUG报告"},["/en/statements/bug-report","/en/statements/bug-report.md"]],["v-b4085a44","/en/statements/privacy-notice.html",{y:"a",title:"用户数据和隐私权益"},["/en/statements/privacy-notice","/en/statements/privacy-notice.md"]],["v-b1c7a1c2","/en/statements/tos.html",{y:"a",title:"用户使用协议和法律声明"},["/en/statements/tos","/en/statements/tos.md"]],["v-3706649a","/404.html",{y:"p",title:""},["/404"]],["v-74379e72","/FAQ/",{y:"p",title:"F A Q"},["/FAQ/index.html"]],["v-437b37b6","/development-log/",{y:"p",title:"Development Log"},["/development-log/index.html"]],["v-b573819c","/statements/",{y:"p",title:"Statements"},["/statements/index.html"]],["v-07470886","/en/FAQ/",{y:"p",title:"F A Q"},["/en/FAQ/index.html"]],["v-ca0fb86c","/en/development-log/",{y:"p",title:"Development Log"},["/en/development-log/index.html"]],["v-a4f9d2c4","/en/statements/",{y:"p",title:"Statements"},["/en/statements/index.html"]]];var Vuepress=defineComponent({name:"Vuepress",setup(){const b=usePageLayout();return()=>h$3(b.value)}}),createRoutes=()=>pagesRoutes.reduce((b,[$,j,U,Bn])=>(b.push({name:$,path:j,component:Vuepress,meta:U},...Bn.map(Fn=>({path:Fn,redirect:j}))),b),[{name:"404",path:"/:catchAll(.*)",component:Vuepress}]),historyCreator=createWebHistory,createVueRouter=()=>{const b=createRouter({history:historyCreator(removeEndingSlash("/")),routes:createRoutes(),scrollBehavior:($,j,U)=>U||($.hash?{el:$.hash}:{top:0})});return b.beforeResolve(async($,j)=>{var U;($.path!==j.path||j===START_LOCATION_NORMALIZED)&&([pageData.value]=await Promise.all([resolvers.resolvePageData($.name),(U=pagesComponents[$.name])==null?void 0:U.__asyncLoader()]))}),b},setupGlobalComponents=b=>{b.component("ClientOnly",ClientOnly),b.component("Content",Content)},setupGlobalComputed=(b,$,j)=>{const U=computed(()=>resolvers.resolveLayouts(j)),Bn=computed(()=>resolvers.resolveRouteLocale(siteData.value.locales,$.currentRoute.value.path)),Fn=computed(()=>resolvers.resolveSiteLocaleData(siteData.value,Bn.value)),qn=computed(()=>resolvers.resolvePageFrontmatter(pageData.value)),Wn=computed(()=>resolvers.resolvePageHeadTitle(pageData.value,Fn.value)),Gn=computed(()=>resolvers.resolvePageHead(Wn.value,qn.value,Fn.value)),Qn=computed(()=>resolvers.resolvePageLang(pageData.value)),Yn=computed(()=>resolvers.resolvePageLayout(pageData.value,U.value));return b.provide(layoutsSymbol,U),b.provide(pageFrontmatterSymbol,qn),b.provide(pageHeadTitleSymbol,Wn),b.provide(pageHeadSymbol,Gn),b.provide(pageLangSymbol,Qn),b.provide(pageLayoutSymbol,Yn),b.provide(routeLocaleSymbol,Bn),b.provide(siteLocaleDataSymbol,Fn),Object.defineProperties(b.config.globalProperties,{$frontmatter:{get:()=>qn.value},$head:{get:()=>Gn.value},$headTitle:{get:()=>Wn.value},$lang:{get:()=>Qn.value},$page:{get:()=>pageData.value},$routeLocale:{get:()=>Bn.value},$site:{get:()=>siteData.value},$siteLocale:{get:()=>Fn.value},$withBase:{get:()=>withBase}}),{layouts:U,pageData,pageFrontmatter:qn,pageHead:Gn,pageHeadTitle:Wn,pageLang:Qn,pageLayout:Yn,routeLocale:Bn,siteData,siteLocaleData:Fn}},setupUpdateHead=()=>{const b=useRoute(),$=usePageHead(),j=usePageLang(),U=ref([]),Bn=()=>{$.value.forEach(qn=>{const Wn=queryHeadTag(qn);Wn&&U.value.push(Wn)})},Fn=()=>{document.documentElement.lang=j.value,U.value.forEach(qn=>{qn.parentNode===document.head&&document.head.removeChild(qn)}),U.value.splice(0,U.value.length),$.value.forEach(qn=>{const Wn=createHeadTag(qn);Wn!==null&&(document.head.appendChild(Wn),U.value.push(Wn))})};provide(updateHeadSymbol,Fn),onMounted(()=>{Bn(),Fn(),watch(()=>b.path,()=>Fn())})},queryHeadTag=([b,$,j=""])=>{const U=Object.entries($).map(([Wn,Gn])=>isString$1(Gn)?`[${Wn}=${JSON.stringify(Gn)}]`:Gn===!0?`[${Wn}]`:"").join(""),Bn=`head > ${b}${U}`;return Array.from(document.querySelectorAll(Bn)).find(Wn=>Wn.innerText===j)||null},createHeadTag=([b,$,j])=>{if(!isString$1(b))return null;const U=document.createElement(b);return isPlainObject($)&&Object.entries($).forEach(([Bn,Fn])=>{isString$1(Fn)?U.setAttribute(Bn,Fn):Fn===!0&&U.setAttribute(Bn,"")}),isString$1(j)&&U.appendChild(document.createTextNode(j)),U},appCreator=createSSRApp,createVueApp=async()=>{var j;const b=appCreator({name:"VuepressApp",setup(){var U;setupUpdateHead();for(const Bn of clientConfigs)(U=Bn.setup)==null||U.call(Bn);return()=>[h$3(RouterView),...clientConfigs.flatMap(({rootComponents:Bn=[]})=>Bn.map(Fn=>h$3(Fn)))]}}),$=createVueRouter();setupGlobalComponents(b),setupGlobalComputed(b,$,clientConfigs);for(const U of clientConfigs)await((j=U.enhance)==null?void 0:j.call(U,{app:b,router:$,siteData}));return b.use($),{app:b,router:$}};createVueApp().then(({app:b,router:$})=>{$.isReady().then(()=>{b.mount("#app")})});export{Bt$1 as B,P$5 as P,__vitePreload as _,at$1 as a,useRouteLocale as b,useEventListener as c,createVueApp,disableBodyScroll as d,clearAllBodyScrollLocks as e,useDebounceFn as f,kt$1 as k,useLocalStorage as u};
|