import{uasMe,dasg,oasi,casp,rasf,nasD,aasJ,tasV,basw,wash,easb,TasEe,_as$,iasNt,fasCt,gasBe,hasI,jasu,kasr,pasR,lasj,masae,qasVe,sasN,vasY,xasge,yaste,zasue,AasOe,BasAt,CasMt,Dasre,Fasx,Easz,GasZe,Hasbe,IasS,JasW,Kaset,Laske,Masee,Nasde,OasEt,Pasye,QasTe,RasBt,Sastt,Uas$e,VasOt,WasHt,Xasxt,Yasot,Zasnt,$asDt,a0asFt,a1asRt,a2asst,a3asjt,a4asUt,a5aszt,a6asne,a7asse,a8asIe}from"./framework.C4_mTacX.js";constGt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名,示例:yanyongyu",resLinkText:"直接下载链接,通常为zip包链接",resHomepageText:"可选,可为git平台仓库名"}};let_e={};functionat(t,e){returnt=He(t),Gt[t][e]}functionHe(t){returnt.includes("-")?t.split("-")[0]:t}functionKt(){constt=He(Me().site.value.lang);for(letein_e)_e[e].value=at(t,e)}functionF(t){conste=He(Me().site.value.lang);return_e[t]=at(e,t),_e[t]||t}constWt=g({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,o)=>(i(),p("span",{class:D(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[J(V(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Jt=g({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,o)=>(i(),w(Ee,{name:"fade"},{default:h(()=>[e.show?(i(),p("div",qt)):b("",!0)]),_:1}))}}),Yt=$(Jt,[["__scopeId","data-v-7e9fed24"]]),O=Me;functionXt(t,e){leto,s=!1;return()=>{o&&clearTimeout(o),s?o=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}functionNe(t){return/^\//.test(t)?t:`/${t}`}functionxe(t){const{pathname:e,search:o,hash:s,protocol:n}=newURL(t,"http://a.com");if(Nt(t)||t.startsWith("#")||!n.startsWith("http")||!Ct(e))returnt;const{site:a}=O(),c=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${o}${s}`);returnBe(c)}functionpe({correspondingLink:t=!1}={}){const{site:e,localeIndex:o,page:s,theme:n,hash:a}=O(),c=I(()=>{vard,v;return{label:(d=e.value.locales[o.value])==null?void0:d.label,link:((v=e.value.locales[o.value])==null?void0:v.link)||(o.value==
`);const _=`${le}/issues/new?title=${v}&body=${m}`;window.open(_,"_blank")};return(v,m)=>(i(),p("div",Cl,[u("h1",null,V(r(F)("resourceStore")),1),u("div",Al,[ne(u("input",{class:"item-search-box",type:"text",placeholder:r(F)("search"),"onUpdate:modelValue":m[0]||(m[0]=_=>Ie(s)?s.value=_:s=_)},null,8,Ml),[[se,r(s)]])]),u("div",El,[u("button",{class:"store-button publish-button",onClick:c},V(r(F)("publishRes")),1)]),u("div",Bl,[(i(!0),p(x,null,z(r(e),_=>(i(),w(Pl,{key:_.id,item:_},null,8,["item"]))),128))]),S(Il,{class:"pub-window","is-visible":n.value},{default:h(()=>[u("h2",null,V(r(F)("publishRes")),1),u("form",{onSubmit:st(d,["prevent"])},[u("label",Ol,V(r(F)("resName")),1),ne(u("input",{type:"text",id:"name","onUpdate:modelValue":m[1]||(m[1]=_=>r(a).name=_),placeholder:r(F)("resNameText")},null,8,Hl),[[se,r(a).name]]),u("label",xl,V(r(F)("resDesc")),1),ne(u("input",{type:"text",id:"desc","onUpdate:modelValue":m[2]||(m[2]=_=>r(a).desc=_),placeholder:r(F)("resDescText")},null,8,Dl),[[se,r(a).desc]]),u("label",Fl,V(r(F)("resAuthor")),1),ne(u("input",{type:"text",id:"author","onUpdate:modelValue":m[3]||(m[3]=_=>r(a).author=_),placeholder:r(F)("resAuthorText")},null,8,Rl),[[se,r(a).author]]),u("label",jl,V(r(F)("resLink")),1),ne(u("input",{type:"text",id:"link","onUpdate:modelValue":m[4]||(m[4]=_=>r(a).link=_),placeholder:r(F)("resLinkText")},null,8,Ul),[[se,r(a).link]]),u("label",zl,V(r(F)("resHomepage")),1),ne(u("input",{type:"text",id:"homepage","onUpdate:modelValue":m[5]||(m[5]=_=>r(a).homepage=_),placeholder:r(F)("resHomepageText")},null,8,Gl),[[se,r(a).homepage]]),u("div",Kl,[u("button",{class:"pub-option close",type:"button",onClick:l},V(r(F)("closeButtonText")),1),u("button",Wl,V(r(F)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),Jl=$(ql,[["__scopeId","data-v-3e2a2e07"]]),Ql={extends:mt,enhanceApp({app:t}){t.component("StatsBar",Qe),t.component("PluginStore",pl),t.component("ResStore",Jl)},Layout:Qe};export{Ql as R,Ma as c,F as g,O as u};