@waline/client 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/waline.js CHANGED
@@ -1,24 +1,24 @@
1
- var zd=Object.defineProperty;var Od=(Q,de,ge)=>de in Q?zd(Q,de,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Q[de]=ge;var Le=(Q,de,ge)=>(Od(Q,typeof de!="symbol"?de+"":de,ge),ge),jd=(Q,de,ge)=>{if(!de.has(Q))throw TypeError("Cannot "+ge)};var gl=(Q,de,ge)=>{if(de.has(Q))throw TypeError("Cannot add the same private member more than once");de instanceof WeakSet?de.add(Q):de.set(Q,ge)};var wr=(Q,de,ge)=>(jd(Q,de,"access private method"),ge);(function(Q,de){typeof exports=="object"&&typeof module<"u"?de(exports):typeof define=="function"&&define.amd?define(["exports"],de):(Q=typeof globalThis<"u"?globalThis:Q||self,de(Q.Waline={}))})(this,function(Q){var _n,ml,vr,Ks;"use strict";const de={"Content-Type":"application/json"},ge=e=>`${e.replace(/\/?$/,"/")}api/`,It=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},yr=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${ge(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then(i=>i.json()),Rn=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${ge(e)}article?lang=${t}`,{method:"POST",headers:de,body:JSON.stringify({path:n,type:r,action:l})}).then(i=>i.json()).then(i=>It(i,"Update counter").data),vl=({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${ge(e)}comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>It(c,"Get comment data").data)},wl=({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${ge(e)}comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then(i=>i.json())},yl=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${ge(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(l=>l.json()).then(l=>It(l,"Delete comment")),Zt=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${ge(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...de,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then(i=>i.json()).then(i=>It(i,"Update comment")),bl=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${ge(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()).then(l=>It(l,"Get comment count").data),kl=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l==null||l.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const s=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(l==null||l.close(),window.removeEventListener("message",s),i(o.data))};window.addEventListener("message",s)})},xl=({serverURL:e,lang:t,paths:n,signal:r})=>yr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then(l=>Array.isArray(l)?l:[l]),_l=e=>Rn({...e,type:"time",action:"inc"}),$l=({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization=`Bearer ${l}`),fetch(`${ge(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(s=>s.json())},Cl=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${ge(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(l=>l.json()).then(l=>It(l,"user list")).then(l=>l.data),qs=["nick","mail","link"],El=e=>e.filter(t=>qs.includes(t)),Rl=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Tl="en-US",Zs=["//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"],Js=e=>new Promise((t,n)=>{if(e.size>128*1e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var l;return t(((l=r.result)==null?void 0:l.toString())||"")},r.onerror=n}),Qs=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ys=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(l=>l.json()).then(({data:l})=>l.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Xs=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Gs=/</,eo=/(?:^|\s)\/\/(.+?)$/gm,to=/\/\*([\S\s]*?)\*\//gm,no=new RegExp(`(${Xs.source}|${Gs.source})|((?:${eo.source})|(?:${to.source}))`,"gmi"),Al=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],br={},ro=e=>{let t=0;return e.replace(no,(n,r,l)=>{if(l)return`<span style="color: slategray">${l}</span>`;if(r==="<")return"&lt;";let i;br[r]?i=br[r]:(i=Al[t],br[r]=i);const s=`<span style="color: #${i}">${r}</span>`;return t=++t%Al.length,s})},lo=["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"],St=e=>Object.fromEntries(e.map((t,n)=>[lo[n],t]));var kr=St(["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!
1
+ var zd=Object.defineProperty;var Od=(Y,he,me)=>he in Y?zd(Y,he,{enumerable:!0,configurable:!0,writable:!0,value:me}):Y[he]=me;var De=(Y,he,me)=>(Od(Y,typeof he!="symbol"?he+"":he,me),me),jd=(Y,he,me)=>{if(!he.has(Y))throw TypeError("Cannot "+me)};var ml=(Y,he,me)=>{if(he.has(Y))throw TypeError("Cannot add the same private member more than once");he instanceof WeakSet?he.add(Y):he.set(Y,me)};var wr=(Y,he,me)=>(jd(Y,he,"access private method"),me);(function(Y,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(Y=typeof globalThis<"u"?globalThis:Y||self,he(Y.Waline={}))})(this,function(Y){"use strict";var _n,vl,vr,Ks;const he={"Content-Type":"application/json"},me=e=>`${e.replace(/\/?$/,"/")}api/`,It=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},yr=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${me(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then(i=>i.json()),Rn=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${me(e)}article?lang=${t}`,{method:"POST",headers:he,body:JSON.stringify({path:n,type:r,action:l})}).then(i=>i.json()).then(i=>It(i,"Update counter").data),wl=({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${me(e)}comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>It(c,"Get comment data").data)},yl=({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${me(e)}comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then(i=>i.json())},bl=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${me(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(l=>l.json()).then(l=>It(l,"Delete comment")),Zt=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${me(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...he,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then(i=>i.json()).then(i=>It(i,"Update comment")),kl=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${me(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()).then(l=>It(l,"Get comment count").data),xl=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l==null||l.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const s=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(l==null||l.close(),window.removeEventListener("message",s),i(o.data))};window.addEventListener("message",s)})},_l=({serverURL:e,lang:t,paths:n,signal:r})=>yr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then(l=>Array.isArray(l)?l:[l]),$l=e=>Rn({...e,type:"time",action:"inc"}),Cl=({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization=`Bearer ${l}`),fetch(`${me(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(s=>s.json())},El=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${me(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(l=>l.json()).then(l=>It(l,"user list")).then(l=>l.data),qs=["nick","mail","link"],Rl=e=>e.filter(t=>qs.includes(t)),Tl=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Al="en-US",Zs=["//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"],Js=e=>new Promise((t,n)=>{if(e.size>128*1e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var l;return t(((l=r.result)==null?void 0:l.toString())||"")},r.onerror=n}),Qs=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ys=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(l=>l.json()).then(({data:l})=>l.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Xs=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Gs=/</,eo=/(?:^|\s)\/\/(.+?)$/gm,to=/\/\*([\S\s]*?)\*\//gm,no=new RegExp(`(${Xs.source}|${Gs.source})|((?:${eo.source})|(?:${to.source}))`,"gmi"),Il=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],br={},ro=e=>{let t=0;return e.replace(no,(n,r,l)=>{if(l)return`<span style="color: slategray">${l}</span>`;if(r==="<")return"&lt;";let i;br[r]?i=br[r]:(i=Il[t],br[r]=i);const s=`<span style="color: #${i}">${r}</span>`;return t=++t%Il.length,s})},lo=["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"],St=e=>Object.fromEntries(e.map((t,n)=>[lo[n],t]));var kr=St(["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!
2
2
  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?"]),Tn=St(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
3
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Il=St(["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!
3
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Sl=St(["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!
4
4
  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?"]),xr=St(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
5
5
  Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),_r=St(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
6
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Sl=St(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
7
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Lt={zh:_r,"zh-cn":_r,"zh-CN":_r,"zh-tw":Sl,"zh-TW":Sl,en:kr,"en-US":kr,"en-us":kr,jp:Tn,ja:Tn,"jp-jp":Tn,"jp-JP":Tn,"pt-br":Il,"pt-BR":Il,ru:xr,"ru-ru":xr,"ru-RU":xr},Ll=e=>{try{e=decodeURI(e)}catch{}return e},Ml=(e="")=>e.replace(/\/$/u,""),zl=e=>/^(https?:)?\/\//.test(e),An=e=>{const t=Ml(e);return zl(t)?t:`https://${t}`},io=e=>Array.isArray(e)?e:e?[0,e]:!1,$r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,so=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:l=Rl,meta:i=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:p,texRenderer:h,copyright:w=!0,login:T="enable",search:x,reaction:E,recaptchaV3Key:y="",turnstileKey:R="",commentSorting:B="latest",...S})=>({serverURL:An(e),path:Ll(t),locale:{...Lt[n]||Lt[Tl],...typeof r=="object"?r:{}},wordLimit:io(c),meta:El(i),requiredMeta:El(s),imageUploader:$r(f,Js),highlighter:$r(p,ro),texRenderer:$r(h,Qs),lang:Object.keys(Lt).includes(n)?n:"en-US",dark:o,emoji:typeof l=="boolean"?l?Rl:[]:l,pageSize:a,login:T,copyright:w,search:x===!1?!1:typeof x=="object"?x:Ys(n),recaptchaV3Key:y,turnstileKey:R,reaction:Array.isArray(E)?E:E===!0?Zs:[],commentSorting:B,...S}),Cr="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",oo=e=>typeof e=="string"?e==="auto"?`@media(prefers-color-scheme:dark){body${Cr}}`:`${e}${Cr}`:e===!0?`:root${Cr}`:"",Er=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ao=e=>{const t=Er(e.getDate(),2),n=Er(e.getMonth()+1,2);return`${Er(e.getFullYear(),2)}-${n}-${t}`},co=(e,t,n)=>{if(!e)return"";const r=typeof e=="string"?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/(24*3600*1e3));if(i===0){const s=l%864e5,o=Math.floor(s/(3600*1e3));if(o===0){const a=s%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:ao(r)},uo=/^[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])?)*$/,fo=e=>uo.test(e);function Rr(e,t){const n=Object.create(null),r=e.split(",");for(let l=0;l<r.length;l++)n[r[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}const ue={},Mt=[],gt=()=>{},ho=()=>!1,po=/^on[^a-z]/,In=e=>po.test(e),Tr=e=>e.startsWith("onUpdate:"),Re=Object.assign,Ol=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},go=Object.prototype.hasOwnProperty,Y=(e,t)=>go.call(e,t),D=Array.isArray,zt=e=>Jt(e)==="[object Map]",Ot=e=>Jt(e)==="[object Set]",jl=e=>Jt(e)==="[object Date]",le=e=>typeof e=="function",ke=e=>typeof e=="string",jt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Pl=e=>(he(e)||le(e))&&le(e.then)&&le(e.catch),Ul=Object.prototype.toString,Jt=e=>Ul.call(e),mo=e=>Jt(e).slice(8,-1),Fl=e=>Jt(e)==="[object Object]",Ar=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vo=/-(\w)/g,Ke=Ln(e=>e.replace(vo,(t,n)=>n?n.toUpperCase():"")),wo=/\B([A-Z])/g,Pt=Ln(e=>e.replace(wo,"-$1").toLowerCase()),Mn=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ir=Ln(e=>e?`on${Mn(e)}`:""),mt=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Hl;const Sr=()=>Hl||(Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ke(r)?xo(r):Qt(r);if(l)for(const i in l)t[i]=l[i]}return t}else if(ke(e)||he(e))return e}const yo=/;(?![^(]*\))/g,bo=/:([^]+)/,ko=/\/\*[^]*?\*\//g;function xo(e){const t={};return e.replace(ko,"").split(yo).forEach(n=>{if(n){const r=n.split(bo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function we(e){let t="";if(ke(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const r=we(e[n]);r&&(t+=r+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const _o=Rr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Nl(e){return!!e||e===""}function $o(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=vt(e[r],t[r]);return n}function vt(e,t){if(e===t)return!0;let n=jl(e),r=jl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=jt(e),r=jt(t),n||r)return e===t;if(n=D(e),r=D(t),n||r)return n&&r?$o(e,t):!1;if(n=he(e),r=he(t),n||r){if(!n||!r)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!vt(e[s],t[s]))return!1}}return String(e)===String(t)}function Lr(e,t){return e.findIndex(n=>vt(n,t))}const ie=e=>ke(e)?e:e==null?"":D(e)||he(e)&&(e.toString===Ul||!le(e.toString))?JSON.stringify(e,Dl,2):String(e),Dl=(e,t)=>t&&t.__v_isRef?Dl(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l])=>(n[`${r} =>`]=l,n),{})}:Ot(t)?{[`Set(${t.size})`]:[...t.values()]}:he(t)&&!D(t)&&!Fl(t)?String(t):t;let Me;class Co{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Me;try{return Me=this,t()}finally{Me=n}}}on(){Me=this}off(){Me=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Eo(e,t=Me){t&&t.active&&t.effects.push(e)}function Bl(){return Me}function Ro(e){Me&&Me.cleanups.push(e)}const Mr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Wl=e=>(e.w&ot)>0,Vl=e=>(e.n&ot)>0,To=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ot},Ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];Wl(l)&&!Vl(l)?l.delete(e):t[n++]=l,l.w&=~ot,l.n&=~ot}t.length=n}},zr=new WeakMap;let Yt=0,ot=1;const Or=30;let De;const wt=Symbol(""),jr=Symbol("");class Pr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Eo(this,r)}run(){if(!this.active)return this.fn();let t=De,n=at;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=De,De=this,at=!0,ot=1<<++Yt,Yt<=Or?To(this):Kl(this),this.fn()}finally{Yt<=Or&&Ao(this),ot=1<<--Yt,De=this.parent,at=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){De===this?this.deferStop=!0:this.active&&(Kl(this),this.onStop&&this.onStop(),this.active=!1)}}function Kl(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let at=!0;const ql=[];function Xt(){ql.push(at),at=!1}function Gt(){const e=ql.pop();at=e===void 0?!0:e}function Ie(e,t,n){if(at&&De){let r=zr.get(e);r||zr.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Mr()),Zl(l)}}function Zl(e,t){let n=!1;Yt<=Or?Vl(e)||(e.n|=ot,n=!Wl(e)):n=!e.has(De),n&&(e.add(De),De.deps.push(e))}function Xe(e,t,n,r,l,i){const s=zr.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&D(e)){const a=Number(r);s.forEach((c,f)=>{(f==="length"||!jt(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":D(e)?Ar(n)&&o.push(s.get("length")):(o.push(s.get(wt)),zt(e)&&o.push(s.get(jr)));break;case"delete":D(e)||(o.push(s.get(wt)),zt(e)&&o.push(s.get(jr)));break;case"set":zt(e)&&o.push(s.get(wt));break}if(o.length===1)o[0]&&Ur(o[0]);else{const a=[];for(const c of o)c&&a.push(...c);Ur(Mr(a))}}function Ur(e,t){const n=D(e)?e:[...e];for(const r of n)r.computed&&Jl(r);for(const r of n)r.computed||Jl(r)}function Jl(e,t){(e!==De||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Io=Rr("__proto__,__v_isRef,__isVue"),Ql=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),Yl=So();function So(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ee(this);for(let i=0,s=this.length;i<s;i++)Ie(r,"get",i+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(ee)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const r=ee(this)[t].apply(this,n);return Gt(),r}}),e}function Lo(e){const t=ee(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class Xl{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const l=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw"&&r===(l?i?Vo:si:i?ii:li).get(t))return t;const s=D(t);if(!l){if(s&&Y(Yl,n))return Reflect.get(Yl,n,r);if(n==="hasOwnProperty")return Lo}const o=Reflect.get(t,n,r);return(jt(n)?Ql.has(n):Io(n))||(l||Ie(t,"get",n),i)?o:xe(o)?s&&Ar(n)?o:o.value:he(o)?l?tn(o):en(o):o}}class Gl extends Xl{constructor(t=!1){super(!1,t)}set(t,n,r,l){let i=t[n];if(Ft(i)&&xe(i)&&!xe(r))return!1;if(!this._shallow&&(!Bn(r)&&!Ft(r)&&(i=ee(i),r=ee(r)),!D(t)&&xe(i)&&!xe(r)))return i.value=r,!0;const s=D(t)&&Ar(n)?Number(n)<t.length:Y(t,n),o=Reflect.set(t,n,r,l);return t===ee(l)&&(s?mt(r,i)&&Xe(t,"set",n,r):Xe(t,"add",n,r)),o}deleteProperty(t,n){const r=Y(t,n),l=Reflect.deleteProperty(t,n);return l&&r&&Xe(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!Ql.has(n))&&Ie(t,"has",n),r}ownKeys(t){return Ie(t,"iterate",D(t)?"length":wt),Reflect.ownKeys(t)}}class Mo extends Xl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zo=new Gl,Oo=new Mo,jo=new Gl(!0),Fr=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function Un(e,t,n=!1,r=!1){e=e.__v_raw;const l=ee(e),i=ee(t);n||(mt(t,i)&&Ie(l,"get",t),Ie(l,"get",i));const{has:s}=Pn(l),o=r?Fr:n?Dr:nn;if(s.call(l,t))return o(e.get(t));if(s.call(l,i))return o(e.get(i));e!==l&&e.get(t)}function Fn(e,t=!1){const n=this.__v_raw,r=ee(n),l=ee(e);return t||(mt(e,l)&&Ie(r,"has",e),Ie(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Hn(e,t=!1){return e=e.__v_raw,!t&&Ie(ee(e),"iterate",wt),Reflect.get(e,"size",e)}function ei(e){e=ee(e);const t=ee(this);return Pn(t).has.call(t,e)||(t.add(e),Xe(t,"add",e,e)),this}function ti(e,t){t=ee(t);const n=ee(this),{has:r,get:l}=Pn(n);let i=r.call(n,e);i||(e=ee(e),i=r.call(n,e));const s=l.call(n,e);return n.set(e,t),i?mt(t,s)&&Xe(n,"set",e,t):Xe(n,"add",e,t),this}function ni(e){const t=ee(this),{has:n,get:r}=Pn(t);let l=n.call(t,e);l||(e=ee(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&Xe(t,"delete",e,void 0),i}function ri(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&Xe(e,"clear",void 0,void 0),n}function Nn(e,t){return function(r,l){const i=this,s=i.__v_raw,o=ee(s),a=t?Fr:e?Dr:nn;return!e&&Ie(o,"iterate",wt),s.forEach((c,f)=>r.call(l,a(c),a(f),i))}}function Dn(e,t,n){return function(...r){const l=this.__v_raw,i=ee(l),s=zt(i),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=l[e](...r),f=n?Fr:t?Dr:nn;return!t&&Ie(i,"iterate",a?jr:wt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:o?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:this}}function Po(){const e={get(i){return Un(this,i)},get size(){return Hn(this)},has:Fn,add:ei,set:ti,delete:ni,clear:ri,forEach:Nn(!1,!1)},t={get(i){return Un(this,i,!1,!0)},get size(){return Hn(this)},has:Fn,add:ei,set:ti,delete:ni,clear:ri,forEach:Nn(!1,!0)},n={get(i){return Un(this,i,!0)},get size(){return Hn(this,!0)},has(i){return Fn.call(this,i,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Nn(!0,!1)},r={get(i){return Un(this,i,!0,!0)},get size(){return Hn(this,!0)},has(i){return Fn.call(this,i,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Dn(i,!1,!1),n[i]=Dn(i,!0,!1),t[i]=Dn(i,!1,!0),r[i]=Dn(i,!0,!0)}),[e,n,t,r]}const[Uo,Fo,Ho,No]=Po();function Hr(e,t){const n=t?e?No:Ho:e?Fo:Uo;return(r,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(Y(n,l)&&l in r?n:r,l,i)}const Do={get:Hr(!1,!1)},Bo={get:Hr(!1,!0)},Wo={get:Hr(!0,!1)},li=new WeakMap,ii=new WeakMap,si=new WeakMap,Vo=new WeakMap;function Ko(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Ko(mo(e))}function en(e){return Ft(e)?e:Nr(e,!1,zo,Do,li)}function Zo(e){return Nr(e,!1,jo,Bo,ii)}function tn(e){return Nr(e,!0,Oo,Wo,si)}function Nr(e,t,n,r,l){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const s=qo(e);if(s===0)return e;const o=new Proxy(e,s===2?r:n);return l.set(e,o),o}function Ut(e){return Ft(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function oi(e){return Ut(e)||Ft(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function ai(e){return On(e,"__v_skip",!0),e}const nn=e=>he(e)?en(e):e,Dr=e=>he(e)?tn(e):e;function ci(e){at&&De&&(e=ee(e),Zl(e.dep||(e.dep=Mr())))}function ui(e,t){e=ee(e);const n=e.dep;n&&Ur(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function V(e){return fi(e,!1)}function Jo(e){return fi(e,!0)}function fi(e,t){return xe(e)?e:new Qo(e,t)}class Qo{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:nn(t)}get value(){return ci(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Ft(t);t=n?t:ee(t),mt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nn(t),ui(this))}}function J(e){return xe(e)?e.value:e}const Yo={get:(e,t,n)=>J(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return xe(l)&&!xe(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function di(e){return Ut(e)?e:new Proxy(e,Yo)}class Xo{constructor(t,n,r,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Pr(t,()=>{this._dirty||(this._dirty=!0,ui(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=ee(this);return ci(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Go(e,t,n=!1){let r,l;const i=le(e);return i?(r=e,l=gt):(r=e.get,l=e.set),new Xo(r,l,i||!l,n)}function ut(e,t,n,r){let l;try{l=r?e(...r):e()}catch(i){Wn(i,t,n)}return l}function qe(e,t,n,r){if(le(e)){const i=ut(e,t,n,r);return i&&Pl(i)&&i.catch(s=>{Wn(s,t,n)}),i}const l=[];for(let i=0;i<e.length;i++)l.push(qe(e[i],t,n,r));return l}function Wn(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,o=n;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ut(a,null,10,[e,s,o]);return}}ea(e,n,l,r)}function ea(e,t,n,r=!0){console.error(e)}let rn=!1,Br=!1;const Ce=[];let Ze=0;const Ht=[];let Ge=null,yt=0;const hi=Promise.resolve();let Wr=null;function Vn(e){const t=Wr||hi;return e?t.then(this?e.bind(this):e):t}function ta(e){let t=Ze+1,n=Ce.length;for(;t<n;){const r=t+n>>>1,l=Ce[r],i=ln(l);i<e||i===e&&l.pre?t=r+1:n=r}return t}function Vr(e){(!Ce.length||!Ce.includes(e,rn&&e.allowRecurse?Ze+1:Ze))&&(e.id==null?Ce.push(e):Ce.splice(ta(e.id),0,e),pi())}function pi(){!rn&&!Br&&(Br=!0,Wr=hi.then(vi))}function na(e){const t=Ce.indexOf(e);t>Ze&&Ce.splice(t,1)}function ra(e){D(e)?Ht.push(...e):(!Ge||!Ge.includes(e,e.allowRecurse?yt+1:yt))&&Ht.push(e),pi()}function gi(e,t=rn?Ze+1:0){for(;t<Ce.length;t++){const n=Ce[t];n&&n.pre&&(Ce.splice(t,1),t--,n())}}function mi(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,Ge){Ge.push(...t);return}for(Ge=t,Ge.sort((n,r)=>ln(n)-ln(r)),yt=0;yt<Ge.length;yt++)Ge[yt]();Ge=null,yt=0}}const ln=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=ln(e)-ln(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function vi(e){Br=!1,rn=!0,Ce.sort(la);try{for(Ze=0;Ze<Ce.length;Ze++){const t=Ce[Ze];t&&t.active!==!1&&ut(t,null,14)}}finally{Ze=0,Ce.length=0,mi(),rn=!1,Wr=null,(Ce.length||Ht.length)&&vi()}}function ia(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let l=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=r[f]||ue;h&&(l=n.map(w=>ke(w)?w.trim():w)),p&&(l=n.map(jn))}let o,a=r[o=Ir(t)]||r[o=Ir(Ke(t))];!a&&i&&(a=r[o=Ir(Pt(t))]),a&&qe(a,e,6,l);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,qe(c,e,6,l)}}function sa(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const i=e.emits;let s={};return!i&&!!1?(he(e)&&r.set(e,null),null):(D(i)?i.forEach(a=>s[a]=null):Re(s,i),he(e)&&r.set(e,s),s)}function Kn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,Pt(t))||Y(e,t))}let ze=null,wi=null;function qn(e){const t=ze;return ze=e,wi=e&&e.type.__scopeId||null,t}function oa(e,t=ze,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&Ui(-1);const i=qn(t);let s;try{s=e(...l)}finally{qn(i),r._d&&Ui(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Kr(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:f,renderCache:p,data:h,setupState:w,ctx:T,inheritAttrs:x}=e;let E,y;const R=qn(e);try{if(n.shapeFlag&4){const S=l||r;E=Je(f.call(S,S,p,i,w,h,T)),y=a}else{const S=t;E=Je(S.length>1?S(i,{attrs:a,slots:o,emit:c}):S(i,null)),y=t.props?a:aa(a)}}catch(S){un.length=0,Wn(S,e,1),E=se(_t)}let B=E;if(y&&x!==!1){const S=Object.keys(y),{shapeFlag:N}=B;S.length&&N&7&&(s&&S.some(Tr)&&(y=ca(y,s)),B=Nt(B,y))}return n.dirs&&(B=Nt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),E=B,qn(R),E}const aa=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},ca=(e,t)=>{const n={};for(const r in e)(!Tr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ua(e,t,n){const{props:r,children:l,component:i}=e,{props:s,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?yi(r,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(s[h]!==r[h]&&!Kn(c,h))return!0}}}else return(l||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?yi(r,s,c):!0:!!s;return!1}function yi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function fa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const da=e=>e.__isSuspense;function ha(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):ra(e)}function bi(e,t){return ki(e,null,t)}const Zn={};function Pe(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:s}=ue){var o;const a=Bl()===((o=Ae)==null?void 0:o.scope)?Ae:null;let c,f=!1,p=!1;if(xe(e)?(c=()=>e.value,f=Bn(e)):Ut(e)?(c=()=>e,r=!0):D(e)?(p=!0,f=e.some(S=>Ut(S)||Bn(S)),c=()=>e.map(S=>{if(xe(S))return S.value;if(Ut(S))return bt(S);if(le(S))return ut(S,a,2)})):le(e)?t?c=()=>ut(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),qe(e,a,3,[w])}:c=gt,t&&r){const S=c;c=()=>bt(S())}let h,w=S=>{h=R.onStop=()=>{ut(S,a,4)}},T;if(pn)if(w=gt,t?n&&qe(t,a,3,[c(),p?[]:void 0,w]):c(),l==="sync"){const S=Ga();T=S.__watcherHandles||(S.__watcherHandles=[])}else return gt;let x=p?new Array(e.length).fill(Zn):Zn;const E=()=>{if(R.active)if(t){const S=R.run();(r||f||(p?S.some((N,X)=>mt(N,x[X])):mt(S,x)))&&(h&&h(),qe(t,a,3,[S,x===Zn?void 0:p&&x[0]===Zn?[]:x,w]),x=S)}else R.run()};E.allowRecurse=!!t;let y;l==="sync"?y=E:l==="post"?y=()=>Se(E,a&&a.suspense):(E.pre=!0,a&&(E.id=a.uid),y=()=>Vr(E));const R=new Pr(c,y);t?n?E():x=R.run():l==="post"?Se(R.run.bind(R),a&&a.suspense):R.run();const B=()=>{R.stop(),a&&a.scope&&Ol(a.scope.effects,R)};return T&&T.push(B),B}function bt(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))bt(e.value,t);else if(D(e))for(let n=0;n<e.length;n++)bt(e[n],t);else if(Ot(e)||zt(e))e.forEach(n=>{bt(n,t)});else if(Fl(e))for(const n in e)bt(e[n],t);return e}function Jn(e,t){const n=ze;if(n===null)return e;const r=lr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,c=ue]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&bt(o),l.push({dir:s,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function kt(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let s=0;s<l.length;s++){const o=l[s];i&&(o.oldValue=i[s].value);let a=o.dir[r];a&&(Xt(),qe(a,n,8,[e.el,o,e,t]),Gt())}}/*! #__NO_SIDE_EFFECTS__ */function sn(e,t){return le(e)?(()=>Re({name:e.name},t,{setup:e}))():e}const Qn=e=>!!e.type.__asyncLoader,pa=e=>e.type.__isKeepAlive;function ga(e,t,n=Ae,r=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Xt(),rl(n);const o=qe(t,n,e,s);return hn(),Gt(),o});return r?l.unshift(i):l.push(i),i}}const qr=e=>(t,n=Ae)=>(!pn||e==="sp")&&ga(e,(...r)=>t(...r),n),on=qr("m"),ma=qr("bum"),Yn=qr("um"),xi="components";function va(e,t){return ya(xi,e,!0,t)||e}const wa=Symbol.for("v-ndc");function ya(e,t,n=!0,r=!1){const l=ze||Ae;if(l){const i=l.type;if(e===xi){const o=Qa(i,!1);if(o&&(o===t||o===Ke(t)||o===Mn(Ke(t))))return i}const s=_i(l[e]||i[e],t)||_i(l.appContext[e],t);return!s&&r?i:s}}function _i(e,t){return e&&(e[t]||e[Ke(t)]||e[Mn(Ke(t))])}function Ue(e,t,n,r){let l;const i=n&&n[r];if(D(e)||ke(e)){l=new Array(e.length);for(let s=0,o=e.length;s<o;s++)l[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){l=new Array(e);for(let s=0;s<e;s++)l[s]=t(s+1,s,void 0,i&&i[s])}else if(he(e))if(e[Symbol.iterator])l=Array.from(e,(s,o)=>t(s,o,void 0,i&&i[o]));else{const s=Object.keys(e);l=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];l[o]=t(e[c],c,o,i&&i[o])}}else l=[];return n&&(n[r]=l),l}const Zr=e=>e?Bi(e)?lr(e)||e.proxy:Zr(e.parent):null,an=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zr(e.parent),$root:e=>Zr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Vr(e.update)),$nextTick:e=>e.n||(e.n=Vn.bind(e.proxy)),$watch:e=>gt}),Jr=(e,t)=>e!==ue&&!e.__isScriptSetup&&Y(e,t),ba={get({_:e},t){const{ctx:n,setupState:r,data:l,props:i,accessCache:s,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const w=s[t];if(w!==void 0)switch(w){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(Jr(r,t))return s[t]=1,r[t];if(l!==ue&&Y(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&Y(c,t))return s[t]=3,i[t];if(n!==ue&&Y(n,t))return s[t]=4,n[t];s[t]=0}}const f=an[t];let p,h;if(f)return t==="$attrs"&&Ie(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==ue&&Y(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,Y(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return Jr(l,t)?(l[t]=n,!0):r!==ue&&Y(r,t)?(r[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},s){let o;return!!n[s]||e!==ue&&Y(e,s)||Jr(t,s)||(o=i[0])&&Y(o,s)||Y(r,s)||Y(an,s)||Y(l.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $i(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ka(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:!l.length&&!n&&!r?a=t:(a={},l.length&&l.forEach(c=>Xn(a,c,s,!0)),Xn(a,t,s)),he(t)&&i.set(t,a),a}function Xn(e,t,n,r=!1){const{mixins:l,extends:i}=t;i&&Xn(e,i,n,!0),l&&l.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=xa[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const xa={data:Ci,props:Ri,emits:Ri,methods:cn,computed:cn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:cn,directives:cn,watch:$a,provide:Ci,inject:_a};function Ci(e,t){return t?e?function(){return Re(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function _a(e,t){return cn(Ei(e),Ei(t))}function Ei(e){if(D(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?Re(Object.create(null),e,t):t}function Ri(e,t){return e?D(e)&&D(t)?[...new Set([...e,...t])]:Re(Object.create(null),$i(e),$i(t??{})):t}function $a(e,t){if(!e)return t;if(!t)return e;const n=Re(Object.create(null),e);for(const r in t)n[r]=Te(e[r],t[r]);return n}function Ti(){return{app:null,config:{isNativeTag:ho,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ca=0;function Ea(e,t){return function(r,l=null){le(r)||(r=Re({},r)),l!=null&&!he(l)&&(l=null);const i=Ti(),s=new WeakSet;let o=!1;const a=i.app={_uid:Ca++,_component:r,_props:l,_container:null,_context:i,_instance:null,version:ec,get config(){return i.config},set config(c){},use(c,...f){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...f)):le(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(i.components[c]=f,a):i.components[c]},directive(c,f){return f?(i.directives[c]=f,a):i.directives[c]},mount(c,f,p){if(!o){const h=se(r,l);return h.appContext=i,f&&t?t(h,c):e(h,c,p),o=!0,a._container=c,c.__vue_app__=a,lr(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return i.provides[c]=f,a},runWithContext(c){Gn=a;try{return c()}finally{Gn=null}}};return a}}let Gn=null;function Ra(e,t){if(Ae){let n=Ae.provides;const r=Ae.parent&&Ae.parent.provides;r===n&&(n=Ae.provides=Object.create(r)),n[e]=t}}function er(e,t,n=!1){const r=Ae||ze;if(r||Gn){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Gn._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}function Ta(e,t,n,r=!1){const l={},i={};On(i,nr,1),e.propsDefaults=Object.create(null),Ai(e,t,l,i);for(const s in e.propsOptions[0])s in l||(l[s]=void 0);n?e.props=r?l:Zo(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function Aa(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:s}}=e,o=ee(l),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Kn(e.emitsOptions,h))continue;const w=t[h];if(a)if(Y(i,h))w!==i[h]&&(i[h]=w,c=!0);else{const T=Ke(h);l[T]=Qr(a,o,T,w,e,!1)}else w!==i[h]&&(i[h]=w,c=!0)}}}else{Ai(e,t,l,i)&&(c=!0);let f;for(const p in o)(!t||!Y(t,p)&&((f=Pt(p))===p||!Y(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(l[p]=Qr(a,o,p,void 0,e,!0)):delete l[p]);if(i!==o)for(const p in i)(!t||!Y(t,p))&&(delete i[p],c=!0)}c&&Xe(e,"set","$attrs")}function Ai(e,t,n,r){const[l,i]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(Sn(a))continue;const c=t[a];let f;l&&Y(l,f=Ke(a))?!i||!i.includes(f)?n[f]=c:(o||(o={}))[f]=c:Kn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,s=!0)}if(i){const a=ee(n),c=o||ue;for(let f=0;f<i.length;f++){const p=i[f];n[p]=Qr(l,a,p,c[p],e,!Y(c,p))}}return s}function Qr(e,t,n,r,l,i){const s=e[n];if(s!=null){const o=Y(s,"default");if(o&&r===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=l;n in c?r=c[n]:(rl(l),r=c[n]=a.call(null,t),hn())}else r=a}s[0]&&(i&&!o?r=!1:s[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function Ia(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const i=e.props,s={},o=[];if(!i&&!!1)return he(e)&&r.set(e,Mt),Mt;if(D(i))for(let f=0;f<i.length;f++){const p=Ke(i[f]);Ii(p)&&(s[p]=ue)}else if(i)for(const f in i){const p=Ke(f);if(Ii(p)){const h=i[f],w=s[p]=D(h)||le(h)?{type:h}:Re({},h);if(w){const T=Mi(Boolean,w.type),x=Mi(String,w.type);w[0]=T>-1,w[1]=x<0||T<x,(T>-1||Y(w,"default"))&&o.push(p)}}}const c=[s,o];return he(e)&&r.set(e,c),c}function Ii(e){return e[0]!=="$"}function Si(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Li(e,t){return Si(e)===Si(t)}function Mi(e,t){return D(t)?t.findIndex(n=>Li(n,e)):le(t)&&Li(t,e)?0:-1}const zi=e=>e[0]==="_"||e==="$stable",Yr=e=>D(e)?e.map(Je):[Je(e)],Sa=(e,t,n)=>{if(t._n)return t;const r=oa((...l)=>Yr(t(...l)),n);return r._c=!1,r},Oi=(e,t,n)=>{const r=e._ctx;for(const l in e){if(zi(l))continue;const i=e[l];if(le(i))t[l]=Sa(l,i,r);else if(i!=null){const s=Yr(i);t[l]=()=>s}}},ji=(e,t)=>{const n=Yr(t);e.slots.default=()=>n},La=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),On(t,"_",n)):Oi(t,e.slots={})}else e.slots={},t&&ji(e,t);On(e.slots,nr,1)},Ma=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,s=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(Re(l,t),!n&&o===1&&delete l._):(i=!t.$stable,Oi(t,l)),s=t}else t&&(ji(e,t),s={default:1});if(i)for(const o in l)!zi(o)&&s[o]==null&&delete l[o]};function Xr(e,t,n,r,l=!1){if(D(e)){e.forEach((h,w)=>Xr(h,t&&(D(t)?t[w]:t),n,r,l));return}if(Qn(r)&&!l)return;const i=r.shapeFlag&4?lr(r.component)||r.component.proxy:r.el,s=l?null:i,{i:o,r:a}=e,c=t&&t.r,f=o.refs===ue?o.refs={}:o.refs,p=o.setupState;if(c!=null&&c!==a&&(ke(c)?(f[c]=null,Y(p,c)&&(p[c]=null)):xe(c)&&(c.value=null)),le(a))ut(a,o,12,[s,f]);else{const h=ke(a),w=xe(a);if(h||w){const T=()=>{if(e.f){const x=h?Y(p,a)?p[a]:f[a]:a.value;l?D(x)&&Ol(x,i):D(x)?x.includes(i)||x.push(i):h?(f[a]=[i],Y(p,a)&&(p[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else h?(f[a]=s,Y(p,a)&&(p[a]=s)):w&&(a.value=s,e.k&&(f[e.k]=s))};s?(T.id=-1,Se(T,n)):T()}}}const Se=ha;function za(e){return Oa(e)}function Oa(e,t){const n=Sr();n.__VUE__=!0;const{insert:r,remove:l,patchProp:i,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:h,setScopeId:w=gt,insertStaticContent:T}=e,x=(u,d,g,m=null,v=null,b=null,$=!1,_=null,C=!!d.dynamicChildren)=>{if(u===d)return;u&&!dn(u,d)&&(m=At(u),He(u,v,b,!0),u=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:k,ref:P,shapeFlag:z}=d;switch(k){case tr:E(u,d,g,m);break;case _t:y(u,d,g,m);break;case Gr:u==null&&R(d,g,m,$);break;case ce:We(u,d,g,m,v,b,$,_,C);break;default:z&1?N(u,d,g,m,v,b,$,_,C):z&6?K(u,d,g,m,v,b,$,_,C):(z&64||z&128)&&k.process(u,d,g,m,v,b,$,_,C,st)}P!=null&&v&&Xr(P,u&&u.ref,b,d||u,!d)},E=(u,d,g,m)=>{if(u==null)r(d.el=o(d.children),g,m);else{const v=d.el=u.el;d.children!==u.children&&c(v,d.children)}},y=(u,d,g,m)=>{u==null?r(d.el=a(d.children||""),g,m):d.el=u.el},R=(u,d,g,m)=>{[u.el,u.anchor]=T(u.children,d,g,m,u.el,u.anchor)},B=({el:u,anchor:d},g,m)=>{let v;for(;u&&u!==d;)v=h(u),r(u,g,m),u=v;r(d,g,m)},S=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=h(u),l(u),u=g;l(d)},N=(u,d,g,m,v,b,$,_,C)=>{$=$||d.type==="svg",u==null?X(d,g,m,v,b,$,_,C):fe(u,d,v,b,$,_,C)},X=(u,d,g,m,v,b,$,_)=>{let C,k;const{type:P,props:z,shapeFlag:F,transition:O,dirs:q}=u;if(C=u.el=s(u.type,b,z&&z.is,z),F&8?f(C,u.children):F&16&&L(u.children,C,null,m,v,b&&P!=="foreignObject",$,_),q&&kt(u,null,m,"created"),Z(C,u,u.scopeId,$,m),z){for(const ae in z)ae!=="value"&&!Sn(ae)&&i(C,ae,null,z[ae],b,u.children,m,v,Ne);"value"in z&&i(C,"value",null,z.value),(k=z.onVnodeBeforeMount)&&Qe(k,m,u)}q&&kt(u,null,m,"beforeMount");const re=ja(v,O);re&&O.beforeEnter(C),r(C,d,g),((k=z&&z.onVnodeMounted)||re||q)&&Se(()=>{k&&Qe(k,m,u),re&&O.enter(C),q&&kt(u,null,m,"mounted")},v)},Z=(u,d,g,m,v)=>{if(g&&w(u,g),m)for(let b=0;b<m.length;b++)w(u,m[b]);if(v){let b=v.subTree;if(d===b){const $=v.vnode;Z(u,$,$.scopeId,$.slotScopeIds,v.parent)}}},L=(u,d,g,m,v,b,$,_,C=0)=>{for(let k=C;k<u.length;k++){const P=u[k]=_?ft(u[k]):Je(u[k]);x(null,P,d,g,m,v,b,$,_)}},fe=(u,d,g,m,v,b,$)=>{const _=d.el=u.el;let{patchFlag:C,dynamicChildren:k,dirs:P}=d;C|=u.patchFlag&16;const z=u.props||ue,F=d.props||ue;let O;g&&xt(g,!1),(O=F.onVnodeBeforeUpdate)&&Qe(O,g,d,u),P&&kt(d,u,g,"beforeUpdate"),g&&xt(g,!0);const q=v&&d.type!=="foreignObject";if(k?me(u.dynamicChildren,k,_,g,m,q,b):$||Ee(u,d,_,null,g,m,q,b,!1),C>0){if(C&16)Rt(_,d,z,F,g,m,v);else if(C&2&&z.class!==F.class&&i(_,"class",null,F.class,v),C&4&&i(_,"style",z.style,F.style,v),C&8){const re=d.dynamicProps;for(let ae=0;ae<re.length;ae++){const ve=re[ae],Ve=z[ve],qt=F[ve];(qt!==Ve||ve==="value")&&i(_,ve,Ve,qt,v,u.children,g,m,Ne)}}C&1&&u.children!==d.children&&f(_,d.children)}else!$&&k==null&&Rt(_,d,z,F,g,m,v);((O=F.onVnodeUpdated)||P)&&Se(()=>{O&&Qe(O,g,d,u),P&&kt(d,u,g,"updated")},m)},me=(u,d,g,m,v,b,$)=>{for(let _=0;_<d.length;_++){const C=u[_],k=d[_],P=C.el&&(C.type===ce||!dn(C,k)||C.shapeFlag&70)?p(C.el):g;x(C,k,P,null,m,v,b,$,!0)}},Rt=(u,d,g,m,v,b,$)=>{if(g!==m){if(g!==ue)for(const _ in g)!Sn(_)&&!(_ in m)&&i(u,_,g[_],null,$,d.children,v,b,Ne);for(const _ in m){if(Sn(_))continue;const C=m[_],k=g[_];C!==k&&_!=="value"&&i(u,_,k,C,$,d.children,v,b,Ne)}"value"in m&&i(u,"value",g.value,m.value)}},We=(u,d,g,m,v,b,$,_,C)=>{const k=d.el=u?u.el:o(""),P=d.anchor=u?u.anchor:o("");let{patchFlag:z,dynamicChildren:F,slotScopeIds:O}=d;O&&(_=_?_.concat(O):O),u==null?(r(k,g,m),r(P,g,m),L(d.children,g,P,v,b,$,_,C)):z>0&&z&64&&F&&u.dynamicChildren?(me(u.dynamicChildren,F,g,v,b,$,_),(d.key!=null||v&&d===v.subTree)&&Pi(u,d,!0)):Ee(u,d,g,P,v,b,$,_,C)},K=(u,d,g,m,v,b,$,_,C)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?v.ctx.activate(d,g,m,$,C):W(d,g,m,v,b,$,C):oe(u,d,C)},W=(u,d,g,m,v,b,$)=>{const _=u.component=Va(u,m,v);if(pa(u)&&(_.ctx.renderer=st),Ka(_),_.asyncDep){if(v&&v.registerDep(_,be),!u.el){const C=_.subTree=se(_t);y(null,C,d,g)}return}be(_,u,d,g,v,b,$)},oe=(u,d,g)=>{const m=d.component=u.component;if(ua(u,d,g))if(m.asyncDep&&!m.asyncResolved){ye(m,d,g);return}else m.next=d,na(m.update),m.update();else d.el=u.el,m.vnode=d},be=(u,d,g,m,v,b,$)=>{const _=()=>{if(u.isMounted){let{next:P,bu:z,u:F,parent:O,vnode:q}=u,re=P,ae;xt(u,!1),P?(P.el=q.el,ye(u,P,$)):P=q,z&&zn(z),(ae=P.props&&P.props.onVnodeBeforeUpdate)&&Qe(ae,O,P,q),xt(u,!0);const ve=Kr(u),Ve=u.subTree;u.subTree=ve,x(Ve,ve,p(Ve.el),At(Ve),u,v,b),P.el=ve.el,re===null&&fa(u,ve.el),F&&Se(F,v),(ae=P.props&&P.props.onVnodeUpdated)&&Se(()=>Qe(ae,O,P,q),v)}else{let P;const{el:z,props:F}=d,{bm:O,m:q,parent:re}=u,ae=Qn(d);if(xt(u,!1),O&&zn(O),!ae&&(P=F&&F.onVnodeBeforeMount)&&Qe(P,re,d),xt(u,!0),z&&M){const ve=()=>{u.subTree=Kr(u),M(z,u.subTree,u,v,null)};ae?d.type.__asyncLoader().then(()=>!u.isUnmounted&&ve()):ve()}else{const ve=u.subTree=Kr(u);x(null,ve,g,m,u,v,b),d.el=ve.el}if(q&&Se(q,v),!ae&&(P=F&&F.onVnodeMounted)){const ve=d;Se(()=>Qe(P,re,ve),v)}(d.shapeFlag&256||re&&Qn(re.vnode)&&re.vnode.shapeFlag&256)&&u.a&&Se(u.a,v),u.isMounted=!0,d=g=m=null}},C=u.effect=new Pr(_,()=>Vr(k),u.scope),k=u.update=()=>C.run();k.id=u.uid,xt(u,!0),k()},ye=(u,d,g)=>{d.component=u;const m=u.vnode.props;u.vnode=d,u.next=null,Aa(u,d.props,m,g),Ma(u,d.children,g),Xt(),gi(),Gt()},Ee=(u,d,g,m,v,b,$,_,C=!1)=>{const k=u&&u.children,P=u?u.shapeFlag:0,z=d.children,{patchFlag:F,shapeFlag:O}=d;if(F>0){if(F&128){pt(k,z,g,m,v,b,$,_,C);return}else if(F&256){$e(k,z,g,m,v,b,$,_,C);return}}O&8?(P&16&&Ne(k,v,b),z!==k&&f(g,z)):P&16?O&16?pt(k,z,g,m,v,b,$,_,C):Ne(k,v,b,!0):(P&8&&f(g,""),O&16&&L(z,g,m,v,b,$,_,C))},$e=(u,d,g,m,v,b,$,_,C)=>{u=u||Mt,d=d||Mt;const k=u.length,P=d.length,z=Math.min(k,P);let F;for(F=0;F<z;F++){const O=d[F]=C?ft(d[F]):Je(d[F]);x(u[F],O,g,null,v,b,$,_,C)}k>P?Ne(u,v,b,!0,!1,z):L(d,g,m,v,b,$,_,C,z)},pt=(u,d,g,m,v,b,$,_,C)=>{let k=0;const P=d.length;let z=u.length-1,F=P-1;for(;k<=z&&k<=F;){const O=u[k],q=d[k]=C?ft(d[k]):Je(d[k]);if(dn(O,q))x(O,q,g,null,v,b,$,_,C);else break;k++}for(;k<=z&&k<=F;){const O=u[z],q=d[F]=C?ft(d[F]):Je(d[F]);if(dn(O,q))x(O,q,g,null,v,b,$,_,C);else break;z--,F--}if(k>z){if(k<=F){const O=F+1,q=O<P?d[O].el:m;for(;k<=F;)x(null,d[k]=C?ft(d[k]):Je(d[k]),g,q,v,b,$,_,C),k++}}else if(k>F)for(;k<=z;)He(u[k],v,b,!0),k++;else{const O=k,q=k,re=new Map;for(k=q;k<=F;k++){const je=d[k]=C?ft(d[k]):Je(d[k]);je.key!=null&&re.set(je.key,k)}let ae,ve=0;const Ve=F-q+1;let qt=!1,Bs=0;const En=new Array(Ve);for(k=0;k<Ve;k++)En[k]=0;for(k=O;k<=z;k++){const je=u[k];if(ve>=Ve){He(je,v,b,!0);continue}let Ye;if(je.key!=null)Ye=re.get(je.key);else for(ae=q;ae<=F;ae++)if(En[ae-q]===0&&dn(je,d[ae])){Ye=ae;break}Ye===void 0?He(je,v,b,!0):(En[Ye-q]=k+1,Ye>=Bs?Bs=Ye:qt=!0,x(je,d[Ye],g,null,v,b,$,_,C),ve++)}const Ws=qt?Pa(En):Mt;for(ae=Ws.length-1,k=Ve-1;k>=0;k--){const je=q+k,Ye=d[je],Vs=je+1<P?d[je+1].el:m;En[k]===0?x(null,Ye,g,Vs,v,b,$,_,C):qt&&(ae<0||k!==Ws[ae]?Tt(Ye,g,Vs,2):ae--)}}},Tt=(u,d,g,m,v=null)=>{const{el:b,type:$,transition:_,children:C,shapeFlag:k}=u;if(k&6){Tt(u.component.subTree,d,g,m);return}if(k&128){u.suspense.move(d,g,m);return}if(k&64){$.move(u,d,g,st);return}if($===ce){r(b,d,g);for(let z=0;z<C.length;z++)Tt(C[z],d,g,m);r(u.anchor,d,g);return}if($===Gr){B(u,d,g);return}if(m!==2&&k&1&&_)if(m===0)_.beforeEnter(b),r(b,d,g),Se(()=>_.enter(b),v);else{const{leave:z,delayLeave:F,afterLeave:O}=_,q=()=>r(b,d,g),re=()=>{z(b,()=>{q(),O&&O()})};F?F(b,q,re):re()}else r(b,d,g)},He=(u,d,g,m=!1,v=!1)=>{const{type:b,props:$,ref:_,children:C,dynamicChildren:k,shapeFlag:P,patchFlag:z,dirs:F}=u;if(_!=null&&Xr(_,null,g,u,!0),P&256){d.ctx.deactivate(u);return}const O=P&1&&F,q=!Qn(u);let re;if(q&&(re=$&&$.onVnodeBeforeUnmount)&&Qe(re,d,u),P&6)pl(u.component,g,m);else{if(P&128){u.suspense.unmount(g,m);return}O&&kt(u,null,d,"beforeUnmount"),P&64?u.type.remove(u,d,g,v,st,m):k&&(b!==ce||z>0&&z&64)?Ne(k,d,g,!1,!0):(b===ce&&z&384||!v&&P&16)&&Ne(C,d,g),m&&$n(u)}(q&&(re=$&&$.onVnodeUnmounted)||O)&&Se(()=>{re&&Qe(re,d,u),O&&kt(u,null,d,"unmounted")},g)},$n=u=>{const{type:d,el:g,anchor:m,transition:v}=u;if(d===ce){hl(g,m);return}if(d===Gr){S(u);return}const b=()=>{l(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:$,delayLeave:_}=v,C=()=>$(g,b);_?_(u.el,b,C):C()}else b()},hl=(u,d)=>{let g;for(;u!==d;)g=h(u),l(u),u=g;l(d)},pl=(u,d,g)=>{const{bum:m,scope:v,update:b,subTree:$,um:_}=u;m&&zn(m),v.stop(),b&&(b.active=!1,He($,u,d,g)),_&&Se(_,d),Se(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ne=(u,d,g,m=!1,v=!1,b=0)=>{for(let $=b;$<u.length;$++)He(u[$],d,g,m,v)},At=u=>u.shapeFlag&6?At(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el),Cn=(u,d,g)=>{u==null?d._vnode&&He(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,g),gi(),mi(),d._vnode=u},st={p:x,um:He,m:Tt,r:$n,mt:W,mc:L,pc:Ee,pbc:me,n:At,o:e};let Kt,M;return t&&([Kt,M]=t(st)),{render:Cn,hydrate:Kt,createApp:Ea(Cn,Kt)}}function xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pi(e,t,n=!1){const r=e.children,l=t.children;if(D(r)&&D(l))for(let i=0;i<r.length;i++){const s=r[i];let o=l[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=l[i]=ft(l[i]),o.el=s.el),n||Pi(s,o)),o.type===tr&&(o.el=s.el)}}function Pa(e){const t=e.slice(),n=[0];let r,l,i,s,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(l=n[n.length-1],e[l]<c){t[r]=l,n.push(r);continue}for(i=0,s=n.length-1;i<s;)o=i+s>>1,e[n[o]]<c?i=o+1:s=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Ua=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Gr=Symbol.for("v-stc"),un=[];let Be=null;function I(e=!1){un.push(Be=e?null:[])}function Fa(){un.pop(),Be=un[un.length-1]||null}let fn=1;function Ui(e){fn+=e}function Fi(e){return e.dynamicChildren=fn>0?Be||Mt:null,Fa(),fn>0&&Be&&Be.push(e),e}function j(e,t,n,r,l,i){return Fi(H(e,t,n,r,l,i,!0))}function et(e,t,n,r,l){return Fi(se(e,t,n,r,l,!0))}function el(e){return e?e.__v_isVNode===!0:!1}function dn(e,t){return e.type===t.type&&e.key===t.key}const nr="__vInternal",Hi=({key:e})=>e??null,rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||xe(e)||le(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,l=null,i=e===ce?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hi(t),ref:t&&rr(t),scopeId:wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ze};return o?(tl(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),fn>0&&!s&&Be&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Be.push(a),a}const se=Ha;function Ha(e,t=null,n=null,r=0,l=null,i=!1){if((!e||e===wa)&&(e=_t),el(e)){const o=Nt(e,t,!0);return n&&tl(o,n),fn>0&&!i&&Be&&(o.shapeFlag&6?Be[Be.indexOf(e)]=o:Be.push(o)),o.patchFlag|=-2,o}if(Ya(e)&&(e=e.__vccOpts),t){t=Na(t);let{class:o,style:a}=t;o&&!ke(o)&&(t.class=we(o)),he(a)&&(oi(a)&&!D(a)&&(a=Re({},a)),t.style=Qt(a))}const s=ke(e)?1:da(e)?128:Ua(e)?64:he(e)?4:le(e)?2:0;return H(e,t,n,r,l,s,i,!0)}function Na(e){return e?oi(e)||nr in e?Re({},e):e:null}function Nt(e,t,n=!1){const{props:r,ref:l,patchFlag:i,children:s}=e,o=t?Da(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Hi(o),ref:t&&t.ref?n&&l?D(l)?l.concat(rr(t)):[l,rr(t)]:rr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return se(tr,null,e,t)}function G(e="",t=!1){return t?(I(),et(_t,null,e)):se(_t,null,e)}function Je(e){return e==null||typeof e=="boolean"?se(_t):D(e)?se(ce,null,e.slice()):typeof e=="object"?ft(e):se(tr,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function tl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),tl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(nr in t)?t._ctx=ze:l===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Da(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const l in r)if(l==="class")t.class!==r.class&&(t.class=we([t.class,r.class]));else if(l==="style")t.style=Qt([t.style,r.style]);else if(In(l)){const i=t[l],s=r[l];s&&i!==s&&!(D(i)&&i.includes(s))&&(t[l]=i?[].concat(i,s):s)}else l!==""&&(t[l]=r[l])}return t}function Qe(e,t,n,r=null){qe(e,t,7,[n,r])}const Ba=Ti();let Wa=0;function Va(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Ba,i={uid:Wa++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ia(r,l),emitsOptions:sa(r,l),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ia.bind(null,i),e.ce&&e.ce(i),i}let Ae=null;const Ni=()=>Ae||ze;let nl,Dt,Di="__VUE_INSTANCE_SETTERS__";(Dt=Sr()[Di])||(Dt=Sr()[Di]=[]),Dt.push(e=>Ae=e),nl=e=>{Dt.length>1?Dt.forEach(t=>t(e)):Dt[0](e)};const rl=e=>{nl(e),e.scope.on()},hn=()=>{Ae&&Ae.scope.off(),nl(null)};function Bi(e){return e.vnode.shapeFlag&4}let pn=!1;function Ka(e,t=!1){pn=t;const{props:n,children:r}=e.vnode,l=Bi(e);Ta(e,n,l,t),La(e,r);const i=l?qa(e,t):void 0;return pn=!1,i}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ai(new Proxy(e.ctx,ba));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?Ja(e):null;rl(e),Xt();const i=ut(r,e,0,[e.props,l]);if(Gt(),hn(),Pl(i)){if(i.then(hn,hn),t)return i.then(s=>{Wi(e,s,t)}).catch(s=>{Wn(s,e,0)});e.asyncDep=i}else Wi(e,i,t)}else Ki(e,t)}function Wi(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=di(t)),Ki(e,n)}let Vi;function Ki(e,t,n){const r=e.type;if(!e.render){if(!t&&Vi&&!r.render){const l=r.template||ka(e).template;if(l){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Re(Re({isCustomElement:i,delimiters:o},s),a);r.render=Vi(l,c)}}e.render=r.render||gt}}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ie(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function lr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(di(ai(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Qa(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Ya(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>Go(e,t,pn);function te(e,t,n){const r=arguments.length;return r===2?he(t)&&!D(t)?el(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&el(n)&&(n=[n]),se(e,t,n))}const Xa=Symbol.for("v-scx"),Ga=()=>er(Xa),ec="3.3.7",tc="http://www.w3.org/2000/svg",$t=typeof document<"u"?document:null,qi=$t&&$t.createElement("template"),nc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?$t.createElementNS(tc,e):$t.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const s=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{qi.innerHTML=r?`<svg>${e}</svg>`:e;const o=qi.content;if(r){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rc=Symbol("_vtc");function lc(e,t,n){const r=e[rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ll=Symbol("_vod"),Zi={beforeMount(e,{value:t},{transition:n}){e[ll]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),gn(e,!0),r.enter(e)):r.leave(e,()=>{gn(e,!1)}):gn(e,t))},beforeUnmount(e,{value:t}){gn(e,t)}};function gn(e,t){e.style.display=t?e[ll]:"none"}function ic(e,t,n){const r=e.style,l=ke(n);if(n&&!l){if(t&&!ke(t))for(const i in t)n[i]==null&&il(r,i,"");for(const i in n)il(r,i,n[i])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),ll in e&&(r.display=i)}}const Ji=/\s*!important$/;function il(e,t,n){if(D(n))n.forEach(r=>il(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=sc(e,t);Ji.test(n)?e.setProperty(Pt(r),n.replace(Ji,""),"important"):e[r]=n}}const Qi=["Webkit","Moz","ms"],sl={};function sc(e,t){const n=sl[t];if(n)return n;let r=Ke(t);if(r!=="filter"&&r in e)return sl[t]=r;r=Mn(r);for(let l=0;l<Qi.length;l++){const i=Qi[l]+r;if(i in e)return sl[t]=i}return t}const Yi="http://www.w3.org/1999/xlink";function oc(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Yi,t.slice(6,t.length)):e.setAttributeNS(Yi,t,n);else{const i=_o(t);n==null||i&&!Nl(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function ac(e,t,n,r,l,i,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,l,i),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){e._value=n;const c=o==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Nl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nt(e,t,n,r){e.addEventListener(t,n,r)}function cc(e,t,n,r){e.removeEventListener(t,n,r)}const Xi=Symbol("_vei");function uc(e,t,n,r,l=null){const i=e[Xi]||(e[Xi]={}),s=i[t];if(r&&s)s.value=r;else{const[o,a]=fc(t);if(r){const c=i[t]=pc(r,l);nt(e,o,c,a)}else s&&(cc(e,o,s,a),i[t]=void 0)}}const Gi=/(?:Once|Passive|Capture)$/;function fc(e){let t;if(Gi.test(e)){t={};let r;for(;r=e.match(Gi);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ol=0;const dc=Promise.resolve(),hc=()=>ol||(dc.then(()=>ol=0),ol=Date.now());function pc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;qe(gc(r,n.value),t,5,[r])};return n.value=e,n.attached=hc(),n}function gc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const es=/^on[a-z]/,mc=(e,t,n,r,l=!1,i,s,o,a)=>{t==="class"?lc(e,r,l):t==="style"?ic(e,n,r):In(t)?Tr(t)||uc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vc(e,t,r,l))?ac(e,t,r,i,s,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),oc(e,t,r,l))};function vc(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&es.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||es.test(t)&&ke(n)?!1:t in e}const dt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>zn(t,n):t};function wc(e){e.target.composing=!0}function ts(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign"),al={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[Fe]=dt(l);const i=r||l.props&&l.props.type==="number";nt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=jn(o)),e[Fe](o)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",wc),nt(e,"compositionend",ts),nt(e,"change",ts))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){if(e[Fe]=dt(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(l||e.type==="number")&&jn(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},yc={deep:!0,created(e,t,n){e[Fe]=dt(n),nt(e,"change",()=>{const r=e._modelValue,l=Bt(e),i=e.checked,s=e[Fe];if(D(r)){const o=Lr(r,l),a=o!==-1;if(i&&!a)s(r.concat(l));else if(!i&&a){const c=[...r];c.splice(o,1),s(c)}}else if(Ot(r)){const o=new Set(r);i?o.add(l):o.delete(l),s(o)}else s(ls(e,i))})},mounted:ns,beforeUpdate(e,t,n){e[Fe]=dt(n),ns(e,t,n)}};function ns(e,{value:t,oldValue:n},r){e._modelValue=t,D(t)?e.checked=Lr(t,r.props.value)>-1:Ot(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=vt(t,ls(e,!0)))}const bc={created(e,{value:t},n){e.checked=vt(t,n.props.value),e[Fe]=dt(n),nt(e,"change",()=>{e[Fe](Bt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fe]=dt(r),t!==n&&(e.checked=vt(t,r.props.value))}},kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=Ot(t);nt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?jn(Bt(s)):Bt(s));e[Fe](e.multiple?l?new Set(i):i:i[0])}),e[Fe]=dt(r)},mounted(e,{value:t}){rs(e,t)},beforeUpdate(e,t,n){e[Fe]=dt(n)},updated(e,{value:t}){rs(e,t)}};function rs(e,t){const n=e.multiple;if(!(n&&!D(t)&&!Ot(t))){for(let r=0,l=e.options.length;r<l;r++){const i=e.options[r],s=Bt(i);if(n)D(t)?i.selected=Lr(t,s)>-1:i.selected=t.has(s);else if(vt(Bt(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bt(e){return"_value"in e?e._value:e.value}function ls(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xc={created(e,t,n){ir(e,t,n,null,"created")},mounted(e,t,n){ir(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ir(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ir(e,t,n,r,"updated")}};function _c(e,t){switch(e){case"SELECT":return kc;case"TEXTAREA":return al;default:switch(t){case"checkbox":return yc;case"radio":return bc;default:return al}}}function ir(e,t,n,r,l){const s=_c(e.tagName,n.props&&n.props.type)[l];s&&s(e,t,n,r)}const $c=Re({patchProp:mc},nc);let is;function Cc(){return is||(is=za($c))}const Ec=(...e)=>{const t=Cc().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=Rc(r);if(!l)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.innerHTML="";const s=n(l,!1,l instanceof SVGElement);return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),s},t};function Rc(e){return ke(e)?document.querySelector(e):e}function mn(e){return Bl()?(Ro(e),!0):!1}function rt(e){return typeof e=="function"?e():J(e)}const sr=typeof window<"u"&&typeof document<"u",Tc=Object.prototype.toString,Ac=e=>Tc.call(e)==="[object Object]",or=()=>{};function ss(e,t){function n(...r){return new Promise((l,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(i)})}return n}const os=e=>e();function Ic(e,t={}){let n,r,l=or;const i=o=>{clearTimeout(o),l(),l=or};return o=>{const a=rt(e),c=rt(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((f,p)=>{l=t.rejectOnCancel?p:f,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,f(o())},c)),n=setTimeout(()=>{r&&i(r),r=null,f(o())},a)})}}function Sc(e=os){const t=V(!0);function n(){t.value=!1}function r(){t.value=!0}const l=(...i)=>{t.value&&e(...i)};return{isActive:tn(t),pause:n,resume:r,eventFilter:l}}function Lc(e,t=200,n={}){return ss(Ic(t,n),e)}function Mc(e,t,n={}){const{eventFilter:r=os,...l}=n;return Pe(e,ss(r,t),l)}function zc(e,t,n={}){const{eventFilter:r,...l}=n,{eventFilter:i,pause:s,resume:o,isActive:a}=Sc(r);return{stop:Mc(e,t,{...l,eventFilter:i}),pause:s,resume:o,isActive:a}}function as(e,t=!0){Ni()?on(e):t?e():Vn(e)}function Oc(e){Ni()&&Yn(e)}function jc(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const s=V(!1);function o(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,o()}function c(){const f=rt(t);f<=0||(s.value=!0,l&&e(),o(),i=setInterval(e,f))}if(r&&sr&&c(),xe(t)||typeof t=="function"){const f=Pe(t,()=>{s.value&&sr&&c()});mn(f)}return mn(a),{isActive:s,pause:a,resume:c}}function Pc(e){var t;const n=rt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ar=sr?window:void 0,cs=sr?window.document:void 0;function us(...e){let t,n,r,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,l]=e,t=ar):[t,n,r,l]=e,!t)return or;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},o=(f,p,h,w)=>(f.addEventListener(p,h,w),()=>f.removeEventListener(p,h,w)),a=Pe(()=>[Pc(t),rt(l)],([f,p])=>{if(s(),!f)return;const h=Ac(p)?{...p}:p;i.push(...n.flatMap(w=>r.map(T=>o(f,w,T,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return mn(c),c}function Uc(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:l=ar}=t,i=V(!1),s=r?1e3/r:null;let o=0,a=null;function c(h){if(!i.value||!l)return;const w=h-(o||h);if(s&&w<s){a=l.requestAnimationFrame(c);return}e({delta:w,timestamp:h}),o=h,a=l.requestAnimationFrame(c)}function f(){!i.value&&l&&(i.value=!0,a=l.requestAnimationFrame(c))}function p(){i.value=!1,a!=null&&l&&(l.cancelAnimationFrame(a),a=null)}return n&&f(),mn(p),{isActive:tn(i),pause:p,resume:f}}const cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ur="__vueuse_ssr_handlers__",Fc=Hc();function Hc(){return ur in cr||(cr[ur]=cr[ur]||{}),cr[ur]}function Nc(e,t){return Fc[e]||t}function Dc(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Bc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},fs="vueuse-storage";function Wt(e,t,n,r={}){var l;const{flush:i="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:p=ar,eventFilter:h,onError:w=L=>{console.error(L)}}=r,T=(f?Jo:V)(t);if(!n)try{n=Nc("getDefaultStorage",()=>{var L;return(L=ar)==null?void 0:L.localStorage})()}catch(L){w(L)}if(!n)return T;const x=rt(t),E=Dc(x),y=(l=r.serializer)!=null?l:Bc[E],{pause:R,resume:B}=zc(T,()=>S(T.value),{flush:i,deep:s,eventFilter:h});return p&&o&&(us(p,"storage",Z),us(p,fs,X)),Z(),T;function S(L){try{if(L==null)n.removeItem(e);else{const fe=y.write(L),me=n.getItem(e);me!==fe&&(n.setItem(e,fe),p&&p.dispatchEvent(new CustomEvent(fs,{detail:{key:e,oldValue:me,newValue:fe,storageArea:n}})))}}catch(fe){w(fe)}}function N(L){const fe=L?L.newValue:n.getItem(e);if(fe==null)return a&&x!==null&&n.setItem(e,y.write(x)),x;if(!L&&c){const me=y.read(fe);return typeof c=="function"?c(me,x):E==="object"&&!Array.isArray(me)?{...x,...me}:me}else return typeof fe!="string"?fe:y.read(fe)}function X(L){Z(L.detail)}function Z(L){if(!(L&&L.storageArea!==n)){if(L&&L.key==null){T.value=x;return}if(!(L&&L.key!==e)){R();try{(L==null?void 0:L.newValue)!==y.write(T.value)&&(T.value=N(L))}catch(fe){w(fe)}finally{L?Vn(B):B()}}}}}function Wc(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=V(new Date),l=()=>r.value=new Date,i=n==="requestAnimationFrame"?Uc(l,{immediate:!0}):jc(l,n,{immediate:!0});return t?{now:r,...i}:r}function Vc(e,t=or,n={}){const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:p=cs,attrs:h={}}=n,w=V(null);let T=null;const x=R=>new Promise((B,S)=>{const N=L=>(w.value=L,B(L),L);if(!p){B(!1);return}let X=!1,Z=p.querySelector(`script[src="${rt(e)}"]`);Z?Z.hasAttribute("data-loaded")&&N(Z):(Z=p.createElement("script"),Z.type=i,Z.async=s,Z.src=rt(e),f&&(Z.defer=f),o&&(Z.crossOrigin=o),c&&(Z.noModule=c),a&&(Z.referrerPolicy=a),Object.entries(h).forEach(([L,fe])=>Z==null?void 0:Z.setAttribute(L,fe)),X=!0),Z.addEventListener("error",L=>S(L)),Z.addEventListener("abort",L=>S(L)),Z.addEventListener("load",()=>{Z.setAttribute("data-loaded","true"),t(Z),N(Z)}),X&&(Z=p.head.appendChild(Z)),R||N(Z)}),E=(R=!0)=>(T||(T=x(R)),T),y=()=>{if(!p)return;T=null,w.value&&(w.value=null);const R=p.querySelector(`script[src="${rt(e)}"]`);R&&p.head.removeChild(R)};return r&&!l&&as(E),l||Oc(y),{scriptTag:w,load:E,unload:y}}let Kc=0;function qc(e,t={}){const n=V(!1),{document:r=cs,immediate:l=!0,manual:i=!1,id:s=`vueuse_styletag_${++Kc}`}=t,o=V(e);let a=()=>{};const c=()=>{if(!r)return;const p=r.getElementById(s)||r.createElement("style");p.isConnected||(p.id=s,t.media&&(p.media=t.media),r.head.appendChild(p)),!n.value&&(a=Pe(o,h=>{p.textContent=h},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return l&&!i&&as(c),i||mn(f),{id:s,css:o,unload:f,load:c,isLoaded:tn(n)}}const Zc=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Jc=e=>{const t=Wt("WALINE_EMOJI",{}),n=Zc(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l})},ds=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Qc=e=>Promise.all(e.map(t=>typeof t=="string"?Jc(Ml(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:l,folder:i,icon:s,prefix:o,type:a,items:c}=r;n.tabs.push({name:l,icon:ds(s,i,o,a),items:c.map(f=>{const p=`${o||""}${f}`;return n.map[p]=ds(f,i,o,a),p})})}),n}),hs=e=>{e.name!=="AbortError"&&console.error(e.message)},cl=e=>e instanceof HTMLElement?e:typeof e=="string"?document.querySelector(e):null,Yc=e=>e.type.includes("image"),ps=e=>{const t=Array.from(e).find(Yc);return t?t.getAsFile():null};function ul(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ct=ul();function gs(e){Ct=e}const ms=/[&<>"']/,Xc=new RegExp(ms.source,"g"),vs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Gc=new RegExp(vs.source,"g"),eu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ws=e=>eu[e];function Oe(e,t){if(t){if(ms.test(e))return e.replace(Xc,ws)}else if(vs.test(e))return e.replace(Gc,ws);return e}const tu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function nu(e){return e.replace(tu,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const ru=/(^|[^\[])\^/g;function ne(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,l)=>(l=typeof l=="object"&&"source"in l?l.source:l,l=l.replace(ru,"$1"),e=e.replace(r,l),n),getRegex:()=>new RegExp(e,t)};return n}function ys(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const fr={exec:()=>null};function bs(e,t){const n=e.replace(/\|/g,(i,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let l=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;l<r.length;l++)r[l]=r[l].trim().replace(/\\\|/g,"|");return r}function dr(e,t,n){const r=e.length;if(r===0)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i===t&&!n)l++;else if(i!==t&&n)l++;else break}return e.slice(0,r-l)}function lu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function ks(e,t,n,r){const l=t.href,i=t.title?Oe(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:l,title:i,text:Oe(s)}}function iu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
6
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ll=St(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
7
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Lt={zh:_r,"zh-cn":_r,"zh-CN":_r,"zh-tw":Ll,"zh-TW":Ll,en:kr,"en-US":kr,"en-us":kr,jp:Tn,ja:Tn,"jp-jp":Tn,"jp-JP":Tn,"pt-br":Sl,"pt-BR":Sl,ru:xr,"ru-ru":xr,"ru-RU":xr},Ml=e=>{try{e=decodeURI(e)}catch{}return e},zl=(e="")=>e.replace(/\/$/u,""),Ol=e=>/^(https?:)?\/\//.test(e),An=e=>{const t=zl(e);return Ol(t)?t:`https://${t}`},io=e=>Array.isArray(e)?e:e?[0,e]:!1,$r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,so=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:l=Tl,meta:i=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:p,texRenderer:h,copyright:v=!0,login:S="enable",search:x,reaction:$,recaptchaV3Key:y="",turnstileKey:C="",commentSorting:B="latest",...A})=>({serverURL:An(e),path:Ml(t),locale:{...Lt[n]||Lt[Al],...typeof r=="object"?r:{}},wordLimit:io(c),meta:Rl(i),requiredMeta:Rl(s),imageUploader:$r(f,Js),highlighter:$r(p,ro),texRenderer:$r(h,Qs),lang:Object.keys(Lt).includes(n)?n:"en-US",dark:o,emoji:typeof l=="boolean"?l?Tl:[]:l,pageSize:a,login:S,copyright:v,search:x===!1?!1:typeof x=="object"?x:Ys(n),recaptchaV3Key:y,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?Zs:[],commentSorting:B,...A}),Cr="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",oo=e=>typeof e=="string"?e==="auto"?`@media(prefers-color-scheme:dark){body${Cr}}`:`${e}${Cr}`:e===!0?`:root${Cr}`:"",Er=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ao=e=>{const t=Er(e.getDate(),2),n=Er(e.getMonth()+1,2);return`${Er(e.getFullYear(),2)}-${n}-${t}`},co=(e,t,n)=>{if(!e)return"";const r=typeof e=="string"?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/(24*3600*1e3));if(i===0){const s=l%864e5,o=Math.floor(s/(3600*1e3));if(o===0){const a=s%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:ao(r)},uo=/^[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])?)*$/,fo=e=>uo.test(e);function Rr(e,t){const n=Object.create(null),r=e.split(",");for(let l=0;l<r.length;l++)n[r[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}const de={},Mt=[],mt=()=>{},ho=()=>!1,po=/^on[^a-z]/,In=e=>po.test(e),Tr=e=>e.startsWith("onUpdate:"),Re=Object.assign,jl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},go=Object.prototype.hasOwnProperty,X=(e,t)=>go.call(e,t),N=Array.isArray,zt=e=>Jt(e)==="[object Map]",Ot=e=>Jt(e)==="[object Set]",Pl=e=>Jt(e)==="[object Date]",ie=e=>typeof e=="function",ke=e=>typeof e=="string",jt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Ul=e=>(pe(e)||ie(e))&&ie(e.then)&&ie(e.catch),Fl=Object.prototype.toString,Jt=e=>Fl.call(e),mo=e=>Jt(e).slice(8,-1),Hl=e=>Jt(e)==="[object Object]",Ar=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vo=/-(\w)/g,qe=Ln(e=>e.replace(vo,(t,n)=>n?n.toUpperCase():"")),wo=/\B([A-Z])/g,Pt=Ln(e=>e.replace(wo,"-$1").toLowerCase()),Mn=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ir=Ln(e=>e?`on${Mn(e)}`:""),vt=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Nl;const Sr=()=>Nl||(Nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ke(r)?xo(r):Qt(r);if(l)for(const i in l)t[i]=l[i]}return t}else if(ke(e)||pe(e))return e}const yo=/;(?![^(]*\))/g,bo=/:([^]+)/,ko=/\/\*[^]*?\*\//g;function xo(e){const t={};return e.replace(ko,"").split(yo).forEach(n=>{if(n){const r=n.split(bo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function we(e){let t="";if(ke(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=we(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const _o=Rr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Dl(e){return!!e||e===""}function $o(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=wt(e[r],t[r]);return n}function wt(e,t){if(e===t)return!0;let n=Pl(e),r=Pl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=jt(e),r=jt(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return n&&r?$o(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!wt(e[s],t[s]))return!1}}return String(e)===String(t)}function Lr(e,t){return e.findIndex(n=>wt(n,t))}const se=e=>ke(e)?e:e==null?"":N(e)||pe(e)&&(e.toString===Fl||!ie(e.toString))?JSON.stringify(e,Bl,2):String(e),Bl=(e,t)=>t&&t.__v_isRef?Bl(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l])=>(n[`${r} =>`]=l,n),{})}:Ot(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!N(t)&&!Hl(t)?String(t):t;let Me;class Co{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Me;try{return Me=this,t()}finally{Me=n}}}on(){Me=this}off(){Me=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function Eo(e,t=Me){t&&t.active&&t.effects.push(e)}function Wl(){return Me}function Ro(e){Me&&Me.cleanups.push(e)}const Mr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Vl=e=>(e.w&at)>0,Kl=e=>(e.n&at)>0,To=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=at},Ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];Vl(l)&&!Kl(l)?l.delete(e):t[n++]=l,l.w&=~at,l.n&=~at}t.length=n}},zr=new WeakMap;let Yt=0,at=1;const Or=30;let Be;const yt=Symbol(""),jr=Symbol("");class Pr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Eo(this,r)}run(){if(!this.active)return this.fn();let t=Be,n=ct;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Be,Be=this,ct=!0,at=1<<++Yt,Yt<=Or?To(this):ql(this),this.fn()}finally{Yt<=Or&&Ao(this),at=1<<--Yt,Be=this.parent,ct=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Be===this?this.deferStop=!0:this.active&&(ql(this),this.onStop&&this.onStop(),this.active=!1)}}function ql(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ct=!0;const Zl=[];function Xt(){Zl.push(ct),ct=!1}function Gt(){const e=Zl.pop();ct=e===void 0?!0:e}function Se(e,t,n){if(ct&&Be){let r=zr.get(e);r||zr.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Mr()),Jl(l)}}function Jl(e,t){let n=!1;Yt<=Or?Kl(e)||(e.n|=at,n=!Vl(e)):n=!e.has(Be),n&&(e.add(Be),Be.deps.push(e))}function Ge(e,t,n,r,l,i){const s=zr.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&N(e)){const a=Number(r);s.forEach((c,f)=>{(f==="length"||!jt(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":N(e)?Ar(n)&&o.push(s.get("length")):(o.push(s.get(yt)),zt(e)&&o.push(s.get(jr)));break;case"delete":N(e)||(o.push(s.get(yt)),zt(e)&&o.push(s.get(jr)));break;case"set":zt(e)&&o.push(s.get(yt));break}if(o.length===1)o[0]&&Ur(o[0]);else{const a=[];for(const c of o)c&&a.push(...c);Ur(Mr(a))}}function Ur(e,t){const n=N(e)?e:[...e];for(const r of n)r.computed&&Ql(r);for(const r of n)r.computed||Ql(r)}function Ql(e,t){(e!==Be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Io=Rr("__proto__,__v_isRef,__isVue"),Yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),Xl=So();function So(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=te(this);for(let i=0,s=this.length;i<s;i++)Se(r,"get",i+"");const l=r[t](...n);return l===-1||l===!1?r[t](...n.map(te)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const r=te(this)[t].apply(this,n);return Gt(),r}}),e}function Lo(e){const t=te(this);return Se(t,"has",e),t.hasOwnProperty(e)}class Gl{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const l=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return i;if(n==="__v_raw"&&r===(l?i?Vo:oi:i?si:ii).get(t))return t;const s=N(t);if(!l){if(s&&X(Xl,n))return Reflect.get(Xl,n,r);if(n==="hasOwnProperty")return Lo}const o=Reflect.get(t,n,r);return(jt(n)?Yl.has(n):Io(n))||(l||Se(t,"get",n),i)?o:xe(o)?s&&Ar(n)?o:o.value:pe(o)?l?tn(o):en(o):o}}class ei extends Gl{constructor(t=!1){super(!1,t)}set(t,n,r,l){let i=t[n];if(Ft(i)&&xe(i)&&!xe(r))return!1;if(!this._shallow&&(!Bn(r)&&!Ft(r)&&(i=te(i),r=te(r)),!N(t)&&xe(i)&&!xe(r)))return i.value=r,!0;const s=N(t)&&Ar(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,l);return t===te(l)&&(s?vt(r,i)&&Ge(t,"set",n,r):Ge(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),l=Reflect.deleteProperty(t,n);return l&&r&&Ge(t,"delete",n,void 0),l}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!Yl.has(n))&&Se(t,"has",n),r}ownKeys(t){return Se(t,"iterate",N(t)?"length":yt),Reflect.ownKeys(t)}}class Mo extends Gl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zo=new ei,Oo=new Mo,jo=new ei(!0),Fr=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function Un(e,t,n=!1,r=!1){e=e.__v_raw;const l=te(e),i=te(t);n||(vt(t,i)&&Se(l,"get",t),Se(l,"get",i));const{has:s}=Pn(l),o=r?Fr:n?Dr:nn;if(s.call(l,t))return o(e.get(t));if(s.call(l,i))return o(e.get(i));e!==l&&e.get(t)}function Fn(e,t=!1){const n=this.__v_raw,r=te(n),l=te(e);return t||(vt(e,l)&&Se(r,"has",e),Se(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Hn(e,t=!1){return e=e.__v_raw,!t&&Se(te(e),"iterate",yt),Reflect.get(e,"size",e)}function ti(e){e=te(e);const t=te(this);return Pn(t).has.call(t,e)||(t.add(e),Ge(t,"add",e,e)),this}function ni(e,t){t=te(t);const n=te(this),{has:r,get:l}=Pn(n);let i=r.call(n,e);i||(e=te(e),i=r.call(n,e));const s=l.call(n,e);return n.set(e,t),i?vt(t,s)&&Ge(n,"set",e,t):Ge(n,"add",e,t),this}function ri(e){const t=te(this),{has:n,get:r}=Pn(t);let l=n.call(t,e);l||(e=te(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&Ge(t,"delete",e,void 0),i}function li(){const e=te(this),t=e.size!==0,n=e.clear();return t&&Ge(e,"clear",void 0,void 0),n}function Nn(e,t){return function(r,l){const i=this,s=i.__v_raw,o=te(s),a=t?Fr:e?Dr:nn;return!e&&Se(o,"iterate",yt),s.forEach((c,f)=>r.call(l,a(c),a(f),i))}}function Dn(e,t,n){return function(...r){const l=this.__v_raw,i=te(l),s=zt(i),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=l[e](...r),f=n?Fr:t?Dr:nn;return!t&&Se(i,"iterate",a?jr:yt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:o?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return e==="delete"?!1:this}}function Po(){const e={get(i){return Un(this,i)},get size(){return Hn(this)},has:Fn,add:ti,set:ni,delete:ri,clear:li,forEach:Nn(!1,!1)},t={get(i){return Un(this,i,!1,!0)},get size(){return Hn(this)},has:Fn,add:ti,set:ni,delete:ri,clear:li,forEach:Nn(!1,!0)},n={get(i){return Un(this,i,!0)},get size(){return Hn(this,!0)},has(i){return Fn.call(this,i,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Nn(!0,!1)},r={get(i){return Un(this,i,!0,!0)},get size(){return Hn(this,!0)},has(i){return Fn.call(this,i,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Dn(i,!1,!1),n[i]=Dn(i,!0,!1),t[i]=Dn(i,!1,!0),r[i]=Dn(i,!0,!0)}),[e,n,t,r]}const[Uo,Fo,Ho,No]=Po();function Hr(e,t){const n=t?e?No:Ho:e?Fo:Uo;return(r,l,i)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(X(n,l)&&l in r?n:r,l,i)}const Do={get:Hr(!1,!1)},Bo={get:Hr(!1,!0)},Wo={get:Hr(!0,!1)},ii=new WeakMap,si=new WeakMap,oi=new WeakMap,Vo=new WeakMap;function Ko(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Ko(mo(e))}function en(e){return Ft(e)?e:Nr(e,!1,zo,Do,ii)}function Zo(e){return Nr(e,!1,jo,Bo,si)}function tn(e){return Nr(e,!0,Oo,Wo,oi)}function Nr(e,t,n,r,l){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const s=qo(e);if(s===0)return e;const o=new Proxy(e,s===2?r:n);return l.set(e,o),o}function Ut(e){return Ft(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function ai(e){return Ut(e)||Ft(e)}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ci(e){return On(e,"__v_skip",!0),e}const nn=e=>pe(e)?en(e):e,Dr=e=>pe(e)?tn(e):e;function ui(e){ct&&Be&&(e=te(e),Jl(e.dep||(e.dep=Mr())))}function fi(e,t){e=te(e);const n=e.dep;n&&Ur(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function V(e){return di(e,!1)}function Jo(e){return di(e,!0)}function di(e,t){return xe(e)?e:new Qo(e,t)}class Qo{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:te(t),this._value=n?t:nn(t)}get value(){return ui(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Ft(t);t=n?t:te(t),vt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nn(t),fi(this))}}function Z(e){return xe(e)?e.value:e}const Yo={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return xe(l)&&!xe(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function hi(e){return Ut(e)?e:new Proxy(e,Yo)}class Xo{constructor(t,n,r,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Pr(t,()=>{this._dirty||(this._dirty=!0,fi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=te(this);return ui(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Go(e,t,n=!1){let r,l;const i=ie(e);return i?(r=e,l=mt):(r=e.get,l=e.set),new Xo(r,l,i||!l,n)}function ft(e,t,n,r){let l;try{l=r?e(...r):e()}catch(i){Wn(i,t,n)}return l}function Ze(e,t,n,r){if(ie(e)){const i=ft(e,t,n,r);return i&&Ul(i)&&i.catch(s=>{Wn(s,t,n)}),i}const l=[];for(let i=0;i<e.length;i++)l.push(Ze(e[i],t,n,r));return l}function Wn(e,t,n,r=!0){const l=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,o=n;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ft(a,null,10,[e,s,o]);return}}ea(e,n,l,r)}function ea(e,t,n,r=!0){console.error(e)}let rn=!1,Br=!1;const Ce=[];let Je=0;const Ht=[];let et=null,bt=0;const pi=Promise.resolve();let Wr=null;function Vn(e){const t=Wr||pi;return e?t.then(this?e.bind(this):e):t}function ta(e){let t=Je+1,n=Ce.length;for(;t<n;){const r=t+n>>>1,l=Ce[r],i=ln(l);i<e||i===e&&l.pre?t=r+1:n=r}return t}function Vr(e){(!Ce.length||!Ce.includes(e,rn&&e.allowRecurse?Je+1:Je))&&(e.id==null?Ce.push(e):Ce.splice(ta(e.id),0,e),gi())}function gi(){!rn&&!Br&&(Br=!0,Wr=pi.then(wi))}function na(e){const t=Ce.indexOf(e);t>Je&&Ce.splice(t,1)}function ra(e){N(e)?Ht.push(...e):(!et||!et.includes(e,e.allowRecurse?bt+1:bt))&&Ht.push(e),gi()}function mi(e,t=rn?Je+1:0){for(;t<Ce.length;t++){const n=Ce[t];n&&n.pre&&(Ce.splice(t,1),t--,n())}}function vi(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,et){et.push(...t);return}for(et=t,et.sort((n,r)=>ln(n)-ln(r)),bt=0;bt<et.length;bt++)et[bt]();et=null,bt=0}}const ln=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=ln(e)-ln(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wi(e){Br=!1,rn=!0,Ce.sort(la);try{for(Je=0;Je<Ce.length;Je++){const t=Ce[Je];t&&t.active!==!1&&ft(t,null,14)}}finally{Je=0,Ce.length=0,vi(),rn=!1,Wr=null,(Ce.length||Ht.length)&&wi()}}function ia(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||de;let l=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=r[f]||de;h&&(l=n.map(v=>ke(v)?v.trim():v)),p&&(l=n.map(jn))}let o,a=r[o=Ir(t)]||r[o=Ir(qe(t))];!a&&i&&(a=r[o=Ir(Pt(t))]),a&&Ze(a,e,6,l);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ze(c,e,6,l)}}function sa(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const i=e.emits;let s={};return!i&&!!1?(pe(e)&&r.set(e,null),null):(N(i)?i.forEach(a=>s[a]=null):Re(s,i),pe(e)&&r.set(e,s),s)}function Kn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Pt(t))||X(e,t))}let ze=null,yi=null;function qn(e){const t=ze;return ze=e,yi=e&&e.type.__scopeId||null,t}function oa(e,t=ze,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&Fi(-1);const i=qn(t);let s;try{s=e(...l)}finally{qn(i),r._d&&Fi(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Kr(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:f,renderCache:p,data:h,setupState:v,ctx:S,inheritAttrs:x}=e;let $,y;const C=qn(e);try{if(n.shapeFlag&4){const A=l||r;$=Qe(f.call(A,A,p,i,v,h,S)),y=a}else{const A=t;$=Qe(A.length>1?A(i,{attrs:a,slots:o,emit:c}):A(i,null)),y=t.props?a:aa(a)}}catch(A){un.length=0,Wn(A,e,1),$=oe($t)}let B=$;if(y&&x!==!1){const A=Object.keys(y),{shapeFlag:H}=B;A.length&&H&7&&(s&&A.some(Tr)&&(y=ca(y,s)),B=Nt(B,y))}return n.dirs&&(B=Nt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),$=B,qn(C),$}const aa=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},ca=(e,t)=>{const n={};for(const r in e)(!Tr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ua(e,t,n){const{props:r,children:l,component:i}=e,{props:s,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?bi(r,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(s[h]!==r[h]&&!Kn(c,h))return!0}}}else return(l||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?bi(r,s,c):!0:!!s;return!1}function bi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function fa({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ki="components";function da(e,t){return pa(ki,e,!0,t)||e}const ha=Symbol.for("v-ndc");function pa(e,t,n=!0,r=!1){const l=ze||Ae;if(l){const i=l.type;if(e===ki){const o=Qa(i,!1);if(o&&(o===t||o===qe(t)||o===Mn(qe(t))))return i}const s=xi(l[e]||i[e],t)||xi(l.appContext[e],t);return!s&&r?i:s}}function xi(e,t){return e&&(e[t]||e[qe(t)]||e[Mn(qe(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):ra(e)}function _i(e,t){return $i(e,null,t)}const Zn={};function Pe(e,t,n){return $i(e,t,n)}function $i(e,t,{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:s}=de){var o;const a=Wl()===((o=Ae)==null?void 0:o.scope)?Ae:null;let c,f=!1,p=!1;if(xe(e)?(c=()=>e.value,f=Bn(e)):Ut(e)?(c=()=>e,r=!0):N(e)?(p=!0,f=e.some(A=>Ut(A)||Bn(A)),c=()=>e.map(A=>{if(xe(A))return A.value;if(Ut(A))return kt(A);if(ie(A))return ft(A,a,2)})):ie(e)?t?c=()=>ft(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Ze(e,a,3,[v])}:c=mt,t&&r){const A=c;c=()=>kt(A())}let h,v=A=>{h=C.onStop=()=>{ft(A,a,4)}},S;if(pn)if(v=mt,t?n&&Ze(t,a,3,[c(),p?[]:void 0,v]):c(),l==="sync"){const A=Ga();S=A.__watcherHandles||(A.__watcherHandles=[])}else return mt;let x=p?new Array(e.length).fill(Zn):Zn;const $=()=>{if(C.active)if(t){const A=C.run();(r||f||(p?A.some((H,G)=>vt(H,x[G])):vt(A,x)))&&(h&&h(),Ze(t,a,3,[A,x===Zn?void 0:p&&x[0]===Zn?[]:x,v]),x=A)}else C.run()};$.allowRecurse=!!t;let y;l==="sync"?y=$:l==="post"?y=()=>Le($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),y=()=>Vr($));const C=new Pr(c,y);t?n?$():x=C.run():l==="post"?Le(C.run.bind(C),a&&a.suspense):C.run();const B=()=>{C.stop(),a&&a.scope&&jl(a.scope.effects,C)};return S&&S.push(B),B}function kt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))kt(e.value,t);else if(N(e))for(let n=0;n<e.length;n++)kt(e[n],t);else if(Ot(e)||zt(e))e.forEach(n=>{kt(n,t)});else if(Hl(e))for(const n in e)kt(e[n],t);return e}function Jn(e,t){const n=ze;if(n===null)return e;const r=lr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,c=de]=t[i];s&&(ie(s)&&(s={mounted:s,updated:s}),s.deep&&kt(o),l.push({dir:s,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function xt(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let s=0;s<l.length;s++){const o=l[s];i&&(o.oldValue=i[s].value);let a=o.dir[r];a&&(Xt(),Ze(a,n,8,[e.el,o,e,t]),Gt())}}/*! #__NO_SIDE_EFFECTS__ */function sn(e,t){return ie(e)?Re({name:e.name},t,{setup:e}):e}const Qn=e=>!!e.type.__asyncLoader,va=e=>e.type.__isKeepAlive;function wa(e,t,n=Ae,r=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Xt(),rl(n);const o=Ze(t,n,e,s);return hn(),Gt(),o});return r?l.unshift(i):l.push(i),i}}const qr=e=>(t,n=Ae)=>(!pn||e==="sp")&&wa(e,(...r)=>t(...r),n),on=qr("m"),ya=qr("bum"),Yn=qr("um");function Ue(e,t,n,r){let l;const i=n&&n[r];if(N(e)||ke(e)){l=new Array(e.length);for(let s=0,o=e.length;s<o;s++)l[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){l=new Array(e);for(let s=0;s<e;s++)l[s]=t(s+1,s,void 0,i&&i[s])}else if(pe(e))if(e[Symbol.iterator])l=Array.from(e,(s,o)=>t(s,o,void 0,i&&i[o]));else{const s=Object.keys(e);l=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];l[o]=t(e[c],c,o,i&&i[o])}}else l=[];return n&&(n[r]=l),l}const Zr=e=>e?Wi(e)?lr(e)||e.proxy:Zr(e.parent):null,an=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zr(e.parent),$root:e=>Zr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Vr(e.update)),$nextTick:e=>e.n||(e.n=Vn.bind(e.proxy)),$watch:e=>mt}),Jr=(e,t)=>e!==de&&!e.__isScriptSetup&&X(e,t),ba={get({_:e},t){const{ctx:n,setupState:r,data:l,props:i,accessCache:s,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(Jr(r,t))return s[t]=1,r[t];if(l!==de&&X(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&X(c,t))return s[t]=3,i[t];if(n!==de&&X(n,t))return s[t]=4,n[t];s[t]=0}}const f=an[t];let p,h;if(f)return t==="$attrs"&&Se(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==de&&X(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,X(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return Jr(l,t)?(l[t]=n,!0):r!==de&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},s){let o;return!!n[s]||e!==de&&X(e,s)||Jr(t,s)||(o=i[0])&&X(o,s)||X(r,s)||X(an,s)||X(l.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ci(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ka(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:!l.length&&!n&&!r?a=t:(a={},l.length&&l.forEach(c=>Xn(a,c,s,!0)),Xn(a,t,s)),pe(t)&&i.set(t,a),a}function Xn(e,t,n,r=!1){const{mixins:l,extends:i}=t;i&&Xn(e,i,n,!0),l&&l.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=xa[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const xa={data:Ei,props:Ti,emits:Ti,methods:cn,computed:cn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:cn,directives:cn,watch:$a,provide:Ei,inject:_a};function Ei(e,t){return t?e?function(){return Re(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function _a(e,t){return cn(Ri(e),Ri(t))}function Ri(e){if(N(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?Re(Object.create(null),e,t):t}function Ti(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:Re(Object.create(null),Ci(e),Ci(t??{})):t}function $a(e,t){if(!e)return t;if(!t)return e;const n=Re(Object.create(null),e);for(const r in t)n[r]=Te(e[r],t[r]);return n}function Ai(){return{app:null,config:{isNativeTag:ho,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ca=0;function Ea(e,t){return function(r,l=null){ie(r)||(r=Re({},r)),l!=null&&!pe(l)&&(l=null);const i=Ai(),s=new WeakSet;let o=!1;const a=i.app={_uid:Ca++,_component:r,_props:l,_container:null,_context:i,_instance:null,version:ec,get config(){return i.config},set config(c){},use(c,...f){return s.has(c)||(c&&ie(c.install)?(s.add(c),c.install(a,...f)):ie(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(i.components[c]=f,a):i.components[c]},directive(c,f){return f?(i.directives[c]=f,a):i.directives[c]},mount(c,f,p){if(!o){const h=oe(r,l);return h.appContext=i,f&&t?t(h,c):e(h,c,p),o=!0,a._container=c,c.__vue_app__=a,lr(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return i.provides[c]=f,a},runWithContext(c){Gn=a;try{return c()}finally{Gn=null}}};return a}}let Gn=null;function Ra(e,t){if(Ae){let n=Ae.provides;const r=Ae.parent&&Ae.parent.provides;r===n&&(n=Ae.provides=Object.create(r)),n[e]=t}}function er(e,t,n=!1){const r=Ae||ze;if(r||Gn){const l=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Gn._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ie(t)?t.call(r&&r.proxy):t}}function Ta(e,t,n,r=!1){const l={},i={};On(i,nr,1),e.propsDefaults=Object.create(null),Ii(e,t,l,i);for(const s in e.propsOptions[0])s in l||(l[s]=void 0);n?e.props=r?l:Zo(l):e.type.props?e.props=l:e.props=i,e.attrs=i}function Aa(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:s}}=e,o=te(l),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Kn(e.emitsOptions,h))continue;const v=t[h];if(a)if(X(i,h))v!==i[h]&&(i[h]=v,c=!0);else{const S=qe(h);l[S]=Qr(a,o,S,v,e,!1)}else v!==i[h]&&(i[h]=v,c=!0)}}}else{Ii(e,t,l,i)&&(c=!0);let f;for(const p in o)(!t||!X(t,p)&&((f=Pt(p))===p||!X(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(l[p]=Qr(a,o,p,void 0,e,!0)):delete l[p]);if(i!==o)for(const p in i)(!t||!X(t,p))&&(delete i[p],c=!0)}c&&Ge(e,"set","$attrs")}function Ii(e,t,n,r){const[l,i]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(Sn(a))continue;const c=t[a];let f;l&&X(l,f=qe(a))?!i||!i.includes(f)?n[f]=c:(o||(o={}))[f]=c:Kn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,s=!0)}if(i){const a=te(n),c=o||de;for(let f=0;f<i.length;f++){const p=i[f];n[p]=Qr(l,a,p,c[p],e,!X(c,p))}}return s}function Qr(e,t,n,r,l,i){const s=e[n];if(s!=null){const o=X(s,"default");if(o&&r===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ie(a)){const{propsDefaults:c}=l;n in c?r=c[n]:(rl(l),r=c[n]=a.call(null,t),hn())}else r=a}s[0]&&(i&&!o?r=!1:s[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function Ia(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const i=e.props,s={},o=[];if(!i&&!!1)return pe(e)&&r.set(e,Mt),Mt;if(N(i))for(let f=0;f<i.length;f++){const p=qe(i[f]);Si(p)&&(s[p]=de)}else if(i)for(const f in i){const p=qe(f);if(Si(p)){const h=i[f],v=s[p]=N(h)||ie(h)?{type:h}:Re({},h);if(v){const S=zi(Boolean,v.type),x=zi(String,v.type);v[0]=S>-1,v[1]=x<0||S<x,(S>-1||X(v,"default"))&&o.push(p)}}}const c=[s,o];return pe(e)&&r.set(e,c),c}function Si(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return Li(e)===Li(t)}function zi(e,t){return N(t)?t.findIndex(n=>Mi(n,e)):ie(t)&&Mi(t,e)?0:-1}const Oi=e=>e[0]==="_"||e==="$stable",Yr=e=>N(e)?e.map(Qe):[Qe(e)],Sa=(e,t,n)=>{if(t._n)return t;const r=oa((...l)=>Yr(t(...l)),n);return r._c=!1,r},ji=(e,t,n)=>{const r=e._ctx;for(const l in e){if(Oi(l))continue;const i=e[l];if(ie(i))t[l]=Sa(l,i,r);else if(i!=null){const s=Yr(i);t[l]=()=>s}}},Pi=(e,t)=>{const n=Yr(t);e.slots.default=()=>n},La=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=te(t),On(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Pi(e,t);On(e.slots,nr,1)},Ma=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,s=de;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(Re(l,t),!n&&o===1&&delete l._):(i=!t.$stable,ji(t,l)),s=t}else t&&(Pi(e,t),s={default:1});if(i)for(const o in l)!Oi(o)&&s[o]==null&&delete l[o]};function Xr(e,t,n,r,l=!1){if(N(e)){e.forEach((h,v)=>Xr(h,t&&(N(t)?t[v]:t),n,r,l));return}if(Qn(r)&&!l)return;const i=r.shapeFlag&4?lr(r.component)||r.component.proxy:r.el,s=l?null:i,{i:o,r:a}=e,c=t&&t.r,f=o.refs===de?o.refs={}:o.refs,p=o.setupState;if(c!=null&&c!==a&&(ke(c)?(f[c]=null,X(p,c)&&(p[c]=null)):xe(c)&&(c.value=null)),ie(a))ft(a,o,12,[s,f]);else{const h=ke(a),v=xe(a);if(h||v){const S=()=>{if(e.f){const x=h?X(p,a)?p[a]:f[a]:a.value;l?N(x)&&jl(x,i):N(x)?x.includes(i)||x.push(i):h?(f[a]=[i],X(p,a)&&(p[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else h?(f[a]=s,X(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(f[e.k]=s))};s?(S.id=-1,Le(S,n)):S()}}}const Le=ma;function za(e){return Oa(e)}function Oa(e,t){const n=Sr();n.__VUE__=!0;const{insert:r,remove:l,patchProp:i,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=mt,insertStaticContent:S}=e,x=(u,d,g,m=null,w=null,b=null,E=!1,_=null,R=!!d.dynamicChildren)=>{if(u===d)return;u&&!dn(u,d)&&(m=At(u),He(u,w,b,!0),u=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:k,ref:j,shapeFlag:M}=d;switch(k){case tr:$(u,d,g,m);break;case $t:y(u,d,g,m);break;case Gr:u==null&&C(d,g,m,E);break;case ue:Ve(u,d,g,m,w,b,E,_,R);break;default:M&1?H(u,d,g,m,w,b,E,_,R):M&6?K(u,d,g,m,w,b,E,_,R):(M&64||M&128)&&k.process(u,d,g,m,w,b,E,_,R,ot)}j!=null&&w&&Xr(j,u&&u.ref,b,d||u,!d)},$=(u,d,g,m)=>{if(u==null)r(d.el=o(d.children),g,m);else{const w=d.el=u.el;d.children!==u.children&&c(w,d.children)}},y=(u,d,g,m)=>{u==null?r(d.el=a(d.children||""),g,m):d.el=u.el},C=(u,d,g,m)=>{[u.el,u.anchor]=S(u.children,d,g,m,u.el,u.anchor)},B=({el:u,anchor:d},g,m)=>{let w;for(;u&&u!==d;)w=h(u),r(u,g,m),u=w;r(d,g,m)},A=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=h(u),l(u),u=g;l(d)},H=(u,d,g,m,w,b,E,_,R)=>{E=E||d.type==="svg",u==null?G(d,g,m,w,b,E,_,R):Q(u,d,w,b,E,_,R)},G=(u,d,g,m,w,b,E,_)=>{let R,k;const{type:j,props:M,shapeFlag:U,transition:z,dirs:q}=u;if(R=u.el=s(u.type,b,M&&M.is,M),U&8?f(R,u.children):U&16&&W(u.children,R,null,m,w,b&&j!=="foreignObject",E,_),q&&xt(u,null,m,"created"),J(R,u,u.scopeId,E,m),M){for(const ce in M)ce!=="value"&&!Sn(ce)&&i(R,ce,null,M[ce],b,u.children,m,w,Ne);"value"in M&&i(R,"value",null,M.value),(k=M.onVnodeBeforeMount)&&Ye(k,m,u)}q&&xt(u,null,m,"beforeMount");const le=ja(w,z);le&&z.beforeEnter(R),r(R,d,g),((k=M&&M.onVnodeMounted)||le||q)&&Le(()=>{k&&Ye(k,m,u),le&&z.enter(R),q&&xt(u,null,m,"mounted")},w)},J=(u,d,g,m,w)=>{if(g&&v(u,g),m)for(let b=0;b<m.length;b++)v(u,m[b]);if(w){let b=w.subTree;if(d===b){const E=w.vnode;J(u,E,E.scopeId,E.slotScopeIds,w.parent)}}},W=(u,d,g,m,w,b,E,_,R=0)=>{for(let k=R;k<u.length;k++){const j=u[k]=_?dt(u[k]):Qe(u[k]);x(null,j,d,g,m,w,b,E,_)}},Q=(u,d,g,m,w,b,E)=>{const _=d.el=u.el;let{patchFlag:R,dynamicChildren:k,dirs:j}=d;R|=u.patchFlag&16;const M=u.props||de,U=d.props||de;let z;g&&_t(g,!1),(z=U.onVnodeBeforeUpdate)&&Ye(z,g,d,u),j&&xt(d,u,g,"beforeUpdate"),g&&_t(g,!0);const q=w&&d.type!=="foreignObject";if(k?fe(u.dynamicChildren,k,_,g,m,q,b):E||Ee(u,d,_,null,g,m,q,b,!1),R>0){if(R&16)Ie(_,d,M,U,g,m,w);else if(R&2&&M.class!==U.class&&i(_,"class",null,U.class,w),R&4&&i(_,"style",M.style,U.style,w),R&8){const le=d.dynamicProps;for(let ce=0;ce<le.length;ce++){const ve=le[ce],Ke=M[ve],qt=U[ve];(qt!==Ke||ve==="value")&&i(_,ve,Ke,qt,w,u.children,g,m,Ne)}}R&1&&u.children!==d.children&&f(_,d.children)}else!E&&k==null&&Ie(_,d,M,U,g,m,w);((z=U.onVnodeUpdated)||j)&&Le(()=>{z&&Ye(z,g,d,u),j&&xt(d,u,g,"updated")},m)},fe=(u,d,g,m,w,b,E)=>{for(let _=0;_<d.length;_++){const R=u[_],k=d[_],j=R.el&&(R.type===ue||!dn(R,k)||R.shapeFlag&70)?p(R.el):g;x(R,k,j,null,m,w,b,E,!0)}},Ie=(u,d,g,m,w,b,E)=>{if(g!==m){if(g!==de)for(const _ in g)!Sn(_)&&!(_ in m)&&i(u,_,g[_],null,E,d.children,w,b,Ne);for(const _ in m){if(Sn(_))continue;const R=m[_],k=g[_];R!==k&&_!=="value"&&i(u,_,k,R,E,d.children,w,b,Ne)}"value"in m&&i(u,"value",g.value,m.value)}},Ve=(u,d,g,m,w,b,E,_,R)=>{const k=d.el=u?u.el:o(""),j=d.anchor=u?u.anchor:o("");let{patchFlag:M,dynamicChildren:U,slotScopeIds:z}=d;z&&(_=_?_.concat(z):z),u==null?(r(k,g,m),r(j,g,m),W(d.children,g,j,w,b,E,_,R)):M>0&&M&64&&U&&u.dynamicChildren?(fe(u.dynamicChildren,U,g,w,b,E,_),(d.key!=null||w&&d===w.subTree)&&Ui(u,d,!0)):Ee(u,d,g,j,w,b,E,_,R)},K=(u,d,g,m,w,b,E,_,R)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?w.ctx.activate(d,g,m,E,R):D(d,g,m,w,b,E,R):ae(u,d,R)},D=(u,d,g,m,w,b,E)=>{const _=u.component=Va(u,m,w);if(va(u)&&(_.ctx.renderer=ot),Ka(_),_.asyncDep){if(w&&w.registerDep(_,be),!u.el){const R=_.subTree=oe($t);y(null,R,d,g)}return}be(_,u,d,g,w,b,E)},ae=(u,d,g)=>{const m=d.component=u.component;if(ua(u,d,g))if(m.asyncDep&&!m.asyncResolved){ye(m,d,g);return}else m.next=d,na(m.update),m.update();else d.el=u.el,m.vnode=d},be=(u,d,g,m,w,b,E)=>{const _=()=>{if(u.isMounted){let{next:j,bu:M,u:U,parent:z,vnode:q}=u,le=j,ce;_t(u,!1),j?(j.el=q.el,ye(u,j,E)):j=q,M&&zn(M),(ce=j.props&&j.props.onVnodeBeforeUpdate)&&Ye(ce,z,j,q),_t(u,!0);const ve=Kr(u),Ke=u.subTree;u.subTree=ve,x(Ke,ve,p(Ke.el),At(Ke),u,w,b),j.el=ve.el,le===null&&fa(u,ve.el),U&&Le(U,w),(ce=j.props&&j.props.onVnodeUpdated)&&Le(()=>Ye(ce,z,j,q),w)}else{let j;const{el:M,props:U}=d,{bm:z,m:q,parent:le}=u,ce=Qn(d);if(_t(u,!1),z&&zn(z),!ce&&(j=U&&U.onVnodeBeforeMount)&&Ye(j,le,d),_t(u,!0),M&&L){const ve=()=>{u.subTree=Kr(u),L(M,u.subTree,u,w,null)};ce?d.type.__asyncLoader().then(()=>!u.isUnmounted&&ve()):ve()}else{const ve=u.subTree=Kr(u);x(null,ve,g,m,u,w,b),d.el=ve.el}if(q&&Le(q,w),!ce&&(j=U&&U.onVnodeMounted)){const ve=d;Le(()=>Ye(j,le,ve),w)}(d.shapeFlag&256||le&&Qn(le.vnode)&&le.vnode.shapeFlag&256)&&u.a&&Le(u.a,w),u.isMounted=!0,d=g=m=null}},R=u.effect=new Pr(_,()=>Vr(k),u.scope),k=u.update=()=>R.run();k.id=u.uid,_t(u,!0),k()},ye=(u,d,g)=>{d.component=u;const m=u.vnode.props;u.vnode=d,u.next=null,Aa(u,d.props,m,g),Ma(u,d.children,g),Xt(),mi(),Gt()},Ee=(u,d,g,m,w,b,E,_,R=!1)=>{const k=u&&u.children,j=u?u.shapeFlag:0,M=d.children,{patchFlag:U,shapeFlag:z}=d;if(U>0){if(U&128){gt(k,M,g,m,w,b,E,_,R);return}else if(U&256){$e(k,M,g,m,w,b,E,_,R);return}}z&8?(j&16&&Ne(k,w,b),M!==k&&f(g,M)):j&16?z&16?gt(k,M,g,m,w,b,E,_,R):Ne(k,w,b,!0):(j&8&&f(g,""),z&16&&W(M,g,m,w,b,E,_,R))},$e=(u,d,g,m,w,b,E,_,R)=>{u=u||Mt,d=d||Mt;const k=u.length,j=d.length,M=Math.min(k,j);let U;for(U=0;U<M;U++){const z=d[U]=R?dt(d[U]):Qe(d[U]);x(u[U],z,g,null,w,b,E,_,R)}k>j?Ne(u,w,b,!0,!1,M):W(d,g,m,w,b,E,_,R,M)},gt=(u,d,g,m,w,b,E,_,R)=>{let k=0;const j=d.length;let M=u.length-1,U=j-1;for(;k<=M&&k<=U;){const z=u[k],q=d[k]=R?dt(d[k]):Qe(d[k]);if(dn(z,q))x(z,q,g,null,w,b,E,_,R);else break;k++}for(;k<=M&&k<=U;){const z=u[M],q=d[U]=R?dt(d[U]):Qe(d[U]);if(dn(z,q))x(z,q,g,null,w,b,E,_,R);else break;M--,U--}if(k>M){if(k<=U){const z=U+1,q=z<j?d[z].el:m;for(;k<=U;)x(null,d[k]=R?dt(d[k]):Qe(d[k]),g,q,w,b,E,_,R),k++}}else if(k>U)for(;k<=M;)He(u[k],w,b,!0),k++;else{const z=k,q=k,le=new Map;for(k=q;k<=U;k++){const je=d[k]=R?dt(d[k]):Qe(d[k]);je.key!=null&&le.set(je.key,k)}let ce,ve=0;const Ke=U-q+1;let qt=!1,Bs=0;const En=new Array(Ke);for(k=0;k<Ke;k++)En[k]=0;for(k=z;k<=M;k++){const je=u[k];if(ve>=Ke){He(je,w,b,!0);continue}let Xe;if(je.key!=null)Xe=le.get(je.key);else for(ce=q;ce<=U;ce++)if(En[ce-q]===0&&dn(je,d[ce])){Xe=ce;break}Xe===void 0?He(je,w,b,!0):(En[Xe-q]=k+1,Xe>=Bs?Bs=Xe:qt=!0,x(je,d[Xe],g,null,w,b,E,_,R),ve++)}const Ws=qt?Pa(En):Mt;for(ce=Ws.length-1,k=Ke-1;k>=0;k--){const je=q+k,Xe=d[je],Vs=je+1<j?d[je+1].el:m;En[k]===0?x(null,Xe,g,Vs,w,b,E,_,R):qt&&(ce<0||k!==Ws[ce]?Tt(Xe,g,Vs,2):ce--)}}},Tt=(u,d,g,m,w=null)=>{const{el:b,type:E,transition:_,children:R,shapeFlag:k}=u;if(k&6){Tt(u.component.subTree,d,g,m);return}if(k&128){u.suspense.move(d,g,m);return}if(k&64){E.move(u,d,g,ot);return}if(E===ue){r(b,d,g);for(let M=0;M<R.length;M++)Tt(R[M],d,g,m);r(u.anchor,d,g);return}if(E===Gr){B(u,d,g);return}if(m!==2&&k&1&&_)if(m===0)_.beforeEnter(b),r(b,d,g),Le(()=>_.enter(b),w);else{const{leave:M,delayLeave:U,afterLeave:z}=_,q=()=>r(b,d,g),le=()=>{M(b,()=>{q(),z&&z()})};U?U(b,q,le):le()}else r(b,d,g)},He=(u,d,g,m=!1,w=!1)=>{const{type:b,props:E,ref:_,children:R,dynamicChildren:k,shapeFlag:j,patchFlag:M,dirs:U}=u;if(_!=null&&Xr(_,null,g,u,!0),j&256){d.ctx.deactivate(u);return}const z=j&1&&U,q=!Qn(u);let le;if(q&&(le=E&&E.onVnodeBeforeUnmount)&&Ye(le,d,u),j&6)gl(u.component,g,m);else{if(j&128){u.suspense.unmount(g,m);return}z&&xt(u,null,d,"beforeUnmount"),j&64?u.type.remove(u,d,g,w,ot,m):k&&(b!==ue||M>0&&M&64)?Ne(k,d,g,!1,!0):(b===ue&&M&384||!w&&j&16)&&Ne(R,d,g),m&&$n(u)}(q&&(le=E&&E.onVnodeUnmounted)||z)&&Le(()=>{le&&Ye(le,d,u),z&&xt(u,null,d,"unmounted")},g)},$n=u=>{const{type:d,el:g,anchor:m,transition:w}=u;if(d===ue){pl(g,m);return}if(d===Gr){A(u);return}const b=()=>{l(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:E,delayLeave:_}=w,R=()=>E(g,b);_?_(u.el,b,R):R()}else b()},pl=(u,d)=>{let g;for(;u!==d;)g=h(u),l(u),u=g;l(d)},gl=(u,d,g)=>{const{bum:m,scope:w,update:b,subTree:E,um:_}=u;m&&zn(m),w.stop(),b&&(b.active=!1,He(E,u,d,g)),_&&Le(_,d),Le(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ne=(u,d,g,m=!1,w=!1,b=0)=>{for(let E=b;E<u.length;E++)He(u[E],d,g,m,w)},At=u=>u.shapeFlag&6?At(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el),Cn=(u,d,g)=>{u==null?d._vnode&&He(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,g),mi(),vi(),d._vnode=u},ot={p:x,um:He,m:Tt,r:$n,mt:D,mc:W,pc:Ee,pbc:fe,n:At,o:e};let Kt,L;return t&&([Kt,L]=t(ot)),{render:Cn,hydrate:Kt,createApp:Ea(Cn,Kt)}}function _t({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ui(e,t,n=!1){const r=e.children,l=t.children;if(N(r)&&N(l))for(let i=0;i<r.length;i++){const s=r[i];let o=l[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=l[i]=dt(l[i]),o.el=s.el),n||Ui(s,o)),o.type===tr&&(o.el=s.el)}}function Pa(e){const t=e.slice(),n=[0];let r,l,i,s,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(l=n[n.length-1],e[l]<c){t[r]=l,n.push(r);continue}for(i=0,s=n.length-1;i<s;)o=i+s>>1,e[n[o]]<c?i=o+1:s=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Ua=e=>e.__isTeleport,ue=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),Gr=Symbol.for("v-stc"),un=[];let We=null;function I(e=!1){un.push(We=e?null:[])}function Fa(){un.pop(),We=un[un.length-1]||null}let fn=1;function Fi(e){fn+=e}function Hi(e){return e.dynamicChildren=fn>0?We||Mt:null,Fa(),fn>0&&We&&We.push(e),e}function O(e,t,n,r,l,i){return Hi(F(e,t,n,r,l,i,!0))}function tt(e,t,n,r,l){return Hi(oe(e,t,n,r,l,!0))}function el(e){return e?e.__v_isVNode===!0:!1}function dn(e,t){return e.type===t.type&&e.key===t.key}const nr="__vInternal",Ni=({key:e})=>e??null,rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||xe(e)||ie(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,l=null,i=e===ue?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ni(t),ref:t&&rr(t),scopeId:yi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ze};return o?(tl(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),fn>0&&!s&&We&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&We.push(a),a}const oe=Ha;function Ha(e,t=null,n=null,r=0,l=null,i=!1){if((!e||e===ha)&&(e=$t),el(e)){const o=Nt(e,t,!0);return n&&tl(o,n),fn>0&&!i&&We&&(o.shapeFlag&6?We[We.indexOf(e)]=o:We.push(o)),o.patchFlag|=-2,o}if(Ya(e)&&(e=e.__vccOpts),t){t=Na(t);let{class:o,style:a}=t;o&&!ke(o)&&(t.class=we(o)),pe(a)&&(ai(a)&&!N(a)&&(a=Re({},a)),t.style=Qt(a))}const s=ke(e)?1:ga(e)?128:Ua(e)?64:pe(e)?4:ie(e)?2:0;return F(e,t,n,r,l,s,i,!0)}function Na(e){return e?ai(e)||nr in e?Re({},e):e:null}function Nt(e,t,n=!1){const{props:r,ref:l,patchFlag:i,children:s}=e,o=t?Da(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Ni(o),ref:t&&t.ref?n&&l?N(l)?l.concat(rr(t)):[l,rr(t)]:rr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function nt(e=" ",t=0){return oe(tr,null,e,t)}function ee(e="",t=!1){return t?(I(),tt($t,null,e)):oe($t,null,e)}function Qe(e){return e==null||typeof e=="boolean"?oe($t):N(e)?oe(ue,null,e.slice()):typeof e=="object"?dt(e):oe(tr,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function tl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),tl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(nr in t)?t._ctx=ze:l===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Da(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const l in r)if(l==="class")t.class!==r.class&&(t.class=we([t.class,r.class]));else if(l==="style")t.style=Qt([t.style,r.style]);else if(In(l)){const i=t[l],s=r[l];s&&i!==s&&!(N(i)&&i.includes(s))&&(t[l]=i?[].concat(i,s):s)}else l!==""&&(t[l]=r[l])}return t}function Ye(e,t,n,r=null){Ze(e,t,7,[n,r])}const Ba=Ai();let Wa=0;function Va(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Ba,i={uid:Wa++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ia(r,l),emitsOptions:sa(r,l),emit:null,emitted:null,propsDefaults:de,inheritAttrs:r.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ia.bind(null,i),e.ce&&e.ce(i),i}let Ae=null;const Di=()=>Ae||ze;let nl,Dt,Bi="__VUE_INSTANCE_SETTERS__";(Dt=Sr()[Bi])||(Dt=Sr()[Bi]=[]),Dt.push(e=>Ae=e),nl=e=>{Dt.length>1?Dt.forEach(t=>t(e)):Dt[0](e)};const rl=e=>{nl(e),e.scope.on()},hn=()=>{Ae&&Ae.scope.off(),nl(null)};function Wi(e){return e.vnode.shapeFlag&4}let pn=!1;function Ka(e,t=!1){pn=t;const{props:n,children:r}=e.vnode,l=Wi(e);Ta(e,n,l,t),La(e,r);const i=l?qa(e,t):void 0;return pn=!1,i}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ci(new Proxy(e.ctx,ba));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?Ja(e):null;rl(e),Xt();const i=ft(r,e,0,[e.props,l]);if(Gt(),hn(),Ul(i)){if(i.then(hn,hn),t)return i.then(s=>{Vi(e,s,t)}).catch(s=>{Wn(s,e,0)});e.asyncDep=i}else Vi(e,i,t)}else qi(e,t)}function Vi(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=hi(t)),qi(e,n)}let Ki;function qi(e,t,n){const r=e.type;if(!e.render){if(!t&&Ki&&!r.render){const l=r.template||ka(e).template;if(l){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Re(Re({isCustomElement:i,delimiters:o},s),a);r.render=Ki(l,c)}}e.render=r.render||mt}}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function lr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hi(ci(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Qa(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Ya(e){return ie(e)&&"__vccOpts"in e}const _e=(e,t)=>Go(e,t,pn);function ne(e,t,n){const r=arguments.length;return r===2?pe(t)&&!N(t)?el(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&el(n)&&(n=[n]),oe(e,t,n))}const Xa=Symbol.for("v-scx"),Ga=()=>er(Xa),ec="3.3.8",tc="http://www.w3.org/2000/svg",Ct=typeof document<"u"?document:null,Zi=Ct&&Ct.createElement("template"),nc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?Ct.createElementNS(tc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const s=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===i||!(l=l.nextSibling)););else{Zi.innerHTML=r?`<svg>${e}</svg>`:e;const o=Zi.content;if(r){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rc=Symbol("_vtc");function lc(e,t,n){const r=e[rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ll=Symbol("_vod"),Ji={beforeMount(e,{value:t},{transition:n}){e[ll]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),gn(e,!0),r.enter(e)):r.leave(e,()=>{gn(e,!1)}):gn(e,t))},beforeUnmount(e,{value:t}){gn(e,t)}};function gn(e,t){e.style.display=t?e[ll]:"none"}function ic(e,t,n){const r=e.style,l=ke(n);if(n&&!l){if(t&&!ke(t))for(const i in t)n[i]==null&&il(r,i,"");for(const i in n)il(r,i,n[i])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),ll in e&&(r.display=i)}}const Qi=/\s*!important$/;function il(e,t,n){if(N(n))n.forEach(r=>il(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=sc(e,t);Qi.test(n)?e.setProperty(Pt(r),n.replace(Qi,""),"important"):e[r]=n}}const Yi=["Webkit","Moz","ms"],sl={};function sc(e,t){const n=sl[t];if(n)return n;let r=qe(t);if(r!=="filter"&&r in e)return sl[t]=r;r=Mn(r);for(let l=0;l<Yi.length;l++){const i=Yi[l]+r;if(i in e)return sl[t]=i}return t}const Xi="http://www.w3.org/1999/xlink";function oc(e,t,n,r,l){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Xi,t.slice(6,t.length)):e.setAttributeNS(Xi,t,n);else{const i=_o(t);n==null||i&&!Dl(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function ac(e,t,n,r,l,i,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,l,i),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){e._value=n;const c=o==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Dl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rt(e,t,n,r){e.addEventListener(t,n,r)}function cc(e,t,n,r){e.removeEventListener(t,n,r)}const Gi=Symbol("_vei");function uc(e,t,n,r,l=null){const i=e[Gi]||(e[Gi]={}),s=i[t];if(r&&s)s.value=r;else{const[o,a]=fc(t);if(r){const c=i[t]=pc(r,l);rt(e,o,c,a)}else s&&(cc(e,o,s,a),i[t]=void 0)}}const es=/(?:Once|Passive|Capture)$/;function fc(e){let t;if(es.test(e)){t={};let r;for(;r=e.match(es);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ol=0;const dc=Promise.resolve(),hc=()=>ol||(dc.then(()=>ol=0),ol=Date.now());function pc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ze(gc(r,n.value),t,5,[r])};return n.value=e,n.attached=hc(),n}function gc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const ts=/^on[a-z]/,mc=(e,t,n,r,l=!1,i,s,o,a)=>{t==="class"?lc(e,r,l):t==="style"?ic(e,n,r):In(t)?Tr(t)||uc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vc(e,t,r,l))?ac(e,t,r,i,s,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),oc(e,t,r,l))};function vc(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ts.test(t)&&ie(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ts.test(t)&&ke(n)?!1:t in e}const ht=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>zn(t,n):t};function wc(e){e.target.composing=!0}function ns(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign"),al={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[Fe]=ht(l);const i=r||l.props&&l.props.type==="number";rt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=jn(o)),e[Fe](o)}),n&&rt(e,"change",()=>{e.value=e.value.trim()}),t||(rt(e,"compositionstart",wc),rt(e,"compositionend",ns),rt(e,"change",ns))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){if(e[Fe]=ht(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(l||e.type==="number")&&jn(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},yc={deep:!0,created(e,t,n){e[Fe]=ht(n),rt(e,"change",()=>{const r=e._modelValue,l=Bt(e),i=e.checked,s=e[Fe];if(N(r)){const o=Lr(r,l),a=o!==-1;if(i&&!a)s(r.concat(l));else if(!i&&a){const c=[...r];c.splice(o,1),s(c)}}else if(Ot(r)){const o=new Set(r);i?o.add(l):o.delete(l),s(o)}else s(is(e,i))})},mounted:rs,beforeUpdate(e,t,n){e[Fe]=ht(n),rs(e,t,n)}};function rs(e,{value:t,oldValue:n},r){e._modelValue=t,N(t)?e.checked=Lr(t,r.props.value)>-1:Ot(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=wt(t,is(e,!0)))}const bc={created(e,{value:t},n){e.checked=wt(t,n.props.value),e[Fe]=ht(n),rt(e,"change",()=>{e[Fe](Bt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fe]=ht(r),t!==n&&(e.checked=wt(t,r.props.value))}},kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=Ot(t);rt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?jn(Bt(s)):Bt(s));e[Fe](e.multiple?l?new Set(i):i:i[0])}),e[Fe]=ht(r)},mounted(e,{value:t}){ls(e,t)},beforeUpdate(e,t,n){e[Fe]=ht(n)},updated(e,{value:t}){ls(e,t)}};function ls(e,t){const n=e.multiple;if(!(n&&!N(t)&&!Ot(t))){for(let r=0,l=e.options.length;r<l;r++){const i=e.options[r],s=Bt(i);if(n)N(t)?i.selected=Lr(t,s)>-1:i.selected=t.has(s);else if(wt(Bt(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bt(e){return"_value"in e?e._value:e.value}function is(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xc={created(e,t,n){ir(e,t,n,null,"created")},mounted(e,t,n){ir(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ir(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ir(e,t,n,r,"updated")}};function _c(e,t){switch(e){case"SELECT":return kc;case"TEXTAREA":return al;default:switch(t){case"checkbox":return yc;case"radio":return bc;default:return al}}}function ir(e,t,n,r,l){const s=_c(e.tagName,n.props&&n.props.type)[l];s&&s(e,t,n,r)}const $c=Re({patchProp:mc},nc);let ss;function Cc(){return ss||(ss=za($c))}const Ec=(...e)=>{const t=Cc().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=Rc(r);if(!l)return;const i=t._component;!ie(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.innerHTML="";const s=n(l,!1,l instanceof SVGElement);return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),s},t};function Rc(e){return ke(e)?document.querySelector(e):e}function mn(e){return Wl()?(Ro(e),!0):!1}function lt(e){return typeof e=="function"?e():Z(e)}const sr=typeof window<"u"&&typeof document<"u",Tc=Object.prototype.toString,Ac=e=>Tc.call(e)==="[object Object]",or=()=>{};function os(e,t){function n(...r){return new Promise((l,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(i)})}return n}const as=e=>e();function Ic(e,t={}){let n,r,l=or;const i=o=>{clearTimeout(o),l(),l=or};return o=>{const a=lt(e),c=lt(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((f,p)=>{l=t.rejectOnCancel?p:f,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,f(o())},c)),n=setTimeout(()=>{r&&i(r),r=null,f(o())},a)})}}function Sc(e=as){const t=V(!0);function n(){t.value=!1}function r(){t.value=!0}const l=(...i)=>{t.value&&e(...i)};return{isActive:tn(t),pause:n,resume:r,eventFilter:l}}function Lc(e,t=200,n={}){return os(Ic(t,n),e)}function Mc(e,t,n={}){const{eventFilter:r=as,...l}=n;return Pe(e,os(r,t),l)}function zc(e,t,n={}){const{eventFilter:r,...l}=n,{eventFilter:i,pause:s,resume:o,isActive:a}=Sc(r);return{stop:Mc(e,t,{...l,eventFilter:i}),pause:s,resume:o,isActive:a}}function cl(e,t=!0){Di()?on(e):t?e():Vn(e)}function Oc(e){Di()&&Yn(e)}function jc(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const s=V(!1);function o(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,o()}function c(){const f=lt(t);f<=0||(s.value=!0,l&&e(),o(),i=setInterval(e,f))}if(r&&sr&&c(),xe(t)||typeof t=="function"){const f=Pe(t,()=>{s.value&&sr&&c()});mn(f)}return mn(a),{isActive:s,pause:a,resume:c}}function Pc(e){var t;const n=lt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ar=sr?window:void 0,cs=sr?window.document:void 0;function us(...e){let t,n,r,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,l]=e,t=ar):[t,n,r,l]=e,!t)return or;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},o=(f,p,h,v)=>(f.addEventListener(p,h,v),()=>f.removeEventListener(p,h,v)),a=Pe(()=>[Pc(t),lt(l)],([f,p])=>{if(s(),!f)return;const h=Ac(p)?{...p}:p;i.push(...n.flatMap(v=>r.map(S=>o(f,v,S,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return mn(c),c}function Uc(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:l=ar}=t,i=V(!1),s=r?1e3/r:null;let o=0,a=null;function c(h){if(!i.value||!l)return;const v=h-(o||h);if(s&&v<s){a=l.requestAnimationFrame(c);return}e({delta:v,timestamp:h}),o=h,a=l.requestAnimationFrame(c)}function f(){!i.value&&l&&(i.value=!0,a=l.requestAnimationFrame(c))}function p(){i.value=!1,a!=null&&l&&(l.cancelAnimationFrame(a),a=null)}return n&&f(),mn(p),{isActive:tn(i),pause:p,resume:f}}const cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ur="__vueuse_ssr_handlers__",Fc=Hc();function Hc(){return ur in cr||(cr[ur]=cr[ur]||{}),cr[ur]}function Nc(e,t){return Fc[e]||t}function Dc(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Bc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},fs="vueuse-storage";function Wt(e,t,n,r={}){var l;const{flush:i="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:p=ar,eventFilter:h,onError:v=Q=>{console.error(Q)},initOnMounted:S}=r,x=(f?Jo:V)(typeof t=="function"?t():t);if(!n)try{n=Nc("getDefaultStorage",()=>{var Q;return(Q=ar)==null?void 0:Q.localStorage})()}catch(Q){v(Q)}if(!n)return x;const $=lt(t),y=Dc($),C=(l=r.serializer)!=null?l:Bc[y],{pause:B,resume:A}=zc(x,()=>H(x.value),{flush:i,deep:s,eventFilter:h});return p&&o&&cl(()=>{us(p,"storage",W),us(p,fs,J),S&&W()}),S||W(),x;function H(Q){try{if(Q==null)n.removeItem(e);else{const fe=C.write(Q),Ie=n.getItem(e);Ie!==fe&&(n.setItem(e,fe),p&&p.dispatchEvent(new CustomEvent(fs,{detail:{key:e,oldValue:Ie,newValue:fe,storageArea:n}})))}}catch(fe){v(fe)}}function G(Q){const fe=Q?Q.newValue:n.getItem(e);if(fe==null)return a&&$!==null&&n.setItem(e,C.write($)),$;if(!Q&&c){const Ie=C.read(fe);return typeof c=="function"?c(Ie,$):y==="object"&&!Array.isArray(Ie)?{...$,...Ie}:Ie}else return typeof fe!="string"?fe:C.read(fe)}function J(Q){W(Q.detail)}function W(Q){if(!(Q&&Q.storageArea!==n)){if(Q&&Q.key==null){x.value=$;return}if(!(Q&&Q.key!==e)){B();try{(Q==null?void 0:Q.newValue)!==C.write(x.value)&&(x.value=G(Q))}catch(fe){v(fe)}finally{Q?Vn(A):A()}}}}}function Wc(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=V(new Date),l=()=>r.value=new Date,i=n==="requestAnimationFrame"?Uc(l,{immediate:!0}):jc(l,n,{immediate:!0});return t?{now:r,...i}:r}function Vc(e,t=or,n={}){const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:p=cs,attrs:h={}}=n,v=V(null);let S=null;const x=C=>new Promise((B,A)=>{const H=W=>(v.value=W,B(W),W);if(!p){B(!1);return}let G=!1,J=p.querySelector(`script[src="${lt(e)}"]`);J?J.hasAttribute("data-loaded")&&H(J):(J=p.createElement("script"),J.type=i,J.async=s,J.src=lt(e),f&&(J.defer=f),o&&(J.crossOrigin=o),c&&(J.noModule=c),a&&(J.referrerPolicy=a),Object.entries(h).forEach(([W,Q])=>J==null?void 0:J.setAttribute(W,Q)),G=!0),J.addEventListener("error",W=>A(W)),J.addEventListener("abort",W=>A(W)),J.addEventListener("load",()=>{J.setAttribute("data-loaded","true"),t(J),H(J)}),G&&(J=p.head.appendChild(J)),C||H(J)}),$=(C=!0)=>(S||(S=x(C)),S),y=()=>{if(!p)return;S=null,v.value&&(v.value=null);const C=p.querySelector(`script[src="${lt(e)}"]`);C&&p.head.removeChild(C)};return r&&!l&&cl($),l||Oc(y),{scriptTag:v,load:$,unload:y}}let Kc=0;function qc(e,t={}){const n=V(!1),{document:r=cs,immediate:l=!0,manual:i=!1,id:s=`vueuse_styletag_${++Kc}`}=t,o=V(e);let a=()=>{};const c=()=>{if(!r)return;const p=r.getElementById(s)||r.createElement("style");p.isConnected||(p.id=s,t.media&&(p.media=t.media),r.head.appendChild(p)),!n.value&&(a=Pe(o,h=>{p.textContent=h},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return l&&!i&&cl(c),i||mn(f),{id:s,css:o,unload:f,load:c,isLoaded:tn(n)}}const Zc=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Jc=e=>{const t=Wt("WALINE_EMOJI",{}),n=Zc(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l})},ds=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Qc=e=>Promise.all(e.map(t=>typeof t=="string"?Jc(zl(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:l,folder:i,icon:s,prefix:o,type:a,items:c}=r;n.tabs.push({name:l,icon:ds(s,i,o,a),items:c.map(f=>{const p=`${o||""}${f}`;return n.map[p]=ds(f,i,o,a),p})})}),n}),hs=e=>{e.name!=="AbortError"&&console.error(e.message)},ul=e=>e instanceof HTMLElement?e:typeof e=="string"?document.querySelector(e):null,Yc=e=>e.type.includes("image"),ps=e=>{const t=Array.from(e).find(Yc);return t?t.getAsFile():null};function fl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Et=fl();function gs(e){Et=e}const ms=/[&<>"']/,Xc=new RegExp(ms.source,"g"),vs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Gc=new RegExp(vs.source,"g"),eu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ws=e=>eu[e];function Oe(e,t){if(t){if(ms.test(e))return e.replace(Xc,ws)}else if(vs.test(e))return e.replace(Gc,ws);return e}const tu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function nu(e){return e.replace(tu,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const ru=/(^|[^\[])\^/g;function re(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,l)=>(l=typeof l=="object"&&"source"in l?l.source:l,l=l.replace(ru,"$1"),e=e.replace(r,l),n),getRegex:()=>new RegExp(e,t)};return n}function ys(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const fr={exec:()=>null};function bs(e,t){const n=e.replace(/\|/g,(i,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let l=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;l<r.length;l++)r[l]=r[l].trim().replace(/\\\|/g,"|");return r}function dr(e,t,n){const r=e.length;if(r===0)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i===t&&!n)l++;else if(i!==t&&n)l++;else break}return e.slice(0,r-l)}function lu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function ks(e,t,n,r){const l=t.href,i=t.title?Oe(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:l,title:i,text:Oe(s)}}function iu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
8
8
  `).map(l=>{const i=l.match(/^\s+/);if(i===null)return l;const[s]=i;return s.length>=r.length?l.slice(r.length):l}).join(`
9
- `)}class hr{options;rules;lexer;constructor(t){this.options=t||Ct}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:dr(r,`
9
+ `)}class hr{options;rules;lexer;constructor(t){this.options=t||Et}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:dr(r,`
10
10
  `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],l=iu(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:l}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const l=dr(r,"#");(this.options.pedantic||!l||/ $/.test(l))&&(r=l.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=dr(n[0].replace(/^ *>[ \t]?/gm,""),`
11
11
  `),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=l,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const l=r.length>1,i={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");const s=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let o="",a="",c=!1;for(;t;){let f=!1;if(!(n=s.exec(t))||this.rules.block.hr.test(t))break;o=n[0],t=t.substring(o.length);let p=n[2].split(`
12
12
  `,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=t.split(`
13
- `,1)[0],w=0;this.options.pedantic?(w=2,a=p.trimStart()):(w=n[2].search(/[^ ]/),w=w>4?1:w,a=p.slice(w),w+=n[1].length);let T=!1;if(!p&&/^ *$/.test(h)&&(o+=h+`
14
- `,t=t.substring(h.length+1),f=!0),!f){const y=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),R=new RegExp(`^ {0,${Math.min(3,w-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),B=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,w-1)}}#`);for(;t;){const N=t.split(`
15
- `,1)[0];if(h=N,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),B.test(h)||S.test(h)||y.test(h)||R.test(t))break;if(h.search(/[^ ]/)>=w||!h.trim())a+=`
16
- `+h.slice(w);else{if(T||p.search(/[^ ]/)>=4||B.test(p)||S.test(p)||R.test(p))break;a+=`
17
- `+h}!T&&!h.trim()&&(T=!0),o+=N+`
18
- `,t=t.substring(N.length+1),p=h.slice(w)}}i.loose||(c?i.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let x=null,E;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&(E=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:o,task:!!x,checked:E,loose:!1,text:a,tokens:[]}),i.raw+=o}i.items[i.items.length-1].raw=o.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let f=0;f<i.items.length;f++)if(this.lexer.state.top=!1,i.items[f].tokens=this.lexer.blockTokens(i.items[f].text,[]),!i.loose){const p=i.items[f].tokens.filter(w=>w.type==="space"),h=p.length>0&&p.some(w=>/\n.*\n/.test(w.raw));i.loose=h}if(i.loose)for(let f=0;f<i.items.length;f++)i.items[f].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),l=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:l,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(n){if(!/[:|]/.test(n[2]))return;const r={type:"table",raw:n[0],header:bs(n[1]).map(l=>({text:l,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
13
+ `,1)[0],v=0;this.options.pedantic?(v=2,a=p.trimStart()):(v=n[2].search(/[^ ]/),v=v>4?1:v,a=p.slice(v),v+=n[1].length);let S=!1;if(!p&&/^ *$/.test(h)&&(o+=h+`
14
+ `,t=t.substring(h.length+1),f=!0),!f){const y=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),C=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),B=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,v-1)}}#`);for(;t;){const H=t.split(`
15
+ `,1)[0];if(h=H,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),B.test(h)||A.test(h)||y.test(h)||C.test(t))break;if(h.search(/[^ ]/)>=v||!h.trim())a+=`
16
+ `+h.slice(v);else{if(S||p.search(/[^ ]/)>=4||B.test(p)||A.test(p)||C.test(p))break;a+=`
17
+ `+h}!S&&!h.trim()&&(S=!0),o+=H+`
18
+ `,t=t.substring(H.length+1),p=h.slice(v)}}i.loose||(c?i.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let x=null,$;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&($=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:o,task:!!x,checked:$,loose:!1,text:a,tokens:[]}),i.raw+=o}i.items[i.items.length-1].raw=o.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let f=0;f<i.items.length;f++)if(this.lexer.state.top=!1,i.items[f].tokens=this.lexer.blockTokens(i.items[f].text,[]),!i.loose){const p=i.items[f].tokens.filter(v=>v.type==="space"),h=p.length>0&&p.some(v=>/\n.*\n/.test(v.raw));i.loose=h}if(i.loose)for(let f=0;f<i.items.length;f++)i.items[f].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),l=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:l,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(n){if(!/[:|]/.test(n[2]))return;const r={type:"table",raw:n[0],header:bs(n[1]).map(l=>({text:l,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
19
19
  `):[]};if(r.header.length===r.align.length){let l=r.align.length,i,s,o,a;for(i=0;i<l;i++){const c=r.align[i];c&&(/^ *-+: *$/.test(c)?r.align[i]="right":/^ *:-+: *$/.test(c)?r.align[i]="center":/^ *:-+ *$/.test(c)?r.align[i]="left":r.align[i]=null)}for(l=r.rows.length,i=0;i<l;i++)r.rows[i]=bs(r.rows[i],r.header.length).map(c=>({text:c,tokens:[]}));for(l=r.header.length,s=0;s<l;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(l=r.rows.length,s=0;s<l;s++)for(a=r.rows[s],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return r}}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
20
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Oe(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=dr(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=lu(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let l=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);s&&(l=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(r)?l=l.slice(1):l=l.slice(1,-1)),ks(n,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let l=(r[2]||r[1]).replace(/\s+/g," ");if(l=n[l.toLowerCase()],!l){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return ks(r,l,r[0],this.lexer)}}emStrong(t,n,r=""){let l=this.rules.inline.emStrong.lDelim.exec(t);if(!l||l[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(l[1]||l[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...l[0]].length-1;let o,a,c=s,f=0;const p=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+l[0].length-1);(l=p.exec(n))!=null;){if(o=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!o)continue;if(a=[...o].length,l[3]||l[4]){c+=a;continue}else if((l[5]||l[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const h=[...t].slice(0,s+l.index+a+1).join("");if(Math.min(s,a)%2){const T=h.slice(1,-1);return{type:"em",raw:h,text:T,tokens:this.lexer.inlineTokens(T)}}const w=h.slice(2,-2);return{type:"strong",raw:h,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const l=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return l&&i&&(r=r.substring(1,r.length-1)),r=Oe(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,l;return n[2]==="@"?(r=Oe(n[1]),l="mailto:"+r):(r=Oe(n[1]),l=r),{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=Oe(n[0]),l="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(i!==n[0]);r=Oe(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Oe(n[0]),{type:"text",raw:n[0],text:r}}}}const U={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:fr,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};U._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,U._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,U.def=ne(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.listItemStart=ne(/^( *)(bull) */).replace("bull",U.bullet).getRegex(),U.list=ne(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._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",U._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,U.html=ne(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.lheading=ne(U.lheading).replace(/bull/g,U.bullet).getRegex(),U.paragraph=ne(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",U._tag).getRegex(),U.blockquote=ne(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal={...U},U.gfm={...U.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},U.gfm.table=ne(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",U._tag).getRegex(),U.gfm.paragraph=ne(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",U.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",U._tag).getRegex(),U.pedantic={...U.normal,html:ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",U._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:fr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ne(U.normal._paragraph).replace("hr",U.hr).replace("heading",` *#{1,6} *[^
21
- ]`).replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const A={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fr,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:fr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};A._punctuation="\\p{P}$+<=>`^|~",A.punctuation=ne(A.punctuation,"u").replace(/punctuation/g,A._punctuation).getRegex(),A.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,A.anyPunctuation=/\\[punct]/g,A._escapes=/\\([punct])/g,A._comment=ne(U._comment).replace("(?:-->|$)","-->").getRegex(),A.emStrong.lDelim=ne(A.emStrong.lDelim,"u").replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimAst=ne(A.emStrong.rDelimAst,"gu").replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimUnd=ne(A.emStrong.rDelimUnd,"gu").replace(/punct/g,A._punctuation).getRegex(),A.anyPunctuation=ne(A.anyPunctuation,"gu").replace(/punct/g,A._punctuation).getRegex(),A._escapes=ne(A._escapes,"gu").replace(/punct/g,A._punctuation).getRegex(),A._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,A._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])?)+(?![-_])/,A.autolink=ne(A.autolink).replace("scheme",A._scheme).replace("email",A._email).getRegex(),A._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,A.tag=ne(A.tag).replace("comment",A._comment).replace("attribute",A._attribute).getRegex(),A._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,A._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,A._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,A.link=ne(A.link).replace("label",A._label).replace("href",A._href).replace("title",A._title).getRegex(),A.reflink=ne(A.reflink).replace("label",A._label).replace("ref",U._label).getRegex(),A.nolink=ne(A.nolink).replace("ref",U._label).getRegex(),A.reflinkSearch=ne(A.reflinkSearch,"g").replace("reflink",A.reflink).replace("nolink",A.nolink).getRegex(),A.normal={...A},A.pedantic={...A.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:ne(/^!?\[(label)\]\((.*?)\)/).replace("label",A._label).getRegex(),reflink:ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",A._label).getRegex()},A.gfm={...A.normal,escape:ne(A.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.!#$%&'*+\/=?_`{\|}~-]+@)))/},A.gfm.url=ne(A.gfm.url,"i").replace("email",A.gfm._extended_email).getRegex(),A.breaks={...A.gfm,br:ne(A.br).replace("{2,}","*").getRegex(),text:ne(A.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class lt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ct,this.options.tokenizer=this.options.tokenizer||new hr,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 n={block:U.normal,inline:A.normal};this.options.pedantic?(n.block=U.pedantic,n.inline=A.pedantic):this.options.gfm&&(n.block=U.gfm,this.options.breaks?n.inline=A.breaks:n.inline=A.gfm),this.tokenizer.rules=n}static get rules(){return{block:U,inline:A}}static lex(t,n){return new lt(n).lex(t)}static lexInline(t,n){return new lt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
20
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Oe(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=dr(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=lu(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let l=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);s&&(l=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(this.options.pedantic&&!/>$/.test(r)?l=l.slice(1):l=l.slice(1,-1)),ks(n,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let l=(r[2]||r[1]).replace(/\s+/g," ");if(l=n[l.toLowerCase()],!l){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return ks(r,l,r[0],this.lexer)}}emStrong(t,n,r=""){let l=this.rules.inline.emStrong.lDelim.exec(t);if(!l||l[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(l[1]||l[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...l[0]].length-1;let o,a,c=s,f=0;const p=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+s);(l=p.exec(n))!=null;){if(o=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!o)continue;if(a=[...o].length,l[3]||l[4]){c+=a;continue}else if((l[5]||l[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const h=[...l[0]][0].length,v=t.slice(0,s+l.index+h+a);if(Math.min(s,a)%2){const x=v.slice(1,-1);return{type:"em",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}const S=v.slice(2,-2);return{type:"strong",raw:v,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const l=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return l&&i&&(r=r.substring(1,r.length-1)),r=Oe(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,l;return n[2]==="@"?(r=Oe(n[1]),l="mailto:"+r):(r=Oe(n[1]),l=r),{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=Oe(n[0]),l="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(i!==n[0]);r=Oe(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Oe(n[0]),{type:"text",raw:n[0],text:r}}}}const P={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:fr,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};P._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,P._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,P.def=re(P.def).replace("label",P._label).replace("title",P._title).getRegex(),P.bullet=/(?:[*+-]|\d{1,9}[.)])/,P.listItemStart=re(/^( *)(bull) */).replace("bull",P.bullet).getRegex(),P.list=re(P.list).replace(/bull/g,P.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+P.def.source+")").getRegex(),P._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",P._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,P.html=re(P.html,"i").replace("comment",P._comment).replace("tag",P._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),P.lheading=re(P.lheading).replace(/bull/g,P.bullet).getRegex(),P.paragraph=re(P._paragraph).replace("hr",P.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",P._tag).getRegex(),P.blockquote=re(P.blockquote).replace("paragraph",P.paragraph).getRegex(),P.normal={...P},P.gfm={...P.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},P.gfm.table=re(P.gfm.table).replace("hr",P.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",P._tag).getRegex(),P.gfm.paragraph=re(P._paragraph).replace("hr",P.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P.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",P._tag).getRegex(),P.pedantic={...P.normal,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",P._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:fr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(P.normal._paragraph).replace("hr",P.hr).replace("heading",` *#{1,6} *[^
21
+ ]`).replace("lheading",P.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const T={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fr,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:fr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};T._punctuation="\\p{P}$+<=>`^|~",T.punctuation=re(T.punctuation,"u").replace(/punctuation/g,T._punctuation).getRegex(),T.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,T.anyPunctuation=/\\[punct]/g,T._escapes=/\\([punct])/g,T._comment=re(P._comment).replace("(?:-->|$)","-->").getRegex(),T.emStrong.lDelim=re(T.emStrong.lDelim,"u").replace(/punct/g,T._punctuation).getRegex(),T.emStrong.rDelimAst=re(T.emStrong.rDelimAst,"gu").replace(/punct/g,T._punctuation).getRegex(),T.emStrong.rDelimUnd=re(T.emStrong.rDelimUnd,"gu").replace(/punct/g,T._punctuation).getRegex(),T.anyPunctuation=re(T.anyPunctuation,"gu").replace(/punct/g,T._punctuation).getRegex(),T._escapes=re(T._escapes,"gu").replace(/punct/g,T._punctuation).getRegex(),T._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,T._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])?)+(?![-_])/,T.autolink=re(T.autolink).replace("scheme",T._scheme).replace("email",T._email).getRegex(),T._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,T.tag=re(T.tag).replace("comment",T._comment).replace("attribute",T._attribute).getRegex(),T._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,T._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,T._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,T.link=re(T.link).replace("label",T._label).replace("href",T._href).replace("title",T._title).getRegex(),T.reflink=re(T.reflink).replace("label",T._label).replace("ref",P._label).getRegex(),T.nolink=re(T.nolink).replace("ref",P._label).getRegex(),T.reflinkSearch=re(T.reflinkSearch,"g").replace("reflink",T.reflink).replace("nolink",T.nolink).getRegex(),T.normal={...T},T.pedantic={...T.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:re(/^!?\[(label)\]\((.*?)\)/).replace("label",T._label).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T._label).getRegex()},T.gfm={...T.normal,escape:re(T.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.!#$%&'*+\/=?_`{\|}~-]+@)))/},T.gfm.url=re(T.gfm.url,"i").replace("email",T.gfm._extended_email).getRegex(),T.breaks={...T.gfm,br:re(T.br).replace("{2,}","*").getRegex(),text:re(T.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class it{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Et,this.options.tokenizer=this.options.tokenizer||new hr,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 n={block:P.normal,inline:T.normal};this.options.pedantic?(n.block=P.pedantic,n.inline=T.pedantic):this.options.gfm&&(n.block=P.gfm,this.options.breaks?n.inline=T.breaks:n.inline=T.gfm),this.tokenizer.rules=n}static get rules(){return{block:P,inline:T}}static lex(t,n){return new it(n).lex(t)}static lexInline(t,n){return new it(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
22
22
  `),this.blockTokens(t,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,a,c)=>a+" ".repeat(c.length));let r,l,i,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
23
23
  `:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=`
24
24
  `+r.raw,l.text+=`
@@ -28,7 +28,7 @@ var zd=Object.defineProperty;var Od=(Q,de,ge)=>de in Q?zd(Q,de,{enumerable:!0,co
28
28
  `+r.raw,l.text+=`
29
29
  `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r),s=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&l.type==="text"?(l.raw+=`
30
30
  `+r.raw,l.text+=`
31
- `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,l,i,s=t,o,a,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(r=f.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,s,c)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const p=t.slice(1);let h;this.options.extensions.startInline.forEach(w=>{h=w.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(i=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),a=!0,l=n[n.length-1],l&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class pr{options;constructor(t){this.options=t||Ct}code(t,n,r){var i;const l=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return t=t.replace(/\n$/,"")+`
31
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):n.push(r);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,l,i,s=t,o,a,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(r=f.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),l=n[n.length-1],l&&r.type==="text"&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,s,c)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const p=t.slice(1);let h;this.options.extensions.startInline.forEach(v=>{h=v.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(i=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),a=!0,l=n[n.length-1],l&&l.type==="text"?(l.raw+=r.raw,l.text+=r.text):n.push(r);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class pr{options;constructor(t){this.options=t||Et}code(t,n,r){var i;const l=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return t=t.replace(/\n$/,"")+`
32
32
  `,l?'<pre><code class="language-'+Oe(l)+'">'+(r?t:Oe(t,!0))+`</code></pre>
33
33
  `:"<pre><code>"+(r?t:Oe(t,!0))+`</code></pre>
34
34
  `}blockquote(t){return`<blockquote>
@@ -46,9 +46,9 @@ ${t}</blockquote>
46
46
  `}tablerow(t){return`<tr>
47
47
  ${t}</tr>
48
48
  `}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
49
- `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){const l=ys(t);if(l===null)return r;t=l;let i='<a href="'+t+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){const l=ys(t);if(l===null)return r;t=l;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return t}}class fl{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class it{options;renderer;textRenderer;constructor(t){this.options=t||Ct,this.options.renderer=this.options.renderer||new pr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new fl}static parse(t,n){return new it(n).parse(t)}static parseInline(t,n){return new it(n).parseInline(t)}parse(t,n=!0){let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){r+=o||"";continue}}switch(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const s=i;r+=this.renderer.heading(this.parseInline(s.tokens),s.depth,nu(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=i;r+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=i;let o="",a="";for(let f=0;f<s.header.length;f++)a+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});o+=this.renderer.tablerow(a);let c="";for(let f=0;f<s.rows.length;f++){const p=s.rows[f];a="";for(let h=0;h<p.length;h++)a+=this.renderer.tablecell(this.parseInline(p[h].tokens),{header:!1,align:s.align[h]});c+=this.renderer.tablerow(a)}r+=this.renderer.table(o,c);continue}case"blockquote":{const s=i,o=this.parse(s.tokens);r+=this.renderer.blockquote(o);continue}case"list":{const s=i,o=s.ordered,a=s.start,c=s.loose;let f="";for(let p=0;p<s.items.length;p++){const h=s.items[p],w=h.checked,T=h.task;let x="";if(h.task){const E=this.renderer.checkbox(!!w);c?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=E+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=E+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:E+" "}):x+=E+" "}x+=this.parse(h.tokens,c),f+=this.renderer.listitem(x,T,!!w)}r+=this.renderer.list(f,o,a);continue}case"html":{const s=i;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,o=s.tokens?this.parseInline(s.tokens):s.text;for(;l+1<t.length&&t[l+1].type==="text";)s=t[++l],o+=`
50
- `+(s.tokens?this.parseInline(s.tokens):s.text);r+=n?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}switch(i.type){case"escape":{const s=i;r+=n.text(s.text);break}case"html":{const s=i;r+=n.html(s.text);break}case"link":{const s=i;r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{const s=i;r+=n.image(s.href,s.title,s.text);break}case"strong":{const s=i;r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{const s=i;r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{const s=i;r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{const s=i;r+=n.del(this.parseInline(s.tokens,n));break}case"text":{const s=i;r+=n.text(s.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}}class vn{options;constructor(t){this.options=t||Ct}preprocess(t){return t}postprocess(t){return t}}Le(vn,"passThroughHooks",new Set(["preprocess","postprocess"]));class xs{constructor(...t){gl(this,_n);gl(this,vr);Le(this,"defaults",ul());Le(this,"options",this.setOptions);Le(this,"parse",wr(this,_n,ml).call(this,lt.lex,it.parse));Le(this,"parseInline",wr(this,_n,ml).call(this,lt.lexInline,it.parseInline));Le(this,"Parser",it);Le(this,"parser",it.parse);Le(this,"Renderer",pr);Le(this,"TextRenderer",fl);Le(this,"Lexer",lt);Le(this,"lexer",lt.lex);Le(this,"Tokenizer",hr);Le(this,"Hooks",vn);this.use(...t)}walkTokens(t,n){var l,i;let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=s;(i=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{r=r.concat(this.walkTokens(o[a],n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),l.extensions=n),r.renderer){const i=this.defaults.renderer||new pr(this.defaults);for(const s in r.renderer){const o=r.renderer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p||""}}l.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new hr(this.defaults);for(const s in r.tokenizer){const o=r.tokenizer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new vn;for(const s in r.hooks){const o=r.hooks[s],a=s,c=i[a];vn.passThroughHooks.has(s)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(o.call(i,f)).then(h=>c.call(i,h));const p=o.call(i,f);return c.call(i,p)}:i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;l.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}}_n=new WeakSet,ml=function(t,n){return(r,l)=>{const i={...l},s={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const o=wr(this,vr,Ks).call(this,!!s.silent,!!s.async);if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(a=>t(a,s)).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));const a=t(r,s);s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=n(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return o(a)}}},vr=new WeakSet,Ks=function(t,n){return r=>{if(r.message+=`
51
- Please report this to https://github.com/markedjs/marked.`,t){const l="<p>An error occurred:</p><pre>"+Oe(r.message+"",!0)+"</pre>";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const Et=new xs;function pe(e,t){return Et.parse(e,t)}pe.options=pe.setOptions=function(e){return Et.setOptions(e),pe.defaults=Et.defaults,gs(pe.defaults),pe},pe.getDefaults=ul,pe.defaults=Ct,pe.use=function(...e){return Et.use(...e),pe.defaults=Et.defaults,gs(pe.defaults),pe},pe.walkTokens=function(e,t){return Et.walkTokens(e,t)},pe.parseInline=Et.parseInline,pe.Parser=it,pe.parser=it.parse,pe.Renderer=pr,pe.TextRenderer=fl,pe.Lexer=lt,pe.lexer=lt.lex,pe.Tokenizer=hr,pe.Hooks=vn,pe.parse=pe;function su(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=ou(t);if(e.async)return Promise.resolve(e.highlight(t.text,n)).then(_s(t));const r=e.highlight(t.text,n);if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");_s(t)(r)},renderer:{code(t,n,r){const l=(n||"").match(/\S*/)[0],i=l?` class="${e.langPrefix}${Rs(l)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${i}>${r?t:Rs(t,!0)}
52
- </code></pre>`}}}}function ou(e){return(e.lang||"").match(/\S*/)[0]}function _s(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const $s=/[&<>"']/,au=new RegExp($s.source,"g"),Cs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cu=new RegExp(Cs.source,"g"),uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Es=e=>uu[e];function Rs(e,t){if(t){if($s.test(e))return e.replace(au,Es)}else if(Cs.test(e))return e.replace(cu,Es);return e}const fu=/\$.*?\$/,du=/^\$(.*?)\$/,hu=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,pu=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=hu.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(fu);return n!==-1?n:t.length},tokenizer(t){const n=du.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Ts=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),gu=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const l=new xs;if(l.setOptions({breaks:!0}),n&&l.use(su({highlight:n})),r){const i=pu(r);l.use({extensions:i})}return l.parse(Ts(e,t))},dl=e=>e.dataset.path||null,mu=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),vu=e=>e.match(/[\u4E00-\u9FD5]/gu),wu=e=>{var t,n;return(((t=mu(e))==null?void 0:t.reduce((r,l)=>r+(["",",","."].includes(l.trim())?0:l.trim().split(/\s+/u).length),0))||0)+(((n=vu(e))==null?void 0:n.length)||0)},yu=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},As=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&bl({serverURL:An(e),paths:Array.from(i).map(s=>Ll(dl(s)||t)),lang:r,signal:l.signal}).then(s=>{i.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(hs),l.abort.bind(l)},Is=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("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"}),te("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"})]),bu=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),ku=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),xu=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),_u=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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${e?"":"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:e?"red":"currentColor"})]),$u=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),Cu=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("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"})),Eu=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),Ru=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),Tu=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("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"})),wn=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Au=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("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"}),te("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"})]),Iu=()=>Wt("WALINE_USER_META",{nick:"",mail:"",link:""}),Su=()=>Wt("WALINE_COMMENT_BOX_EDITOR",""),Lu="WALINE_LIKE";let Ss=null;const Ls=()=>Ss||(Ss=Wt(Lu,[])),Mu="WALINE_REACTION";let Ms=null;const zu=()=>Ms??(Ms=Wt(Mu,{}));var gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zs={},Vt={},yn={},Ou=gr&&gr.__awaiter||function(e,t,n,r){function l(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function o(f){try{c(r.next(f))}catch(p){s(p)}}function a(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):l(f.value).then(o,a)}c((r=r.apply(e,t||[])).next())})},ju=gr&&gr.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return a([c,f])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,l&&(i=c[0]&2?l.return:c[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,c[1])).done)return i;switch(l=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,l=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],l=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.ReCaptchaInstance=void 0;var Pu=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Ou(this,void 0,void 0,function(){return ju(this,function(n){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();yn.ReCaptchaInstance=Pu,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Uu=yn,ht;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(ht||(ht={}));var Os=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===ht.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===ht.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(l,i){e.successfulLoadingConsumers.push(function(s){return l(s)}),e.errorLoadingRunnable.push(function(s){return i(s)})});e.instanceSiteKey=t,e.setLoadingState(ht.LOADING);var r=new e;return new Promise(function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(ht.LOADED);var s=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new Uu.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,l(o)}).catch(function(s){e.errorLoadingRunnable.forEach(function(o){return o(s)}),e.errorLoadingRunnable=[],i(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?ht.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var s=this;n===void 0&&(n=!1),r===void 0&&(r=!1),l===void 0&&(l={}),i===void 0&&(i="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return o.src=a+"?render=explicit"+c,new Promise(function(f,p){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},r),!1),o.onerror=function(h){e.setLoadingState(ht.NOT_LOADED),p(h)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,l){var i={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?l?t.enterprise.render(r.container,i):t.render(r.container,i):l?t.enterprise.render(i):t.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Vt.load=Os.load,Vt.getInstance=Os.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Vt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=yn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(zs);const js={},Fu=e=>{const t=js[e]??(js[e]=zs.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Hu=e=>({execute:async t=>{const{load:n}=Vc("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(l=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:l})})})}}),Nu="WALINE_USER";let Ps=null;const mr=()=>Ps??(Ps=Wt(Nu,{})),Du={key:0,class:"wl-reaction"},Bu=["textContent"],Wu={class:"wl-reaction-list"},Vu=["onClick"],Ku={class:"wl-reaction-img"},qu=["src","alt"],Zu=["textContent"],Ju=["textContent"];var Qu=sn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=zu(),r=er("config"),l=V(-1),i=V([]),s=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:h,path:w}=r.value;return h.map((T,x)=>({icon:T,desc:s.value[`reaction${x}`],active:n.value[w]===x}))});let c;const f=async()=>{if(o.value){const{serverURL:h,lang:w,path:T,reaction:x}=r.value,E=new AbortController;c=E.abort.bind(E);const y=await yr({serverURL:h,lang:w,paths:[T],type:x.map((R,B)=>`reaction${B}`),signal:E.signal});if(Array.isArray(y)||typeof y=="number")return;i.value=x.map((R,B)=>y[`reaction${B}`])}},p=async h=>{if(l.value===-1){const{serverURL:w,lang:T,path:x}=r.value,E=n.value[x];l.value=h,E!==void 0&&(await Rn({serverURL:w,lang:T,path:x,type:`reaction${E}`,action:"desc"}),i.value[E]=Math.max(i.value[E]-1,0)),E!==h&&(await Rn({serverURL:w,lang:T,path:x,type:`reaction${h}`}),i.value[h]=(i.value[h]||0)+1),E===h?delete n.value[x]:n.value[x]=h,l.value=-1}};return on(()=>{Pe(()=>[r.value.serverURL,r.value.path],()=>{f()},{immediate:!0})}),Yn(()=>c==null?void 0:c()),(h,w)=>a.value.length?(I(),j("div",Du,[H("div",{class:"wl-reaction-title",textContent:ie(s.value.reactionTitle)},null,8,Bu),H("ul",Wu,[(I(!0),j(ce,null,Ue(a.value,({active:T,icon:x,desc:E},y)=>(I(),j("li",{key:y,class:we(["wl-reaction-item",{active:T}]),onClick:R=>p(y)},[H("div",Ku,[H("img",{src:x,alt:E},null,8,qu),l.value===y?(I(),et(J(wn),{key:0,class:"wl-reaction-loading"})):(I(),j("div",{key:1,class:"wl-reaction-votes",textContent:ie(i.value[y]||0)},null,8,Zu))]),H("div",{class:"wl-reaction-text",textContent:ie(E)},null,8,Ju)],10,Vu))),128))])])):G("v-if",!0)}}),bn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},Yu=bn(Qu,[["__file","ArticleReaction.vue"]]),kn=new Map;function Xu(e){var t=kn.get(e);t&&t.destroy()}function Gu(e){var t=kn.get(e);t&&t.update()}var xn=null;typeof window>"u"?((xn=function(e){return e}).destroy=function(e){return e},xn.update=function(e){return e}):((xn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!kn.has(r)){var l,i=null,s=window.getComputedStyle(r),o=(l=r.value,function(){c({testForHeightReduction:l===""||!r.value.startsWith(l),restoreTextAlign:null}),l=r.value}),a=(function(p){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",f),r.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(p).forEach(function(h){return r.style[h]=p[h]}),kn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",f),r.addEventListener("input",o),window.addEventListener("resize",f),r.style.overflowX="hidden",r.style.wordWrap="break-word",kn.set(r,{destroy:a,update:f}),f()}function c(p){var h,w,T=p.restoreTextAlign,x=T===void 0?null:T,E=p.testForHeightReduction,y=E===void 0||E,R=s.overflowY;if(r.scrollHeight!==0&&(s.resize==="vertical"?r.style.resize="none":s.resize==="both"&&(r.style.resize="horizontal"),y&&(h=function(S){for(var N=[];S&&S.parentNode&&S.parentNode instanceof Element;)S.parentNode.scrollTop&&N.push([S.parentNode,S.parentNode.scrollTop]),S=S.parentNode;return function(){return N.forEach(function(X){var Z=X[0],L=X[1];Z.style.scrollBehavior="auto",Z.scrollTop=L,Z.style.scrollBehavior=null})}}(r),r.style.height=""),w=s.boxSizing==="content-box"?r.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):r.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&w>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(r.style.overflow="scroll"),w=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=w+"px",x&&(r.style.textAlign=x),h&&h(),i!==w&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=w),R!==s.overflow&&!x)){var B=s.textAlign;s.overflow==="hidden"&&(r.style.textAlign=B==="start"?"end":"start"),c({restoreTextAlign:B,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xu),e},xn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gu),e});var ef=xn,Us=ef;const tf=["data-index"],nf=["src","title","onClick"];var rf=sn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=V(null),i=V({}),s=V([]),o=()=>{const h=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return h>0?h:1},a=h=>new Array(h).fill(null).map(()=>[]),c=async h=>{var w;if(h>=n.items.length)return;await Vn();const T=Array.from(((w=l.value)==null?void 0:w.children)||[]).reduce((x,E)=>E.getBoundingClientRect().height<x.getBoundingClientRect().height?E:x);s.value[Number(T.dataset.index)].push(h),await c(h+1)},f=async(h=!1)=>{if(s.value.length===o()&&!h)return;s.value=a(o());const w=window.scrollY;await c(0),window.scrollTo({top:w})},p=h=>{i.value[h.target.src]=!0};return on(()=>{f(!0),r=new ResizeObserver(()=>{f()}),r.observe(l.value),Pe(()=>[n.items],()=>{i.value={},f(!0)}),Pe(()=>[n.columnWidth,n.gap],()=>{f()})}),ma(()=>r.unobserve(l.value)),(h,w)=>(I(),j("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:Qt({gap:`${h.gap}px`})},[(I(!0),j(ce,null,Ue(s.value,(T,x)=>(I(),j("div",{key:x,class:"wl-gallery-column","data-index":x,style:Qt({gap:`${h.gap}px`})},[(I(!0),j(ce,null,Ue(T,E=>(I(),j(ce,{key:E},[i.value[h.items[E].src]?G("v-if",!0):(I(),et(J(wn),{key:0,size:36,style:{margin:"20px auto"}})),H("img",{class:"wl-gallery-item",src:h.items[E].src,title:h.items[E].title,loading:"lazy",onLoad:p,onClick:y=>h.$emit("insert",`![](${h.items[E].src})`)},null,40,nf)],64))),128))],12,tf))),128))],4))}}),lf=bn(rf,[["__file","ImageWall.vue"]]);const sf={class:"wl-comment"},of={key:0,class:"wl-login-info"},af={class:"wl-avatar"},cf=["title"],uf=["title"],ff=["src"],df=["title","textContent"],hf={class:"wl-panel"},pf=["for","textContent"],gf=["id","onUpdate:modelValue","name","type"],mf=["placeholder"],vf={class:"wl-preview"},wf=H("hr",null,null,-1),yf=["innerHTML"],bf={class:"wl-footer"},kf={class:"wl-actions"},xf={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},_f=["title"],$f=["title"],Cf=["title"],Ef=["title"],Rf={class:"wl-info"},Tf=H("div",{class:"wl-captcha-container"},null,-1),Af={class:"wl-text-number"},If={key:0},Sf=["textContent"],Lf=["textContent"],Mf=["disabled"],zf=["placeholder"],Of={key:1,class:"wl-loading"},jf={key:0,class:"wl-tab-wrapper"},Pf=["title","onClick"],Uf=["src","alt"],Ff={key:0,class:"wl-tabs"},Hf=["onClick"],Nf=["src","alt","title"],Df=["title"];var Bf=sn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e,l=n;t();const i=er("config"),s=Su(),o=Iu(),a=mr(),c=V({}),f=V(null),p=V(null),h=V(null),w=V(null),T=V(null),x=V(null),E=V(null),y=V({tabs:[],map:{}}),R=V(0),B=V(!1),S=V(!1),N=V(!1),X=V(""),Z=V(0),L=en({loading:!0,list:[]}),fe=V(0),me=V(!1),Rt=V(""),We=V(!1),K=V(!1),W=_e(()=>i.value.locale),oe=_e(()=>{var M;return!!((M=a.value)!=null&&M.token)}),be=_e(()=>i.value.imageUploader!==!1),ye=M=>{const u=f.value,d=u.selectionStart,g=u.selectionEnd||0,m=u.scrollTop;s.value=u.value.substring(0,d)+M+u.value.substring(g,u.value.length),u.focus(),u.selectionStart=d+M.length,u.selectionEnd=d+M.length,u.scrollTop=m},Ee=M=>{const u=M.key;(M.ctrlKey||M.metaKey)&&u==="Enter"&&$n()},$e=M=>{const u=`![${i.value.locale.uploading} ${M.name}]()`;return ye(u),We.value=!0,Promise.resolve().then(()=>i.value.imageUploader(M)).then(d=>{s.value=s.value.replace(u,`\r
53
- ![${M.name}](${d})`)}).catch(d=>{alert(d.message),s.value=s.value.replace(u,"")}).then(()=>{We.value=!1})},pt=M=>{var u;if((u=M.dataTransfer)!=null&&u.items){const d=ps(M.dataTransfer.items);d&&be.value&&($e(d),M.preventDefault())}},Tt=M=>{if(M.clipboardData){const u=ps(M.clipboardData.items);u&&be.value&&$e(u)}},He=()=>{const M=p.value;M.files&&be.value&&$e(M.files[0]).then(()=>{M.value=""})},$n=async()=>{var M,u,d,g,m,v;const{serverURL:b,lang:$,login:_,wordLimit:C,requiredMeta:k,recaptchaV3Key:P,turnstileKey:z}=i.value,F=await yu(),O={comment:Rt.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:i.value.path,ua:F};if((M=a.value)!=null&&M.token)O.nick=a.value.display_name,O.mail=a.value.email,O.link=a.value.url;else{if(_==="force")return;if(k.indexOf("nick")>-1&&!O.nick)return(u=c.value.nick)==null||u.focus(),alert(W.value.nickError);if(k.indexOf("mail")>-1&&!O.mail||O.mail&&!fo(O.mail))return(d=c.value.mail)==null||d.focus(),alert(W.value.mailError);O.nick||(O.nick=W.value.anonymous)}if(!O.comment){(g=f.value)==null||g.focus();return}if(!me.value)return alert(W.value.wordHint.replace("$0",C[0].toString()).replace("$1",C[1].toString()).replace("$2",Z.value.toString()));O.comment=Ts(O.comment,y.value.map),r.replyId&&r.rootId&&(O.pid=r.replyId,O.rid=r.rootId,O.at=r.replyUser),We.value=!0;try{P&&(O.recaptchaV3=await Fu(P).execute("social")),z&&(O.turnstile=await Hu(z).execute("social"));const q={serverURL:b,lang:$,token:(m=a.value)==null?void 0:m.token,comment:O},re=await(r.edit?Zt({objectId:r.edit.objectId,...q}):wl(q));if(We.value=!1,re.errmsg)return alert(re.errmsg);l("submit",re.data),s.value="",X.value="",r.replyId&&l("cancelReply"),(v=r.edit)!=null&&v.objectId&&l("cancelEdit")}catch(q){We.value=!1,alert(q.message)}},hl=M=>{M.preventDefault();const{lang:u,serverURL:d}=i.value;kl({serverURL:d,lang:u}).then(g=>{a.value=g,(g.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(g)),l("log")})},pl=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),l("log")},Ne=M=>{M.preventDefault();const{lang:u,serverURL:d}=i.value,g=800,m=800,v=(window.innerWidth-g)/2,b=(window.innerHeight-m)/2,$=new URLSearchParams({lng:u,token:a.value.token}),_=window.open(`${d}/ui/profile?${$.toString()}`,"_blank",`width=${g},height=${m},left=${v},top=${b},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);_==null||_.postMessage({type:"TOKEN",data:a.value.token},"*")},At=M=>{var u,d,g,m;!((u=h.value)!=null&&u.contains(M.target))&&!((d=w.value)!=null&&d.contains(M.target))&&(B.value=!1),!((g=T.value)!=null&&g.contains(M.target))&&!((m=x.value)!=null&&m.contains(M.target))&&(S.value=!1)},Cn=async M=>{var u;const{scrollTop:d,clientHeight:g,scrollHeight:m}=M.target,v=(g+d)/m,b=i.value.search,$=((u=E.value)==null?void 0:u.value)||"";v<.9||L.loading||K.value||(L.loading=!0,(b.more&&L.list.length?await b.more($,L.list.length):await b.search($)).length?L.list=[...L.list,...b.more&&L.list.length?await b.more($,L.list.length):await b.search($)]:K.value=!0,L.loading=!1,setTimeout(()=>{M.target.scrollTop=d},50))},st=Lc(M=>{L.list=[],K.value=!1,Cn(M)},300);Pe([i,Z],([M,u])=>{const{wordLimit:d}=M;d?u<d[0]&&d[0]!==0?(fe.value=d[0],me.value=!1):u>d[1]?(fe.value=d[1],me.value=!1):(fe.value=d[1],me.value=!0):(fe.value=0,me.value=!0)},{immediate:!0});const Kt=({data:M})=>{!M||M.type!=="profile"||(a.value={...a.value,...M.data},[localStorage,sessionStorage].filter(u=>u.getItem("WALINE_USER")).forEach(u=>u.setItem("WALINE_USER",JSON.stringify(a))))};return on(()=>{var M;document.body.addEventListener("click",At),window.addEventListener("message",Kt),(M=r.edit)!=null&&M.objectId&&(s.value=r.edit.orig),Pe(S,async u=>{if(!u)return;const d=i.value.search;E.value&&(E.value.value=""),L.loading=!0,L.list=d.default?await d.default():await d.search(""),L.loading=!1}),Pe(()=>s.value,u=>{const{highlighter:d,texRenderer:g}=i.value;Rt.value=u,X.value=gu(u,{emojiMap:y.value.map,highlighter:d,texRenderer:g}),Z.value=wu(u),u?Us(f.value):Us.destroy(f.value)},{immediate:!0}),Pe(()=>i.value.emoji,u=>Qc(u).then(d=>{y.value=d}),{immediate:!0})}),Yn(()=>{document.body.removeEventListener("click",At),window.removeEventListener("message",Kt)}),(M,u)=>{var d,g;return I(),j("div",sf,[J(i).login!=="disable"&&oe.value&&!((d=M.edit)!=null&&d.objectId)?(I(),j("div",of,[H("div",af,[H("button",{type:"submit",class:"wl-logout-btn",title:W.value.logout,onClick:pl},[se(J(Is),{size:14})],8,cf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:W.value.profile,onClick:Ne},[H("img",{src:J(a).avatar,alt:"avatar"},null,8,ff)],8,uf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:W.value.profile,onClick:Ne,textContent:ie(J(a).display_name)},null,8,df)])):G("v-if",!0),H("div",hf,[J(i).login!=="force"&&J(i).meta.length&&!oe.value?(I(),j("div",{key:0,class:we(["wl-header",`item${J(i).meta.length}`])},[(I(!0),j(ce,null,Ue(J(i).meta,m=>(I(),j("div",{key:m,class:"wl-header-item"},[H("label",{for:`wl-${m}`,textContent:ie(W.value[m]+(J(i).requiredMeta.includes(m)||!J(i).requiredMeta.length?"":`(${W.value.optional})`))},null,8,pf),Jn(H("input",{id:`wl-${m}`,ref_for:!0,ref:v=>{v&&(c.value[m]=v)},"onUpdate:modelValue":v=>J(o)[m]=v,class:we(["wl-input",`wl-${m}`]),name:m,type:m==="mail"?"email":"text"},null,10,gf),[[xc,J(o)[m]]])]))),128))],2)):G("v-if",!0),Jn(H("textarea",{id:"wl-edit",ref_key:"editorRef",ref:f,"onUpdate:modelValue":u[0]||(u[0]=m=>xe(s)?s.value=m:null),class:"wl-editor",placeholder:M.replyUser?`@${M.replyUser}`:W.value.placeholder,onKeydown:Ee,onDrop:pt,onPaste:Tt},null,40,mf),[[al,J(s)]]),Jn(H("div",vf,[wf,H("h4",null,ie(W.value.preview)+":",1),H("div",{class:"wl-content",innerHTML:X.value},null,8,yf)],512),[[Zi,N.value]]),H("div",bf,[H("div",kf,[H("a",xf,[se(J(Cu))]),Jn(H("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:we(["wl-action",{active:B.value}]),title:W.value.emoji,onClick:u[1]||(u[1]=m=>B.value=!B.value)},[se(J(ku))],10,_f),[[Zi,y.value.tabs.length]]),J(i).search?(I(),j("button",{key:0,ref_key:"gifButtonRef",ref:T,type:"button",class:we(["wl-action",{active:S.value}]),title:W.value.gif,onClick:u[2]||(u[2]=m=>S.value=!S.value)},[se(J(Au))],10,$f)):G("v-if",!0),H("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:He},null,544),be.value?(I(),j("label",{key:1,for:"wl-image-upload",class:"wl-action",title:W.value.uploadImage},[se(J(xu))],8,Cf)):G("v-if",!0),H("button",{type:"button",class:we(["wl-action",{active:N.value}]),title:W.value.preview,onClick:u[3]||(u[3]=m=>N.value=!N.value)},[se(J($u))],10,Ef)]),H("div",Rf,[Tf,H("div",Af,[tt(ie(Z.value)+" ",1),J(i).wordLimit?(I(),j("span",If,[tt("  /  "),H("span",{class:we({illegal:!me.value}),textContent:ie(fe.value)},null,10,Sf)])):G("v-if",!0),tt("  "+ie(W.value.word),1)]),J(i).login!=="disable"&&!oe.value?(I(),j("button",{key:0,type:"button",class:"wl-btn",onClick:hl,textContent:ie(W.value.login)},null,8,Lf)):G("v-if",!0),J(i).login!=="force"||oe.value?(I(),j("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:We.value,onClick:$n},[We.value?(I(),et(J(wn),{key:0,size:16})):(I(),j(ce,{key:1},[tt(ie(W.value.submit),1)],64))],8,Mf)):G("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:x,class:we(["wl-gif-popup",{display:S.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:E,type:"text",placeholder:W.value.gifSearchPlaceholder,onInput:u[4]||(u[4]=(...m)=>J(st)&&J(st)(...m))},null,40,zf),L.list.length?(I(),et(lf,{key:0,items:L.list,"column-width":200,gap:6,onInsert:u[5]||(u[5]=m=>ye(m)),onScroll:Cn},null,8,["items"])):G("v-if",!0),L.loading?(I(),j("div",Of,[se(J(wn),{size:30})])):G("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:w,class:we(["wl-emoji-popup",{display:B.value}])},[(I(!0),j(ce,null,Ue(y.value.tabs,(m,v)=>(I(),j(ce,{key:m.name},[v===R.value?(I(),j("div",jf,[(I(!0),j(ce,null,Ue(m.items,b=>(I(),j("button",{key:b,type:"button",title:b,onClick:$=>ye(`:${b}:`)},[B.value?(I(),j("img",{key:0,class:"wl-emoji",src:y.value.map[b],alt:b,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Uf)):G("v-if",!0)],8,Pf))),128))])):G("v-if",!0)],64))),128)),y.value.tabs.length>1?(I(),j("div",Ff,[(I(!0),j(ce,null,Ue(y.value.tabs,(m,v)=>(I(),j("button",{key:m.name,type:"button",class:we(["wl-tab",{active:R.value===v}]),onClick:b=>R.value=v},[H("img",{class:"wl-emoji",src:m.icon,alt:m.name,title:m.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Nf)],10,Hf))),128))])):G("v-if",!0)],2)])]),M.replyId||(g=M.edit)!=null&&g.objectId?(I(),j("button",{key:1,type:"button",class:"wl-close",title:W.value.cancelReply,onClick:u[6]||(u[6]=m=>M.$emit(M.replyId?"cancelReply":"cancelEdit"))},[se(J(Is),{size:24})],8,Df)):G("v-if",!0)])}}}),Fs=bn(Bf,[["__file","CommentBox.vue"]]);const Wf=["id"],Vf={class:"wl-user","aria-hidden":"true"},Kf=["src"],qf={class:"wl-card"},Zf={class:"wl-head"},Jf=["href"],Qf={key:1,class:"wl-nick"},Yf=["textContent"],Xf=["textContent"],Gf=["textContent"],ed=["textContent"],td=["textContent"],nd={class:"wl-comment-actions"},rd=["title"],ld=["title"],id={class:"wl-meta","aria-hidden":"true"},sd=["data-value","textContent"],od=["innerHTML"],ad={key:1,class:"wl-admin-actions"},cd={class:"wl-comment-status"},ud=["disabled","onClick","textContent"],fd={key:3,class:"wl-quote"};var dd=sn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,l=["approved","waiting","spam"],i=er("config"),s=Ls(),o=Wc(),a=mr(),c=_e(()=>i.value.locale),f=_e(()=>{const{link:y}=n.comment;return y?zl(y)?y:`https://${y}`:""}),p=_e(()=>s.value.includes(n.comment.objectId)),h=_e(()=>co(n.comment.insertedAt,o.value,c.value)),w=_e(()=>a.value.type==="administrator"),T=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=_e(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),E=_e(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,R)=>{var B;const S=va("CommentCard",!0);return I(),j("div",{id:y.comment.objectId,class:"wl-card-item"},[H("div",Vf,[y.comment.avatar?(I(),j("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar},null,8,Kf)):G("v-if",!0),y.comment.type?(I(),et(J(Tu),{key:1})):G("v-if",!0)]),H("div",qf,[H("div",Zf,[f.value?(I(),j("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},ie(y.comment.nick),9,Jf)):(I(),j("span",Qf,ie(y.comment.nick),1)),y.comment.type==="administrator"?(I(),j("span",{key:2,class:"wl-badge",textContent:ie(c.value.admin)},null,8,Yf)):G("v-if",!0),y.comment.label?(I(),j("span",{key:3,class:"wl-badge",textContent:ie(y.comment.label)},null,8,Xf)):G("v-if",!0),y.comment.sticky?(I(),j("span",{key:4,class:"wl-badge",textContent:ie(c.value.sticky)},null,8,Gf)):G("v-if",!0),typeof y.comment.level=="number"?(I(),j("span",{key:5,class:we(`wl-badge level${y.comment.level}`),textContent:ie(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,ed)):G("v-if",!0),H("span",{class:"wl-time",textContent:ie(h.value)},null,8,td),H("div",nd,[w.value||T.value?(I(),j(ce,{key:0},[H("button",{type:"button",class:"wl-edit",onClick:R[0]||(R[0]=N=>r("edit",y.comment))},[se(J(Ru))]),H("button",{type:"button",class:"wl-delete",onClick:R[1]||(R[1]=N=>r("delete",y.comment))},[se(J(bu))])],64)):G("v-if",!0),H("button",{type:"button",class:"wl-like",title:p.value?c.value.cancelLike:c.value.like,onClick:R[2]||(R[2]=N=>r("like",y.comment))},[se(J(_u),{active:p.value},null,8,["active"]),tt(" "+ie("like"in y.comment?y.comment.like:""),1)],8,rd),H("button",{type:"button",class:we(["wl-reply",{active:x.value}]),title:x.value?c.value.cancelReply:c.value.reply,onClick:R[3]||(R[3]=N=>r("reply",x.value?null:y.comment))},[se(J(Eu))],10,ld)])]),H("div",id,[(I(),j(ce,null,Ue(["addr","browser","os"],N=>(I(),j(ce,null,[y.comment[N]?(I(),j("span",{key:N,class:we(`wl-${N}`),"data-value":y.comment[N],textContent:ie(y.comment[N])},null,10,sd)):G("v-if",!0)],64))),64))]),E.value?G("v-if",!0):(I(),j("div",{key:0,class:"wl-content",innerHTML:y.comment.comment},null,8,od)),w.value&&!E.value?(I(),j("div",ad,[H("span",cd,[(I(),j(ce,null,Ue(l,N=>H("button",{key:N,type:"submit",class:we(`wl-btn wl-${N}`),disabled:y.comment.status===N,onClick:X=>r("status",{status:N,comment:y.comment}),textContent:ie(c.value[N])},null,10,ud)),64))]),w.value&&!("rid"in y.comment)?(I(),j("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:R[4]||(R[4]=N=>r("sticky",y.comment))},ie(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):G("v-if",!0)])):G("v-if",!0),x.value||E.value?(I(),j("div",{key:2,class:we({"wl-reply-wrapper":x.value,"wl-edit-wrapper":E.value})},[se(Fs,{edit:y.edit,"reply-id":(B=y.reply)==null?void 0:B.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:R[5]||(R[5]=N=>r("log")),onCancelReply:R[6]||(R[6]=N=>r("reply",null)),onCancelEdit:R[7]||(R[7]=N=>r("edit",null)),onSubmit:R[8]||(R[8]=N=>r("submit",N))},null,8,["edit","reply-id","reply-user","root-id"])],2)):G("v-if",!0),"children"in y.comment?(I(),j("div",fd,[(I(!0),j(ce,null,Ue(y.comment.children,N=>(I(),et(S,{key:N.objectId,comment:N,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:R[9]||(R[9]=X=>r("log")),onDelete:R[10]||(R[10]=X=>r("delete",X)),onEdit:R[11]||(R[11]=X=>r("edit",X)),onLike:R[12]||(R[12]=X=>r("like",X)),onReply:R[13]||(R[13]=X=>r("reply",X)),onStatus:R[14]||(R[14]=X=>r("status",X)),onSticky:R[15]||(R[15]=X=>r("sticky",X)),onSubmit:R[16]||(R[16]=X=>r("submit",X))},null,8,["comment","reply","edit","root-id"]))),128))])):G("v-if",!0)])],8,Wf)}}}),hd=bn(dd,[["__file","CommentCard.vue"]]);const Hs="3.0.0-alpha.1",pd={"data-waline":""},gd={class:"wl-meta-head"},md={class:"wl-count"},vd=["textContent"],wd={class:"wl-sort"},yd=["onClick"],bd={class:"wl-cards"},kd={key:1,class:"wl-operation"},xd=["textContent"],_d={key:2,class:"wl-loading"},$d=["textContent"],Cd={key:4,class:"wl-operation"},Ed=["textContent"],Rd={key:5,class:"wl-power"},Td=H("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Ad=sn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),l=mr(),i=Ls(),s=V("loading"),o=V(0),a=V(1),c=V(0),f=_e(()=>so(t)),p=V(f.value.commentSorting),h=V([]),w=V(null),T=V(null),x=_e(()=>oo(f.value.dark)),E=_e(()=>f.value.locale);qc(x,{id:"waline-darkmode"});let y;const R=K=>{var W;const{serverURL:oe,path:be,pageSize:ye}=f.value,Ee=new AbortController;s.value="loading",y==null||y(),vl({serverURL:oe,lang:f.value.lang,path:be,pageSize:ye,sortBy:n[p.value],page:K,signal:Ee.signal,token:(W=l.value)==null?void 0:W.token}).then($e=>{s.value="success",o.value=$e.count,h.value.push(...$e.data),a.value=K,c.value=$e.totalPages}).catch($e=>{$e.name!=="AbortError"&&(console.error($e.message),s.value="error")}),y=Ee.abort.bind(Ee)},B=()=>R(a.value+1),S=()=>{o.value=0,h.value=[],R(1)},N=K=>{p.value!==K&&(p.value=K,S())},X=K=>{w.value=K},Z=K=>{T.value=K},L=K=>{if(T.value)T.value.comment=K.comment,T.value.orig=K.orig;else if("rid"in K){const W=h.value.find(({objectId:oe})=>oe===K.rid);if(!W)return;Array.isArray(W.children)||(W.children=[]),W.children.push(K)}else h.value.unshift(K),o.value+=1},fe=async({comment:K,status:W})=>{var oe;if(K.status===W)return;const{serverURL:be,lang:ye}=f.value;await Zt({serverURL:be,lang:ye,token:(oe=l.value)==null?void 0:oe.token,objectId:K.objectId,comment:{status:W}}),K.status=W},me=async K=>{var W;if("rid"in K)return;const{serverURL:oe,lang:be}=f.value;await Zt({serverURL:oe,lang:be,token:(W=l.value)==null?void 0:W.token,objectId:K.objectId,comment:{sticky:K.sticky?0:1}}),K.sticky=!K.sticky},Rt=async({objectId:K})=>{var W;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:oe,lang:be}=f.value;await yl({serverURL:oe,lang:be,token:(W=l.value)==null?void 0:W.token,objectId:K}),h.value.some((ye,Ee)=>ye.objectId===K?(h.value=h.value.filter(($e,pt)=>pt!==Ee),!0):ye.children.some(($e,pt)=>$e.objectId===K?(h.value[Ee].children=ye.children.filter((Tt,He)=>He!==pt),!0):!1))},We=async K=>{var W;const{serverURL:oe,lang:be}=f.value,{objectId:ye}=K,Ee=i.value.includes(ye);await Zt({serverURL:oe,lang:be,objectId:ye,token:(W=l.value)==null?void 0:W.token,comment:{like:!Ee}}),Ee?i.value=i.value.filter($e=>$e!==ye):(i.value=[...i.value,ye],i.value.length>50&&(i.value=i.value.slice(-50))),K.like=(K.like||0)+(Ee?-1:1)};return Ra("config",f),on(()=>{Pe(()=>[t.serverURL,t.path],()=>S(),{immediate:!0})}),Yn(()=>y==null?void 0:y()),(K,W)=>(I(),j("div",pd,[se(Yu),w.value?G("v-if",!0):(I(),et(Fs,{key:0,onLog:S,onSubmit:L})),H("div",gd,[H("div",md,[o.value?(I(),j("span",{key:0,class:"wl-num",textContent:ie(o.value)},null,8,vd)):G("v-if",!0),tt(" "+ie(E.value.comment),1)]),H("ul",wd,[(I(!0),j(ce,null,Ue(J(r),oe=>(I(),j("li",{key:oe,class:we([oe===p.value?"active":""]),onClick:be=>N(oe)},ie(E.value[oe]),11,yd))),128))])]),H("div",bd,[(I(!0),j(ce,null,Ue(h.value,oe=>(I(),et(hd,{key:oe.objectId,"root-id":oe.objectId,comment:oe,reply:w.value,edit:T.value,onLog:S,onReply:X,onEdit:Z,onSubmit:L,onStatus:fe,onDelete:Rt,onSticky:me,onLike:We},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(I(),j("div",kd,[H("button",{type:"button",class:"wl-btn",onClick:S,textContent:ie(E.value.refresh)},null,8,xd)])):s.value==="loading"?(I(),j("div",_d,[se(J(wn),{size:30})])):h.value.length?a.value<c.value?(I(),j("div",Cd,[H("button",{type:"button",class:"wl-btn",onClick:B,textContent:ie(E.value.more)},null,8,Ed)])):G("v-if",!0):(I(),j("div",{key:3,class:"wl-empty",textContent:ie(E.value.sofa)},null,8,$d)),f.value.copyright?(I(),j("div",Rd,[tt(" Powered by "),Td,tt(" v"+ie(J(Hs)),1)])):G("v-if",!0)]))}}),Id=bn(Ad,[["__file","WalineComment.vue"]]);const Ns=(e,t)=>{t.forEach((n,r)=>{n.innerText=e[r].toString()})},Ds=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,s=Array.from(document.querySelectorAll(n)),o=c=>{const f=dl(c);return f!==null&&t!==f},a=c=>xl({serverURL:An(e),paths:c.map(f=>dl(f)||t),lang:l,signal:i.signal}).then(f=>Ns(f,c)).catch(hs);if(r){const c=s.filter(p=>!o(p)),f=s.filter(o);_l({serverURL:An(e),path:t,lang:l}).then(([p])=>Ns(new Array(c.length).fill(p),c)),f.length&&a(f)}else a(s);return i.abort.bind(i)},Sd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?cl(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=en({...l}),o=en({comment:n,pageview:r,path:t}),a=()=>{o.comment&&As({serverURL:s.serverURL,path:o.path,...typeof o.comment=="string"?{selector:o.comment}:{}})},c=()=>{o.pageview&&Ds({serverURL:s.serverURL,path:o.path,...typeof o.pageview=="string"?{selector:o.pageview}:{}})},f=i?Ec(()=>te(Id,{path:o.path,...s})):null;f&&f.mount(i);const p=bi(a),h=bi(c);return{el:i,update:({comment:w,pageview:T,path:x=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([y,R])=>{s[y]=R}),o.path=x,w!==void 0&&(o.comment=w),T!==void 0&&(o.pageview=T)},destroy:()=>{f==null||f.unmount(),p(),h()}}},Ld=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var l;const i=mr(),s=cl(e),o=new AbortController;return $l({serverURL:t,count:n,lang:r,signal:o.signal,token:(l=i.value)==null?void 0:l.token}).then(a=>s&&a.length?(s.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Md=({el:e,serverURL:t,count:n,locale:r,lang:l=navigator.language,mode:i="list"})=>{const s=cl(e),o=new AbortController;return Cl({serverURL:t,pageSize:n,lang:l,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Lt[l]||Lt[Tl],...typeof r=="object"?r:{}},s.innerHTML=`<ul class="wl-user-${i}">${a.map((c,f)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(p=>p).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};Q.RecentComments=Ld,Q.UserList=Md,Q.addComment=wl,Q.commentCount=As,Q.defaultLocales=Lt,Q.deleteComment=yl,Q.fetchCommentCount=bl,Q.getArticleCounter=yr,Q.getComment=vl,Q.getPageview=xl,Q.getRecentComment=$l,Q.getUserList=Cl,Q.init=Sd,Q.login=kl,Q.pageviewCount=Ds,Q.updateArticleCounter=Rn,Q.updateComment=Zt,Q.updatePageview=_l,Q.version=Hs});
49
+ `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){const l=ys(t);if(l===null)return r;t=l;let i='<a href="'+t+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(t,n,r){const l=ys(t);if(l===null)return r;t=l;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return t}}class dl{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class st{options;renderer;textRenderer;constructor(t){this.options=t||Et,this.options.renderer=this.options.renderer||new pr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dl}static parse(t,n){return new st(n).parse(t)}static parseInline(t,n){return new st(n).parseInline(t)}parse(t,n=!0){let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){r+=o||"";continue}}switch(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const s=i;r+=this.renderer.heading(this.parseInline(s.tokens),s.depth,nu(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=i;r+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=i;let o="",a="";for(let f=0;f<s.header.length;f++)a+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});o+=this.renderer.tablerow(a);let c="";for(let f=0;f<s.rows.length;f++){const p=s.rows[f];a="";for(let h=0;h<p.length;h++)a+=this.renderer.tablecell(this.parseInline(p[h].tokens),{header:!1,align:s.align[h]});c+=this.renderer.tablerow(a)}r+=this.renderer.table(o,c);continue}case"blockquote":{const s=i,o=this.parse(s.tokens);r+=this.renderer.blockquote(o);continue}case"list":{const s=i,o=s.ordered,a=s.start,c=s.loose;let f="";for(let p=0;p<s.items.length;p++){const h=s.items[p],v=h.checked,S=h.task;let x="";if(h.task){const $=this.renderer.checkbox(!!v);c?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=$+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=$+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:$+" "}):x+=$+" "}x+=this.parse(h.tokens,c),f+=this.renderer.listitem(x,S,!!v)}r+=this.renderer.list(f,o,a);continue}case"html":{const s=i;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,o=s.tokens?this.parseInline(s.tokens):s.text;for(;l+1<t.length&&t[l+1].type==="text";)s=t[++l],o+=`
50
+ `+(s.tokens?this.parseInline(s.tokens):s.text);r+=n?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let l=0;l<t.length;l++){const i=t[l];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}switch(i.type){case"escape":{const s=i;r+=n.text(s.text);break}case"html":{const s=i;r+=n.html(s.text);break}case"link":{const s=i;r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{const s=i;r+=n.image(s.href,s.title,s.text);break}case"strong":{const s=i;r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{const s=i;r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{const s=i;r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{const s=i;r+=n.del(this.parseInline(s.tokens,n));break}case"text":{const s=i;r+=n.text(s.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}}class vn{options;constructor(t){this.options=t||Et}preprocess(t){return t}postprocess(t){return t}}De(vn,"passThroughHooks",new Set(["preprocess","postprocess"]));class xs{constructor(...t){ml(this,_n);ml(this,vr);De(this,"defaults",fl());De(this,"options",this.setOptions);De(this,"parse",wr(this,_n,vl).call(this,it.lex,st.parse));De(this,"parseInline",wr(this,_n,vl).call(this,it.lexInline,st.parseInline));De(this,"Parser",st);De(this,"Renderer",pr);De(this,"TextRenderer",dl);De(this,"Lexer",it);De(this,"Tokenizer",hr);De(this,"Hooks",vn);this.use(...t)}walkTokens(t,n){var l,i;let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=s;(i=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{r=r.concat(this.walkTokens(o[a],n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),l.extensions=n),r.renderer){const i=this.defaults.renderer||new pr(this.defaults);for(const s in r.renderer){const o=r.renderer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p||""}}l.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new hr(this.defaults);for(const s in r.tokenizer){const o=r.tokenizer[s],a=s,c=i[a];i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new vn;for(const s in r.hooks){const o=r.hooks[s],a=s,c=i[a];vn.passThroughHooks.has(s)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(o.call(i,f)).then(h=>c.call(i,h));const p=o.call(i,f);return c.call(i,p)}:i[a]=(...f)=>{let p=o.apply(i,f);return p===!1&&(p=c.apply(i,f)),p}}l.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;l.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...l}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return it.lex(t,n??this.defaults)}parser(t,n){return st.parse(t,n??this.defaults)}}_n=new WeakSet,vl=function(t,n){return(r,l)=>{const i={...l},s={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const o=wr(this,vr,Ks).call(this,!!s.silent,!!s.async);if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(a=>t(a,s)).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));const a=t(r,s);s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=n(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return o(a)}}},vr=new WeakSet,Ks=function(t,n){return r=>{if(r.message+=`
51
+ Please report this to https://github.com/markedjs/marked.`,t){const l="<p>An error occurred:</p><pre>"+Oe(r.message+"",!0)+"</pre>";return n?Promise.resolve(l):l}if(n)return Promise.reject(r);throw r}};const Rt=new xs;function ge(e,t){return Rt.parse(e,t)}ge.options=ge.setOptions=function(e){return Rt.setOptions(e),ge.defaults=Rt.defaults,gs(ge.defaults),ge},ge.getDefaults=fl,ge.defaults=Et,ge.use=function(...e){return Rt.use(...e),ge.defaults=Rt.defaults,gs(ge.defaults),ge},ge.walkTokens=function(e,t){return Rt.walkTokens(e,t)},ge.parseInline=Rt.parseInline,ge.Parser=st,ge.parser=st.parse,ge.Renderer=pr,ge.TextRenderer=dl,ge.Lexer=it,ge.lexer=it.lex,ge.Tokenizer=hr,ge.Hooks=vn,ge.parse=ge;function su(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=ou(t);if(e.async)return Promise.resolve(e.highlight(t.text,n)).then(_s(t));const r=e.highlight(t.text,n);if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");_s(t)(r)},renderer:{code(t,n,r){const l=(n||"").match(/\S*/)[0],i=l?` class="${e.langPrefix}${Rs(l)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${i}>${r?t:Rs(t,!0)}
52
+ </code></pre>`}}}}function ou(e){return(e.lang||"").match(/\S*/)[0]}function _s(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const $s=/[&<>"']/,au=new RegExp($s.source,"g"),Cs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cu=new RegExp(Cs.source,"g"),uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Es=e=>uu[e];function Rs(e,t){if(t){if($s.test(e))return e.replace(au,Es)}else if(Cs.test(e))return e.replace(cu,Es);return e}const fu=/\$.*?\$/,du=/^\$(.*?)\$/,hu=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,pu=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=hu.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(fu);return n!==-1?n:t.length},tokenizer(t){const n=du.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Ts=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),gu=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const l=new xs;if(l.setOptions({breaks:!0}),n&&l.use(su({highlight:n})),r){const i=pu(r);l.use({extensions:i})}return l.parse(Ts(e,t))},hl=e=>e.dataset.path||null,mu=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),vu=e=>e.match(/[\u4E00-\u9FD5]/gu),wu=e=>{var t,n;return(((t=mu(e))==null?void 0:t.reduce((r,l)=>r+(["",",","."].includes(l.trim())?0:l.trim().split(/\s+/u).length),0))||0)+(((n=vu(e))==null?void 0:n.length)||0)},yu=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},As=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&kl({serverURL:An(e),paths:Array.from(i).map(s=>Ml(hl(s)||t)),lang:r,signal:l.signal}).then(s=>{i.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(hs),l.abort.bind(l)},Is=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("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"}),ne("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"})]),bu=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),ku=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),xu=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),_u=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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${e?"":"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:e?"red":"currentColor"})]),$u=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),Cu=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("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"})),Eu=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Ru=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Tu=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("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"})),wn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Au=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("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"}),ne("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"})]),Iu=()=>Wt("WALINE_USER_META",{nick:"",mail:"",link:""}),Su=()=>Wt("WALINE_COMMENT_BOX_EDITOR",""),Lu="WALINE_LIKE";let Ss=null;const Ls=()=>Ss||(Ss=Wt(Lu,[])),Mu="WALINE_REACTION";let Ms=null;const zu=()=>Ms??(Ms=Wt(Mu,{}));var gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zs={},Vt={},yn={},Ou=gr&&gr.__awaiter||function(e,t,n,r){function l(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function o(f){try{c(r.next(f))}catch(p){s(p)}}function a(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):l(f.value).then(o,a)}c((r=r.apply(e,t||[])).next())})},ju=gr&&gr.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return a([c,f])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,l&&(i=c[0]&2?l.return:c[0]?l.throw||((i=l.return)&&i.call(l),0):l.next)&&!(i=i.call(l,c[1])).done)return i;switch(l=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,l=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],l=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.ReCaptchaInstance=void 0;var Pu=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Ou(this,void 0,void 0,function(){return ju(this,function(n){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();yn.ReCaptchaInstance=Pu,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Uu=yn,pt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(pt||(pt={}));var Os=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===pt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===pt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(l,i){e.successfulLoadingConsumers.push(function(s){return l(s)}),e.errorLoadingRunnable.push(function(s){return i(s)})});e.instanceSiteKey=t,e.setLoadingState(pt.LOADING);var r=new e;return new Promise(function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(pt.LOADED);var s=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new Uu.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,l(o)}).catch(function(s){e.errorLoadingRunnable.forEach(function(o){return o(s)}),e.errorLoadingRunnable=[],i(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?pt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var s=this;n===void 0&&(n=!1),r===void 0&&(r=!1),l===void 0&&(l={}),i===void 0&&(i="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return o.src=a+"?render=explicit"+c,new Promise(function(f,p){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},r),!1),o.onerror=function(h){e.setLoadingState(pt.NOT_LOADED),p(h)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,l){var i={sitekey:n,badge:r.badge,size:r.size,tabindex:r.tabindex};return r.container?l?t.enterprise.render(r.container,i):t.render(r.container,i):l?t.enterprise.render(i):t.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Vt.load=Os.load,Vt.getInstance=Os.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Vt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=yn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(zs);const js={},Fu=e=>{const t=js[e]??(js[e]=zs.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Hu=e=>({execute:async t=>{const{load:n}=Vc("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(l=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:l})})})}}),Nu="WALINE_USER";let Ps=null;const mr=()=>Ps??(Ps=Wt(Nu,{})),Du={key:0,class:"wl-reaction"},Bu=["textContent"],Wu={class:"wl-reaction-list"},Vu=["onClick"],Ku={class:"wl-reaction-img"},qu=["src","alt"],Zu=["textContent"],Ju=["textContent"];var Qu=sn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=zu(),r=er("config"),l=V(-1),i=V([]),s=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:h,path:v}=r.value;return h.map((S,x)=>({icon:S,desc:s.value[`reaction${x}`],active:n.value[v]===x}))});let c;const f=async()=>{if(o.value){const{serverURL:h,lang:v,path:S,reaction:x}=r.value,$=new AbortController;c=$.abort.bind($);const y=await yr({serverURL:h,lang:v,paths:[S],type:x.map((C,B)=>`reaction${B}`),signal:$.signal});if(Array.isArray(y)||typeof y=="number")return;i.value=x.map((C,B)=>y[`reaction${B}`])}},p=async h=>{if(l.value===-1){const{serverURL:v,lang:S,path:x}=r.value,$=n.value[x];l.value=h,$!==void 0&&(await Rn({serverURL:v,lang:S,path:x,type:`reaction${$}`,action:"desc"}),i.value[$]=Math.max(i.value[$]-1,0)),$!==h&&(await Rn({serverURL:v,lang:S,path:x,type:`reaction${h}`}),i.value[h]=(i.value[h]||0)+1),$===h?delete n.value[x]:n.value[x]=h,l.value=-1}};return on(()=>{Pe(()=>[r.value.serverURL,r.value.path],()=>{f()},{immediate:!0})}),Yn(()=>c==null?void 0:c()),(h,v)=>a.value.length?(I(),O("div",Du,[F("div",{class:"wl-reaction-title",textContent:se(s.value.reactionTitle)},null,8,Bu),F("ul",Wu,[(I(!0),O(ue,null,Ue(a.value,({active:S,icon:x,desc:$},y)=>(I(),O("li",{key:y,class:we(["wl-reaction-item",{active:S}]),onClick:C=>p(y)},[F("div",Ku,[F("img",{src:x,alt:$},null,8,qu),l.value===y?(I(),tt(Z(wn),{key:0,class:"wl-reaction-loading"})):(I(),O("div",{key:1,class:"wl-reaction-votes",textContent:se(i.value[y]||0)},null,8,Zu))]),F("div",{class:"wl-reaction-text",textContent:se($)},null,8,Ju)],10,Vu))),128))])])):ee("v-if",!0)}}),bn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},Yu=bn(Qu,[["__file","ArticleReaction.vue"]]),kn=new Map;function Xu(e){var t=kn.get(e);t&&t.destroy()}function Gu(e){var t=kn.get(e);t&&t.update()}var xn=null;typeof window>"u"?((xn=function(e){return e}).destroy=function(e){return e},xn.update=function(e){return e}):((xn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!kn.has(r)){var l,i=null,s=window.getComputedStyle(r),o=(l=r.value,function(){c({testForHeightReduction:l===""||!r.value.startsWith(l),restoreTextAlign:null}),l=r.value}),a=(function(p){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",f),r.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(p).forEach(function(h){return r.style[h]=p[h]}),kn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",f),r.addEventListener("input",o),window.addEventListener("resize",f),r.style.overflowX="hidden",r.style.wordWrap="break-word",kn.set(r,{destroy:a,update:f}),f()}function c(p){var h,v,S=p.restoreTextAlign,x=S===void 0?null:S,$=p.testForHeightReduction,y=$===void 0||$,C=s.overflowY;if(r.scrollHeight!==0&&(s.resize==="vertical"?r.style.resize="none":s.resize==="both"&&(r.style.resize="horizontal"),y&&(h=function(A){for(var H=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&H.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return H.forEach(function(G){var J=G[0],W=G[1];J.style.scrollBehavior="auto",J.scrollTop=W,J.style.scrollBehavior=null})}}(r),r.style.height=""),v=s.boxSizing==="content-box"?r.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):r.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&v>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(r.style.overflow="scroll"),v=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=v+"px",x&&(r.style.textAlign=x),h&&h(),i!==v&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=v),C!==s.overflow&&!x)){var B=s.textAlign;s.overflow==="hidden"&&(r.style.textAlign=B==="start"?"end":"start"),c({restoreTextAlign:B,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xu),e},xn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gu),e});var ef=xn,Us=ef;const tf=["data-index"],nf=["src","title","onClick"];var rf=sn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=V(null),i=V({}),s=V([]),o=()=>{const h=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return h>0?h:1},a=h=>new Array(h).fill(null).map(()=>[]),c=async h=>{var v;if(h>=n.items.length)return;await Vn();const S=Array.from(((v=l.value)==null?void 0:v.children)||[]).reduce((x,$)=>$.getBoundingClientRect().height<x.getBoundingClientRect().height?$:x);s.value[Number(S.dataset.index)].push(h),await c(h+1)},f=async(h=!1)=>{if(s.value.length===o()&&!h)return;s.value=a(o());const v=window.scrollY;await c(0),window.scrollTo({top:v})},p=h=>{i.value[h.target.src]=!0};return on(()=>{f(!0),r=new ResizeObserver(()=>{f()}),r.observe(l.value),Pe(()=>[n.items],()=>{i.value={},f(!0)}),Pe(()=>[n.columnWidth,n.gap],()=>{f()})}),ya(()=>r.unobserve(l.value)),(h,v)=>(I(),O("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:Qt({gap:`${h.gap}px`})},[(I(!0),O(ue,null,Ue(s.value,(S,x)=>(I(),O("div",{key:x,class:"wl-gallery-column","data-index":x,style:Qt({gap:`${h.gap}px`})},[(I(!0),O(ue,null,Ue(S,$=>(I(),O(ue,{key:$},[i.value[h.items[$].src]?ee("v-if",!0):(I(),tt(Z(wn),{key:0,size:36,style:{margin:"20px auto"}})),F("img",{class:"wl-gallery-item",src:h.items[$].src,title:h.items[$].title,loading:"lazy",onLoad:p,onClick:y=>h.$emit("insert",`![](${h.items[$].src})`)},null,40,nf)],64))),128))],12,tf))),128))],4))}}),lf=bn(rf,[["__file","ImageWall.vue"]]);const sf={class:"wl-comment"},of={key:0,class:"wl-login-info"},af={class:"wl-avatar"},cf=["title"],uf=["title"],ff=["src"],df=["title","textContent"],hf={class:"wl-panel"},pf=["for","textContent"],gf=["id","onUpdate:modelValue","name","type"],mf=["placeholder"],vf={class:"wl-preview"},wf=F("hr",null,null,-1),yf=["innerHTML"],bf={class:"wl-footer"},kf={class:"wl-actions"},xf={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},_f=["title"],$f=["title"],Cf=["title"],Ef=["title"],Rf={class:"wl-info"},Tf=F("div",{class:"wl-captcha-container"},null,-1),Af={class:"wl-text-number"},If={key:0},Sf=["textContent"],Lf=["textContent"],Mf=["disabled"],zf=["placeholder"],Of={key:1,class:"wl-loading"},jf={key:0,class:"wl-tab-wrapper"},Pf=["title","onClick"],Uf=["src","alt"],Ff={key:0,class:"wl-tabs"},Hf=["onClick"],Nf=["src","alt","title"],Df=["title"];var Bf=sn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e,l=n;t();const i=er("config"),s=Su(),o=Iu(),a=mr(),c=V({}),f=V(null),p=V(null),h=V(null),v=V(null),S=V(null),x=V(null),$=V(null),y=V({tabs:[],map:{}}),C=V(0),B=V(!1),A=V(!1),H=V(!1),G=V(""),J=V(0),W=en({loading:!0,list:[]}),Q=V(0),fe=V(!1),Ie=V(""),Ve=V(!1),K=V(!1),D=_e(()=>i.value.locale),ae=_e(()=>{var L;return!!((L=a.value)!=null&&L.token)}),be=_e(()=>i.value.imageUploader!==!1),ye=L=>{const u=f.value,d=u.selectionStart,g=u.selectionEnd||0,m=u.scrollTop;s.value=u.value.substring(0,d)+L+u.value.substring(g,u.value.length),u.focus(),u.selectionStart=d+L.length,u.selectionEnd=d+L.length,u.scrollTop=m},Ee=L=>{const u=L.key;(L.ctrlKey||L.metaKey)&&u==="Enter"&&$n()},$e=L=>{const u=`![${i.value.locale.uploading} ${L.name}]()`;return ye(u),Ve.value=!0,Promise.resolve().then(()=>i.value.imageUploader(L)).then(d=>{s.value=s.value.replace(u,`\r
53
+ ![${L.name}](${d})`)}).catch(d=>{alert(d.message),s.value=s.value.replace(u,"")}).then(()=>{Ve.value=!1})},gt=L=>{var u;if((u=L.dataTransfer)!=null&&u.items){const d=ps(L.dataTransfer.items);d&&be.value&&($e(d),L.preventDefault())}},Tt=L=>{if(L.clipboardData){const u=ps(L.clipboardData.items);u&&be.value&&$e(u)}},He=()=>{const L=p.value;L.files&&be.value&&$e(L.files[0]).then(()=>{L.value=""})},$n=async()=>{var L,u,d,g,m,w;const{serverURL:b,lang:E,login:_,wordLimit:R,requiredMeta:k,recaptchaV3Key:j,turnstileKey:M}=i.value,U=await yu(),z={comment:Ie.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:i.value.path,ua:U};if((L=a.value)!=null&&L.token)z.nick=a.value.display_name,z.mail=a.value.email,z.link=a.value.url;else{if(_==="force")return;if(k.indexOf("nick")>-1&&!z.nick)return(u=c.value.nick)==null||u.focus(),alert(D.value.nickError);if(k.indexOf("mail")>-1&&!z.mail||z.mail&&!fo(z.mail))return(d=c.value.mail)==null||d.focus(),alert(D.value.mailError);z.nick||(z.nick=D.value.anonymous)}if(!z.comment){(g=f.value)==null||g.focus();return}if(!fe.value)return alert(D.value.wordHint.replace("$0",R[0].toString()).replace("$1",R[1].toString()).replace("$2",J.value.toString()));z.comment=Ts(z.comment,y.value.map),r.replyId&&r.rootId&&(z.pid=r.replyId,z.rid=r.rootId,z.at=r.replyUser),Ve.value=!0;try{j&&(z.recaptchaV3=await Fu(j).execute("social")),M&&(z.turnstile=await Hu(M).execute("social"));const q={serverURL:b,lang:E,token:(m=a.value)==null?void 0:m.token,comment:z},le=await(r.edit?Zt({objectId:r.edit.objectId,...q}):yl(q));if(Ve.value=!1,le.errmsg)return alert(le.errmsg);l("submit",le.data),s.value="",G.value="",r.replyId&&l("cancelReply"),(w=r.edit)!=null&&w.objectId&&l("cancelEdit")}catch(q){Ve.value=!1,alert(q.message)}},pl=L=>{L.preventDefault();const{lang:u,serverURL:d}=i.value;xl({serverURL:d,lang:u}).then(g=>{a.value=g,(g.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(g)),l("log")})},gl=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),l("log")},Ne=L=>{L.preventDefault();const{lang:u,serverURL:d}=i.value,g=800,m=800,w=(window.innerWidth-g)/2,b=(window.innerHeight-m)/2,E=new URLSearchParams({lng:u,token:a.value.token}),_=window.open(`${d}/ui/profile?${E.toString()}`,"_blank",`width=${g},height=${m},left=${w},top=${b},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);_==null||_.postMessage({type:"TOKEN",data:a.value.token},"*")},At=L=>{var u,d,g,m;!((u=h.value)!=null&&u.contains(L.target))&&!((d=v.value)!=null&&d.contains(L.target))&&(B.value=!1),!((g=S.value)!=null&&g.contains(L.target))&&!((m=x.value)!=null&&m.contains(L.target))&&(A.value=!1)},Cn=async L=>{var u;const{scrollTop:d,clientHeight:g,scrollHeight:m}=L.target,w=(g+d)/m,b=i.value.search,E=((u=$.value)==null?void 0:u.value)||"";w<.9||W.loading||K.value||(W.loading=!0,(b.more&&W.list.length?await b.more(E,W.list.length):await b.search(E)).length?W.list=[...W.list,...b.more&&W.list.length?await b.more(E,W.list.length):await b.search(E)]:K.value=!0,W.loading=!1,setTimeout(()=>{L.target.scrollTop=d},50))},ot=Lc(L=>{W.list=[],K.value=!1,Cn(L)},300);Pe([i,J],([L,u])=>{const{wordLimit:d}=L;d?u<d[0]&&d[0]!==0?(Q.value=d[0],fe.value=!1):u>d[1]?(Q.value=d[1],fe.value=!1):(Q.value=d[1],fe.value=!0):(Q.value=0,fe.value=!0)},{immediate:!0});const Kt=({data:L})=>{!L||L.type!=="profile"||(a.value={...a.value,...L.data},[localStorage,sessionStorage].filter(u=>u.getItem("WALINE_USER")).forEach(u=>u.setItem("WALINE_USER",JSON.stringify(a))))};return on(()=>{var L;document.body.addEventListener("click",At),window.addEventListener("message",Kt),(L=r.edit)!=null&&L.objectId&&(s.value=r.edit.orig),Pe(A,async u=>{if(!u)return;const d=i.value.search;$.value&&($.value.value=""),W.loading=!0,W.list=d.default?await d.default():await d.search(""),W.loading=!1}),Pe(()=>s.value,u=>{const{highlighter:d,texRenderer:g}=i.value;Ie.value=u,G.value=gu(u,{emojiMap:y.value.map,highlighter:d,texRenderer:g}),J.value=wu(u),u?Us(f.value):Us.destroy(f.value)},{immediate:!0}),Pe(()=>i.value.emoji,u=>Qc(u).then(d=>{y.value=d}),{immediate:!0})}),Yn(()=>{document.body.removeEventListener("click",At),window.removeEventListener("message",Kt)}),(L,u)=>{var d,g;return I(),O("div",sf,[Z(i).login!=="disable"&&ae.value&&!((d=L.edit)!=null&&d.objectId)?(I(),O("div",of,[F("div",af,[F("button",{type:"submit",class:"wl-logout-btn",title:D.value.logout,onClick:gl},[oe(Z(Is),{size:14})],8,cf),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Ne},[F("img",{src:Z(a).avatar,alt:"avatar"},null,8,ff)],8,uf)]),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Ne,textContent:se(Z(a).display_name)},null,8,df)])):ee("v-if",!0),F("div",hf,[Z(i).login!=="force"&&Z(i).meta.length&&!ae.value?(I(),O("div",{key:0,class:we(["wl-header",`item${Z(i).meta.length}`])},[(I(!0),O(ue,null,Ue(Z(i).meta,m=>(I(),O("div",{key:m,class:"wl-header-item"},[F("label",{for:`wl-${m}`,textContent:se(D.value[m]+(Z(i).requiredMeta.includes(m)||!Z(i).requiredMeta.length?"":`(${D.value.optional})`))},null,8,pf),Jn(F("input",{id:`wl-${m}`,ref_for:!0,ref:w=>{w&&(c.value[m]=w)},"onUpdate:modelValue":w=>Z(o)[m]=w,class:we(["wl-input",`wl-${m}`]),name:m,type:m==="mail"?"email":"text"},null,10,gf),[[xc,Z(o)[m]]])]))),128))],2)):ee("v-if",!0),Jn(F("textarea",{id:"wl-edit",ref_key:"editorRef",ref:f,"onUpdate:modelValue":u[0]||(u[0]=m=>xe(s)?s.value=m:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:D.value.placeholder,onKeydown:Ee,onDrop:gt,onPaste:Tt},null,40,mf),[[al,Z(s)]]),Jn(F("div",vf,[wf,F("h4",null,se(D.value.preview)+":",1),F("div",{class:"wl-content",innerHTML:G.value},null,8,yf)],512),[[Ji,H.value]]),F("div",bf,[F("div",kf,[F("a",xf,[oe(Z(Cu))]),Jn(F("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:we(["wl-action",{active:B.value}]),title:D.value.emoji,onClick:u[1]||(u[1]=m=>B.value=!B.value)},[oe(Z(ku))],10,_f),[[Ji,y.value.tabs.length]]),Z(i).search?(I(),O("button",{key:0,ref_key:"gifButtonRef",ref:S,type:"button",class:we(["wl-action",{active:A.value}]),title:D.value.gif,onClick:u[2]||(u[2]=m=>A.value=!A.value)},[oe(Z(Au))],10,$f)):ee("v-if",!0),F("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:He},null,544),be.value?(I(),O("label",{key:1,for:"wl-image-upload",class:"wl-action",title:D.value.uploadImage},[oe(Z(xu))],8,Cf)):ee("v-if",!0),F("button",{type:"button",class:we(["wl-action",{active:H.value}]),title:D.value.preview,onClick:u[3]||(u[3]=m=>H.value=!H.value)},[oe(Z($u))],10,Ef)]),F("div",Rf,[Tf,F("div",Af,[nt(se(J.value)+" ",1),Z(i).wordLimit?(I(),O("span",If,[nt("  /  "),F("span",{class:we({illegal:!fe.value}),textContent:se(Q.value)},null,10,Sf)])):ee("v-if",!0),nt("  "+se(D.value.word),1)]),Z(i).login!=="disable"&&!ae.value?(I(),O("button",{key:0,type:"button",class:"wl-btn",onClick:pl,textContent:se(D.value.login)},null,8,Lf)):ee("v-if",!0),Z(i).login!=="force"||ae.value?(I(),O("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Ve.value,onClick:$n},[Ve.value?(I(),tt(Z(wn),{key:0,size:16})):(I(),O(ue,{key:1},[nt(se(D.value.submit),1)],64))],8,Mf)):ee("v-if",!0)]),F("div",{ref_key:"gifPopupRef",ref:x,class:we(["wl-gif-popup",{display:A.value}])},[F("input",{ref_key:"gifSearchInputRef",ref:$,type:"text",placeholder:D.value.gifSearchPlaceholder,onInput:u[4]||(u[4]=(...m)=>Z(ot)&&Z(ot)(...m))},null,40,zf),W.list.length?(I(),tt(lf,{key:0,items:W.list,"column-width":200,gap:6,onInsert:u[5]||(u[5]=m=>ye(m)),onScroll:Cn},null,8,["items"])):ee("v-if",!0),W.loading?(I(),O("div",Of,[oe(Z(wn),{size:30})])):ee("v-if",!0)],2),F("div",{ref_key:"emojiPopupRef",ref:v,class:we(["wl-emoji-popup",{display:B.value}])},[(I(!0),O(ue,null,Ue(y.value.tabs,(m,w)=>(I(),O(ue,{key:m.name},[w===C.value?(I(),O("div",jf,[(I(!0),O(ue,null,Ue(m.items,b=>(I(),O("button",{key:b,type:"button",title:b,onClick:E=>ye(`:${b}:`)},[B.value?(I(),O("img",{key:0,class:"wl-emoji",src:y.value.map[b],alt:b,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Uf)):ee("v-if",!0)],8,Pf))),128))])):ee("v-if",!0)],64))),128)),y.value.tabs.length>1?(I(),O("div",Ff,[(I(!0),O(ue,null,Ue(y.value.tabs,(m,w)=>(I(),O("button",{key:m.name,type:"button",class:we(["wl-tab",{active:C.value===w}]),onClick:b=>C.value=w},[F("img",{class:"wl-emoji",src:m.icon,alt:m.name,title:m.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Nf)],10,Hf))),128))])):ee("v-if",!0)],2)])]),L.replyId||(g=L.edit)!=null&&g.objectId?(I(),O("button",{key:1,type:"button",class:"wl-close",title:D.value.cancelReply,onClick:u[6]||(u[6]=m=>L.$emit(L.replyId?"cancelReply":"cancelEdit"))},[oe(Z(Is),{size:24})],8,Df)):ee("v-if",!0)])}}}),Fs=bn(Bf,[["__file","CommentBox.vue"]]);const Wf=["id"],Vf={class:"wl-user","aria-hidden":"true"},Kf=["src"],qf={class:"wl-card"},Zf={class:"wl-head"},Jf=["href"],Qf={key:1,class:"wl-nick"},Yf=["textContent"],Xf=["textContent"],Gf=["textContent"],ed=["textContent"],td=["textContent"],nd={class:"wl-comment-actions"},rd=["title"],ld=["title"],id={class:"wl-meta","aria-hidden":"true"},sd=["data-value","textContent"],od=["innerHTML"],ad={key:1,class:"wl-admin-actions"},cd={class:"wl-comment-status"},ud=["disabled","onClick","textContent"],fd={key:3,class:"wl-quote"};var dd=sn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,l=["approved","waiting","spam"],i=er("config"),s=Ls(),o=Wc(),a=mr(),c=_e(()=>i.value.locale),f=_e(()=>{const{link:y}=n.comment;return y?Ol(y)?y:`https://${y}`:""}),p=_e(()=>s.value.includes(n.comment.objectId)),h=_e(()=>co(n.comment.insertedAt,o.value,c.value)),v=_e(()=>a.value.type==="administrator"),S=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=_e(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),$=_e(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,C)=>{var B;const A=da("CommentCard",!0);return I(),O("div",{id:y.comment.objectId,class:"wl-card-item"},[F("div",Vf,[y.comment.avatar?(I(),O("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar},null,8,Kf)):ee("v-if",!0),y.comment.type?(I(),tt(Z(Tu),{key:1})):ee("v-if",!0)]),F("div",qf,[F("div",Zf,[f.value?(I(),O("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},se(y.comment.nick),9,Jf)):(I(),O("span",Qf,se(y.comment.nick),1)),y.comment.type==="administrator"?(I(),O("span",{key:2,class:"wl-badge",textContent:se(c.value.admin)},null,8,Yf)):ee("v-if",!0),y.comment.label?(I(),O("span",{key:3,class:"wl-badge",textContent:se(y.comment.label)},null,8,Xf)):ee("v-if",!0),y.comment.sticky?(I(),O("span",{key:4,class:"wl-badge",textContent:se(c.value.sticky)},null,8,Gf)):ee("v-if",!0),typeof y.comment.level=="number"?(I(),O("span",{key:5,class:we(`wl-badge level${y.comment.level}`),textContent:se(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,ed)):ee("v-if",!0),F("span",{class:"wl-time",textContent:se(h.value)},null,8,td),F("div",nd,[v.value||S.value?(I(),O(ue,{key:0},[F("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=H=>r("edit",y.comment))},[oe(Z(Ru))]),F("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=H=>r("delete",y.comment))},[oe(Z(bu))])],64)):ee("v-if",!0),F("button",{type:"button",class:"wl-like",title:p.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=H=>r("like",y.comment))},[oe(Z(_u),{active:p.value},null,8,["active"]),nt(" "+se("like"in y.comment?y.comment.like:""),1)],8,rd),F("button",{type:"button",class:we(["wl-reply",{active:x.value}]),title:x.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=H=>r("reply",x.value?null:y.comment))},[oe(Z(Eu))],10,ld)])]),F("div",id,[(I(),O(ue,null,Ue(["addr","browser","os"],H=>(I(),O(ue,null,[y.comment[H]?(I(),O("span",{key:H,class:we(`wl-${H}`),"data-value":y.comment[H],textContent:se(y.comment[H])},null,10,sd)):ee("v-if",!0)],64))),64))]),$.value?ee("v-if",!0):(I(),O("div",{key:0,class:"wl-content",innerHTML:y.comment.comment},null,8,od)),v.value&&!$.value?(I(),O("div",ad,[F("span",cd,[(I(),O(ue,null,Ue(l,H=>F("button",{key:H,type:"submit",class:we(`wl-btn wl-${H}`),disabled:y.comment.status===H,onClick:G=>r("status",{status:H,comment:y.comment}),textContent:se(c.value[H])},null,10,ud)),64))]),v.value&&!("rid"in y.comment)?(I(),O("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=H=>r("sticky",y.comment))},se(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):ee("v-if",!0)])):ee("v-if",!0),x.value||$.value?(I(),O("div",{key:2,class:we({"wl-reply-wrapper":x.value,"wl-edit-wrapper":$.value})},[oe(Fs,{edit:y.edit,"reply-id":(B=y.reply)==null?void 0:B.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:C[5]||(C[5]=H=>r("log")),onCancelReply:C[6]||(C[6]=H=>r("reply",null)),onCancelEdit:C[7]||(C[7]=H=>r("edit",null)),onSubmit:C[8]||(C[8]=H=>r("submit",H))},null,8,["edit","reply-id","reply-user","root-id"])],2)):ee("v-if",!0),"children"in y.comment?(I(),O("div",fd,[(I(!0),O(ue,null,Ue(y.comment.children,H=>(I(),tt(A,{key:H.objectId,comment:H,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:C[9]||(C[9]=G=>r("log")),onDelete:C[10]||(C[10]=G=>r("delete",G)),onEdit:C[11]||(C[11]=G=>r("edit",G)),onLike:C[12]||(C[12]=G=>r("like",G)),onReply:C[13]||(C[13]=G=>r("reply",G)),onStatus:C[14]||(C[14]=G=>r("status",G)),onSticky:C[15]||(C[15]=G=>r("sticky",G)),onSubmit:C[16]||(C[16]=G=>r("submit",G))},null,8,["comment","reply","edit","root-id"]))),128))])):ee("v-if",!0)])],8,Wf)}}}),hd=bn(dd,[["__file","CommentCard.vue"]]);const Hs="3.0.0-alpha.2",pd={"data-waline":""},gd={class:"wl-meta-head"},md={class:"wl-count"},vd=["textContent"],wd={class:"wl-sort"},yd=["onClick"],bd={class:"wl-cards"},kd={key:1,class:"wl-operation"},xd=["textContent"],_d={key:2,class:"wl-loading"},$d=["textContent"],Cd={key:4,class:"wl-operation"},Ed=["textContent"],Rd={key:5,class:"wl-power"},Td=F("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Ad=sn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),l=mr(),i=Ls(),s=V("loading"),o=V(0),a=V(1),c=V(0),f=_e(()=>so(t)),p=V(f.value.commentSorting),h=V([]),v=V(null),S=V(null),x=_e(()=>oo(f.value.dark)),$=_e(()=>f.value.locale);qc(x,{id:"waline-darkmode"});let y;const C=K=>{var D;const{serverURL:ae,path:be,pageSize:ye}=f.value,Ee=new AbortController;s.value="loading",y==null||y(),wl({serverURL:ae,lang:f.value.lang,path:be,pageSize:ye,sortBy:n[p.value],page:K,signal:Ee.signal,token:(D=l.value)==null?void 0:D.token}).then($e=>{s.value="success",o.value=$e.count,h.value.push(...$e.data),a.value=K,c.value=$e.totalPages}).catch($e=>{$e.name!=="AbortError"&&(console.error($e.message),s.value="error")}),y=Ee.abort.bind(Ee)},B=()=>C(a.value+1),A=()=>{o.value=0,h.value=[],C(1)},H=K=>{p.value!==K&&(p.value=K,A())},G=K=>{v.value=K},J=K=>{S.value=K},W=K=>{if(S.value)S.value.comment=K.comment,S.value.orig=K.orig;else if("rid"in K){const D=h.value.find(({objectId:ae})=>ae===K.rid);if(!D)return;Array.isArray(D.children)||(D.children=[]),D.children.push(K)}else h.value.unshift(K),o.value+=1},Q=async({comment:K,status:D})=>{var ae;if(K.status===D)return;const{serverURL:be,lang:ye}=f.value;await Zt({serverURL:be,lang:ye,token:(ae=l.value)==null?void 0:ae.token,objectId:K.objectId,comment:{status:D}}),K.status=D},fe=async K=>{var D;if("rid"in K)return;const{serverURL:ae,lang:be}=f.value;await Zt({serverURL:ae,lang:be,token:(D=l.value)==null?void 0:D.token,objectId:K.objectId,comment:{sticky:K.sticky?0:1}}),K.sticky=!K.sticky},Ie=async({objectId:K})=>{var D;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ae,lang:be}=f.value;await bl({serverURL:ae,lang:be,token:(D=l.value)==null?void 0:D.token,objectId:K}),h.value.some((ye,Ee)=>ye.objectId===K?(h.value=h.value.filter(($e,gt)=>gt!==Ee),!0):ye.children.some(($e,gt)=>$e.objectId===K?(h.value[Ee].children=ye.children.filter((Tt,He)=>He!==gt),!0):!1))},Ve=async K=>{var D;const{serverURL:ae,lang:be}=f.value,{objectId:ye}=K,Ee=i.value.includes(ye);await Zt({serverURL:ae,lang:be,objectId:ye,token:(D=l.value)==null?void 0:D.token,comment:{like:!Ee}}),Ee?i.value=i.value.filter($e=>$e!==ye):(i.value=[...i.value,ye],i.value.length>50&&(i.value=i.value.slice(-50))),K.like=(K.like||0)+(Ee?-1:1)};return Ra("config",f),on(()=>{Pe(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),Yn(()=>y==null?void 0:y()),(K,D)=>(I(),O("div",pd,[oe(Yu),v.value?ee("v-if",!0):(I(),tt(Fs,{key:0,onLog:A,onSubmit:W})),F("div",gd,[F("div",md,[o.value?(I(),O("span",{key:0,class:"wl-num",textContent:se(o.value)},null,8,vd)):ee("v-if",!0),nt(" "+se($.value.comment),1)]),F("ul",wd,[(I(!0),O(ue,null,Ue(Z(r),ae=>(I(),O("li",{key:ae,class:we([ae===p.value?"active":""]),onClick:be=>H(ae)},se($.value[ae]),11,yd))),128))])]),F("div",bd,[(I(!0),O(ue,null,Ue(h.value,ae=>(I(),tt(hd,{key:ae.objectId,"root-id":ae.objectId,comment:ae,reply:v.value,edit:S.value,onLog:A,onReply:G,onEdit:J,onSubmit:W,onStatus:Q,onDelete:Ie,onSticky:fe,onLike:Ve},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(I(),O("div",kd,[F("button",{type:"button",class:"wl-btn",onClick:A,textContent:se($.value.refresh)},null,8,xd)])):s.value==="loading"?(I(),O("div",_d,[oe(Z(wn),{size:30})])):h.value.length?a.value<c.value?(I(),O("div",Cd,[F("button",{type:"button",class:"wl-btn",onClick:B,textContent:se($.value.more)},null,8,Ed)])):ee("v-if",!0):(I(),O("div",{key:3,class:"wl-empty",textContent:se($.value.sofa)},null,8,$d)),f.value.copyright?(I(),O("div",Rd,[nt(" Powered by "),Td,nt(" v"+se(Z(Hs)),1)])):ee("v-if",!0)]))}}),Id=bn(Ad,[["__file","WalineComment.vue"]]);const Ns=(e,t)=>{t.forEach((n,r)=>{n.innerText=e[r].toString()})},Ds=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,s=Array.from(document.querySelectorAll(n)),o=c=>{const f=hl(c);return f!==null&&t!==f},a=c=>_l({serverURL:An(e),paths:c.map(f=>hl(f)||t),lang:l,signal:i.signal}).then(f=>Ns(f,c)).catch(hs);if(r){const c=s.filter(p=>!o(p)),f=s.filter(o);$l({serverURL:An(e),path:t,lang:l}).then(([p])=>Ns(new Array(c.length).fill(p),c)),f.length&&a(f)}else a(s);return i.abort.bind(i)},Sd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?ul(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=en({...l}),o=en({comment:n,pageview:r,path:t}),a=()=>{o.comment&&As({serverURL:s.serverURL,path:o.path,...typeof o.comment=="string"?{selector:o.comment}:{}})},c=()=>{o.pageview&&Ds({serverURL:s.serverURL,path:o.path,...typeof o.pageview=="string"?{selector:o.pageview}:{}})},f=i?Ec(()=>ne(Id,{path:o.path,...s})):null;f&&f.mount(i);const p=_i(a),h=_i(c);return{el:i,update:({comment:v,pageview:S,path:x=window.location.pathname,...$}={})=>{Object.entries($).forEach(([y,C])=>{s[y]=C}),o.path=x,v!==void 0&&(o.comment=v),S!==void 0&&(o.pageview=S)},destroy:()=>{f==null||f.unmount(),p(),h()}}},Ld=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var l;const i=mr(),s=ul(e),o=new AbortController;return Cl({serverURL:t,count:n,lang:r,signal:o.signal,token:(l=i.value)==null?void 0:l.token}).then(a=>s&&a.length?(s.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Md=({el:e,serverURL:t,count:n,locale:r,lang:l=navigator.language,mode:i="list"})=>{const s=ul(e),o=new AbortController;return El({serverURL:t,pageSize:n,lang:l,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Lt[l]||Lt[Al],...typeof r=="object"?r:{}},s.innerHTML=`<ul class="wl-user-${i}">${a.map((c,f)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(p=>p).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};Y.RecentComments=Ld,Y.UserList=Md,Y.addComment=yl,Y.commentCount=As,Y.defaultLocales=Lt,Y.deleteComment=bl,Y.fetchCommentCount=kl,Y.getArticleCounter=yr,Y.getComment=wl,Y.getPageview=_l,Y.getRecentComment=Cl,Y.getUserList=El,Y.init=Sd,Y.login=xl,Y.pageviewCount=Ds,Y.updateArticleCounter=Rn,Y.updateComment=Zt,Y.updatePageview=$l,Y.version=Hs});
54
54
  //# sourceMappingURL=waline.js.map