@waline/client 3.6.0 → 3.7.0

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.
@@ -1,84 +1,88 @@
1
- var Gp=Object.defineProperty;var Zp=(oe,Te,Ie)=>Te in oe?Gp(oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):oe[Te]=Ie;var Eo=(oe,Te,Ie)=>Zp(oe,typeof Te!="symbol"?Te+"":Te,Ie);(function(oe,Te){typeof exports=="object"&&typeof module<"u"?Te(exports):typeof define=="function"&&define.amd?define(["exports"],Te):(oe=typeof globalThis<"u"?globalThis:oe||self,Te(oe.Waline={}))})(this,function(oe){"use strict";var Is;const Te={"Content-Type":"application/json"},Ie=e=>`${e.replace(/\/?$/,"/")}api/`,_t=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Ir=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Ie(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>_t(i,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Ie(e)}article?lang=${t}`,{method:"POST",headers:Te,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>_t(i,"Update counter").data),js=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Ie(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>_t(c,"Get comment data").data)},Os=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Ie(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},zs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Ie(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>_t(s,"Delete comment")),en=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Ie(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Te,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>_t(i,"Update comment")),Fs=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Ie(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>_t(s,"Get comment count").data),Ds=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=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 s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},Hs=({serverURL:e,lang:t,paths:n,signal:r})=>Ir({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Us=e=>On({...e,type:"time",action:"inc"}),Ns=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Ie(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Vs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Ie(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>_t(s,"user list")).then(s=>s.data),To=["nick","mail","link"],Bs=e=>e.filter(t=>To.includes(t)),Ws=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Io=["//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"],Lo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Mo=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Po=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(s=>s.json()).then(({data:s})=>s.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()})}},jo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Oo=/</,zo=/(?:^|\s)\/\/(.+?)$/gm,Fo=/\/\*([\S\s]*?)\*\//gm,Do=new RegExp(`(${jo.source}|${Oo.source})|((?:${zo.source})|(?:${Fo.source}))`,"gmi"),qs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Lr={},Ho=e=>{let t=0;return e.replace(Do,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Lr[r]?i=Lr[r]:(i=qs[t],Lr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%qs.length,l})},Uo=["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"],qe=e=>Object.fromEntries(e.map((t,n)=>[Uo[n],t]));var No=qe(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Ks=qe(["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
- 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?"]),Gs=qe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
3
- El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Zs=qe(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
4
- Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Js=qe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Vo=qe(["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!
6
- 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?"]),Ys=qe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
- Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Qs=qe(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
8
- Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Xs=qe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Bo=qe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const ei="en-US",zn={zh:Xs,"zh-cn":Xs,"zh-tw":Bo,en:Ks,"en-us":Ks,fr:Zs,"fr-fr":Zs,jp:Js,"jp-jp":Js,"pt-br":Vo,ru:Ys,"ru-ru":Ys,vi:Qs,"vi-vn":Qs,de:No,es:Gs,"es-mx":Gs},ti=e=>zn[e.toLowerCase()]||zn[ei.toLowerCase()],ni=e=>Object.keys(zn).includes(e.toLowerCase())?e:ei,ri={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Wo=Object.keys(ri),Fn=Symbol("waline-config"),si=e=>{try{e=decodeURI(e)}catch{}return e},ii=(e="")=>e.replace(/\/$/u,""),li=e=>/^(https?:)?\/\//.test(e),Dn=e=>{const t=ii(e);return li(t)?t:`https://${t}`},qo=e=>Array.isArray(e)?e:e?[0,e]:!1,tn=(e,t)=>e==null||e===!0?t:e===!1?null:e,Ko=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Ws,imageUploader:b,highlighter:E,texRenderer:w,search:$,reaction:H,...I})=>({serverURL:Dn(e),path:si(t),lang:ni(n),locale:{...ti(ni(n)),...typeof r=="object"?r:{}},wordLimit:qo(a),meta:Bs(s),requiredMeta:Bs(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:H===!0?Io:H||null,imageUploader:tn(b,Lo),highlighter:tn(E,Ho),texRenderer:tn(w,Mo),emoji:tn(x,Ws),search:tn($,Po(n))}),zt=e=>typeof e=="string",Mr="{--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}",Go=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Mr}}`:`${e}${Mr}`:e===!0?`:root${Mr}`:"",Pr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Zo=e=>{const t=Pr(e.getDate(),2),n=Pr(e.getMonth()+1,2);return`${Pr(e.getFullYear(),2)}-${n}-${t}`},Jo=(e,t,n)=>{if(!e)return"";const r=zt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:Zo(r)},Yo=/^[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])?)*$/,Qo=e=>Yo.test(e);/**
11
- * @vue/shared v3.5.17
1
+ var Qp=Object.defineProperty;var ed=(oe,Ee,Te)=>Ee in oe?Qp(oe,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):oe[Ee]=Te;var js=(oe,Ee,Te)=>ed(oe,typeof Ee!="symbol"?Ee+"":Ee,Te);(function(oe,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(oe=typeof globalThis<"u"?globalThis:oe||self,Ee(oe.Waline={}))})(this,(function(oe){"use strict";var Tr;const Ee={"Content-Type":"application/json"},Te=e=>`${e.replace(/\/?$/,"/")}api/`,_t=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Pr=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Te(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>_t(i,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Te(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>_t(i,"Update counter").data),Fs=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:o,token:l})=>{const a={};return l&&(a.Authorization=`Bearer ${l}`),fetch(`${Te(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:o,headers:a}).then(c=>c.json()).then(c=>_t(c,"Get comment data").data)},Ds=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Te(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Hs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>_t(s,"Delete comment")),en=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>_t(i,"Update comment")),Us=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Te(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>_t(s,"Get comment count").data),Ns=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=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 s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const o=({data:l})=>{!l||typeof l!="object"||l.type!=="userInfo"||l.data.token&&(s==null||s.close(),window.removeEventListener("message",o),i(l.data))};window.addEventListener("message",o)})},Vs=({serverURL:e,lang:t,paths:n,signal:r})=>Pr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Bs=e=>zn({...e,type:"time",action:"inc"}),Ws=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Te(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(o=>o.json())},qs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Te(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>_t(s,"user list")).then(s=>s.data),jo=["nick","mail","link"],Ks=e=>e.filter(t=>jo.includes(t)),Gs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Oo=["//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"],zo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Fo=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Do=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(s=>s.json()).then(({data:s})=>s.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()})}},Ho=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Uo=/</,No=/(?:^|\s)\/\/(.+?)$/gm,Vo=/\/\*([\S\s]*?)\*\//gm,Bo=new RegExp(`(${Ho.source}|${Uo.source})|((?:${No.source})|(?:${Vo.source}))`,"gmi"),Zs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],jr={},Wo=e=>{let t=0;return e.replace(Bo,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;jr[r]?i=jr[r]:(i=Zs[t],jr[r]=i);const o=`<span style="color: #${i}">${r}</span>`;return t=++t%Zs.length,o})},qo=["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"],qe=e=>Object.fromEntries(e.map((t,n)=>[qo[n],t]));var Ko=qe(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Js=qe(["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
+ 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?"]),Ys=qe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
3
+ El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Xs=qe(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
4
+ Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Qs=qe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Go=qe(["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!
6
+ 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?"]),ei=qe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
+ Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),ti=qe(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
8
+ Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),ni=qe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Zo=qe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const ri="en-US",Fn={zh:ni,"zh-cn":ni,"zh-tw":Zo,en:Js,"en-us":Js,fr:Xs,"fr-fr":Xs,jp:Qs,"jp-jp":Qs,"pt-br":Go,ru:ei,"ru-ru":ei,vi:ti,"vi-vn":ti,de:Ko,es:Ys,"es-mx":Ys},si=e=>Fn[e.toLowerCase()]||Fn[ri.toLowerCase()],ii=e=>Object.keys(Fn).includes(e.toLowerCase())?e:ri,li={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Jo=Object.keys(li),Dn=Symbol("waline-config"),oi=e=>{try{e=decodeURI(e)}catch{}return e},ai=(e="")=>e.replace(/\/$/u,""),ci=e=>/^(https?:)?\/\//.test(e),Hn=e=>{const t=ai(e);return ci(t)?t:`https://${t}`},Yo=e=>Array.isArray(e)?e:e?[0,e]:!1,tn=(e,t)=>e==null||e===!0?t:e===!1?null:e,Xo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:o=!1,pageSize:l=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:p="",commentSorting:b="latest",emoji:m=Gs,imageUploader:k,highlighter:I,texRenderer:A,search:_,reaction:F,...E})=>({serverURL:Hn(e),path:oi(t),lang:ii(n),locale:{...si(ii(n)),...typeof r=="object"?r:{}},wordLimit:Yo(a),meta:Ks(s),requiredMeta:Ks(i),dark:o,pageSize:l,commentSorting:b,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:p,...E,reaction:F===!0?Oo:F||null,imageUploader:tn(k,zo),highlighter:tn(I,Wo),texRenderer:tn(A,Fo),emoji:tn(m,Gs),search:tn(_,Do(n))}),Ft=e=>typeof e=="string",Or="{--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}",Qo=e=>Ft(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Or}}`:`${e}${Or}`:e===!0?`:root${Or}`:"",zr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ea=e=>{const t=zr(e.getDate(),2),n=zr(e.getMonth()+1,2);return`${zr(e.getFullYear(),2)}-${n}-${t}`},ta=(e,t,n)=>{if(!e)return"";const r=Ft(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const o=s%864e5,l=Math.floor(o/(3600*1e3));if(l===0){const a=o%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${l} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:ea(r)},na=/^[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])?)*$/,ra=e=>na.test(e);/**
11
+ * @vue/shared v3.5.22
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
- **//*! #__NO_SIDE_EFFECTS__ */function jr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Ft=[],$t=()=>{},Xo=()=>!1,Hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Or=e=>e.startsWith("onUpdate:"),ze=Object.assign,oi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ea=Object.prototype.hasOwnProperty,ne=(e,t)=>ea.call(e,t),W=Array.isArray,Dt=e=>nn(e)==="[object Map]",Ht=e=>nn(e)==="[object Set]",ai=e=>nn(e)==="[object Date]",re=e=>typeof e=="function",ke=e=>typeof e=="string",Ke=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",ci=e=>(ge(e)||re(e))&&re(e.then)&&re(e.catch),ui=Object.prototype.toString,nn=e=>ui.call(e),ta=e=>nn(e).slice(8,-1),fi=e=>nn(e)==="[object Object]",zr=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},na=/-(\w)/g,Fe=Un(e=>e.replace(na,(t,n)=>n?n.toUpperCase():"")),ra=/\B([A-Z])/g,Ct=Un(e=>e.replace(ra,"-$1").toLowerCase()),Nn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fr=Un(e=>e?`on${Nn(e)}`:""),ut=(e,t)=>!Object.is(e,t),Vn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Dr=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hi;const sn=()=>hi||(hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ke(r)?oa(r):ln(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ke(e)||ge(e))return e}const sa=/;(?![^(]*\))/g,ia=/:([^]+)/,la=/\/\*[^]*?\*\//g;function oa(e){const t={};return e.replace(la,"").split(sa).forEach(n=>{if(n){const r=n.split(ia);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ye(e){let t="";if(ke(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=ye(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const aa=jr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function pi(e){return!!e||e===""}function ca(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=St(e[r],t[r]);return n}function St(e,t){if(e===t)return!0;let n=ai(e),r=ai(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ke(e),r=Ke(t),n||r)return e===t;if(n=W(e),r=W(t),n||r)return n&&r?ca(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!St(e[l],t[l]))return!1}}return String(e)===String(t)}function Hr(e,t){return e.findIndex(n=>St(n,t))}const di=e=>!!(e&&e.__v_isRef===!0),ee=e=>ke(e)?e:e==null?"":W(e)||ge(e)&&(e.toString===ui||!re(e.toString))?di(e)?ee(e.value):JSON.stringify(e,gi,2):String(e),gi=(e,t)=>di(t)?gi(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Ur(r,i)+" =>"]=s,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ur(n))}:Ke(t)?Ur(t):ge(t)&&!W(t)&&!fi(t)?String(t):t,Ur=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
- * @vue/reactivity v3.5.17
14
+ **/function Fr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Dt=[],Ct=()=>{},ui=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Dr=e=>e.startsWith("onUpdate:"),ze=Object.assign,fi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sa=Object.prototype.hasOwnProperty,re=(e,t)=>sa.call(e,t),K=Array.isArray,Ht=e=>nn(e)==="[object Map]",Ut=e=>nn(e)==="[object Set]",hi=e=>nn(e)==="[object Date]",se=e=>typeof e=="function",ke=e=>typeof e=="string",Ke=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",pi=e=>(ge(e)||se(e))&&se(e.then)&&se(e.catch),di=Object.prototype.toString,nn=e=>di.call(e),ia=e=>nn(e).slice(8,-1),gi=e=>nn(e)==="[object Object]",Hr=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Fr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},la=/-\w/g,Fe=Nn(e=>e.replace(la,t=>t.slice(1).toUpperCase())),oa=/\B([A-Z])/g,$t=Nn(e=>e.replace(oa,"-$1").toLowerCase()),Vn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=Nn(e=>e?`on${Vn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},mi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vi;const sn=()=>vi||(vi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ke(r)?fa(r):ln(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ke(e)||ge(e))return e}const aa=/;(?![^(]*\))/g,ca=/:([^]+)/,ua=/\/\*[^]*?\*\//g;function fa(e){const t={};return e.replace(ua,"").split(aa).forEach(n=>{if(n){const r=n.split(ca);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ye(e){let t="";if(ke(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=ye(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ha=Fr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function bi(e){return!!e||e===""}function pa(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=St(e[r],t[r]);return n}function St(e,t){if(e===t)return!0;let n=hi(e),r=hi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ke(e),r=Ke(t),n||r)return e===t;if(n=K(e),r=K(t),n||r)return n&&r?pa(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!St(e[o],t[o]))return!1}}return String(e)===String(t)}function Nr(e,t){return e.findIndex(n=>St(n,t))}const yi=e=>!!(e&&e.__v_isRef===!0),ie=e=>ke(e)?e:e==null?"":K(e)||ge(e)&&(e.toString===di||!se(e.toString))?yi(e)?ie(e.value):JSON.stringify(e,wi,2):String(e),wi=(e,t)=>yi(t)?wi(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Vr(r,i)+" =>"]=s,n),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vr(n))}:Ke(t)?Vr(t):ge(t)&&!K(t)&&!gi(t)?String(t):t,Vr=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
+ * @vue/reactivity v3.5.22
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let $e;class ua{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$e;try{return $e=this,t()}finally{$e=n}}}on(){++this._on===1&&(this.prevScope=$e,$e=this)}off(){this._on>0&&--this._on===0&&($e=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function mi(){return $e}function fa(e,t=!1){$e&&$e.cleanups.push(e)}let pe;const Nr=new WeakSet;class vi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$e&&$e.active&&$e.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Nr.has(this)&&(Nr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$i(this),wi(this);const t=pe,n=Be;pe=this,Be=!0;try{return this.fn()}finally{ki(this),pe=t,Be=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)qr(t);this.deps=this.depsTail=void 0,$i(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Nr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wr(this)&&this.run()}get dirty(){return Wr(this)}}let bi=0,on,an;function yi(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=on,on=e}function Vr(){bi++}function Br(){if(--bi>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function wi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ki(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),qr(r),ha(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Wr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wr(e))))return;e.flags|=2;const t=e.dep,n=pe,r=Be;pe=e,Be=!0;try{wi(e);const s=e.fn(e._value);(t.version===0||ut(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{pe=n,Be=r,ki(e),e.flags&=-3}}function qr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)qr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ha(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const _i=[];function ft(){_i.push(Be),Be=!1}function ht(){const e=_i.pop();Be=e===void 0?!0:e}function $i(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let cn=0;class pa{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pe||!Be||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new pa(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,Ci(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Vr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Br()}}}function Ci(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ci(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qn=new WeakMap,Rt=Symbol(""),Kr=Symbol(""),un=Symbol("");function Ce(e,t,n){if(Be&&pe){let r=qn.get(e);r||qn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Wn),s.map=r,s.key=n),s.track()}}function Xe(e,t,n,r,s,i){const l=qn.get(e);if(!l){cn++;return}const o=a=>{a&&a.trigger()};if(Vr(),t==="clear")l.forEach(o);else{const a=W(e),c=a&&zr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===un||!Ke(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(un)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Rt)),Dt(e)&&o(l.get(Kr)));break;case"delete":a||(o(l.get(Rt)),Dt(e)&&o(l.get(Kr)));break;case"set":Dt(e)&&o(l.get(Rt));break}}Br()}function da(e,t){const n=qn.get(e);return n&&n.get(t)}function Ut(e){const t=te(e);return t===e?t:(Ce(t,"iterate",un),De(e)?t:t.map(xe))}function Kn(e){return Ce(e=te(e),"iterate",un),e}const ga={__proto__:null,[Symbol.iterator](){return Gr(this,Symbol.iterator,xe)},concat(...e){return Ut(this).concat(...e.map(t=>W(t)?Ut(t):t))},entries(){return Gr(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return et(this,"find",e,t,xe,arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zr(this,"includes",e)},indexOf(...e){return Zr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Zr(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return Si(this,"reduce",e,t)},reduceRight(e,...t){return Si(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return Gr(this,"values",xe)}};function Gr(e,t,n){const r=Kn(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ma=Array.prototype;function et(e,t,n,r,s,i){const l=Kn(e),o=l!==e&&!De(e),a=l[t];if(a!==ma[t]){const f=a.apply(e,i);return o?xe(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,xe(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Si(e,t,n,r){const s=Kn(e);let i=n;return s!==e&&(De(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,xe(o),a,e)}),s[t](i,...r)}function Zr(e,t,n){const r=te(e);Ce(r,"iterate",un);const s=r[t](...n);return(s===-1||s===!1)&&Yr(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function fn(e,t,n=[]){ft(),Vr();const r=te(e)[t].apply(e,n);return Br(),ht(),r}const va=jr("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function ba(e){Ke(e)||(e=String(e));const t=te(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class Ai{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Pi:Mi:i?Li:Ii).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=W(t);if(!s){let a;if(l&&(a=ga[n]))return a;if(n==="hasOwnProperty")return ba}const o=Reflect.get(t,n,we(t)?t:r);return(Ke(n)?Ri.has(n):va(n))||(s||Ce(t,"get",n),i)?o:we(o)?l&&zr(n)?o:o.value:ge(o)?s?Nt(o):hn(o):o}}class Ei extends Ai{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=pt(i);if(!De(r)&&!pt(r)&&(i=te(i),r=te(r)),!W(t)&&we(i)&&!we(r))return a?!1:(i.value=r,!0)}const l=W(t)&&zr(n)?Number(n)<t.length:ne(t,n),o=Reflect.set(t,n,r,we(t)?t:s);return t===te(s)&&(l?ut(r,i)&&Xe(t,"set",n,r):Xe(t,"add",n,r)),o}deleteProperty(t,n){const r=ne(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&Xe(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ke(n)||!Ri.has(n))&&Ce(t,"has",n),r}ownKeys(t){return Ce(t,"iterate",W(t)?"length":Rt),Reflect.ownKeys(t)}}class Ti extends Ai{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ya=new Ei,wa=new Ti,ka=new Ei(!0),xa=new Ti(!0),Jr=e=>e,Gn=e=>Reflect.getPrototypeOf(e);function _a(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),l=Dt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Jr:t?Qn:xe;return!t&&Ce(i,"iterate",a?Kr:Rt),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $a(e,t){const n={get(s){const i=this.__v_raw,l=te(i),o=te(s);e||(ut(s,o)&&Ce(l,"get",s),Ce(l,"get",o));const{has:a}=Gn(l),c=t?Jr:e?Qn:xe;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ce(te(s),"iterate",Rt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=te(i),o=te(s);return e||(ut(s,o)&&Ce(l,"has",s),Ce(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=te(o),c=t?Jr:e?Qn:xe;return!e&&Ce(a,"iterate",Rt),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return ze(n,e?{add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear")}:{add(s){!t&&!De(s)&&!pt(s)&&(s=te(s));const i=te(this);return Gn(i).has.call(i,s)||(i.add(s),Xe(i,"add",s,s)),this},set(s,i){!t&&!De(i)&&!pt(i)&&(i=te(i));const l=te(this),{has:o,get:a}=Gn(l);let c=o.call(l,s);c||(s=te(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ut(i,u)&&Xe(l,"set",s,i):Xe(l,"add",s,i),this},delete(s){const i=te(this),{has:l,get:o}=Gn(i);let a=l.call(i,s);a||(s=te(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&Xe(i,"delete",s,void 0),c},clear(){const s=te(this),i=s.size!==0,l=s.clear();return i&&Xe(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=_a(s,e,t)}),n}function Jn(e,t){const n=$a(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ne(n,s)&&s in r?n:r,s,i)}const Ca={get:Jn(!1,!1)},Sa={get:Jn(!1,!0)},Ra={get:Jn(!0,!1)},Aa={get:Jn(!0,!0)},Ii=new WeakMap,Li=new WeakMap,Mi=new WeakMap,Pi=new WeakMap;function Ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ta(e){return e.__v_skip||!Object.isExtensible(e)?0:Ea(ta(e))}function hn(e){return pt(e)?e:Yn(e,!1,ya,Ca,Ii)}function Ia(e){return Yn(e,!1,ka,Sa,Li)}function Nt(e){return Yn(e,!0,wa,Ra,Mi)}function La(e){return Yn(e,!0,xa,Aa,Pi)}function Yn(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ta(e);if(i===0)return e;const l=s.get(e);if(l)return l;const o=new Proxy(e,i===2?r:n);return s.set(e,o),o}function Vt(e){return pt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function pt(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Yr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Ma(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Dr(e,"__v_skip",!0),e}const xe=e=>ge(e)?hn(e):e,Qn=e=>ge(e)?Nt(e):e;function we(e){return e?e.__v_isRef===!0:!1}function ae(e){return ji(e,!1)}function At(e){return ji(e,!0)}function ji(e,t){return we(e)?e:new Pa(e,t)}class Pa{constructor(t,n){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||pt(t);t=r?t:te(t),ut(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function G(e){return we(e)?e.value:e}function Me(e){return re(e)?e():G(e)}const ja={get:(e,t,n)=>t==="__v_raw"?e:G(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Oi(e){return Vt(e)?e:new Proxy(e,ja)}class Oa{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function za(e){return new Oa(e)}class Fa{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return da(te(this._object),this._key)}}class Da{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ha(e,t,n){return we(e)?e:re(e)?new Da(e):ge(e)&&arguments.length>1?Ua(e,t,n):ae(e)}function Ua(e,t,n){const r=e[t];return we(r)?r:new Fa(e,t,n)}class Na{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return yi(this,!0),!0}get value(){const t=this.dep.track();return xi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Va(e,t,n=!1){let r,s;return re(e)?r=e:(r=e.get,s=e.set),new Na(r,s,n)}const Xn={},er=new WeakMap;let Et;function Ba(e,t=!1,n=Et){if(n){let r=er.get(n);r||er.set(n,r=[]),r.push(e)}}function Wa(e,t,n=ue){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=I=>s?I:De(I)||s===!1||s===0?tt(I,1):tt(I);let u,f,d,m,x=!1,b=!1;if(we(e)?(f=()=>e.value,x=De(e)):Vt(e)?(f=()=>c(e),x=!0):W(e)?(b=!0,x=e.some(I=>Vt(I)||De(I)),f=()=>e.map(I=>{if(we(I))return I.value;if(Vt(I))return c(I);if(re(I))return a?a(I,2):I()})):re(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){ft();try{d()}finally{ht()}}const I=Et;Et=u;try{return a?a(e,3,[m]):e(m)}finally{Et=I}}:f=$t,t&&s){const I=f,P=s===!0?1/0:s;f=()=>tt(I(),P)}const E=mi(),w=()=>{u.stop(),E&&E.active&&oi(E.effects,u)};if(i&&t){const I=t;t=(...P)=>{I(...P),w()}}let $=b?new Array(e.length).fill(Xn):Xn;const H=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const P=u.run();if(s||x||(b?P.some((q,Z)=>ut(q,$[Z])):ut(P,$))){d&&d();const q=Et;Et=u;try{const Z=[P,$===Xn?void 0:b&&$[0]===Xn?[]:$,m];$=P,a?a(t,3,Z):t(...Z)}finally{Et=q}}}else u.run()};return o&&o(H),u=new vi(f),u.scheduler=l?()=>l(H,!1):H,m=I=>Ba(I,!1,u),d=u.onStop=()=>{const I=er.get(u);if(I){if(a)a(I,4);else for(const P of I)P();er.delete(u)}},t?r?H(!0):$=u.run():l?l(H.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function tt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,we(e))tt(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if(Ht(e)||Dt(e))e.forEach(r=>{tt(r,t,n)});else if(fi(e)){for(const r in e)tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tt(e[r],t,n)}return e}/**
19
- * @vue/runtime-core v3.5.17
18
+ **/let Ce;class da{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ki(){return Ce}function ga(e,t=!1){Ce&&Ce.cleanups.push(e)}let pe;const Br=new WeakSet;class xi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Br.has(this)&&(Br.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ci(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ei(this),$i(this);const t=pe,n=Be;pe=this,Be=!0;try{return this.fn()}finally{Si(this),pe=t,Be=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gr(t);this.deps=this.depsTail=void 0,Ei(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Br.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kr(this)&&this.run()}get dirty(){return Kr(this)}}let _i=0,on,an;function Ci(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=on,on=e}function Wr(){_i++}function qr(){if(--_i>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function $i(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Si(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Gr(r),ma(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Kr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ri(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ri(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kr(e))))return;e.flags|=2;const t=e.dep,n=pe,r=Be;pe=e,Be=!0;try{$i(e);const s=e.fn(e._value);(t.version===0||ht(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{pe=n,Be=r,Si(e),e.flags&=-3}}function Gr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Gr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ma(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const Ai=[];function pt(){Ai.push(Be),Be=!1}function dt(){const e=Ai.pop();Be=e===void 0?!0:e}function Ei(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let cn=0;class va{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pe||!Be||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new va(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,Ti(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Wr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{qr()}}}function Ti(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ti(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Kn=new WeakMap,Rt=Symbol(""),Zr=Symbol(""),un=Symbol("");function $e(e,t,n){if(Be&&pe){let r=Kn.get(e);r||Kn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qn),s.map=r,s.key=n),s.track()}}function nt(e,t,n,r,s,i){const o=Kn.get(e);if(!o){cn++;return}const l=a=>{a&&a.trigger()};if(Wr(),t==="clear")o.forEach(l);else{const a=K(e),c=a&&Hr(n);if(a&&n==="length"){const u=Number(r);o.forEach((f,p)=>{(p==="length"||p===un||!Ke(p)&&p>=u)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),c&&l(o.get(un)),t){case"add":a?c&&l(o.get("length")):(l(o.get(Rt)),Ht(e)&&l(o.get(Zr)));break;case"delete":a||(l(o.get(Rt)),Ht(e)&&l(o.get(Zr)));break;case"set":Ht(e)&&l(o.get(Rt));break}}qr()}function ba(e,t){const n=Kn.get(e);return n&&n.get(t)}function Nt(e){const t=te(e);return t===e?t:($e(t,"iterate",un),De(e)?t:t.map(xe))}function Gn(e){return $e(e=te(e),"iterate",un),e}const ya={__proto__:null,[Symbol.iterator](){return Jr(this,Symbol.iterator,xe)},concat(...e){return Nt(this).concat(...e.map(t=>K(t)?Nt(t):t))},entries(){return Jr(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return rt(this,"find",e,t,xe,arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yr(this,"includes",e)},indexOf(...e){return Yr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Yr(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return Li(this,"reduce",e,t)},reduceRight(e,...t){return Li(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return Jr(this,"values",xe)}};function Jr(e,t,n){const r=Gn(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const wa=Array.prototype;function rt(e,t,n,r,s,i){const o=Gn(e),l=o!==e&&!De(e),a=o[t];if(a!==wa[t]){const f=a.apply(e,i);return l?xe(f):f}let c=n;o!==e&&(l?c=function(f,p){return n.call(this,xe(f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(o,c,r);return l&&s?s(u):u}function Li(e,t,n,r){const s=Gn(e);let i=n;return s!==e&&(De(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,xe(l),a,e)}),s[t](i,...r)}function Yr(e,t,n){const r=te(e);$e(r,"iterate",un);const s=r[t](...n);return(s===-1||s===!1)&&Qr(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function fn(e,t,n=[]){pt(),Wr();const r=te(e)[t].apply(e,n);return qr(),dt(),r}const ka=Fr("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function xa(e){Ke(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class Mi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Di:Fi:i?zi:Oi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!s){let a;if(o&&(a=ya[n]))return a;if(n==="hasOwnProperty")return xa}const l=Reflect.get(t,n,we(t)?t:r);if((Ke(n)?Ii.has(n):ka(n))||(s||$e(t,"get",n),i))return l;if(we(l)){const a=o&&Hr(n)?l:l.value;return s&&ge(a)?At(a):a}return ge(l)?s?At(l):hn(l):l}}class Pi extends Mi{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=gt(i);if(!De(r)&&!gt(r)&&(i=te(i),r=te(r)),!K(t)&&we(i)&&!we(r))return a||(i.value=r),!0}const o=K(t)&&Hr(n)?Number(n)<t.length:re(t,n),l=Reflect.set(t,n,r,we(t)?t:s);return t===te(s)&&(o?ht(r,i)&&nt(t,"set",n,r):nt(t,"add",n,r)),l}deleteProperty(t,n){const r=re(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&nt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ke(n)||!Ii.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",K(t)?"length":Rt),Reflect.ownKeys(t)}}class ji extends Mi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _a=new Pi,Ca=new ji,$a=new Pi(!0),Sa=new ji(!0),Xr=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function Ra(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),o=Ht(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=s[e](...r),u=n?Xr:t?Qn:xe;return!t&&$e(i,"iterate",a?Zr:Rt),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Aa(e,t){const n={get(s){const i=this.__v_raw,o=te(i),l=te(s);e||(ht(s,l)&&$e(o,"get",s),$e(o,"get",l));const{has:a}=Zn(o),c=t?Xr:e?Qn:xe;if(a.call(o,s))return c(i.get(s));if(a.call(o,l))return c(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&$e(te(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,o=te(i),l=te(s);return e||(ht(s,l)&&$e(o,"has",s),$e(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=te(l),c=t?Xr:e?Qn:xe;return!e&&$e(a,"iterate",Rt),l.forEach((u,f)=>s.call(i,c(u),c(f),o))}};return ze(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!De(s)&&!gt(s)&&(s=te(s));const i=te(this);return Zn(i).has.call(i,s)||(i.add(s),nt(i,"add",s,s)),this},set(s,i){!t&&!De(i)&&!gt(i)&&(i=te(i));const o=te(this),{has:l,get:a}=Zn(o);let c=l.call(o,s);c||(s=te(s),c=l.call(o,s));const u=a.call(o,s);return o.set(s,i),c?ht(i,u)&&nt(o,"set",s,i):nt(o,"add",s,i),this},delete(s){const i=te(this),{has:o,get:l}=Zn(i);let a=o.call(i,s);a||(s=te(s),a=o.call(i,s)),l&&l.call(i,s);const c=i.delete(s);return a&&nt(i,"delete",s,void 0),c},clear(){const s=te(this),i=s.size!==0,o=s.clear();return i&&nt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ra(s,e,t)}),n}function Yn(e,t){const n=Aa(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(re(n,s)&&s in r?n:r,s,i)}const Ea={get:Yn(!1,!1)},Ta={get:Yn(!1,!0)},La={get:Yn(!0,!1)},Ia={get:Yn(!0,!0)},Oi=new WeakMap,zi=new WeakMap,Fi=new WeakMap,Di=new WeakMap;function Ma(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ma(ia(e))}function hn(e){return gt(e)?e:Xn(e,!1,_a,Ea,Oi)}function ja(e){return Xn(e,!1,$a,Ta,zi)}function At(e){return Xn(e,!0,Ca,La,Fi)}function Oa(e){return Xn(e,!0,Sa,Ia,Di)}function Xn(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Pa(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Qr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function za(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&mi(e,"__v_skip",!0),e}const xe=e=>ge(e)?hn(e):e,Qn=e=>ge(e)?At(e):e;function we(e){return e?e.__v_isRef===!0:!1}function ae(e){return Hi(e,!1)}function Et(e){return Hi(e,!0)}function Hi(e,t){return we(e)?e:new Fa(e,t)}class Fa{constructor(t,n){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||gt(t);t=r?t:te(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function W(e){return we(e)?e.value:e}function Ie(e){return se(e)?e():W(e)}const Da={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ui(e){return Vt(e)?e:new Proxy(e,Da)}class Ha{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ua(e){return new Ha(e)}class Na{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ba(te(this._object),this._key)}}class Va{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ba(e,t,n){return we(e)?e:se(e)?new Va(e):ge(e)&&arguments.length>1?Wa(e,t,n):ae(e)}function Wa(e,t,n){const r=e[t];return we(r)?r:new Na(e,t,n)}class qa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return Ci(this,!0),!0}get value(){const t=this.dep.track();return Ri(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ka(e,t,n=!1){let r,s;return se(e)?r=e:(r=e.get,s=e.set),new qa(r,s,n)}const er={},tr=new WeakMap;let Tt;function Ga(e,t=!1,n=Tt){if(n){let r=tr.get(n);r||tr.set(n,r=[]),r.push(e)}}function Za(e,t,n=ue){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,c=E=>s?E:De(E)||s===!1||s===0?st(E,1):st(E);let u,f,p,b,m=!1,k=!1;if(we(e)?(f=()=>e.value,m=De(e)):Vt(e)?(f=()=>c(e),m=!0):K(e)?(k=!0,m=e.some(E=>Vt(E)||De(E)),f=()=>e.map(E=>{if(we(E))return E.value;if(Vt(E))return c(E);if(se(E))return a?a(E,2):E()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){pt();try{p()}finally{dt()}}const E=Tt;Tt=u;try{return a?a(e,3,[b]):e(b)}finally{Tt=E}}:f=Ct,t&&s){const E=f,P=s===!0?1/0:s;f=()=>st(E(),P)}const I=ki(),A=()=>{u.stop(),I&&I.active&&fi(I.effects,u)};if(i&&t){const E=t;t=(...P)=>{E(...P),A()}}let _=k?new Array(e.length).fill(er):er;const F=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const P=u.run();if(s||m||(k?P.some((V,G)=>ht(V,_[G])):ht(P,_))){p&&p();const V=Tt;Tt=u;try{const G=[P,_===er?void 0:k&&_[0]===er?[]:_,b];_=P,a?a(t,3,G):t(...G)}finally{Tt=V}}}else u.run()};return l&&l(F),u=new xi(f),u.scheduler=o?()=>o(F,!1):F,b=E=>Ga(E,!1,u),p=u.onStop=()=>{const E=tr.get(u);if(E){if(a)a(E,4);else for(const P of E)P();tr.delete(u)}},t?r?F(!0):_=u.run():o?o(F.bind(null,!0),!0):u.run(),A.pause=u.pause.bind(u),A.resume=u.resume.bind(u),A.stop=A,A}function st(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))st(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if(Ut(e)||Ht(e))e.forEach(r=>{st(r,t,n)});else if(gi(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}/**
19
+ * @vue/runtime-core v3.5.22
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/function pn(e,t,n,r){try{return r?e(...r):e()}catch(s){tr(s,t,n)}}function nt(e,t,n,r){if(re(e)){const s=pn(e,t,n,r);return s&&ci(s)&&s.catch(i=>{tr(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i<e.length;i++)s.push(nt(e[i],t,n,r));return s}}function tr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(i){ft(),pn(i,null,10,[e,a,c]),ht();return}}qa(e,n,s,r,l)}function qa(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let Ge=-1;const Bt=[];let dt=null,Wt=0;const zi=Promise.resolve();let nr=null;function qt(e){const t=nr||zi;return e?t.then(this?e.bind(this):e):t}function Ka(e){let t=Ge+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=dn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Qr(e){if(!(e.flags&1)){const t=dn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=dn(n)?Se.push(e):Se.splice(Ka(t),0,e),e.flags|=1,Fi()}}function Fi(){nr||(nr=zi.then(Ui))}function Ga(e){W(e)?Bt.push(...e):dt&&e.id===-1?dt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Fi()}function Di(e,t,n=Ge+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Hi(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>dn(n)-dn(r));if(Bt.length=0,dt){dt.push(...t);return}for(dt=t,Wt=0;Wt<dt.length;Wt++){const n=dt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}dt=null,Wt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ui(e){try{for(Ge=0;Ge<Se.length;Ge++){const t=Se[Ge];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ge<Se.length;Ge++){const t=Se[Ge];t&&(t.flags&=-2)}Ge=-1,Se.length=0,Hi(),nr=null,(Se.length||Bt.length)&&Ui()}}let Le=null,Ni=null;function rr(e){const t=Le;return Le=e,Ni=e&&e.type.__scopeId||null,t}function Za(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ol(-1);const i=rr(t);let l;try{l=e(...s)}finally{rr(i),r._d&&ol(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function sr(e,t){if(Le===null)return e;const n=fr(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=ue]=t[s];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&tt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Tt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(ft(),nt(a,n,8,[e.el,o,e,t]),ht())}}const Ja=Symbol("_vte"),Ya=e=>e.__isTeleport;function Xr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return re(e)?ze({name:e.name},t,{setup:e}):e}function Qa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gt(e){const t=ul(),n=At(null);if(t){const s=t.refs===ue?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function mn(e,t,n,r,s=!1){if(W(e)){e.forEach((x,b)=>mn(x,t&&(W(t)?t[b]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?fr(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ue?o.refs={}:o.refs,f=o.setupState,d=te(f),m=f===ue?()=>!1:x=>ne(d,x);if(c!=null&&c!==a&&(ke(c)?(u[c]=null,m(c)&&(f[c]=null)):we(c)&&(c.value=null)),re(a))pn(a,o,12,[l,u]);else{const x=ke(a),b=we(a);if(x||b){const E=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;s?W(w)&&oi(w,i):W(w)?w.includes(i)||w.push(i):x?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(E.id=-1,Pe(E,n)):E()}}}sn().requestIdleCallback,sn().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,Xa=e=>e.type.__isKeepAlive;function ec(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{ft();const o=fs(n),a=nt(t,n,e,l);return o(),ht(),a});return r?s.unshift(i):s.push(i),i}}const es=e=>(t,n=Re)=>{(!_n||e==="sp")&&ec(e,(...r)=>t(...r),n)},bn=es("m"),tc=es("bum"),ts=es("um"),nc="components";function rc(e,t){return ic(nc,e,!0,t)||e}const sc=Symbol.for("v-ndc");function ic(e,t,n=!0,r=!1){const s=Le||Re;if(s){const i=s.type;{const o=Nc(i,!1);if(o&&(o===t||o===Fe(t)||o===Nn(Fe(t))))return i}const l=Vi(s[e]||i[e],t)||Vi(s.appContext[e],t);return!l&&r?i:l}}function Vi(e,t){return e&&(e[t]||e[Fe(t)]||e[Nn(Fe(t))])}function He(e,t,n,r){let s;const i=n,l=W(e);if(l||ke(e)){const o=l&&Vt(e);let a=!1,c=!1;o&&(a=!De(e),c=pt(e),e=Kn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Qn(xe(e[u])):xe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(ge(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ns=e=>e?hl(e)?fr(e):ns(e.parent):null,yn=ze(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=>ns(e.parent),$root:e=>ns(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Qr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>$t}),rs=(e,t)=>e!==ue&&!e.__isScriptSetup&&ne(e,t),lc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(rs(r,t))return l[t]=1,r[t];if(s!==ue&&ne(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&ne(c,t))return l[t]=3,i[t];if(n!==ue&&ne(n,t))return l[t]=4,n[t];l[t]=0}}const u=yn[t];let f,d;if(u)return t==="$attrs"&&Ce(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==ue&&ne(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ne(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return rs(s,t)?(s[t]=n,!0):r!==ue&&ne(r,t)?(r[t]=n,!0):ne(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:s,propsOptions:i}},l){let o;return!!n[l]||e!==ue&&ne(e,l)||rs(t,l)||(o=i[0])&&ne(o,l)||ne(r,l)||ne(yn,l)||ne(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bi(){return{app:null,config:{isNativeTag:Xo,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 oc=0;function ac(e,t){return function(r,s=null){re(r)||(r=ze({},r)),s!=null&&!ge(s)&&(s=null);const i=Bi(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:oc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Bc,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&re(u.install)?(l.add(u),u.install(c,...f)):re(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||fe(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,fr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(nt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function cc(e,t){if(Re){let n=Re.provides;const r=Re.parent&&Re.parent.provides;r===n&&(n=Re.provides=Object.create(r)),n[e]=t}}function ir(e,t,n=!1){const r=Re||Le;if(r||Kt){let s=Kt?Kt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&re(t)?t.call(r&&r.proxy):t}}const Wi={},qi=()=>Object.create(Wi),Ki=e=>Object.getPrototypeOf(e)===Wi;function uc(e,t,n,r=!1){const s={},i=qi();e.propsDefaults=Object.create(null),Gi(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Ia(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function fc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=te(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(lr(e.emitsOptions,d))continue;const m=t[d];if(a)if(ne(i,d))m!==i[d]&&(i[d]=m,c=!0);else{const x=Fe(d);s[x]=ss(a,o,x,m,e,!1)}else m!==i[d]&&(i[d]=m,c=!0)}}}else{Gi(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!ne(t,f)&&((u=Ct(f))===f||!ne(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ss(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!ne(t,f))&&(delete i[f],c=!0)}c&&Xe(e.attrs,"set","")}function Gi(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const c=t[a];let u;s&&ne(s,u=Fe(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:lr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=te(n),c=o||ue;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ss(s,a,f,c[f],e,!ne(c,f))}}return l}function ss(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=ne(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&re(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=fs(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===Ct(n))&&(r=!0))}return r}function hc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i)return ge(e)&&r.set(e,Ft),Ft;if(W(i))for(let c=0;c<i.length;c++){const u=Fe(i[c]);Zi(u)&&(l[u]=ue)}else if(i)for(const c in i){const u=Fe(c);if(Zi(u)){const f=i[c],d=l[u]=W(f)||re(f)?{type:f}:ze({},f),m=d.type;let x=!1,b=!0;if(W(m))for(let E=0;E<m.length;++E){const w=m[E],$=re(w)&&w.name;if($==="Boolean"){x=!0;break}else $==="String"&&(b=!1)}else x=re(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||ne(d,"default"))&&o.push(u)}}const a=[l,o];return ge(e)&&r.set(e,a),a}function Zi(e){return e[0]!=="$"&&!rn(e)}const is=e=>e[0]==="_"||e==="$stable",ls=e=>W(e)?e.map(Ze):[Ze(e)],pc=(e,t,n)=>{if(t._n)return t;const r=Za((...s)=>ls(t(...s)),n);return r._c=!1,r},Ji=(e,t,n)=>{const r=e._ctx;for(const s in e){if(is(s))continue;const i=e[s];if(re(i))t[s]=pc(s,i,r);else if(i!=null){const l=ls(i);t[s]=()=>l}}},Yi=(e,t)=>{const n=ls(t);e.slots.default=()=>n},Qi=(e,t,n)=>{for(const r in t)(n||!is(r))&&(e[r]=t[r])},dc=(e,t,n)=>{const r=e.slots=qi();if(e.vnode.shapeFlag&32){const s=t.__;s&&Dr(r,"__",s,!0);const i=t._;i?(Qi(r,t,n),n&&Dr(r,"_",i,!0)):Ji(t,r)}else t&&Yi(e,t)},gc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:Qi(s,t,n):(i=!t.$stable,Ji(t,s)),l=t}else t&&(Yi(e,t),l={default:1});if(i)for(const o in s)!is(o)&&l[o]==null&&delete s[o]};function mc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(sn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=Tc;function vc(e){return bc(e)}function bc(e,t){mc();const n=sn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=$t,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,C=null,S=!!p.dynamicChildren)=>{if(h===p)return;h&&!xn(h,p)&&(y=Ot(h),We(h,k,v,!0),h=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:D,shapeFlag:T}=p;switch(_){case or:E(h,p,g,y);break;case vt:w(h,p,g,y);break;case as:h==null&&$(p,g,y,A);break;case de:Q(h,p,g,y,k,v,A,C,S);break;default:T&1?P(h,p,g,y,k,v,A,C,S):T&6?V(h,p,g,y,k,v,A,C,S):(T&64||T&128)&&_.process(h,p,g,y,k,v,A,C,S,R)}D!=null&&k?mn(D,h&&h.ref,v,p||h,!p):D==null&&h&&h.ref!=null&&mn(h.ref,null,v,h,!0)},E=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},$=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},H=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),s(h),h=g;s(p)},P=(h,p,g,y,k,v,A,C,S)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?q(p,g,y,k,v,A,C,S):_e(h,p,k,v,A,C,S)},q=(h,p,g,y,k,v,A,C)=>{let S,_;const{props:D,shapeFlag:T,transition:O,dirs:B}=h;if(S=h.el=l(h.type,v,D&&D.is,D),T&8?u(S,h.children):T&16&&N(h.children,S,null,y,k,os(h,v),A,C),B&&Tt(h,null,y,"created"),Z(S,h,h.scopeId,A,y),D){for(const ce in D)ce!=="value"&&!rn(ce)&&i(S,ce,null,D[ce],v,y);"value"in D&&i(S,"value",null,D.value,v),(_=D.onVnodeBeforeMount)&&Je(_,y,h)}B&&Tt(h,null,y,"beforeMount");const J=yc(k,O);J&&O.beforeEnter(S),r(S,p,g),((_=D&&D.onVnodeMounted)||J||B)&&Pe(()=>{_&&Je(_,y,h),J&&O.enter(S),B&&Tt(h,null,y,"mounted")},k)},Z=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||ll(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;Z(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},N=(h,p,g,y,k,v,A,C,S=0)=>{for(let _=S;_<h.length;_++){const D=h[_]=C?bt(h[_]):Ze(h[_]);b(null,D,p,g,y,k,v,A,C)}},_e=(h,p,g,y,k,v,A)=>{const C=p.el=h.el;let{patchFlag:S,dynamicChildren:_,dirs:D}=p;S|=h.patchFlag&16;const T=h.props||ue,O=p.props||ue;let B;if(g&&It(g,!1),(B=O.onVnodeBeforeUpdate)&&Je(B,g,p,h),D&&Tt(p,h,g,"beforeUpdate"),g&&It(g,!0),(T.innerHTML&&O.innerHTML==null||T.textContent&&O.textContent==null)&&u(C,""),_?be(h.dynamicChildren,_,C,g,y,os(p,k),v):A||xt(h,p,C,null,g,y,os(p,k),v,!1),S>0){if(S&16)U(C,T,O,g,k);else if(S&2&&T.class!==O.class&&i(C,"class",null,O.class,k),S&4&&i(C,"style",T.style,O.style,k),S&8){const J=p.dynamicProps;for(let ce=0;ce<J.length;ce++){const he=J[ce],Ne=T[he],Ee=O[he];(Ee!==Ne||he==="value")&&i(C,he,Ne,Ee,k,g)}}S&1&&h.children!==p.children&&u(C,p.children)}else!A&&_==null&&U(C,T,O,g,k);((B=O.onVnodeUpdated)||D)&&Pe(()=>{B&&Je(B,g,p,h),D&&Tt(p,h,g,"updated")},y)},be=(h,p,g,y,k,v,A)=>{for(let C=0;C<p.length;C++){const S=h[C],_=p[C],D=S.el&&(S.type===de||!xn(S,_)||S.shapeFlag&198)?f(S.el):g;b(S,_,D,null,y,k,v,A,!0)}},U=(h,p,g,y,k)=>{if(p!==g){if(p!==ue)for(const v in p)!rn(v)&&!(v in g)&&i(h,v,p[v],null,k,y);for(const v in g){if(rn(v))continue;const A=g[v],C=p[v];A!==C&&v!=="value"&&i(h,v,C,A,k,y)}"value"in g&&i(h,"value",p.value,g.value,k)}},Q=(h,p,g,y,k,v,A,C,S)=>{const _=p.el=h?h.el:o(""),D=p.anchor=h?h.anchor:o("");let{patchFlag:T,dynamicChildren:O,slotScopeIds:B}=p;B&&(C=C?C.concat(B):B),h==null?(r(_,g,y),r(D,g,y),N(p.children||[],g,D,k,v,A,C,S)):T>0&&T&64&&O&&h.dynamicChildren?(be(h.dynamicChildren,O,g,k,v,A,C),(p.key!=null||k&&p===k.subTree)&&Xi(h,p,!0)):xt(h,p,g,D,k,v,A,C,S)},V=(h,p,g,y,k,v,A,C,S)=>{p.slotScopeIds=C,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,S):F(p,g,y,k,v,A,S):X(h,p,S)},F=(h,p,g,y,k,v,A)=>{const C=h.component=zc(h,y,k);if(Xa(h)&&(C.ctx.renderer=R),Fc(C,!1,A),C.asyncDep){if(k&&k.registerDep(C,le,A),!h.el){const S=C.subTree=fe(vt);w(null,S,p,g)}}else le(C,h,p,g,k,v,A)},X=(h,p,g)=>{const y=p.component=h.component;if(Ac(h,p,g))if(y.asyncDep&&!y.asyncResolved){ct(y,p,g);return}else y.next=p,y.update();else p.el=h.el,y.vnode=p},le=(h,p,g,y,k,v,A)=>{const C=()=>{if(h.isMounted){let{next:T,bu:O,u:B,parent:J,vnode:ce}=h;{const Pn=el(h);if(Pn){T&&(T.el=ce.el,ct(h,T,A)),Pn.asyncDep.then(()=>{h.isUnmounted||C()});return}}let he=T,Ne;It(h,!1),T?(T.el=ce.el,ct(h,T,A)):T=ce,O&&Vn(O),(Ne=T.props&&T.props.onVnodeBeforeUpdate)&&Je(Ne,J,T,ce),It(h,!0);const Ee=sl(h),Ve=h.subTree;h.subTree=Ee,b(Ve,Ee,f(Ve.el),Ot(Ve),h,k,v),T.el=Ee.el,he===null&&Ec(h,Ee.el),B&&Pe(B,k),(Ne=T.props&&T.props.onVnodeUpdated)&&Pe(()=>Je(Ne,J,T,ce),k)}else{let T;const{props:O}=p,{bm:B,m:J,parent:ce,root:he,type:Ne}=h,Ee=vn(p);It(h,!1),B&&Vn(B),!Ee&&(T=O&&O.onVnodeBeforeMount)&&Je(T,ce,p),It(h,!0);{he.ce&&he.ce._def.shadowRoot!==!1&&he.ce._injectChildStyle(Ne);const Ve=h.subTree=sl(h);b(null,Ve,g,y,h,k,v),p.el=Ve.el}if(J&&Pe(J,k),!Ee&&(T=O&&O.onVnodeMounted)){const Ve=p;Pe(()=>Je(T,ce,Ve),k)}(p.shapeFlag&256||ce&&vn(ce.vnode)&&ce.vnode.shapeFlag&256)&&h.a&&Pe(h.a,k),h.isMounted=!0,p=g=y=null}};h.scope.on();const S=h.effect=new vi(C);h.scope.off();const _=h.update=S.run.bind(S),D=h.job=S.runIfDirty.bind(S);D.i=h,D.id=h.uid,S.scheduler=()=>Qr(D),It(h,!0),_()},ct=(h,p,g)=>{p.component=h;const y=h.vnode.props;h.vnode=p,h.next=null,fc(h,p.props,y,g),gc(h,p.children,g),ft(),Di(h),ht()},xt=(h,p,g,y,k,v,A,C,S=!1)=>{const _=h&&h.children,D=h?h.shapeFlag:0,T=p.children,{patchFlag:O,shapeFlag:B}=p;if(O>0){if(O&128){Ar(_,T,g,y,k,v,A,C,S);return}else if(O&256){Mn(_,T,g,y,k,v,A,C,S);return}}B&8?(D&16&&jt(_,k,v),T!==_&&u(g,T)):D&16?B&16?Ar(_,T,g,y,k,v,A,C,S):jt(_,k,v,!0):(D&8&&u(g,""),B&16&&N(T,g,y,k,v,A,C,S))},Mn=(h,p,g,y,k,v,A,C,S)=>{h=h||Ft,p=p||Ft;const _=h.length,D=p.length,T=Math.min(_,D);let O;for(O=0;O<T;O++){const B=p[O]=S?bt(p[O]):Ze(p[O]);b(h[O],B,g,null,k,v,A,C,S)}_>D?jt(h,k,v,!0,!1,T):N(p,g,y,k,v,A,C,S,T)},Ar=(h,p,g,y,k,v,A,C,S)=>{let _=0;const D=p.length;let T=h.length-1,O=D-1;for(;_<=T&&_<=O;){const B=h[_],J=p[_]=S?bt(p[_]):Ze(p[_]);if(xn(B,J))b(B,J,g,null,k,v,A,C,S);else break;_++}for(;_<=T&&_<=O;){const B=h[T],J=p[O]=S?bt(p[O]):Ze(p[O]);if(xn(B,J))b(B,J,g,null,k,v,A,C,S);else break;T--,O--}if(_>T){if(_<=O){const B=O+1,J=B<D?p[B].el:y;for(;_<=O;)b(null,p[_]=S?bt(p[_]):Ze(p[_]),g,J,k,v,A,C,S),_++}}else if(_>O)for(;_<=T;)We(h[_],k,v,!0),_++;else{const B=_,J=_,ce=new Map;for(_=J;_<=O;_++){const Oe=p[_]=S?bt(p[_]):Ze(p[_]);Oe.key!=null&&ce.set(Oe.key,_)}let he,Ne=0;const Ee=O-J+1;let Ve=!1,Pn=0;const jn=new Array(Ee);for(_=0;_<Ee;_++)jn[_]=0;for(_=B;_<=T;_++){const Oe=h[_];if(Ne>=Ee){We(Oe,k,v,!0);continue}let Qe;if(Oe.key!=null)Qe=ce.get(Oe.key);else for(he=J;he<=O;he++)if(jn[he-J]===0&&xn(Oe,p[he])){Qe=he;break}Qe===void 0?We(Oe,k,v,!0):(jn[Qe-J]=_+1,Qe>=Pn?Pn=Qe:Ve=!0,b(Oe,p[Qe],g,null,k,v,A,C,S),Ne++)}const Ro=Ve?wc(jn):Ft;for(he=Ro.length-1,_=Ee-1;_>=0;_--){const Oe=J+_,Qe=p[Oe],Ao=Oe+1<D?p[Oe+1].el:y;jn[_]===0?b(null,Qe,g,Ao,k,v,A,C,S):Ve&&(he<0||_!==Ro[he]?Qt(Qe,g,Ao,2):he--)}}},Qt=(h,p,g,y,k=null)=>{const{el:v,type:A,transition:C,children:S,shapeFlag:_}=h;if(_&6){Qt(h.component.subTree,p,g,y);return}if(_&128){h.suspense.move(p,g,y);return}if(_&64){A.move(h,p,g,R);return}if(A===de){r(v,p,g);for(let T=0;T<S.length;T++)Qt(S[T],p,g,y);r(h.anchor,p,g);return}if(A===as){H(h,p,g);return}if(y!==2&&_&1&&C)if(y===0)C.beforeEnter(v),r(v,p,g),Pe(()=>C.enter(v),k);else{const{leave:T,delayLeave:O,afterLeave:B}=C,J=()=>{h.ctx.isUnmounted?s(v):r(v,p,g)},ce=()=>{T(v,()=>{J(),B&&B()})};O?O(v,J,ce):ce()}else r(v,p,g)},We=(h,p,g,y=!1,k=!1)=>{const{type:v,props:A,ref:C,children:S,dynamicChildren:_,shapeFlag:D,patchFlag:T,dirs:O,cacheIndex:B}=h;if(T===-2&&(k=!1),C!=null&&(ft(),mn(C,null,g,h,!0),ht()),B!=null&&(p.renderCache[B]=void 0),D&256){p.ctx.deactivate(h);return}const J=D&1&&O,ce=!vn(h);let he;if(ce&&(he=A&&A.onVnodeBeforeUnmount)&&Je(he,p,h),D&6)Tr(h.component,g,y);else{if(D&128){h.suspense.unmount(g,y);return}J&&Tt(h,null,p,"beforeUnmount"),D&64?h.type.remove(h,p,g,R,y):_&&!_.hasOnce&&(v!==de||T>0&&T&64)?jt(_,p,g,!1,!0):(v===de&&T&384||!k&&D&16)&&jt(S,p,g),y&&Er(h)}(ce&&(he=A&&A.onVnodeUnmounted)||J)&&Pe(()=>{he&&Je(he,p,h),J&&Tt(h,null,p,"unmounted")},g)},Er=h=>{const{type:p,el:g,anchor:y,transition:k}=h;if(p===de){Ls(g,y);return}if(p===as){I(h);return}const v=()=>{s(g),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(h.shapeFlag&1&&k&&!k.persisted){const{leave:A,delayLeave:C}=k,S=()=>A(g,v);C?C(h.el,v,S):S()}else v()},Ls=(h,p)=>{let g;for(;h!==p;)g=d(h),s(h),h=g;s(p)},Tr=(h,p,g)=>{const{bum:y,scope:k,job:v,subTree:A,um:C,m:S,a:_,parent:D,slots:{__:T}}=h;tl(S),tl(_),y&&Vn(y),D&&W(T)&&T.forEach(O=>{D.renderCache[O]=void 0}),k.stop(),v&&(v.flags|=8,We(A,h,p,g)),C&&Pe(C,p),Pe(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},jt=(h,p,g,y=!1,k=!1,v=0)=>{for(let A=v;A<h.length;A++)We(h[A],p,g,y,k)},Ot=h=>{if(h.shapeFlag&6)return Ot(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),g=p&&p[Ja];return g?d(g):p};let Xt=!1;const j=(h,p,g)=>{h==null?p._vnode&&We(p._vnode,null,null,!0):b(p._vnode||null,h,p,null,null,null,g),p._vnode=h,Xt||(Xt=!0,Di(),Hi(),Xt=!1)},R={p:b,um:We,m:Qt,r:Er,mt:F,mc:N,pc:xt,pbc:be,n:Ot,o:e};return{render:j,hydrate:void 0,createApp:ac(j)}}function os({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xi(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(s))for(let i=0;i<r.length;i++){const l=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=bt(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&Xi(l,o)),o.type===or&&(o.el=l.el),o.type===vt&&!o.el&&(o.el=l.el)}}function wc(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<c?i=o+1:l=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function el(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:el(t)}function tl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const kc=Symbol.for("v-scx"),xc=()=>ir(kc);function nl(e,t){return rl(e,null,t)}function mt(e,t,n){return rl(e,t,n)}function rl(e,t,n=ue){const{immediate:r,flush:s}=n,i=ze({},n),l=t&&r||!t&&s!=="post";let o;if(_n){if(s==="sync"){const f=xc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=$t,f.resume=$t,f.pause=$t,f}}const a=Re;i.call=(f,d,m)=>nt(f,a,d,m);let c=!1;s==="post"?i.scheduler=f=>{Pe(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,d)=>{d?f():Qr(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=Wa(e,t,i);return _n&&(o?o.push(u):l&&u()),u}const _c=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function $c(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const i=t.startsWith("update:"),l=i&&_c(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>ke(u)?u.trim():u)),l.number&&(s=n.map(Bn)));let o,a=r[o=Fr(t)]||r[o=Fr(Fe(t))];!a&&i&&(a=r[o=Fr(Ct(t))]),a&&nt(a,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,nt(c,e,6,s)}}function Cc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={};return i?(W(i)?i.forEach(o=>l[o]=null):ze(l,i),ge(e)&&r.set(e,l),l):(ge(e)&&r.set(e,null),null)}function lr(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,Ct(t))||ne(e,t))}function sl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:d,setupState:m,ctx:x,inheritAttrs:b}=e,E=rr(e);let w,$;try{if(n.shapeFlag&4){const I=s||r,P=I;w=Ze(c.call(P,I,u,f,m,d,x)),$=o}else{const I=t;w=Ze(I.length>1?I(f,{attrs:o,slots:l,emit:a}):I(f,null)),$=t.props?o:Sc(o)}}catch(I){wn.length=0,tr(I,e,1),w=fe(vt)}let H=w;if($&&b!==!1){const I=Object.keys($),{shapeFlag:P}=H;I.length&&P&7&&(i&&I.some(Or)&&($=Rc($,i)),H=Gt(H,$,!1,!0))}return n.dirs&&(H=Gt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&Xr(H,n.transition),w=H,rr(E),w}const Sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hn(n))&&((t||(t={}))[n]=e[n]);return t},Rc=(e,t)=>{const n={};for(const r in e)(!Or(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ac(e,t,n){const{props:r,children:s,component:i}=e,{props:l,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?il(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(l[d]!==r[d]&&!lr(c,d))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?il(r,l,c):!0:!!l;return!1}function il(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!lr(n,i))return!0}return!1}function Ec({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ll=e=>e.__isSuspense;function Tc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Ga(e)}const de=Symbol.for("v-fgt"),or=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),wn=[];let je=null;function L(e=!1){wn.push(je=e?null:[])}function Ic(){wn.pop(),je=wn[wn.length-1]||null}let kn=1;function ol(e,t=!1){kn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function al(e){return e.dynamicChildren=kn>0?je||Ft:null,Ic(),kn>0&&je&&je.push(e),e}function M(e,t,n,r,s,i){return al(z(e,t,n,r,s,i,!0))}function rt(e,t,n,r,s){return al(fe(e,t,n,r,s,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const cl=({key:e})=>e??null,cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||we(e)||re(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,r=0,s=null,i=e===de?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cl(t),ref:t&&cr(t),scopeId:Ni,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Le};return o?(cs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),kn>0&&!l&&je&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&je.push(a),a}const fe=Lc;function Lc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===sc)&&(e=vt),ar(e)){const o=Gt(e,t,!0);return n&&cs(o,n),kn>0&&!i&&je&&(o.shapeFlag&6?je[je.indexOf(e)]=o:je.push(o)),o.patchFlag=-2,o}if(Vc(e)&&(e=e.__vccOpts),t){t=Mc(t);let{class:o,style:a}=t;o&&!ke(o)&&(t.class=ye(o)),ge(a)&&(Yr(a)&&!W(a)&&(a=ze({},a)),t.style=ln(a))}const l=ke(e)?1:ll(e)?128:Ya(e)?64:ge(e)?4:re(e)?2:0;return z(e,t,n,r,s,l,i,!0)}function Mc(e){return e?Yr(e)||Ki(e)?ze({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?Pc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&cl(c),ref:t&&t.ref?n&&i?W(i)?i.concat(cr(t)):[i,cr(t)]:cr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Xr(u,a.clone(u)),u}function st(e=" ",t=0){return fe(or,null,e,t)}function Y(e="",t=!1){return t?(L(),rt(vt,null,e)):fe(vt,null,e)}function Ze(e){return e==null||typeof e=="boolean"?fe(vt):W(e)?fe(de,null,e.slice()):ar(e)?bt(e):fe(or,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function cs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),cs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ki(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ye([t.class,r.class]));else if(s==="style")t.style=ln([t.style,r.style]);else if(Hn(s)){const i=t[s],l=r[s];l&&i!==l&&!(W(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Je(e,t,n,r=null){nt(e,t,7,[n,r])}const jc=Bi();let Oc=0;function zc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||jc,i={uid:Oc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ua(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hc(r,s),emitsOptions:Cc(r,s),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,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=$c.bind(null,i),e.ce&&e.ce(i),i}let Re=null;const ul=()=>Re||Le;let ur,us;{const e=sn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};ur=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),us=t("__VUE_SSR_SETTERS__",n=>_n=n)}const fs=e=>{const t=Re;return ur(e),e.scope.on(),()=>{e.scope.off(),ur(t)}},fl=()=>{Re&&Re.scope.off(),ur(null)};function hl(e){return e.vnode.shapeFlag&4}let _n=!1;function Fc(e,t=!1,n=!1){t&&us(t);const{props:r,children:s}=e.vnode,i=hl(e);uc(e,r,i,t),dc(e,s,n||t);const l=i?Dc(e,t):void 0;return t&&us(!1),l}function Dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lc);const{setup:r}=n;if(r){ft();const s=e.setupContext=r.length>1?Uc(e):null,i=fs(e),l=pn(r,e,0,[e.props,s]),o=ci(l);if(ht(),i(),(o||e.sp)&&!vn(e)&&Qa(e),o){if(l.then(fl,fl),t)return l.then(a=>{pl(e,a,t)}).catch(a=>{tr(a,e,0)});e.asyncDep=l}else pl(e,l,t)}else gl(e,t)}function pl(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Oi(t)),gl(e,n)}let dl;function gl(e,t,n){const r=e.type;if(!e.render){if(!t&&dl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=ze(ze({isCustomElement:i,delimiters:o},l),a);r.render=dl(s,c)}}e.render=r.render||$t}}const Hc={get(e,t){return Ce(e,"get",""),e[t]}};function Uc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hc),slots:e.slots,emit:e.emit,expose:t}}function fr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(Ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}})):e.proxy}function Nc(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Vc(e){return re(e)&&"__vccOpts"in e}const ve=(e,t)=>Va(e,t,_n);function se(e,t,n){const r=arguments.length;return r===2?ge(t)&&!W(t)?ar(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ar(n)&&(n=[n]),fe(e,t,n))}const Bc="3.5.17";/**
23
- * @vue/runtime-dom v3.5.17
22
+ **/function pn(e,t,n,r){try{return r?e(...r):e()}catch(s){nr(s,t,n)}}function it(e,t,n,r){if(se(e)){const s=pn(e,t,n,r);return s&&pi(s)&&s.catch(i=>{nr(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(it(e[i],t,n,r));return s}}function nr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ue;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(i){pt(),pn(i,null,10,[e,a,c]),dt();return}}Ja(e,n,s,r,o)}function Ja(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let Ge=-1;const Bt=[];let mt=null,Wt=0;const Ni=Promise.resolve();let rr=null;function qt(e){const t=rr||Ni;return e?t.then(this?e.bind(this):e):t}function Ya(e){let t=Ge+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=dn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=dn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=dn(n)?Se.push(e):Se.splice(Ya(t),0,e),e.flags|=1,Vi()}}function Vi(){rr||(rr=Ni.then(qi))}function Xa(e){K(e)?Bt.push(...e):mt&&e.id===-1?mt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Vi()}function Bi(e,t,n=Ge+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Wi(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>dn(n)-dn(r));if(Bt.length=0,mt){mt.push(...t);return}for(mt=t,Wt=0;Wt<mt.length;Wt++){const n=mt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mt=null,Wt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qi(e){try{for(Ge=0;Ge<Se.length;Ge++){const t=Se[Ge];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ge<Se.length;Ge++){const t=Se[Ge];t&&(t.flags&=-2)}Ge=-1,Se.length=0,Wi(),rr=null,(Se.length||Bt.length)&&qi()}}let Me=null,Ki=null;function sr(e){const t=Me;return Me=e,Ki=e&&e.type.__scopeId||null,t}function Qa(e,t=Me,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ur(-1);const i=sr(t);let o;try{o=e(...s)}finally{sr(i),r._d&&ur(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ir(e,t){if(Me===null)return e;const n=dr(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=ue]=t[s];i&&(se(i)&&(i={mounted:i,updated:i}),i.deep&&st(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Lt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const l=s[o];i&&(l.oldValue=i[o].value);let a=l.dir[r];a&&(pt(),it(a,n,8,[e.el,l,e,t]),dt())}}const ec=Symbol("_vte"),tc=e=>e.__isTeleport,nc=Symbol("_leaveCb");function ts(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ts(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gn(e,t){return se(e)?ze({name:e.name},t,{setup:e}):e}function rc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vt(e){const t=hs(),n=Et(null);if(t){const s=t.refs===ue?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const lr=new WeakMap;function mn(e,t,n,r,s=!1){if(K(e)){e.forEach((m,k)=>mn(m,t&&(K(t)?t[k]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?dr(r.component):r.el,o=s?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,f=l.setupState,p=te(f),b=f===ue?ui:m=>re(p,m);if(c!=null&&c!==a){if(Gi(t),ke(c))u[c]=null,b(c)&&(f[c]=null);else if(we(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(se(a))pn(a,l,12,[o,u]);else{const m=ke(a),k=we(a);if(m||k){const I=()=>{if(e.f){const A=m?b(a)?f[a]:u[a]:a.value;if(s)K(A)&&fi(A,i);else if(K(A))A.includes(i)||A.push(i);else if(m)u[a]=[i],b(a)&&(f[a]=u[a]);else{const _=[i];a.value=_,e.k&&(u[e.k]=_)}}else m?(u[a]=o,b(a)&&(f[a]=o)):k&&(a.value=o,e.k&&(u[e.k]=o))};if(o){const A=()=>{I(),lr.delete(e)};A.id=-1,lr.set(e,A),Pe(A,n)}else Gi(e),I()}}}function Gi(e){const t=lr.get(e);t&&(t.flags|=8,lr.delete(e))}sn().requestIdleCallback,sn().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,sc=e=>e.type.__isKeepAlive;function ic(e,t,n=Le,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{pt();const l=ds(n),a=it(t,n,e,o);return l(),dt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Le)=>{(!_n||e==="sp")&&ic(e,(...r)=>t(...r),n)},bn=ns("m"),lc=ns("bum"),rs=ns("um"),oc="components";function ac(e,t){return uc(oc,e,!0,t)||e}const cc=Symbol.for("v-ndc");function uc(e,t,n=!0,r=!1){const s=Me||Le;if(s){const i=s.type;{const l=Kc(i,!1);if(l&&(l===t||l===Fe(t)||l===Vn(Fe(t))))return i}const o=Zi(s[e]||i[e],t)||Zi(s.appContext[e],t);return!o&&r?i:o}}function Zi(e,t){return e&&(e[t]||e[Fe(t)]||e[Vn(Fe(t))])}function He(e,t,n,r){let s;const i=n,o=K(e);if(o||ke(e)){const l=o&&Vt(e);let a=!1,c=!1;l&&(a=!De(e),c=gt(e),e=Gn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Qn(xe(e[u])):xe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(ge(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ss=e=>e?ml(e)?dr(e):ss(e.parent):null,yn=ze(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=>ss(e.parent),$root:e=>ss(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{es(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>Ct}),is=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),fc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(is(r,t))return o[t]=1,r[t];if(s!==ue&&re(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&re(c,t))return o[t]=3,i[t];if(n!==ue&&re(n,t))return o[t]=4,n[t];o[t]=0}}const u=yn[t];let f,p;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ue&&re(n,t))return o[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return is(s,t)?(s[t]=n,!0):r!==ue&&re(r,t)?(r[t]=n,!0):re(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:s,propsOptions:i,type:o}},l){let a,c;return!!(n[l]||e!==ue&&l[0]!=="$"&&re(e,l)||is(t,l)||(a=i[0])&&re(a,l)||re(r,l)||re(yn,l)||re(s.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ji(){return{app:null,config:{isNativeTag:ui,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 hc=0;function pc(e,t){return function(r,s=null){se(r)||(r=ze({},r)),s!=null&&!ge(s)&&(s=null);const i=Ji(),o=new WeakSet,l=[];let a=!1;const c=i.app={_uid:hc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Zc,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&se(u.install)?(o.add(u),u.install(c,...f)):se(u)&&(o.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const b=c._ceVNode||fe(r,s);return b.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(b,u,p),a=!0,c._container=u,u.__vue_app__=c,dr(b.component)}},onUnmount(u){l.push(u)},unmount(){a&&(it(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function dc(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function or(e,t,n=!1){const r=hs();if(r||Kt){let s=Kt?Kt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&se(t)?t.call(r&&r.proxy):t}}const Yi={},Xi=()=>Object.create(Yi),Qi=e=>Object.getPrototypeOf(e)===Yi;function gc(e,t,n,r=!1){const s={},i=Xi();e.propsDefaults=Object.create(null),el(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:ja(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function mc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=te(s),[a]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(ar(e.emitsOptions,p))continue;const b=t[p];if(a)if(re(i,p))b!==i[p]&&(i[p]=b,c=!0);else{const m=Fe(p);s[m]=ls(a,l,m,b,e,!1)}else b!==i[p]&&(i[p]=b,c=!0)}}}else{el(e,t,s,i)&&(c=!0);let u;for(const f in l)(!t||!re(t,f)&&((u=$t(f))===f||!re(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ls(a,l,f,void 0,e,!0)):delete s[f]);if(i!==l)for(const f in i)(!t||!re(t,f))&&(delete i[f],c=!0)}c&&nt(e.attrs,"set","")}function el(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(rn(a))continue;const c=t[a];let u;s&&re(s,u=Fe(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:ar(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,o=!0)}if(i){const a=te(n),c=l||ue;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!re(c,f))}}return o}function ls(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=re(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&se(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=ds(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===$t(n))&&(r=!0))}return r}function vc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];if(!i)return ge(e)&&r.set(e,Dt),Dt;if(K(i))for(let c=0;c<i.length;c++){const u=Fe(i[c]);tl(u)&&(o[u]=ue)}else if(i)for(const c in i){const u=Fe(c);if(tl(u)){const f=i[c],p=o[u]=K(f)||se(f)?{type:f}:ze({},f),b=p.type;let m=!1,k=!0;if(K(b))for(let I=0;I<b.length;++I){const A=b[I],_=se(A)&&A.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(k=!1)}else m=se(b)&&b.name==="Boolean";p[0]=m,p[1]=k,(m||re(p,"default"))&&l.push(u)}}const a=[o,l];return ge(e)&&r.set(e,a),a}function tl(e){return e[0]!=="$"&&!rn(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>K(e)?e.map(Je):[Je(e)],bc=(e,t,n)=>{if(t._n)return t;const r=Qa((...s)=>as(t(...s)),n);return r._c=!1,r},nl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(se(i))t[s]=bc(s,i,r);else if(i!=null){const o=as(i);t[s]=()=>o}}},rl=(e,t)=>{const n=as(t);e.slots.default=()=>n},sl=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},yc=(e,t,n)=>{const r=e.slots=Xi();if(e.vnode.shapeFlag&32){const s=t._;s?(sl(r,t,n),n&&mi(r,"_",s,!0)):nl(t,r)}else t&&rl(e,t)},wc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:sl(s,t,n):(i=!t.$stable,nl(t,s)),o=t}else t&&(rl(e,t),o={default:1});if(i)for(const l in s)!os(l)&&o[l]==null&&delete s[l]};function kc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(sn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=jc;function xc(e){return _c(e)}function _c(e,t){kc();const n=sn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:b=Ct,insertStaticContent:m}=e,k=(h,d,g,y=null,w=null,v=null,R=void 0,C=null,$=!!d.dynamicChildren)=>{if(h===d)return;h&&!xn(h,d)&&(y=zt(h),We(h,w,v,!0),h=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:x,ref:U,shapeFlag:L}=d;switch(x){case cr:I(h,d,g,y);break;case yt:A(h,d,g,y);break;case us:h==null&&_(d,g,y,R);break;case de:Q(h,d,g,y,w,v,R,C,$);break;default:L&1?P(h,d,g,y,w,v,R,C,$):L&6?N(h,d,g,y,w,v,R,C,$):(L&64||L&128)&&x.process(h,d,g,y,w,v,R,C,$,S)}U!=null&&w?mn(U,h&&h.ref,v,d||h,!d):U==null&&h&&h.ref!=null&&mn(h.ref,null,v,h,!0)},I=(h,d,g,y)=>{if(h==null)r(d.el=l(d.children),g,y);else{const w=d.el=h.el;d.children!==h.children&&c(w,d.children)}},A=(h,d,g,y)=>{h==null?r(d.el=a(d.children||""),g,y):d.el=h.el},_=(h,d,g,y)=>{[h.el,h.anchor]=m(h.children,d,g,y,h.el,h.anchor)},F=({el:h,anchor:d},g,y)=>{let w;for(;h&&h!==d;)w=p(h),r(h,g,y),h=w;r(d,g,y)},E=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},P=(h,d,g,y,w,v,R,C,$)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),h==null?V(d,g,y,w,v,R,C,$):_e(h,d,w,v,R,C,$)},V=(h,d,g,y,w,v,R,C)=>{let $,x;const{props:U,shapeFlag:L,transition:z,dirs:B}=h;if($=h.el=o(h.type,v,U&&U.is,U),L&8?u($,h.children):L&16&&Z(h.children,$,null,y,w,cs(h,v),R,C),B&&Lt(h,null,y,"created"),G($,h,h.scopeId,R,y),U){for(const ce in U)ce!=="value"&&!rn(ce)&&i($,ce,null,U[ce],v,y);"value"in U&&i($,"value",null,U.value,v),(x=U.onVnodeBeforeMount)&&Ye(x,y,h)}B&&Lt(h,null,y,"beforeMount");const Y=Cc(w,z);Y&&z.beforeEnter($),r($,d,g),((x=U&&U.onVnodeMounted)||Y||B)&&Pe(()=>{x&&Ye(x,y,h),Y&&z.enter($),B&&Lt(h,null,y,"mounted")},w)},G=(h,d,g,y,w)=>{if(g&&b(h,g),y)for(let v=0;v<y.length;v++)b(h,y[v]);if(w){let v=w.subTree;if(d===v||hl(v.type)&&(v.ssContent===d||v.ssFallback===d)){const R=w.vnode;G(h,R,R.scopeId,R.slotScopeIds,w.parent)}}},Z=(h,d,g,y,w,v,R,C,$=0)=>{for(let x=$;x<h.length;x++){const U=h[x]=C?wt(h[x]):Je(h[x]);k(null,U,d,g,y,w,v,R,C)}},_e=(h,d,g,y,w,v,R)=>{const C=d.el=h.el;let{patchFlag:$,dynamicChildren:x,dirs:U}=d;$|=h.patchFlag&16;const L=h.props||ue,z=d.props||ue;let B;if(g&&It(g,!1),(B=z.onVnodeBeforeUpdate)&&Ye(B,g,d,h),U&&Lt(d,h,g,"beforeUpdate"),g&&It(g,!0),(L.innerHTML&&z.innerHTML==null||L.textContent&&z.textContent==null)&&u(C,""),x?be(h.dynamicChildren,x,C,g,y,cs(d,w),v):R||xt(h,d,C,null,g,y,cs(d,w),v,!1),$>0){if($&16)H(C,L,z,g,w);else if($&2&&L.class!==z.class&&i(C,"class",null,z.class,w),$&4&&i(C,"style",L.style,z.style,w),$&8){const Y=d.dynamicProps;for(let ce=0;ce<Y.length;ce++){const he=Y[ce],Ne=L[he],Ae=z[he];(Ae!==Ne||he==="value")&&i(C,he,Ne,Ae,w,g)}}$&1&&h.children!==d.children&&u(C,d.children)}else!R&&x==null&&H(C,L,z,g,w);((B=z.onVnodeUpdated)||U)&&Pe(()=>{B&&Ye(B,g,d,h),U&&Lt(d,h,g,"updated")},y)},be=(h,d,g,y,w,v,R)=>{for(let C=0;C<d.length;C++){const $=h[C],x=d[C],U=$.el&&($.type===de||!xn($,x)||$.shapeFlag&198)?f($.el):g;k($,x,U,null,y,w,v,R,!0)}},H=(h,d,g,y,w)=>{if(d!==g){if(d!==ue)for(const v in d)!rn(v)&&!(v in g)&&i(h,v,d[v],null,w,y);for(const v in g){if(rn(v))continue;const R=g[v],C=d[v];R!==C&&v!=="value"&&i(h,v,C,R,w,y)}"value"in g&&i(h,"value",d.value,g.value,w)}},Q=(h,d,g,y,w,v,R,C,$)=>{const x=d.el=h?h.el:l(""),U=d.anchor=h?h.anchor:l("");let{patchFlag:L,dynamicChildren:z,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),h==null?(r(x,g,y),r(U,g,y),Z(d.children||[],g,U,w,v,R,C,$)):L>0&&L&64&&z&&h.dynamicChildren?(be(h.dynamicChildren,z,g,w,v,R,C),(d.key!=null||w&&d===w.subTree)&&il(h,d,!0)):xt(h,d,g,U,w,v,R,C,$)},N=(h,d,g,y,w,v,R,C,$)=>{d.slotScopeIds=C,h==null?d.shapeFlag&512?w.ctx.activate(d,g,y,R,$):O(d,g,y,w,v,R,$):J(h,d,$)},O=(h,d,g,y,w,v,R)=>{const C=h.component=Nc(h,y,w);if(sc(h)&&(C.ctx.renderer=S),Vc(C,!1,R),C.asyncDep){if(w&&w.registerDep(C,le,R),!h.el){const $=C.subTree=fe(yt);A(null,$,d,g),h.placeholder=$.el}}else le(C,h,d,g,w,v,R)},J=(h,d,g)=>{const y=d.component=h.component;if(Mc(h,d,g))if(y.asyncDep&&!y.asyncResolved){ft(y,d,g);return}else y.next=d,y.update();else d.el=h.el,y.vnode=d},le=(h,d,g,y,w,v,R)=>{const C=()=>{if(h.isMounted){let{next:L,bu:z,u:B,parent:Y,vnode:ce}=h;{const jn=ll(h);if(jn){L&&(L.el=ce.el,ft(h,L,R)),jn.asyncDep.then(()=>{h.isUnmounted||C()});return}}let he=L,Ne;It(h,!1),L?(L.el=ce.el,ft(h,L,R)):L=ce,z&&Bn(z),(Ne=L.props&&L.props.onVnodeBeforeUpdate)&&Ye(Ne,Y,L,ce),It(h,!0);const Ae=ul(h),Ve=h.subTree;h.subTree=Ae,k(Ve,Ae,f(Ve.el),zt(Ve),h,w,v),L.el=Ae.el,he===null&&Pc(h,Ae.el),B&&Pe(B,w),(Ne=L.props&&L.props.onVnodeUpdated)&&Pe(()=>Ye(Ne,Y,L,ce),w)}else{let L;const{props:z}=d,{bm:B,m:Y,parent:ce,root:he,type:Ne}=h,Ae=vn(d);It(h,!1),B&&Bn(B),!Ae&&(L=z&&z.onVnodeBeforeMount)&&Ye(L,ce,d),It(h,!0);{he.ce&&he.ce._def.shadowRoot!==!1&&he.ce._injectChildStyle(Ne);const Ve=h.subTree=ul(h);k(null,Ve,g,y,h,w,v),d.el=Ve.el}if(Y&&Pe(Y,w),!Ae&&(L=z&&z.onVnodeMounted)){const Ve=d;Pe(()=>Ye(L,ce,Ve),w)}(d.shapeFlag&256||ce&&vn(ce.vnode)&&ce.vnode.shapeFlag&256)&&h.a&&Pe(h.a,w),h.isMounted=!0,d=g=y=null}};h.scope.on();const $=h.effect=new xi(C);h.scope.off();const x=h.update=$.run.bind($),U=h.job=$.runIfDirty.bind($);U.i=h,U.id=h.uid,$.scheduler=()=>es(U),It(h,!0),x()},ft=(h,d,g)=>{d.component=h;const y=h.vnode.props;h.vnode=d,h.next=null,mc(h,d.props,y,g),wc(h,d.children,g),pt(),Bi(h),dt()},xt=(h,d,g,y,w,v,R,C,$=!1)=>{const x=h&&h.children,U=h?h.shapeFlag:0,L=d.children,{patchFlag:z,shapeFlag:B}=d;if(z>0){if(z&128){Lr(x,L,g,y,w,v,R,C,$);return}else if(z&256){Pn(x,L,g,y,w,v,R,C,$);return}}B&8?(U&16&&Ot(x,w,v),L!==x&&u(g,L)):U&16?B&16?Lr(x,L,g,y,w,v,R,C,$):Ot(x,w,v,!0):(U&8&&u(g,""),B&16&&Z(L,g,y,w,v,R,C,$))},Pn=(h,d,g,y,w,v,R,C,$)=>{h=h||Dt,d=d||Dt;const x=h.length,U=d.length,L=Math.min(x,U);let z;for(z=0;z<L;z++){const B=d[z]=$?wt(d[z]):Je(d[z]);k(h[z],B,g,null,w,v,R,C,$)}x>U?Ot(h,w,v,!0,!1,L):Z(d,g,y,w,v,R,C,$,L)},Lr=(h,d,g,y,w,v,R,C,$)=>{let x=0;const U=d.length;let L=h.length-1,z=U-1;for(;x<=L&&x<=z;){const B=h[x],Y=d[x]=$?wt(d[x]):Je(d[x]);if(xn(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;x++}for(;x<=L&&x<=z;){const B=h[L],Y=d[z]=$?wt(d[z]):Je(d[z]);if(xn(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;L--,z--}if(x>L){if(x<=z){const B=z+1,Y=B<U?d[B].el:y;for(;x<=z;)k(null,d[x]=$?wt(d[x]):Je(d[x]),g,Y,w,v,R,C,$),x++}}else if(x>z)for(;x<=L;)We(h[x],w,v,!0),x++;else{const B=x,Y=x,ce=new Map;for(x=Y;x<=z;x++){const Oe=d[x]=$?wt(d[x]):Je(d[x]);Oe.key!=null&&ce.set(Oe.key,x)}let he,Ne=0;const Ae=z-Y+1;let Ve=!1,jn=0;const On=new Array(Ae);for(x=0;x<Ae;x++)On[x]=0;for(x=B;x<=L;x++){const Oe=h[x];if(Ne>=Ae){We(Oe,w,v,!0);continue}let tt;if(Oe.key!=null)tt=ce.get(Oe.key);else for(he=Y;he<=z;he++)if(On[he-Y]===0&&xn(Oe,d[he])){tt=he;break}tt===void 0?We(Oe,w,v,!0):(On[tt-Y]=x+1,tt>=jn?jn=tt:Ve=!0,k(Oe,d[tt],g,null,w,v,R,C,$),Ne++)}const Io=Ve?$c(On):Dt;for(he=Io.length-1,x=Ae-1;x>=0;x--){const Oe=Y+x,tt=d[Oe],Mo=d[Oe+1],Po=Oe+1<U?Mo.el||Mo.placeholder:y;On[x]===0?k(null,tt,g,Po,w,v,R,C,$):Ve&&(he<0||x!==Io[he]?Xt(tt,g,Po,2):he--)}}},Xt=(h,d,g,y,w=null)=>{const{el:v,type:R,transition:C,children:$,shapeFlag:x}=h;if(x&6){Xt(h.component.subTree,d,g,y);return}if(x&128){h.suspense.move(d,g,y);return}if(x&64){R.move(h,d,g,S);return}if(R===de){r(v,d,g);for(let L=0;L<$.length;L++)Xt($[L],d,g,y);r(h.anchor,d,g);return}if(R===us){F(h,d,g);return}if(y!==2&&x&1&&C)if(y===0)C.beforeEnter(v),r(v,d,g),Pe(()=>C.enter(v),w);else{const{leave:L,delayLeave:z,afterLeave:B}=C,Y=()=>{h.ctx.isUnmounted?s(v):r(v,d,g)},ce=()=>{v._isLeaving&&v[nc](!0),L(v,()=>{Y(),B&&B()})};z?z(v,Y,ce):ce()}else r(v,d,g)},We=(h,d,g,y=!1,w=!1)=>{const{type:v,props:R,ref:C,children:$,dynamicChildren:x,shapeFlag:U,patchFlag:L,dirs:z,cacheIndex:B}=h;if(L===-2&&(w=!1),C!=null&&(pt(),mn(C,null,g,h,!0),dt()),B!=null&&(d.renderCache[B]=void 0),U&256){d.ctx.deactivate(h);return}const Y=U&1&&z,ce=!vn(h);let he;if(ce&&(he=R&&R.onVnodeBeforeUnmount)&&Ye(he,d,h),U&6)Mr(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Y&&Lt(h,null,d,"beforeUnmount"),U&64?h.type.remove(h,d,g,S,y):x&&!x.hasOnce&&(v!==de||L>0&&L&64)?Ot(x,d,g,!1,!0):(v===de&&L&384||!w&&U&16)&&Ot($,d,g),y&&Ir(h)}(ce&&(he=R&&R.onVnodeUnmounted)||Y)&&Pe(()=>{he&&Ye(he,d,h),Y&&Lt(h,null,d,"unmounted")},g)},Ir=h=>{const{type:d,el:g,anchor:y,transition:w}=h;if(d===de){Ps(g,y);return}if(d===us){E(h);return}const v=()=>{s(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(h.shapeFlag&1&&w&&!w.persisted){const{leave:R,delayLeave:C}=w,$=()=>R(g,v);C?C(h.el,v,$):$()}else v()},Ps=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Mr=(h,d,g)=>{const{bum:y,scope:w,job:v,subTree:R,um:C,m:$,a:x}=h;ol($),ol(x),y&&Bn(y),w.stop(),v&&(v.flags|=8,We(R,h,d,g)),C&&Pe(C,d),Pe(()=>{h.isUnmounted=!0},d)},Ot=(h,d,g,y=!1,w=!1,v=0)=>{for(let R=v;R<h.length;R++)We(h[R],d,g,y,w)},zt=h=>{if(h.shapeFlag&6)return zt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[ec];return g?p(g):d};let Qt=!1;const D=(h,d,g)=>{h==null?d._vnode&&We(d._vnode,null,null,!0):k(d._vnode||null,h,d,null,null,null,g),d._vnode=h,Qt||(Qt=!0,Bi(),Wi(),Qt=!1)},S={p:k,um:We,m:Xt,r:Ir,mt:O,mc:Z,pc:xt,pbc:be,n:zt,o:e};return{render:D,hydrate:void 0,createApp:pc(D)}}function cs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function il(e,t,n=!1){const r=e.children,s=t.children;if(K(r)&&K(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=wt(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&il(o,l)),l.type===cr&&l.patchFlag!==-1&&(l.el=o.el),l.type===yt&&!l.el&&(l.el=o.el)}}function $c(e){const t=e.slice(),n=[0];let r,s,i,o,l;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<c?i=l+1:o=l;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ll(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ll(t)}function ol(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Sc=Symbol.for("v-scx"),Rc=()=>or(Sc);function al(e,t){return cl(e,null,t)}function bt(e,t,n){return cl(e,t,n)}function cl(e,t,n=ue){const{immediate:r,flush:s}=n,i=ze({},n),o=t&&r||!t&&s!=="post";let l;if(_n){if(s==="sync"){const f=Rc();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!o){const f=()=>{};return f.stop=Ct,f.resume=Ct,f.pause=Ct,f}}const a=Le;i.call=(f,p,b)=>it(f,a,p,b);let c=!1;s==="post"?i.scheduler=f=>{Pe(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,p)=>{p?f():es(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=Za(e,t,i);return _n&&(l?l.push(u):o&&u()),u}const Ac=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function Ec(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const i=t.startsWith("update:"),o=i&&Ac(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>ke(u)?u.trim():u)),o.number&&(s=n.map(Wn)));let l,a=r[l=Ur(t)]||r[l=Ur(Fe(t))];!a&&i&&(a=r[l=Ur($t(t))]),a&&it(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,it(c,e,6,s)}}function Tc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={};return i?(K(i)?i.forEach(l=>o[l]=null):ze(o,i),ge(e)&&r.set(e,o),o):(ge(e)&&r.set(e,null),null)}function ar(e,t){return!e||!Un(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,$t(t))||re(e,t))}function ul(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:c,renderCache:u,props:f,data:p,setupState:b,ctx:m,inheritAttrs:k}=e,I=sr(e);let A,_;try{if(n.shapeFlag&4){const E=s||r,P=E;A=Je(c.call(P,E,u,f,b,p,m)),_=l}else{const E=t;A=Je(E.length>1?E(f,{attrs:l,slots:o,emit:a}):E(f,null)),_=t.props?l:Lc(l)}}catch(E){wn.length=0,nr(E,e,1),A=fe(yt)}let F=A;if(_&&k!==!1){const E=Object.keys(_),{shapeFlag:P}=F;E.length&&P&7&&(i&&E.some(Dr)&&(_=Ic(_,i)),F=Gt(F,_,!1,!0))}return n.dirs&&(F=Gt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&ts(F,n.transition),A=F,sr(I),A}const Lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Un(n))&&((t||(t={}))[n]=e[n]);return t},Ic=(e,t)=>{const n={};for(const r in e)(!Dr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Mc(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,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?fl(r,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(o[p]!==r[p]&&!ar(c,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?fl(r,o,c):!0:!!o;return!1}function fl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!ar(n,i))return!0}return!1}function Pc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const hl=e=>e.__isSuspense;function jc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Xa(e)}const de=Symbol.for("v-fgt"),cr=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),wn=[];let je=null;function T(e=!1){wn.push(je=e?null:[])}function Oc(){wn.pop(),je=wn[wn.length-1]||null}let kn=1;function ur(e,t=!1){kn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function pl(e){return e.dynamicChildren=kn>0?je||Dt:null,Oc(),kn>0&&je&&je.push(e),e}function M(e,t,n,r,s,i){return pl(j(e,t,n,r,s,i,!0))}function Ze(e,t,n,r,s){return pl(fe(e,t,n,r,s,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const dl=({key:e})=>e??null,hr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||we(e)||se(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,r=0,s=null,i=e===de?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&hr(t),scopeId:Ki,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Me};return l?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),kn>0&&!o&&je&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&je.push(a),a}const fe=zc;function zc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===cc)&&(e=yt),fr(e)){const l=Gt(e,t,!0);return n&&fs(l,n),kn>0&&!i&&je&&(l.shapeFlag&6?je[je.indexOf(e)]=l:je.push(l)),l.patchFlag=-2,l}if(Gc(e)&&(e=e.__vccOpts),t){t=Fc(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=ye(l)),ge(a)&&(Qr(a)&&!K(a)&&(a=ze({},a)),t.style=ln(a))}const o=ke(e)?1:hl(e)?128:tc(e)?64:ge(e)?4:se(e)?2:0;return j(e,t,n,r,s,o,i,!0)}function Fc(e){return e?Qr(e)||Qi(e)?ze({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,c=t?Dc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&dl(c),ref:t&&t.ref?n&&i?K(i)?i.concat(hr(t)):[i,hr(t)]:hr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ts(u,a.clone(u)),u}function lt(e=" ",t=0){return fe(cr,null,e,t)}function X(e="",t=!1){return t?(T(),Ze(yt,null,e)):fe(yt,null,e)}function Je(e){return e==null||typeof e=="boolean"?fe(yt):K(e)?fe(de,null,e.slice()):fr(e)?wt(e):fe(cr,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function fs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),fs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qi(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ye([t.class,r.class]));else if(s==="style")t.style=ln([t.style,r.style]);else if(Un(s)){const i=t[s],o=r[s];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Ye(e,t,n,r=null){it(e,t,7,[n,r])}const Hc=Ji();let Uc=0;function Nc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Hc,i={uid:Uc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new da(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vc(r,s),emitsOptions:Tc(r,s),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,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=Ec.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const hs=()=>Le||Me;let pr,ps;{const e=sn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};pr=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),ps=t("__VUE_SSR_SETTERS__",n=>_n=n)}const ds=e=>{const t=Le;return pr(e),e.scope.on(),()=>{e.scope.off(),pr(t)}},gl=()=>{Le&&Le.scope.off(),pr(null)};function ml(e){return e.vnode.shapeFlag&4}let _n=!1;function Vc(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=ml(e);gc(e,r,i,t),yc(e,s,n||t);const o=i?Bc(e,t):void 0;return t&&ps(!1),o}function Bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fc);const{setup:r}=n;if(r){pt();const s=e.setupContext=r.length>1?qc(e):null,i=ds(e),o=pn(r,e,0,[e.props,s]),l=pi(o);if(dt(),i(),(l||e.sp)&&!vn(e)&&rc(e),l){if(o.then(gl,gl),t)return o.then(a=>{vl(e,a,t)}).catch(a=>{nr(a,e,0)});e.asyncDep=o}else vl(e,o,t)}else yl(e,t)}function vl(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ui(t)),yl(e,n)}let bl;function yl(e,t,n){const r=e.type;if(!e.render){if(!t&&bl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ze(ze({isCustomElement:i,delimiters:l},o),a);r.render=bl(s,c)}}e.render=r.render||Ct}}const Wc={get(e,t){return $e(e,"get",""),e[t]}};function qc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wc),slots:e.slots,emit:e.emit,expose:t}}function dr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ui(za(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}})):e.proxy}function Kc(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Gc(e){return se(e)&&"__vccOpts"in e}const ve=(e,t)=>Ka(e,t,_n);function ee(e,t,n){try{ur(-1);const r=arguments.length;return r===2?ge(t)&&!K(t)?fr(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),fe(e,t,n))}finally{ur(1)}}const Zc="3.5.22";/**
23
+ * @vue/runtime-dom v3.5.22
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/let hs;const ml=typeof window<"u"&&window.trustedTypes;if(ml)try{hs=ml.createPolicy("vue",{createHTML:e=>e})}catch{}const vl=hs?e=>hs.createHTML(e):e=>e,Wc="http://www.w3.org/2000/svg",qc="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,bl=it&&it.createElement("template"),Kc={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 s=t==="svg"?it.createElementNS(Wc,e):t==="mathml"?it.createElementNS(qc,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{bl.innerHTML=vl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=bl.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Gc=Symbol("_vtc");function Zc(e,t,n){const r=e[Gc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hr=Symbol("_vod"),yl=Symbol("_vsh"),wl={beforeMount(e,{value:t},{transition:n}){e[hr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$n(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),$n(e,!0),r.enter(e)):r.leave(e,()=>{$n(e,!1)}):$n(e,t))},beforeUnmount(e,{value:t}){$n(e,t)}};function $n(e,t){e.style.display=t?e[hr]:"none",e[yl]=!t}const Jc=Symbol(""),Yc=/(^|;)\s*display\s*:/;function Qc(e,t,n){const r=e.style,s=ke(n);let i=!1;if(n&&!s){if(t)if(ke(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&pr(r,o,"")}else for(const l in t)n[l]==null&&pr(r,l,"");for(const l in n)l==="display"&&(i=!0),pr(r,l,n[l])}else if(s){if(t!==n){const l=r[Jc];l&&(n+=";"+l),r.cssText=n,i=Yc.test(n)}}else t&&e.removeAttribute("style");hr in e&&(e[hr]=i?r.display:"",e[yl]&&(r.display="none"))}const kl=/\s*!important$/;function pr(e,t,n){if(W(n))n.forEach(r=>pr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Xc(e,t);kl.test(n)?e.setProperty(Ct(r),n.replace(kl,""),"important"):e[r]=n}}const xl=["Webkit","Moz","ms"],ps={};function Xc(e,t){const n=ps[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return ps[t]=r;r=Nn(r);for(let s=0;s<xl.length;s++){const i=xl[s]+r;if(i in e)return ps[t]=i}return t}const _l="http://www.w3.org/1999/xlink";function $l(e,t,n,r,s,i=aa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(_l,t.slice(6,t.length)):e.setAttributeNS(_l,t,n):n==null||i&&!pi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ke(n)?String(n):n)}function Cl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=pi(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(s||t)}function lt(e,t,n,r){e.addEventListener(t,n,r)}function eu(e,t,n,r){e.removeEventListener(t,n,r)}const Sl=Symbol("_vei");function tu(e,t,n,r,s=null){const i=e[Sl]||(e[Sl]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=nu(t);if(r){const c=i[t]=iu(r,s);lt(e,o,c,a)}else l&&(eu(e,o,l,a),i[t]=void 0)}}const Rl=/(?:Once|Passive|Capture)$/;function nu(e){let t;if(Rl.test(e)){t={};let r;for(;r=e.match(Rl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ct(e.slice(2)),t]}let ds=0;const ru=Promise.resolve(),su=()=>ds||(ru.then(()=>ds=0),ds=Date.now());function iu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nt(lu(r,n.value),t,5,[r])};return n.value=e,n.attached=su(),n}function lu(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ou=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?Zc(e,r,l):t==="style"?Qc(e,n,r):Hn(t)?Or(t)||tu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):au(e,t,r,l))?(Cl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$l(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?Cl(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),$l(e,t,r,l))};function au(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Al(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Al(t)&&ke(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Vn(t,n):t};function cu(e){e.target.composing=!0}function El(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),gs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ue]=yt(s);const i=r||s.props&&s.props.type==="number";lt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=Bn(o)),e[Ue](o)}),n&&lt(e,"change",()=>{e.value=e.value.trim()}),t||(lt(e,"compositionstart",cu),lt(e,"compositionend",El),lt(e,"change",El))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[Ue]=yt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Bn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},uu={deep:!0,created(e,t,n){e[Ue]=yt(n),lt(e,"change",()=>{const r=e._modelValue,s=Zt(e),i=e.checked,l=e[Ue];if(W(r)){const o=Hr(r,s),a=o!==-1;if(i&&!a)l(r.concat(s));else if(!i&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Ht(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Ll(e,i))})},mounted:Tl,beforeUpdate(e,t,n){e[Ue]=yt(n),Tl(e,t,n)}};function Tl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(W(t))s=Hr(t,r.props.value)>-1;else if(Ht(t))s=t.has(r.props.value);else{if(t===n)return;s=St(t,Ll(e,!0))}e.checked!==s&&(e.checked=s)}const fu={created(e,{value:t},n){e.checked=St(t,n.props.value),e[Ue]=yt(n),lt(e,"change",()=>{e[Ue](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ue]=yt(r),t!==n&&(e.checked=St(t,r.props.value))}},hu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ht(t);lt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Bn(Zt(l)):Zt(l));e[Ue](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[Ue]=yt(r)},mounted(e,{value:t}){Il(e,t)},beforeUpdate(e,t,n){e[Ue]=yt(n)},updated(e,{value:t}){e._assigning||Il(e,t)}};function Il(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Ht(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=Zt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Hr(t,o)>-1}else l.selected=t.has(o);else if(St(Zt(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function Ll(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pu={created(e,t,n){dr(e,t,n,null,"created")},mounted(e,t,n){dr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){dr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){dr(e,t,n,r,"updated")}};function du(e,t){switch(e){case"SELECT":return hu;case"TEXTAREA":return gs;default:switch(t){case"checkbox":return uu;case"radio":return fu;default:return gs}}}function dr(e,t,n,r,s){const l=du(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const gu=ze({patchProp:ou},Kc);let Ml;function mu(){return Ml||(Ml=vc(gu))}const vu=(...e)=>{const t=mu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=yu(r);if(!s)return;const i=t._component;!re(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,bu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function bu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yu(e){return ke(e)?document.querySelector(e):e}function Cn(e){return mi()?(fa(e),!0):!1}const gr=typeof window<"u"&&typeof document<"u",wu=Object.prototype.toString,ku=e=>wu.call(e)==="[object Object]",mr=()=>{};function xu(...e){if(e.length!==1)return Ha(...e);const t=e[0];return typeof t=="function"?Nt(za(()=>({get:t,set:mr}))):ae(t)}function Pl(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const jl=e=>e();function _u(e,t={}){let n,r,s=mr;const i=a=>{clearTimeout(a),s(),s=mr};let l;return a=>{const c=Me(e),u=Me(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,d)=>{s=t.rejectOnCancel?d:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(l())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function $u(e=jl,t={}){const{initialState:n="active"}=t,r=xu(n==="active");function s(){r.value=!1}function i(){r.value=!0}const l=(...o)=>{r.value&&e(...o)};return{isActive:Nt(r),pause:s,resume:i,eventFilter:l}}function ms(e){return Array.isArray(e)?e:[e]}function Ol(e){return ul()}function Cu(e,t=200,n={}){return Pl(_u(t,n),e)}function Su(e,t,n={}){const{eventFilter:r=jl,...s}=n;return mt(e,Pl(r,t),s)}function Ru(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=$u(r,{initialState:s});return{stop:Su(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function vs(e,t=!0,n){Ol()?bn(e,n):t?e():qt(e)}function Au(e,t){Ol()&&ts(e,t)}function Eu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=At(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Me(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}if(r&&gr&&c(),we(t)||typeof t=="function"){const u=mt(t,()=>{l.value&&gr&&c()});Cn(u)}return Cn(a),{isActive:La(l),pause:a,resume:c}}function Jt(e,t,n){return mt(e,t,{...n,immediate:!0})}const vr=gr?window:void 0,zl=gr?window.document:void 0;function Tu(e){var t;const n=Me(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Lt(...e){const t=[],n=()=>{t.forEach(o=>o()),t.length=0},r=(o,a,c,u)=>(o.addEventListener(a,c,u),()=>o.removeEventListener(a,c,u)),s=ve(()=>{const o=ms(Me(e[0])).filter(a=>a!=null);return o.every(a=>typeof a!="string")?o:void 0}),i=Jt(()=>{var o,a;return[(a=(o=s.value)==null?void 0:o.map(c=>Tu(c)))!=null?a:[vr].filter(c=>c!=null),ms(Me(s.value?e[1]:e[0])),ms(G(s.value?e[2]:e[1])),Me(s.value?e[3]:e[2])]},([o,a,c,u])=>{if(n(),!(o!=null&&o.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=ku(u)?{...u}:u;t.push(...o.flatMap(d=>a.flatMap(m=>c.map(x=>r(d,m,x,f)))))},{flush:"post"}),l=()=>{i(),n()};return Cn(n),l}function Iu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=vr,once:i=!1}=t,l=At(!1),o=ve(()=>r?1e3/Me(r):null);let a=0,c=null;function u(m){if(!l.value||!s)return;a||(a=m);const x=m-a;if(o.value&&x<o.value){c=s.requestAnimationFrame(u);return}if(a=m,e({delta:x,timestamp:m}),i){l.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!l.value&&s&&(l.value=!0,a=0,c=s.requestAnimationFrame(u))}function d(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),Cn(d),{isActive:Nt(l),pause:d,resume:f}}const br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yr="__vueuse_ssr_handlers__",Lu=Mu();function Mu(){return yr in br||(br[yr]=br[yr]||{}),br[yr]}function Pu(e,t){return Lu[e]||t}function ju(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 Ou={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()}},Fl="vueuse-storage";function Yt(e,t,n,r={}){var s;const{flush:i="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=vr,eventFilter:d,onError:m=F=>{console.error(F)},initOnMounted:x}=r,b=(u?At:ae)(typeof t=="function"?t():t),E=ve(()=>Me(e));if(!n)try{n=Pu("getDefaultStorage",()=>{var F;return(F=vr)==null?void 0:F.localStorage})()}catch(F){m(F)}if(!n)return b;const w=Me(t),$=ju(w),H=(s=r.serializer)!=null?s:Ou[$],{pause:I,resume:P}=Ru(b,()=>be(b.value),{flush:i,deep:l,eventFilter:d});mt(E,()=>Q(),{flush:i});let q=!1;const Z=F=>{x&&!q||Q(F)},N=F=>{x&&!q||V(F)};f&&o&&(n instanceof Storage?Lt(f,"storage",Z,{passive:!0}):Lt(f,Fl,N)),x?vs(()=>{q=!0,Q()}):Q();function _e(F,X){if(f){const le={key:E.value,oldValue:F,newValue:X,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",le):new CustomEvent(Fl,{detail:le}))}}function be(F){try{const X=n.getItem(E.value);if(F==null)_e(X,null),n.removeItem(E.value);else{const le=H.write(F);X!==le&&(n.setItem(E.value,le),_e(X,le))}}catch(X){m(X)}}function U(F){const X=F?F.newValue:n.getItem(E.value);if(X==null)return a&&w!=null&&n.setItem(E.value,H.write(w)),w;if(!F&&c){const le=H.read(X);return typeof c=="function"?c(le,w):$==="object"&&!Array.isArray(le)?{...w,...le}:le}else return typeof X!="string"?X:H.read(X)}function Q(F){if(!(F&&F.storageArea!==n)){if(F&&F.key==null){b.value=w;return}if(!(F&&F.key!==E.value)){I();try{(F==null?void 0:F.newValue)!==H.write(b.value)&&(b.value=U(F))}catch(X){m(X)}finally{F?qt(P):P()}}}}function V(F){Q(F.detail)}return b}function zu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame",immediate:r=!0}=e,s=ae(new Date),i=()=>s.value=new Date,l=n==="requestAnimationFrame"?Iu(i,{immediate:r}):Eu(i,n,{immediate:r});return t?{now:s,...l}:s}function Fu(e,t=mr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=zl,attrs:d={},nonce:m=void 0}=n,x=At(null);let b=null;const E=H=>new Promise((I,P)=>{const q=be=>(x.value=be,I(be),be);if(!f){I(!1);return}let Z=!1,N=f.querySelector(`script[src="${Me(e)}"]`);N?N.hasAttribute("data-loaded")&&q(N):(N=f.createElement("script"),N.type=i,N.async=l,N.src=Me(e),u&&(N.defer=u),o&&(N.crossOrigin=o),c&&(N.noModule=c),a&&(N.referrerPolicy=a),m&&(N.nonce=m),Object.entries(d).forEach(([be,U])=>N==null?void 0:N.setAttribute(be,U)),Z=!0);const _e={passive:!0};Lt(N,"error",be=>P(be),_e),Lt(N,"abort",be=>P(be),_e),Lt(N,"load",()=>{N.setAttribute("data-loaded","true"),t(N),q(N)},_e),Z&&(N=f.head.appendChild(N)),H||q(N)}),w=(H=!0)=>(b||(b=E(H)),b),$=()=>{if(!f)return;b=null,x.value&&(x.value=null);const H=f.querySelector(`script[src="${Me(e)}"]`);H&&f.head.removeChild(H)};return r&&!s&&vs(w),s||Au($),{scriptTag:x,load:w,unload:$}}let Du=0;function Hu(e,t={}){const n=At(!1),{document:r=zl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++Du}`}=t,o=At(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=mt(o,d=>{f.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&vs(c),i||Cn(u),{id:l,css:o,unload:u,load:c,isLoaded:Nt(n)}}const Uu="WALINE_EMOJI",Dl=Yt(Uu,{}),Nu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Vu=e=>{const t=Nu(e);if(t){const n=Dl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Dl.value[e]=r),r})},Hl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bu=e=>Promise.all(e?e.map(t=>zt(t)?Vu(ii(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:Hl(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Hl(u,i,o,a),f})})}),n}),Ul=e=>{e.name!=="AbortError"&&console.error(e.message)},bs=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Wu=e=>e.type.includes("image"),Nl=e=>{const t=Array.from(e).find(Wu);return t?t.getAsFile():null};function ys(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Mt=ys();function Vl(e){Mt=e}var Sn={exec:()=>null};function ie(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Ae.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var Ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},qu=/^(?:[ \t]*(?:\n|$))+/,Ku=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Gu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Zu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ws=/(?:[*+-]|\d{1,9}[.)])/,Bl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Wl=ie(Bl).replace(/bull/g,ws).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ju=ie(Bl).replace(/bull/g,ws).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ks=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Yu=/^[^\n]+/,xs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Qu=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xu=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ws).getRegex(),wr="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_s=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ef=ie("^ {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|$))","i").replace("comment",_s).replace("tag",wr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ql=ie(ks).replace("hr",Rn).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",wr).getRegex(),tf=ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ql).getRegex(),$s={blockquote:tf,code:Ku,def:Qu,fences:Gu,heading:Zu,hr:Rn,html:ef,lheading:Wl,list:Xu,newline:qu,paragraph:ql,table:Sn,text:Yu},Kl=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",wr).getRegex(),nf={...$s,lheading:Ju,table:Kl,paragraph:ie(ks).replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kl).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",wr).getRegex()},rf={...$s,html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_s).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:Sn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie(ks).replace("hr",Rn).replace("heading",` *#{1,6} *[^
27
- ]`).replace("lheading",Wl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gl=/^( {2,}|\\)\n(?!\s*$)/,of=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,kr=/[\p{P}\p{S}]/u,Cs=/[\s\p{P}\p{S}]/u,Zl=/[^\s\p{P}\p{S}]/u,af=ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cs).getRegex(),Jl=/(?!~)[\p{P}\p{S}]/u,cf=/(?!~)[\s\p{P}\p{S}]/u,uf=/(?:[^\s\p{P}\p{S}]|~)/u,ff=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Yl=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hf=ie(Yl,"u").replace(/punct/g,kr).getRegex(),pf=ie(Yl,"u").replace(/punct/g,Jl).getRegex(),Ql="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",df=ie(Ql,"gu").replace(/notPunctSpace/g,Zl).replace(/punctSpace/g,Cs).replace(/punct/g,kr).getRegex(),gf=ie(Ql,"gu").replace(/notPunctSpace/g,uf).replace(/punctSpace/g,cf).replace(/punct/g,Jl).getRegex(),mf=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zl).replace(/punctSpace/g,Cs).replace(/punct/g,kr).getRegex(),vf=ie(/\\(punct)/,"gu").replace(/punct/g,kr).getRegex(),bf=ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),yf=ie(_s).replace("(?:-->|$)","-->").getRegex(),wf=ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,kf=ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xl=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",xr).replace("ref",xs).getRegex(),eo=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",xs).getRegex(),xf=ie("reflink|nolink(?!\\()","g").replace("reflink",Xl).replace("nolink",eo).getRegex(),Ss={_backpedal:Sn,anyPunctuation:vf,autolink:bf,blockSkip:ff,br:Gl,code:lf,del:Sn,emStrongLDelim:hf,emStrongRDelimAst:df,emStrongRDelimUnd:mf,escape:sf,link:kf,nolink:eo,punctuation:af,reflink:Xl,reflinkSearch:xf,tag:wf,text:of,url:Sn},_f={...Ss,link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",xr).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xr).getRegex()},Rs={...Ss,emStrongRDelimAst:gf,emStrongLDelim:pf,url:ie(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},$f={...Rs,br:ie(Gl).replace("{2,}","*").getRegex(),text:ie(Rs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_r={normal:$s,gfm:nf,pedantic:rf},An={normal:Ss,gfm:Rs,breaks:$f,pedantic:_f},Cf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},to=e=>Cf[e];function Ye(e,t){if(t){if(Ae.escapeTest.test(e))return e.replace(Ae.escapeReplace,to)}else if(Ae.escapeTestNoEncode.test(e))return e.replace(Ae.escapeReplaceNoEncode,to);return e}function no(e){try{e=encodeURI(e).replace(Ae.percentDecode,"%")}catch{return null}return e}function ro(e,t){var i;let n=e.replace(Ae.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ae.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(Ae.slashPipe,"|");return r}function En(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Sf(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 n>0?-2:-1}function so(e,t,n,r,s){let i=t.href,l=t.title||null,o=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}function Rf(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
28
- `).map(i=>{let l=i.match(n.other.beginningSpace);if(l===null)return i;let[o]=l;return o.length>=s.length?i.slice(s.length):i}).join(`
29
- `)}var $r=class{options;rules;lexer;constructor(t){this.options=t||Mt}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:En(r,`
30
- `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],s=Rf(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let s=En(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:En(n[0],`
31
- `)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=En(n[0],`
26
+ **/let gs;const wl=typeof window<"u"&&window.trustedTypes;if(wl)try{gs=wl.createPolicy("vue",{createHTML:e=>e})}catch{}const kl=gs?e=>gs.createHTML(e):e=>e,Jc="http://www.w3.org/2000/svg",Yc="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,xl=ot&&ot.createElement("template"),Xc={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 s=t==="svg"?ot.createElementNS(Jc,e):t==="mathml"?ot.createElementNS(Yc,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xl.innerHTML=kl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=xl.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qc=Symbol("_vtc");function eu(e,t,n){const r=e[Qc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gr=Symbol("_vod"),_l=Symbol("_vsh"),Cl={name:"show",beforeMount(e,{value:t},{transition:n}){e[gr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cn(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),Cn(e,!0),r.enter(e)):r.leave(e,()=>{Cn(e,!1)}):Cn(e,t))},beforeUnmount(e,{value:t}){Cn(e,t)}};function Cn(e,t){e.style.display=t?e[gr]:"none",e[_l]=!t}const tu=Symbol(""),nu=/(?:^|;)\s*display\s*:/;function ru(e,t,n){const r=e.style,s=ke(n);let i=!1;if(n&&!s){if(t)if(ke(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&mr(r,l,"")}else for(const o in t)n[o]==null&&mr(r,o,"");for(const o in n)o==="display"&&(i=!0),mr(r,o,n[o])}else if(s){if(t!==n){const o=r[tu];o&&(n+=";"+o),r.cssText=n,i=nu.test(n)}}else t&&e.removeAttribute("style");gr in e&&(e[gr]=i?r.display:"",e[_l]&&(r.display="none"))}const $l=/\s*!important$/;function mr(e,t,n){if(K(n))n.forEach(r=>mr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=su(e,t);$l.test(n)?e.setProperty($t(r),n.replace($l,""),"important"):e[r]=n}}const Sl=["Webkit","Moz","ms"],ms={};function su(e,t){const n=ms[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Vn(r);for(let s=0;s<Sl.length;s++){const i=Sl[s]+r;if(i in e)return ms[t]=i}return t}const Rl="http://www.w3.org/1999/xlink";function Al(e,t,n,r,s,i=ha(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Rl,t.slice(6,t.length)):e.setAttributeNS(Rl,t,n):n==null||i&&!bi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ke(n)?String(n):n)}function El(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?kl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=bi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function iu(e,t,n,r){e.removeEventListener(t,n,r)}const Tl=Symbol("_vei");function lu(e,t,n,r,s=null){const i=e[Tl]||(e[Tl]={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=ou(t);if(r){const c=i[t]=uu(r,s);at(e,l,c,a)}else o&&(iu(e,l,o,a),i[t]=void 0)}}const Ll=/(?:Once|Passive|Capture)$/;function ou(e){let t;if(Ll.test(e)){t={};let r;for(;r=e.match(Ll);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let vs=0;const au=Promise.resolve(),cu=()=>vs||(au.then(()=>vs=0),vs=Date.now());function uu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;it(fu(r,n.value),t,5,[r])};return n.value=e,n.attached=cu(),n}function fu(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Il=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hu=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?eu(e,r,o):t==="style"?ru(e,n,r):Un(t)?Dr(t)||lu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pu(e,t,r,o))?(El(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Al(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?El(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Al(e,t,r,o))};function pu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Il(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Il(t)&&ke(n)?!1:t in e}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Bn(t,n):t};function du(e){e.target.composing=!0}function Ml(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ue]=kt(s);const i=r||s.props&&s.props.type==="number";at(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Wn(l)),e[Ue](l)}),n&&at(e,"change",()=>{e.value=e.value.trim()}),t||(at(e,"compositionstart",du),at(e,"compositionend",Ml),at(e,"change",Ml))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ue]=kt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Wn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},gu={deep:!0,created(e,t,n){e[Ue]=kt(n),at(e,"change",()=>{const r=e._modelValue,s=Zt(e),i=e.checked,o=e[Ue];if(K(r)){const l=Nr(r,s),a=l!==-1;if(i&&!a)o(r.concat(s));else if(!i&&a){const c=[...r];c.splice(l,1),o(c)}}else if(Ut(r)){const l=new Set(r);i?l.add(s):l.delete(s),o(l)}else o(Ol(e,i))})},mounted:Pl,beforeUpdate(e,t,n){e[Ue]=kt(n),Pl(e,t,n)}};function Pl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(K(t))s=Nr(t,r.props.value)>-1;else if(Ut(t))s=t.has(r.props.value);else{if(t===n)return;s=St(t,Ol(e,!0))}e.checked!==s&&(e.checked=s)}const mu={created(e,{value:t},n){e.checked=St(t,n.props.value),e[Ue]=kt(n),at(e,"change",()=>{e[Ue](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ue]=kt(r),t!==n&&(e.checked=St(t,r.props.value))}},vu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ut(t);at(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Wn(Zt(o)):Zt(o));e[Ue](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[Ue]=kt(r)},mounted(e,{value:t}){jl(e,t)},beforeUpdate(e,t,n){e[Ue]=kt(n)},updated(e,{value:t}){e._assigning||jl(e,t)}};function jl(e,t){const n=e.multiple,r=K(t);if(!(n&&!r&&!Ut(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],l=Zt(o);if(n)if(r){const a=typeof l;a==="string"||a==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=Nr(t,l)>-1}else o.selected=t.has(l);else if(St(Zt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function Ol(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const bu={created(e,t,n){vr(e,t,n,null,"created")},mounted(e,t,n){vr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){vr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){vr(e,t,n,r,"updated")}};function yu(e,t){switch(e){case"SELECT":return vu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return gu;case"radio":return mu;default:return bs}}}function vr(e,t,n,r,s){const o=yu(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}const wu=ze({patchProp:hu},Xc);let zl;function ku(){return zl||(zl=xc(wu))}const xu=((...e)=>{const t=ku().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Cu(r);if(!s)return;const i=t._component;!se(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,_u(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function _u(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return ke(e)?document.querySelector(e):e}function $n(e){return ki()?(ga(e),!0):!1}const br=typeof window<"u"&&typeof document<"u",$u=Object.prototype.toString,Su=e=>$u.call(e)==="[object Object]",yr=()=>{};function Ru(...e){if(e.length!==1)return Ba(...e);const t=e[0];return typeof t=="function"?At(Ua(()=>({get:t,set:yr}))):ae(t)}function Fl(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Dl=e=>e();function Au(e,t={}){let n,r,s=yr;const i=a=>{clearTimeout(a),s(),s=yr};let o;return a=>{const c=Ie(e),u=Ie(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,p)=>{s=t.rejectOnCancel?p:f,o=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(o())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function Eu(e=Dl,t={}){const{initialState:n="active"}=t,r=Ru(n==="active");function s(){r.value=!1}function i(){r.value=!0}const o=(...l)=>{r.value&&e(...l)};return{isActive:At(r),pause:s,resume:i,eventFilter:o}}function ys(e){return Array.isArray(e)?e:[e]}function Hl(e){return hs()}function Tu(e,t=200,n={}){return Fl(Au(t,n),e)}function Lu(e,t,n={}){const{eventFilter:r=Dl,...s}=n;return bt(e,Fl(r,t),s)}function Iu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:o,pause:l,resume:a,isActive:c}=Eu(r,{initialState:s});return{stop:Lu(e,t,{...i,eventFilter:o}),pause:l,resume:a,isActive:c}}function ws(e,t=!0,n){Hl()?bn(e,n):t?e():qt(e)}function Mu(e,t){Hl()&&rs(e,t)}function Pu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const o=Et(!1);function l(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,l()}function c(){const u=Ie(t);u<=0||(o.value=!0,s&&e(),l(),o.value&&(i=setInterval(e,u)))}if(r&&br&&c(),we(t)||typeof t=="function"){const u=bt(t,()=>{o.value&&br&&c()});$n(u)}return $n(a),{isActive:Oa(o),pause:a,resume:c}}function Jt(e,t,n){return bt(e,t,{...n,immediate:!0})}const wr=br?window:void 0,Ul=br?window.document:void 0;function ju(e){var t;const n=Ie(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Mt(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},r=(l,a,c,u)=>(l.addEventListener(a,c,u),()=>l.removeEventListener(a,c,u)),s=ve(()=>{const l=ys(Ie(e[0])).filter(a=>a!=null);return l.every(a=>typeof a!="string")?l:void 0}),i=Jt(()=>{var l,a;return[(a=(l=s.value)==null?void 0:l.map(c=>ju(c)))!=null?a:[wr].filter(c=>c!=null),ys(Ie(s.value?e[1]:e[0])),ys(W(s.value?e[2]:e[1])),Ie(s.value?e[3]:e[2])]},([l,a,c,u])=>{if(n(),!(l!=null&&l.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=Su(u)?{...u}:u;t.push(...l.flatMap(p=>a.flatMap(b=>c.map(m=>r(p,b,m,f)))))},{flush:"post"}),o=()=>{i(),n()};return $n(n),o}function Ou(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=wr,once:i=!1}=t,o=Et(!1),l=ve(()=>r?1e3/Ie(r):null);let a=0,c=null;function u(b){if(!o.value||!s)return;a||(a=b);const m=b-a;if(l.value&&m<l.value){c=s.requestAnimationFrame(u);return}if(a=b,e({delta:m,timestamp:b}),i){o.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!o.value&&s&&(o.value=!0,a=0,c=s.requestAnimationFrame(u))}function p(){o.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),$n(p),{isActive:At(o),pause:p,resume:f}}const kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xr="__vueuse_ssr_handlers__",zu=Fu();function Fu(){return xr in kr||(kr[xr]=kr[xr]||{}),kr[xr]}function Du(e,t){return zu[e]||t}function Hu(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 Uu={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()}},Nl="vueuse-storage";function Yt(e,t,n,r={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=wr,eventFilter:p,onError:b=O=>{console.error(O)},initOnMounted:m}=r,k=(u?Et:ae)(typeof t=="function"?t():t),I=ve(()=>Ie(e));if(!n)try{n=Du("getDefaultStorage",()=>{var O;return(O=wr)==null?void 0:O.localStorage})()}catch(O){b(O)}if(!n)return k;const A=Ie(t),_=Hu(A),F=(s=r.serializer)!=null?s:Uu[_],{pause:E,resume:P}=Iu(k,O=>be(O),{flush:i,deep:o,eventFilter:p});bt(I,()=>Q(),{flush:i});let V=!1;const G=O=>{m&&!V||Q(O)},Z=O=>{m&&!V||N(O)};f&&l&&(n instanceof Storage?Mt(f,"storage",G,{passive:!0}):Mt(f,Nl,Z)),m?ws(()=>{V=!0,Q()}):Q();function _e(O,J){if(f){const le={key:I.value,oldValue:O,newValue:J,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",le):new CustomEvent(Nl,{detail:le}))}}function be(O){try{const J=n.getItem(I.value);if(O==null)_e(J,null),n.removeItem(I.value);else{const le=F.write(O);J!==le&&(n.setItem(I.value,le),_e(J,le))}}catch(J){b(J)}}function H(O){const J=O?O.newValue:n.getItem(I.value);if(J==null)return a&&A!=null&&n.setItem(I.value,F.write(A)),A;if(!O&&c){const le=F.read(J);return typeof c=="function"?c(le,A):_==="object"&&!Array.isArray(le)?{...A,...le}:le}else return typeof J!="string"?J:F.read(J)}function Q(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){k.value=A;return}if(!(O&&O.key!==I.value)){E();try{const J=F.write(k.value);(O===void 0||(O==null?void 0:O.newValue)!==J)&&(k.value=H(O))}catch(J){b(J)}finally{O?qt(P):P()}}}}function N(O){Q(O.detail)}return k}function Nu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame",immediate:r=!0}=e,s=ae(new Date),i=()=>s.value=new Date,o=n==="requestAnimationFrame"?Ou(i,{immediate:r}):Pu(i,n,{immediate:r});return t?{now:s,...o}:s}function Vu(e,t=yr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:o=!0,crossOrigin:l,referrerPolicy:a,noModule:c,defer:u,document:f=Ul,attrs:p={},nonce:b=void 0}=n,m=Et(null);let k=null;const I=F=>new Promise((E,P)=>{const V=be=>(m.value=be,E(be),be);if(!f){E(!1);return}let G=!1,Z=f.querySelector(`script[src="${Ie(e)}"]`);Z?Z.hasAttribute("data-loaded")&&V(Z):(Z=f.createElement("script"),Z.type=i,Z.async=o,Z.src=Ie(e),u&&(Z.defer=u),l&&(Z.crossOrigin=l),c&&(Z.noModule=c),a&&(Z.referrerPolicy=a),b&&(Z.nonce=b),Object.entries(p).forEach(([be,H])=>Z==null?void 0:Z.setAttribute(be,H)),G=!0);const _e={passive:!0};Mt(Z,"error",be=>P(be),_e),Mt(Z,"abort",be=>P(be),_e),Mt(Z,"load",()=>{Z.setAttribute("data-loaded","true"),t(Z),V(Z)},_e),G&&(Z=f.head.appendChild(Z)),F||V(Z)}),A=(F=!0)=>(k||(k=I(F)),k),_=()=>{if(!f)return;k=null,m.value&&(m.value=null);const F=f.querySelector(`script[src="${Ie(e)}"]`);F&&f.head.removeChild(F)};return r&&!s&&ws(A),s||Mu(_),{scriptTag:m,load:A,unload:_}}let Bu=0;function Wu(e,t={}){const n=Et(!1),{document:r=Ul,immediate:s=!0,manual:i=!1,id:o=`vueuse_styletag_${++Bu}`}=t,l=Et(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(o)||r.createElement("style");f.isConnected||(f.id=o,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=bt(l,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return s&&!i&&ws(c),i||$n(u),{id:o,css:l,unload:u,load:c,isLoaded:At(n)}}const qu="WALINE_EMOJI",Vl=Yt(qu,{}),Ku=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Gu=e=>{const t=Ku(e);if(t){const n=Vl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Vl.value[e]=r),r})},Bl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Zu=e=>Promise.all(e?e.map(t=>Ft(t)?Gu(ai(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:o,prefix:l="",type:a,items:c}=r;n.tabs.push({name:s,icon:Bl(o,i,l,a),items:c.map(u=>{const f=`${l}${u}`;return n.map[f]=Bl(u,i,l,a),f})})}),n}),Wl=e=>{e.name!=="AbortError"&&console.error(e.message)},ks=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Ju=e=>e.type.includes("image"),ql=e=>{const t=Array.from(e).find(Ju);return t?t.getAsFile():null};function xs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pt=xs();function Kl(e){Pt=e}var Sn={exec:()=>null};function ne(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Re.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var Re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Yu=/^(?:[ \t]*(?:\n|$))+/,Xu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ef=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_s=/(?:[*+-]|\d{1,9}[.)])/,Gl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zl=ne(Gl).replace(/bull/g,_s).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tf=ne(Gl).replace(/bull/g,_s).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nf=/^[^\n]+/,$s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rf=ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sf=ne(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_s).getRegex(),_r="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ss=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lf=ne("^ {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|$))","i").replace("comment",Ss).replace("tag",_r).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jl=ne(Cs).replace("hr",Rn).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",_r).getRegex(),of=ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jl).getRegex(),Rs={blockquote:of,code:Xu,def:rf,fences:Qu,heading:ef,hr:Rn,html:lf,lheading:Zl,list:sf,newline:Yu,paragraph:Jl,table:Sn,text:nf},Yl=ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",_r).getRegex(),af={...Rs,lheading:tf,table:Yl,paragraph:ne(Cs).replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yl).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",_r).getRegex()},cf={...Rs,html:ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ss).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:Sn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ne(Cs).replace("hr",Rn).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",Zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},uf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ff=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xl=/^( {2,}|\\)\n(?!\s*$)/,hf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cr=/[\p{P}\p{S}]/u,As=/[\s\p{P}\p{S}]/u,Ql=/[^\s\p{P}\p{S}]/u,pf=ne(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,As).getRegex(),eo=/(?!~)[\p{P}\p{S}]/u,df=/(?!~)[\s\p{P}\p{S}]/u,gf=/(?:[^\s\p{P}\p{S}]|~)/u,mf=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,to=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vf=ne(to,"u").replace(/punct/g,Cr).getRegex(),bf=ne(to,"u").replace(/punct/g,eo).getRegex(),no="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yf=ne(no,"gu").replace(/notPunctSpace/g,Ql).replace(/punctSpace/g,As).replace(/punct/g,Cr).getRegex(),wf=ne(no,"gu").replace(/notPunctSpace/g,gf).replace(/punctSpace/g,df).replace(/punct/g,eo).getRegex(),kf=ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ql).replace(/punctSpace/g,As).replace(/punct/g,Cr).getRegex(),xf=ne(/\\(punct)/,"gu").replace(/punct/g,Cr).getRegex(),_f=ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),Cf=ne(Ss).replace("(?:-->|$)","-->").getRegex(),$f=ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Cf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$r=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Sf=ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",$r).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ro=ne(/^!?\[(label)\]\[(ref)\]/).replace("label",$r).replace("ref",$s).getRegex(),so=ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",$s).getRegex(),Rf=ne("reflink|nolink(?!\\()","g").replace("reflink",ro).replace("nolink",so).getRegex(),io=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Es={_backpedal:Sn,anyPunctuation:xf,autolink:_f,blockSkip:mf,br:Xl,code:ff,del:Sn,emStrongLDelim:vf,emStrongRDelimAst:yf,emStrongRDelimUnd:kf,escape:uf,link:Sf,nolink:so,punctuation:pf,reflink:ro,reflinkSearch:Rf,tag:$f,text:hf,url:Sn},Af={...Es,link:ne(/^!?\[(label)\]\((.*?)\)/).replace("label",$r).getRegex(),reflink:ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$r).getRegex()},Ts={...Es,emStrongRDelimAst:wf,emStrongLDelim:bf,url:ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",io).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",io).getRegex()},Ef={...Ts,br:ne(Xl).replace("{2,}","*").getRegex(),text:ne(Ts.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Sr={normal:Rs,gfm:af,pedantic:cf},An={normal:Es,gfm:Ts,breaks:Ef,pedantic:Af},Tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lo=e=>Tf[e];function Xe(e,t){if(t){if(Re.escapeTest.test(e))return e.replace(Re.escapeReplace,lo)}else if(Re.escapeTestNoEncode.test(e))return e.replace(Re.escapeReplaceNoEncode,lo);return e}function oo(e){try{e=encodeURI(e).replace(Re.percentDecode,"%")}catch{return null}return e}function ao(e,t){var i;let n=e.replace(Re.findPipe,(o,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Re.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(Re.slashPipe,"|");return r}function En(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Lf(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 n>0?-2:-1}function co(e,t,n,r,s){let i=t.href,o=t.title||null,l=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}function If(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
28
+ `).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[l]=o;return l.length>=s.length?i.slice(s.length):i}).join(`
29
+ `)}var Rr=class{options;rules;lexer;constructor(e){this.options=e||Pt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:En(n,`
30
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=If(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=En(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:En(t[0],`
31
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=En(t[0],`
32
32
  `).split(`
33
- `),s="",i="",l=[];for(;r.length>0;){let o=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),o=!0;else if(!o)a.push(r[c]);else break;r=r.slice(c);let u=a.join(`
34
- `),f=u.replace(this.rules.other.blockquoteSetextReplace,`
35
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
36
- ${u}`:u,i=i?`${i}
37
- ${f}`:f;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=d,r.length===0)break;let m=l.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){let x=m,b=x.raw+`
38
- `+r.join(`
39
- `),E=this.blockquote(b);l[l.length-1]=E,s=s.substring(0,s.length-x.raw.length)+E.raw,i=i.substring(0,i.length-x.text.length)+E.text;break}else if((m==null?void 0:m.type)==="list"){let x=m,b=x.raw+`
40
- `+r.join(`
41
- `),E=this.list(b);l[l.length-1]=E,s=s.substring(0,s.length-m.raw.length)+E.raw,i=i.substring(0,i.length-x.raw.length)+E.raw,r=b.substring(l.at(-1).raw.length).split(`
42
- `);continue}}return{type:"blockquote",raw:s,tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim(),s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let l=this.rules.other.listItemRegex(r),o=!1;for(;t;){let c=!1,u="",f="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(`
43
- `,1)[0].replace(this.rules.other.listReplaceTabs,$=>" ".repeat(3*$.length)),m=t.split(`
44
- `,1)[0],x=!d.trim(),b=0;if(this.options.pedantic?(b=2,f=d.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,f=d.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(m)&&(u+=m+`
45
- `,t=t.substring(m.length+1),c=!0),!c){let $=this.rules.other.nextBulletRegex(b),H=this.rules.other.hrRegex(b),I=this.rules.other.fencesBeginRegex(b),P=this.rules.other.headingBeginRegex(b),q=this.rules.other.htmlBeginRegex(b);for(;t;){let Z=t.split(`
46
- `,1)[0],N;if(m=Z,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),N=m):N=m.replace(this.rules.other.tabCharGlobal," "),I.test(m)||P.test(m)||q.test(m)||$.test(m)||H.test(m))break;if(N.search(this.rules.other.nonSpaceChar)>=b||!m.trim())f+=`
47
- `+N.slice(b);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(d)||P.test(d)||H.test(d))break;f+=`
48
- `+m}!x&&!m.trim()&&(x=!0),u+=Z+`
49
- `,t=t.substring(Z.length+1),d=N.slice(b)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let E=null,w;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(w=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!E,checked:w,loose:!1,text:f,tokens:[]}),i.raw+=u}let a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){let u=i.items[c].tokens.filter(d=>d.type==="space"),f=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=f}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].loose=!0;return i}}html(t){let 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){let n=this.rules.block.def.exec(t);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:i}}}table(t){var o;let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=ro(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
- `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(let a of i)l.rows.push(ro(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){let 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){let n=this.rules.block.paragraph.exec(t);if(n){let r=n[1].charAt(n[1].length-1)===`
51
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let 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){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.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){let n=this.rules.inline.link.exec(t);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let l=En(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{let l=Sf(n[2],"()");if(l===-2)return;if(l>-1){let o=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,o).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),so(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){let l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return so(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...s[0]].length-1,l,o,a=i,c=0,u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,n=n.slice(-1*t.length+i);(s=u.exec(n))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(o=[...l].length,s[3]||s[4]){a+=o;continue}else if((s[5]||s[6])&&i%3&&!((i+o)%3)){c+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+c);let f=[...s[0]][0].length,d=t.slice(0,i+s.index+f+o);if(Math.min(i,o)%2){let x=d.slice(1,-1);return{type:"em",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}let m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){let 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){let n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=n[0],i="mailto:"+s;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);s=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},wt=class Ms{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new $r,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ae,block:_r.normal,inline:An.normal};this.options.pedantic?(n.block=_r.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=_r.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:_r,inline:An}}static lex(t,n){return new Ms(n).lex(t)}static lexInline(t,n){return new Ms(n).inlineTokens(t)}lex(t){t=t.replace(Ae.carriageReturn,`
52
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var s,i,l;for(this.options.pedantic&&(t=t.replace(Ae.tabCharGlobal," ").replace(Ae.spaceLine,""));t;){let o;if((i=(s=this.options.extensions)==null?void 0:s.block)!=null&&i.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
53
- `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
54
- `+o.raw,c.text+=`
55
- `+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
56
- `+o.raw,c.text+=`
57
- `+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0,u=t.slice(1),f;this.options.extensions.startBlock.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
58
- `+o.raw,c.text+=`
59
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
60
- `+o.raw,c.text+=`
61
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,s=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0,m=t.slice(1),x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},m),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(f=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(f)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),i=!0;let d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},Cr=class{options;parser;constructor(e){this.options=e||Mt}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let r=(i=(t||"").match(Ae.notSpaceStart))==null?void 0:i[0],s=e.replace(Ae.endingNewline,"")+`
62
- `;return r?'<pre><code class="language-'+Ye(r)+'">'+(n?s:Ye(s,!0))+`</code></pre>
63
- `:"<pre><code>"+(n?s:Ye(s,!0))+`</code></pre>
64
- `}blockquote({tokens:e}){return`<blockquote>
65
- ${this.parser.parse(e)}</blockquote>
66
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
67
- `}hr(e){return`<hr>
68
- `}list(e){let t=e.ordered,n=e.start,r="";for(let l=0;l<e.items.length;l++){let o=e.items[l];r+=this.listitem(o)}let s=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+s+i+`>
69
- `+r+"</"+s+`>
70
- `}listitem(e){var n;let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Ye(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
71
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
72
- `}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){let i=e.rows[s];n="";for(let l=0;l<i.length;l++)n+=this.tablecell(i[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
33
+ `),r="",s="",i=[];for(;n.length>0;){let o=!1,l=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))l.push(n[a]),o=!0;else if(!o)l.push(n[a]);else break;n=n.slice(a);let c=l.join(`
34
+ `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
35
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
36
+ ${c}`:c,s=s?`${s}
37
+ ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=f,n.length===0)break;let p=i.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let b=p,m=b.raw+`
38
+ `+n.join(`
39
+ `),k=this.blockquote(m);i[i.length-1]=k,r=r.substring(0,r.length-b.raw.length)+k.raw,s=s.substring(0,s.length-b.text.length)+k.text;break}else if((p==null?void 0:p.type)==="list"){let b=p,m=b.raw+`
40
+ `+n.join(`
41
+ `),k=this.list(m);i[i.length-1]=k,r=r.substring(0,r.length-p.raw.length)+k.raw,s=s.substring(0,s.length-b.raw.length)+k.raw,n=m.substring(i.at(-1).raw.length).split(`
42
+ `);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;e;){let a=!1,c="",u="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let f=t[2].split(`
43
+ `,1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),p=e.split(`
44
+ `,1)[0],b=!f.trim(),m=0;if(this.options.pedantic?(m=2,u=f.trimStart()):b?m=t[1].length+1:(m=t[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=f.slice(m),m+=t[1].length),b&&this.rules.other.blankLine.test(p)&&(c+=p+`
45
+ `,e=e.substring(p.length+1),a=!0),!a){let A=this.rules.other.nextBulletRegex(m),_=this.rules.other.hrRegex(m),F=this.rules.other.fencesBeginRegex(m),E=this.rules.other.headingBeginRegex(m),P=this.rules.other.htmlBeginRegex(m);for(;e;){let V=e.split(`
46
+ `,1)[0],G;if(p=V,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),G=p):G=p.replace(this.rules.other.tabCharGlobal," "),F.test(p)||E.test(p)||P.test(p)||A.test(p)||_.test(p))break;if(G.search(this.rules.other.nonSpaceChar)>=m||!p.trim())u+=`
47
+ `+G.slice(m);else{if(b||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||F.test(f)||E.test(f)||_.test(f))break;u+=`
48
+ `+p}!b&&!p.trim()&&(b=!0),c+=V+`
49
+ `,e=e.substring(V.length+1),f=G.slice(m)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0));let k=null,I;this.options.gfm&&(k=this.rules.other.listIsTask.exec(u),k&&(I=k[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:c,task:!!k,checked:I,loose:!1,text:u,tokens:[]}),s.raw+=c}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let a=0;a<s.items.length;a++)if(this.lexer.state.top=!1,s.items[a].tokens=this.lexer.blockTokens(s.items[a].text,[]),!s.loose){let c=s.items[a].tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=u}if(s.loose)for(let a=0;a<s.items.length;a++)s.items[a].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){var o;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ao(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
+ `):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<n.length;l++)i.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:i.align[l]});for(let l of s)i.rows.push(ao(l,i.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
51
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=En(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=Lf(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),co(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return co(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,o,l=s,a=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){l+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){a+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+a);let u=[...r[0]][0].length,f=e.slice(0,s+r.index+u+o);if(Math.min(s,o)%2){let b=f.slice(1,-1);return{type:"em",raw:f,text:b,tokens:this.lexer.inlineTokens(b)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,s;if(t[2]==="@")r=t[0],s="mailto:"+r;else{let i;do i=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(i!==t[0]);r=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Qe=class Os{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Pt,this.options.tokenizer=this.options.tokenizer||new Rr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Re,block:Sr.normal,inline:An.normal};this.options.pedantic?(n.block=Sr.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=Sr.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:Sr,inline:An}}static lex(t,n){return new Os(n).lex(t)}static lexInline(t,n){return new Os(n).inlineTokens(t)}lex(t){t=t.replace(Re.carriageReturn,`
52
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var s,i,o;for(this.options.pedantic&&(t=t.replace(Re.tabCharGlobal," ").replace(Re.spaceLine,""));t;){let l;if((i=(s=this.options.extensions)==null?void 0:s.block)!=null&&i.some(c=>(l=c.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let c=n.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
53
+ `:n.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
54
+ `)?"":`
55
+ `)+l.raw,c.text+=`
56
+ `+l.text,this.inlineQueue.at(-1).src=c.text):n.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
57
+ `)?"":`
58
+ `)+l.raw,c.text+=`
59
+ `+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},n.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),n.push(l);continue}let a=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0,u=t.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(a))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
60
+ `)?"":`
61
+ `)+l.raw,c.text+=`
62
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(l),r=a.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
63
+ `)?"":`
64
+ `)+l.raw,c.text+=`
65
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var l,a,c,u,f;let r=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((a=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:a.call({lexer:this},r))??r;let i=!1,o="";for(;t;){i||(o=""),i=!1;let p;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(m=>(p=m.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let m=n.at(-1);p.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=p.raw,m.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,o)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let b=t;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0,k=t.slice(1),I;this.options.extensions.startInline.forEach(A=>{I=A.call({lexer:this},k),typeof I=="number"&&I>=0&&(m=Math.min(m,I))}),m<1/0&&m>=0&&(b=t.substring(0,m+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(o=p.raw.slice(-1)),i=!0;let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=p.raw,m.text+=p.text):n.push(p);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},Ar=class{options;parser;constructor(t){this.options=t||Pt}space(t){return""}code({text:t,lang:n,escaped:r}){var o;let s=(o=(n||"").match(Re.notSpaceStart))==null?void 0:o[0],i=t.replace(Re.endingNewline,"")+`
66
+ `;return s?'<pre><code class="language-'+Xe(s)+'">'+(r?i:Xe(i,!0))+`</code></pre>
67
+ `:"<pre><code>"+(r?i:Xe(i,!0))+`</code></pre>
68
+ `}blockquote({tokens:t}){return`<blockquote>
69
+ ${this.parser.parse(t)}</blockquote>
70
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
71
+ `}hr(t){return`<hr>
72
+ `}list(t){let n=t.ordered,r=t.start,s="";for(let l=0;l<t.items.length;l++){let a=t.items[l];s+=this.listitem(a)}let i=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+i+o+`>
73
+ `+s+"</"+i+`>
74
+ `}listitem(t){var r;let n="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+Xe(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
75
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
76
+ `}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){let o=t.rows[i];r="";for(let l=0;l<o.length;l++)r+=this.tablecell(o[l]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
73
77
  <thead>
74
- `+t+`</thead>
75
- `+r+`</table>
76
- `}tablerow({text:e}){return`<tr>
77
- ${e}</tr>
78
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
79
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ye(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=no(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+Ye(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=no(e);if(s===null)return Ye(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${Ye(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ye(e.text)}},As=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},kt=class Ps{options;renderer;textRenderer;constructor(t){this.options=t||Mt,this.options.renderer=this.options.renderer||new Cr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new As}static parse(t,n){return new Ps(n).parse(t)}static parseInline(t,n){return new Ps(n).parseInline(t)}parse(t,n=!0){var s,i;let r="";for(let l=0;l<t.length;l++){let o=t[l];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[o.type]){let c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}let a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
- `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var s,i;let r="";for(let l=0;l<t.length;l++){let o=t[l];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[o.type]){let c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}let a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Sr=(Is=class{options;block;constructor(e){this.options=e||Mt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?wt.lex:wt.lexInline}provideParser(){return this.block?kt.parse:kt.parseInline}},Eo(Is,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Is),io=class{defaults=ys();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=kt;Renderer=Cr;TextRenderer=As;Lexer=wt;Tokenizer=$r;Hooks=Sr;constructor(...e){this.use(...e)}walkTokens(e,t){var r,s;let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let l=i;for(let o of l.header)n=n.concat(this.walkTokens(o.tokens,t));for(let o of l.rows)for(let a of o)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let l=i;n=n.concat(this.walkTokens(l.items,t));break}default:{let l=i;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(o=>{let a=l[o].flat(1/0);n=n.concat(this.walkTokens(a,t))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...l){let o=s.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Cr(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,o=n.renderer[l],a=s[l];s[l]=(...c)=>{let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new $r(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,o=n.tokenizer[l],a=s[l];s[l]=(...c)=>{let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Sr;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,o=n.hooks[l],a=s[l];Sr.passThroughHooks.has(i)?s[l]=c=>{if(this.defaults.async)return Promise.resolve(o.call(s,c)).then(f=>a.call(s,f));let u=o.call(s,c);return a.call(s,u)}:s[l]=(...c)=>{let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(i.call(this,l)),s&&(o=o.concat(s.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return wt.lex(e,t??this.defaults)}parser(e,t){return kt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);let l=s.hooks?s.hooks.provideLexer():e?wt.lex:wt.lexInline,o=s.hooks?s.hooks.provideParser():e?kt.parse:kt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(t):t).then(a=>l(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>o(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let a=l(t,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=o(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return i(a)}}}onError(e,t){return n=>{if(n.message+=`
81
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ye(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Pt=new io;function me(e,t){return Pt.parse(e,t)}me.options=me.setOptions=function(e){return Pt.setOptions(e),me.defaults=Pt.defaults,Vl(me.defaults),me},me.getDefaults=ys,me.defaults=Mt,me.use=function(...e){return Pt.use(...e),me.defaults=Pt.defaults,Vl(me.defaults),me},me.walkTokens=function(e,t){return Pt.walkTokens(e,t)},me.parseInline=Pt.parseInline,me.Parser=kt,me.parser=kt.parse,me.Renderer=Cr,me.TextRenderer=As,me.Lexer=wt,me.lexer=wt.lex,me.Tokenizer=$r,me.Hooks=Sr,me.parse=me;function Af(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-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=lo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(oo(t));const r=e.highlight(t.text,n,t.lang||"");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.");oo(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=lo(n),i=s?e.langPrefix+fo(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:fo(t,!0)}
82
- </code></pre>`}}}}function lo(e){return(e||"").match(/\S*/)[0]}function oo(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const ao=/[&<>"']/,Ef=new RegExp(ao.source,"g"),co=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Tf=new RegExp(co.source,"g"),If={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},uo=e=>If[e];function fo(e,t){if(t){if(ao.test(e))return e.replace(Ef,uo)}else if(co.test(e))return e.replace(Tf,uo);return e}const Lf=/\$.*?\$/,Mf=/^\$(.*?)\$/,Pf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,jf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Pf.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(Lf);return n!==-1?n:t.length},tokenizer(t){const n=Mf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],ho=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Of=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new io;if(s.setOptions({breaks:!0}),n&&s.use(Af({highlight:n})),r){const i=jf(r);s.use({extensions:i})}return s.parse(ho(e,t))},Es=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},zf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Ff=e=>e.match(/[\u4E00-\u9FD5]/gu),Df=e=>{var t,n;return(((t=zf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=Ff(e))==null?void 0:n.length)??0)},Hf=async()=>{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},po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length&&Fs({serverURL:Dn(e),paths:Array.from(i).map(l=>si(Es(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ul),s.abort.bind(s)},go=({size:e})=>se("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[se("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"}),se("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"})]),Uf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},se("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"})),Nf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},se("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"})),Vf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[se("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"}),se("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"})]),Bf=({active:e=!1})=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[se("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"})]),Wf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[se("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"}),se("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"})]),qf=()=>se("svg",{width:"16",height:"16",ariaHidden:"true"},se("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"})),Kf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},se("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"})),Gf=()=>se("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},se("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"})),Zf=()=>se("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},se("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"})),Tn=({size:e=100})=>se("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},se("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},se("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Jf=()=>se("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[se("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"}),se("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"})]),Yf=()=>Yt("WALINE_USER_META",{nick:"",mail:"",link:""}),Qf=()=>Yt("WALINE_COMMENT_BOX_EDITOR",""),Xf="WALINE_LIKE",eh=Yt(Xf,[]),mo=()=>eh,th="WALINE_REACTION",nh=Yt(th,{}),rh=()=>nh;var Ts={},ot={},at={},vo;function bo(){if(vo)return at;vo=1;var e=at&&at.__awaiter||function(r,s,i,l){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(m){try{d(l.next(m))}catch(x){c(x)}}function f(m){try{d(l.throw(m))}catch(x){c(x)}}function d(m){m.done?a(m.value):o(m.value).then(u,f)}d((l=l.apply(r,s||[])).next())})},t=at&&at.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(m){return f([d,m])}}function f(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(i=0)),i;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,o=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1],a=d;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(d);break}a[2]&&i.ops.pop(),i.trys.pop();continue}d=s.call(r,i)}catch(m){d=[6,m],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(at,"__esModule",{value:!0}),at.ReCaptchaInstance=void 0;var n=function(){function r(s,i,l){this.siteKey=s,this.recaptchaID=i,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=l.sent(),l.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return at.ReCaptchaInstance=n,at}var yo;function sh(){if(yo)return ot;yo=1;var e=ot&&ot.__assign||function(){return e=Object.assign||function(s){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ot,"__esModule",{value:!0}),ot.getInstance=ot.load=void 0;var t=bo(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function s(){}return s.load=function(i,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var o=new s;return new Promise(function(a,c){o.loadScript(i,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,i,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(d){return d(f)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=d+"?render=explicit"+m,new Promise(function(x,b){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(E){s.setLoadingState(n.NOT_LOADED),b(E)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s}();return ot.load=r.load,ot.getInstance=r.getInstance,ot}var wo;function ih(){return wo||(wo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=sh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=bo();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ts)),Ts}var lh=ih();const ko={},oh=e=>{const t=ko[e]??(ko[e]=lh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},ah=e=>({execute:async t=>{const{load:n}=Fu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),ch=Yt("WALINE_USER",{}),Rr=()=>ch,uh={key:0,class:"wl-reaction"},fh=["textContent"],hh={class:"wl-reaction-list"},ph=["onClick"],dh={class:"wl-reaction-img"},gh=["src","alt"],mh=["textContent"],vh=["textContent"];var bh=gn({__name:"ArticleReaction",setup(e){const t=rh(),n=ir(Fn),r=ae(-1),s=ae([]),i=ve(()=>n.value.locale),l=ve(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=ve(()=>{var f;const{path:d}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:i.value[`reaction${x}`],active:t.value[d]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:d,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[b]=await Ir({serverURL:f,lang:d,paths:[m],type:l.value.map((E,w)=>`reaction${w}`),signal:x.signal});s.value=l.value.map((E,w)=>b[`reaction${w}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:d,lang:m,path:x}=n.value,b=t.value[x];r.value=f,b!==void 0&&(await On({serverURL:d,lang:m,path:x,type:`reaction${b}`,action:"desc"}),s.value[b]=Math.max(s.value[b]-1,0)),b!==f&&(await On({serverURL:d,lang:m,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),b===f?delete t.value[x]:t.value[x]=f,r.value=-1};return bn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),ts(()=>{a==null||a()}),(f,d)=>o.value?(L(),M("div",uh,[z("div",{class:"wl-reaction-title",textContent:ee(i.value.reactionTitle)},null,8,fh),z("ul",hh,[(L(!0),M(de,null,He(o.value,({active:m,icon:x,desc:b},E)=>(L(),M("li",{key:E,class:ye(["wl-reaction-item",{active:m}]),onClick:w=>u(E)},[z("div",dh,[z("img",{src:x,alt:b},null,8,gh),r.value===E?(L(),rt(G(Tn),{key:0,class:"wl-reaction-loading"})):(L(),M("div",{key:1,class:"wl-reaction-votes",textContent:ee(s.value[E]||0)},null,8,mh))]),z("div",{class:"wl-reaction-text",textContent:ee(b)},null,8,vh)],10,ph))),128))])])):Y("v-if",!0)}}),In=new Map;function yh(e){var t=In.get(e);t&&t.destroy()}function wh(e){var t=In.get(e);t&&t.update()}var Ln=null;typeof window>"u"?((Ln=function(e){return e}).destroy=function(e){return e},Ln.update=function(e){return e}):((Ln=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"&&!In.has(r)){var s,i=null,l=window.getComputedStyle(r),o=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(d){return r.style[d]=f[d]}),In.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",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",In.set(r,{destroy:a,update:u}),u()}function c(f){var d,m,x=f.restoreTextAlign,b=x===void 0?null:x,E=f.testForHeightReduction,w=E===void 0||E,$=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),w&&(d=function(I){for(var P=[];I&&I.parentNode&&I.parentNode instanceof Element;)I.parentNode.scrollTop&&P.push([I.parentNode,I.parentNode.scrollTop]),I=I.parentNode;return function(){return P.forEach(function(q){var Z=q[0],N=q[1];Z.style.scrollBehavior="auto",Z.scrollTop=N,Z.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",b&&(r.style.textAlign=b),d&&d(),i!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=m),$!==l.overflow&&!b)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),c({restoreTextAlign:H,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],yh),e},Ln.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],wh),e});var xo=Ln;const kh=["data-index"],xh=["src","title","onClick"];var _h=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=gt("wall"),s=ae({}),i=ae([]),l=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},o=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var d;if(f>=t.items.length)return;await qt();const m=Array.from(((d=r.value)==null?void 0:d.children)??[]).reduce((x,b)=>b.getBoundingClientRect().height<x.getBoundingClientRect().height?b:x);i.value[Number(m.dataset.index)].push(f),await a(f+1)},c=async(f=!1)=>{if(i.value.length===l()&&!f)return;i.value=o(l());const d=window.scrollY;await a(0),window.scrollTo({top:d})},u=f=>{s.value[f.target.src]=!0};return bn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),mt(()=>[t.items],()=>{s.value={},c(!0)}),mt(()=>[t.columnWidth,t.gap],()=>{c()})}),tc(()=>{n.unobserve(r.value)}),(f,d)=>(L(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:ln({gap:`${f.gap}px`})},[(L(!0),M(de,null,He(i.value,(m,x)=>(L(),M("div",{key:x,class:"wl-gallery-column","data-index":x,style:ln({gap:`${f.gap}px`})},[(L(!0),M(de,null,He(m,b=>(L(),M(de,{key:b},[s.value[f.items[b].src]?Y("v-if",!0):(L(),rt(G(Tn),{key:0,size:36,style:{margin:"20px auto"}})),z("img",{class:"wl-gallery-item",src:f.items[b].src,title:f.items[b].title,loading:"lazy",onLoad:u,onClick:E=>f.$emit("insert",`![](${f.items[b].src})`)},null,40,xh)],64))),128))],12,kh))),128))],4))}});const $h={key:0,class:"wl-login-info"},Ch={class:"wl-avatar"},Sh=["title"],Rh=["title"],Ah=["src"],Eh=["title","textContent"],Th={class:"wl-panel"},Ih=["for","textContent"],Lh=["id","onUpdate:modelValue","name","type"],Mh=["placeholder"],Ph={class:"wl-preview"},jh=["innerHTML"],Oh={class:"wl-footer"},zh={class:"wl-actions"},Fh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Dh=["title"],Hh=["title"],Uh=["title","aria-label"],Nh=["title"],Vh={class:"wl-info"},Bh={class:"wl-text-number"},Wh={key:0},qh=["textContent"],Kh=["textContent"],Gh=["disabled"],Zh=["placeholder"],Jh={key:1,class:"wl-loading"},Yh={key:0,class:"wl-tab-wrapper"},Qh=["title","onClick"],Xh=["src","alt"],ep={key:0,class:"wl-tabs"},tp=["onClick"],np=["src","alt","title"],rp=["title"];var _o=gn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=ir(Fn),i=Qf(),l=Yf(),o=Rr(),a=ae({}),c=gt("textarea"),u=gt("image-uploader"),f=gt("emoji-button"),d=gt("emoji-popup"),m=gt("gif-button"),x=gt("gif-popup"),b=gt("gif-search"),E=ae({tabs:[],map:{}}),w=ae(0),$=ae(!1),H=ae(!1),I=ae(!1),P=ae(""),q=ae(0),Z=hn({loading:!0,list:[]}),N=ae(0),_e=ae(!1),be=ae(""),U=ae(!1),Q=ae(!1),V=ve(()=>s.value.locale),F=ve(()=>!!o.value.token),X=ve(()=>s.value.imageUploader!==null),le=j=>{const R=c.value,K=R.selectionStart,h=R.selectionEnd||0,p=R.scrollTop;i.value=R.value.substring(0,K)+j+R.value.substring(h,R.value.length),R.focus(),R.selectionStart=K+j.length,R.selectionEnd=K+j.length,R.scrollTop=p},ct=({key:j,ctrlKey:R,metaKey:K})=>{U.value||(R||K)&&j==="Enter"&&We()},xt=async j=>{const R=`![${s.value.locale.uploading} ${j.name}]()`;le(R),U.value=!0;try{const K=await s.value.imageUploader(j);i.value=i.value.replace(R,`\r
83
- ![${j.name}](${K})`)}catch(K){alert(K.message),i.value=i.value.replace(R,"")}finally{U.value=!1}},Mn=j=>{var R;if((R=j.dataTransfer)!=null&&R.items){const K=Nl(j.dataTransfer.items);K&&X.value&&(xt(K),j.preventDefault())}},Ar=j=>{if(j.clipboardData){const R=Nl(j.clipboardData.items);R&&X.value&&xt(R)}},Qt=()=>{const j=u.value;j.files&&X.value&&xt(j.files[0]).then(()=>{j.value=""})},We=async()=>{var j;const{serverURL:R,lang:K,login:h,wordLimit:p,requiredMeta:g,recaptchaV3Key:y,turnstileKey:k}=s.value,v={comment:be.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await Hf()};if(!n.edit)if(o.value.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(V.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!Qo(v.mail)){a.value.mail.focus(),alert(V.value.mailError);return}v.nick||(v.nick=V.value.anonymous)}if(!v.comment){c.value.focus();return}if(!_e.value){alert(V.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",q.value.toString()));return}v.comment=ho(v.comment,E.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),U.value=!0;try{y&&(v.recaptchaV3=await oh(y).execute("social")),k&&(v.turnstile=await ah(k).execute("social"));const A={serverURL:R,lang:K,token:o.value.token,comment:v},C=await(n.edit?en({objectId:n.edit.objectId,...A}):Os(A));if(U.value=!1,C.errmsg){alert(C.errmsg);return}r("submit",C.data),i.value="",P.value="",await qt(),n.replyId&&r("cancelReply"),(j=n.edit)!=null&&j.objectId&&r("cancelEdit")}catch(A){U.value=!1,alert(A.message)}},Er=j=>{j.preventDefault();const{lang:R,serverURL:K}=s.value;Ds({serverURL:K,lang:R}).then(h=>{o.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ls=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Tr=j=>{j.preventDefault();const{lang:R,serverURL:K}=s.value,h=800,p=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-p)/2,k=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${K}/ui/profile?${k.toString()}`,"_blank",`width=${h},height=${p},left=${g},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},jt=j=>{var R,K,h,p;!((R=f.value)!=null&&R.contains(j.target))&&!((K=d.value)!=null&&K.contains(j.target))&&($.value=!1),!((h=m.value)!=null&&h.contains(j.target))&&!((p=x.value)!=null&&p.contains(j.target))&&(H.value=!1)},Ot=async j=>{var R;const{scrollTop:K,clientHeight:h,scrollHeight:p}=j.target,g=(h+K)/p,y=s.value.search,k=((R=b.value)==null?void 0:R.value)??"";g<.9||Z.loading||Q.value||(Z.loading=!0,(y.more&&Z.list.length?await y.more(k,Z.list.length):await y.search(k)).length?Z.list=[...Z.list,...y.more&&Z.list.length?await y.more(k,Z.list.length):await y.search(k)]:Q.value=!0,Z.loading=!1,setTimeout(()=>{j.target.scrollTop=K},50))},Xt=Cu(j=>{Z.list=[],Q.value=!1,Ot(j)},300);return Lt("click",jt),Lt("message",({data:j})=>{!j||j.type!=="profile"||(o.value={...o.value,...j.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Jt([s,q],([j,R])=>{const{wordLimit:K}=j;K?R<K[0]&&K[0]!==0?(N.value=K[0],_e.value=!1):R>K[1]?(N.value=K[1],_e.value=!1):(N.value=K[1],_e.value=!0):(N.value=0,_e.value=!0)}),mt(H,async j=>{var R;if(!j)return;const K=s.value.search;b.value&&(b.value.value=""),Z.loading=!0,Z.list=await(((R=K.default)==null?void 0:R.call(K))??K.search("")),Z.loading=!1}),bn(()=>{var j;(j=n.edit)!=null&&j.objectId&&(i.value=n.edit.orig),Jt(()=>i.value,R=>{const{highlighter:K,texRenderer:h}=s.value;be.value=R,P.value=Of(R,{emojiMap:E.value.map,highlighter:K,texRenderer:h}),q.value=Df(R),R?xo(c.value):xo.destroy(c.value)}),Jt(()=>s.value.emoji,async R=>{E.value=await Bu(R)})}),(j,R)=>{var K,h;return L(),M("div",{key:G(o).token,class:"wl-comment"},[G(s).login!=="disable"&&F.value&&!((K=j.edit)!=null&&K.objectId)?(L(),M("div",$h,[z("div",Ch,[z("button",{type:"submit",class:"wl-logout-btn",title:V.value.logout,onClick:Ls},[fe(G(go),{size:14})],8,Sh),z("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:V.value.profile,onClick:Tr},[z("img",{src:G(o).avatar,alt:"avatar"},null,8,Ah)],8,Rh)]),z("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:V.value.profile,onClick:Tr,textContent:ee(G(o).display_name)},null,8,Eh)])):Y("v-if",!0),z("div",Th,[G(s).login!=="force"&&G(s).meta.length&&!F.value?(L(),M("div",{key:0,class:ye(["wl-header",`item${G(s).meta.length}`])},[(L(!0),M(de,null,He(G(s).meta,p=>(L(),M("div",{key:p,class:"wl-header-item"},[z("label",{for:`wl-${p}`,textContent:ee(V.value[p]+(G(s).requiredMeta.includes(p)||!G(s).requiredMeta.length?"":`(${V.value.optional})`))},null,8,Ih),sr(z("input",{id:`wl-${p}`,ref_for:!0,ref:g=>{g&&(a.value[p]=g)},"onUpdate:modelValue":g=>G(l)[p]=g,class:ye(["wl-input",`wl-${p}`]),name:p,type:p==="mail"?"email":"text"},null,10,Lh),[[pu,G(l)[p]]])]))),128))],2)):Y("v-if",!0),sr(z("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=p=>we(i)?i.value=p:null),class:"wl-editor",placeholder:j.replyUser?`@${j.replyUser}`:V.value.placeholder,onKeydown:ct,onDrop:Mn,onPaste:Ar},null,40,Mh),[[gs,G(i)]]),sr(z("div",Ph,[R[7]||(R[7]=z("hr",null,null,-1)),z("h4",null,ee(V.value.preview)+":",1),z("div",{class:"wl-content",innerHTML:P.value},null,8,jh)],512),[[wl,I.value]]),z("div",Oh,[z("div",zh,[z("a",Fh,[fe(G(qf))]),sr(z("button",{ref:"emoji-button",type:"button",class:ye(["wl-action",{active:$.value}]),title:V.value.emoji,onClick:R[1]||(R[1]=p=>$.value=!$.value)},[fe(G(Nf))],10,Dh),[[wl,E.value.tabs.length]]),G(s).search?(L(),M("button",{key:0,ref:"gif-button",type:"button",class:ye(["wl-action",{active:H.value}]),title:V.value.gif,onClick:R[2]||(R[2]=p=>H.value=!H.value)},[fe(G(Jf))],10,Hh)):Y("v-if",!0),z("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Qt},null,544),X.value?(L(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:V.value.uploadImage,"aria-label":V.value.uploadImage},[fe(G(Vf))],8,Uh)):Y("v-if",!0),z("button",{type:"button",class:ye(["wl-action",{active:I.value}]),title:V.value.preview,onClick:R[3]||(R[3]=p=>I.value=!I.value)},[fe(G(Wf))],10,Nh)]),z("div",Vh,[R[9]||(R[9]=z("div",{class:"wl-captcha-container"},null,-1)),z("div",Bh,[st(ee(q.value)+" ",1),G(s).wordLimit?(L(),M("span",Wh,[R[8]||(R[8]=st("  /  ")),z("span",{class:ye({illegal:!_e.value}),textContent:ee(N.value)},null,10,qh)])):Y("v-if",!0),st("  "+ee(V.value.word),1)]),G(s).login!=="disable"&&!F.value?(L(),M("button",{key:0,type:"button",class:"wl-btn",onClick:Er,textContent:ee(V.value.login)},null,8,Kh)):Y("v-if",!0),G(s).login!=="force"||F.value?(L(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:U.value,onClick:We},[U.value?(L(),rt(G(Tn),{key:0,size:16})):(L(),M(de,{key:1},[st(ee(V.value.submit),1)],64))],8,Gh)):Y("v-if",!0)]),z("div",{ref:"gif-popup",class:ye(["wl-gif-popup",{display:H.value}])},[z("input",{ref:"gif-search",type:"text",placeholder:V.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...p)=>G(Xt)&&G(Xt)(...p))},null,40,Zh),Z.list.length?(L(),rt(_h,{key:0,items:Z.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=p=>le(p)),onScroll:Ot},null,8,["items"])):Y("v-if",!0),Z.loading?(L(),M("div",Jh,[fe(G(Tn),{size:30})])):Y("v-if",!0)],2),z("div",{ref:"emoji-popup",class:ye(["wl-emoji-popup",{display:$.value}])},[(L(!0),M(de,null,He(E.value.tabs,(p,g)=>(L(),M(de,{key:p.name},[g===w.value?(L(),M("div",Yh,[(L(!0),M(de,null,He(p.items,y=>(L(),M("button",{key:y,type:"button",title:y,onClick:k=>le(`:${y}:`)},[$.value?(L(),M("img",{key:0,class:"wl-emoji",src:E.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Xh)):Y("v-if",!0)],8,Qh))),128))])):Y("v-if",!0)],64))),128)),E.value.tabs.length>1?(L(),M("div",ep,[(L(!0),M(de,null,He(E.value.tabs,(p,g)=>(L(),M("button",{key:p.name,type:"button",class:ye(["wl-tab",{active:w.value===g}]),onClick:y=>w.value=g},[z("img",{class:"wl-emoji",src:p.icon,alt:p.name,title:p.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,np)],10,tp))),128))])):Y("v-if",!0)],2)])]),j.replyId||(h=j.edit)!=null&&h.objectId?(L(),M("button",{key:1,type:"button",class:"wl-close",title:V.value.cancelReply,onClick:R[6]||(R[6]=p=>j.replyId?r("cancelReply"):r("cancelEdit"))},[fe(G(go),{size:24})],8,rp)):Y("v-if",!0)])}}});const sp=["id"],ip={class:"wl-user","aria-hidden":"true"},lp=["src"],op={class:"wl-card"},ap={class:"wl-head"},cp=["href"],up={key:1,class:"wl-nick"},fp=["textContent"],hp=["textContent"],pp=["textContent"],dp=["textContent"],gp=["textContent"],mp={class:"wl-comment-actions"},vp=["title"],bp=["title"],yp={class:"wl-meta","aria-hidden":"true"},wp=["data-value","textContent"],kp={key:0,class:"wl-content"},xp={key:0},_p=["href"],$p=["innerHTML"],Cp={key:1,class:"wl-admin-actions"},Sp={class:"wl-comment-status"},Rp=["disabled","onClick","textContent"],Ap={key:3,class:"wl-quote"};var Ep=gn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,s=["approved","waiting","spam"],i=ir(Fn),l=mo(),o=zu(),a=Rr(),c=ve(()=>i.value.locale),u=ve(()=>{const{link:w}=n.comment;return w?li(w)?w:`https://${w}`:""}),f=ve(()=>l.value.includes(n.comment.objectId)),d=ve(()=>Jo(new Date(n.comment.time),o.value,c.value)),m=ve(()=>a.value.type==="administrator"),x=ve(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=ve(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),E=ve(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,$)=>{var H;const I=rc("CommentCard",!0);return L(),M("div",{id:w.comment.objectId.toString(),class:"wl-card-item"},[z("div",ip,[w.comment.avatar?(L(),M("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar,alt:""},null,8,lp)):Y("v-if",!0),w.comment.type?(L(),rt(G(Zf),{key:1})):Y("v-if",!0)]),z("div",op,[z("div",ap,[u.value?(L(),M("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(w.comment.nick),9,cp)):(L(),M("span",up,ee(w.comment.nick),1)),w.comment.type==="administrator"?(L(),M("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,fp)):Y("v-if",!0),w.comment.label?(L(),M("span",{key:3,class:"wl-badge",textContent:ee(w.comment.label)},null,8,hp)):Y("v-if",!0),w.comment.sticky?(L(),M("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,pp)):Y("v-if",!0),typeof w.comment.level=="number"?(L(),M("span",{key:5,class:ye(`wl-badge level${w.comment.level}`),textContent:ee(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,dp)):Y("v-if",!0),z("span",{class:"wl-time",textContent:ee(d.value)},null,8,gp),z("div",mp,[m.value||x.value?(L(),M(de,{key:0},[z("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=P=>r("edit",w.comment))},[fe(G(Gf))]),z("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=P=>r("delete",w.comment))},[fe(G(Uf))])],64)):Y("v-if",!0),z("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:$[2]||($[2]=P=>r("like",w.comment))},[fe(G(Bf),{active:f.value},null,8,["active"]),st(" "+ee("like"in w.comment?w.comment.like:""),1)],8,vp),z("button",{type:"button",class:ye(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:$[3]||($[3]=P=>r("reply",b.value?null:w.comment))},[fe(G(Kf))],10,bp)])]),z("div",yp,[(L(),M(de,null,He(["addr","browser","os"],P=>(L(),M(de,null,[w.comment[P]?(L(),M("span",{key:P,class:ye(`wl-${P}`),"data-value":w.comment[P],textContent:ee(w.comment[P])},null,10,wp)):Y("v-if",!0)],64))),64))]),E.value?Y("v-if",!0):(L(),M("div",kp,["reply_user"in w.comment&&w.comment.reply_user?(L(),M("p",xp,[z("a",{href:"#"+w.comment.pid},"@"+ee(w.comment.reply_user.nick),9,_p),$[17]||($[17]=z("span",null,": ",-1))])):Y("v-if",!0),z("div",{innerHTML:w.comment.comment},null,8,$p)])),m.value&&!E.value?(L(),M("div",Cp,[z("span",Sp,[(L(),M(de,null,He(s,P=>z("button",{key:P,type:"submit",class:ye(`wl-btn wl-${P}`),disabled:w.comment.status===P,onClick:q=>r("status",{status:P,comment:w.comment}),textContent:ee(c.value[P])},null,10,Rp)),64))]),m.value&&!("rid"in w.comment)?(L(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=P=>r("sticky",w.comment))},ee(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),b.value||E.value?(L(),M("div",{key:2,class:ye({"wl-reply-wrapper":b.value,"wl-edit-wrapper":E.value})},[fe(_o,{edit:w.edit,"reply-id":(H=w.reply)==null?void 0:H.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:$[5]||($[5]=P=>r("log")),onCancelReply:$[6]||($[6]=P=>r("reply",null)),onCancelEdit:$[7]||($[7]=P=>r("edit",null)),onSubmit:$[8]||($[8]=P=>r("submit",P))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in w.comment?(L(),M("div",Ap,[(L(!0),M(de,null,He(w.comment.children,P=>(L(),rt(I,{key:P.objectId,comment:P,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:$[9]||($[9]=q=>r("log")),onDelete:$[10]||($[10]=q=>r("delete",q)),onEdit:$[11]||($[11]=q=>r("edit",q)),onLike:$[12]||($[12]=q=>r("like",q)),onReply:$[13]||($[13]=q=>r("reply",q)),onStatus:$[14]||($[14]=q=>r("status",q)),onSticky:$[15]||($[15]=q=>r("sticky",q)),onSubmit:$[16]||($[16]=q=>r("submit",q))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,sp)}}});const $o="3.6.0",Tp={"data-waline":""},Ip={class:"wl-meta-head"},Lp={class:"wl-count"},Mp=["textContent"],Pp={class:"wl-sort"},jp=["onClick"],Op={class:"wl-cards"},zp={key:1,class:"wl-operation"},Fp=["textContent"],Dp={key:2,class:"wl-loading"},Hp=["textContent"],Up={key:4,class:"wl-operation"},Np=["textContent"],Vp={key:5,class:"wl-power"};var Bp=gn({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Rr(),r=mo(),s=ae("loading"),i=ae(0),l=ae(1),o=ae(0),a=ve(()=>Ko(t)),c=ae(a.value.commentSorting),u=ae([]),f=ae(null),d=ae(null),m=ve(()=>Go(a.value.dark)),x=ve(()=>a.value.locale);Hu(m,{id:"waline-darkmode"});let b=null;const E=U=>{const{serverURL:Q,path:V,pageSize:F}=a.value,X=new AbortController;s.value="loading",b==null||b(),js({serverURL:Q,lang:a.value.lang,path:V,pageSize:F,sortBy:ri[c.value],page:U,signal:X.signal,token:n.value.token}).then(le=>{s.value="success",i.value=le.count,u.value.push(...le.data),l.value=U,o.value=le.totalPages}).catch(le=>{le.name!=="AbortError"&&(console.error(le.message),s.value="error")}),b=X.abort.bind(X)},w=()=>{E(l.value+1)},$=()=>{i.value=0,u.value=[],E(1)},H=U=>{c.value!==U&&(c.value=U,$())},I=U=>{f.value=U},P=U=>{d.value=U},q=U=>{if(d.value)d.value.comment=U.comment,d.value.orig=U.orig;else if("rid"in U){const Q=u.value.find(({objectId:V})=>V===U.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(U)}else u.value.unshift(U),i.value+=1},Z=async({comment:U,status:Q})=>{if(U.status===Q)return;const{serverURL:V,lang:F}=a.value;await en({serverURL:V,lang:F,token:n.value.token,objectId:U.objectId,comment:{status:Q}}),U.status=Q},N=async U=>{if("rid"in U)return;const{serverURL:Q,lang:V}=a.value;await en({serverURL:Q,lang:V,token:n.value.token,objectId:U.objectId,comment:{sticky:U.sticky?0:1}}),U.sticky=!U.sticky},_e=async({objectId:U})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:Q,lang:V}=a.value;await zs({serverURL:Q,lang:V,token:n.value.token,objectId:U}),u.value.some((F,X)=>F.objectId===U?(u.value=u.value.filter((le,ct)=>ct!==X),!0):F.children.some((le,ct)=>le.objectId===U?(u.value[X].children=F.children.filter((xt,Mn)=>Mn!==ct),!0):!1))},be=async U=>{const{serverURL:Q,lang:V}=a.value,{objectId:F}=U,X=r.value.includes(F);await en({serverURL:Q,lang:V,objectId:F,token:n.value.token,comment:{like:!X}}),X?r.value=r.value.filter(le=>le!==F):(r.value=[...r.value,F],r.value.length>50&&(r.value=r.value.slice(-50))),U.like=Math.max(0,(U.like||0)+(X?-1:1))};return cc(Fn,a),bn(()=>{Jt(()=>[t.serverURL,t.path],()=>{$()})}),ts(()=>{b==null||b()}),(U,Q)=>(L(),M("div",Tp,[fe(bh),!f.value&&!d.value?(L(),rt(_o,{key:0,onLog:$,onSubmit:q})):Y("v-if",!0),z("div",Ip,[z("div",Lp,[i.value?(L(),M("span",{key:0,class:"wl-num",textContent:ee(i.value)},null,8,Mp)):Y("v-if",!0),st(" "+ee(x.value.comment),1)]),z("ul",Pp,[(L(!0),M(de,null,He(G(Wo),V=>(L(),M("li",{key:V,class:ye([V===c.value?"active":""]),onClick:F=>H(V)},ee(x.value[V]),11,jp))),128))])]),z("div",Op,[(L(!0),M(de,null,He(u.value,V=>(L(),rt(Ep,{key:V.objectId,"root-id":V.objectId,comment:V,reply:f.value,edit:d.value,onLog:$,onReply:I,onEdit:P,onSubmit:q,onStatus:Z,onDelete:_e,onSticky:N,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(L(),M("div",zp,[z("button",{type:"button",class:"wl-btn",onClick:$,textContent:ee(x.value.refresh)},null,8,Fp)])):s.value==="loading"?(L(),M("div",Dp,[fe(G(Tn),{size:30})])):u.value.length?l.value<o.value?(L(),M("div",Up,[z("button",{type:"button",class:"wl-btn",onClick:w,textContent:ee(x.value.more)},null,8,Np)])):Y("v-if",!0):(L(),M("div",{key:3,class:"wl-empty",textContent:ee(x.value.sofa)},null,8,Hp)),a.value.noCopyright?Y("v-if",!0):(L(),M("div",Vp,[Q[0]||(Q[0]=st(" Powered by ")),Q[1]||(Q[1]=z("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),st(" v"+ee(G($o)),1)]))]))}});const Co=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},So=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=Es(c);return u!==null&&t!==u},a=c=>Hs({serverURL:Dn(e),paths:c.map(u=>Es(u)??t),lang:s,signal:i.signal}).then(u=>Co(u,c)).catch(Ul);if(r){const c=l.filter(f=>!o(f)),u=l.filter(o);Us({serverURL:Dn(e),path:t,lang:s}).then(f=>Co(f,c)),u.length&&a(u)}else a(l);return i.abort.bind(i)},Wp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?bs(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const l=hn({...s}),o=hn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&po({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&So({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=vu(()=>se(Bp,{path:o.path,...l})),u.mount(i));const f=nl(a),d=nl(c);return{el:i,update:({comment:m,pageview:x,path:b=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([w,$])=>{l[w]=$}),o.path=b,m!==void 0&&(o.comment=m),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),d()}}},qp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Rr(),i=bs(e),l=new AbortController;return Ns({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length?(i.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Kp=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=bs(e),o=new AbortController;return Vs({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...ti(s),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${i}">${a.map((c,u)=>[`<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">${u+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(f=>f).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};oe.RecentComments=qp,oe.UserList=Kp,oe.addComment=Os,oe.commentCount=po,oe.defaultLocales=zn,oe.deleteComment=zs,oe.fetchCommentCount=Fs,oe.getArticleCounter=Ir,oe.getComment=js,oe.getPageview=Hs,oe.getRecentComment=Ns,oe.getUserList=Vs,oe.init=Wp,oe.login=Ds,oe.pageviewCount=So,oe.updateArticleCounter=On,oe.updateComment=en,oe.updatePageview=Us,oe.version=$o});
78
+ `+n+`</thead>
79
+ `+s+`</table>
80
+ `}tablerow({text:t}){return`<tr>
81
+ ${t}</tr>
82
+ `}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
83
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Xe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let s=this.parser.parseInline(r),i=oo(t);if(i===null)return s;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+Xe(n)+'"'),o+=">"+s+"</a>",o}image({href:t,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let i=oo(t);if(i===null)return Xe(r);t=i;let o=`<img src="${t}" alt="${r}"`;return n&&(o+=` title="${Xe(n)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Xe(t.text)}},Ls=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},et=class zs{options;renderer;textRenderer;constructor(t){this.options=t||Pt,this.options.renderer=this.options.renderer||new Ar,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ls}static parse(t,n){return new zs(n).parse(t)}static parseInline(t,n){return new zs(n).parseInline(t)}parse(t,n=!0){var s,i;let r="";for(let o=0;o<t.length;o++){let l=t[o];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[l.type]){let c=l,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=u||"";continue}}let a=l;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"def":{r+=this.renderer.def(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],u+=`
84
+ `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var s,i;let r="";for(let o=0;o<t.length;o++){let l=t[o];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=c||"";continue}}let a=l;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Tn=(Tr=class{options;block;constructor(t){this.options=t||Pt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Qe.lex:Qe.lexInline}provideParser(){return this.block?et.parse:et.parseInline}},js(Tr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),js(Tr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Tr),uo=class{defaults=xs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=et;Renderer=Ar;TextRenderer=Ls;Lexer=Qe;Tokenizer=Rr;Hooks=Tn;constructor(...e){this.use(...e)}walkTokens(e,t){var r,s;let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let o=i;for(let l of o.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of o.rows)for(let a of l)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let o=i;n=n.concat(this.walkTokens(o.items,t));break}default:{let o=i;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let a=o[l].flat(1/0);n=n.concat(this.walkTokens(a,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let l=s.renderer.apply(this,o);return l===!1&&(l=i.apply(this,o)),l}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Ar(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,l=n.renderer[o],a=s[o];s[o]=(...c)=>{let u=l.apply(s,c);return u===!1&&(u=a.apply(s,c)),u||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Rr(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,l=n.tokenizer[o],a=s[o];s[o]=(...c)=>{let u=l.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Tn;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,l=n.hooks[o],a=s[o];Tn.passThroughHooks.has(i)?s[o]=c=>{if(this.defaults.async&&Tn.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await l.call(s,c);return a.call(s,f)})();let u=l.call(s,c);return a.call(s,u)}:s[o]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(s,c);return f===!1&&(f=await a.apply(s,c)),f})();let u=l.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let l=[];return l.push(i.call(this,o)),s&&(l=l.concat(s.call(this,o))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qe.lex(e,t??this.defaults)}parser(e,t){return et.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(t):t,l=await(s.hooks?await s.hooks.provideLexer():e?Qe.lex:Qe.lexInline)(o,s),a=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(a,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():e?et.parse:et.parseInline)(a,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let o=(s.hooks?s.hooks.provideLexer():e?Qe.lex:Qe.lexInline)(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():e?et.parse:et.parseInline)(o,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=`
85
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Xe(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},jt=new uo;function me(e,t){return jt.parse(e,t)}me.options=me.setOptions=function(e){return jt.setOptions(e),me.defaults=jt.defaults,Kl(me.defaults),me},me.getDefaults=xs,me.defaults=Pt,me.use=function(...e){return jt.use(...e),me.defaults=jt.defaults,Kl(me.defaults),me},me.walkTokens=function(e,t){return jt.walkTokens(e,t)},me.parseInline=jt.parseInline,me.Parser=et,me.parser=et.parse,me.Renderer=Ar,me.TextRenderer=Ls,me.Lexer=Qe,me.lexer=Qe.lex,me.Tokenizer=Rr,me.Hooks=Tn,me.parse=me;function Mf(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-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=fo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(ho(t));const r=e.highlight(t.text,n,t.lang||"");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.");ho(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=fo(n),i=s?e.langPrefix+vo(s):e.emptyLangClass,o=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${o}>${r?t:vo(t,!0)}
86
+ </code></pre>`}}}}function fo(e){return(e||"").match(/\S*/)[0]}function ho(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const po=/[&<>"']/,Pf=new RegExp(po.source,"g"),go=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,jf=new RegExp(go.source,"g"),Of={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mo=e=>Of[e];function vo(e,t){if(t){if(po.test(e))return e.replace(Pf,mo)}else if(go.test(e))return e.replace(jf,mo);return e}const zf=/\$.*?\$/,Ff=/^\$(.*?)\$/,Df=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Hf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Df.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(zf);return n!==-1?n:t.length},tokenizer(t){const n=Ff.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],bo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Uf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new uo;if(s.setOptions({breaks:!0}),n&&s.use(Mf({highlight:n})),r){const i=Hf(r);s.use({extensions:i})}return s.parse(bo(e,t))},Is=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Nf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Vf=e=>e.match(/[\u4E00-\u9FD5]/gu),Bf=e=>{var t,n;return(((t=Nf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=Vf(e))==null?void 0:n.length)??0)},Wf=async()=>{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},yo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length&&Us({serverURL:Hn(e),paths:Array.from(i).map(o=>oi(Is(o)??t)),lang:r,signal:s.signal}).then(o=>{i.forEach((l,a)=>{l.innerText=o[a].toString()})}).catch(Wl),s.abort.bind(s)},wo=({size:e})=>ee("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ee("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"}),ee("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"})]),qf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),Kf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),Gf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),Zf=({active:e=!1})=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"})]),Jf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),Yf=()=>ee("svg",{width:"16",height:"16",ariaHidden:"true"},ee("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"})),Xf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),Qf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),eh=()=>ee("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ee("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"})),th=()=>ee("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[ee("path",{d:"M461.6 129.56C489.6 105.96 534.8 105.96 562.4 129.56L625.6 183.96C637.6 194.36 660.4 202.76 676 202.76H744C786.4 202.76 821.2 237.56 821.2 279.96V347.96C821.2 363.96 829.6 386.36 840 398.36L894.4 461.56C918 489.16 918 534.76 894.8 562.36L840.4 625.56C830 637.56 821.6 660.36 821.6 675.96V743.96C821.6 786.36 786.8 821.16 744.4 821.16H676.4C660.4 821.16 638 829.56 626 839.96L562.8 894.36C534.8 917.96 489.6 917.96 462 894.36L398.8 839.96C386.8 829.56 364 821.16 348.4 821.16H279.2C236.8 821.16 202 786.36 202 743.96V675.56C201.999 659.96 193.6 637.56 183.6 625.56L129.6 561.96C106.4 534.36 106.4 489.56 129.6 461.96L183.6 398.36C193.6 386.359 202 363.959 202 348.36V279.96C202 237.56 236.8 202.76 279.2 202.76H348.4C364 202.76 386.8 194.36 398.8 184.36L461.6 129.56ZM549.567 331.896C530.047 303.082 486.645 306.12 471.433 337.412L442.175 396.526C435.587 409.848 422.856 419.097 408.146 421.226L342.706 430.726C340.776 431 338.884 431.397 336.993 431.946C303.482 441.361 292.756 483.493 317.671 507.812L364.975 553.96C375.623 564.321 380.507 579.299 377.991 593.954L366.917 659.102C366.595 661.03 366.355 662.967 366.279 664.923C364.906 699.688 401.683 722.937 432.514 706.738L491.05 675.966C504.217 669.068 519.954 669.069 533.121 675.966L591.675 706.738C593.406 707.645 595.174 708.432 597.028 709.104C629.666 721.205 663.139 693.382 657.273 659.102L646.069 593.954C643.42 579.176 648.24 564.083 659.001 553.6L706.315 507.461C707.687 506.118 708.994 504.66 710.215 503.127C731.779 475.809 715.737 435.41 681.281 430.365L615.839 420.874C601.13 418.745 588.4 409.486 581.821 396.174L552.562 337.052C551.644 335.284 550.674 333.551 549.567 331.896Z",fill:"#f59831"})]),Ln=({size:e=100})=>ee("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ee("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ee("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),nh=()=>ee("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ee("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"}),ee("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"})]),rh=()=>Yt("WALINE_USER_META",{nick:"",mail:"",link:""}),sh=()=>Yt("WALINE_COMMENT_BOX_EDITOR",""),ih="WALINE_LIKE",lh=Yt(ih,[]),ko=()=>lh,oh="WALINE_REACTION",ah=Yt(oh,{}),ch=()=>ah;var Ms={},ct={},ut={},xo;function _o(){if(xo)return ut;xo=1;var e=ut&&ut.__awaiter||function(r,s,i,o){function l(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(b){try{p(o.next(b))}catch(m){c(m)}}function f(b){try{p(o.throw(b))}catch(m){c(m)}}function p(b){b.done?a(b.value):l(b.value).then(u,f)}p((o=o.apply(r,s||[])).next())})},t=ut&&ut.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(b){return f([p,b])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,l=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=s.call(r,i)}catch(b){p=[6,b],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.ReCaptchaInstance=void 0;var n=(function(){function r(s,i,o){this.siteKey=s,this.recaptchaID=i,this.recaptcha=o,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(o){switch(o.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=o.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=o.sent(),o.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r})();return ut.ReCaptchaInstance=n,ut}var Co;function uh(){if(Co)return ct;Co=1;var e=ct&&ct.__assign||function(){return e=Object.assign||function(s){for(var i,o=1,l=arguments.length;o<l;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ct,"__esModule",{value:!0}),ct.getInstance=ct.load=void 0;var t=_o(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=(function(){function s(){}return s.load=function(i,o){if(o===void 0&&(o={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var l=new s;return new Promise(function(a,c){l.loadScript(i,o.useRecaptchaNet||!1,o.useEnterprise||!1,o.renderParameters?o.renderParameters:{},o.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=l.doExplicitRender(grecaptcha,i,o.explicitRenderParameters?o.explicitRenderParameters:{},o.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(p){return p(f)}),s.successfulLoadingConsumers=[],o.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,o,l,a,c){var u=this;o===void 0&&(o=!1),l===void 0&&(l=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";o?l?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":l&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var b=this.buildQueryString(a);return f.src=p+"?render=explicit"+b,new Promise(function(m,k){f.addEventListener("load",u.waitForScriptToLoad(function(){m(f)},l),!1),f.onerror=function(I){s.setLoadingState(n.NOT_LOADED),k(I)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var o=Object.keys(i);return o.length<1?"":"&"+Object.keys(i).filter(function(l){return!!i[l]}).map(function(l){return l+"="+i[l]}).join("&")},s.prototype.waitForScriptToLoad=function(i,o){var l=this;return function(){window.grecaptcha===void 0?setTimeout(function(){l.waitForScriptToLoad(i,o)},s.SCRIPT_LOAD_DELAY):o?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,o,l,a){var c=e({sitekey:o},l);return l.container?a?i.enterprise.render(l.container,c):i.render(l.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s})();return ct.load=r.load,ct.getInstance=r.getInstance,ct}var $o;function fh(){return $o||($o=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=uh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=_o();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Ms)),Ms}var hh=fh();const So={},ph=e=>{const t=So[e]??(So[e]=hh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},dh=e=>({execute:async t=>{const{load:n}=Vu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),gh=Yt("WALINE_USER",{}),Er=()=>gh,mh={key:0,class:"wl-reaction"},vh=["textContent"],bh={class:"wl-reaction-list"},yh=["onClick"],wh={class:"wl-reaction-img"},kh=["src","alt"],xh=["textContent"],_h=["textContent"];var Ch=gn({__name:"ArticleReaction",setup(e){const t=ch(),n=or(Dn),r=ae(-1),s=ae([]),i=ve(()=>n.value.locale),o=ve(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),l=ve(()=>{var f;const{path:p}=n.value;return((f=o.value)==null?void 0:f.map((b,m)=>({icon:b,desc:i.value[`reaction${m}`],active:t.value[p]===m})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:b}=n.value;if(!o.value)return;const m=new AbortController;a=m.abort.bind(m);const[k]=await Pr({serverURL:f,lang:p,paths:[b],type:o.value.map((I,A)=>`reaction${A}`),signal:m.signal});s.value=o.value.map((I,A)=>k[`reaction${A}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:b,path:m}=n.value,k=t.value[m];r.value=f,k!==void 0&&(await zn({serverURL:p,lang:b,path:m,type:`reaction${k}`,action:"desc"}),s.value[k]=Math.max(s.value[k]-1,0)),k!==f&&(await zn({serverURL:p,lang:b,path:m,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),k===f?delete t.value[m]:t.value[m]=f,r.value=-1};return bn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>l.value?(T(),M("div",mh,[j("div",{class:"wl-reaction-title",textContent:ie(i.value.reactionTitle)},null,8,vh),j("ul",bh,[(T(!0),M(de,null,He(l.value,({active:b,icon:m,desc:k},I)=>(T(),M("li",{key:I,class:ye(["wl-reaction-item",{active:b}]),onClick:A=>u(I)},[j("div",wh,[j("img",{src:m,alt:k},null,8,kh),r.value===I?(T(),Ze(W(Ln),{key:0,class:"wl-reaction-loading"})):(T(),M("div",{key:1,class:"wl-reaction-votes",textContent:ie(s.value[I]||0)},null,8,xh))]),j("div",{class:"wl-reaction-text",textContent:ie(k)},null,8,_h)],10,yh))),128))])])):X("v-if",!0)}}),In=new Map;function $h(e){var t=In.get(e);t&&t.destroy()}function Sh(e){var t=In.get(e);t&&t.update()}var Mn=null;typeof window>"u"?((Mn=function(e){return e}).destroy=function(e){return e},Mn.update=function(e){return e}):((Mn=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"&&!In.has(r)){var s,i=null,o=window.getComputedStyle(r),l=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",l),window.removeEventListener("resize",u),Object.keys(f).forEach(function(p){return r.style[p]=f[p]}),In.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",u),r.addEventListener("input",l),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",In.set(r,{destroy:a,update:u}),u()}function c(f){var p,b,m=f.restoreTextAlign,k=m===void 0?null:m,I=f.testForHeightReduction,A=I===void 0||I,_=o.overflowY;if(r.scrollHeight!==0&&(o.resize==="vertical"?r.style.resize="none":o.resize==="both"&&(r.style.resize="horizontal"),A&&(p=(function(E){for(var P=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&P.push([E.parentNode,E.parentNode.scrollTop]),E=E.parentNode;return function(){return P.forEach(function(V){var G=V[0],Z=V[1];G.style.scrollBehavior="auto",G.scrollTop=Z,G.style.scrollBehavior=null})}})(r),r.style.height=""),b=o.boxSizing==="content-box"?r.scrollHeight-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):r.scrollHeight+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),o.maxHeight!=="none"&&b>parseFloat(o.maxHeight)?(o.overflowY==="hidden"&&(r.style.overflow="scroll"),b=parseFloat(o.maxHeight)):o.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=b+"px",k&&(r.style.textAlign=k),p&&p(),i!==b&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=b),_!==o.overflow&&!k)){var F=o.textAlign;o.overflow==="hidden"&&(r.style.textAlign=F==="start"?"end":"start"),c({restoreTextAlign:F,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}})(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],$h),e},Mn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Sh),e});var Ro=Mn;const Rh=["data-index"],Ah=["src","title","onClick"];var Eh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=vt("wall"),s=ae({}),i=ae([]),o=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},l=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var p;if(f>=t.items.length)return;await qt();const b=Array.from(((p=r.value)==null?void 0:p.children)??[]).reduce((m,k)=>k.getBoundingClientRect().height<m.getBoundingClientRect().height?k:m);i.value[Number(b.dataset.index)].push(f),await a(f+1)},c=async(f=!1)=>{if(i.value.length===o()&&!f)return;i.value=l(o());const p=window.scrollY;await a(0),window.scrollTo({top:p})},u=f=>{s.value[f.target.src]=!0};return bn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),bt(()=>[t.items],()=>{s.value={},c(!0)}),bt(()=>[t.columnWidth,t.gap],()=>{c()})}),lc(()=>{n.unobserve(r.value)}),(f,p)=>(T(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:ln({gap:`${e.gap}px`})},[(T(!0),M(de,null,He(i.value,(b,m)=>(T(),M("div",{key:m,class:"wl-gallery-column","data-index":m,style:ln({gap:`${e.gap}px`})},[(T(!0),M(de,null,He(b,k=>(T(),M(de,{key:k},[s.value[e.items[k].src]?X("v-if",!0):(T(),Ze(W(Ln),{key:0,size:36,style:{margin:"20px auto"}})),j("img",{class:"wl-gallery-item",src:e.items[k].src,title:e.items[k].title,loading:"lazy",onLoad:u,onClick:I=>f.$emit("insert",`![](${e.items[k].src})`)},null,40,Ah)],64))),128))],12,Rh))),128))],4))}});const Th={key:0,class:"wl-login-info"},Lh={class:"wl-avatar"},Ih=["title"],Mh=["title"],Ph=["src"],jh=["title","textContent"],Oh={class:"wl-panel"},zh=["for","textContent"],Fh=["id","onUpdate:modelValue","name","type"],Dh=["placeholder"],Hh={class:"wl-preview"},Uh=["innerHTML"],Nh={class:"wl-footer"},Vh={class:"wl-actions"},Bh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Wh=["title"],qh=["title"],Kh=["title","aria-label"],Gh=["title"],Zh={class:"wl-info"},Jh={class:"wl-text-number"},Yh={key:0},Xh=["textContent"],Qh=["textContent"],ep=["disabled"],tp=["placeholder"],np={key:1,class:"wl-loading"},rp={key:0,class:"wl-tab-wrapper"},sp=["title","onClick"],ip=["src","alt"],lp={key:0,class:"wl-tabs"},op=["onClick"],ap=["src","alt","title"],cp=["title"];var Ao=gn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=or(Dn),i=sh(),o=rh(),l=Er(),a=ae({}),c=vt("textarea"),u=vt("image-uploader"),f=vt("emoji-button"),p=vt("emoji-popup"),b=vt("gif-button"),m=vt("gif-popup"),k=vt("gif-search"),I=ae({tabs:[],map:{}}),A=ae(0),_=ae(!1),F=ae(!1),E=ae(!1),P=ae(""),V=ae(0),G=hn({loading:!0,list:[]}),Z=ae(0),_e=ae(!1),be=ae(""),H=ae(!1),Q=ae(!1),N=ve(()=>s.value.locale),O=ve(()=>!!l.value.token),J=ve(()=>s.value.imageUploader!==null),le=D=>{const S=c.value,q=S.selectionStart,h=S.selectionEnd||0,d=S.scrollTop;i.value=S.value.substring(0,q)+D+S.value.substring(h,S.value.length),S.focus(),S.selectionStart=q+D.length,S.selectionEnd=q+D.length,S.scrollTop=d},ft=({key:D,ctrlKey:S,metaKey:q})=>{H.value||(S||q)&&D==="Enter"&&We()},xt=async D=>{const S=`![${s.value.locale.uploading} ${D.name}]()`;le(S),H.value=!0;try{const q=await s.value.imageUploader(D);i.value=i.value.replace(S,`\r
87
+ ![${D.name}](${q})`)}catch(q){alert(q.message),i.value=i.value.replace(S,"")}finally{H.value=!1}},Pn=D=>{var S;if((S=D.dataTransfer)!=null&&S.items){const q=ql(D.dataTransfer.items);q&&J.value&&(xt(q),D.preventDefault())}},Lr=D=>{if(D.clipboardData){const S=ql(D.clipboardData.items);S&&J.value&&xt(S)}},Xt=()=>{const D=u.value;D.files&&J.value&&xt(D.files[0]).then(()=>{D.value=""})},We=async()=>{var D;const{serverURL:S,lang:q,login:h,wordLimit:d,requiredMeta:g,recaptchaV3Key:y,turnstileKey:w}=s.value,v={comment:be.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:s.value.path,ua:await Wf()};if(!n.edit)if(l.value.token)v.nick=l.value.display_name,v.mail=l.value.email,v.link=l.value.url;else{if(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(N.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!ra(v.mail)){a.value.mail.focus(),alert(N.value.mailError);return}v.nick||(v.nick=N.value.anonymous)}if(!v.comment){c.value.focus();return}if(!_e.value){alert(N.value.wordHint.replace("$0",d[0].toString()).replace("$1",d[1].toString()).replace("$2",V.value.toString()));return}v.comment=bo(v.comment,I.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),H.value=!0;try{y&&(v.recaptchaV3=await ph(y).execute("social")),w&&(v.turnstile=await dh(w).execute("social"));const R={serverURL:S,lang:q,token:l.value.token,comment:v},C=await(n.edit?en({objectId:n.edit.objectId,...R}):Ds(R));if(H.value=!1,C.errmsg){alert(C.errmsg);return}r("submit",C.data),i.value="",P.value="",await qt(),n.replyId&&r("cancelReply"),(D=n.edit)!=null&&D.objectId&&r("cancelEdit")}catch(R){H.value=!1,alert(R.message)}},Ir=D=>{D.preventDefault();const{lang:S,serverURL:q}=s.value;Ns({serverURL:q,lang:S}).then(h=>{l.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ps=()=>{l.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Mr=D=>{D.preventDefault();const{lang:S,serverURL:q}=s.value,h=800,d=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-d)/2,w=new URLSearchParams({lng:S,token:l.value.token}),v=window.open(`${q}/ui/profile?${w.toString()}`,"_blank",`width=${h},height=${d},left=${g},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:l.value.token},"*")},Ot=D=>{var S,q,h,d;!((S=f.value)!=null&&S.contains(D.target))&&!((q=p.value)!=null&&q.contains(D.target))&&(_.value=!1),!((h=b.value)!=null&&h.contains(D.target))&&!((d=m.value)!=null&&d.contains(D.target))&&(F.value=!1)},zt=async D=>{var S;const{scrollTop:q,clientHeight:h,scrollHeight:d}=D.target,g=(h+q)/d,y=s.value.search,w=((S=k.value)==null?void 0:S.value)??"";g<.9||G.loading||Q.value||(G.loading=!0,(y.more&&G.list.length?await y.more(w,G.list.length):await y.search(w)).length?G.list=[...G.list,...y.more&&G.list.length?await y.more(w,G.list.length):await y.search(w)]:Q.value=!0,G.loading=!1,setTimeout(()=>{D.target.scrollTop=q},50))},Qt=Tu(D=>{G.list=[],Q.value=!1,zt(D)},300);return Mt("click",Ot),Mt("message",({data:D})=>{!D||D.type!=="profile"||(l.value={...l.value,...D.data},[localStorage,sessionStorage].filter(S=>S.getItem("WALINE_USER")).forEach(S=>{S.setItem("WALINE_USER",JSON.stringify(l))}))}),Jt([s,V],([D,S])=>{const{wordLimit:q}=D;q?S<q[0]&&q[0]!==0?(Z.value=q[0],_e.value=!1):S>q[1]?(Z.value=q[1],_e.value=!1):(Z.value=q[1],_e.value=!0):(Z.value=0,_e.value=!0)}),bt(F,async D=>{var S;if(!D)return;const q=s.value.search;k.value&&(k.value.value=""),G.loading=!0,G.list=await(((S=q.default)==null?void 0:S.call(q))??q.search("")),G.loading=!1}),bn(()=>{var D;(D=n.edit)!=null&&D.objectId&&(i.value=n.edit.orig),Jt(()=>i.value,S=>{const{highlighter:q,texRenderer:h}=s.value;be.value=S,P.value=Uf(S,{emojiMap:I.value.map,highlighter:q,texRenderer:h}),V.value=Bf(S),S?Ro(c.value):Ro.destroy(c.value)}),Jt(()=>s.value.emoji,async S=>{I.value=await Zu(S)})}),(D,S)=>{var q,h;return T(),M("div",{key:W(l).token,class:"wl-comment"},[W(s).login!=="disable"&&O.value&&!((q=e.edit)!=null&&q.objectId)?(T(),M("div",Th,[j("div",Lh,[j("button",{type:"submit",class:"wl-logout-btn",title:N.value.logout,onClick:Ps},[fe(W(wo),{size:14})],8,Ih),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Mr},[j("img",{src:W(l).avatar,alt:"avatar"},null,8,Ph)],8,Mh)]),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Mr,textContent:ie(W(l).display_name)},null,8,jh)])):X("v-if",!0),j("div",Oh,[W(s).login!=="force"&&W(s).meta.length&&!O.value?(T(),M("div",{key:0,class:ye(["wl-header",`item${W(s).meta.length}`])},[(T(!0),M(de,null,He(W(s).meta,d=>(T(),M("div",{key:d,class:"wl-header-item"},[j("label",{for:`wl-${d}`,textContent:ie(N.value[d]+(W(s).requiredMeta.includes(d)||!W(s).requiredMeta.length?"":`(${N.value.optional})`))},null,8,zh),ir(j("input",{id:`wl-${d}`,ref_for:!0,ref:g=>{g&&(a.value[d]=g)},"onUpdate:modelValue":g=>W(o)[d]=g,class:ye(["wl-input",`wl-${d}`]),name:d,type:d==="mail"?"email":"text"},null,10,Fh),[[bu,W(o)[d]]])]))),128))],2)):X("v-if",!0),ir(j("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":S[0]||(S[0]=d=>we(i)?i.value=d:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:N.value.placeholder,onKeydown:ft,onDrop:Pn,onPaste:Lr},null,40,Dh),[[bs,W(i)]]),ir(j("div",Hh,[S[7]||(S[7]=j("hr",null,null,-1)),j("h4",null,ie(N.value.preview)+":",1),j("div",{class:"wl-content",innerHTML:P.value},null,8,Uh)],512),[[Cl,E.value]]),j("div",Nh,[j("div",Vh,[j("a",Bh,[fe(W(Yf))]),ir(j("button",{ref:"emoji-button",type:"button",class:ye(["wl-action",{active:_.value}]),title:N.value.emoji,onClick:S[1]||(S[1]=d=>_.value=!_.value)},[fe(W(Kf))],10,Wh),[[Cl,I.value.tabs.length]]),W(s).search?(T(),M("button",{key:0,ref:"gif-button",type:"button",class:ye(["wl-action",{active:F.value}]),title:N.value.gif,onClick:S[2]||(S[2]=d=>F.value=!F.value)},[fe(W(nh))],10,qh)):X("v-if",!0),j("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Xt},null,544),J.value?(T(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:N.value.uploadImage,"aria-label":N.value.uploadImage},[fe(W(Gf))],8,Kh)):X("v-if",!0),j("button",{type:"button",class:ye(["wl-action",{active:E.value}]),title:N.value.preview,onClick:S[3]||(S[3]=d=>E.value=!E.value)},[fe(W(Jf))],10,Gh)]),j("div",Zh,[S[9]||(S[9]=j("div",{class:"wl-captcha-container"},null,-1)),j("div",Jh,[lt(ie(V.value)+" ",1),W(s).wordLimit?(T(),M("span",Yh,[S[8]||(S[8]=lt("  /  ",-1)),j("span",{class:ye({illegal:!_e.value}),textContent:ie(Z.value)},null,10,Xh)])):X("v-if",!0),lt("  "+ie(N.value.word),1)]),W(s).login!=="disable"&&!O.value?(T(),M("button",{key:0,type:"button",class:"wl-btn",onClick:Ir,textContent:ie(N.value.login)},null,8,Qh)):X("v-if",!0),W(s).login!=="force"||O.value?(T(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:H.value,onClick:We},[H.value?(T(),Ze(W(Ln),{key:0,size:16})):(T(),M(de,{key:1},[lt(ie(N.value.submit),1)],64))],8,ep)):X("v-if",!0)]),j("div",{ref:"gif-popup",class:ye(["wl-gif-popup",{display:F.value}])},[j("input",{ref:"gif-search",type:"text",placeholder:N.value.gifSearchPlaceholder,onInput:S[4]||(S[4]=(...d)=>W(Qt)&&W(Qt)(...d))},null,40,tp),G.list.length?(T(),Ze(Eh,{key:0,items:G.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=d=>le(d)),onScroll:zt},null,8,["items"])):X("v-if",!0),G.loading?(T(),M("div",np,[fe(W(Ln),{size:30})])):X("v-if",!0)],2),j("div",{ref:"emoji-popup",class:ye(["wl-emoji-popup",{display:_.value}])},[(T(!0),M(de,null,He(I.value.tabs,(d,g)=>(T(),M(de,{key:d.name},[g===A.value?(T(),M("div",rp,[(T(!0),M(de,null,He(d.items,y=>(T(),M("button",{key:y,type:"button",title:y,onClick:w=>le(`:${y}:`)},[_.value?(T(),M("img",{key:0,class:"wl-emoji",src:I.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ip)):X("v-if",!0)],8,sp))),128))])):X("v-if",!0)],64))),128)),I.value.tabs.length>1?(T(),M("div",lp,[(T(!0),M(de,null,He(I.value.tabs,(d,g)=>(T(),M("button",{key:d.name,type:"button",class:ye(["wl-tab",{active:A.value===g}]),onClick:y=>A.value=g},[j("img",{class:"wl-emoji",src:d.icon,alt:d.name,title:d.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ap)],10,op))),128))])):X("v-if",!0)],2)])]),e.replyId||(h=e.edit)!=null&&h.objectId?(T(),M("button",{key:1,type:"button",class:"wl-close",title:N.value.cancelReply,onClick:S[6]||(S[6]=d=>e.replyId?r("cancelReply"):r("cancelEdit"))},[fe(W(wo),{size:24})],8,cp)):X("v-if",!0)])}}});const up=["id"],fp={class:"wl-user","aria-hidden":"true"},hp=["src"],pp={class:"wl-card"},dp={class:"wl-head"},gp=["href"],mp={key:1,class:"wl-nick"},vp=["textContent"],bp=["textContent"],yp=["textContent"],wp=["textContent"],kp={class:"wl-comment-actions"},xp=["title"],_p=["title"],Cp={class:"wl-meta","aria-hidden":"true"},$p=["data-value","textContent"],Sp={key:0,class:"wl-content"},Rp={key:0},Ap=["href"],Ep=["innerHTML"],Tp={key:1,class:"wl-admin-actions"},Lp={class:"wl-comment-status"},Ip=["disabled","onClick","textContent"],Mp={key:3,class:"wl-quote"};var Pp=gn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,s=["approved","waiting","spam"],i=or(Dn),o=ko(),l=Nu(),a=Er(),c=ve(()=>i.value.locale),u=ve(()=>{const{link:A}=n.comment;return A?ci(A)?A:`https://${A}`:""}),f=ve(()=>o.value.includes(n.comment.objectId)),p=ve(()=>ta(new Date(n.comment.time),l.value,c.value)),b=ve(()=>a.value.type==="administrator"),m=ve(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=ve(()=>{var A;return n.comment.objectId===((A=n.reply)==null?void 0:A.objectId)}),I=ve(()=>{var A;return n.comment.objectId===((A=n.edit)==null?void 0:A.objectId)});return(A,_)=>{var F;const E=ac("CommentCard",!0);return T(),M("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[j("div",fp,[e.comment.avatar?(T(),M("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,hp)):X("v-if",!0),e.comment.type==="guest"?(T(),Ze(W(eh),{key:1})):X("v-if",!0),e.comment.type==="administrator"?(T(),Ze(W(th),{key:2})):X("v-if",!0)]),j("div",pp,[j("div",dp,[u.value?(T(),M("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ie(e.comment.nick),9,gp)):(T(),M("span",mp,ie(e.comment.nick),1)),e.comment.label?(T(),M("span",{key:2,class:"wl-badge",textContent:ie(e.comment.label)},null,8,vp)):X("v-if",!0),e.comment.sticky?(T(),M("span",{key:3,class:"wl-badge",textContent:ie(c.value.sticky)},null,8,bp)):X("v-if",!0),typeof e.comment.level=="number"?(T(),M("span",{key:4,class:ye(`wl-badge level${e.comment.level}`),textContent:ie(c.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,yp)):X("v-if",!0),j("span",{class:"wl-time",textContent:ie(p.value)},null,8,wp),j("div",kp,[b.value||m.value?(T(),M(de,{key:0},[j("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=P=>r("edit",e.comment))},[fe(W(Qf))]),j("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=P=>r("delete",e.comment))},[fe(W(qf))])],64)):X("v-if",!0),j("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=P=>r("like",e.comment))},[fe(W(Zf),{active:f.value},null,8,["active"]),lt(" "+ie("like"in e.comment?e.comment.like:""),1)],8,xp),j("button",{type:"button",class:ye(["wl-reply",{active:k.value}]),title:k.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=P=>r("reply",k.value?null:e.comment))},[fe(W(Xf))],10,_p)])]),j("div",Cp,[(T(),M(de,null,He(["addr","browser","os"],P=>(T(),M(de,null,[e.comment[P]?(T(),M("span",{key:P,class:ye(`wl-${P}`),"data-value":e.comment[P],textContent:ie(e.comment[P])},null,10,$p)):X("v-if",!0)],64))),64))]),I.value?X("v-if",!0):(T(),M("div",Sp,["reply_user"in e.comment&&e.comment.reply_user?(T(),M("p",Rp,[j("a",{href:"#"+e.comment.pid},"@"+ie(e.comment.reply_user.nick),9,Ap),_[17]||(_[17]=j("span",null,": ",-1))])):X("v-if",!0),j("div",{innerHTML:e.comment.comment},null,8,Ep)])),b.value&&!I.value?(T(),M("div",Tp,[j("span",Lp,[(T(),M(de,null,He(s,P=>j("button",{key:P,type:"submit",class:ye(`wl-btn wl-${P}`),disabled:e.comment.status===P,onClick:V=>r("status",{status:P,comment:e.comment}),textContent:ie(c.value[P])},null,10,Ip)),64))]),b.value&&!("rid"in e.comment)?(T(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=P=>r("sticky",e.comment))},ie(e.comment.sticky?c.value.unsticky:c.value.sticky),1)):X("v-if",!0)])):X("v-if",!0),k.value||I.value?(T(),M("div",{key:2,class:ye({"wl-reply-wrapper":k.value,"wl-edit-wrapper":I.value})},[fe(Ao,{edit:e.edit,"reply-id":(F=e.reply)==null?void 0:F.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=P=>r("log")),onCancelReply:_[6]||(_[6]=P=>r("reply",null)),onCancelEdit:_[7]||(_[7]=P=>r("edit",null)),onSubmit:_[8]||(_[8]=P=>r("submit",P))},null,8,["edit","reply-id","reply-user","root-id"])],2)):X("v-if",!0),"children"in e.comment?(T(),M("div",Mp,[(T(!0),M(de,null,He(e.comment.children,P=>(T(),Ze(E,{key:P.objectId,comment:P,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=V=>r("log")),onDelete:_[10]||(_[10]=V=>r("delete",V)),onEdit:_[11]||(_[11]=V=>r("edit",V)),onLike:_[12]||(_[12]=V=>r("like",V)),onReply:_[13]||(_[13]=V=>r("reply",V)),onStatus:_[14]||(_[14]=V=>r("status",V)),onSticky:_[15]||(_[15]=V=>r("sticky",V)),onSubmit:_[16]||(_[16]=V=>r("submit",V))},null,8,["comment","reply","edit","root-id"]))),128))])):X("v-if",!0)])],8,up)}}});const Eo="3.7.0",jp={"data-waline":""},Op={class:"wl-meta-head"},zp={class:"wl-count"},Fp=["textContent"],Dp={class:"wl-sort"},Hp=["onClick"],Up={class:"wl-cards"},Np={key:1,class:"wl-operation"},Vp=["textContent"],Bp={key:2,class:"wl-loading"},Wp=["textContent"],qp={key:4,class:"wl-operation"},Kp=["textContent"],Gp={key:5,class:"wl-power"};var Zp=gn({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Er(),r=ko(),s=ae("loading"),i=ae(0),o=ae(1),l=ae(0),a=ve(()=>Xo(t)),c=ae(a.value.commentSorting),u=ae([]),f=ae(null),p=ae(null),b=ve(()=>Qo(a.value.dark)),m=ve(()=>a.value.locale);Wu(b,{id:"waline-darkmode"});let k=null;const I=H=>{const{serverURL:Q,path:N,pageSize:O}=a.value,J=new AbortController;s.value="loading",k==null||k(),Fs({serverURL:Q,lang:a.value.lang,path:N,pageSize:O,sortBy:li[c.value],page:H,signal:J.signal,token:n.value.token}).then(le=>{s.value="success",i.value=le.count,u.value.push(...le.data),o.value=H,l.value=le.totalPages}).catch(le=>{le.name!=="AbortError"&&(console.error(le.message),s.value="error")}),k=J.abort.bind(J)},A=()=>{I(o.value+1)},_=()=>{i.value=0,u.value=[],I(1)},F=H=>{c.value!==H&&(c.value=H,_())},E=H=>{f.value=H},P=H=>{p.value=H},V=H=>{if(p.value)p.value.comment=H.comment,p.value.orig=H.orig;else if("rid"in H){const Q=u.value.find(({objectId:N})=>N===H.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(H)}else u.value.unshift(H),i.value+=1},G=async({comment:H,status:Q})=>{if(H.status===Q)return;const{serverURL:N,lang:O}=a.value;await en({serverURL:N,lang:O,token:n.value.token,objectId:H.objectId,comment:{status:Q}}),H.status=Q},Z=async H=>{if("rid"in H)return;const{serverURL:Q,lang:N}=a.value;await en({serverURL:Q,lang:N,token:n.value.token,objectId:H.objectId,comment:{sticky:H.sticky?0:1}}),H.sticky=!H.sticky},_e=async({objectId:H})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:Q,lang:N}=a.value;await Hs({serverURL:Q,lang:N,token:n.value.token,objectId:H}),u.value.some((O,J)=>O.objectId===H?(u.value=u.value.filter((le,ft)=>ft!==J),!0):O.children.some((le,ft)=>le.objectId===H?(u.value[J].children=O.children.filter((xt,Pn)=>Pn!==ft),!0):!1))},be=async H=>{const{serverURL:Q,lang:N}=a.value,{objectId:O}=H,J=r.value.includes(O);await en({serverURL:Q,lang:N,objectId:O,token:n.value.token,comment:{like:!J}}),J?r.value=r.value.filter(le=>le!==O):(r.value=[...r.value,O],r.value.length>50&&(r.value=r.value.slice(-50))),H.like=Math.max(0,(H.like||0)+(J?-1:1))};return dc(Dn,a),bn(()=>{Jt(()=>[t.serverURL,t.path],()=>{_()})}),rs(()=>{k==null||k()}),(H,Q)=>(T(),M("div",jp,[fe(Ch),!f.value&&!p.value?(T(),Ze(Ao,{key:0,onLog:_,onSubmit:V})):X("v-if",!0),j("div",Op,[j("div",zp,[i.value?(T(),M("span",{key:0,class:"wl-num",textContent:ie(i.value)},null,8,Fp)):X("v-if",!0),lt(" "+ie(m.value.comment),1)]),j("ul",Dp,[(T(!0),M(de,null,He(W(Jo),N=>(T(),M("li",{key:N,class:ye([N===c.value?"active":""]),onClick:O=>F(N)},ie(m.value[N]),11,Hp))),128))])]),j("div",Up,[(T(!0),M(de,null,He(u.value,N=>(T(),Ze(Pp,{key:N.objectId,"root-id":N.objectId,comment:N,reply:f.value,edit:p.value,onLog:_,onReply:E,onEdit:P,onSubmit:V,onStatus:G,onDelete:_e,onSticky:Z,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(T(),M("div",Np,[j("button",{type:"button",class:"wl-btn",onClick:_,textContent:ie(m.value.refresh)},null,8,Vp)])):s.value==="loading"?(T(),M("div",Bp,[fe(W(Ln),{size:30})])):u.value.length?o.value<l.value?(T(),M("div",qp,[j("button",{type:"button",class:"wl-btn",onClick:A,textContent:ie(m.value.more)},null,8,Kp)])):X("v-if",!0):(T(),M("div",{key:3,class:"wl-empty",textContent:ie(m.value.sofa)},null,8,Wp)),a.value.noCopyright?X("v-if",!0):(T(),M("div",Gp,[Q[0]||(Q[0]=lt(" Powered by ",-1)),Q[1]||(Q[1]=j("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),lt(" v"+ie(W(Eo)),1)]))]))}});const To=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},Lo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,o=Array.from(document.querySelectorAll(n)),l=c=>{const u=Is(c);return u!==null&&t!==u},a=c=>Vs({serverURL:Hn(e),paths:c.map(u=>Is(u)??t),lang:s,signal:i.signal}).then(u=>To(u,c)).catch(Wl);if(r){const c=o.filter(f=>!l(f)),u=o.filter(l);Bs({serverURL:Hn(e),path:t,lang:s}).then(f=>To(f,c)),u.length&&a(u)}else a(o);return i.abort.bind(i)},Jp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?ks(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const o=hn({...s}),l=hn({comment:n,pageview:r,path:t}),a=()=>{l.comment&&yo({serverURL:o.serverURL,path:l.path,...Ft(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&Lo({serverURL:o.serverURL,path:l.path,...Ft(l.pageview)?{selector:l.pageview}:{}})};let u=null;i&&(u=xu(()=>ee(Zp,{path:l.path,...o})),u.mount(i));const f=al(a),p=al(c);return{el:i,update:({comment:b,pageview:m,path:k=window.location.pathname,...I}={})=>{Object.entries(I).forEach(([A,_])=>{o[A]=_}),l.path=k,b!==void 0&&(l.comment=b),m!==void 0&&(l.pageview=m)},destroy:()=>{u==null||u.unmount(),f(),p()}}},Yp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Er(),i=ks(e),o=new AbortController;return Ws({serverURL:t,count:n,lang:r,signal:o.signal,token:s.value.token}).then(l=>i&&l.length?(i.innerHTML=`<ul class="wl-recent-list">${l.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:l,destroy:()=>{o.abort(),i.innerHTML=""}}):{comments:l,destroy:()=>o.abort()})},Xp=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const o=ks(e),l=new AbortController;return qs({serverURL:t,pageSize:n,lang:s,signal:l.signal}).then(a=>!o||!a.length?{users:a,destroy:()=>l.abort()}:(r={...si(s),...typeof r=="object"?r:{}},o.innerHTML=`<ul class="wl-user-${i}">${a.map((c,u)=>[`<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">${u+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(f=>f).join("")).join("")}</ul>`,{users:a,destroy:()=>{l.abort(),o.innerHTML=""}}))};oe.RecentComments=Yp,oe.UserList=Xp,oe.addComment=Ds,oe.commentCount=yo,oe.defaultLocales=Fn,oe.deleteComment=Hs,oe.fetchCommentCount=Us,oe.getArticleCounter=Pr,oe.getComment=Fs,oe.getPageview=Vs,oe.getRecentComment=Ws,oe.getUserList=qs,oe.init=Jp,oe.login=Ns,oe.pageviewCount=Lo,oe.updateArticleCounter=zn,oe.updateComment=en,oe.updatePageview=Bs,oe.version=Eo}));
84
88
  //# sourceMappingURL=waline.umd.js.map