@waline/client 3.13.0 → 3.15.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.
package/dist/waline.js CHANGED
@@ -1,89 +1,110 @@
1
- var Yo=Object.defineProperty;var Jo=(e,t,n)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jr=(e,t,n)=>Jo(e,typeof t!="symbol"?t+"":t,n);var Pr;const Hs={"Content-Type":"application/json"},Je=e=>`${e.replace(/\/?$/,"/")}api/`,St=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Dn=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Je(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>St(i,"Get counter").data),Vt=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Je(e)}article?lang=${t}`,{method:"POST",headers:Hs,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>St(i,"Update counter").data),Ns=({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(`${Je(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>St(c,"Get comment data").data)},Bs=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Je(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Vs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Je(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>St(s,"Delete comment")),un=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Je(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Hs,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>St(i,"Update comment")),Ws=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Je(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>St(s,"Get comment count").data),Qo=()=>{const e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},qs=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2;if(Qo())return location.href=`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}&redirect=${encodeURIComponent(location.href)}`,new Promise(()=>{});const 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)})},Ks=({serverURL:e,lang:t,paths:n,signal:r})=>Dn({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Gs=e=>Vt({...e,type:"time",action:"inc"}),Zs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Je(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Ys=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Je(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>St(s,"user list")).then(s=>s.data),Xo=new Set(["nick","mail","link"]),Js=e=>e.filter(t=>Xo.has(t)),Qs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ea=["//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"],ta=e=>new Promise((t,n)=>{if(e.size>128*1e3){n(new Error("File too large! File size limit 128KB"));return}const r=new FileReader;r.readAsDataURL(e),r.addEventListener("load",()=>{t(r.result)}),r.addEventListener("error",n)}),na=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',ra=e=>{const t=(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()})}},sa=/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/,ia=/</,la=/(?:^|\s)\/\/(.+?)$/gm,oa=/\/\*([\S\s]*?)\*\//gm,aa=new RegExp(`(${sa.source}|${ia.source})|((?:${la.source})|(?:${oa.source}))`,"gmi"),Xs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Fr={},ca=e=>{let t=0;return e.replace(aa,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Fr[r]?i=Fr[r]:(i=Xs[t],Fr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Xs.length,l})},ua=["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","commentUnderReview","subPostComment","subSiteComment","subscribeToReplies"],Oe=e=>Object.fromEntries(e.map((t,n)=>[ua[n],t]));var fa=Oe(["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?","Ihr Kommentar wird überprüft und ist derzeit nur für Sie sichtbar. Nach der Genehmigung wird er öffentlich angezeigt.","Abonnieren Sie die Kommentare zu diesem Beitrag","Abonnieren Sie die Kommentare auf dieser Seite","Abonnieren Sie die Antworten auf Ihre Kommentare"]),ei=Oe(["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?","Your comment is under review and is currently only visible to you. It will be publicly visible after approval.","Subscribe to comments of this post","Subscribe to comments of this site","Subscribe to replies of your comments"]),ti=Oe(["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?","Tu comentario está en revisión y actualmente solo es visible para ti. Será visible públicamente después de la aprobación.","Suscribirse a los comentarios de esta publicación","Suscribirse a los comentarios de este sitio","Suscribirse a las respuestas de tus comentarios"]),ni=Oe(["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 ?","Votre commentaire est en cours de révision et n'est actuellement visible que par vous. Il sera visible publiquement après approbation.","S’abonner aux commentaires de ce post","S’abonner aux commentaires de ce site","S’abonner aux réponses de vos commentaires"]),ri=Oe(["Nickname","Il nickname non può avere meno di 3 caratteri.","E-mail","Per favore conferma il tuo indirizzo e-mail.","Sito web","Facoltativo","Scrivi un commento...","Ancora nessun commento.","Invia","Mi piace","Annulla mi piace","Rispondi","Annulla risposta","Commenti","Aggiorna","Carica altri...","Anteprima","Emoji","Carica immagine","secondi fa","minuti fa","ore fa","giorni fa","adesso","Caricamento in corso...","Accedi","Esci","Admin","In evidenza","Parole",`Inserisci un commento tra $0 e $1 parole!
5
- Numero attuale di parole: $2`,"Anonimo","Nano","Hobbit","Ent","Mago","Elfo","Maiar","GIF","Cerca GIF","Profilo","Approvato","In attesa","Spam","Rimuovi evidenza","Più vecchi","Più recenti","Più popolari","Cosa ne pensi?","Il tuo commento è in fase di revisione ed è attualmente visibile solo a te. Sarà visibile pubblicamente dopo l'approvazione.","Iscriviti ai commenti di questo post","Iscriviti ai commenti di questo sito","Iscriviti alle risposte dei tuoi commenti"]),si=Oe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
6
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。","この投稿のコメントを購読する","このサイトのコメントを購読する","あなたのコメントの返信を購読する"]),ii=Oe(["닉네임","닉네임은 3바이트 이상이어야 합니다.","이메일","이메일 주소를 확인해 주세요.","웹사이트","선택사항","여기에 댓글을 입력하세요...","아직 댓글이 없습니다.","제출","좋아요","좋아요 취소","답글","답글 취소","댓글","새로고침","더 보기...","미리보기","이모지","이미지 업로드","초 전","분 전","시간 전","일 전","방금 전","업로드 중","로그인","로그아웃","관리자","고정","글자 수",`댓글은 $0자에서 $1 사이여야 합니다!
7
- 현재 글자 수: $2`,"익명","난쟁이","호빗","엔트","마법사","엘프","마이아","GIF","GIF 검색","프로필","승인됨","대기 중","스팸","고정 해제","오래된 순","최신 순","인기순","어떻게 생각하시나요?","댓글이 검토 중이며 현재 본인만 볼 수 있습니다. 승인 후 공개됩니다.","이 게시물의 댓글 구독","이 사이트의 댓글 구독","댓글에 대한 답글 구독"]),ha=Oe(["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!
8
- 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?","Seu comentário está em revisão e atualmente está visível apenas para você. Ele será visível publicamente após a aprovação.","Assinar os comentários deste post","Assinar os comentários deste site","Assinar as respostas dos seus comentários"]),li=Oe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
9
- Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?","Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным.","Подписаться на комментарии к этому посту","Подписаться на комментарии этого сайта","Подписаться на ответы ваших комментариев"]),oi=Oe(["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 văn hoá!","Chưa 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 $1 từ!
10
- 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 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?","Bình luận của bạn đang được xem xét hiện chỉ hiển thị với bạn. sẽ được công khai sau khi được phê duyệt.","Đăng nhận xét của bài viết này","Đăng nhận xét của trang web này","Đăng ký nhận xét của bạn"]),ai=Oe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 $1 字之间!
11
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?","评论正在审核中,当前仅自己可见,审核通过后公开可见。","订阅本文评论","订阅本站评论","订阅你的评论回复"]),pa=Oe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
12
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?","您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。","訂閱此文章的評論","訂閱本站的評論","訂閱您的評論回覆"]);const ci="en-US",Un={zh:ai,"zh-cn":ai,"zh-tw":pa,en:ei,"en-us":ei,fr:ni,"fr-fr":ni,it:ri,"it-it":ri,jp:si,"jp-jp":si,ko:ii,"ko-kr":ii,"pt-br":ha,ru:li,"ru-ru":li,vi:oi,"vi-vn":oi,de:fa,es:ti,"es-mx":ti},ui=e=>Un[e.toLowerCase()]??Un[ci.toLowerCase()],fi=e=>Object.keys(Un).includes(e.toLowerCase())?e:ci,hi={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},da=Object.keys(hi),Hn=Symbol("waline-config"),pi=e=>{try{return decodeURI(e)}catch{return e}},di=(e="")=>e.replace(/\/$/u,""),gi=e=>/^(https?:)?\/\//.test(e),Nn=e=>{const t=di(e);return gi(t)?t:`https://${t}`},ga=e=>Array.isArray(e)?e:typeof e=="number"?[0,e]:!1,fn=(e,t)=>e==null||e===!0?t:e===!1?null:e,ma=({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,noRss:u=!1,login:f="enable",recaptchaV3Key:p="",turnstileKey:m="",commentSorting:x="latest",emoji:y=Qs,imageUploader:A,highlighter:_,texRenderer:T,search:O,reaction:S,...F})=>({serverURL:Nn(e),path:pi(t),lang:fi(n),locale:{...ui(fi(n)),...typeof r=="object"?r:{}},wordLimit:ga(a),meta:Js(s),requiredMeta:Js(i),dark:l,pageSize:o,commentSorting:x,login:f,noCopyright:c,noRss:u,recaptchaV3Key:p,turnstileKey:m,...F,reaction:S===!0?ea:S||null,imageUploader:fn(A,ta),highlighter:fn(_,ca),texRenderer:fn(T,na),emoji:fn(y,Qs),search:fn(O,ra(n))}),Wt=e=>typeof e=="string",Dr="{--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}",va=e=>Wt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Dr}}`:`${e}${Dr}`:e===!0?`:root${Dr}`:"",Ur=(e,t)=>{let n=e.toString();for(;n.length<t;)n=`0${n}`;return n},ba=e=>{const t=Ur(e.getDate(),2),n=Ur(e.getMonth()+1,2);return`${Ur(e.getFullYear(),2)}-${n}-${t}`},ya=(e,t,n)=>{if(!e)return"";const r=Wt(e)?new Date(e.includes(" ")?e.replaceAll("-","/"):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}`:ba(r)},wa=/^[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])?)*$/,ka=e=>wa.test(e);/**
13
- * @vue/shared v3.5.28
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(e,t,n)=>(c(e,t,`default`),n&&c(n,t,`default`)),u=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const d={"Content-Type":`application/json`},f=e=>`${e.replace(/\/?$/u,`/`)}api/`,p=(e,t=``)=>{if(typeof e==`object`&&e.errno)throw TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},m=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${f(e)}article?path=${encodeURIComponent(n.join(`,`))}&type=${encodeURIComponent(r.join(`,`))}&lang=${t}`,{signal:i}).then(e=>e.json()).then(e=>p(e,`Get counter`).data),h=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${f(e)}article?lang=${t}`,{method:`POST`,headers:d,body:JSON.stringify({path:n,type:r,action:i})}).then(e=>e.json()).then(e=>p(e,`Update counter`).data),g=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:a,signal:o,token:s})=>{let c={};return s&&(c.Authorization=`Bearer ${s}`),fetch(`${f(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${a}`,{signal:o,headers:c}).then(e=>e.json()).then(e=>p(e,`Get comment data`).data)},_=({serverURL:e,lang:t,token:n,comment:r})=>{let i={"Content-Type":`application/json`};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${f(e)}comment?lang=${t}`,{method:`POST`,headers:i,body:JSON.stringify(r)}).then(e=>e.json())},v=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${f(e)}comment/${r}?lang=${t}`,{method:`DELETE`,headers:{Authorization:`Bearer ${n}`}}).then(e=>e.json()).then(e=>p(e,`Delete comment`)),y=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${f(e)}comment/${r}?lang=${t}`,{method:`PUT`,headers:{...d,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(e=>e.json()).then(e=>p(e,`Update comment`)),b=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${f(e)}comment?type=count&url=${encodeURIComponent(n.join(`,`))}&lang=${t}`,{signal:r}).then(e=>e.json()).then(e=>p(e,`Get comment count`).data),x=()=>{let e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/iu.test(e)},S=({lang:e,serverURL:t})=>{let n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2;if(x())return location.href=`${t.replace(/\/$/u,``)}/ui/login?lng=${encodeURIComponent(e)}&redirect=${encodeURIComponent(location.href)}`,new Promise(()=>{});let i=window.open(`${t.replace(/\/$/u,``)}/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 i?.postMessage({type:`TOKEN`,data:null},`*`),new Promise(e=>{let t=({data:n})=>{!n||typeof n!=`object`||n.type!==`userInfo`||n.data.token&&(i?.close(),window.removeEventListener(`message`,t),e(n.data))};window.addEventListener(`message`,t)})},C=({serverURL:e,lang:t,paths:n,signal:r})=>m({serverURL:e,lang:t,paths:n,type:[`time`],signal:r}),w=e=>h({...e,type:`time`,action:`inc`}),T=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{let a={};return i&&(a.Authorization=`Bearer ${i}`),fetch(`${f(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:a}).then(e=>e.json())},E=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${f(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(e=>e.json()).then(e=>p(e,`user list`)).then(e=>e.data),D=new Set([`nick`,`mail`,`link`]),O=e=>e.filter(e=>D.has(e)),k=[`//unpkg.com/@waline/emojis@1.1.0/weibo`],A=[`//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`],j=e=>new Promise((t,n)=>{if(e.size>128*1e3){n(Error(`File too large! File size limit 128KB`));return}let r=new FileReader;r.readAsDataURL(e),r.addEventListener(`load`,()=>{t(r.result)}),r.addEventListener(`error`,n)}),ee=e=>e?`<p class="wl-tex">TeX is not available in preview</p>`:`<span class="wl-tex">TeX is not available in preview</span>`,M=e=>{let t=(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:`20`,rating:`g`,api_key:`6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp`,...n}).toString()}`).then(e=>e.json()).then(({data:e})=>e.map(e=>({title:e.title,src:e.images.downsized_medium.url})));return{search:e=>t(`search`,{q:e,offset:`0`}),default:()=>t(`trending`,{}),more:(e,n=0)=>t(`search`,{q:e,offset:n.toString()})}},te=RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/u.source}|${/</u.source})|((?:${/(?:^|\s)\/\/(.+?)$/gmu.source})|(?:${/\/\*([\S\s]*?)\*\//gmu.source}))`,`gmiu`),N=[`23AC69`,`91C132`,`F19726`,`E8552D`,`1AAB8E`,`E1147F`,`2980C1`,`1BA1E6`,`9FA0A0`,`F19726`,`E30B20`,`E30B20`,`A3338B`],P={},F=e=>{let t=0;return e.replace(te,(e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(n===`<`)return`&lt;`;let i;P[n]?i=P[n]:(i=N[t],P[n]=i);let a=`<span style="color: #${i}">${n}</span>`;return t=++t%N.length,a})},ne=`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.commentUnderReview.subPostComment.subSiteComment.subscribeToReplies`.split(`.`),I=e=>Object.fromEntries(e.map((e,t)=>[ne[t],e]));var L=I(`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?,Ihr Kommentar wird überprüft und ist derzeit nur für Sie sichtbar. Nach der Genehmigung wird er öffentlich angezeigt.,Abonnieren Sie die Kommentare zu diesem Beitrag,Abonnieren Sie die Kommentare auf dieser Seite,Abonnieren Sie die Antworten auf Ihre Kommentare`.split(`,`)),re=I(`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?,Your comment is under review and is currently only visible to you. It will be publicly visible after approval.,Subscribe to comments of this post,Subscribe to comments of this site,Subscribe to replies of your comments`.split(`,`)),ie=I(`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?,Tu comentario está en revisión y actualmente solo es visible para ti. Será visible públicamente después de la aprobación.,Suscribirse a los comentarios de esta publicación,Suscribirse a los comentarios de este sitio,Suscribirse a las respuestas de tus comentarios`.split(`,`)),ae=I(`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 ?,Votre commentaire est en cours de révision et n'est actuellement visible que par vous. Il sera visible publiquement après approbation.,S’abonner aux commentaires de ce post,S’abonner aux commentaires de ce site,S’abonner aux réponses de vos commentaires`.split(`,`)),oe=I(`Nama Panggilan,Nama Panggilan tidak boleh kurang dari 3 bita.,E-Mail,Silakan konfirmasi alamat email Anda.,Situs Web,Opsional,Tulis komentar di sini...,Belum ada komentar.,Kirim,Suka,Batal suka,Balas,Batal balas,Komentar,Segarkan,Muat Lebih Banyak...,Pratinjau,Emoji,Unggah Gambar,detik yang lalu,menit yang lalu,jam yang lalu,hari yang lalu,baru saja,Mengunggah,Masuk,Keluar,Admin,Sematkan,Kata,Silakan masukkan komentar antara $0 dan $1 kata!
5
+ Jumlah kata saat ini: $2,Anonim,Kurcaci,Hobbit,Ent,Penyihir,Peri,Maiar,GIF,Cari GIF,Profil,Disetujui,Menunggu,Spam,Lepas Sematan,Terlama,Terbaru,Terpopuler,Apa yang Anda pikirkan?,Komentar Anda sedang ditinjau dan saat ini hanya terlihat oleh Anda. Komentar akan terlihat secara publik setelah disetujui.,Berlangganan komentar di postingan ini,Berlangganan komentar di situs ini,Berlangganan balasan komentar Anda`.split(`,`)),R=I(`Nickname,Il nickname non può avere meno di 3 caratteri.,E-mail,Per favore conferma il tuo indirizzo e-mail.,Sito web,Facoltativo,Scrivi un commento...,Ancora nessun commento.,Invia,Mi piace,Annulla mi piace,Rispondi,Annulla risposta,Commenti,Aggiorna,Carica altri...,Anteprima,Emoji,Carica immagine,secondi fa,minuti fa,ore fa,giorni fa,adesso,Caricamento in corso...,Accedi,Esci,Admin,In evidenza,Parole,Inserisci un commento tra $0 e $1 parole!
6
+ Numero attuale di parole: $2,Anonimo,Nano,Hobbit,Ent,Mago,Elfo,Maiar,GIF,Cerca GIF,Profilo,Approvato,In attesa,Spam,Rimuovi evidenza,Più vecchi,Più recenti,Più popolari,Cosa ne pensi?,Il tuo commento è in fase di revisione ed è attualmente visibile solo a te. Sarà visibile pubblicamente dopo l'approvazione.,Iscriviti ai commenti di questo post,Iscriviti ai commenti di questo sito,Iscriviti alle risposte dei tuoi commenti`.split(`,`)),se=I(`ニックネーム,3バイト以上のニックネームをご入力ください.,メールアドレス,メールアドレスをご確認ください.,サイト,オプション,ここにコメント,コメントしましょう~,提出する,Like,Cancel like,返信する,キャンセル,コメント,更新,さらに読み込む,プレビュー,絵文字,画像をアップロード,秒前,分前,時間前,日前,たっだ今,アップロード,ログインする,ログアウト,管理者,トップに置く,ワード,コメントは $0 から $1 ワードの間でなければなりません!
7
+ 現在の単語番号: $2,匿名,うえにん,なかにん,しもおし,特にしもおし,かげ,なぬし,GIF,探す GIF,個人情報,承認済み,待っている,スパム,べたつかない,逆順,正順,人気順,どう思いますか?,あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。,この投稿のコメントを購読する,このサイトのコメントを購読する,あなたのコメントの返信を購読する`.split(`,`)),ce=I(`닉네임,닉네임은 3바이트 이상이어야 합니다.,이메일,이메일 주소를 확인해 주세요.,웹사이트,선택사항,여기에 댓글을 입력하세요...,아직 댓글이 없습니다.,제출,좋아요,좋아요 취소,답글,답글 취소,댓글,새로고침,더 보기...,미리보기,이모지,이미지 업로드,초 전,분 전,시간 전,일 전,방금 전,업로드 중,로그인,로그아웃,관리자,고정,글자 수,댓글은 $0자에서 $1 사이여야 합니다!
8
+ 현재 글자 수: $2,익명,난쟁이,호빗,엔트,마법사,엘프,마이아,GIF,GIF 검색,프로필,승인됨,대기 중,스팸,고정 해제,오래된 순,최신 순,인기순,어떻게 생각하시나요?,댓글이 검토 중이며 현재 본인만 있습니다. 승인 공개됩니다.,이 게시물의 댓글 구독,이 사이트의 댓글 구독,댓글에 대한 답글 구독`.split(`,`)),z=I(`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!
9
+ 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?(Seu comentário está em revisão e atualmente está visível apenas para você. Ele será visível publicamente após a aprovação.(Assinar os comentários deste post(Assinar os comentários deste site(Assinar as respostas dos seus comentários`.split(`(`)),B=I(`Псевдоним(Никнейм не может быть меньше 3 байт.(Эл. адрес(Пожалуйста, подтвердите адрес вашей электронной почты.(Веб-сайт(Необязательный(Комментарий здесь...(Пока нет комментариев.(Отправить(Like(Cancel like(Отвечать(Отменить ответ(Комментарии(Обновить(Загрузи больше...(Превью(эмодзи(Загрузить изображение(секунд назад(несколько минут назад(несколько часов назад(дней назад(прямо сейчас(Загрузка(Авторизоваться(Выход из системы(Админ(Липкий(Слова(Пожалуйста, введите комментарии от $0 до $1 слов!
10
+ Номер текущего слова: $2(Анонимный(Dwarves(Hobbits(Ents(Wizards(Elves(Maiar(GIF(Поиск GIF(Персональные данные(Одобренный(Ожидающий(Спам(Нелипкий(самый старый(последний(самый горячий(Что вы думаете?(Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным.(Подписаться на комментарии к этому посту(Подписаться на комментарии этого сайта(Подписаться на ответы ваших комментариев`.split(`(`)),le=I(`Tên,Tên không được nhỏ hơn 3 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 văn hoá!,Chưa 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 $1 từ!
11
+ 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?,Bình luận của bạn đang được xem xét và hiện chỉ hiển thị với bạn. Nó sẽ được công khai sau khi được phê duyệt.,Đăng ký nhận xét của bài viết này,Đăng ký nhận xét của trang web này,Đăng ký nhận xét của bạn`.split(`,`)),ue=I(`昵称,昵称不能少于3个字符,邮箱,请填写正确的邮件地址,网址,可选,欢迎评论,来发评论吧~,提交,喜欢,取消喜欢,回复,取消回复,评论,刷新,加载更多...,预览,表情,上传图片,秒前,分钟前,小时前,天前,刚刚,正在上传,登录,退出,博主,置顶,字,评论字数应在 $0 到 $1 字之间!
12
+ 当前字数:$2,匿名,潜水,冒泡,吐槽,活跃,话痨,传说,表情包,搜索表情包,个人资料,通过,待审核,垃圾,取消置顶,按倒序,按正序,按热度,你认为这篇文章怎么样?,评论正在审核中,当前仅自己可见,审核通过后公开可见。,订阅本文评论,订阅本站评论,订阅你的评论回复`.split(`,`));const V={zh:ue,"zh-cn":ue,"zh-tw":I(`暱稱,暱稱不能少於3個字元,郵箱,請填寫正確的郵件地址,網址,可選,歡迎留言,來發留言吧~,送出,喜歡,取消喜歡,回覆,取消回覆,留言,重整,載入更多...,預覽,表情,上傳圖片,秒前,分鐘前,小時前,天前,剛剛,正在上傳,登入,登出,管理者,置頂,字,留言字數應在 $0 $1 字之間!
13
+ 目前字數:$2,匿名,潛水,冒泡,吐槽,活躍,多話,傳說,表情包,搜尋表情包,個人資料,通過,待審核,垃圾,取消置頂,最早,最新,熱門,你認為這篇文章怎麼樣?,您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。,訂閱此文章的評論,訂閱本站的評論,訂閱您的評論回覆`.split(`,`)),en:re,"en-us":re,fr:ae,"fr-fr":ae,id:oe,"id-id":oe,it:R,"it-it":R,jp:se,"jp-jp":se,ko:ce,"ko-kr":ce,"pt-br":z,ru:B,"ru-ru":B,vi:le,"vi-vn":le,de:L,es:ie,"es-mx":ie},de=e=>V[e.toLowerCase()]??V[`en-us`],fe=e=>Object.keys(V).includes(e.toLowerCase())?e:`en-US`,pe={latest:`insertedAt_desc`,oldest:`insertedAt_asc`,hottest:`like_desc`},me=Object.keys(pe),he=Symbol(`waline-config`),ge=e=>{try{return decodeURI(e)}catch{return e}},_e=(e=``)=>e.replace(/\/$/u,``),ve=e=>/^(https?:)?\/\//u.test(e),ye=e=>{let t=_e(e);return ve(t)?t:`https://${t}`},be=e=>Array.isArray(e)?e:typeof e==`number`&&e>0?[0,e]:!1,H=(e,t)=>e==null||e===!0?t:e===!1?null:e,xe=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>`u`?`en-US`:navigator.language,locale:r,meta:i=[`nick`,`mail`,`link`],requiredMeta:a=[],dark:o=!1,pageSize:s=10,wordLimit:c,noCopyright:l=!1,noRss:u=!1,login:d=`enable`,recaptchaV3Key:f=``,turnstileKey:p=``,commentSorting:m=`latest`,emoji:h=k,imageUploader:g,highlighter:_,texRenderer:v,search:y,reaction:b,...x})=>({serverURL:ye(e),path:ge(t),lang:fe(n),locale:{...de(fe(n)),...typeof r==`object`?r:{}},wordLimit:be(c),meta:O(i),requiredMeta:O(a),dark:o,pageSize:s,commentSorting:m,login:d,noCopyright:l,noRss:u,recaptchaV3Key:f,turnstileKey:p,...x,reaction:b===!0?A:b||null,imageUploader:H(g,j),highlighter:H(_,F),texRenderer:H(v,ee),emoji:H(h,k),search:H(y,M(n))}),Se=e=>typeof e==`string`,U=`{--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}`,Ce=e=>Se(e)?e===`auto`?`@media(prefers-color-scheme:dark){body${U}}`:`${e}${U}`:e===!0?`:root${U}`:``,we=(e,t)=>{let n=e.toString();for(;n.length<t;)n=`0${n}`;return n},Te=e=>{let t=we(e.getDate(),2),n=we(e.getMonth()+1,2);return`${we(e.getFullYear(),2)}-${n}-${t}`},Ee=(e,t,n)=>{if(!e)return``;let r=Se(e)?new Date(e.includes(` `)?e.replaceAll(`-`,`/`):e):e,i=t.getTime()-r.getTime(),a=Math.floor(i/(24*3600*1e3));if(a===0){let e=i%(24*3600*1e3),t=Math.floor(e/(3600*1e3));if(t===0){let t=e%(3600*1e3),r=Math.floor(t/(60*1e3));if(r===0){let e=t%(60*1e3);return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return a<0?n.now:a<8?`${a} ${n.days}`:Te(r)},De=/^[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])?)*$/u,Oe=e=>De.test(e);
14
+ /**
15
+ * @vue/shared v3.5.34
14
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
15
17
  * @license MIT
16
- **/function Hr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},qt=[],Rt=()=>{},mi=()=>!1,Bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,vi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xa=Object.prototype.hasOwnProperty,oe=(e,t)=>xa.call(e,t),V=Array.isArray,Kt=e=>hn(e)==="[object Map]",Gt=e=>hn(e)==="[object Set]",bi=e=>hn(e)==="[object Date]",ne=e=>typeof e=="function",be=e=>typeof e=="string",Ve=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",yi=e=>(ce(e)||ne(e))&&ne(e.then)&&ne(e.catch),wi=Object.prototype.toString,hn=e=>wi.call(e),_a=e=>hn(e).slice(8,-1),ki=e=>hn(e)==="[object Object]",Vn=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=Hr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},$a=/-\w/g,je=Wn(e=>e.replace($a,t=>t.slice(1).toUpperCase())),Ca=/\B([A-Z])/g,At=Wn(e=>e.replace(Ca,"-$1").toLowerCase()),qn=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Br=Wn(e=>e?`on${qn(e)}`:""),pt=(e,t)=>!Object.is(e,t),Kn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _i;const dn=()=>_i||(_i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=be(r)?Ea(r):Et(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(be(e)||ce(e))return e}const Sa=/;(?![^(]*\))/g,Ra=/:([^]+)/,Aa=/\/\*[^]*?\*\//g;function Ea(e){const t={};return e.replace(Aa,"").split(Sa).forEach(n=>{if(n){const r=n.split(Ra);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(be(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const La="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ta=Hr(La);function $i(e){return!!e||e===""}function Ia(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=dt(e[r],t[r]);return n}function dt(e,t){if(e===t)return!0;let n=bi(e),r=bi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ve(e),r=Ve(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?Ia(e,t):!1;if(n=ce(e),r=ce(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||!dt(e[l],t[l]))return!1}}return String(e)===String(t)}function Vr(e,t){return e.findIndex(n=>dt(n,t))}const Ci=e=>!!(e&&e.__v_isRef===!0),Q=e=>be(e)?e:e==null?"":V(e)||ce(e)&&(e.toString===wi||!ne(e.toString))?Ci(e)?Q(e.value):JSON.stringify(e,Si,2):String(e),Si=(e,t)=>Ci(t)?Si(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Wr(r,i)+" =>"]=s,n),{})}:Gt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wr(n))}:Ve(t)?Wr(t):ce(t)&&!V(t)&&!ki(t)?String(t):t,Wr=(e,t="")=>{var n;return Ve(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
17
- * @vue/reactivity v3.5.28
18
+ **/
19
+ var ke=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}let n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),O=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),k=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},A=/-\w/g,j=k(e=>e.replace(A,e=>e.slice(1).toUpperCase())),ee=/\B([A-Z])/g,M=k(e=>e.replace(ee,`-$1`).toLowerCase()),te=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=k(e=>e?`on${te(e)}`:``),P=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ne=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},I=e=>{let t=parseFloat(e);return isNaN(t)?e:t},L=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},re,ie=()=>re||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ae=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function oe(e){return ae.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function R(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}let se={TEXT:1,1:`TEXT`,CLASS:2,2:`CLASS`,STYLE:4,4:`STYLE`,PROPS:8,8:`PROPS`,FULL_PROPS:16,16:`FULL_PROPS`,NEED_HYDRATION:32,32:`NEED_HYDRATION`,STABLE_FRAGMENT:64,64:`STABLE_FRAGMENT`,KEYED_FRAGMENT:128,128:`KEYED_FRAGMENT`,UNKEYED_FRAGMENT:256,256:`UNKEYED_FRAGMENT`,NEED_PATCH:512,512:`NEED_PATCH`,DYNAMIC_SLOTS:1024,1024:`DYNAMIC_SLOTS`,DEV_ROOT_FRAGMENT:2048,2048:`DEV_ROOT_FRAGMENT`,CACHED:-1,"-1":`CACHED`,BAIL:-2,"-2":`BAIL`},ce={1:`TEXT`,2:`CLASS`,4:`STYLE`,8:`PROPS`,16:`FULL_PROPS`,32:`NEED_HYDRATION`,64:`STABLE_FRAGMENT`,128:`KEYED_FRAGMENT`,256:`UNKEYED_FRAGMENT`,512:`NEED_PATCH`,1024:`DYNAMIC_SLOTS`,2048:`DEV_ROOT_FRAGMENT`,[-1]:`CACHED`,[-2]:`BAIL`},z={ELEMENT:1,1:`ELEMENT`,FUNCTIONAL_COMPONENT:2,2:`FUNCTIONAL_COMPONENT`,STATEFUL_COMPONENT:4,4:`STATEFUL_COMPONENT`,TEXT_CHILDREN:8,8:`TEXT_CHILDREN`,ARRAY_CHILDREN:16,16:`ARRAY_CHILDREN`,SLOTS_CHILDREN:32,32:`SLOTS_CHILDREN`,TELEPORT:64,64:`TELEPORT`,SUSPENSE:128,128:`SUSPENSE`,COMPONENT_SHOULD_KEEP_ALIVE:256,256:`COMPONENT_SHOULD_KEEP_ALIVE`,COMPONENT_KEPT_ALIVE:512,512:`COMPONENT_KEPT_ALIVE`,COMPONENT:6,6:`COMPONENT`},B={STABLE:1,1:`STABLE`,DYNAMIC:2,2:`DYNAMIC`,FORWARDED:3,3:`FORWARDED`},le={1:`STABLE`,2:`DYNAMIC`,3:`FORWARDED`},ue=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`),V=ue;function de(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return``;let r=e.split(/(\r?\n)/),i=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let a=0,o=[];for(let e=0;e<r.length;e++)if(a+=r[e].length+(i[e]&&i[e].length||0),a>=t){for(let s=e-2;s<=e+2||n>a;s++){if(s<0||s>=r.length)continue;let c=s+1;o.push(`${c}${` `.repeat(Math.max(3-String(c).length,0))}| ${r[s]}`);let l=r[s].length,u=i[s]&&i[s].length||0;if(s===e){let e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);o.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(s>e){if(n>a){let e=Math.max(Math.min(n-a,l),1);o.push(` | `+`^`.repeat(e))}a+=l+u}}break}return o.join(`
20
+ `)}function fe(e){if(f(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?ge(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(v(e)||b(e))return e}let pe=/;(?![^(]*\))/g,me=/:([^]+)/,he=/\/\*[^]*?\*\//g;function ge(e){let t={};return e.replace(he,``).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){if(!e)return``;if(v(e))return e;let t=``;for(let n in e){let r=e[n];if(v(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:M(n);t+=`${e}:${r};`}}return t}function ve(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){let r=ve(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ye(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=ve(t)),n&&(e.style=fe(n)),e}let be=t(`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`),H=t(`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`),xe=t(`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`),Se=t(`area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr`),U=t(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`),Ce=t(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function we(e){return!!e||e===``}let Te=/[>/="'\u0009\u000a\u000c\u0020]/,Ee={};function De(e){if(Ee.hasOwnProperty(e))return Ee[e];let t=Te.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Ee[e]=!t}let Oe={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`},ke=t(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),Ae=t(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`),je=t(`accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`);function Me(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}let Ne=/["'&<>]/;function Pe(e){let t=``+e,n=Ne.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}let Fe=/^-?>|<!--|-->|--!>|<!-$/g;function Ie(e){return e.replace(Fe,``)}let W=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Le(e,t){return e.replace(W,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function Re(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ze(e[r],t[r]);return n}function ze(e,t){if(e===t)return!0;let n=h(e),r=h(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return n&&r?Re(e,t):!1;if(n=b(e),r=b(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!ze(e[n],t[n]))return!1}}return String(e)===String(t)}function Be(e,t){return e.findIndex(e=>ze(e,t))}let G=e=>!!(e&&e.__v_isRef===!0),K=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?G(e)?K(e.value):JSON.stringify(e,Ve,2):String(e),Ve=(e,t)=>G(t)?Ve(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[q(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>q(e))}:y(t)?q(t):b(t)&&!f(t)&&!T(t)?String(t):t,q=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function He(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}e.EMPTY_ARR=r,e.EMPTY_OBJ=n,e.NO=a,e.NOOP=i,e.PatchFlagNames=ce,e.PatchFlags=se,e.ShapeFlags=z,e.SlotFlags=B,e.camelize=j,e.capitalize=te,e.cssVarNameEscapeSymbolsRE=W,e.def=ne,e.escapeHtml=Pe,e.escapeHtmlComment=Ie,e.extend=c,e.genCacheKey=R,e.genPropsAccessExp=oe,e.generateCodeFrame=de,e.getEscapedCssVarName=Le,e.getGlobalThis=ie,e.hasChanged=P,e.hasOwn=d,e.hyphenate=M,e.includeBooleanAttr=we,e.invokeArrayFns=F,e.isArray=f,e.isBooleanAttr=Ce,e.isBuiltInDirective=O,e.isDate=h,e.isFunction=_,e.isGloballyAllowed=ue,e.isGloballyWhitelisted=V,e.isHTMLTag=be,e.isIntegerKey=E,e.isKnownHtmlAttr=ke,e.isKnownMathMLAttr=je,e.isKnownSvgAttr=Ae,e.isMap=p,e.isMathMLTag=xe,e.isModelListener=s,e.isObject=b,e.isOn=o,e.isPlainObject=T,e.isPromise=x,e.isRegExp=g,e.isRenderableAttrValue=Me,e.isReservedProp=D,e.isSSRSafeAttrName=De,e.isSVGTag=H,e.isSet=m,e.isSpecialBooleanAttr=U,e.isString=v,e.isSymbol=y,e.isVoidTag=Se,e.looseEqual=ze,e.looseIndexOf=Be,e.looseToNumber=I,e.makeMap=t,e.normalizeClass=ve,e.normalizeCssVarValue=He,e.normalizeProps=ye,e.normalizeStyle=fe,e.objectToString=S,e.parseStringStyle=ge,e.propsToAttrMap=Oe,e.remove=l,e.slotFlagsText=le,e.stringifyStyle=_e,e.toDisplayString=K,e.toHandlerKey=N,e.toNumber=L,e.toRawType=w,e.toTypeString=C})),Ae=o(((e,t)=>{t.exports=ke()})),je=o((e=>{
21
+ /**
22
+ * @vue/reactivity v3.5.34
18
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
24
  * @license MIT
20
- **/let ye;class Ma{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ye,!t&&ye&&(this.index=(ye.scopes||(ye.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=ye;try{return ye=this,t()}finally{ye=n}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=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 Ri(){return ye}function Pa(e,t=!1){ye&&ye.cleanups.push(e)}let ue;const qr=new WeakSet;class Ai{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,ye&&ye.active&&ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qr.has(this)&&(qr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Li(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,zi(this),Ti(this);const t=ue,n=Ue;ue=this,Ue=!0;try{return this.fn()}finally{Ii(this),ue=t,Ue=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Yr(t);this.deps=this.depsTail=void 0,zi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zr(this)&&this.run()}get dirty(){return Zr(this)}}let Ei=0,gn,mn;function Li(e,t=!1){if(e.flags|=8,t){e.next=mn,mn=e;return}e.next=gn,gn=e}function Kr(){Ei++}function Gr(){if(--Ei>0)return;if(mn){let t=mn;for(mn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;gn;){let t=gn;for(gn=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 Ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ii(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Yr(r),za(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Zr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Mi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Mi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vn)||(e.globalVersion=vn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zr(e))))return;e.flags|=2;const t=e.dep,n=ue,r=Ue;ue=e,Ue=!0;try{Ti(e);const s=e.fn(e._value);(t.version===0||pt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ue=r,Ii(e),e.flags&=-3}}function Yr(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)Yr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function za(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const Pi=[];function gt(){Pi.push(Ue),Ue=!1}function mt(){const e=Pi.pop();Ue=e===void 0?!0:e}function zi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let vn=0;class Oa{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 Zn{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(!ue||!Ue||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new Oa(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,Oi(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=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,vn++,this.notify(t)}notify(t){Kr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Gr()}}}function Oi(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)Oi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Yn=new WeakMap,Lt=Symbol(""),Jr=Symbol(""),bn=Symbol("");function we(e,t,n){if(Ue&&ue){let r=Yn.get(e);r||Yn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Zn),s.map=r,s.key=n),s.track()}}function Qe(e,t,n,r,s,i){const l=Yn.get(e);if(!l){vn++;return}const o=a=>{a&&a.trigger()};if(Kr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Vn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,p)=>{(p==="length"||p===bn||!Ve(p)&&p>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(bn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Lt)),Kt(e)&&o(l.get(Jr)));break;case"delete":a||(o(l.get(Lt)),Kt(e)&&o(l.get(Jr)));break;case"set":Kt(e)&&o(l.get(Lt));break}}Gr()}function ja(e,t){const n=Yn.get(e);return n&&n.get(t)}function Zt(e){const t=te(e);return t===e?t:(we(t,"iterate",bn),Le(e)?t:t.map(He))}function Jn(e){return we(e=te(e),"iterate",bn),e}function vt(e,t){return et(e)?Yt(It(e)?He(t):t):He(t)}const Fa={__proto__:null,[Symbol.iterator](){return Qr(this,Symbol.iterator,e=>vt(this,e))},concat(...e){return Zt(this).concat(...e.map(t=>V(t)?Zt(t):t))},entries(){return Qr(this,"entries",e=>(e[1]=vt(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,n=>n.map(r=>vt(this,r)),arguments)},find(e,t){return Xe(this,"find",e,t,n=>vt(this,n),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,n=>vt(this,n),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xr(this,"includes",e)},indexOf(...e){return Xr(this,"indexOf",e)},join(e){return Zt(this).join(e)},lastIndexOf(...e){return Xr(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return yn(this,"pop")},push(...e){return yn(this,"push",e)},reduce(e,...t){return ji(this,"reduce",e,t)},reduceRight(e,...t){return ji(this,"reduceRight",e,t)},shift(){return yn(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return yn(this,"splice",e)},toReversed(){return Zt(this).toReversed()},toSorted(e){return Zt(this).toSorted(e)},toSpliced(...e){return Zt(this).toSpliced(...e)},unshift(...e){return yn(this,"unshift",e)},values(){return Qr(this,"values",e=>vt(this,e))}};function Qr(e,t,n){const r=Jn(e),s=r[t]();return r!==e&&!Le(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Da=Array.prototype;function Xe(e,t,n,r,s,i){const l=Jn(e),o=l!==e&&!Le(e),a=l[t];if(a!==Da[t]){const f=a.apply(e,i);return o?He(f):f}let c=n;l!==e&&(o?c=function(f,p){return n.call(this,vt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function ji(e,t,n,r){const s=Jn(e);let i=n;return s!==e&&(Le(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,vt(e,o),a,e)}),s[t](i,...r)}function Xr(e,t,n){const r=te(e);we(r,"iterate",bn);const s=r[t](...n);return(s===-1||s===!1)&&nr(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function yn(e,t,n=[]){gt(),Kr();const r=te(e)[t].apply(e,n);return Gr(),mt(),r}const Ua=Hr("__proto__,__v_isRef,__isVue"),Fi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ve));function Ha(e){Ve(e)||(e=String(e));const t=te(this);return we(t,"has",e),t.hasOwnProperty(e)}class Di{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?Wi:Vi:i?Bi:Ni).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!s){let a;if(l&&(a=Fa[n]))return a;if(n==="hasOwnProperty")return Ha}const o=Reflect.get(t,n,ve(t)?t:r);if((Ve(n)?Fi.has(n):Ua(n))||(s||we(t,"get",n),i))return o;if(ve(o)){const a=l&&Vn(n)?o:o.value;return s&&ce(a)?Tt(a):a}return ce(o)?s?Tt(o):wn(o):o}}class Ui extends Di{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const l=V(t)&&Vn(n);if(!this._isShallow){const c=et(i);if(!Le(r)&&!et(r)&&(i=te(i),r=te(r)),!l&&ve(i)&&!ve(r))return c||(i.value=r),!0}const o=l?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,r,ve(t)?t:s);return t===te(s)&&(o?pt(r,i)&&Qe(t,"set",n,r):Qe(t,"add",n,r)),a}deleteProperty(t,n){const r=oe(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&Qe(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ve(n)||!Fi.has(n))&&we(t,"has",n),r}ownKeys(t){return we(t,"iterate",V(t)?"length":Lt),Reflect.ownKeys(t)}}class Hi extends Di{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Na=new Ui,Ba=new Hi,Va=new Ui(!0),Wa=new Hi(!0),es=e=>e,Qn=e=>Reflect.getPrototypeOf(e);function qa(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),l=Kt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?es:t?Yt:He;return!t&&we(i,"iterate",a?Jr:Lt),Ee(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:o?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function Xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ka(e,t){const n={get(s){const i=this.__v_raw,l=te(i),o=te(s);e||(pt(s,o)&&we(l,"get",s),we(l,"get",o));const{has:a}=Qn(l),c=t?es:e?Yt:He;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&&we(te(s),"iterate",Lt),s.size},has(s){const i=this.__v_raw,l=te(i),o=te(s);return e||(pt(s,o)&&we(l,"has",s),we(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?es:e?Yt:He;return!e&&we(a,"iterate",Lt),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Ee(n,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(s){!t&&!Le(s)&&!et(s)&&(s=te(s));const i=te(this);return Qn(i).has.call(i,s)||(i.add(s),Qe(i,"add",s,s)),this},set(s,i){!t&&!Le(i)&&!et(i)&&(i=te(i));const l=te(this),{has:o,get:a}=Qn(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?pt(i,u)&&Qe(l,"set",s,i):Qe(l,"add",s,i),this},delete(s){const i=te(this),{has:l,get:o}=Qn(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&&Qe(i,"delete",s,void 0),c},clear(){const s=te(this),i=s.size!==0,l=s.clear();return i&&Qe(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=qa(s,e,t)}),n}function er(e,t){const n=Ka(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,i)}const Ga={get:er(!1,!1)},Za={get:er(!1,!0)},Ya={get:er(!0,!1)},Ja={get:er(!0,!0)},Ni=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,Wi=new WeakMap;function Qa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xa(e){return e.__v_skip||!Object.isExtensible(e)?0:Qa(_a(e))}function wn(e){return et(e)?e:tr(e,!1,Na,Ga,Ni)}function ec(e){return tr(e,!1,Va,Za,Bi)}function Tt(e){return tr(e,!0,Ba,Ya,Vi)}function tc(e){return tr(e,!0,Wa,Ja,Wi)}function tr(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Xa(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 It(e){return et(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function et(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function nr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function nc(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&xi(e,"__v_skip",!0),e}const He=e=>ce(e)?wn(e):e,Yt=e=>ce(e)?Tt(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function G(e){return qi(e,!1)}function Mt(e){return qi(e,!0)}function qi(e,t){return ve(e)?e:new rc(e,t)}class rc{constructor(t,n){this.dep=new Zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Le(t)||et(t);t=r?t:te(t),pt(t,n)&&(this._rawValue=t,this._value=r?t:He(t),this.dep.trigger())}}function N(e){return ve(e)?e.value:e}function Te(e){return ne(e)?e():N(e)}const sc={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ki(e){return It(e)?e:new Proxy(e,sc)}class ic{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zn,{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 lc(e){return new ic(e)}class oc{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=te(t);let s=!0,i=t;if(!V(t)||!Vn(String(n)))do s=!nr(i)||Le(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=N(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ve(this._raw[this._key])){const n=this._object[this._key];if(ve(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return ja(this._raw,this._key)}}class ac{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 cc(e,t,n){return ve(e)?e:ne(e)?new ac(e):ce(e)&&arguments.length>1?uc(e,t,n):G(e)}function uc(e,t,n){return new oc(e,t,n)}class fc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return Li(this,!0),!0}get value(){const t=this.dep.track();return Mi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hc(e,t,n=!1){let r,s;return ne(e)?r=e:(r=e.get,s=e.set),new fc(r,s,n)}const rr={},sr=new WeakMap;let Pt;function pc(e,t=!1,n=Pt){if(n){let r=sr.get(n);r||sr.set(n,r=[]),r.push(e)}}function dc(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=S=>s?S:Le(S)||s===!1||s===0?tt(S,1):tt(S);let u,f,p,m,x=!1,y=!1;if(ve(e)?(f=()=>e.value,x=Le(e)):It(e)?(f=()=>c(e),x=!0):V(e)?(y=!0,x=e.some(S=>It(S)||Le(S)),f=()=>e.map(S=>{if(ve(S))return S.value;if(It(S))return c(S);if(ne(S))return a?a(S,2):S()})):ne(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){gt();try{p()}finally{mt()}}const S=Pt;Pt=u;try{return a?a(e,3,[m]):e(m)}finally{Pt=S}}:f=Rt,t&&s){const S=f,F=s===!0?1/0:s;f=()=>tt(S(),F)}const A=Ri(),_=()=>{u.stop(),A&&A.active&&vi(A.effects,u)};if(i&&t){const S=t;t=(...F)=>{S(...F),_()}}let T=y?new Array(e.length).fill(rr):rr;const O=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const F=u.run();if(s||x||(y?F.some((fe,ie)=>pt(fe,T[ie])):pt(F,T))){p&&p();const fe=Pt;Pt=u;try{const ie=[F,T===rr?void 0:y&&T[0]===rr?[]:T,m];T=F,a?a(t,3,ie):t(...ie)}finally{Pt=fe}}}else u.run()};return o&&o(O),u=new Ai(f),u.scheduler=l?()=>l(O,!1):O,m=S=>pc(S,!1,u),p=u.onStop=()=>{const S=sr.get(u);if(S){if(a)a(S,4);else for(const F of S)F();sr.delete(u)}},t?r?O(!0):T=u.run():l?l(O.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function tt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ve(e))tt(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if(Gt(e)||Kt(e))e.forEach(r=>{tt(r,t,n)});else if(ki(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}/**
21
- * @vue/runtime-core v3.5.28
25
+ **/
26
+ Object.defineProperty(e,"__esModule",{value:!0});var t=Ae();let n;var r=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&n&&(n.active?(this.parent=n,this.index=(n.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){++this._on===1&&(this.prevScope=n,n=this)}off(){if(this._on>0&&--this._on===0){if(n===this)n=this.prevScope;else{let e=n;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function i(e){return new r(e)}function a(){return n}function o(e,t=!1){n&&n.cleanups.push(e)}let s,c={ACTIVE:1,1:`ACTIVE`,RUNNING:2,2:`RUNNING`,TRACKING:4,4:`TRACKING`,NOTIFIED:8,8:`NOTIFIED`,DIRTY:16,16:`DIRTY`,ALLOW_RECURSE:32,32:`ALLOW_RECURSE`,PAUSED:64,64:`PAUSED`,EVALUATED:128,128:`EVALUATED`},l=new WeakSet;var u=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,n&&(n.active?n.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,l.has(this)&&(l.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,j(this),_(this);let e=s,t=T;s=this,T=!0;try{return this.fn()}finally{v(this),s=e,T=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)x(e);this.deps=this.depsTail=void 0,j(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?l.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}};let d=0,f,p;function m(e,t=!1){if(e.flags|=8,t){e.next=p,p=e;return}e.next=f,f=e}function h(){d++}function g(){if(--d>0)return;if(p){let e=p;for(p=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;f;){let t=f;for(f=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function _(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function v(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),x(r),S(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(b(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function b(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ee)||(e.globalVersion=ee,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!y(e))))return;e.flags|=2;let n=e.dep,r=s,i=T;s=e,T=!0;try{_(e);let r=e.fn(e._value);(n.version===0||t.hasChanged(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(e){throw n.version++,e}finally{s=r,T=i,v(e),e.flags&=-3}}function x(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)x(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function S(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function C(e,n){e.effect instanceof u&&(e=e.effect.fn);let r=new u(e);n&&t.extend(r,n);try{r.run()}catch(e){throw r.stop(),e}let i=r.run.bind(r);return i.effect=r,i}function w(e){e.effect.stop()}let T=!0,E=[];function D(){E.push(T),T=!1}function O(){E.push(T),T=!0}function k(){let e=E.pop();T=e===void 0?!0:e}function A(e,t=!1){s instanceof u&&(s.cleanup=e)}function j(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=s;s=void 0;try{t()}finally{s=e}}}let ee=0;var M=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},te=class{constructor(e){this.computed=e,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(e){if(!s||!T||s===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==s)t=this.activeLink=new M(s,this),s.deps?(t.prevDep=s.depsTail,s.depsTail.nextDep=t,s.depsTail=t):s.deps=s.depsTail=t,N(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=s.depsTail,t.nextDep=void 0,s.depsTail.nextDep=t,s.depsTail=t,s.deps===t&&(s.deps=e)}return t}trigger(e){this.version++,ee++,this.notify(e)}notify(e){h();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}};function N(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)N(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}let P=new WeakMap,F=Symbol(``),ne=Symbol(``),I=Symbol(``);function L(e,t,n){if(T&&s){let t=P.get(e);t||P.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new te),r.map=t,r.key=n),r.track()}}function re(e,n,r,i,a,o){let s=P.get(e);if(!s){ee++;return}let c=e=>{e&&e.trigger()};if(h(),n===`clear`)s.forEach(c);else{let a=t.isArray(e),o=a&&t.isIntegerKey(r);if(a&&r===`length`){let e=Number(i);s.forEach((n,r)=>{(r===`length`||r===I||!t.isSymbol(r)&&r>=e)&&c(n)})}else switch((r!==void 0||s.has(void 0))&&c(s.get(r)),o&&c(s.get(I)),n){case`add`:a?o&&c(s.get(`length`)):(c(s.get(F)),t.isMap(e)&&c(s.get(ne)));break;case`delete`:a||(c(s.get(F)),t.isMap(e)&&c(s.get(ne)));break;case`set`:t.isMap(e)&&c(s.get(F));break}}g()}function ie(e,t){let n=P.get(e);return n&&n.get(t)}function ae(e){let t=q(e);return t===e?t:(L(t,`iterate`,I),K(e)?t:t.map(Ue))}function oe(e){return L(e=q(e),`iterate`,I),e}function R(e,t){return G(e)?We(Be(e)?Ue(t):t):Ue(t)}let se={__proto__:null,[Symbol.iterator](){return ce(this,Symbol.iterator,e=>R(this,e))},concat(...e){return ae(this).concat(...e.map(e=>t.isArray(e)?ae(e):e))},entries(){return ce(this,`entries`,e=>(e[1]=R(this,e[1]),e))},every(e,t){return B(this,`every`,e,t,void 0,arguments)},filter(e,t){return B(this,`filter`,e,t,e=>e.map(e=>R(this,e)),arguments)},find(e,t){return B(this,`find`,e,t,e=>R(this,e),arguments)},findIndex(e,t){return B(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return B(this,`findLast`,e,t,e=>R(this,e),arguments)},findLastIndex(e,t){return B(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return B(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ue(this,`includes`,e)},indexOf(...e){return ue(this,`indexOf`,e)},join(e){return ae(this).join(e)},lastIndexOf(...e){return ue(this,`lastIndexOf`,e)},map(e,t){return B(this,`map`,e,t,void 0,arguments)},pop(){return V(this,`pop`)},push(...e){return V(this,`push`,e)},reduce(e,...t){return le(this,`reduce`,e,t)},reduceRight(e,...t){return le(this,`reduceRight`,e,t)},shift(){return V(this,`shift`)},some(e,t){return B(this,`some`,e,t,void 0,arguments)},splice(...e){return V(this,`splice`,e)},toReversed(){return ae(this).toReversed()},toSorted(e){return ae(this).toSorted(e)},toSpliced(...e){return ae(this).toSpliced(...e)},unshift(...e){return V(this,`unshift`,e)},values(){return ce(this,`values`,e=>R(this,e))}};function ce(e,t,n){let r=oe(e),i=r[t]();return r!==e&&!K(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}let z=Array.prototype;function B(e,t,n,r,i,a){let o=oe(e),s=o!==e&&!K(e),c=o[t];if(c!==z[t]){let t=c.apply(e,a);return s?Ue(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,R(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function le(e,t,n,r){let i=oe(e),a=i!==e&&!K(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=R(e,t)),n.call(this,t,R(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?R(e,c):c}function ue(e,t,n){let r=q(e);L(r,`iterate`,I);let i=r[t](...n);return(i===-1||i===!1)&&Ve(n[0])?(n[0]=q(n[0]),r[t](...n)):i}function V(e,t,n=[]){D(),h();let r=q(e)[t].apply(e,n);return g(),k(),r}let de=t.makeMap(`__proto__,__v_isRef,__isVue`),fe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(t.isSymbol));function pe(e){t.isSymbol(e)||(e=String(e));let n=q(this);return L(n,`has`,e),n.hasOwnProperty(e)}var me=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,n,r){if(n===`__v_skip`)return e.__v_skip;let i=this._isReadonly,a=this._isShallow;if(n===`__v_isReactive`)return!i;if(n===`__v_isReadonly`)return i;if(n===`__v_isShallow`)return a;if(n===`__v_raw`)return r===(i?a?Ne:Me:a?je:ke).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=t.isArray(e);if(!i){let e;if(o&&(e=se[n]))return e;if(n===`hasOwnProperty`)return pe}let s=Reflect.get(e,n,J(e)?e:r);if((t.isSymbol(n)?fe.has(n):de(n))||(i||L(e,`get`,n),a))return s;if(J(s)){let e=o&&t.isIntegerKey(n)?s:s.value;return i&&t.isObject(e)?Le(e):e}return t.isObject(s)?i?Le(s):Ie(s):s}},he=class extends me{constructor(e=!1){super(!1,e)}set(e,n,r,i){let a=e[n],o=t.isArray(e)&&t.isIntegerKey(n);if(!this._isShallow){let e=G(a);if(!K(r)&&!G(r)&&(a=q(a),r=q(r)),!o&&J(a)&&!J(r))return e||(a.value=r),!0}let s=o?Number(n)<e.length:t.hasOwn(e,n),c=Reflect.set(e,n,r,J(e)?e:i);return e===q(i)&&(s?t.hasChanged(r,a)&&re(e,`set`,n,r):re(e,`add`,n,r)),c}deleteProperty(e,n){let r=t.hasOwn(e,n);e[n];let i=Reflect.deleteProperty(e,n);return i&&r&&re(e,`delete`,n,void 0),i}has(e,n){let r=Reflect.has(e,n);return(!t.isSymbol(n)||!fe.has(n))&&L(e,`has`,n),r}ownKeys(e){return L(e,`iterate`,t.isArray(e)?`length`:F),Reflect.ownKeys(e)}},ge=class extends me{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};let _e=new he,ve=new ge,ye=new he(!0),be=new ge(!0),H=e=>e,xe=e=>Reflect.getPrototypeOf(e);function Se(e,n,r){return function(...i){let a=this.__v_raw,o=q(a),s=t.isMap(o),c=e===`entries`||e===Symbol.iterator&&s,l=e===`keys`&&s,u=a[e](...i),d=r?H:n?We:Ue;return!n&&L(o,`iterate`,l?ne:F),t.extend(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function U(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ce(e,n){let r={get(r){let i=this.__v_raw,a=q(i),o=q(r);e||(t.hasChanged(r,o)&&L(a,`get`,r),L(a,`get`,o));let{has:s}=xe(a),c=n?H:e?We:Ue;if(s.call(a,r))return c(i.get(r));if(s.call(a,o))return c(i.get(o));i!==a&&i.get(r)},get size(){let t=this.__v_raw;return!e&&L(q(t),`iterate`,F),t.size},has(n){let r=this.__v_raw,i=q(r),a=q(n);return e||(t.hasChanged(n,a)&&L(i,`has`,n),L(i,`has`,a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(t,r){let i=this,a=i.__v_raw,o=q(a),s=n?H:e?We:Ue;return!e&&L(o,`iterate`,F),a.forEach((e,n)=>t.call(r,s(e),s(n),i))}};return t.extend(r,e?{add:U(`add`),set:U(`set`),delete:U(`delete`),clear:U(`clear`)}:{add(e){let r=q(this),i=xe(r),a=q(e),o=!n&&!K(e)&&!G(e)?a:e;return i.has.call(r,o)||t.hasChanged(e,o)&&i.has.call(r,e)||t.hasChanged(a,o)&&i.has.call(r,a)||(r.add(o),re(r,`add`,o,o)),this},set(e,r){!n&&!K(r)&&!G(r)&&(r=q(r));let i=q(this),{has:a,get:o}=xe(i),s=a.call(i,e);s||=(e=q(e),a.call(i,e));let c=o.call(i,e);return i.set(e,r),s?t.hasChanged(r,c)&&re(i,`set`,e,r):re(i,`add`,e,r),this},delete(e){let t=q(this),{has:n,get:r}=xe(t),i=n.call(t,e);i||=(e=q(e),n.call(t,e)),r&&r.call(t,e);let a=t.delete(e);return i&&re(t,`delete`,e,void 0),a},clear(){let e=q(this),t=e.size!==0,n=e.clear();return t&&re(e,`clear`,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(t=>{r[t]=Se(t,e,n)}),r}function we(e,n){let r=Ce(e,n);return(n,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_raw`?n:Reflect.get(t.hasOwn(r,i)&&i in n?r:n,i,a)}let Te={get:we(!1,!1)},Ee={get:we(!1,!0)},De={get:we(!0,!1)},Oe={get:we(!0,!0)},ke=new WeakMap,je=new WeakMap,Me=new WeakMap,Ne=new WeakMap;function Pe(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Fe(e){return e.__v_skip||!Object.isExtensible(e)?0:Pe(t.toRawType(e))}function Ie(e){return G(e)?e:ze(e,!1,_e,Te,ke)}function W(e){return ze(e,!1,ye,Ee,je)}function Le(e){return ze(e,!0,ve,De,Me)}function Re(e){return ze(e,!0,be,Oe,Ne)}function ze(e,n,r,i,a){if(!t.isObject(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;let o=Fe(e);if(o===0)return e;let s=a.get(e);if(s)return s;let c=new Proxy(e,o===2?i:r);return a.set(e,c),c}function Be(e){return G(e)?Be(e.__v_raw):!!(e&&e.__v_isReactive)}function G(e){return!!(e&&e.__v_isReadonly)}function K(e){return!!(e&&e.__v_isShallow)}function Ve(e){return e?!!e.__v_raw:!1}function q(e){let t=e&&e.__v_raw;return t?q(t):e}function He(e){return!t.hasOwn(e,`__v_skip`)&&Object.isExtensible(e)&&t.def(e,`__v_skip`,!0),e}let Ue=e=>t.isObject(e)?Ie(e):e,We=e=>t.isObject(e)?Le(e):e;function J(e){return e?e.__v_isRef===!0:!1}function Ge(e){return qe(e,!1)}function Ke(e){return qe(e,!0)}function qe(e,t){return J(e)?e:new Je(e,t)}var Je=class{constructor(e,t){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:q(e),this._value=t?e:Ue(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let n=this._rawValue,r=this.__v_isShallow||K(e)||G(e);e=r?e:q(e),t.hasChanged(e,n)&&(this._rawValue=e,this._value=r?e:Ue(e),this.dep.trigger())}};function Ye(e){e.dep&&e.dep.trigger()}function Xe(e){return J(e)?e.value:e}function Ze(e){return t.isFunction(e)?e():Xe(e)}let Qe={get:(e,t,n)=>t===`__v_raw`?e:Xe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return J(i)&&!J(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $e(e){return Be(e)?e:new Proxy(e,Qe)}var et=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new te,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function tt(e){return new et(e)}function nt(e){let n=t.isArray(e)?Array(e.length):{};for(let t in e)n[t]=ot(e,t);return n}var rt=class{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=t.isSymbol(n)?n:String(n),this._raw=q(e);let i=!0,a=e;if(!t.isArray(e)||t.isSymbol(this._key)||!t.isIntegerKey(this._key))do i=!Ve(a)||K(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Xe(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&J(this._raw[this._key])){let t=this._object[this._key];if(J(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ie(this._raw,this._key)}},it=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function at(e,n,r){return J(e)?e:t.isFunction(e)?new it(e):t.isObject(e)&&arguments.length>1?ot(e,n,r):Ge(e)}function ot(e,t,n){return new rt(e,t,n)}var st=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ee-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&s!==this)return m(this,!0),!0}get value(){let e=this.dep.track();return b(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function ct(e,n,r=!1){let i,a;return t.isFunction(e)?i=e:(i=e.get,a=e.set),new st(i,a,r)}let lt={GET:`get`,HAS:`has`,ITERATE:`iterate`},ut={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},dt={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},ft={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},pt={},mt=new WeakMap,ht;function gt(){return ht}function _t(e,t=!1,n=ht){if(n){let t=mt.get(n);t||mt.set(n,t=[]),t.push(e)}}function vt(e,n,r=t.EMPTY_OBJ){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=r,f=e=>o?e:K(e)||o===!1||o===0?yt(e,1):yt(e),p,m,h,g,_=!1,v=!1;if(J(e)?(m=()=>e.value,_=K(e)):Be(e)?(m=()=>f(e),_=!0):t.isArray(e)?(v=!0,_=e.some(e=>Be(e)||K(e)),m=()=>e.map(e=>{if(J(e))return e.value;if(Be(e))return f(e);if(t.isFunction(e))return d?d(e,2):e()})):m=t.isFunction(e)?n?d?()=>d(e,2):e:()=>{if(h){D();try{h()}finally{k()}}let t=ht;ht=p;try{return d?d(e,3,[g]):e(g)}finally{ht=t}}:t.NOOP,n&&o){let e=m,t=o===!0?1/0:o;m=()=>yt(e(),t)}let y=a(),b=()=>{p.stop(),y&&y.active&&t.remove(y.effects,p)};if(s&&n){let e=n;n=(...t)=>{e(...t),b()}}let x=v?Array(e.length).fill(pt):pt,S=e=>{if(!(!(p.flags&1)||!p.dirty&&!e))if(n){let e=p.run();if(o||_||(v?e.some((e,n)=>t.hasChanged(e,x[n])):t.hasChanged(e,x))){h&&h();let t=ht;ht=p;try{let t=[e,x===pt?void 0:v&&x[0]===pt?[]:x,g];x=e,d?d(n,3,t):n(...t)}finally{ht=t}}}else p.run()};return l&&l(S),p=new u(m),p.scheduler=c?()=>c(S,!1):S,g=e=>_t(e,!1,p),h=p.onStop=()=>{let e=mt.get(p);if(e){if(d)d(e,4);else for(let t of e)t();mt.delete(p)}},n?i?S(!0):x=p.run():c?c(S.bind(null,!0),!0):p.run(),b.pause=p.pause.bind(p),b.resume=p.resume.bind(p),b.stop=b,b}function yt(e,n=1/0,r){if(n<=0||!t.isObject(e)||e.__v_skip||(r||=new Map,(r.get(e)||0)>=n))return e;if(r.set(e,n),n--,J(e))yt(e.value,n,r);else if(t.isArray(e))for(let t=0;t<e.length;t++)yt(e[t],n,r);else if(t.isSet(e)||t.isMap(e))e.forEach(e=>{yt(e,n,r)});else if(t.isPlainObject(e)){for(let t in e)yt(e[t],n,r);for(let t of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,t)&&yt(e[t],n,r)}return e}e.ARRAY_ITERATE_KEY=I,e.EffectFlags=c,e.EffectScope=r,e.ITERATE_KEY=F,e.MAP_KEY_ITERATE_KEY=ne,e.ReactiveEffect=u,e.ReactiveFlags=dt,e.TrackOpTypes=lt,e.TriggerOpTypes=ut,e.WatchErrorCodes=ft,e.computed=ct,e.customRef=tt,e.effect=C,e.effectScope=i,e.enableTracking=O,e.getCurrentScope=a,e.getCurrentWatcher=gt,e.isProxy=Ve,e.isReactive=Be,e.isReadonly=G,e.isRef=J,e.isShallow=K,e.markRaw=He,e.onEffectCleanup=A,e.onScopeDispose=o,e.onWatcherCleanup=_t,e.pauseTracking=D,e.proxyRefs=$e,e.reactive=Ie,e.reactiveReadArray=ae,e.readonly=Le,e.ref=Ge,e.resetTracking=k,e.shallowReactive=W,e.shallowReadArray=oe,e.shallowReadonly=Re,e.shallowRef=Ke,e.stop=w,e.toRaw=q,e.toReactive=Ue,e.toReadonly=We,e.toRef=at,e.toRefs=nt,e.toValue=Ze,e.track=L,e.traverse=yt,e.trigger=re,e.triggerRef=Ye,e.unref=Xe,e.watch=vt})),Me=o(((e,t)=>{t.exports=je()})),Ne=o((e=>{
27
+ /**
28
+ * @vue/runtime-core v3.5.34
22
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
30
  * @license MIT
24
- **/function kn(e,t,n,r){try{return r?e(...r):e()}catch(s){ir(s,t,n)}}function nt(e,t,n,r){if(ne(e)){const s=kn(e,t,n,r);return s&&yi(s)&&s.catch(i=>{ir(i,t,n)}),s}if(V(e)){const s=[];for(let i=0;i<e.length;i++)s.push(nt(e[i],t,n,r));return s}}function ir(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||he;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){gt(),kn(i,null,10,[e,a,c]),mt();return}}gc(e,n,s,r,l)}function gc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const _e=[];let We=-1;const Jt=[];let bt=null,Qt=0;const Gi=Promise.resolve();let lr=null;function Xt(e){const t=lr||Gi;return e?t.then(this?e.bind(this):e):t}function mc(e){let t=We+1,n=_e.length;for(;t<n;){const r=t+n>>>1,s=_e[r],i=xn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function ts(e){if(!(e.flags&1)){const t=xn(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=xn(n)?_e.push(e):_e.splice(mc(t),0,e),e.flags|=1,Zi()}}function Zi(){lr||(lr=Gi.then(Qi))}function vc(e){V(e)?Jt.push(...e):bt&&e.id===-1?bt.splice(Qt+1,0,e):e.flags&1||(Jt.push(e),e.flags|=1),Zi()}function Yi(e,t,n=We+1){for(;n<_e.length;n++){const r=_e[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_e.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ji(e){if(Jt.length){const t=[...new Set(Jt)].sort((n,r)=>xn(n)-xn(r));if(Jt.length=0,bt){bt.push(...t);return}for(bt=t,Qt=0;Qt<bt.length;Qt++){const n=bt[Qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,Qt=0}}const xn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Qi(e){try{for(We=0;We<_e.length;We++){const t=_e[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<_e.length;We++){const t=_e[We];t&&(t.flags&=-2)}We=-1,_e.length=0,Ji(),lr=null,(_e.length||Jt.length)&&Qi()}}let Ie=null,Xi=null;function or(e){const t=Ie;return Ie=e,Xi=e&&e.type.__scopeId||null,t}function bc(e,t=Ie,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&pr(-1);const i=or(t);let l;try{l=e(...s)}finally{or(i),r._d&&pr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function ar(e,t){if(Ie===null)return e;const n=vr(Ie),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=he]=t[s];i&&(ne(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 zt(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&&(gt(),nt(a,n,8,[e.el,o,e,t]),mt())}}function yc(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 cr(e,t,n=!1){const r=ps();if(r||tn){let s=tn?tn._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&&ne(t)?t.call(r&&r.proxy):t}}const wc=Symbol.for("v-scx"),kc=()=>cr(wc);function el(e,t){return tl(e,null,t)}function yt(e,t,n){return tl(e,t,n)}function tl(e,t,n=he){const{immediate:r,flush:s}=n,i=Ee({},n),l=t&&r||!t&&s!=="post";let o;if(En){if(s==="sync"){const f=kc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=Rt,f.resume=Rt,f.pause=Rt,f}}const a=Re;i.call=(f,p,m)=>nt(f,a,p,m);let c=!1;s==="post"?i.scheduler=f=>{Se(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,p)=>{p?f():ts(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=dc(e,t,i);return En&&(o?o.push(u):l&&u()),u}const xc=Symbol("_vte"),_c=e=>e.__isTeleport,$c=Symbol("_leaveCb");function ns(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ns(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 Ot(e,t){return ne(e)?Ee({name:e.name},t,{setup:e}):e}function Cc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wt(e){const t=ps(),n=Mt(null);if(t){const s=t.refs===he?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function nl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ur=new WeakMap;function _n(e,t,n,r,s=!1){if(V(e)){e.forEach((y,A)=>_n(y,t&&(V(t)?t[A]:t),n,r,s));return}if($n(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&_n(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?vr(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,p=te(f),m=f===he?mi:y=>nl(u,y)?!1:oe(p,y),x=(y,A)=>!(A&&nl(u,A));if(c!=null&&c!==a){if(rl(t),be(c))u[c]=null,m(c)&&(f[c]=null);else if(ve(c)){const y=t;x(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(ne(a))kn(a,o,12,[l,u]);else{const y=be(a),A=ve(a);if(y||A){const _=()=>{if(e.f){const T=y?m(a)?f[a]:u[a]:x()||!e.k?a.value:u[e.k];if(s)V(T)&&vi(T,i);else if(V(T))T.includes(i)||T.push(i);else if(y)u[a]=[i],m(a)&&(f[a]=u[a]);else{const O=[i];x(a,e.k)&&(a.value=O),e.k&&(u[e.k]=O)}}else y?(u[a]=l,m(a)&&(f[a]=l)):A&&(x(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const T=()=>{_(),ur.delete(e)};T.id=-1,ur.set(e,T),Se(T,n)}else rl(e),_()}}}function rl(e){const t=ur.get(e);t&&(t.flags|=8,ur.delete(e))}dn().requestIdleCallback,dn().cancelIdleCallback;const $n=e=>!!e.type.__asyncLoader,Sc=e=>e.type.__isKeepAlive;function Rc(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{gt();const o=gs(n),a=nt(t,n,e,l);return o(),mt(),a});return r?s.unshift(i):s.push(i),i}}const rs=e=>(t,n=Re)=>{(!En||e==="sp")&&Rc(e,(...r)=>t(...r),n)},en=rs("m"),Ac=rs("bum"),ss=rs("um"),Ec="components";function sl(e,t){return Tc(Ec,e,!0,t)||e}const Lc=Symbol.for("v-ndc");function Tc(e,t,n=!0,r=!1){const s=Ie||Re;if(s){const i=s.type;{const o=fu(i,!1);if(o&&(o===t||o===je(t)||o===qn(je(t))))return i}const l=il(s[e]||i[e],t)||il(s.appContext[e],t);return!l&&r?i:l}}function il(e,t){return e&&(e[t]||e[je(t)]||e[qn(je(t))])}function Ce(e,t,n,r){let s;const i=n,l=V(e);if(l||be(e)){const o=l&&It(e);let a=!1,c=!1;o&&(a=!Le(e),c=et(e),e=Jn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Yt(He(e[u])):He(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(ce(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 is=e=>e?Sl(e)?vr(e):is(e.parent):null,Cn=Ee(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=>is(e.parent),$root:e=>is(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{ts(e.update)}),$nextTick:e=>e.n||(e.n=Xt.bind(e.proxy)),$watch:e=>Rt}),ls=(e,t)=>e!==he&&!e.__isScriptSetup&&oe(e,t),Ic={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;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ls(r,t))return l[t]=1,r[t];if(oe(i,t))return l[t]=3,i[t];if(n!==he&&oe(n,t))return l[t]=4,n[t];l[t]=0}}const c=Cn[t];let u,f;if(c)return t==="$attrs"&&we(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==he&&oe(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,oe(f,t))return f[t]},set({_:e},t,n){const{setupState:r,ctx:s}=e;return ls(r,t)?(r[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:l}},o){let a;return!!(n[o]||ls(t,o)||oe(i,o)||oe(r,o)||oe(Cn,o)||oe(s.config.globalProperties,o)||(a=l.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ll(){return{app:null,config:{isNativeTag:mi,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 Mc=0;function Pc(e,t){return function(r,s=null){ne(r)||(r=Ee({},r)),s!=null&&!ce(s)&&(s=null);const i=ll(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Mc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:pu,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&ne(u.install)?(l.add(u),u.install(c,...f)):ne(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,p){if(!a){const m=c._ceVNode||ee(r,s);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,u,p),a=!0,c._container=u,u.__vue_app__=c,vr(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=tn;tn=c;try{return u()}finally{tn=f}}};return c}}let tn=null;const zc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Oc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),l=i&&zc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>be(u)?u.trim():u)),l.number&&(s=n.map(Gn)));let o,a=r[o=Br(t)]||r[o=Br(je(t))];!a&&i&&(a=r[o=Br(At(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 jc(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?(V(i)?i.forEach(o=>l[o]=null):Ee(l,i),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function fr(e,t){return!e||!Bn(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,At(t))||oe(e,t))}function ol(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:p,setupState:m,ctx:x,inheritAttrs:y}=e,A=or(e);let _,T;try{if(n.shapeFlag&4){const S=s||r,F=S;_=Ke(c.call(F,S,u,f,m,p,x)),T=o}else{const S=t;_=Ke(S.length>1?S(f,{attrs:o,slots:l,emit:a}):S(f,null)),T=t.props?o:Fc(o)}}catch(S){Sn.length=0,ir(S,e,1),_=ee(kt)}let O=_;if(T&&y!==!1){const S=Object.keys(T),{shapeFlag:F}=O;S.length&&F&7&&(i&&S.some(Nr)&&(T=Dc(T,i)),O=nn(O,T,!1,!0))}return n.dirs&&(O=nn(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&ns(O,n.transition),_=O,or(A),_}const Fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bn(n))&&((t||(t={}))[n]=e[n]);return t},Dc=(e,t)=>{const n={};for(const r in e)(!Nr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Uc(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?al(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(cl(l,r,p)&&!fr(c,p))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?al(r,l,c):!0:!!l;return!1}function al(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(cl(t,e,i)&&!fr(n,i))return!0}return!1}function cl(e,t,n){const r=e[n],s=t[n];return n==="style"&&ce(r)&&ce(s)?!dt(r,s):r!==s}function Hc({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 ul={},fl=()=>Object.create(ul),hl=e=>Object.getPrototypeOf(e)===ul;function Nc(e,t,n,r=!1){const s={},i=fl();e.propsDefaults=Object.create(null),pl(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:ec(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Bc(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 p=u[f];if(fr(e.emitsOptions,p))continue;const m=t[p];if(a)if(oe(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const x=je(p);s[x]=os(a,o,x,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{pl(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!oe(t,f)&&((u=At(f))===f||!oe(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=os(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!oe(t,f))&&(delete i[f],c=!0)}c&&Qe(e.attrs,"set","")}function pl(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(pn(a))continue;const c=t[a];let u;s&&oe(s,u=je(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:fr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=te(n),c=o||he;for(let u=0;u<i.length;u++){const f=i[u];n[f]=os(s,a,f,c[f],e,!oe(c,f))}}return l}function os(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=oe(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ne(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=gs(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===At(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,l={},o=[];if(!i)return ce(e)&&r.set(e,qt),qt;if(V(i))for(let c=0;c<i.length;c++){const u=je(i[c]);dl(u)&&(l[u]=he)}else if(i)for(const c in i){const u=je(c);if(dl(u)){const f=i[c],p=l[u]=V(f)||ne(f)?{type:f}:Ee({},f),m=p.type;let x=!1,y=!0;if(V(m))for(let A=0;A<m.length;++A){const _=m[A],T=ne(_)&&_.name;if(T==="Boolean"){x=!0;break}else T==="String"&&(y=!1)}else x=ne(m)&&m.name==="Boolean";p[0]=x,p[1]=y,(x||oe(p,"default"))&&o.push(u)}}const a=[l,o];return ce(e)&&r.set(e,a),a}function dl(e){return e[0]!=="$"&&!pn(e)}const as=e=>e==="_"||e==="_ctx"||e==="$stable",cs=e=>V(e)?e.map(Ke):[Ke(e)],Wc=(e,t,n)=>{if(t._n)return t;const r=bc((...s)=>cs(t(...s)),n);return r._c=!1,r},gl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(as(s))continue;const i=e[s];if(ne(i))t[s]=Wc(s,i,r);else if(i!=null){const l=cs(i);t[s]=()=>l}}},ml=(e,t)=>{const n=cs(t);e.slots.default=()=>n},vl=(e,t,n)=>{for(const r in t)(n||!as(r))&&(e[r]=t[r])},qc=(e,t,n)=>{const r=e.slots=fl();if(e.vnode.shapeFlag&32){const s=t._;s?(vl(r,t,n),n&&xi(r,"_",s,!0)):gl(t,r)}else t&&ml(e,t)},Kc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=he;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:vl(s,t,n):(i=!t.$stable,gl(t,s)),l=t}else t&&(ml(e,t),l={default:1});if(i)for(const o in s)!as(o)&&l[o]==null&&delete s[o]};function Gc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(dn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Se=Xc;function Zc(e){return Yc(e)}function Yc(e,t){Gc();const n=dn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=Rt,insertStaticContent:x}=e,y=(h,d,g,v=null,b=null,w=null,k=void 0,R=null,C=!!d.dynamicChildren)=>{if(h===d)return;h&&!An(h,d)&&(v=Ct(h),Ne(h,b,w,!0),h=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:$,ref:I,shapeFlag:L}=d;switch($){case hr:A(h,d,g,v);break;case kt:_(h,d,g,v);break;case fs:h==null&&T(d,g,v,k);break;case se:H(h,d,g,v,b,w,k,R,C);break;default:L&1?F(h,d,g,v,b,w,k,R,C):L&6?Z(h,d,g,v,b,w,k,R,C):(L&64||L&128)&&$.process(h,d,g,v,b,w,k,R,C,ht)}I!=null&&b?_n(I,h&&h.ref,w,d||h,!d):I==null&&h&&h.ref!=null&&_n(h.ref,null,w,h,!0)},A=(h,d,g,v)=>{if(h==null)r(d.el=o(d.children),g,v);else{const b=d.el=h.el;d.children!==h.children&&c(b,d.children)}},_=(h,d,g,v)=>{h==null?r(d.el=a(d.children||""),g,v):d.el=h.el},T=(h,d,g,v)=>{[h.el,h.anchor]=x(h.children,d,g,v,h.el,h.anchor)},O=({el:h,anchor:d},g,v)=>{let b;for(;h&&h!==d;)b=p(h),r(h,g,v),h=b;r(d,g,v)},S=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},F=(h,d,g,v,b,w,k,R,C)=>{if(d.type==="svg"?k="svg":d.type==="math"&&(k="mathml"),h==null)fe(d,g,v,b,w,k,R,C);else{const $=h.el&&h.el._isVueCE?h.el:null;try{$&&$._beginPatch(),ke(h,d,b,w,k,R,C)}finally{$&&$._endPatch()}}},fe=(h,d,g,v,b,w,k,R)=>{let C,$;const{props:I,shapeFlag:L,transition:j,dirs:B}=h;if(C=h.el=l(h.type,w,I&&I.is,I),L&8?u(C,h.children):L&16&&D(h.children,C,null,v,b,us(h,w),k,R),B&&zt(h,null,v,"created"),ie(C,h,h.scopeId,k,v),I){for(const re in I)re!=="value"&&!pn(re)&&i(C,re,null,I[re],w,v);"value"in I&&i(C,"value",null,I.value,w),($=I.onVnodeBeforeMount)&&Ge($,v,h)}B&&zt(h,null,v,"beforeMount");const J=Jc(b,j);J&&j.beforeEnter(C),r(C,d,g),(($=I&&I.onVnodeMounted)||J||B)&&Se(()=>{$&&Ge($,v,h),J&&j.enter(C),B&&zt(h,null,v,"mounted")},b)},ie=(h,d,g,v,b)=>{if(g&&m(h,g),v)for(let w=0;w<v.length;w++)m(h,v[w]);if(b){let w=b.subTree;if(d===w||xl(w.type)&&(w.ssContent===d||w.ssFallback===d)){const k=b.vnode;ie(h,k,k.scopeId,k.slotScopeIds,b.parent)}}},D=(h,d,g,v,b,w,k,R,C=0)=>{for(let $=C;$<h.length;$++){const I=h[$]=R?st(h[$]):Ke(h[$]);y(null,I,d,g,v,b,w,k,R)}},ke=(h,d,g,v,b,w,k)=>{const R=d.el=h.el;let{patchFlag:C,dynamicChildren:$,dirs:I}=d;C|=h.patchFlag&16;const L=h.props||he,j=d.props||he;let B;if(g&&jt(g,!1),(B=j.onVnodeBeforeUpdate)&&Ge(B,g,d,h),I&&zt(d,h,g,"beforeUpdate"),g&&jt(g,!0),(L.innerHTML&&j.innerHTML==null||L.textContent&&j.textContent==null)&&u(R,""),$?ge(h.dynamicChildren,$,R,g,v,us(d,b),w):k||ae(h,d,R,null,g,v,us(d,b),w,!1),C>0){if(C&16)U(R,L,j,g,b);else if(C&2&&L.class!==j.class&&i(R,"class",null,j.class,b),C&4&&i(R,"style",L.style,j.style,b),C&8){const J=d.dynamicProps;for(let re=0;re<J.length;re++){const le=J[re],Pe=L[le],xe=j[le];(xe!==Pe||le==="value")&&i(R,le,Pe,xe,b,g)}}C&1&&h.children!==d.children&&u(R,d.children)}else!k&&$==null&&U(R,L,j,g,b);((B=j.onVnodeUpdated)||I)&&Se(()=>{B&&Ge(B,g,d,h),I&&zt(d,h,g,"updated")},v)},ge=(h,d,g,v,b,w,k)=>{for(let R=0;R<d.length;R++){const C=h[R],$=d[R],I=C.el&&(C.type===se||!An(C,$)||C.shapeFlag&198)?f(C.el):g;y(C,$,I,null,v,b,w,k,!0)}},U=(h,d,g,v,b)=>{if(d!==g){if(d!==he)for(const w in d)!pn(w)&&!(w in g)&&i(h,w,d[w],null,b,v);for(const w in g){if(pn(w))continue;const k=g[w],R=d[w];k!==R&&w!=="value"&&i(h,w,R,k,b,v)}"value"in g&&i(h,"value",d.value,g.value,b)}},H=(h,d,g,v,b,w,k,R,C)=>{const $=d.el=h?h.el:o(""),I=d.anchor=h?h.anchor:o("");let{patchFlag:L,dynamicChildren:j,slotScopeIds:B}=d;B&&(R=R?R.concat(B):B),h==null?(r($,g,v),r(I,g,v),D(d.children||[],g,I,b,w,k,R,C)):L>0&&L&64&&j&&h.dynamicChildren&&h.dynamicChildren.length===j.length?(ge(h.dynamicChildren,j,g,b,w,k,R),(d.key!=null||b&&d===b.subTree)&&bl(h,d,!0)):ae(h,d,g,I,b,w,k,R,C)},Z=(h,d,g,v,b,w,k,R,C)=>{d.slotScopeIds=R,h==null?d.shapeFlag&512?b.ctx.activate(d,g,v,k,C):z(d,g,v,b,w,k,C):K(h,d,C)},z=(h,d,g,v,b,w,k)=>{const R=h.component=lu(h,v,b);if(Sc(h)&&(R.ctx.renderer=ht),ou(R,!1,k),R.asyncDep){if(b&&b.registerDep(R,Y,k),!h.el){const C=R.subTree=ee(kt);_(null,C,d,g),h.placeholder=C.el}}else Y(R,h,d,g,b,w,k)},K=(h,d,g)=>{const v=d.component=h.component;if(Uc(h,d,g))if(v.asyncDep&&!v.asyncResolved){De(v,d,g);return}else v.next=d,v.update();else d.el=h.el,v.vnode=d},Y=(h,d,g,v,b,w,k)=>{const R=()=>{if(h.isMounted){let{next:L,bu:j,u:B,parent:J,vnode:re}=h;{const an=yl(h);if(an){L&&(L.el=re.el,De(h,L,k)),an.asyncDep.then(()=>{Se(()=>{h.isUnmounted||$()},b)});return}}let le=L,Pe;jt(h,!1),L?(L.el=re.el,De(h,L,k)):L=re,j&&Kn(j),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&Ge(Pe,J,L,re),jt(h,!0);const xe=ol(h),ze=h.subTree;h.subTree=xe,y(ze,xe,f(ze.el),Ct(ze),h,b,w),L.el=xe.el,le===null&&Hc(h,xe.el),B&&Se(B,b),(Pe=L.props&&L.props.onVnodeUpdated)&&Se(()=>Ge(Pe,J,L,re),b)}else{let L;const{props:j}=d,{bm:B,m:J,parent:re,root:le,type:Pe}=h,xe=$n(d);jt(h,!1),B&&Kn(B),!xe&&(L=j&&j.onVnodeBeforeMount)&&Ge(L,re,d),jt(h,!0);{le.ce&&le.ce._hasShadowRoot()&&le.ce._injectChildStyle(Pe);const ze=h.subTree=ol(h);y(null,ze,g,v,h,b,w),d.el=ze.el}if(J&&Se(J,b),!xe&&(L=j&&j.onVnodeMounted)){const ze=d;Se(()=>Ge(L,re,ze),b)}(d.shapeFlag&256||re&&$n(re.vnode)&&re.vnode.shapeFlag&256)&&h.a&&Se(h.a,b),h.isMounted=!0,d=g=v=null}};h.scope.on();const C=h.effect=new Ai(R);h.scope.off();const $=h.update=C.run.bind(C),I=h.job=C.runIfDirty.bind(C);I.i=h,I.id=h.uid,C.scheduler=()=>ts(I),jt(h,!0),$()},De=(h,d,g)=>{d.component=h;const v=h.vnode.props;h.vnode=d,h.next=null,Bc(h,d.props,v,g),Kc(h,d.children,g),gt(),Yi(h),mt()},ae=(h,d,g,v,b,w,k,R,C=!1)=>{const $=h&&h.children,I=h?h.shapeFlag:0,L=d.children,{patchFlag:j,shapeFlag:B}=d;if(j>0){if(j&128){_t($,L,g,v,b,w,k,R,C);return}else if(j&256){ut($,L,g,v,b,w,k,R,C);return}}B&8?(I&16&&$t($,b,w),L!==$&&u(g,L)):I&16?B&16?_t($,L,g,v,b,w,k,R,C):$t($,b,w,!0):(I&8&&u(g,""),B&16&&D(L,g,v,b,w,k,R,C))},ut=(h,d,g,v,b,w,k,R,C)=>{h=h||qt,d=d||qt;const $=h.length,I=d.length,L=Math.min($,I);let j;for(j=0;j<L;j++){const B=d[j]=C?st(d[j]):Ke(d[j]);y(h[j],B,g,null,b,w,k,R,C)}$>I?$t(h,b,w,!0,!1,L):D(d,g,v,b,w,k,R,C,L)},_t=(h,d,g,v,b,w,k,R,C)=>{let $=0;const I=d.length;let L=h.length-1,j=I-1;for(;$<=L&&$<=j;){const B=h[$],J=d[$]=C?st(d[$]):Ke(d[$]);if(An(B,J))y(B,J,g,null,b,w,k,R,C);else break;$++}for(;$<=L&&$<=j;){const B=h[L],J=d[j]=C?st(d[j]):Ke(d[j]);if(An(B,J))y(B,J,g,null,b,w,k,R,C);else break;L--,j--}if($>L){if($<=j){const B=j+1,J=B<I?d[B].el:v;for(;$<=j;)y(null,d[$]=C?st(d[$]):Ke(d[$]),g,J,b,w,k,R,C),$++}}else if($>j)for(;$<=L;)Ne(h[$],b,w,!0),$++;else{const B=$,J=$,re=new Map;for($=J;$<=j;$++){const Ae=d[$]=C?st(d[$]):Ke(d[$]);Ae.key!=null&&re.set(Ae.key,$)}let le,Pe=0;const xe=j-J+1;let ze=!1,an=0;const cn=new Array(xe);for($=0;$<xe;$++)cn[$]=0;for($=B;$<=L;$++){const Ae=h[$];if(Pe>=xe){Ne(Ae,b,w,!0);continue}let Be;if(Ae.key!=null)Be=re.get(Ae.key);else for(le=J;le<=j;le++)if(cn[le-J]===0&&An(Ae,d[le])){Be=le;break}Be===void 0?Ne(Ae,b,w,!0):(cn[Be-J]=$+1,Be>=an?an=Be:ze=!0,y(Ae,d[Be],g,null,b,w,k,R,C),Pe++)}const Fs=ze?Qc(cn):qt;for(le=Fs.length-1,$=xe-1;$>=0;$--){const Ae=J+$,Be=d[Ae],Ds=d[Ae+1],Us=Ae+1<I?Ds.el||kl(Ds):v;cn[$]===0?y(null,Be,g,Us,b,w,k,R,C):ze&&(le<0||$!==Fs[le]?ft(Be,g,Us,2):le--)}}},ft=(h,d,g,v,b=null)=>{const{el:w,type:k,transition:R,children:C,shapeFlag:$}=h;if($&6){ft(h.component.subTree,d,g,v);return}if($&128){h.suspense.move(d,g,v);return}if($&64){k.move(h,d,g,ht);return}if(k===se){r(w,d,g);for(let L=0;L<C.length;L++)ft(C[L],d,g,v);r(h.anchor,d,g);return}if(k===fs){O(h,d,g);return}if(v!==2&&$&1&&R)if(v===0)R.beforeEnter(w),r(w,d,g),Se(()=>R.enter(w),b);else{const{leave:L,delayLeave:j,afterLeave:B}=R,J=()=>{h.ctx.isUnmounted?s(w):r(w,d,g)},re=()=>{w._isLeaving&&w[$c](!0),L(w,()=>{J(),B&&B()})};j?j(w,J,re):re()}else r(w,d,g)},Ne=(h,d,g,v=!1,b=!1)=>{const{type:w,props:k,ref:R,children:C,dynamicChildren:$,shapeFlag:I,patchFlag:L,dirs:j,cacheIndex:B}=h;if(L===-2&&(b=!1),R!=null&&(gt(),_n(R,null,g,h,!0),mt()),B!=null&&(d.renderCache[B]=void 0),I&256){d.ctx.deactivate(h);return}const J=I&1&&j,re=!$n(h);let le;if(re&&(le=k&&k.onVnodeBeforeUnmount)&&Ge(le,d,h),I&6)Or(h.component,g,v);else{if(I&128){h.suspense.unmount(g,v);return}J&&zt(h,null,d,"beforeUnmount"),I&64?h.type.remove(h,d,g,ht,v):$&&!$.hasOnce&&(w!==se||L>0&&L&64)?$t($,d,g,!1,!0):(w===se&&L&384||!b&&I&16)&&$t(C,d,g),v&&Bt(h)}(re&&(le=k&&k.onVnodeUnmounted)||J)&&Se(()=>{le&&Ge(le,d,h),J&&zt(h,null,d,"unmounted")},g)},Bt=h=>{const{type:d,el:g,anchor:v,transition:b}=h;if(d===se){zr(g,v);return}if(d===fs){S(h);return}const w=()=>{s(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:k,delayLeave:R}=b,C=()=>k(g,w);R?R(h.el,w,C):C()}else w()},zr=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Or=(h,d,g)=>{const{bum:v,scope:b,job:w,subTree:k,um:R,m:C,a:$}=h;wl(C),wl($),v&&Kn(v),b.stop(),w&&(w.flags|=8,Ne(k,h,d,g)),R&&Se(R,d),Se(()=>{h.isUnmounted=!0},d)},$t=(h,d,g,v=!1,b=!1,w=0)=>{for(let k=w;k<h.length;k++)Ne(h[k],d,g,v,b)},Ct=h=>{if(h.shapeFlag&6)return Ct(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[xc];return g?p(g):d};let on=!1;const Fn=(h,d,g)=>{let v;h==null?d._vnode&&(Ne(d._vnode,null,null,!0),v=d._vnode.component):y(d._vnode||null,h,d,null,null,null,g),d._vnode=h,on||(on=!0,Yi(v),Ji(),on=!1)},ht={p:y,um:Ne,m:ft,r:Bt,mt:z,mc:D,pc:ae,pbc:ge,n:Ct,o:e};return{render:Fn,hydrate:void 0,createApp:Pc(Fn)}}function us({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 jt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bl(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(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]=st(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&bl(l,o)),o.type===hr&&(o.patchFlag===-1&&(o=s[i]=st(o)),o.el=l.el),o.type===kt&&!o.el&&(o.el=l.el)}}function Qc(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 yl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yl(t)}function wl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function kl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?kl(t.subTree):null}const xl=e=>e.__isSuspense;function Xc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):vc(e)}const se=Symbol.for("v-fgt"),hr=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),fs=Symbol.for("v-stc"),Sn=[];let Me=null;function E(e=!1){Sn.push(Me=e?null:[])}function eu(){Sn.pop(),Me=Sn[Sn.length-1]||null}let Rn=1;function pr(e,t=!1){Rn+=e,e<0&&Me&&t&&(Me.hasOnce=!0)}function _l(e){return e.dynamicChildren=Rn>0?Me||qt:null,eu(),Rn>0&&Me&&Me.push(e),e}function P(e,t,n,r,s,i){return _l(M(e,t,n,r,s,i,!0))}function qe(e,t,n,r,s){return _l(ee(e,t,n,r,s,!0))}function dr(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const $l=({key:e})=>e??null,gr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ve(e)||ne(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function M(e,t=null,n=null,r=0,s=null,i=e===se?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$l(t),ref:t&&gr(t),scopeId:Xi,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:Ie};return o?(hs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),Rn>0&&!l&&Me&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Me.push(a),a}const ee=tu;function tu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Lc)&&(e=kt),dr(e)){const o=nn(e,t,!0);return n&&hs(o,n),Rn>0&&!i&&Me&&(o.shapeFlag&6?Me[Me.indexOf(e)]=o:Me.push(o)),o.patchFlag=-2,o}if(hu(e)&&(e=e.__vccOpts),t){t=nu(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=me(o)),ce(a)&&(nr(a)&&!V(a)&&(a=Ee({},a)),t.style=Et(a))}const l=be(e)?1:xl(e)?128:_c(e)?64:ce(e)?4:ne(e)?2:0;return M(e,t,n,r,s,l,i,!0)}function nu(e){return e?nr(e)||hl(e)?Ee({},e):e:null}function nn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?ru(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$l(c),ref:t&&t.ref?n&&i?V(i)?i.concat(gr(t)):[i,gr(t)]:gr(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!==se?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&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ns(u,a.clone(u)),u}function rt(e=" ",t=0){return ee(hr,null,e,t)}function q(e="",t=!1){return t?(E(),qe(kt,null,e)):ee(kt,null,e)}function Ke(e){return e==null||typeof e=="boolean"?ee(kt):V(e)?ee(se,null,e.slice()):dr(e)?st(e):ee(hr,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nn(e)}function hs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),hs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!hl(t)?t._ctx=Ie:s===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ru(...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=me([t.class,r.class]));else if(s==="style")t.style=Et([t.style,r.style]);else if(Bn(s)){const i=t[s],l=r[s];l&&i!==l&&!(V(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Ge(e,t,n,r=null){nt(e,t,7,[n,r])}const su=ll();let iu=0;function lu(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||su,i={uid:iu++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ma(!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:jc(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,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=Oc.bind(null,i),e.ce&&e.ce(i),i}let Re=null;const ps=()=>Re||Ie;let mr,ds;{const e=dn(),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)}};mr=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),ds=t("__VUE_SSR_SETTERS__",n=>En=n)}const gs=e=>{const t=Re;return mr(e),e.scope.on(),()=>{e.scope.off(),mr(t)}},Cl=()=>{Re&&Re.scope.off(),mr(null)};function Sl(e){return e.vnode.shapeFlag&4}let En=!1;function ou(e,t=!1,n=!1){t&&ds(t);const{props:r,children:s}=e.vnode,i=Sl(e);Nc(e,r,i,t),qc(e,s,n||t);const l=i?au(e,t):void 0;return t&&ds(!1),l}function au(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ic);const{setup:r}=n;if(r){gt();const s=e.setupContext=r.length>1?uu(e):null,i=gs(e),l=kn(r,e,0,[e.props,s]),o=yi(l);if(mt(),i(),(o||e.sp)&&!$n(e)&&Cc(e),o){if(l.then(Cl,Cl),t)return l.then(a=>{Rl(e,a,t)}).catch(a=>{ir(a,e,0)});e.asyncDep=l}else Rl(e,l,t)}else El(e,t)}function Rl(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Ki(t)),El(e,n)}let Al;function El(e,t,n){const r=e.type;if(!e.render){if(!t&&Al&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Ee(Ee({isCustomElement:i,delimiters:o},l),a);r.render=Al(s,c)}}e.render=r.render||Rt}}const cu={get(e,t){return we(e,"get",""),e[t]}};function uu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cu),slots:e.slots,emit:e.emit,expose:t}}function vr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ki(nc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cn)return Cn[n](e)},has(t,n){return n in t||n in Cn}})):e.proxy}function fu(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function hu(e){return ne(e)&&"__vccOpts"in e}const pe=(e,t)=>hc(e,t,En);function W(e,t,n){try{pr(-1);const r=arguments.length;return r===2?ce(t)&&!V(t)?dr(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&dr(n)&&(n=[n]),ee(e,t,n))}finally{pr(1)}}const pu="3.5.28";/**
25
- * @vue/runtime-dom v3.5.28
31
+ **/
32
+ Object.defineProperty(e,"__esModule",{value:!0});var t=Me(),n=Ae();function r(e){}function i(){}function a(e,t){}let o={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},s={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function c(e,t,n,r){try{return r?e(...r):e()}catch(e){u(e,t,n)}}function l(e,t,r,i){if(n.isFunction(e)){let a=c(e,t,r,i);return a&&n.isPromise(a)&&a.catch(e=>{u(e,t,r)}),a}if(n.isArray(e)){let n=[];for(let a=0;a<e.length;a++)n.push(l(e[a],t,r,i));return n}}function u(e,r,i,a=!0){let o=r?r.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=r&&r.appContext.config||n.EMPTY_OBJ;if(r){let n=r.parent,a=r.proxy,o=`https://vuejs.org/error-reference/#runtime-${i}`;for(;n;){let t=n.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,a,o)===!1)return}n=n.parent}if(s){t.pauseTracking(),c(s,null,10,[e,a,o]),t.resetTracking();return}}d(e,i,o,a,l)}function d(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let f=[],p=-1,m=[],h=null,g=0,_=Promise.resolve(),v=null;function y(e){let t=v||_;return e?t.then(this?e.bind(this):e):t}function b(e){let t=p+1,n=f.length;for(;t<n;){let r=t+n>>>1,i=f[r],a=E(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function x(e){if(!(e.flags&1)){let t=E(e),n=f[f.length-1];!n||!(e.flags&2)&&t>=E(n)?f.push(e):f.splice(b(t),0,e),e.flags|=1,S()}}function S(){v||=_.then(D)}function C(e){n.isArray(e)?m.push(...e):h&&e.id===-1?h.splice(g+1,0,e):e.flags&1||(m.push(e),e.flags|=1),S()}function w(e,t,n=p+1){for(;n<f.length;n++){let t=f[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;f.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function T(e){if(m.length){let e=[...new Set(m)].sort((e,t)=>E(e)-E(t));if(m.length=0,h){h.push(...e);return}for(h=e,g=0;g<h.length;g++){let e=h[g];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}h=null,g=0}}let E=e=>e.id==null?e.flags&2?-1:1/0:e.id;function D(e){try{for(p=0;p<f.length;p++){let e=f[p];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),c(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;p<f.length;p++){let e=f[p];e&&(e.flags&=-2)}p=-1,f.length=0,T(),v=null,(f.length||m.length)&&D()}}let O=null,k=null;function A(e){let t=O;return O=e,k=e&&e.type.__scopeId||null,t}function j(e){k=e}function ee(){k=null}let M=e=>te;function te(e,t=O,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Nr(-1);let i=A(t),a;try{a=e(...n)}finally{A(i),r._d&&Nr(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,r){if(O===null)return e;let i=xi(O),a=e.dirs||=[];for(let e=0;e<r.length;e++){let[o,s,c,l=n.EMPTY_OBJ]=r[e];o&&(n.isFunction(o)&&(o={mounted:o,updated:o}),o.deep&&t.traverse(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:c,modifiers:l}))}return e}function P(e,n,r,i){let a=e.dirs,o=n&&n.dirs;for(let s=0;s<a.length;s++){let c=a[s];o&&(c.oldValue=o[s].value);let u=c.dir[i];u&&(t.pauseTracking(),l(u,r,8,[e.el,c,e,n]),t.resetTracking())}}function F(e,t){if(ri){let n=ri.provides,r=ri.parent&&ri.parent.provides;r===n&&(n=ri.provides=Object.create(r)),n[e]=t}}function ne(e,t,r=!1){let i=ii();if(i||Cn){let a=Cn?Cn._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return r&&n.isFunction(t)?t.call(i&&i.proxy):t}}function I(){return!!(ii()||Cn)}let L=Symbol.for(`v-scx`),re=()=>ne(L);function ie(e,t){return se(e,null,t)}function ae(e,t){return se(e,null,{flush:`post`})}function oe(e,t){return se(e,null,{flush:`sync`})}function R(e,t,n){return se(e,t,n)}function se(e,r,i=n.EMPTY_OBJ){let{immediate:a,deep:o,flush:s,once:c}=i,u=n.extend({},i),d=r&&a||!r&&s!==`post`,f;if(ui){if(s===`sync`){let e=re();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=n.NOOP,e.resume=n.NOOP,e.pause=n.NOOP,e}}let p=ri;u.call=(e,t,n)=>l(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{X(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():x(e)}),u.augmentJob=e=>{r&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=t.watch(e,r,u);return ui&&(f?f.push(h):d&&h()),h}function ce(e,t,r){let i=this.proxy,a=n.isString(e)?e.includes(`.`)?z(i,e):()=>i[e]:e.bind(i,i),o;n.isFunction(t)?o=t:(o=t.handler,r=t);let s=si(this),c=se(a,o.bind(i),r);return s(),c}function z(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}let B=new WeakMap,le=Symbol(`_vte`),ue=e=>e.__isTeleport,V=e=>e&&(e.disabled||e.disabled===``),de=e=>e&&(e.defer||e.defer===``),fe=e=>typeof SVGElement<`u`&&e instanceof SVGElement,pe=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,me=(e,t)=>{let r=e&&e.to;return n.isString(r)?t?t(r):null:r},he={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=V(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=V(e.props),r=e.target=me(e.props,m),a=be(r,e,h,p);r&&(o!==`svg`&&fe(r)?o=`svg`:o!==`mathml`&&pe(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ye(e,!1)))},S=e=>{let t=()=>{B.get(e)===t&&(B.delete(e),V(e.props)&&(b(e,_(e.el)||n,e.anchor),ye(e,!0)),x(e))};B.set(e,t),X(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),de(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),ye(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=B.get(e);if(u){u.flags|=8,B.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=V(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||fe(p)?o=`svg`:(o===`mathml`||pe(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),sr(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ge(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=me(t.props,m);e&&ge(t,e,null,l,0)}else g&&ge(t,p,h,l,1);ye(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!V(f),m=B.get(e);if(m&&(m.flags|=8,B.delete(e),p=!1),d&&(i(l),i(u)),a&&i(c),o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,p,!!i.dynamicChildren)}},move:ge,hydrate:_e};function ge(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!B.has(e)&&(!d||V(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function _e(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=me(t.props,c),h=V(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||be(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||be(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),ye(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}let ve=he;function ye(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function be(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[le]=o,e&&(r(a,e,i),r(o,e,i)),o}let H=Symbol(`_leaveCb`),xe=Symbol(`_enterCb`);function Se(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),xt(()=>{e.isUnmounting=!0}),e}let U=[Function,Array],Ce={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:U,onEnter:U,onAfterEnter:U,onEnterCancelled:U,onBeforeLeave:U,onLeave:U,onAfterLeave:U,onLeaveCancelled:U,onBeforeAppear:U,onAppear:U,onAfterAppear:U,onAppearCancelled:U},we=e=>{let t=e.subTree;return t.component?we(t.component):t},Te={name:`BaseTransition`,props:Ce,setup(e,{slots:n}){let r=ii(),i=Se();return()=>{let a=n.default&&Fe(n.default(),!0),o=a&&a.length?Ee(a):r.subTree?Jr():void 0;if(!o)return;let s=t.toRaw(e),{mode:c}=s;if(i.isLeaving)return je(o);let l=Ne(o);if(!l)return je(o);let u=ke(l,s,i,r,e=>u=e);l.type!==Q&&Pe(l,u);let d=r.subTree&&Ne(r.subTree);if(d&&d.type!==Q&&!Rr(d,l)&&we(r).type!==Q){let e=ke(d,s,i,r);if(Pe(d,e),c===`out-in`&&l.type!==Q)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,r.job.flags&8||r.update(),delete e.afterLeave,d=void 0},je(o);c===`in-out`&&l.type!==Q?e.delayLeave=(e,t,n)=>{let r=Oe(i,d);r[String(d.key)]=d,e[H]=()=>{t(),e[H]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&=void 0;return o}}};function Ee(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Q){t=n;break}}return t}let De=Te;function Oe(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ke(e,t,r,i,a){let{appear:o,mode:s,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:m,onLeave:h,onAfterLeave:g,onLeaveCancelled:_,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:x}=t,S=String(e.key),C=Oe(r,e),w=(e,t)=>{e&&l(e,i,9,t)},T=(e,t)=>{let r=t[1];w(e,t),n.isArray(e)?e.every(e=>e.length<=1)&&r():e.length<=1&&r()},E={mode:s,persisted:c,beforeEnter(t){let n=u;if(!r.isMounted)if(o)n=v||u;else return;t[H]&&t[H](!0);let i=C[S];i&&Rr(e,i)&&i.el[H]&&i.el[H](),w(n,[t])},enter(t){if(C[S]===e)return;let n=d,i=f,a=p;if(!r.isMounted)if(o)n=y||d,i=b||f,a=x||p;else return;let s=!1;t[xe]=e=>{s||(s=!0,w(e?a:i,[t]),E.delayedLeave&&E.delayedLeave(),t[xe]=void 0)};let c=t[xe].bind(null,!1);n?T(n,[t,c]):c()},leave(t,n){let i=String(e.key);if(t[xe]&&t[xe](!0),r.isUnmounting)return n();w(m,[t]);let a=!1;t[H]=r=>{a||(a=!0,n(),w(r?_:g,[t]),t[H]=void 0,C[i]===e&&delete C[i])};let o=t[H].bind(null,!1);C[i]=e,h?T(h,[t,o]):o()},clone(e){let n=ke(e,t,r,i,a);return a&&a(n),n}};return E}function je(e){if(ot(e))return e=Gr(e),e.children=null,e}function Ne(e){if(!ot(e))return ue(e.type)&&e.children?Ee(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&n.isFunction(r.default))return r.default()}}function Pe(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pe(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 Fe(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===Tr?(o.patchFlag&128&&i++,r=r.concat(Fe(o.children,t,s))):(t||o.type!==Q)&&r.push(s==null?o:Gr(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Ie(e,t){return n.isFunction(e)?n.extend({name:e.name},t,{setup:e}):e}function W(){let e=ii();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Le(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Re(e){let r=ii(),i=t.shallowRef(null);if(r){let t=r.refs===n.EMPTY_OBJ?r.refs={}:r.refs;Object.defineProperty(t,e,{enumerable:!0,get:()=>i.value,set:e=>i.value=e})}return i}function ze(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}let Be=new WeakMap;function G(e,r,i,a,o=!1){if(n.isArray(e)){e.forEach((e,t)=>G(e,r&&(n.isArray(r)?r[t]:r),i,a,o));return}if(rt(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&G(e,r,i,a.component.subTree);return}let s=a.shapeFlag&4?xi(a.component):a.el,l=o?null:s,{i:u,r:d}=e,f=r&&r.r,p=u.refs===n.EMPTY_OBJ?u.refs={}:u.refs,m=u.setupState,h=t.toRaw(m),g=m===n.EMPTY_OBJ?n.NO:e=>ze(p,e)?!1:n.hasOwn(h,e),_=(e,t)=>!(t&&ze(p,t));if(f!=null&&f!==d){if(K(r),n.isString(f))p[f]=null,g(f)&&(m[f]=null);else if(t.isRef(f)){let e=r;_(f,e.k)&&(f.value=null),e.k&&(p[e.k]=null)}}if(n.isFunction(d))c(d,u,12,[l,p]);else{let r=n.isString(d),a=t.isRef(d);if(r||a){let t=()=>{if(e.f){let t=r?g(d)?m[d]:p[d]:_()||!e.k?d.value:p[e.k];if(o)n.isArray(t)&&n.remove(t,s);else if(n.isArray(t))t.includes(s)||t.push(s);else if(r)p[d]=[s],g(d)&&(m[d]=p[d]);else{let t=[s];_(d,e.k)&&(d.value=t),e.k&&(p[e.k]=t)}}else r?(p[d]=l,g(d)&&(m[d]=l)):a&&(_(d,e.k)&&(d.value=l),e.k&&(p[e.k]=l))};if(l){let n=()=>{t(),Be.delete(e)};n.id=-1,Be.set(e,n),X(n,i)}else K(e),t()}}}function K(e){let t=Be.get(e);t&&(t.flags|=8,Be.delete(e))}let Ve=!1,q=()=>{Ve||=(console.error(`Hydration completed but contains mismatches.`),!0)},He=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ue=e=>e.namespaceURI.includes(`MathML`),We=e=>{if(e.nodeType===1){if(He(e))return`svg`;if(Ue(e))return`mathml`}},J=e=>e.nodeType===8;function Ge(e){let{mt:r,p:i,o:{patchProp:a,createText:o,nextSibling:s,parentNode:c,remove:l,insert:u,createComment:d}}=e,f=(e,t)=>{if(!t.hasChildNodes()){i(null,e,t),T(),t._vnode=e;return}p(t.firstChild,e,null,null,null),T(),t._vnode=e},p=(t,n,i,a,l,d=!1)=>{d||=!!n.dynamicChildren;let f=J(t)&&t.data===`[`,x=()=>_(t,n,i,a,l,f),{type:S,ref:C,shapeFlag:w,patchFlag:T}=n,E=t.nodeType;n.el=t,T===-2&&(d=!1,n.dynamicChildren=null);let D=null;switch(S){case Er:E===3?(t.data!==n.children&&(q(),t.data=n.children),D=s(t)):n.children===``?(u(n.el=o(``),c(t),t),D=t):D=x();break;case Q:b(t)?(D=s(t),y(n.el=t.content.firstChild,t,i)):D=E!==8||f?x():s(t);break;case Dr:if(f&&(t=s(t),E=t.nodeType),E===1||E===3){D=t;let e=!n.children.length;for(let t=0;t<n.staticCount;t++)e&&(n.children+=D.nodeType===1?D.outerHTML:D.data),t===n.staticCount-1&&(n.anchor=D),D=s(D);return f?s(D):D}else x();break;case Tr:D=f?g(t,n,i,a,l,d):x();break;default:if(w&1)D=(E!==1||n.type.toLowerCase()!==t.tagName.toLowerCase())&&!b(t)?x():m(t,n,i,a,l,d);else if(w&6){n.slotScopeIds=l;let e=c(t);if(D=f?v(t):J(t)&&t.data===`teleport start`?v(t,t.data,`teleport end`):s(t),r(n,e,null,i,a,We(e),d),rt(n)&&!n.type.__asyncResolved){let r;f?(r=$(Tr),r.anchor=D?D.previousSibling:e.lastChild):r=t.nodeType===3?Kr(``):$(`div`),r.el=t,n.component.subTree=r}}else w&64?D=E===8?n.type.hydrate(t,n,i,a,l,d,e,h):x():w&128&&(D=n.type.hydrate(t,n,i,a,We(c(t)),l,d,e,p))}return C!=null&&G(C,null,a,n),D},m=(e,r,i,o,s,c)=>{c||=!!r.dynamicChildren;let{type:u,props:d,patchFlag:f,shapeFlag:p,dirs:m,transition:g}=r,_=u===`input`||u===`option`;if(_||f!==-1){m&&P(r,null,i,`created`);let u=!1;if(b(e)){u=or(null,g)&&i&&i.vnode.props&&i.vnode.props.appear;let t=e.content.firstChild;if(u){let e=t.getAttribute(`class`);e&&(t.$cls=e),g.beforeEnter(t)}y(t,e,i),r.el=e=t}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let t=h(e.firstChild,r,e,i,o,s,c);for(;t;){Je(e,1)||q();let n=t;t=t.nextSibling,l(n)}}else if(p&8){let t=r.children;t[0]===`
33
+ `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(t=t.slice(1));let{textContent:n}=e;n!==t&&n!==t.replace(/\r\n|\r/g,`
34
+ `)&&(Je(e,0)||q(),e.textContent=r.children)}if(d){if(_||!c||f&48){let t=e.tagName.includes(`-`);for(let r in d)(_&&(r.endsWith(`value`)||r===`indeterminate`)||n.isOn(r)&&!n.isReservedProp(r)||r[0]===`.`||t&&!n.isReservedProp(r))&&a(e,r,null,d[r],void 0,i)}else if(d.onClick)a(e,`onClick`,null,d.onClick,void 0,i);else if(f&4&&t.isReactive(d.style))for(let e in d.style)d.style[e]}let v;(v=d&&d.onVnodeBeforeMount)&&$r(v,i,r),m&&P(r,null,i,`beforeMount`),((v=d&&d.onVnodeMounted)||m||u)&&Sr(()=>{v&&$r(v,i,r),u&&g.enter(e),m&&P(r,null,i,`mounted`)},o)}return e.nextSibling},h=(e,t,n,r,a,c,l)=>{l||=!!t.dynamicChildren;let d=t.children,f=d.length;for(let t=0;t<f;t++){let m=l?d[t]:d[t]=Yr(d[t]),h=m.type===Er;e?(h&&!l&&t+1<f&&Yr(d[t+1]).type===Er&&(u(o(e.data.slice(m.children.length)),n,s(e)),e.data=m.children),e=p(e,m,r,a,c,l)):h&&!m.children?u(m.el=o(``),n):(Je(n,1)||q(),i(null,m,n,null,r,a,We(n),c))}return e},g=(e,t,n,r,i,a)=>{let{slotScopeIds:o}=t;o&&(i=i?i.concat(o):o);let l=c(e),f=h(s(e),t,l,n,r,i,a);return f&&J(f)&&f.data===`]`?s(t.anchor=f):(q(),u(t.anchor=d(`]`),l,f),f)},_=(e,t,n,r,a,o)=>{if(Je(e.parentElement,1)||q(),t.el=null,o){let t=v(e);for(;;){let n=s(e);if(n&&n!==t)l(n);else break}}let u=s(e),d=c(e);return l(e),i(null,t,d,u,n,r,We(d),a),n&&(n.vnode.el=t.el,Ln(n,t.el)),u},v=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=s(e),e&&J(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return s(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[f,p]}let Ke=`data-allow-mismatch`,qe={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Je(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ke);)e=e.parentElement;let n=e&&e.getAttribute(Ke);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(qe[t])}}let Ye=n.getGlobalThis().requestIdleCallback||(e=>setTimeout(e,1)),Xe=n.getGlobalThis().cancelIdleCallback||(e=>clearTimeout(e)),Ze=(e=1e4)=>t=>{let n=Ye(t,{timeout:e});return()=>Xe(n)};function Qe(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}let $e=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Qe(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},et=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},tt=(e=[])=>(t,r)=>{n.isString(e)&&(e=[e]);let i=!1,a=e=>{i||(i=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{r(t=>{for(let n of e)t.removeEventListener(n,a)})};return r(t=>{for(let n of e)t.addEventListener(n,a,{once:!0})}),o};function nt(e,t){if(J(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(J(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}let rt=e=>!!e.type.__asyncLoader;function it(e){n.isFunction(e)&&(e={loader:e});let{loader:r,loadingComponent:i,errorComponent:a,delay:o=200,hydrate:s,timeout:c,suspensible:l=!0,onError:d}=e,f=null,p,m=0,h=()=>(m++,f=null,g()),g=()=>{let e;return f||(e=f=r().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),d)return new Promise((t,n)=>{d(e,()=>t(h()),()=>n(e),m+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),p=t,t)))};return Ie({name:`AsyncComponentWrapper`,__asyncLoader:g,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},a=s?()=>{let n=s(i,t=>nt(e,t));n&&(t.bum||=[]).push(n)}:i;p?a():g().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return p},setup(){let e=ri;if(Le(e),p)return()=>at(p,e);let n=t=>{f=null,u(t,e,13,!a)};if(l&&e.suspense||ui)return g().then(t=>()=>at(t,e)).catch(e=>(n(e),()=>a?$(a,{error:e}):null));let r=t.ref(!1),s=t.ref(),d=t.ref(!!o);return o&&setTimeout(()=>{d.value=!1},o),c!=null&&setTimeout(()=>{if(!r.value&&!s.value){let e=Error(`Async component timed out after ${c}ms.`);n(e),s.value=e}},c),g().then(()=>{r.value=!0,e.parent&&ot(e.parent.vnode)&&e.parent.update()}).catch(e=>{n(e),s.value=e}),()=>{if(r.value&&p)return at(p,e);if(s.value&&a)return $(a,{error:s.value});if(i&&!d.value)return at(i,e)}}})}function at(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=$(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}let ot=e=>e.type.__isKeepAlive,st={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let r=ii(),i=r.ctx;if(!i.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let a=new Map,o=new Set,s=null,c=r.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=i,p=f(`div`);i.activate=(e,t,r,i,a)=>{let o=e.component;u(e,t,r,0,c),l(o.vnode,e,t,r,o,c,i,e.slotScopeIds,a),X(()=>{o.isDeactivated=!1,o.a&&n.invokeArrayFns(o.a);let t=e.props&&e.props.onVnodeMounted;t&&$r(t,o.parent,e)},c)},i.deactivate=e=>{let t=e.component;ur(t.m),ur(t.a),u(e,p,null,1,c),X(()=>{t.da&&n.invokeArrayFns(t.da);let r=e.props&&e.props.onVnodeUnmounted;r&&$r(r,t.parent,e),t.isDeactivated=!0},c)};function m(e){pt(e),d(e,r,c,!0)}function h(e){a.forEach((t,n)=>{let r=Si(rt(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&g(n)})}function g(e){let t=a.get(e);t&&(!s||!Rr(t,s))?m(t):s&&pt(s),a.delete(e),o.delete(e)}R(()=>[e.include,e.exclude],([e,t])=>{e&&h(t=>ct(e,t)),t&&h(e=>!ct(t,e))},{flush:`post`,deep:!0});let _=null,v=()=>{_!=null&&(fr(r.subTree.type)?X(()=>{a.set(_,mt(r.subTree))},r.subTree.suspense):a.set(_,mt(r.subTree)))};return vt(v),bt(v),xt(()=>{a.forEach(e=>{let{subTree:t,suspense:n}=r,i=mt(t);if(e.type===i.type&&e.key===i.key){pt(i);let e=i.component.da;e&&X(e,n);return}m(e)})}),()=>{if(_=null,!t.default)return s=null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!Lr(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return s=null,r;let i=mt(r);if(i.type===Q)return s=null,i;let c=i.type,l=Si(rt(i)?i.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ct(u,l))||d&&l&&ct(d,l))return i.shapeFlag&=-257,s=i,r;let p=i.key==null?c:i.key,m=a.get(p);return i.el&&(i=Gr(i),r.shapeFlag&128&&(r.ssContent=i)),_=p,m?(i.el=m.el,i.component=m.component,i.transition&&Pe(i,i.transition),i.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),f&&o.size>parseInt(f,10)&&g(o.values().next().value)),i.shapeFlag|=256,s=i,fr(r.type)?r:i}}};function ct(e,t){return n.isArray(e)?e.some(e=>ct(e,t)):n.isString(e)?e.split(`,`).includes(t):n.isRegExp(e)?(e.lastIndex=0,e.test(t)):!1}function lt(e,t){dt(e,`a`,t)}function ut(e,t){dt(e,`da`,t)}function dt(e,t,n=ri){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ht(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ot(e.parent.vnode)&&ft(r,t,n,e),e=e.parent}}function ft(e,t,r,i){let a=ht(t,e,i,!0);St(()=>{n.remove(i[t],a)},r)}function pt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function ht(e,n,r=ri,i=!1){if(r){let a=r[e]||(r[e]=[]),o=n.__weh||=(...i)=>{t.pauseTracking();let a=si(r),o=l(n,r,e,i);return a(),t.resetTracking(),o};return i?a.unshift(o):a.push(o),o}}let gt=e=>(t,n=ri)=>{(!ui||e===`sp`)&&ht(e,(...e)=>t(...e),n)},_t=gt(`bm`),vt=gt(`m`),yt=gt(`bu`),bt=gt(`u`),xt=gt(`bum`),St=gt(`um`),Ct=gt(`sp`),wt=gt(`rtg`),Tt=gt(`rtc`);function Et(e,t=ri){ht(`ec`,e,t)}let Dt=`components`;function Ot(e,t){return jt(Dt,e,!0,t)||e}let kt=Symbol.for(`v-ndc`);function At(e){return n.isString(e)?jt(Dt,e,!1)||e:e||kt}function Y(e){return jt(`directives`,e)}function jt(e,t,r=!0,i=!1){let a=O||ri;if(a){let r=a.type;if(e===Dt){let e=Si(r,!1);if(e&&(e===t||e===n.camelize(t)||e===n.capitalize(n.camelize(t))))return r}let o=Mt(a[e]||r[e],t)||Mt(a.appContext[e],t);return!o&&i?r:o}}function Mt(e,t){return e&&(e[t]||e[n.camelize(t)]||e[n.capitalize(n.camelize(t))])}function Nt(e,r,i,a){let o,s=i&&i[a],c=n.isArray(e);if(c||n.isString(e)){let n=c&&t.isReactive(e),i=!1,a=!1;n&&(i=!t.isShallow(e),a=t.isReadonly(e),e=t.shallowReadArray(e)),o=Array(e.length);for(let n=0,c=e.length;n<c;n++)o[n]=r(i?a?t.toReadonly(t.toReactive(e[n])):t.toReactive(e[n]):e[n],n,void 0,s&&s[n])}else if(typeof e==`number`){o=Array(e);for(let t=0;t<e;t++)o[t]=r(t+1,t,void 0,s&&s[t])}else if(n.isObject(e))if(e[Symbol.iterator])o=Array.from(e,(e,t)=>r(e,t,void 0,s&&s[t]));else{let t=Object.keys(e);o=Array(t.length);for(let n=0,i=t.length;n<i;n++){let i=t[n];o[n]=r(e[i],i,n,s&&s[n])}}else o=[];return i&&(i[a]=o),o}function Pt(e,t){for(let r=0;r<t.length;r++){let i=t[r];if(n.isArray(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{let t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function Ft(e,t,r={},i,a){if(O.ce||O.parent&&rt(O.parent)&&O.parent.ce){let e=Object.keys(r).length>0;return t!=="default"&&(r.name=t),Ar(),Ir(Tr,null,[$(`slot`,r,i&&i())],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),Ar();let s=o&&It(o(r)),c=r.key||s&&s.key,l=Ir(Tr,{key:(c&&!n.isSymbol(c)?c:`_${t}`)+(!s&&i?`_fb`:``)},s||(i?i():[]),s&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),o&&o._c&&(o._d=!0),l}function It(e){return e.some(e=>Lr(e)?!(e.type===Q||e.type===Tr&&!It(e.children)):!0)?e:null}function Lt(e,t){let r={};for(let i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:n.toHandlerKey(i)]=e[i];return r}let Rt=e=>e?li(e)?xi(e):Rt(e.parent):null,zt=n.extend(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=>Rt(e.parent),$root:e=>Rt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>un(e),$forceUpdate:e=>e.f||=()=>{x(e.update)},$nextTick:e=>e.n||=y.bind(e.proxy),$watch:e=>ce.bind(e)}),Bt=(e,t)=>e!==n.EMPTY_OBJ&&!e.__isScriptSetup&&n.hasOwn(e,t),Vt={get({_:e},r){if(r===`__v_skip`)return!0;let{ctx:i,setupState:a,data:o,props:s,accessCache:c,type:l,appContext:u}=e;if(r[0]!==`$`){let e=c[r];if(e!==void 0)switch(e){case 1:return a[r];case 2:return o[r];case 4:return i[r];case 3:return s[r]}else if(Bt(a,r))return c[r]=1,a[r];else if(o!==n.EMPTY_OBJ&&n.hasOwn(o,r))return c[r]=2,o[r];else if(n.hasOwn(s,r))return c[r]=3,s[r];else if(i!==n.EMPTY_OBJ&&n.hasOwn(i,r))return c[r]=4,i[r];else an&&(c[r]=0)}let d=zt[r],f,p;if(d)return r===`$attrs`&&t.track(e.attrs,`get`,``),d(e);if((f=l.__cssModules)&&(f=f[r]))return f;if(i!==n.EMPTY_OBJ&&n.hasOwn(i,r))return c[r]=4,i[r];if(p=u.config.globalProperties,n.hasOwn(p,r))return p[r]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Bt(a,t)?(a[t]=r,!0):i!==n.EMPTY_OBJ&&n.hasOwn(i,t)?(i[t]=r,!0):n.hasOwn(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n.EMPTY_OBJ&&c[0]!==`$`&&n.hasOwn(e,c)||Bt(t,c)||n.hasOwn(o,c)||n.hasOwn(i,c)||n.hasOwn(zt,c)||n.hasOwn(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,r){return r.get==null?n.hasOwn(r,`value`)&&this.set(e,t,r.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,r)}},Ht=n.extend({},Vt,{get(e,t){if(t!==Symbol.unscopables)return Vt.get(e,t,e)},has(e,t){return t[0]!==`_`&&!n.isGloballyAllowed(t)}});function Ut(){return null}function Wt(){return null}function Gt(e){}function Kt(e){}function qt(){return null}function Jt(){}function Yt(e,t){return null}function Xt(){return Qt().slots}function Zt(){return Qt().attrs}function Qt(e){let t=ii();return t.setupContext||=bi(t)}function $t(e){return n.isArray(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function en(e,t){let r=$t(e);for(let e in t){if(e.startsWith(`__skip`))continue;let i=r[e];i?n.isArray(i)||n.isFunction(i)?i=r[e]={type:i,default:t[e]}:i.default=t[e]:i===null&&(i=r[e]={default:t[e]}),i&&t[`__skip_${e}`]&&(i.skipFactory=!0)}return r}function tn(e,t){return!e||!t?e||t:n.isArray(e)&&n.isArray(t)?e.concat(t):n.extend({},$t(e),$t(t))}function nn(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function rn(e){let t=ii(),r=ui,i=e();ci(),r&&oi(!1);let a=()=>{si(t),r&&oi(!0)},o=()=>{ii()!==t&&t.scope.off(),ci(),r&&oi(!1)};return n.isPromise(i)&&(i=i.catch(e=>{throw a(),Promise.resolve().then(()=>Promise.resolve().then(o)),e})),[i,()=>{a(),Promise.resolve().then(o)}]}let an=!0;function on(e){let r=un(e),i=e.proxy,a=e.ctx;an=!1,r.beforeCreate&&cn(r.beforeCreate,e,`bc`);let{data:o,computed:s,methods:c,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:v,beforeDestroy:y,beforeUnmount:b,destroyed:x,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:E,serverPrefetch:D,expose:O,inheritAttrs:k,components:A,directives:j,filters:ee}=r;if(d&&sn(d,a,null),c)for(let e in c){let t=c[e];n.isFunction(t)&&(a[e]=t.bind(i))}if(o){let r=o.call(i,i);n.isObject(r)&&(e.data=t.reactive(r))}if(an=!0,s)for(let e in s){let t=s[e],r=wi({get:n.isFunction(t)?t.bind(i,i):n.isFunction(t.get)?t.get.bind(i,i):n.NOOP,set:!n.isFunction(t)&&n.isFunction(t.set)?t.set.bind(i):n.NOOP});Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(l)for(let e in l)ln(l[e],a,i,e);if(u){let e=n.isFunction(u)?u.call(i):u;Reflect.ownKeys(e).forEach(t=>{F(t,e[t])})}f&&cn(f,e,`c`);function M(e,t){n.isArray(t)?t.forEach(t=>e(t.bind(i))):t&&e(t.bind(i))}if(M(_t,p),M(vt,m),M(yt,h),M(bt,g),M(lt,_),M(ut,v),M(Et,E),M(Tt,w),M(wt,T),M(xt,b),M(St,S),M(Ct,D),n.isArray(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===n.NOOP&&(e.render=C),k!=null&&(e.inheritAttrs=k),A&&(e.components=A),j&&(e.directives=j),D&&Le(e)}function sn(e,r,i=n.NOOP){n.isArray(e)&&(e=hn(e));for(let i in e){let a=e[i],o;o=n.isObject(a)?`default`in a?ne(a.from||i,a.default,!0):ne(a.from||i):ne(a),t.isRef(o)?Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):r[i]=o}}function cn(e,t,r){l(n.isArray(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,r)}function ln(e,t,r,i){let a=i.includes(`.`)?z(r,i):()=>r[i];if(n.isString(e)){let r=t[e];n.isFunction(r)&&R(a,r)}else if(n.isFunction(e))R(a,e.bind(r));else if(n.isObject(e))if(n.isArray(e))e.forEach(e=>ln(e,t,r,i));else{let i=n.isFunction(e.handler)?e.handler.bind(r):t[e.handler];n.isFunction(i)&&R(a,i,e)}}function un(e){let t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,c=o.get(t),l;return c?l=c:!a.length&&!r&&!i?l=t:(l={},a.length&&a.forEach(e=>dn(l,e,s,!0)),dn(l,t,s)),n.isObject(t)&&o.set(t,l),l}function dn(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&dn(e,a,n,!0),i&&i.forEach(t=>dn(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=fn[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}let fn={data:pn,props:vn,emits:vn,methods:_n,computed:_n,beforeCreate:gn,created:gn,beforeMount:gn,mounted:gn,beforeUpdate:gn,updated:gn,beforeDestroy:gn,beforeUnmount:gn,destroyed:gn,unmounted:gn,activated:gn,deactivated:gn,errorCaptured:gn,serverPrefetch:gn,components:_n,directives:_n,watch:yn,provide:pn,inject:mn};function pn(e,t){return t?e?function(){return n.extend(n.isFunction(e)?e.call(this,this):e,n.isFunction(t)?t.call(this,this):t)}:t:e}function mn(e,t){return _n(hn(e),hn(t))}function hn(e){if(n.isArray(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gn(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?n.extend(Object.create(null),e,t):t}function vn(e,t){return e?n.isArray(e)&&n.isArray(t)?[...new Set([...e,...t])]:n.extend(Object.create(null),$t(e),$t(t??{})):t}function yn(e,t){if(!e)return t;if(!t)return e;let r=n.extend(Object.create(null),e);for(let n in t)r[n]=gn(e[n],t[n]);return r}function bn(){return{app:null,config:{isNativeTag:n.NO,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 xn=0;function Sn(e,t){return function(r,i=null){n.isFunction(r)||(r=n.extend({},r)),i!=null&&!n.isObject(i)&&(i=null);let a=bn(),o=new WeakSet,s=[],c=!1,u=a.app={_uid:xn++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:ki,get config(){return a.config},set config(e){},use(e,...t){return o.has(e)||(e&&n.isFunction(e.install)?(o.add(e),e.install(u,...t)):n.isFunction(e)&&(o.add(e),e(u,...t))),u},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),u},component(e,t){return t?(a.components[e]=t,u):a.components[e]},directive(e,t){return t?(a.directives[e]=t,u):a.directives[e]},mount(n,o,s){if(!c){let l=u._ceVNode||$(r,i);return l.appContext=a,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(l,n):e(l,n,s),c=!0,u._container=n,n.__vue_app__=u,xi(l.component)}},onUnmount(e){s.push(e)},unmount(){c&&(l(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return a.provides[e]=t,u},runWithContext(e){let t=Cn;Cn=u;try{return e()}finally{Cn=t}}};return u}}let Cn=null;function wn(e,r,i=n.EMPTY_OBJ){let a=ii(),o=n.camelize(r),s=n.hyphenate(r),c=Tn(e,o),l=t.customRef((t,c)=>{let l,u=n.EMPTY_OBJ,d;return oe(()=>{let t=e[o];n.hasChanged(l,t)&&(l=t,c())}),{get(){return t(),i.get?i.get(l):l},set(e){let t=i.set?i.set(e):e;if(!n.hasChanged(t,l)&&!(u!==n.EMPTY_OBJ&&n.hasChanged(e,u)))return;let f=a.vnode.props;f&&(r in f||o in f||s in f)&&(`onUpdate:${r}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f)||(l=e,c()),a.emit(`update:${r}`,t),n.hasChanged(e,t)&&n.hasChanged(e,u)&&!n.hasChanged(t,d)&&c(),u=e,d=t}}});return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?c||n.EMPTY_OBJ:l,done:!1}:{done:!0}}}},l}let Tn=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${n.camelize(t)}Modifiers`]||e[`${n.hyphenate(t)}Modifiers`];function En(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n.EMPTY_OBJ,a=r,o=t.startsWith(`update:`),s=o&&Tn(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>n.isString(e)?e.trim():e)),s.number&&(a=r.map(n.looseToNumber)));let c,u=i[c=n.toHandlerKey(t)]||i[c=n.toHandlerKey(n.camelize(t))];!u&&o&&(u=i[c=n.toHandlerKey(n.hyphenate(t))]),u&&l(u,e,6,a);let d=i[c+`Once`];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,l(d,e,6,a)}}let Dn=new WeakMap;function On(e,t,r=!1){let i=r?Dn:t.emitsCache,a=i.get(e);if(a!==void 0)return a;let o=e.emits,s={},c=!1;if(!n.isFunction(e)){let i=e=>{let r=On(e,t,!0);r&&(c=!0,n.extend(s,r))};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!o&&!c?(n.isObject(e)&&i.set(e,null),null):(n.isArray(o)?o.forEach(e=>s[e]=null):n.extend(s,o),n.isObject(e)&&i.set(e,s),s)}function kn(e,t){return!e||!n.isOn(t)?!1:(t=t.slice(2).replace(/Once$/,``),n.hasOwn(e,t[0].toLowerCase()+t.slice(1))||n.hasOwn(e,n.hyphenate(t))||n.hasOwn(e,t))}function An(e){let{type:t,vnode:r,proxy:i,withProxy:a,propsOptions:[o],slots:s,attrs:c,emit:l,render:d,renderCache:f,props:p,data:m,setupState:h,ctx:g,inheritAttrs:_}=e,v=A(e),y,b;try{if(r.shapeFlag&4){let e=a||i,t=e;y=Yr(d.call(t,e,f,p,h,m,g)),b=c}else{let e=t;y=Yr(e.length>1?e(p,{attrs:c,slots:s,emit:l}):e(p,null)),b=t.props?c:Mn(c)}}catch(t){Or.length=0,u(t,e,1),y=$(Q)}let x=y;if(b&&_!==!1){let e=Object.keys(b),{shapeFlag:t}=x;e.length&&t&7&&(o&&e.some(n.isModelListener)&&(b=Nn(b,o)),x=Gr(x,b,!1,!0))}return r.dirs&&(x=Gr(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(r.dirs):r.dirs),r.transition&&Pe(x,r.transition),y=x,A(v),y}function jn(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Lr(r)){if(r.type!==Q||r.children===`v-if`){if(n)return;n=r}}else return}return n}let Mn=e=>{let t;for(let r in e)(r===`class`||r===`style`||n.isOn(r))&&((t||={})[r]=e[r]);return t},Nn=(e,t)=>{let r={};for(let i in e)(!n.isModelListener(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Pn(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Fn(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(In(o,r,n)&&!kn(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Fn(r,o,l):!0:!!o;return!1}function Fn(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(In(t,e,a)&&!kn(n,a))return!0}return!1}function In(e,t,r){let i=e[r],a=t[r];return r===`style`&&n.isObject(i)&&n.isObject(a)?!n.looseEqual(i,a):i!==a}function Ln({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}let Rn={},zn=()=>Object.create(Rn),Bn=e=>Object.getPrototypeOf(e)===Rn;function Vn(e,n,r,i=!1){let a={},o=zn();e.propsDefaults=Object.create(null),Un(e,n,a,o);for(let t in e.propsOptions[0])t in a||(a[t]=void 0);r?e.props=i?a:t.shallowReactive(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Hn(e,r,i,a){let{props:o,attrs:s,vnode:{patchFlag:c}}=e,l=t.toRaw(o),[u]=e.propsOptions,d=!1;if((a||c>0)&&!(c&16)){if(c&8){let t=e.vnode.dynamicProps;for(let i=0;i<t.length;i++){let a=t[i];if(kn(e.emitsOptions,a))continue;let c=r[a];if(u)if(n.hasOwn(s,a))c!==s[a]&&(s[a]=c,d=!0);else{let t=n.camelize(a);o[t]=Wn(u,l,t,c,e,!1)}else c!==s[a]&&(s[a]=c,d=!0)}}}else{Un(e,r,o,s)&&(d=!0);let t;for(let a in l)(!r||!n.hasOwn(r,a)&&((t=n.hyphenate(a))===a||!n.hasOwn(r,t)))&&(u?i&&(i[a]!==void 0||i[t]!==void 0)&&(o[a]=Wn(u,l,a,void 0,e,!0)):delete o[a]);if(s!==l)for(let e in s)(!r||!n.hasOwn(r,e))&&(delete s[e],d=!0)}d&&t.trigger(e.attrs,`set`,``)}function Un(e,r,i,a){let[o,s]=e.propsOptions,c=!1,l;if(r)for(let t in r){if(n.isReservedProp(t))continue;let u=r[t],d;o&&n.hasOwn(o,d=n.camelize(t))?!s||!s.includes(d)?i[d]=u:(l||={})[d]=u:kn(e.emitsOptions,t)||(!(t in a)||u!==a[t])&&(a[t]=u,c=!0)}if(s){let r=t.toRaw(i),a=l||n.EMPTY_OBJ;for(let t=0;t<s.length;t++){let c=s[t];i[c]=Wn(o,r,c,a[c],e,!n.hasOwn(a,c))}}return c}function Wn(e,t,r,i,a,o){let s=e[r];if(s!=null){let e=n.hasOwn(s,`default`);if(e&&i===void 0){let e=s.default;if(s.type!==Function&&!s.skipFactory&&n.isFunction(e)){let{propsDefaults:n}=a;if(r in n)i=n[r];else{let o=si(a);i=n[r]=e.call(null,t),o()}}else i=e;a.ce&&a.ce._setProp(r,i)}s[0]&&(o&&!e?i=!1:s[1]&&(i===``||i===n.hyphenate(r))&&(i=!0))}return i}let Gn=new WeakMap;function Kn(e,t,r=!1){let i=r?Gn:t.propsCache,a=i.get(e);if(a)return a;let o=e.props,s={},c=[],l=!1;if(!n.isFunction(e)){let i=e=>{l=!0;let[r,i]=Kn(e,t,!0);n.extend(s,r),i&&c.push(...i)};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!l)return n.isObject(e)&&i.set(e,n.EMPTY_ARR),n.EMPTY_ARR;if(n.isArray(o))for(let e=0;e<o.length;e++){let t=n.camelize(o[e]);qn(t)&&(s[t]=n.EMPTY_OBJ)}else if(o)for(let e in o){let t=n.camelize(e);if(qn(t)){let r=o[e],i=s[t]=n.isArray(r)||n.isFunction(r)?{type:r}:n.extend({},r),a=i.type,l=!1,u=!0;if(n.isArray(a))for(let e=0;e<a.length;++e){let t=a[e],r=n.isFunction(t)&&t.name;if(r===`Boolean`){l=!0;break}else r===`String`&&(u=!1)}else l=n.isFunction(a)&&a.name===`Boolean`;i[0]=l,i[1]=u,(l||n.hasOwn(i,`default`))&&c.push(t)}}let u=[s,c];return n.isObject(e)&&i.set(e,u),u}function qn(e){return e[0]!==`$`&&!n.isReservedProp(e)}let Jn=e=>e===`_`||e===`_ctx`||e===`$stable`,Yn=e=>n.isArray(e)?e.map(Yr):[Yr(e)],Xn=(e,t,n)=>{if(t._n)return t;let r=te((...e)=>Yn(t(...e)),n);return r._c=!1,r},Zn=(e,t,r)=>{let i=e._ctx;for(let r in e){if(Jn(r))continue;let a=e[r];if(n.isFunction(a))t[r]=Xn(r,a,i);else if(a!=null){let e=Yn(a);t[r]=()=>e}}},Qn=(e,t)=>{let n=Yn(t);e.slots.default=()=>n},$n=(e,t,n)=>{for(let r in t)(n||!Jn(r))&&(e[r]=t[r])},er=(e,t,r)=>{let i=e.slots=zn();if(e.vnode.shapeFlag&32){let e=t._;e?($n(i,t,r),r&&n.def(i,`_`,e,!0)):Zn(t,i)}else t&&Qn(e,t)},tr=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n.EMPTY_OBJ;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:$n(a,t,r):(o=!t.$stable,Zn(t,a)),s=t}else t&&(Qn(e,t),s={default:1});if(o)for(let e in a)!Jn(e)&&s[e]==null&&delete a[e]},X=Sr;function nr(e){return rr(e)}function Z(e){return rr(e,Ge)}function rr(e,r){let i=n.getGlobalThis();i.__VUE__=!0;let{insert:a,remove:o,patchProp:s,createElement:c,createText:l,createComment:u,setText:d,setElementText:f,parentNode:p,nextSibling:m,setScopeId:h=n.NOOP,insertStaticContent:g}=e,_=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rr(e,t)&&(r=B(e),oe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Er:v(e,t,n,r);break;case Q:y(e,t,n,r);break;case Dr:e??b(t,n,r,o);break;case Tr:M(e,t,n,r,i,a,o,s,c);break;default:d&1?E(e,t,n,r,i,a,o,s,c):d&6?te(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,de)}u!=null&&i?G(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&G(e.ref,null,a,e,!0)},v=(e,t,n,r)=>{if(e==null)a(t.el=l(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},y=(e,t,n,r)=>{e==null?a(t.el=u(t.children||``),n,r):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=m(e),a(e,n,r),e=i;a(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)},E=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)D(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),A(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},D=(e,t,r,i,o,l,u,d)=>{let p,m,{props:h,shapeFlag:g,transition:_,dirs:v}=e;if(p=e.el=c(e.type,l,h&&h.is,h),g&8?f(p,e.children):g&16&&k(e.children,p,null,i,o,ir(e,l),u,d),v&&P(e,null,i,`created`),O(p,e,e.scopeId,u,i),h){for(let e in h)e!==`value`&&!n.isReservedProp(e)&&s(p,e,null,h[e],l,i);`value`in h&&s(p,`value`,null,h.value,l),(m=h.onVnodeBeforeMount)&&$r(m,i,e)}v&&P(e,null,i,`beforeMount`);let y=or(o,_);y&&_.beforeEnter(p),a(p,t,r),((m=h&&h.onVnodeMounted)||y||v)&&X(()=>{try{m&&$r(m,i,e),y&&_.enter(p),v&&P(e,null,i,`mounted`)}finally{}},o)},O=(e,t,n,r,i)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(i){let n=i.subTree;if(t===n||fr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;O(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},k=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)_(null,e[l]=s?Xr(e[l]):Yr(e[l]),t,n,r,i,a,o,s)},A=(e,t,r,i,a,o,c)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=e.patchFlag&16;let m=e.props||n.EMPTY_OBJ,h=t.props||n.EMPTY_OBJ,g;if(r&&ar(r,!1),(g=h.onVnodeBeforeUpdate)&&$r(g,r,t,e),p&&P(t,e,r,`beforeUpdate`),r&&ar(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&f(l,``),d?j(e.dynamicChildren,d,l,r,i,ir(t,a),o):c||L(e,t,l,null,r,i,ir(t,a),o,!1),u>0){if(u&16)ee(l,m,h,r,a);else if(u&2&&m.class!==h.class&&s(l,`class`,null,h.class,a),u&4&&s(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&s(l,n,i,o,a,r)}}u&1&&e.children!==t.children&&f(l,t.children)}else !c&&d==null&&ee(l,m,h,r,a);((g=h.onVnodeUpdated)||p)&&X(()=>{g&&$r(g,r,t,e),p&&P(t,e,r,`updated`)},i)},j=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];_(c,l,c.el&&(c.type===Tr||!Rr(c,l)||c.shapeFlag&198)?p(c.el):n,null,r,i,a,o,!0)}},ee=(e,t,r,i,a)=>{if(t!==r){if(t!==n.EMPTY_OBJ)for(let o in t)!n.isReservedProp(o)&&!(o in r)&&s(e,o,t[o],null,a,i);for(let o in r){if(n.isReservedProp(o))continue;let c=r[o],l=t[o];c!==l&&o!==`value`&&s(e,o,l,c,a,i)}`value`in r&&s(e,`value`,t.value,r.value,a)}},M=(e,t,n,r,i,o,s,c,u)=>{let d=t.el=e?e.el:l(``),f=t.anchor=e?e.anchor:l(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(a(d,n,r),a(f,n,r),k(t.children||[],n,f,i,o,s,c,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(j(e.dynamicChildren,m,n,i,o,s,c),(t.key!=null||i&&t===i.subTree)&&sr(e,t,!0)):L(e,t,n,f,i,o,s,c,u)},te=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):N(t,n,r,i,a,o,c):F(e,t,c)},N=(e,t,n,r,i,a,o)=>{let s=e.component=ni(e,r,i);if(ot(e)&&(s.ctx.renderer=de),di(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ne,o),!e.el){let r=s.subTree=$(Q);y(null,r,t,n),e.placeholder=r.el}}else ne(s,e,t,n,i,a,o)},F=(e,t,n)=>{let r=t.component=e.component;if(Pn(e,t,n))if(r.asyncDep&&!r.asyncResolved){I(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ne=(e,r,i,a,o,s,c)=>{let l=()=>{if(e.isMounted){let{next:t,bu:r,u:i,parent:a,vnode:l}=e;{let n=lr(e);if(n){t&&(t.el=l.el,I(e,t,c)),n.asyncDep.then(()=>{X(()=>{e.isUnmounted||d()},o)});return}}let u=t,f;ar(e,!1),t?(t.el=l.el,I(e,t,c)):t=l,r&&n.invokeArrayFns(r),(f=t.props&&t.props.onVnodeBeforeUpdate)&&$r(f,a,t,l),ar(e,!0);let m=An(e),h=e.subTree;e.subTree=m,_(h,m,p(h.el),B(h),e,o,s),t.el=m.el,u===null&&Ln(e,m.el),i&&X(i,o),(f=t.props&&t.props.onVnodeUpdated)&&X(()=>$r(f,a,t,l),o)}else{let t,{el:c,props:l}=r,{bm:u,m:d,parent:f,root:p,type:m}=e,h=rt(r);if(ar(e,!1),u&&n.invokeArrayFns(u),!h&&(t=l&&l.onVnodeBeforeMount)&&$r(t,f,r),ar(e,!0),c&&pe){let t=()=>{e.subTree=An(e),pe(c,e.subTree,e,o,null)};h&&m.__asyncHydrate?m.__asyncHydrate(c,e,t):t()}else{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(m,e.parent?e.parent.type:void 0);let t=e.subTree=An(e);_(null,t,i,a,e,o,s),r.el=t.el}if(d&&X(d,o),!h&&(t=l&&l.onVnodeMounted)){let e=r;X(()=>$r(t,f,e),o)}(r.shapeFlag&256||f&&rt(f.vnode)&&f.vnode.shapeFlag&256)&&e.a&&X(e.a,o),e.isMounted=!0,r=i=a=null}};e.scope.on();let u=e.effect=new t.ReactiveEffect(l);e.scope.off();let d=e.update=u.run.bind(u),f=e.job=u.runIfDirty.bind(u);f.i=e,f.id=e.uid,u.scheduler=()=>x(f),ar(e,!0),d()},I=(e,n,r)=>{n.component=e;let i=e.vnode.props;e.vnode=n,e.next=null,Hn(e,n.props,i,r),tr(e,n.children,r),t.pauseTracking(),w(e),t.resetTracking()},L=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ie(l,d,n,r,i,a,o,s,c);return}else if(p&256){re(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&z(l,i,a),d!==l&&f(n,d)):u&16?m&16?ie(l,d,n,r,i,a,o,s,c):z(l,i,a,!0):(u&8&&f(n,``),m&16&&k(d,n,r,i,a,o,s,c))},re=(e,t,r,i,a,o,s,c,l)=>{e||=n.EMPTY_ARR,t||=n.EMPTY_ARR;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?Xr(t[p]):Yr(t[p]);_(e[p],n,r,null,a,o,s,c,l)}u>d?z(e,a,o,!0,!1,f):k(t,r,i,a,o,s,c,l,f)},ie=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Xr(t[u]):Yr(t[u]);if(Rr(n,i))_(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Xr(t[p]):Yr(t[p]);if(Rr(n,i))_(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)_(null,t[u]=l?Xr(t[u]):Yr(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)oe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Xr(t[u]):Yr(t[u]);e.key!=null&&g.set(e.key,u)}let v,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){oe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(v=h;v<=p;v++)if(C[v-h]===0&&Rr(n,t[v])){i=v;break}i===void 0?oe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,_(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?cr(C):n.EMPTY_ARR;for(v=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||dr(f):i;C[u]===0?_(null,n,r,p,a,o,s,c,l):x&&(v<0||u!==w[v]?ae(n,r,p,2):v--)}}},ae=(e,t,n,r,i=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ae(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,de);return}if(c===Tr){a(s,t,n);for(let e=0;e<u.length;e++)ae(u[e],t,n,r);a(e.anchor,t,n);return}if(c===Dr){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(s),a(s,t,n),X(()=>l.enter(s),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?o(s):a(s,t,n)},d=()=>{s._isLeaving&&s[H](!0),r(s,()=>{u(),c&&c()})};i?i(s,u,d):d()}else a(s,t,n)},oe=(e,n,r,i=!1,a=!1)=>{let{type:o,props:s,ref:c,children:l,dynamicChildren:u,shapeFlag:d,patchFlag:f,dirs:p,cacheIndex:m,memo:h}=e;if(f===-2&&(a=!1),c!=null&&(t.pauseTracking(),G(c,null,r,e,!0),t.resetTracking()),m!=null&&(n.renderCache[m]=void 0),d&256){n.ctx.deactivate(e);return}let g=d&1&&p,_=!rt(e),v;if(_&&(v=s&&s.onVnodeBeforeUnmount)&&$r(v,n,e),d&6)ce(e.component,r,i);else{if(d&128){e.suspense.unmount(r,i);return}g&&P(e,null,n,`beforeUnmount`),d&64?e.type.remove(e,n,r,de,i):u&&!u.hasOnce&&(o!==Tr||f>0&&f&64)?z(u,n,r,!1,!0):(o===Tr&&f&384||!a&&d&16)&&z(l,n,r),i&&R(e)}let y=h!=null&&m==null;(_&&(v=s&&s.onVnodeUnmounted)||g||y)&&X(()=>{v&&$r(v,n,e),g&&P(e,null,n,`unmounted`),y&&(e.el=null)},r)},R=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===Tr){se(n,r);return}if(t===Dr){C(e);return}let a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},se=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},ce=(e,t,r)=>{let{bum:i,scope:a,job:o,subTree:s,um:c,m:l,a:u}=e;ur(l),ur(u),i&&n.invokeArrayFns(i),a.stop(),o&&(o.flags|=8,oe(s,e,t,r)),c&&X(c,t),X(()=>{e.isUnmounted=!0},t)},z=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)oe(e[o],t,n,r,i)},B=e=>{if(e.shapeFlag&6)return B(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=m(e.anchor||e.el),n=t&&t[le];return n?m(n):t},ue=!1,V=(e,t,n)=>{let r;e==null?t._vnode&&(oe(t._vnode,null,null,!0),r=t._vnode.component):_(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ue||=(ue=!0,w(r),T(),!1)},de={p:_,um:oe,m:ae,r:R,mt:N,mc:k,pc:L,pbc:j,n:B,o:e},fe,pe;return r&&([fe,pe]=r(de)),{render:V,hydrate:fe,createApp:Sn(V,fe)}}function ir({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 ar({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function or(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sr(e,t,r=!1){let i=e.children,a=t.children;if(n.isArray(i)&&n.isArray(a))for(let e=0;e<i.length;e++){let t=i[e],n=a[e];n.shapeFlag&1&&!n.dynamicChildren&&((n.patchFlag<=0||n.patchFlag===32)&&(n=a[e]=Xr(a[e]),n.el=t.el),!r&&n.patchFlag!==-2&&sr(t,n)),n.type===Er&&(n.patchFlag===-1&&(n=a[e]=Xr(n)),n.el=t.el),n.type===Q&&!n.el&&(n.el=t.el)}}function cr(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function lr(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lr(t)}function ur(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?dr(t.subTree):null}let fr=e=>e.__isSuspense,pr=0,mr={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)gr(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}_r(e,t,n,r,i,o,s,c,l)}},hydrate:yr,normalize:br};function hr(e,t){let r=e.props&&e.props[t];n.isFunction(r)&&r()}function gr(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=vr(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(hr(e,`onPending`),hr(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Cr(f,e.ssFallback)):f.resolve(!1,!0)}function _r(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Rr(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Cr(d,p)))):(d.pendingId=pr++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Cr(d,p))):m&&Rr(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Rr(m,f))c(m,f,n,r,i,d,a,o,s),Cr(d,f);else if(hr(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=pr++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function vr(e,t,r,i,a,o,s,c,l,d,f=!1){let{p,m,um:h,n:g,o:{parentNode:_,remove:v}}=d,y,b=wr(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);let x=e.props?n.toNumber(e.props.timeout):void 0,S=o,w={vnode:e,parent:t,parentComponent:r,namespace:s,container:i,hiddenContainer:a,deps:0,pendingId:pr++,timeout:typeof x==`number`?x:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:a,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=w,f=!1;if(w.isHydrating)w.isHydrating=!1;else if(!e){f=i&&a.transition&&a.transition.mode===`out-in`;let e=!1;f&&(i.transition.afterLeave=()=>{s===w.pendingId&&(m(a,u,o===S&&!e?g(i):o,0),C(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!w.isFallbackMountPending&&(_(i.el)===u&&(o=g(i),e=!0),h(i,l,w,!0),!f&&d&&r.ssFallback&&X(()=>r.ssFallback.el=null,w)),f||m(a,u,o,0)}w.isFallbackMountPending=!1,Cr(w,a),w.pendingBranch=null,w.isInFallback=!1;let p=w.parent,v=!1;for(;p;){if(p.pendingBranch){p.effects.push(...c),v=!0;break}p=p.parent}!v&&!f&&C(c),w.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),hr(r,`onResolve`)},fallback(e){if(!w.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=w;hr(t,`onFallback`);let o=g(n),s=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(p(null,e,i,o,r,null,a,c,l),Cr(w,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(w.isFallbackMountPending=!0,n.transition.afterLeave=s),w.isInFallback=!0,h(n,r,null,!0),u||s()},move(e,t,n){w.activeBranch&&m(w.activeBranch,e,t,n),w.container=e},next(){return w.activeBranch&&g(w.activeBranch)},registerDep(e,t,n){let r=!!w.pendingBranch;r&&w.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(a=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;ci(),e.asyncResolved=!0;let{vnode:o}=e;pi(e,a,!1),i&&(o.el=i);let c=!i&&e.subTree.el;t(e,o,_(i||e.subTree.el),i?null:g(e.subTree),w,s,n),c&&(o.placeholder=null,v(c)),Ln(e,o.el),r&&--w.deps===0&&w.resolve()})},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,r,e,t),w.pendingBranch&&h(w.pendingBranch,r,e,t)}};return w}function yr(e,t,n,r,i,a,o,s,c){let l=t.suspense=vr(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function br(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=xr(r?n.default:n),e.ssFallback=r?xr(n.fallback):$(Q)}function xr(e){let t;if(n.isFunction(e)){let n=Mr&&e._c;n&&(e._d=!1,Ar()),e=e(),n&&(e._d=!0,t=kr,jr())}return n.isArray(e)&&(e=jn(e)),e=Yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Sr(e,t){t&&t.pendingBranch?n.isArray(e)?t.effects.push(...e):t.effects.push(e):C(e)}function Cr(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Ln(r,i))}function wr(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}let Tr=Symbol.for(`v-fgt`),Er=Symbol.for(`v-txt`),Q=Symbol.for(`v-cmt`),Dr=Symbol.for(`v-stc`),Or=[],kr=null;function Ar(e=!1){Or.push(kr=e?null:[])}function jr(){Or.pop(),kr=Or[Or.length-1]||null}let Mr=1;function Nr(e,t=!1){Mr+=e,e<0&&kr&&t&&(kr.hasOnce=!0)}function Pr(e){return e.dynamicChildren=Mr>0?kr||n.EMPTY_ARR:null,jr(),Mr>0&&kr&&kr.push(e),e}function Fr(e,t,n,r,i,a){return Pr(Hr(e,t,n,r,i,a,!0))}function Ir(e,t,n,r,i){return Pr($(e,t,n,r,i,!0))}function Lr(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}function zr(e){}let Br=({key:e})=>e??null,Vr=({ref:e,ref_key:r,ref_for:i})=>(typeof e==`number`&&(e=``+e),e==null?null:n.isString(e)||t.isRef(e)||n.isFunction(e)?{i:O,r:e,k:r,f:!!i}:e);function Hr(e,t=null,r=null,i=0,a=null,o=e===Tr?0:1,s=!1,c=!1){let l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Br(t),ref:t&&Vr(t),scopeId:k,slotScopeIds:null,children:r,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:o,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:O};return c?(Zr(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=n.isString(r)?8:16),Mr>0&&!s&&kr&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&kr.push(l),l}let $=Ur;function Ur(e,r=null,i=null,a=0,o=null,s=!1){if((!e||e===kt)&&(e=Q),Lr(e)){let t=Gr(e,r,!0);return i&&Zr(t,i),Mr>0&&!s&&kr&&(t.shapeFlag&6?kr[kr.indexOf(e)]=t:kr.push(t)),t.patchFlag=-2,t}if(Ci(e)&&(e=e.__vccOpts),r){r=Wr(r);let{class:e,style:i}=r;e&&!n.isString(e)&&(r.class=n.normalizeClass(e)),n.isObject(i)&&(t.isProxy(i)&&!n.isArray(i)&&(i=n.extend({},i)),r.style=n.normalizeStyle(i))}let c=n.isString(e)?1:fr(e)?128:ue(e)?64:n.isObject(e)?4:n.isFunction(e)?2:0;return Hr(e,r,i,a,o,c,s,!0)}function Wr(e){return e?t.isProxy(e)||Bn(e)?n.extend({},e):e:null}function Gr(e,t,r=!1,i=!1){let{props:a,ref:o,patchFlag:s,children:c,transition:l}=e,u=t?Qr(a||{},t):a,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Br(u),ref:t&&t.ref?r&&o?n.isArray(o)?o.concat(Vr(t)):[o,Vr(t)]:Vr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Tr?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gr(e.ssContent),ssFallback:e.ssFallback&&Gr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Pe(d,l.clone(d)),d}function Kr(e=` `,t=0){return $(Er,null,e,t)}function qr(e,t){let n=$(Dr,null,e);return n.staticCount=t,n}function Jr(e=``,t=!1){return t?(Ar(),Ir(Q,null,e)):$(Q,null,e)}function Yr(e){return e==null||typeof e==`boolean`?$(Q):n.isArray(e)?$(Tr,null,e.slice()):Lr(e)?Xr(e):$(Er,null,String(e))}function Xr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gr(e)}function Zr(e,t){let r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(n.isArray(t))r=16;else if(typeof t==`object`)if(i&65){let n=t.default;n&&(n._c&&(n._d=!1),Zr(e,n()),n._c&&(n._d=!0));return}else{r=32;let n=t._;!n&&!Bn(t)?t._ctx=O:n===3&&O&&(O.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else n.isFunction(t)?(t={default:t,_ctx:O},r=32):(t=String(t),i&64?(r=16,t=[Kr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Qr(...e){let t={};for(let r=0;r<e.length;r++){let i=e[r];for(let e in i)if(e===`class`)t.class!==i.class&&(t.class=n.normalizeClass([t.class,i.class]));else if(e===`style`)t.style=n.normalizeStyle([t.style,i.style]);else if(n.isOn(e)){let r=t[e],a=i[e];a&&r!==a&&!(n.isArray(r)&&r.includes(a))?t[e]=r?[].concat(r,a):a:a==null&&r==null&&!n.isModelListener(e)&&(t[e]=a)}else e!==``&&(t[e]=i[e])}return t}function $r(e,t,n,r=null){l(e,t,7,[n,r])}let ei=bn(),ti=0;function ni(e,r,i){let a=e.type,o=(r?r.appContext:e.appContext)||ei,s={uid:ti++,vnode:e,type:a,parent:r,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new t.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:r?r.provides:Object.create(o.provides),ids:r?r.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kn(a,o),emitsOptions:On(a,o),emit:null,emitted:null,propsDefaults:n.EMPTY_OBJ,inheritAttrs:a.inheritAttrs,ctx:n.EMPTY_OBJ,data:n.EMPTY_OBJ,props:n.EMPTY_OBJ,attrs:n.EMPTY_OBJ,slots:n.EMPTY_OBJ,refs:n.EMPTY_OBJ,setupState:n.EMPTY_OBJ,setupContext:null,suspense:i,suspenseId:i?i.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 s.ctx={_:s},s.root=r?r.root:s,s.emit=En.bind(null,s),e.ce&&e.ce(s),s}let ri=null,ii=()=>ri||O,ai,oi;{let e=n.getGlobalThis(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ai=t(`__VUE_INSTANCE_SETTERS__`,e=>ri=e),oi=t(`__VUE_SSR_SETTERS__`,e=>ui=e)}let si=e=>{let t=ri;return ai(e),e.scope.on(),()=>{e.scope.off(),ai(t)}},ci=()=>{ri&&ri.scope.off(),ai(null)};function li(e){return e.vnode.shapeFlag&4}let ui=!1;function di(e,t=!1,n=!1){t&&oi(t);let{props:r,children:i}=e.vnode,a=li(e);Vn(e,r,a,t),er(e,i,n||t);let o=a?fi(e,t):void 0;return t&&oi(!1),o}function fi(e,r){let i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vt);let{setup:a}=i;if(a){t.pauseTracking();let i=e.setupContext=a.length>1?bi(e):null,o=si(e),s=c(a,e,0,[e.props,i]),l=n.isPromise(s);if(t.resetTracking(),o(),(l||e.sp)&&!rt(e)&&Le(e),l){if(s.then(ci,ci),r)return s.then(t=>{pi(e,t,r)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else pi(e,s,r)}else vi(e,r)}function pi(e,r,i){n.isFunction(r)?e.type.__ssrInlineRender?e.ssrRender=r:e.render=r:n.isObject(r)&&(e.setupState=t.proxyRefs(r)),vi(e,i)}let mi,hi;function gi(e){mi=e,hi=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ht))}}let _i=()=>!mi;function vi(e,r,i){let a=e.type;if(!e.render){if(!r&&mi&&!a.render){let t=a.template||un(e).template;if(t){let{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:s}=a,c=n.extend(n.extend({isCustomElement:r,delimiters:o},i),s);a.render=mi(t,c)}}e.render=a.render||n.NOOP,hi&&hi(e)}{let n=si(e);t.pauseTracking();try{on(e)}finally{t.resetTracking(),n()}}}let yi={get(e,n){return t.track(e,`get`,``),e[n]}};function bi(e){return{attrs:new Proxy(e.attrs,yi),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function xi(e){return e.exposed?e.exposeProxy||=new Proxy(t.proxyRefs(t.markRaw(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zt)return zt[n](e)},has(e,t){return t in e||t in zt}}):e.proxy}function Si(e,t=!0){return n.isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function Ci(e){return n.isFunction(e)&&`__vccOpts`in e}let wi=(e,n)=>t.computed(e,n,ui);function Ti(e,t,r){try{Nr(-1);let i=arguments.length;return i===2?n.isObject(t)&&!n.isArray(t)?Lr(t)?$(e,null,[t]):$(e,t):$(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Lr(r)&&(r=[r]),$(e,t,r))}finally{Nr(1)}}function Ei(){}function Di(e,t,n,r){let i=n[r];if(i&&Oi(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Oi(e,t){let r=e.memo;if(r.length!=t.length)return!1;for(let e=0;e<r.length;e++)if(n.hasChanged(r[e],t[e]))return!1;return Mr>0&&kr&&kr.push(e),!0}let ki=`3.5.34`,Ai=n.NOOP,ji=s,Mi=n.NOOP,Ni={createComponentInstance:ni,setupComponent:di,renderComponentRoot:An,setCurrentRenderingInstance:A,isVNode:Lr,normalizeVNode:Yr,getComponentPublicInstance:xi,ensureValidVNode:It,pushWarningContext:r,popWarningContext:i};e.EffectScope=t.EffectScope,e.ReactiveEffect=t.ReactiveEffect,e.TrackOpTypes=t.TrackOpTypes,e.TriggerOpTypes=t.TriggerOpTypes,e.customRef=t.customRef,e.effect=t.effect,e.effectScope=t.effectScope,e.getCurrentScope=t.getCurrentScope,e.getCurrentWatcher=t.getCurrentWatcher,e.isProxy=t.isProxy,e.isReactive=t.isReactive,e.isReadonly=t.isReadonly,e.isRef=t.isRef,e.isShallow=t.isShallow,e.markRaw=t.markRaw,e.onScopeDispose=t.onScopeDispose,e.onWatcherCleanup=t.onWatcherCleanup,e.proxyRefs=t.proxyRefs,e.reactive=t.reactive,e.readonly=t.readonly,e.ref=t.ref,e.shallowReactive=t.shallowReactive,e.shallowReadonly=t.shallowReadonly,e.shallowRef=t.shallowRef,e.stop=t.stop,e.toRaw=t.toRaw,e.toRef=t.toRef,e.toRefs=t.toRefs,e.toValue=t.toValue,e.triggerRef=t.triggerRef,e.unref=t.unref,e.camelize=n.camelize,e.capitalize=n.capitalize,e.normalizeClass=n.normalizeClass,e.normalizeProps=n.normalizeProps,e.normalizeStyle=n.normalizeStyle,e.toDisplayString=n.toDisplayString,e.toHandlerKey=n.toHandlerKey,e.BaseTransition=De,e.BaseTransitionPropsValidators=Ce,e.Comment=Q,e.DeprecationTypes=null,e.ErrorCodes=o,e.ErrorTypeStrings=ji,e.Fragment=Tr,e.KeepAlive=st,e.Static=Dr,e.Suspense=mr,e.Teleport=ve,e.Text=Er,e.assertNumber=a,e.callWithAsyncErrorHandling=l,e.callWithErrorHandling=c,e.cloneVNode=Gr,e.compatUtils=null,e.computed=wi,e.createBlock=Ir,e.createCommentVNode=Jr,e.createElementBlock=Fr,e.createElementVNode=Hr,e.createHydrationRenderer=Z,e.createPropsRestProxy=nn,e.createRenderer=nr,e.createSlots=Pt,e.createStaticVNode=qr,e.createTextVNode=Kr,e.createVNode=$,e.defineAsyncComponent=it,e.defineComponent=Ie,e.defineEmits=Wt,e.defineExpose=Gt,e.defineModel=Jt,e.defineOptions=Kt,e.defineProps=Ut,e.defineSlots=qt,e.devtools=void 0,e.getCurrentInstance=ii,e.getTransitionRawChildren=Fe,e.guardReactiveProps=Wr,e.h=Ti,e.handleError=u,e.hasInjectionContext=I,e.hydrateOnIdle=Ze,e.hydrateOnInteraction=tt,e.hydrateOnMediaQuery=et,e.hydrateOnVisible=$e,e.initCustomFormatter=Ei,e.inject=ne,e.isMemoSame=Oi,e.isRuntimeOnly=_i,e.isVNode=Lr,e.mergeDefaults=en,e.mergeModels=tn,e.mergeProps=Qr,e.nextTick=y,e.onActivated=lt,e.onBeforeMount=_t,e.onBeforeUnmount=xt,e.onBeforeUpdate=yt,e.onDeactivated=ut,e.onErrorCaptured=Et,e.onMounted=vt,e.onRenderTracked=Tt,e.onRenderTriggered=wt,e.onServerPrefetch=Ct,e.onUnmounted=St,e.onUpdated=bt,e.openBlock=Ar,e.popScopeId=ee,e.provide=F,e.pushScopeId=j,e.queuePostFlushCb=C,e.registerRuntimeCompiler=gi,e.renderList=Nt,e.renderSlot=Ft,e.resolveComponent=Ot,e.resolveDirective=Y,e.resolveDynamicComponent=At,e.resolveFilter=null,e.resolveTransitionHooks=ke,e.setBlockTracking=Nr,e.setDevtoolsHook=Mi,e.setTransitionHooks=Pe,e.ssrContextKey=L,e.ssrUtils=Ni,e.toHandlers=Lt,e.transformVNodeArgs=zr,e.useAttrs=Zt,e.useId=W,e.useModel=wn,e.useSSRContext=re,e.useSlots=Xt,e.useTemplateRef=Re,e.useTransitionState=Se,e.version=ki,e.warn=Ai,e.watch=R,e.watchEffect=ie,e.watchPostEffect=ae,e.watchSyncEffect=oe,e.withAsyncContext=rn,e.withCtx=te,e.withDefaults=Yt,e.withDirectives=N,e.withMemo=Di,e.withScopeId=M})),Pe=o(((e,t)=>{t.exports=Ne()})),Fe=o((e=>{
35
+ /**
36
+ * @vue/runtime-dom v3.5.34
26
37
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
27
38
  * @license MIT
28
- **/let ms;const Ll=typeof window<"u"&&window.trustedTypes;if(Ll)try{ms=Ll.createPolicy("vue",{createHTML:e=>e})}catch{}const Tl=ms?e=>ms.createHTML(e):e=>e,du="http://www.w3.org/2000/svg",gu="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,Il=it&&it.createElement("template"),mu={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(du,e):t==="mathml"?it.createElementNS(gu,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{Il.innerHTML=Tl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Il.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]}},vu=Symbol("_vtc");function bu(e,t,n){const r=e[vu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const br=Symbol("_vod"),Ml=Symbol("_vsh"),Pl={name:"show",beforeMount(e,{value:t},{transition:n}){e[br]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ln(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),Ln(e,!0),r.enter(e)):r.leave(e,()=>{Ln(e,!1)}):Ln(e,t))},beforeUnmount(e,{value:t}){Ln(e,t)}};function Ln(e,t){e.style.display=t?e[br]:"none",e[Ml]=!t}const yu=Symbol(""),wu=/(?:^|;)\s*display\s*:/;function ku(e,t,n){const r=e.style,s=be(n);let i=!1;if(n&&!s){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&yr(r,o,"")}else for(const l in t)n[l]==null&&yr(r,l,"");for(const l in n)l==="display"&&(i=!0),yr(r,l,n[l])}else if(s){if(t!==n){const l=r[yu];l&&(n+=";"+l),r.cssText=n,i=wu.test(n)}}else t&&e.removeAttribute("style");br in e&&(e[br]=i?r.display:"",e[Ml]&&(r.display="none"))}const zl=/\s*!important$/;function yr(e,t,n){if(V(n))n.forEach(r=>yr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=xu(e,t);zl.test(n)?e.setProperty(At(r),n.replace(zl,""),"important"):e[r]=n}}const Ol=["Webkit","Moz","ms"],vs={};function xu(e,t){const n=vs[t];if(n)return n;let r=je(t);if(r!=="filter"&&r in e)return vs[t]=r;r=qn(r);for(let s=0;s<Ol.length;s++){const i=Ol[s]+r;if(i in e)return vs[t]=i}return t}const jl="http://www.w3.org/1999/xlink";function Fl(e,t,n,r,s,i=Ta(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(jl,t.slice(6,t.length)):e.setAttributeNS(jl,t,n):n==null||i&&!$i(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ve(n)?String(n):n)}function Dl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Tl(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=$i(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 _u(e,t,n,r){e.removeEventListener(t,n,r)}const Ul=Symbol("_vei");function $u(e,t,n,r,s=null){const i=e[Ul]||(e[Ul]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=Cu(t);if(r){const c=i[t]=Au(r,s);lt(e,o,c,a)}else l&&(_u(e,o,l,a),i[t]=void 0)}}const Hl=/(?:Once|Passive|Capture)$/;function Cu(e){let t;if(Hl.test(e)){t={};let r;for(;r=e.match(Hl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let bs=0;const Su=Promise.resolve(),Ru=()=>bs||(Su.then(()=>bs=0),bs=Date.now());function Au(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nt(Eu(r,n.value),t,5,[r])};return n.value=e,n.attached=Ru(),n}function Eu(e,t){if(V(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 Nl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lu=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?bu(e,r,l):t==="style"?ku(e,n,r):Bn(t)?Nr(t)||$u(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Tu(e,t,r,l))?(Dl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fl(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(r))?Dl(e,je(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Fl(e,t,r,l))};function Tu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nl(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 Nl(t)&&be(n)?!1:t in e}const xt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Kn(t,n):t};function Iu(e){e.target.composing=!0}function Bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign");function Vl(e,t,n){return t&&(e=e.trim()),n&&(e=Gn(e)),e}const ys={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Fe]=xt(s);const i=r||s.props&&s.props.type==="number";lt(e,t?"change":"input",l=>{l.target.composing||e[Fe](Vl(e.value,n,i))}),(n||i)&&lt(e,"change",()=>{e.value=Vl(e.value,n,i)}),t||(lt(e,"compositionstart",Iu),lt(e,"compositionend",Bl),lt(e,"change",Bl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[Fe]=xt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gn(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))}},Mu={deep:!0,created(e,t,n){e[Fe]=xt(n),lt(e,"change",()=>{const r=e._modelValue,s=rn(e),i=e.checked,l=e[Fe];if(V(r)){const o=Vr(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(Gt(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Kl(e,i))})},mounted:Wl,beforeUpdate(e,t,n){e[Fe]=xt(n),Wl(e,t,n)}};function Wl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(V(t))s=Vr(t,r.props.value)>-1;else if(Gt(t))s=t.has(r.props.value);else{if(t===n)return;s=dt(t,Kl(e,!0))}e.checked!==s&&(e.checked=s)}const Pu={created(e,{value:t},n){e.checked=dt(t,n.props.value),e[Fe]=xt(n),lt(e,"change",()=>{e[Fe](rn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fe]=xt(r),t!==n&&(e.checked=dt(t,r.props.value))}},zu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Gt(t);lt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Gn(rn(l)):rn(l));e[Fe](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Xt(()=>{e._assigning=!1})}),e[Fe]=xt(r)},mounted(e,{value:t}){ql(e,t)},beforeUpdate(e,t,n){e[Fe]=xt(n)},updated(e,{value:t}){e._assigning||ql(e,t)}};function ql(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Gt(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=rn(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Vr(t,o)>-1}else l.selected=t.has(o);else if(dt(rn(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function rn(e){return"_value"in e?e._value:e.value}function Kl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ou={created(e,t,n){wr(e,t,n,null,"created")},mounted(e,t,n){wr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){wr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){wr(e,t,n,r,"updated")}};function ju(e,t){switch(e){case"SELECT":return zu;case"TEXTAREA":return ys;default:switch(t){case"checkbox":return Mu;case"radio":return Pu;default:return ys}}}function wr(e,t,n,r,s){const l=ju(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const Fu=Ee({patchProp:Lu},mu);let Gl;function Du(){return Gl||(Gl=Zc(Fu))}const Zl=((...e)=>{const t=Du().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Hu(r);if(!s)return;const i=t._component;!ne(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,Uu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function Uu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hu(e){return be(e)?document.querySelector(e):e}function kr(e,t){return Ri()?(Pa(e,t),!0):!1}const xr=typeof window<"u"&&typeof document<"u",Nu=Object.prototype.toString,Bu=e=>Nu.call(e)==="[object Object]",_r=()=>{};function Vu(...e){if(e.length!==1)return cc(...e);const t=e[0];return typeof t=="function"?Tt(lc(()=>({get:t,set:_r}))):G(t)}function Yl(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 Wu(e,t={}){let n,r,s=_r;const i=a=>{clearTimeout(a),s(),s=_r};let l;return a=>{const c=Te(e),u=Te(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,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 qu(e=Jl,t={}){const{initialState:n="active"}=t,r=Vu(n==="active");function s(){r.value=!1}function i(){r.value=!0}return{isActive:Tt(r),pause:s,resume:i,eventFilter:(...o)=>{r.value&&e(...o)}}}function ws(e){return Array.isArray(e)?e:[e]}function Ql(e){return ps()}function Ku(e,t=200,n={}){return Yl(Wu(t,n),e)}function Gu(e,t,n={}){const{eventFilter:r=Jl,...s}=n;return yt(e,Yl(r,t),s)}function Zu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=qu(r,{initialState:s});return{stop:Gu(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ks(e,t=!0,n){Ql()?en(e,n):t?e():Xt(e)}function Yu(e,t){Ql()&&ss(e,t)}function Ju(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=Mt(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Te(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}return r&&xr&&c(),(ve(t)||typeof t=="function")&&kr(yt(t,()=>{l.value&&xr&&c()})),kr(a),{isActive:tc(l),pause:a,resume:c}}function Ft(e,t,n){return yt(e,t,{...n,immediate:!0})}const sn=xr?window:void 0,Xl=xr?window.document:void 0;function Qu(e){var t;const n=Te(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Dt(...e){const t=(r,s,i,l)=>(r.addEventListener(s,i,l),()=>r.removeEventListener(s,i,l)),n=pe(()=>{const r=ws(Te(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Ft(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>Qu(i)))!==null&&r!==void 0?r:[sn].filter(i=>i!=null),ws(Te(n.value?e[1]:e[0])),ws(N(n.value?e[2]:e[1])),Te(n.value?e[3]:e[2])]},([r,s,i,l],o,a)=>{if(!(r!=null&&r.length)||!(s!=null&&s.length)||!(i!=null&&i.length))return;const c=Bu(l)?{...l}:l,u=r.flatMap(f=>s.flatMap(p=>i.map(m=>t(f,p,m,c))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function eo(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:s=sn,once:i=!1}=t,l=Mt(!1),o=pe(()=>{const m=Te(r);return m?1e3/m: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 p(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),kr(p),{isActive:Tt(l),pause:p,resume:f}}const $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cr="__vueuse_ssr_handlers__",Xu=ef();function ef(){return Cr in $r||($r[Cr]=$r[Cr]||{}),$r[Cr]}function tf(e,t){return Xu[e]||t}function nf(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 rf={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()}},to="vueuse-storage";function ln(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=sn,eventFilter:p,onError:m=z=>{console.error(z)},initOnMounted:x}=r,y=(u?Mt:G)(typeof t=="function"?t():t),A=pe(()=>Te(e));if(!n)try{n=tf("getDefaultStorage",()=>sn==null?void 0:sn.localStorage)()}catch(z){m(z)}if(!n)return y;const _=Te(t),T=nf(_),O=(s=r.serializer)!==null&&s!==void 0?s:rf[T],{pause:S,resume:F}=Zu(y,z=>ge(z),{flush:i,deep:l,eventFilter:p});yt(A,()=>H(),{flush:i});let fe=!1;const ie=z=>{x&&!fe||H(z)},D=z=>{x&&!fe||Z(z)};f&&o&&(n instanceof Storage?Dt(f,"storage",ie,{passive:!0}):Dt(f,to,D)),x?ks(()=>{fe=!0,H()}):H();function ke(z,K){if(f){const Y={key:A.value,oldValue:z,newValue:K,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",Y):new CustomEvent(to,{detail:Y}))}}function ge(z){try{const K=n.getItem(A.value);if(z==null)ke(K,null),n.removeItem(A.value);else{const Y=O.write(z);K!==Y&&(n.setItem(A.value,Y),ke(K,Y))}}catch(K){m(K)}}function U(z){const K=z?z.newValue:n.getItem(A.value);if(K==null)return a&&_!=null&&n.setItem(A.value,O.write(_)),_;if(!z&&c){const Y=O.read(K);return typeof c=="function"?c(Y,_):T==="object"&&!Array.isArray(Y)?{..._,...Y}:Y}else return typeof K!="string"?K:O.read(K)}function H(z){if(!(z&&z.storageArea!==n)){if(z&&z.key==null){y.value=_;return}if(!(z&&z.key!==A.value)){S();try{const K=O.write(y.value);(z===void 0||(z==null?void 0:z.newValue)!==K)&&(y.value=U(z))}catch(K){m(K)}finally{z?Xt(F):F()}}}}function Z(z){H(z.detail)}return y}function sf(e){if("interval"in e||"immediate"in e){const{interval:t="requestAnimationFrame",immediate:n=!0}=e;return t==="requestAnimationFrame"?r=>eo(r,{immediate:n}):r=>Ju(r,t,e)}return eo}function lf(e={}){const{controls:t=!1,scheduler:n=sf(e)}=e,r=G(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function of(e,t=_r,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=Xl,attrs:p={},nonce:m=void 0}=n,x=Mt(null);let y=null;const A=O=>new Promise((S,F)=>{const fe=ge=>(x.value=ge,S(ge),ge);if(!f){S(!1);return}let ie=!1,D=f.querySelector(`script[src="${Te(e)}"]`);D?D.hasAttribute("data-loaded")&&fe(D):(D=f.createElement("script"),D.type=i,D.async=l,D.src=Te(e),u&&(D.defer=u),o&&(D.crossOrigin=o),c&&(D.noModule=c),a&&(D.referrerPolicy=a),m&&(D.nonce=m),Object.entries(p).forEach(([ge,U])=>D==null?void 0:D.setAttribute(ge,U)),ie=!0);const ke={passive:!0};Dt(D,"error",ge=>F(ge),ke),Dt(D,"abort",ge=>F(ge),ke),Dt(D,"load",()=>{D.setAttribute("data-loaded","true"),t(D),fe(D)},ke),ie&&(D=f.head.appendChild(D)),O||fe(D)}),_=(O=!0)=>(y||(y=A(O)),y),T=()=>{if(!f)return;y=null,x.value&&(x.value=null);const O=f.querySelector(`script[src="${Te(e)}"]`);O&&f.head.removeChild(O)};return r&&!s&&ks(_),s||Yu(T),{scriptTag:x,load:_,unload:T}}let af=0;function cf(e,t={}){const n=Mt(!1),{document:r=Xl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++af}`}=t,o=Mt(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=yt(o,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ks(c),i||kr(u),{id:l,css:o,unload:u,load:c,isLoaded:Tt(n)}}const uf="WALINE_EMOJI",no=ln(uf,{}),ff=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),hf=e=>{const t=ff(e);if(t){const n=no.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&&(no.value[e]=r),r})},ro=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,pf=e=>Promise.all(e?e.map(t=>Wt(t)?hf(di(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:ro(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=ro(u,i,o,a),f})})}),n}),so=e=>{e.name!=="AbortError"&&console.error(e.message)},Sr=e=>e instanceof HTMLElement?e:Wt(e)?document.querySelector(e):null,io=e=>{const t=[...e].find(n=>n.type.includes("image"));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 Ut=xs();function lo(e){Ut=e}var Ht={exec:()=>null};function X(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($e.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var df=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$e={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},gf=/^(?:[ \t]*(?:\n|$))+/,mf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_s=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,oo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ao=X(oo).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(),yf=X(oo).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(),$s=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,wf=/^[^\n]+/,Cs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kf=X(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xf=X(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_s).getRegex(),Rr="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]*?(?:-->|$))/,_f=X("^ {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",Rr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),co=X($s).replace("hr",Tn).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rr).getRegex(),$f=X(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",co).getRegex(),Rs={blockquote:$f,code:mf,def:kf,fences:vf,heading:bf,hr:Tn,html:_f,lheading:ao,list:xf,newline:gf,paragraph:co,table:Ht,text:wf},uo=X("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tn).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rr).getRegex(),Cf={...Rs,lheading:yf,table:uo,paragraph:X($s).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",uo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rr).getRegex()},Sf={...Rs,html:X(`^ *(?: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:Ht,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:X($s).replace("hr",Tn).replace("heading",` *#{1,6} *[^
29
- ]`).replace("lheading",ao).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Af=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fo=/^( {2,}|\\)\n(?!\s*$)/,Ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ar=/[\p{P}\p{S}]/u,As=/[\s\p{P}\p{S}]/u,ho=/[^\s\p{P}\p{S}]/u,Lf=X(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,As).getRegex(),po=/(?!~)[\p{P}\p{S}]/u,Tf=/(?!~)[\s\p{P}\p{S}]/u,If=/(?:[^\s\p{P}\p{S}]|~)/u,go=/(?![*_])[\p{P}\p{S}]/u,Mf=/(?![*_])[\s\p{P}\p{S}]/u,Pf=/(?:[^\s\p{P}\p{S}]|[*_])/u,zf=X(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",df?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),mo=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Of=X(mo,"u").replace(/punct/g,Ar).getRegex(),jf=X(mo,"u").replace(/punct/g,po).getRegex(),vo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ff=X(vo,"gu").replace(/notPunctSpace/g,ho).replace(/punctSpace/g,As).replace(/punct/g,Ar).getRegex(),Df=X(vo,"gu").replace(/notPunctSpace/g,If).replace(/punctSpace/g,Tf).replace(/punct/g,po).getRegex(),Uf=X("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ho).replace(/punctSpace/g,As).replace(/punct/g,Ar).getRegex(),Hf=X(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,go).getRegex(),Nf="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Bf=X(Nf,"gu").replace(/notPunctSpace/g,Pf).replace(/punctSpace/g,Mf).replace(/punct/g,go).getRegex(),Vf=X(/\\(punct)/,"gu").replace(/punct/g,Ar).getRegex(),Wf=X(/^<(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(),qf=X(Ss).replace("(?:-->|$)","-->").getRegex(),Kf=X("^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",qf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Er=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Gf=X(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Er).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bo=X(/^!?\[(label)\]\[(ref)\]/).replace("label",Er).replace("ref",Cs).getRegex(),yo=X(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cs).getRegex(),Zf=X("reflink|nolink(?!\\()","g").replace("reflink",bo).replace("nolink",yo).getRegex(),wo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Es={_backpedal:Ht,anyPunctuation:Vf,autolink:Wf,blockSkip:zf,br:fo,code:Af,del:Ht,delLDelim:Ht,delRDelim:Ht,emStrongLDelim:Of,emStrongRDelimAst:Ff,emStrongRDelimUnd:Uf,escape:Rf,link:Gf,nolink:yo,punctuation:Lf,reflink:bo,reflinkSearch:Zf,tag:Kf,text:Ef,url:Ht},Yf={...Es,link:X(/^!?\[(label)\]\((.*?)\)/).replace("label",Er).getRegex(),reflink:X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Er).getRegex()},Ls={...Es,emStrongRDelimAst:Df,emStrongLDelim:jf,delLDelim:Hf,delRDelim:Bf,url:X(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",wo).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:X(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",wo).getRegex()},Jf={...Ls,br:X(fo).replace("{2,}","*").getRegex(),text:X(Ls.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Lr={normal:Rs,gfm:Cf,pedantic:Sf},In={normal:Es,gfm:Ls,breaks:Jf,pedantic:Yf},Qf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ko=e=>Qf[e];function ot(e,t){if(t){if($e.escapeTest.test(e))return e.replace($e.escapeReplace,ko)}else if($e.escapeTestNoEncode.test(e))return e.replace($e.escapeReplaceNoEncode,ko);return e}function xo(e){try{e=encodeURI(e).replace($e.percentDecode,"%")}catch{return null}return e}function _o(e,t){var i;let n=e.replace($e.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split($e.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($e.slashPipe,"|");return r}function Mn(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 Xf(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 eh(e,t=0){let n=t,r="";for(let s of e)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function $o(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 th(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
30
- `).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(`
31
- `)}var Tr=class{options;rules;lexer;constructor(e){this.options=e||Ut}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:Mn(n,`
32
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=th(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=Mn(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:Mn(t[0],`
33
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Mn(t[0],`
39
+ **/
40
+ Object.defineProperty(e,"__esModule",{value:!0});var t=Pe(),n=Ae();let r,i=typeof window<`u`&&window.trustedTypes;if(i)try{r=i.createPolicy(`vue`,{createHTML:e=>e})}catch{}let a=r?e=>r.createHTML(e):e=>e,o=typeof document<`u`?document:null,s=o&&o.createElement(`template`),c={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?o.createElementNS(`http://www.w3.org/2000/svg`,e):t===`mathml`?o.createElementNS(`http://www.w3.org/1998/Math/MathML`,e):n?o.createElement(e,{is:n}):o.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>o.createTextNode(e),createComment:e=>o.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,o){let c=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{s.innerHTML=a(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=s.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[c?c.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},l=`transition`,u=`animation`,d=Symbol(`_vtc`),f={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},p=n.extend({},t.BaseTransitionPropsValidators,f),m=(e=>(e.displayName=`Transition`,e.props=p,e))((e,{slots:n})=>t.h(t.BaseTransition,_(e),n)),h=(e,t=[])=>{n.isArray(e)?e.forEach(e=>e(...t)):e&&e(...t)},g=e=>e?n.isArray(e)?e.some(e=>e.length>1):e.length>1:!1;function _(e){let t={};for(let n in e)n in f||(t[n]=e[n]);if(e.css===!1)return t;let{name:r=`v`,type:i,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:_=`${r}-leave-to`}=e,y=v(a),C=y&&y[0],T=y&&y[1],{onBeforeEnter:E,onEnter:D,onEnterCancelled:k,onLeave:A,onLeaveCancelled:j,onBeforeAppear:ee=E,onAppear:M=D,onAppearCancelled:te=k}=t,N=(e,t,n,r)=>{e._enterCancelled=r,x(e,t?d:c),x(e,t?u:s),n&&n()},P=(e,t)=>{e._isLeaving=!1,x(e,p),x(e,_),x(e,m),t&&t()},F=e=>(t,n)=>{let r=e?M:D,a=()=>N(t,e,n);h(r,[t,a]),S(()=>{x(t,e?l:o),b(t,e?d:c),g(r)||w(t,i,C,a)})};return n.extend(t,{onBeforeEnter(e){h(E,[e]),b(e,o),b(e,s)},onBeforeAppear(e){h(ee,[e]),b(e,l),b(e,u)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>P(e,t);b(e,p),e._enterCancelled?(b(e,m),O(e)):(O(e),b(e,m)),S(()=>{e._isLeaving&&(x(e,p),b(e,_),g(A)||w(e,i,T,n))}),h(A,[e,n])},onEnterCancelled(e){N(e,!1,void 0,!0),h(k,[e])},onAppearCancelled(e){N(e,!0,void 0,!0),h(te,[e])},onLeaveCancelled(e){P(e),h(j,[e])}})}function v(e){if(e==null)return null;if(n.isObject(e))return[y(e.enter),y(e.leave)];{let t=y(e);return[t,t]}}function y(e){return n.toNumber(e)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[d]||(e[d]=new Set)).add(t)}function x(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[d];n&&(n.delete(t),n.size||(e[d]=void 0))}function S(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let C=0;function w(e,t,n,r){let i=e._endId=++C,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=T(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function T(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${l}Delay`),a=r(`${l}Duration`),o=E(i,a),s=r(`${u}Delay`),c=r(`${u}Duration`),d=E(s,c),f=null,p=0,m=0;t===l?o>0&&(f=l,p=o,m=a.length):t===u?d>0&&(f=u,p=d,m=c.length):(p=Math.max(o,d),f=p>0?o>d?l:u:null,m=f?f===l?a.length:c.length:0);let h=f===l&&/\b(?:transform|all)(?:,|$)/.test(r(`${l}Property`).toString());return{type:f,timeout:p,propCount:m,hasTransform:h}}function E(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>D(t)+D(e[n])))}function D(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function O(e){return(e?e.ownerDocument:document).body.offsetHeight}function k(e,t,n){let r=e[d];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}let A=Symbol(`_vod`),j=Symbol(`_vsh`),ee={name:`show`,beforeMount(e,{value:t},{transition:n}){e[A]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):M(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),M(e,!0),r.enter(e)):r.leave(e,()=>{M(e,!1)}):M(e,t))},beforeUnmount(e,{value:t}){M(e,t)}};function M(e,t){e.style.display=t?e[A]:`none`,e[j]=!t}function te(){ee.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}let N=Symbol(``);function P(e){}let F=/(?:^|;)\s*display\s*:/;function ne(e,t,r){let i=e.style,a=n.isString(r),o=!1;if(r&&!a){if(t)if(n.isString(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??L(i,t,``)}else for(let e in t)r[e]??L(i,e,``);for(let a in r){a===`display`&&(o=!0);let s=r[a];s==null?L(i,a,``):oe(e,a,!n.isString(t)&&t?t[a]:void 0,s)||L(i,a,s)}}else if(a){if(t!==r){let e=i[N];e&&(r+=`;`+e),i.cssText=r,o=F.test(r)}}else t&&e.removeAttribute(`style`);A in e&&(e[A]=o?i.display:``,e[j]&&(i.display=`none`))}let I=/\s*!important$/;function L(e,t,r){if(n.isArray(r))r.forEach(n=>L(e,t,n));else if(r??=``,t.startsWith(`--`))e.setProperty(t,r);else{let i=ae(e,t);I.test(r)?e.setProperty(n.hyphenate(i),r.replace(I,``),`important`):e[i]=r}}let re=[`Webkit`,`Moz`,`ms`],ie={};function ae(e,r){let i=ie[r];if(i)return i;let a=t.camelize(r);if(a!==`filter`&&a in e)return ie[r]=a;a=n.capitalize(a);for(let t=0;t<re.length;t++){let n=re[t]+a;if(n in e)return ie[r]=n}return r}function oe(e,t,r,i){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&n.isString(i)&&r===i}let R=`http://www.w3.org/1999/xlink`;function se(e,t,r,i,a,o=n.isSpecialBooleanAttr(t)){i&&t.startsWith(`xlink:`)?r==null?e.removeAttributeNS(R,t.slice(6,t.length)):e.setAttributeNS(R,t,r):r==null||o&&!n.includeBooleanAttr(r)?e.removeAttribute(t):e.setAttribute(t,o?``:n.isSymbol(r)?String(r):r)}function ce(e,t,r,i,o){if(t===`innerHTML`||t===`textContent`){r!=null&&(e[t]=t===`innerHTML`?a(r):r);return}let s=e.tagName;if(t===`value`&&s!==`PROGRESS`&&!s.includes(`-`)){let n=s===`OPTION`?e.getAttribute(`value`)||``:e.value,i=r==null?e.type===`checkbox`?`on`:``:String(r);(n!==i||!(`_value`in e))&&(e.value=i),r??e.removeAttribute(t),e._value=r;return}let c=!1;if(r===``||r==null){let i=typeof e[t];i===`boolean`?r=n.includeBooleanAttr(r):r==null&&i===`string`?(r=``,c=!0):i===`number`&&(r=0,c=!0)}try{e[t]=r}catch{}c&&e.removeAttribute(o||t)}function z(e,t,n,r){e.addEventListener(t,n,r)}function B(e,t,n,r){e.removeEventListener(t,n,r)}let le=Symbol(`_vei`);function ue(e,t,n,r,i=null){let a=e[le]||(e[le]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=de(t);r?z(e,n,a[t]=he(r,i),s):o&&(B(e,n,o,s),a[t]=void 0)}}let V=/(?:Once|Passive|Capture)$/;function de(e){let t;if(V.test(e)){t={};let n;for(;n=e.match(V);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):n.hyphenate(e.slice(2)),t]}let fe=0,pe=Promise.resolve(),me=()=>fe||=(pe.then(()=>fe=0),Date.now());function he(e,n){let r=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=r.attached)return;t.callWithAsyncErrorHandling(ge(e,r.value),n,5,[e])};return r.value=e,r.attached=me(),r}function ge(e,t){if(n.isArray(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}let _e=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ve=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?k(e,i,s):t===`style`?ne(e,r,i):n.isOn(t)?n.isModelListener(t)||ue(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):ye(e,t,i,s))?(ce(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&se(e,t,i,s,o,t!==`value`)):e._isVueCE&&(be(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n.isString(i)))?ce(e,n.camelize(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),se(e,t,i,s))};function ye(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&_e(t)&&n.isFunction(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return _e(t)&&n.isString(r)?!1:t in e}function be(e,t){let r=e._def.props;if(!r)return!1;let i=n.camelize(t);return Array.isArray(r)?r.some(e=>n.camelize(e)===i):Object.keys(r).some(e=>n.camelize(e)===i)}let H={};function xe(e,r,i){let a=t.defineComponent(e,r);n.isPlainObject(a)&&(a=n.extend({},a,r));class o extends Ce{constructor(e){super(a,e,i)}}return o.def=a,o}let Se=((e,t)=>xe(e,t,ut)),U=typeof HTMLElement<`u`?HTMLElement:class{};var Ce=class e extends U{constructor(e,t={},r=lt){super(),this._def=e,this._props=t,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&r!==lt?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(n.extend({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,t.nextTick(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:r,styles:i}=e,a;if(r&&!n.isArray(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=n.toNumber(this._props[e])),(a||=Object.create(null))[n.camelize(e)]=!0)}this._numberProps=a,this._resolveProps(e),this.shadowRoot&&this._applyStyles(i),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let r=this._instance&&this._instance.exposed;if(r)for(let e in r)n.hasOwn(this,e)||Object.defineProperty(this,e,{get:()=>t.unref(r[e])})}_resolveProps(e){let{props:t}=e,r=n.isArray(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&r.includes(e)&&this._setProp(e,this[e]);for(let e of r.map(n.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),r=t?this.getAttribute(e):H,i=n.camelize(e);t&&this._numberProps&&this._numberProps[i]&&(r=n.toNumber(r)),this._setProp(i,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,r=!0,i=!1){if(t!==this._props[e]&&(this._dirty=!0,t===H?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),i&&this._instance&&this._update(),r)){let r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),t===!0?this.setAttribute(n.hyphenate(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(n.hyphenate(e),t+``):t||this.removeAttribute(n.hyphenate(e)),r&&r.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),st(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let r=t.createVNode(this._def,n.extend(e,this._props));return this._instance||(r.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,n.isPlainObject(t[0])?n.extend({detail:t},t[0]):{detail:t}))};e.emit=(e,...r)=>{t(e,r),n.hyphenate(e)!==e&&t(n.hyphenate(e),r)},this._setParent()}),r}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function we(e){let n=t.getCurrentInstance();return n&&n.ce||null}function Te(){let e=we();return e&&e.shadowRoot}function Ee(e=`$style`){{let r=t.getCurrentInstance();if(!r)return n.EMPTY_OBJ;let i=r.type.__cssModules;return i&&i[e]||n.EMPTY_OBJ}}let De=new WeakMap,Oe=new WeakMap,ke=Symbol(`_moveCb`),je=Symbol(`_enterCb`),Me=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:n.extend({},p,{tag:String,moveClass:String}),setup(e,{slots:n}){let r=t.getCurrentInstance(),i=t.useTransitionState(),a,o;return t.onUpdated(()=>{if(!a.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Le(a[0].el,r.vnode.el,t)){a=[];return}a.forEach(Ne),a.forEach(Fe);let n=a.filter(Ie);O(r.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;b(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[ke]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[ke]=null,x(n,t))};n.addEventListener(`transitionend`,i)}),a=[]}),()=>{let s=t.toRaw(e),c=_(s),l=s.tag||t.Fragment;if(a=[],o)for(let e=0;e<o.length;e++){let n=o[e];n.el&&n.el instanceof Element&&(a.push(n),t.setTransitionHooks(n,t.resolveTransitionHooks(n,c,i,r)),De.set(n,W(n.el)))}o=n.default?t.getTransitionRawChildren(n.default()):[];for(let e=0;e<o.length;e++){let n=o[e];n.key!=null&&t.setTransitionHooks(n,t.resolveTransitionHooks(n,c,i,r))}return t.createVNode(l,null,o)}}});function Ne(e){let t=e.el;t[ke]&&t[ke](),t[je]&&t[je]()}function Fe(e){Oe.set(e,W(e.el))}function Ie(e){let t=De.get(e),n=Oe.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function W(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Le(e,t,n){let r=e.cloneNode(),i=e[d];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=T(r);return a.removeChild(r),o}let Re=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return n.isArray(t)?e=>n.invokeArrayFns(t,e):t};function ze(e){e.target.composing=!0}function Be(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}let G=Symbol(`_assign`);function K(e,t,r){return t&&(e=e.trim()),r&&(e=n.looseToNumber(e)),e}let Ve={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[G]=Re(i);let a=r||i.props&&i.props.type===`number`;z(e,t?`change`:`input`,t=>{t.target.composing||e[G](K(e.value,n,a))}),(n||a)&&z(e,`change`,()=>{e.value=K(e.value,n,a)}),t||(z(e,`compositionstart`,ze),z(e,`compositionend`,Be),z(e,`change`,Be))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:i,trim:a,number:o}},s){if(e[G]=Re(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?n.looseToNumber(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(i&&t===r||a&&e.value.trim()===l)||(e.value=l)}},q={deep:!0,created(e,t,r){e[G]=Re(r),z(e,`change`,()=>{let t=e._modelValue,r=Ge(e),i=e.checked,a=e[G];if(n.isArray(t)){let e=n.looseIndexOf(t,r),o=e!==-1;if(i&&!o)a(t.concat(r));else if(!i&&o){let n=[...t];n.splice(e,1),a(n)}}else if(n.isSet(t)){let e=new Set(t);i?e.add(r):e.delete(r),a(e)}else a(Ke(e,i))})},mounted:He,beforeUpdate(e,t,n){e[G]=Re(n),He(e,t,n)}};function He(e,{value:t,oldValue:r},i){e._modelValue=t;let a;if(n.isArray(t))a=n.looseIndexOf(t,i.props.value)>-1;else if(n.isSet(t))a=t.has(i.props.value);else{if(t===r)return;a=n.looseEqual(t,Ke(e,!0))}e.checked!==a&&(e.checked=a)}let Ue={created(e,{value:t},r){e.checked=n.looseEqual(t,r.props.value),e[G]=Re(r),z(e,`change`,()=>{e[G](Ge(e))})},beforeUpdate(e,{value:t,oldValue:r},i){e[G]=Re(i),t!==r&&(e.checked=n.looseEqual(t,i.props.value))}},We={deep:!0,created(e,{value:r,modifiers:{number:i}},a){let o=n.isSet(r);z(e,`change`,()=>{let r=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>i?n.looseToNumber(Ge(e)):Ge(e));e[G](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,t.nextTick(()=>{e._assigning=!1})}),e[G]=Re(a)},mounted(e,{value:t}){J(e,t)},beforeUpdate(e,t,n){e[G]=Re(n)},updated(e,{value:t}){e._assigning||J(e,t)}};function J(e,t){let r=e.multiple,i=n.isArray(t);if(!(r&&!i&&!n.isSet(t))){for(let a=0,o=e.options.length;a<o;a++){let o=e.options[a],s=Ge(o);if(r)if(i){let e=typeof s;e===`string`||e===`number`?o.selected=t.some(e=>String(e)===String(s)):o.selected=n.looseIndexOf(t,s)>-1}else o.selected=t.has(s);else if(n.looseEqual(Ge(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ge(e){return`_value`in e?e._value:e.value}function Ke(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}let qe={created(e,t,n){Ye(e,t,n,null,`created`)},mounted(e,t,n){Ye(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Ye(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Ye(e,t,n,r,`updated`)}};function Je(e,t){switch(e){case`SELECT`:return We;case`TEXTAREA`:return Ve;default:switch(t){case`checkbox`:return q;case`radio`:return Ue;default:return Ve}}}function Ye(e,t,n,r,i){let a=Je(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Xe(){Ve.getSSRProps=({value:e})=>({value:e}),Ue.getSSRProps=({value:e},t)=>{if(t.props&&n.looseEqual(t.props.value,e))return{checked:!0}},q.getSSRProps=({value:e},t)=>{if(n.isArray(e)){if(t.props&&n.looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(n.isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},qe.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Je(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}let Ze=[`ctrl`,`shift`,`alt`,`meta`],Qe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ze.some(n=>e[`${n}Key`]&&!t.includes(n))},$e=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Qe[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},et={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},tt=(e,t)=>{let r=e._withKeys||={},i=t.join(`.`);return r[i]||(r[i]=(r=>{if(!(`key`in r))return;let i=n.hyphenate(r.key);if(t.some(e=>e===i||et[e]===i))return e(r)}))},nt=n.extend({patchProp:ve},c),rt,it=!1;function at(){return rt||=t.createRenderer(nt)}function ot(){return rt=it?rt:t.createHydrationRenderer(nt),it=!0,rt}let st=((...e)=>{at().render(...e)}),ct=((...e)=>{ot().hydrate(...e)}),lt=((...e)=>{let t=at().createApp(...e),{mount:r}=t;return t.mount=e=>{let i=ft(e);if(!i)return;let a=t._component;!n.isFunction(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent=``);let o=r(i,!1,dt(i));return i instanceof Element&&(i.removeAttribute(`v-cloak`),i.setAttribute(`data-v-app`,``)),o},t}),ut=((...e)=>{let t=ot().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=ft(e);if(t)return n(t,!0,dt(t))},t});function dt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function ft(e){return n.isString(e)?document.querySelector(e):e}let pt=!1;e.Transition=m,e.TransitionGroup=Me,e.VueElement=Ce,e.createApp=lt,e.createSSRApp=ut,e.defineCustomElement=xe,e.defineSSRCustomElement=Se,e.hydrate=ct,e.initDirectivesForSSR=()=>{pt||(pt=!0,Xe(),te())},e.nodeOps=c,e.patchProp=ve,e.render=st,e.useCssModule=Ee,e.useCssVars=P,e.useHost=we,e.useShadowRoot=Te,e.vModelCheckbox=q,e.vModelDynamic=qe,e.vModelRadio=Ue,e.vModelSelect=We,e.vModelText=Ve,e.vShow=ee,e.withKeys=tt,e.withModifiers=$e,Object.keys(t).forEach(function(n){n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])})})),Ie=o(((e,t)=>{t.exports=Fe()})),W=s({compile:()=>Le});l(W,u(Ie()));
41
+ /**
42
+ * vue v3.5.34
43
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
44
+ * @license MIT
45
+ **/
46
+ const Le=()=>{};function Re(e,t){return(0,W.getCurrentScope)()?((0,W.onScopeDispose)(e,t),!0):!1}const ze=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const Be=Object.prototype.toString,G=e=>Be.call(e)===`[object Object]`,K=()=>{};function Ve(...e){if(e.length!==1)return(0,W.toRef)(...e);let t=e[0];return typeof t==`function`?(0,W.readonly)((0,W.customRef)(()=>({get:t,set:K}))):(0,W.ref)(t)}function q(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}const He=e=>e();function Ue(e,t={}){let n,r,i=K,a=e=>{clearTimeout(e),i(),i=K},o;return s=>{let c=(0,W.toValue)(e),l=(0,W.toValue)(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function We(e=He,t={}){let{initialState:n=`active`}=t,r=Ve(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:(0,W.shallowReadonly)(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function J(e){return Array.isArray(e)?e:[e]}function Ge(e){return e||(0,W.getCurrentInstance)()}function Ke(e,t=200,n={}){return q(Ue(t,n),e)}function qe(e,t,n={}){let{eventFilter:r=He,...i}=n;return(0,W.watch)(e,q(r,t),i)}function Je(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=We(r,{initialState:i});return{stop:qe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ye(e,t=!0,n){Ge(n)?(0,W.onMounted)(e,n):t?e():(0,W.nextTick)(e)}function Xe(e,t){Ge(t)&&(0,W.onUnmounted)(e,t)}function Ze(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=(0,W.shallowRef)(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=(0,W.toValue)(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&ze&&l(),((0,W.isRef)(t)||typeof t==`function`)&&Re((0,W.watch)(t,()=>{o.value&&ze&&l()})),Re(c),{isActive:(0,W.shallowReadonly)(o),pause:c,resume:l}}function Qe(e,t,n){return(0,W.watch)(e,t,{...n,immediate:!0})}const $e=ze?window:void 0,et=ze?window.document:void 0;ze&&window.navigator,ze&&window.location;function tt(e){let t=(0,W.toValue)(e);return t?.$el??t}function nt(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=(0,W.computed)(()=>{let t=J((0,W.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Qe(()=>[n.value?.map(e=>tt(e))??[$e].filter(e=>e!=null),J((0,W.toValue)(n.value?e[1]:e[0])),J((0,W.unref)(n.value?e[2]:e[1])),(0,W.toValue)(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=G(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function rt(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=$e,once:a=!1}=t,o=(0,W.shallowRef)(!1),s=(0,W.computed)(()=>{let e=(0,W.toValue)(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),Re(f),{isActive:(0,W.shallowReadonly)(o),pause:f,resume:d}}const it=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},at=`__vueuse_ssr_handlers__`,ot=st();function st(){return at in it||(it[at]=it[at]||{}),it[at]}function ct(e,t){return ot[e]||t}function lt(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 ut={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()}},dt=`vueuse-storage`;function ft(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=$e,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?W.shallowRef:W.ref)(typeof t==`function`?t():t),h=(0,W.computed)(()=>(0,W.toValue)(e));if(!n)try{n=ct(`getDefaultStorage`,()=>$e?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=(0,W.toValue)(t),_=lt(g),v=r.serializer??ut[_],{pause:y,resume:b}=Je(m,e=>C(e),{flush:i,deep:a,eventFilter:d});(0,W.watch)(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?nt(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):nt(u,dt,e=>{p&&!x||E(e)})),p?Ye(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(dt,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?(0,W.nextTick)(b):b()}}}}function E(e){T(e.detail)}return m}function pt(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>rt(e,{immediate:n}):n=>Ze(n,t,e)}return rt}function mt(e={}){let{controls:t=!1,scheduler:n=pt(e)}=e,r=(0,W.shallowRef)(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function ht(e,t=K,n={}){let{immediate:r=!0,manual:i=!1,type:a=`text/javascript`,async:o=!0,crossOrigin:s,referrerPolicy:c,noModule:l,defer:u,document:d=et,attrs:f={},nonce:p=void 0}=n,m=(0,W.shallowRef)(null),h=null,g=n=>new Promise((r,i)=>{let h=e=>(m.value=e,r(e),e);if(!d){r(!1);return}let g=!1,_=d.querySelector(`script[src="${(0,W.toValue)(e)}"]`);_?_.hasAttribute(`data-loaded`)&&h(_):(_=d.createElement(`script`),_.type=a,_.async=o,_.src=(0,W.toValue)(e),u&&(_.defer=u),s&&(_.crossOrigin=s),l&&(_.noModule=l),c&&(_.referrerPolicy=c),p&&(_.nonce=p),Object.entries(f).forEach(([e,t])=>_?.setAttribute(e,t)),g=!0);let v={passive:!0};nt(_,`error`,e=>i(e),v),nt(_,`abort`,e=>i(e),v),nt(_,`load`,()=>{_.setAttribute(`data-loaded`,`true`),t(_),h(_)},v),g&&(_=d.head.appendChild(_)),n||h(_)}),_=(e=!0)=>(h||=g(e),h),v=()=>{if(!d)return;h=null,m.value&&=null;let t=d.querySelector(`script[src="${(0,W.toValue)(e)}"]`);t&&d.head.removeChild(t)};return r&&!i&&Ye(_),i||Xe(v),{scriptTag:m,load:_,unload:v}}let gt=0;function _t(e,t={}){let n=(0,W.shallowRef)(!1),{document:r=et,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++gt}`}=t,s=(0,W.shallowRef)(e),c=()=>{},l=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(c=(0,W.watch)(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(c(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&Ye(l),a||Re(u),{id:o,css:s,unload:u,load:l,isLoaded:(0,W.shallowReadonly)(n)}}const vt=ft(`WALINE_EMOJI`,{}),yt=e=>/@[0-9]+\.[0-9]+\.[0-9]+/u.test(e),bt=e=>{let t=yt(e);if(t){let t=vt.value[e];if(t)return Promise.resolve(t)}return fetch(`${e}/info.json`).then(e=>e.json()).then(n=>{let r={folder:e,...n};return t&&(vt.value[e]=r),r})},xt=(e,t=``,n=``,r=``)=>`${t?`${t}/`:``}${n}${e}${r?`.${r}`:``}`,St=e=>Promise.all(e?e.map(e=>Se(e)?bt(_e(e)):Promise.resolve(e)):[]).then(e=>{let t={tabs:[],map:{}};return e.forEach(e=>{let{name:n,folder:r,icon:i,prefix:a=``,type:o,items:s}=e;t.tabs.push({name:n,icon:xt(i,r,a,o),items:s.map(e=>{let n=`${a}${e}`;return t.map[n]=xt(e,r,a,o),n})})}),t}),Ct=e=>{e.name!==`AbortError`&&console.error(e.message)},wt=e=>e instanceof HTMLElement?e:Se(e)?document.querySelector(e):null,Tt=e=>{let t=[...e].find(e=>e.type.includes(`image`));return t?t.getAsFile():null};function Et(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dt=Et();function Ot(e){Dt=e}var kt={exec:()=>null};function At(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Y(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Mt.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var jt=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Mt={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:At(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:At(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:At(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:At(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:At(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:At(e=>RegExp(`^ {0,${e}}>`))},Nt=/^(?:[ \t]*(?:\n|$))+/,Pt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ft=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,It=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Lt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,zt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bt=Y(zt).replace(/bull/g,Rt).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(),Vt=Y(zt).replace(/bull/g,Rt).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(),Ht=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ut=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Gt=Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Wt).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kt=Y(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rt).getRegex(),qt=`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`,Jt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Yt=Y(`^ {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`,Jt).replace(`tag`,qt).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xt=Y(Ht).replace(`hr`,It).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[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qt).getRegex(),Zt={blockquote:Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Xt).getRegex(),code:Pt,def:Gt,fences:Ft,heading:Lt,hr:It,html:Yt,lheading:Bt,list:Kt,newline:Nt,paragraph:Xt,table:kt,text:Ut},Qt=Y(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,It).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[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qt).getRegex(),$t={...Zt,lheading:Vt,table:Qt,paragraph:Y(Ht).replace(`hr`,It).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Qt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qt).getRegex()},en={...Zt,html:Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Jt).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:kt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Y(Ht).replace(`hr`,It).replace(`heading`,` *#{1,6} *[^
47
+ ]`).replace(`lheading`,Bt).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},tn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rn=/^( {2,}|\\)\n(?!\s*$)/,an=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,on=/[\p{P}\p{S}]/u,sn=/[\s\p{P}\p{S}]/u,cn=/[^\s\p{P}\p{S}]/u,ln=Y(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,sn).getRegex(),un=/(?!~)[\p{P}\p{S}]/u,dn=/(?!~)[\s\p{P}\p{S}]/u,fn=/(?:[^\s\p{P}\p{S}]|~)/u,pn=Y(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,jt?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),mn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hn=Y(mn,`u`).replace(/punct/g,on).getRegex(),gn=Y(mn,`u`).replace(/punct/g,un).getRegex(),_n=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,vn=Y(_n,`gu`).replace(/notPunctSpace/g,cn).replace(/punctSpace/g,sn).replace(/punct/g,on).getRegex(),yn=Y(_n,`gu`).replace(/notPunctSpace/g,fn).replace(/punctSpace/g,dn).replace(/punct/g,un).getRegex(),bn=Y(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,cn).replace(/punctSpace/g,sn).replace(/punct/g,on).getRegex(),xn=Y(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,on).getRegex(),Sn=Y(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,cn).replace(/punctSpace/g,sn).replace(/punct/g,on).getRegex(),Cn=Y(/\\(punct)/,`gu`).replace(/punct/g,on).getRegex(),wn=Y(/^<(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(),Tn=Y(Jt).replace(`(?:-->|$)`,`-->`).getRegex(),En=Y(`^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`,Tn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Dn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,On=Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Dn).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),kn=Y(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Dn).replace(`ref`,Wt).getRegex(),An=Y(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Wt).getRegex(),jn=Y(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,kn).replace(`nolink`,An).getRegex(),Mn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Nn={_backpedal:kt,anyPunctuation:Cn,autolink:wn,blockSkip:pn,br:rn,code:nn,del:kt,delLDelim:kt,delRDelim:kt,emStrongLDelim:hn,emStrongRDelimAst:vn,emStrongRDelimUnd:bn,escape:tn,link:On,nolink:An,punctuation:ln,reflink:kn,reflinkSearch:jn,tag:En,text:an,url:kt},Pn={...Nn,link:Y(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Dn).getRegex(),reflink:Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Dn).getRegex()},Fn={...Nn,emStrongRDelimAst:yn,emStrongLDelim:gn,delLDelim:xn,delRDelim:Sn,url:Y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Mn).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:Y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Mn).getRegex()},In={...Fn,br:Y(rn).replace(`{2,}`,`*`).getRegex(),text:Y(Fn.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Ln={normal:Zt,gfm:$t,pedantic:en},Rn={normal:Nn,gfm:Fn,breaks:In,pedantic:Pn},zn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Bn=e=>zn[e];function Vn(e,t){if(t){if(Mt.escapeTest.test(e))return e.replace(Mt.escapeReplace,Bn)}else if(Mt.escapeTestNoEncode.test(e))return e.replace(Mt.escapeReplaceNoEncode,Bn);return e}function Hn(e){try{e=encodeURI(e).replace(Mt.percentDecode,`%`)}catch{return null}return e}function Un(e,t){let n=e.replace(Mt.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Mt.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Mt.slashPipe,`|`);return n}function Wn(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Gn(e){let t=e.split(`
48
+ `),n=t.length-1;for(;n>=0&&Mt.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
49
+ `)}function Kn(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 qn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Jn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Yn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
50
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
51
+ `)}var Xn=class{options;rules;lexer;constructor(e){this.options=e||Dt}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 e=this.options.pedantic?t[0]:Gn(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Yn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Wn(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Wn(t[0],`
52
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Wn(t[0],`
53
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Wn(t[0],`
34
54
  `).split(`
35
- `),r="",s="",i=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let c=o.join(`
36
- `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
37
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
38
- ${c}`:c,s=s?`${s}
39
- ${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 m=p,x=m.raw+`
40
- `+n.join(`
41
- `),y=this.blockquote(x);i[i.length-1]=y,r=r.substring(0,r.length-m.raw.length)+y.raw,s=s.substring(0,s.length-m.text.length)+y.text;break}else if((p==null?void 0:p.type)==="list"){let m=p,x=m.raw+`
42
- `+n.join(`
43
- `),y=this.list(x);i[i.length-1]=y,r=r.substring(0,r.length-p.raw.length)+y.raw,s=s.substring(0,s.length-m.raw.length)+y.raw,n=x.substring(i.at(-1).raw.length).split(`
44
- `);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),i=s.length>1,l={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let o=this.rules.other.listItemRegex(s),a=!1;for(;e;){let u=!1,f="",p="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let m=eh(t[2].split(`
45
- `,1)[0],t[1].length),x=e.split(`
46
- `,1)[0],y=!m.trim(),A=0;if(this.options.pedantic?(A=2,p=m.trimStart()):y?A=t[1].length+1:(A=m.search(this.rules.other.nonSpaceChar),A=A>4?1:A,p=m.slice(A),A+=t[1].length),y&&this.rules.other.blankLine.test(x)&&(f+=x+`
47
- `,e=e.substring(x.length+1),u=!0),!u){let _=this.rules.other.nextBulletRegex(A),T=this.rules.other.hrRegex(A),O=this.rules.other.fencesBeginRegex(A),S=this.rules.other.headingBeginRegex(A),F=this.rules.other.htmlBeginRegex(A),fe=this.rules.other.blockquoteBeginRegex(A);for(;e;){let ie=e.split(`
48
- `,1)[0],D;if(x=ie,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),D=x):D=x.replace(this.rules.other.tabCharGlobal," "),O.test(x)||S.test(x)||F.test(x)||fe.test(x)||_.test(x)||T.test(x))break;if(D.search(this.rules.other.nonSpaceChar)>=A||!x.trim())p+=`
49
- `+D.slice(A);else{if(y||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(m)||S.test(m)||T.test(m))break;p+=`
50
- `+x}y=!x.trim(),f+=ie+`
51
- `,e=e.substring(ie.length+1),m=D.slice(A)}}l.loose||(a?l.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0)),l.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=f}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((n=u.tokens[0])==null?void 0:n.type)==="text"||((r=u.tokens[0])==null?void 0:r.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(u.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};u.checked=p.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=p.raw+u.tokens[0].raw,u.tokens[0].text=p.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(p)):u.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):u.tokens.unshift(p)}}if(!l.loose){let f=u.tokens.filter(m=>m.type==="space"),p=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.raw));l.loose=p}}if(l.loose)for(let u of l.items){u.loose=!0;for(let f of u.tokens)f.type==="text"&&(f.type="paragraph")}return l}}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 l;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=_o(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
52
- `):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(_o(o,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)===`
53
- `?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=Mn(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=Xf(t[2],"()");if(i===-2)return;if(i>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).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)),$o(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 $o(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,l,o=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(l=[...i].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let u=[...r[0]][0].length,f=e.slice(0,s+r.index+u+l);if(Math.min(s,l)%2){let m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}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,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,l,o=s,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+s);(r=a.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(l=[...i].length,l!==s))continue;if(r[3]||r[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let c=[...r[0]][0].length,u=e.slice(0,s+r.index+c+l),f=u.slice(s,-s);return{type:"del",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}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}}}},Ze=class zs{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ut,this.options.tokenizer=this.options.tokenizer||new Tr,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:$e,block:Lr.normal,inline:In.normal};this.options.pedantic?(n.block=Lr.pedantic,n.inline=In.pedantic):this.options.gfm&&(n.block=Lr.gfm,this.options.breaks?n.inline=In.breaks:n.inline=In.gfm),this.tokenizer.rules=n}static get rules(){return{block:Lr,inline:In}}static lex(t,n){return new zs(n).lex(t)}static lexInline(t,n){return new zs(n).inlineTokens(t)}lex(t){t=t.replace($e.carriageReturn,`
54
- `),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($e.tabCharGlobal," ").replace($e.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+=`
55
- `: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+=(c.raw.endsWith(`
56
- `)?"":`
57
- `)+o.raw,c.text+=`
58
- `+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+=(c.raw.endsWith(`
59
- `)?"":`
60
- `)+o.raw,c.text+=`
61
- `+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},n.push(o));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(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&&(o=this.tokenizer.paragraph(a))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
62
- `)?"":`
63
- `)+o.raw,c.text+=`
64
- `+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+=(c.raw.endsWith(`
65
- `)?"":`
66
- `)+o.raw,c.text+=`
67
- `+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 a,c,u,f,p;let r=t,s=null;if(this.tokens.links){let m=Object.keys(this.tokens.links);if(m.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)m.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);let i;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=s[2]?s[2].length:0,r=r.slice(0,s.index+i)+"["+"a".repeat(s[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let l=!1,o="";for(;t;){l||(o=""),l=!1;let m;if((f=(u=this.options.extensions)==null?void 0:u.inline)!=null&&f.some(y=>(m=y.call({lexer:this},t,n))?(t=t.substring(m.raw.length),n.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);let y=n.at(-1);m.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=m.raw,y.text+=m.text):n.push(m);continue}if(m=this.tokenizer.emStrong(t,r,o)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.del(t,r,o)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),n.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),n.push(m);continue}let x=t;if((p=this.options.extensions)!=null&&p.startInline){let y=1/0,A=t.slice(1),_;this.options.extensions.startInline.forEach(T=>{_=T.call({lexer:this},A),typeof _=="number"&&_>=0&&(y=Math.min(y,_))}),y<1/0&&y>=0&&(x=t.substring(0,y+1))}if(m=this.tokenizer.inlineText(x)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(o=m.raw.slice(-1)),l=!0;let y=n.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=m.raw,y.text+=m.text):n.push(m);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return n}},Ir=class{options;parser;constructor(e){this.options=e||Ut}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let r=(i=(t||"").match($e.notSpaceStart))==null?void 0:i[0],s=e.replace($e.endingNewline,"")+`
68
- `;return r?'<pre><code class="language-'+ot(r)+'">'+(n?s:ot(s,!0))+`</code></pre>
69
- `:"<pre><code>"+(n?s:ot(s,!0))+`</code></pre>
55
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
56
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
57
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
58
+ ${s}`:s,r=r?`${r}
59
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
60
+ `+e.join(`
61
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
62
+ `+e.join(`
63
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
64
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={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 a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=qn(t[2].split(`
65
+ `,1)[0],t[1].length),l=e.split(`
66
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
67
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
68
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
69
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
70
+ `+l}u=!l.trim(),r+=p+`
71
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Gn(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Wn(t[0],`
72
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Un(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
73
+ `):[],a={type:`table`,raw:Wn(t[0],`
74
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Un(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Wn(t[0],`
75
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
76
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}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 e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Wn(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Kn(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Jn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.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 e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Jn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Zn=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Dt,this.options.tokenizer=this.options.tokenizer||new Xn,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 t={other:Mt,block:Ln.normal,inline:Rn.normal};this.options.pedantic?(t.block=Ln.pedantic,t.inline=Rn.pedantic):this.options.gfm&&(t.block=Ln.gfm,this.options.breaks?t.inline=Rn.breaks:t.inline=Rn.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ln,inline:Rn}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Mt.carriageReturn,`
77
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Mt.tabCharGlobal,` `).replace(Mt.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
78
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
79
+ `)?``:`
80
+ `)+i.raw,n.text+=`
81
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
82
+ `)?``:`
83
+ `)+i.raw,n.text+=`
84
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
85
+ `)?``:`
86
+ `)+i.raw,r.text+=`
87
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
88
+ `)?``:`
89
+ `)+i.raw,n.text+=`
90
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Qn=class{options;parser;constructor(e){this.options=e||Dt}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Mt.notSpaceStart)?.[0],i=e.replace(Mt.endingNewline,``)+`
91
+ `;return r?`<pre><code class="language-`+Vn(r)+`">`+(n?i:Vn(i,!0))+`</code></pre>
92
+ `:`<pre><code>`+(n?i:Vn(i,!0))+`</code></pre>
70
93
  `}blockquote({tokens:e}){return`<blockquote>
71
94
  ${this.parser.parse(e)}</blockquote>
72
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
95
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
73
96
  `}hr(e){return`<hr>
74
- `}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+`>
75
- `+r+"</"+s+`>
97
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
98
+ `+r+`</`+i+`>
76
99
  `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
77
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
78
- `}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>
100
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
101
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
79
102
  <thead>
80
103
  `+t+`</thead>
81
104
  `+r+`</table>
82
105
  `}tablerow({text:e}){return`<tr>
83
106
  ${e}</tr>
84
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
85
- `}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>${ot(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=xo(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+ot(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=xo(e);if(s===null)return ot(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${ot(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ot(e.text)}},Ts=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""}checkbox({raw:e}){return e}},Ye=class Os{options;renderer;textRenderer;constructor(t){this.options=t||Ut,this.options.renderer=this.options.renderer||new Ir,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ts}static parse(t,n){return new Os(n).parse(t)}static parseInline(t,n){return new Os(n).parseInline(t)}parse(t){var r,s;let n="";for(let i=0;i<t.length;i++){let l=t[i];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[l.type]){let a=l,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=c||"";continue}}let o=l;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}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"checkbox":{r+=n.checkbox(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}},Pn=(Pr=class{options;block;constructor(t){this.options=t||Ut}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ze.lex:Ze.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}},jr(Pr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),jr(Pr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Pr),Co=class{defaults=xs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=Ir;TextRenderer=Ts;Lexer=Ze;Tokenizer=Tr;Hooks=Pn;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 Ir(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 Tr(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 Pn;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];Pn.passThroughHooks.has(i)?s[l]=c=>{if(this.defaults.async&&Pn.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await o.call(s,c);return a.call(s,f)})();let u=o.call(s,c);return a.call(s,u)}:s[l]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await o.apply(s,c);return f===!1&&(f=await a.apply(s,c)),f})();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 Ze.lex(e,t??this.defaults)}parser(e,t){return Ye.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 l=s.hooks?await s.hooks.preprocess(t):t,o=await(s.hooks?await s.hooks.provideLexer():e?Ze.lex:Ze.lexInline)(l,s),a=s.hooks?await s.hooks.processAllTokens(o):o;s.walkTokens&&await Promise.all(this.walkTokens(a,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():e?Ye.parse:Ye.parseInline)(a,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let l=(s.hooks?s.hooks.provideLexer():e?Ze.lex:Ze.lexInline)(t,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let o=(s.hooks?s.hooks.provideParser():e?Ye.parse:Ye.parseInline)(l,s);return s.hooks&&(o=s.hooks.postprocess(o)),o}catch(l){return i(l)}}}onError(e,t){return n=>{if(n.message+=`
86
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ot(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Nt=new Co;function de(e,t){return Nt.parse(e,t)}de.options=de.setOptions=function(e){return Nt.setOptions(e),de.defaults=Nt.defaults,lo(de.defaults),de},de.getDefaults=xs,de.defaults=Ut,de.use=function(...e){return Nt.use(...e),de.defaults=Nt.defaults,lo(de.defaults),de},de.walkTokens=function(e,t){return Nt.walkTokens(e,t)},de.parseInline=Nt.parseInline,de.Parser=Ye,de.parser=Ye.parse,de.Renderer=Ir,de.TextRenderer=Ts,de.Lexer=Ze,de.lexer=Ze.lex,de.Tokenizer=Tr,de.Hooks=Pn,de.parse=de;function nh(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=So(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Ro(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.");Ro(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=So(n),i=s?e.langPrefix+To(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:To(t,!0)}
87
- </code></pre>`}}}}function So(e){return(e||"").match(/\S*/)[0]}function Ro(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Ao=/[&<>"']/,rh=new RegExp(Ao.source,"g"),Eo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sh=new RegExp(Eo.source,"g"),ih={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Lo=e=>ih[e];function To(e,t){if(t){if(Ao.test(e))return e.replace(rh,Lo)}else if(Eo.test(e))return e.replace(sh,Lo);return e}const lh=/\$.*?\$/,oh=/^\$(.*?)\$/,ah=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ch=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=ah.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(lh);return n===-1?t.length:n},tokenizer(t){const n=oh.exec(t);if(n!=null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Io=(e="",t={})=>e.replaceAll(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),uh=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new Co;if(s.setOptions({breaks:!0}),n&&s.use(nh({highlight:n})),r){const i=ch(r);s.use({extensions:i})}return s.parse(Io(e,t))},Is=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},fh=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),hh=e=>e.match(/[\u4E00-\u9FD5]/gu),ph=e=>{var t,n;return(((t=fh(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=hh(e))==null?void 0:n.length)??0)},dh=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if((e==null?void 0:e.platform)!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&Number.parseInt(n.split(".")[0],10)>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Mo=({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>0&&Ws({serverURL:Nn(e),paths:Array.from(i,l=>pi(Is(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.textContent=l[a].toString()})}).catch(so),s.abort.bind(s)},Po=({size:e})=>W("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[W("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"}),W("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"})]),gh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),mh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),vh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"}),W("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"})]),bh=({active:e=!1})=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"})]),yh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"}),W("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"})]),wh=()=>W("svg",{width:"16",height:"16",ariaHidden:"true"},W("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"})),kh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),xh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),_h=()=>W("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},W("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"})),$h=()=>W("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[W("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"})]),zn=({size:e=100})=>W("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},W("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},W("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Ch=()=>W("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[W("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"}),W("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"})]),zo=()=>W("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},W("g",{transform:"translate(0 -1028.4)"},W("g",{},[W("path",{d:"m4 1031.4c-1.1046 0-2 0.9-2 2v16c0 1.1 0.8954 2 2 2h16c1.105 0 2-0.9 2-2v-16c0-1.1-0.895-2-2-2h-16z",fill:"#d35400"}),W("path",{d:"m4 2c-1.1046 0-2 0.8954-2 2v16c0 1.105 0.8954 2 2 2h16c1.105 0 2-0.895 2-2v-16c0-1.1046-0.895-2-2-2h-16z",transform:"translate(0 1028.4)",fill:"#e67e22"}),W("path",{d:"m5 1034.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z",fill:"#d35400"}),W("path",{d:"m5 1033.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z",fill:"#ecf0f1"})]))),Sh=()=>W("svg",{fill:"currentColor",width:"24",height:"24",viewBox:"-3 0 19 19",class:"cf-icon-svg"},W("path",{d:"M.926 12.818a1.403 1.403 0 1 1 0 1.984 1.402 1.402 0 0 1 0-1.984zm10.531 2.357a1.03 1.03 0 0 1-1.029-1.03 8.775 8.775 0 0 0-.694-3.438A8.826 8.826 0 0 0 1.591 5.31a1.03 1.03 0 1 1 0-2.059 10.817 10.817 0 0 1 4.24.857 10.893 10.893 0 0 1 3.463 2.334 10.867 10.867 0 0 1 3.19 7.703 1.027 1.027 0 0 1-1.027 1.029zm-4.538 0a1.03 1.03 0 0 1-1.029-1.03 4.297 4.297 0 0 0-4.299-4.298 1.03 1.03 0 0 1 0-2.059 6.362 6.362 0 0 1 5.857 3.883 6.298 6.298 0 0 1 .5 2.475 1.03 1.03 0 0 1-1.029 1.029z"})),Rh=()=>ln("WALINE_USER_META",{nick:"",mail:"",link:""}),Ah=()=>ln("WALINE_COMMENT_BOX_EDITOR",""),Eh="WALINE_LIKE",Lh=ln(Eh,[]),Oo=()=>Lh,Th="WALINE_REACTION",Ih=ln(Th,{}),jo=()=>Ih;var Ms={},at={},ct={},Fo;function Do(){if(Fo)return ct;Fo=1;var e=ct&&ct.__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{p(l.next(m))}catch(x){c(x)}}function f(m){try{p(l.throw(m))}catch(x){c(x)}}function p(m){m.done?a(m.value):o(m.value).then(u,f)}p((l=l.apply(r,s||[])).next())})},t=ct&&ct.__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(p){return function(m){return f([p,m])}}function f(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=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++,o=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(m){p=[6,m],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ct,"__esModule",{value:!0}),ct.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 ct.ReCaptchaInstance=n,ct}var Uo;function Mh(){if(Uo)return at;Uo=1;var e=at&&at.__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(at,"__esModule",{value:!0}),at.getInstance=at.load=void 0;var t=Do(),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(p){return p(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 p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=p+"?render=explicit"+m,new Promise(function(x,y){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(A){s.setLoadingState(n.NOT_LOADED),y(A)},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 at.load=r.load,at.getInstance=r.getInstance,at}var Ho;function Ph(){return Ho||(Ho=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Mh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Do();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Ms)),Ms}var zh=Ph();const No={},Oh=e=>{const t=No[e]??(No[e]=zh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},jh=e=>({execute:async t=>{const{load:n}=of("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const{turnstile:r}=window;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),Fh="WALINE_USER",Dh=ln(Fh,{}),Mr=()=>Dh,Uh={key:0,class:"wl-reaction"},Hh=["textContent"],Nh={class:"wl-reaction-list"},Bh=["onClick"],Vh={class:"wl-reaction-img"},Wh=["src","alt"],qh=["textContent"],Kh=["textContent"];var Gh=Ot({__name:"ArticleReaction",setup(e){const t=jo(),n=cr(Hn),r=G(-1),s=G([]),i=pe(()=>n.value.locale),l=pe(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=pe(()=>{var f;const{path:p}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:i.value[`reaction${x}`],active:t.value[p]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[y]=await Dn({serverURL:f,lang:p,paths:[m],type:l.value.map((A,_)=>`reaction${_}`),signal:x.signal});s.value=l.value.map((A,_)=>y[`reaction${_}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:m,path:x}=n.value,y=t.value[x];r.value=f,y!=null&&(await Vt({serverURL:p,lang:m,path:x,type:`reaction${y}`,action:"desc"}),s.value[y]=Math.max(s.value[y]-1,0)),y!==f&&(await Vt({serverURL:p,lang:m,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),y===f?delete t.value[x]:t.value[x]=f,r.value=-1};return en(()=>{Ft(()=>[n.value.serverURL,n.value.path],()=>c())}),ss(()=>{a==null||a()}),(f,p)=>o.value?(E(),P("div",Uh,[M("div",{class:"wl-reaction-title",textContent:Q(i.value.reactionTitle)},null,8,Hh),M("ul",Nh,[(E(!0),P(se,null,Ce(o.value,({active:m,icon:x,desc:y},A)=>(E(),P("li",{key:A,class:me(["wl-reaction-item",{active:m}]),onClick:_=>u(A)},[M("div",Vh,[M("img",{src:x,alt:y},null,8,Wh),r.value===A?(E(),qe(N(zn),{key:0,class:"wl-reaction-loading"})):(E(),P("div",{key:1,class:"wl-reaction-votes",textContent:Q(s.value[A]||0)},null,8,qh))]),M("div",{class:"wl-reaction-text",textContent:Q(y)},null,8,Kh)],10,Bh))),128))])])):q("v-if",!0)}}),On=new Map;function Zh(e){var t=On.get(e);t&&t.destroy()}function Yh(e){var t=On.get(e);t&&t.update()}var jn=null;typeof window>"u"?((jn=function(e){return e}).destroy=function(e){return e},jn.update=function(e){return e}):((jn=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"&&!On.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(p){return r.style[p]=f[p]}),On.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",On.set(r,{destroy:a,update:u}),u()}function c(f){var p,m,x=f.restoreTextAlign,y=x===void 0?null:x,A=f.testForHeightReduction,_=A===void 0||A,T=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),_&&(p=(function(S){for(var F=[];S&&S.parentNode&&S.parentNode instanceof Element;)S.parentNode.scrollTop&&F.push([S.parentNode,S.parentNode.scrollTop]),S=S.parentNode;return function(){return F.forEach(function(fe){var ie=fe[0],D=fe[1];ie.style.scrollBehavior="auto",ie.scrollTop=D,ie.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",y&&(r.style.textAlign=y),p&&p(),i!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=m),T!==l.overflow&&!y)){var O=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=O==="start"?"end":"start"),c({restoreTextAlign:O,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}})(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Zh),e},jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Yh),e});var Bo=jn;const Jh=["data-index"],Qh=["src","title","onClick"];var Xh=Ot({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){let t=null;const n=wt("wall"),r=G({}),s=G([]),i=()=>{const u=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return u>0?u:1},l=u=>Array.from({length:u},()=>[]),o=async u=>{var f;if(u>=e.items.length)return;await Xt();const p=[...((f=n.value)==null?void 0:f.children)??[]].reduce((m,x)=>x.getBoundingClientRect().height<m.getBoundingClientRect().height?x:m);s.value[Number(p.dataset.index)].push(u),await o(u+1)},a=async(u=!1)=>{if(s.value.length===i()&&!u)return;s.value=l(i());const{scrollY:f}=window;await o(0),window.scrollTo({top:f})},c=u=>{r.value[u.target.src]=!0};return en(()=>{a(!0),t=new ResizeObserver(()=>{a()}),t.observe(n.value),yt(()=>[e.items],()=>{r.value={},a(!0)}),yt(()=>[e.columnWidth,e.gap],()=>{a()})}),Ac(()=>{t.unobserve(n.value)}),(u,f)=>(E(),P("div",{ref_key:"wall",ref:n,class:"wl-gallery",style:Et({gap:`${e.gap}px`})},[(E(!0),P(se,null,Ce(s.value,(p,m)=>(E(),P("div",{key:m,class:"wl-gallery-column","data-index":m,style:Et({gap:`${e.gap}px`})},[(E(!0),P(se,null,Ce(p,x=>(E(),P(se,{key:x},[r.value[e.items[x].src]?q("v-if",!0):(E(),qe(N(zn),{key:0,size:36,style:{margin:"20px auto"}})),M("img",{class:"wl-gallery-item",src:e.items[x].src,title:e.items[x].title,loading:"lazy",onLoad:c,onClick:y=>u.$emit("insert",`![](${e.items[x].src})`)},null,40,Qh)],64))),128))],12,Jh))),128))],4))}});const ep={key:0,class:"wl-login-info"},tp={class:"wl-avatar"},np=["title"],rp=["title"],sp=["src"],ip=["title","textContent"],lp={class:"wl-panel"},op=["for","textContent"],ap=["id","onUpdate:modelValue","name","type"],cp=["placeholder"],up={class:"wl-preview"},fp=["innerHTML"],hp={class:"wl-footer"},pp={class:"wl-actions"},dp={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},gp=["title"],mp=["title"],vp=["title","aria-label"],bp=["title"],yp={class:"wl-info"},wp={class:"wl-text-number"},kp={key:0},xp=["textContent"],_p=["textContent"],$p=["disabled"],Cp=["placeholder"],Sp={key:1,class:"wl-loading"},Rp=["title","onClick","onMouseenter"],Ap=["src","alt"],Ep=["src"],Lp={key:0,class:"wl-tabs"},Tp=["onClick"],Ip=["src","alt","title"],Mp=["title"];var Vo=Ot({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=cr(Hn),i=Ah(),l=Rh(),o=Mr(),a=G({}),c=wt("textarea"),u=wt("image-uploader"),f=wt("emoji-button"),p=wt("emoji-popup"),m=wt("gif-button"),x=wt("gif-popup"),y=wt("gif-search"),A=G({tabs:[],map:{}}),_=G(0),T=G(!1),O=G(""),S=G({});let F;const fe=(g,v)=>{clearTimeout(F),O.value=v;const b=g.currentTarget,w=p.value;if(b&&w){const k=b.getBoundingClientRect(),R=w.getBoundingClientRect();S.value={left:`${k.left-R.left+k.width/2}px`,top:`${k.top-R.top}px`,transform:"translate(-50%, -100%)"}}},ie=()=>{F=setTimeout(()=>{O.value=""},50)},D=G(!1),ke=G(!1),ge=G(""),U=G(0),H=wn({loading:!0,list:[]}),Z=G(0),z=G(!1),K=G(""),Y=G(!1),De=G(!1),ae=pe(()=>s.value.locale),ut=pe(()=>!!o.value.token),_t=pe(()=>s.value.imageUploader!=null),ft=g=>{const v=c.value,b=v.selectionStart,w=v.selectionEnd||0,{scrollTop:k}=v;i.value=v.value.slice(0,b)+g+v.value.slice(w),v.focus(),v.selectionStart=b+g.length,v.selectionEnd=b+g.length,v.scrollTop=k},Ne=({key:g,ctrlKey:v,metaKey:b})=>{Y.value||(v||b)&&g==="Enter"&&Ct()},Bt=async g=>{const v=`![${s.value.locale.uploading} ${g.name}]()`;ft(v),Y.value=!0;try{const b=await s.value.imageUploader(g);i.value=i.value.replace(v,`\r
88
- ![${g.name}](${b})`)}catch(b){alert(b.message),i.value=i.value.replace(v,"")}finally{Y.value=!1}},zr=g=>{var v;if((v=g.dataTransfer)!=null&&v.items){const b=io(g.dataTransfer.items);b&&_t.value&&(Bt(b),g.preventDefault())}},Or=g=>{if(g.clipboardData){const v=io(g.clipboardData.items);v&&_t.value&&Bt(v)}},$t=()=>{const g=u.value;g.files&&_t.value&&Bt(g.files[0]).then(()=>{g.value=""})},Ct=async()=>{var g;const{serverURL:v,lang:b,login:w,wordLimit:k,requiredMeta:R,recaptchaV3Key:C,turnstileKey:$}=s.value,I={comment:K.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await dh()};if(!n.edit)if(o.value.token)I.nick=o.value.display_name,I.mail=o.value.email,I.link=o.value.url;else{if(w==="force")return;if(R.includes("nick")&&!I.nick){a.value.nick.focus(),alert(ae.value.nickError);return}if(R.includes("mail")&&!I.mail||I.mail&&!ka(I.mail)){a.value.mail.focus(),alert(ae.value.mailError);return}I.nick||(I.nick=ae.value.anonymous)}if(!I.comment){c.value.focus();return}if(!z.value){alert(ae.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",U.value.toString()));return}I.comment=Io(I.comment,A.value.map),n.replyId&&n.rootId&&(I.pid=n.replyId,I.rid=n.rootId,I.at=n.replyUser),Y.value=!0;try{C&&(I.recaptchaV3=await Oh(C).execute("social")),$&&(I.turnstile=await jh($).execute("social"));const L={serverURL:v,lang:b,token:o.value.token,comment:I},j=await(n.edit?un({objectId:n.edit.objectId,...L}):Bs(L));if(Y.value=!1,j.errmsg){alert(j.errmsg);return}r("submit",j.data),i.value="",ge.value="",await Xt(),n.replyId&&r("cancelReply"),(g=n.edit)!=null&&g.objectId&&r("cancelEdit")}catch(L){Y.value=!1,alert(L.message)}},on=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value;qs({serverURL:b,lang:v}).then(w=>{o.value=w,(w.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(w)),r("log")})},Fn=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},ht=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value,w=800,k=800,R=(window.innerWidth-w)/2,C=(window.innerHeight-k)/2,$=new URLSearchParams({lng:v,token:o.value.token}),I=window.open(`${b}/ui/profile?${$.toString()}`,"_blank",`width=${w},height=${k},left=${R},top=${C},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);I==null||I.postMessage({type:"TOKEN",data:o.value.token},"*")},js=g=>{var v,b,w,k;!((v=f.value)!=null&&v.contains(g.target))&&!((b=p.value)!=null&&b.contains(g.target))&&(T.value=!1),!((w=m.value)!=null&&w.contains(g.target))&&!((k=x.value)!=null&&k.contains(g.target))&&(D.value=!1)},h=async g=>{var v;const{scrollTop:b,clientHeight:w,scrollHeight:k}=g.target,R=(w+b)/k,C=s.value.search,$=((v=y.value)==null?void 0:v.value)??"";R<.9||H.loading||De.value||(H.loading=!0,(C.more&&H.list.length>0?await C.more($,H.list.length):await C.search($)).length>0?H.list=[...H.list,...C.more&&H.list.length>0?await C.more($,H.list.length):await C.search($)]:De.value=!0,H.loading=!1,setTimeout(()=>{g.target.scrollTop=b},50))},d=Ku(g=>{H.list=[],De.value=!1,h(g)},300);return Dt("click",js),Dt("message",({data:g})=>{(g==null?void 0:g.type)==="profile"&&(o.value={...o.value,...g.data},[localStorage,sessionStorage].filter(v=>v.getItem("WALINE_USER")).forEach(v=>{v.setItem("WALINE_USER",JSON.stringify(o))}))}),Ft([s,U],([g,v])=>{const{wordLimit:b}=g;b?v<b[0]&&b[0]!==0?([Z.value]=b,z.value=!1):v>b[1]?([,Z.value]=b,z.value=!1):([,Z.value]=b,z.value=!0):(Z.value=0,z.value=!0)}),yt(D,async g=>{var v;if(!g)return;const b=s.value.search;y.value&&(y.value.value=""),H.loading=!0,H.list=await(((v=b.default)==null?void 0:v.call(b))??b.search("")),H.loading=!1}),en(()=>{var g;(g=n.edit)!=null&&g.objectId&&(i.value=n.edit.orig),Ft(()=>i.value,v=>{const{highlighter:b,texRenderer:w}=s.value;K.value=v,ge.value=uh(v,{emojiMap:A.value.map,highlighter:b,texRenderer:w}),U.value=ph(v),v?Bo(c.value):Bo.destroy(c.value)}),Ft(()=>s.value.emoji,async v=>{A.value=await pf(v)})}),(g,v)=>{var b,w;return E(),P("div",{key:N(o).token,class:"wl-comment"},[N(s).login!=="disable"&&ut.value&&!((b=e.edit)!=null&&b.objectId)?(E(),P("div",ep,[M("div",tp,[M("button",{type:"submit",class:"wl-logout-btn",title:ae.value.logout,onClick:Fn},[ee(N(Po),{size:14})],8,np),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:ae.value.profile,onClick:ht},[M("img",{src:N(o).avatar,alt:"avatar"},null,8,sp)],8,rp)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:ae.value.profile,onClick:ht,textContent:Q(N(o).display_name)},null,8,ip)])):q("v-if",!0),M("div",lp,[N(s).login!=="force"&&N(s).meta.length&&!ut.value?(E(),P("div",{key:0,class:me(["wl-header",`item${N(s).meta.length}`])},[(E(!0),P(se,null,Ce(N(s).meta,k=>(E(),P("div",{key:k,class:"wl-header-item"},[M("label",{for:`wl-${k}`,textContent:Q(ae.value[k]+(N(s).requiredMeta.includes(k)||!N(s).requiredMeta.length?"":`(${ae.value.optional})`))},null,8,op),ar(M("input",{id:`wl-${k}`,ref_for:!0,ref:R=>{R&&(a.value[k]=R)},"onUpdate:modelValue":R=>N(l)[k]=R,class:me(["wl-input",`wl-${k}`]),name:k,type:k==="mail"?"email":"text"},null,10,ap),[[Ou,N(l)[k]]])]))),128))],2)):q("v-if",!0),ar(M("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":v[0]||(v[0]=k=>ve(i)?i.value=k:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:ae.value.placeholder,onKeydown:Ne,onDrop:zr,onPaste:Or},null,40,cp),[[ys,N(i)]]),ar(M("div",up,[v[7]||(v[7]=M("hr",null,null,-1)),M("h4",null,Q(ae.value.preview)+":",1),M("div",{class:"wl-content",innerHTML:ge.value},null,8,fp)],512),[[Pl,ke.value]]),M("div",hp,[M("div",pp,[M("a",dp,[ee(N(wh))]),ar(M("button",{ref:"emoji-button",type:"button",class:me(["wl-action",{active:T.value}]),title:ae.value.emoji,onClick:v[1]||(v[1]=k=>T.value=!T.value)},[ee(N(mh))],10,gp),[[Pl,A.value.tabs.length]]),N(s).search?(E(),P("button",{key:0,ref:"gif-button",type:"button",class:me(["wl-action",{active:D.value}]),title:ae.value.gif,onClick:v[2]||(v[2]=k=>D.value=!D.value)},[ee(N(Ch))],10,mp)):q("v-if",!0),M("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:$t},null,544),_t.value?(E(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:ae.value.uploadImage,"aria-label":ae.value.uploadImage},[ee(N(vh))],8,vp)):q("v-if",!0),M("button",{type:"button",class:me(["wl-action",{active:ke.value}]),title:ae.value.preview,onClick:v[3]||(v[3]=k=>ke.value=!ke.value)},[ee(N(yh))],10,bp)]),M("div",yp,[v[9]||(v[9]=M("div",{class:"wl-captcha-container"},null,-1)),M("div",wp,[rt(Q(U.value)+" ",1),N(s).wordLimit?(E(),P("span",kp,[v[8]||(v[8]=rt("  /  ",-1)),M("span",{class:me({illegal:!z.value}),textContent:Q(Z.value)},null,10,xp)])):q("v-if",!0),rt("  "+Q(ae.value.word),1)]),N(s).login!=="disable"&&!ut.value?(E(),P("button",{key:0,type:"button",class:"wl-btn",onClick:on,textContent:Q(ae.value.login)},null,8,_p)):q("v-if",!0),N(s).login!=="force"||ut.value?(E(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Y.value,onClick:Ct},[Y.value?(E(),qe(N(zn),{key:0,size:16})):(E(),P(se,{key:1},[rt(Q(ae.value.submit),1)],64))],8,$p)):q("v-if",!0)]),M("div",{ref:"gif-popup",class:me(["wl-gif-popup",{display:D.value}])},[M("input",{ref:"gif-search",type:"text",placeholder:ae.value.gifSearchPlaceholder,onInput:v[4]||(v[4]=(...k)=>N(d)&&N(d)(...k))},null,40,Cp),H.list.length?(E(),qe(Xh,{key:0,items:H.list,"column-width":200,gap:6,onInsert:v[5]||(v[5]=k=>ft(k)),onScroll:h},null,8,["items"])):q("v-if",!0),H.loading?(E(),P("div",Sp,[ee(N(zn),{size:30})])):q("v-if",!0)],2),M("div",{ref:"emoji-popup",class:me(["wl-emoji-popup",{display:T.value}])},[(E(!0),P(se,null,Ce(A.value.tabs,(k,R)=>(E(),P(se,{key:k.name},[R===_.value?(E(),P("div",{key:0,class:"wl-tab-wrapper",onScroll:ie},[(E(!0),P(se,null,Ce(k.items,C=>(E(),P("button",{key:C,type:"button",title:C,onClick:$=>ft(`:${C}:`),onMouseenter:$=>fe($,C),onMouseleave:ie},[T.value?(E(),P("img",{key:0,class:"wl-emoji",src:A.value.map[C],alt:C,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ap)):q("v-if",!0)],40,Rp))),128))],32)):q("v-if",!0)],64))),128)),M("div",null,[O.value?(E(),P("img",{key:0,class:"wl-emoji-preview",src:A.value.map[O.value],alt:"preview",loading:"lazy",referrerPolicy:"no-referrer",style:Et(S.value)},null,12,Ep)):q("v-if",!0)]),A.value.tabs.length>1?(E(),P("div",Lp,[(E(!0),P(se,null,Ce(A.value.tabs,(k,R)=>(E(),P("button",{key:k.name,type:"button",class:me(["wl-tab",{active:_.value===R}]),onClick:C=>_.value=R},[M("img",{class:"wl-emoji",src:k.icon,alt:k.name,title:k.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ip)],10,Tp))),128))])):q("v-if",!0)],2)])]),e.replyId||(w=e.edit)!=null&&w.objectId?(E(),P("button",{key:1,type:"button",class:"wl-close",title:ae.value.cancelReply,onClick:v[6]||(v[6]=k=>e.replyId?r("cancelReply"):r("cancelEdit"))},[ee(N(Po),{size:24})],8,Mp)):q("v-if",!0)])}}});const Pp=["id"],zp={class:"wl-user","aria-hidden":"true"},Op=["src"],jp={class:"wl-card"},Fp={class:"wl-head"},Dp=["href"],Up={key:1,class:"wl-nick"},Hp=["textContent"],Np=["textContent"],Bp=["textContent"],Vp=["textContent"],Wp={class:"wl-comment-actions"},qp=["title","href"],Kp=["title"],Gp=["title"],Zp={class:"wl-meta","aria-hidden":"true"},Yp=["data-value","textContent"],Jp={key:0,class:"wl-warning","aria-hidden":"true"},Qp={key:1,class:"wl-content"},Xp={key:0,class:"wl-reply-to"},ed=["href"],td=["innerHTML"],nd={key:2,class:"wl-admin-actions"},rd={class:"wl-comment-status"},sd=["disabled","onClick","textContent"],id={key:4,class:"wl-quote"};var ld=Ot({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=t,r=["approved","waiting","spam"],s=cr(Hn),i=Oo(),l=lf(),o=Mr(),a=pe(()=>s.value.locale),c=pe(()=>{const{link:A}=e.comment;return A?gi(A)?A:`https://${A}`:""}),u=pe(()=>i.value.includes(e.comment.objectId)),f=pe(()=>ya(new Date(e.comment.time),l.value,a.value)),p=pe(()=>o.value.type==="administrator"),m=pe(()=>e.comment.user_id&&o.value.objectId===e.comment.user_id),x=pe(()=>{var A;return e.comment.objectId===((A=e.reply)==null?void 0:A.objectId)}),y=pe(()=>{var A;return e.comment.objectId===((A=e.edit)==null?void 0:A.objectId)});return(A,_)=>{var T;const O=sl("CommentCard",!0);return E(),P("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[M("div",zp,[e.comment.avatar?(E(),P("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,Op)):q("v-if",!0),e.comment.type==="guest"?(E(),qe(N(_h),{key:1})):q("v-if",!0),e.comment.type==="administrator"?(E(),qe(N($h),{key:2})):q("v-if",!0)]),M("div",jp,[M("div",Fp,[c.value?(E(),P("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Q(e.comment.nick),9,Dp)):(E(),P("span",Up,Q(e.comment.nick),1)),e.comment.label?(E(),P("span",{key:2,class:"wl-badge",textContent:Q(e.comment.label)},null,8,Hp)):q("v-if",!0),e.comment.sticky?(E(),P("span",{key:3,class:"wl-badge",textContent:Q(a.value.sticky)},null,8,Np)):q("v-if",!0),typeof e.comment.level=="number"?(E(),P("span",{key:4,class:me(`wl-badge level${e.comment.level}`),textContent:Q(a.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Bp)):q("v-if",!0),M("span",{class:"wl-time",textContent:Q(f.value)},null,8,Vp),M("div",Wp,[p.value||m.value?(E(),P(se,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=S=>n("edit",e.comment))},[ee(N(xh))]),M("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=S=>n("delete",e.comment))},[ee(N(gh))])],64)):q("v-if",!0),m.value&&!N(s).noRss?(E(),P("a",{key:1,role:"button",class:"wl-rss",title:a.value.subscribeToReplies,href:`${N(s).serverURL}/api/comment/rss?user_id=${e.comment.user_id}`,target:"_blank",rel:"noopener noreferrer"},[ee(N(Sh))],8,qp)):q("v-if",!0),M("button",{type:"button",class:"wl-like",title:u.value?a.value.cancelLike:a.value.like,onClick:_[2]||(_[2]=S=>n("like",e.comment))},[ee(N(bh),{active:u.value},null,8,["active"]),rt(" "+Q("like"in e.comment?e.comment.like:""),1)],8,Kp),M("button",{type:"button",class:me(["wl-reply",{active:x.value}]),title:x.value?a.value.cancelReply:a.value.reply,onClick:_[3]||(_[3]=S=>n("reply",x.value?null:e.comment))},[ee(N(kh))],10,Gp)])]),M("div",Zp,[(E(),P(se,null,Ce(["addr","browser","os"],S=>(E(),P(se,null,[e.comment[S]?(E(),P("span",{key:S,class:me(`wl-${S}`),"data-value":e.comment[S],textContent:Q(e.comment[S])},null,10,Yp)):q("v-if",!0)],64))),64))]),e.comment.status==="waiting"&&!p.value?(E(),P("div",Jp,Q(a.value.commentUnderReview),1)):q("v-if",!0),y.value?q("v-if",!0):(E(),P("div",Qp,["reply_user"in e.comment&&e.comment.reply_user?(E(),P("div",Xp,[M("a",{href:"#"+e.comment.pid},"@"+Q(e.comment.reply_user.nick),9,ed),_[17]||(_[17]=M("span",null,": ",-1))])):q("v-if",!0),M("div",{innerHTML:e.comment.comment},null,8,td)])),p.value&&!y.value?(E(),P("div",nd,[M("span",rd,[(E(),P(se,null,Ce(r,S=>M("button",{key:S,type:"submit",class:me(`wl-btn wl-${S}`),disabled:e.comment.status===S,onClick:F=>n("status",{status:S,comment:e.comment}),textContent:Q(a.value[S])},null,10,sd)),64))]),p.value&&!("rid"in e.comment)?(E(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=S=>n("sticky",e.comment))},Q(e.comment.sticky?a.value.unsticky:a.value.sticky),1)):q("v-if",!0)])):q("v-if",!0),x.value||y.value?(E(),P("div",{key:3,class:me({"wl-reply-wrapper":x.value,"wl-edit-wrapper":y.value})},[ee(Vo,{edit:e.edit,"reply-id":(T=e.reply)==null?void 0:T.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=S=>n("log")),onCancelReply:_[6]||(_[6]=S=>n("reply",null)),onCancelEdit:_[7]||(_[7]=S=>n("edit",null)),onSubmit:_[8]||(_[8]=S=>n("submit",S))},null,8,["edit","reply-id","reply-user","root-id"])],2)):q("v-if",!0),"children"in e.comment?(E(),P("div",id,[(E(!0),P(se,null,Ce(e.comment.children,S=>(E(),qe(O,{key:S.objectId,comment:S,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=F=>n("log")),onDelete:_[10]||(_[10]=F=>n("delete",F)),onEdit:_[11]||(_[11]=F=>n("edit",F)),onLike:_[12]||(_[12]=F=>n("like",F)),onReply:_[13]||(_[13]=F=>n("reply",F)),onStatus:_[14]||(_[14]=F=>n("status",F)),onSticky:_[15]||(_[15]=F=>n("sticky",F)),onSubmit:_[16]||(_[16]=F=>n("submit",F))},null,8,["comment","reply","edit","root-id"]))),128))])):q("v-if",!0)])],8,Pp)}}});const Wo="3.13.0",od={"data-waline":""},ad={class:"wl-meta-head"},cd={class:"wl-count"},ud=["textContent"],fd={class:"wl-sort"},hd=["onClick"],pd={class:"wl-cards"},dd={key:1,class:"wl-operation"},gd=["textContent"],md={key:2,class:"wl-loading"},vd=["textContent"],bd={key:4,class:"wl-operation"},yd=["textContent"],wd={key:5,class:"wl-meta-foot"},kd={key:0,class:"wl-rss"},xd=["href","alt"],_d=["textContent"],$d=["href","alt"],Cd=["textContent"],Sd={key:1,class:"wl-power"};var Rd=Ot({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},noRss:{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=Mr(),r=Oo(),s=G("loading"),i=G(0),l=G(1),o=G(0),a=pe(()=>ma(t)),c=G(a.value.commentSorting),u=G([]),f=G(null),p=G(null),m=pe(()=>va(a.value.dark)),x=pe(()=>a.value.locale);cf(m,{id:"waline-darkmode"});let y=null;const A=U=>{const{serverURL:H,path:Z,pageSize:z}=a.value,K=new AbortController;s.value="loading",y==null||y(),Ns({serverURL:H,lang:a.value.lang,path:Z,pageSize:z,sortBy:hi[c.value],page:U,signal:K.signal,token:n.value.token}).then(Y=>{s.value="success",i.value=Y.count,u.value.push(...Y.data),l.value=U,o.value=Y.totalPages}).catch(Y=>{Y.name!=="AbortError"&&(console.error(Y.message),s.value="error")}),y=K.abort.bind(K)},_=()=>{A(l.value+1)},T=()=>{i.value=0,u.value=[],A(1)},O=U=>{c.value!==U&&(c.value=U,T())},S=U=>{f.value=U},F=U=>{p.value=U},fe=U=>{if(p.value)p.value.comment=U.comment,p.value.orig=U.orig;else if("rid"in U){const H=u.value.find(({objectId:Z})=>Z===U.rid);if(!H)return;Array.isArray(H.children)||(H.children=[]),H.children.push(U)}else u.value.unshift(U),i.value+=1},ie=async({comment:U,status:H})=>{if(U.status===H)return;const{serverURL:Z,lang:z}=a.value;await un({serverURL:Z,lang:z,token:n.value.token,objectId:U.objectId,comment:{status:H}}),U.status=H},D=async U=>{if("rid"in U)return;const{serverURL:H,lang:Z}=a.value;await un({serverURL:H,lang:Z,token:n.value.token,objectId:U.objectId,comment:{sticky:U.sticky?0:1}}),U.sticky=!U.sticky},ke=async({objectId:U})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:H,lang:Z}=a.value;await Vs({serverURL:H,lang:Z,token:n.value.token,objectId:U}),u.value.some((z,K)=>z.objectId===U?(u.value=u.value.filter((Y,De)=>De!==K),!0):z.children.some((Y,De)=>Y.objectId===U?(u.value[K].children=z.children.filter((ae,ut)=>ut!==De),!0):!1))},ge=async U=>{const{serverURL:H,lang:Z}=a.value,{objectId:z}=U,K=r.value.includes(z);await un({serverURL:H,lang:Z,objectId:z,token:n.value.token,comment:{like:!K}}),K?r.value=r.value.filter(Y=>Y!==z):(r.value=[...r.value,z],r.value.length>50&&(r.value=r.value.slice(-50))),U.like=Math.max(0,(U.like||0)+(K?-1:1))};return yc(Hn,a),en(async()=>{var U;Ft(()=>[t.serverURL,t.path],()=>{T()});const H=new URLSearchParams(location.search).get("token");if(!H)return;const Z=await fetch(`${a==null?void 0:a.value.serverURL}/token`,{headers:{Authorization:`Bearer ${H}`}}).then(K=>K.json()).catch(K=>(console.error(K),{}));!Z.errno&&(U=Z==null?void 0:Z.data)!=null&&U.objectId&&(n.value={...Z.data,token:H});const z=new URL(window.location.href);z.searchParams.delete("token"),history.replaceState(null,"",z.pathname+(z.searchParams.toString()?`?${z.searchParams.toString()}`:"")+z.hash)}),ss(()=>{y==null||y()}),(U,H)=>(E(),P("div",od,[ee(Gh),!f.value&&!p.value?(E(),qe(Vo,{key:0,onLog:T,onSubmit:fe})):q("v-if",!0),M("div",ad,[M("div",cd,[i.value?(E(),P("span",{key:0,class:"wl-num",textContent:Q(i.value)},null,8,ud)):q("v-if",!0),rt(" "+Q(x.value.comment),1)]),M("ul",fd,[(E(!0),P(se,null,Ce(N(da),Z=>(E(),P("li",{key:Z,class:me([Z===c.value?"active":""]),onClick:z=>O(Z)},Q(x.value[Z]),11,hd))),128))])]),M("div",pd,[(E(!0),P(se,null,Ce(u.value,Z=>(E(),qe(ld,{key:Z.objectId,"root-id":Z.objectId,comment:Z,reply:f.value,edit:p.value,onLog:T,onReply:S,onEdit:F,onSubmit:fe,onStatus:ie,onDelete:ke,onSticky:D,onLike:ge},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(E(),P("div",dd,[M("button",{type:"button",class:"wl-btn",onClick:T,textContent:Q(x.value.refresh)},null,8,gd)])):s.value==="loading"?(E(),P("div",md,[ee(N(zn),{size:30})])):u.value.length?l.value<o.value?(E(),P("div",bd,[M("button",{type:"button",class:"wl-btn",onClick:_,textContent:Q(x.value.more)},null,8,yd)])):q("v-if",!0):(E(),P("div",{key:3,class:"wl-empty",textContent:Q(x.value.sofa)},null,8,vd)),u.value.length||s.value!=="loading"?(E(),P("div",wd,[a.value.noRss?q("v-if",!0):(E(),P("div",kd,[M("a",{href:`${a.value.serverURL}/api/comment/rss?path=${encodeURIComponent(a.value.path)}`,target:"_blank",rel:"noopener noreferrer",alt:x.value.subPostComment},[ee(N(zo)),M("span",{textContent:Q(x.value.subPostComment)},null,8,_d)],8,xd),M("a",{href:`${a.value.serverURL}/api/comment/rss`,target:"_blank",rel:"noopener noreferrer",alt:x.value.subSiteComment},[ee(N(zo)),M("span",{textContent:Q(x.value.subSiteComment)},null,8,Cd)],8,$d)])),a.value.noCopyright?q("v-if",!0):(E(),P("div",Sd,[H[0]||(H[0]=rt(" Powered by ",-1)),H[1]||(H[1]=M("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),rt(" v"+Q(N(Wo)),1)]))])):q("v-if",!0)]))}});const qo=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.textContent=s.toString())})},Ko=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=[...document.querySelectorAll(n)],o=c=>{const u=Is(c);return u!=null&&t!==u},a=c=>Ks({serverURL:Nn(e),paths:c.map(u=>Is(u)??t),lang:s,signal:i.signal}).then(u=>{qo(u,c)}).catch(so);if(r){const c=l.filter(f=>!o(f)),u=l.filter(f=>o(f));Gs({serverURL:Nn(e),path:t,lang:s}).then(f=>{qo(f,c)}),u.length>0&&a(u)}else a(l);return i.abort.bind(i)},Ad=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?Sr(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=wn({...s}),o=wn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Mo({serverURL:l.serverURL,path:o.path,...Wt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&Ko({serverURL:l.serverURL,path:o.path,...Wt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=Zl(()=>W(Rd,{path:o.path,...l})),u.mount(i));const f=el(a),p=el(c);return{el:i,update:({comment:m,pageview:x,path:y=window.location.pathname,...A}={})=>{Object.entries(A).forEach(([_,T])=>{l[_]=T}),o.path=y,m!=null&&(o.comment=m),x!=null&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),p()}}},Ed=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Mr(),i=Sr(e),l=new AbortController;return Zs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length>0?(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()}})},Ld=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=Sr(e),o=new AbortController;return Ys({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>{if(!l||a.length===0)return{users:a,destroy:()=>{o.abort()}};const c={...ui(s),...typeof r=="object"?r:{}};return l.innerHTML=`<ul class="wl-user-${i}">${a.map((u,f)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link?`<a href="${u.link}" target="_blank">`:"",'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,typeof u.level=="number"?`<span class="wl-badge">${c[`level${u.level}`]??`Level ${u.level}`}</span>`:"",u.label?`<span class="wl-badge">${u.label}</span>`:"","</div>",u.link,"</div>",u.link?"</a>":"","</li>"].filter(Boolean).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}})},Td=async({serverURL:e,lang:t,path:n})=>{const r=[1,2,3,4,5],s=new AbortController,i=s.abort.bind(s),[l]=await Dn({serverURL:e,lang:t,paths:[n],type:Array.from({length:5},(o,a)=>`reaction${a}`),signal:s.signal});return{value:r.map((o,a)=>l[`reaction${a}`]),abort:i}},Ps=e=>{if(Number.isNaN(e))return 0;const t=Math.round(e);return Math.min(5,Math.max(0,t))},Go=(e=[])=>Array.from({length:5},(t,n)=>{const r=e[n]??0;return typeof r=="number"&&r>0?r:0});var Id=Ot({name:"WalineStarDisplay",props:{score:{type:Number,default:0}},setup(e){const t=pe(()=>Ps(e.score));return{displayScore:t,displayClass:n=>t.value>=n?"wl-star-solid":"wl-star-outline"}}}),Zo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const Md={class:"wl-star-icon",viewBox:"0 0 24 24"};function Pd(e,t,n,r,s,i){return E(),P(se,null,Ce([1,2,3,4,5],l=>M("span",{key:l,class:"wl-star-item"},[(E(),P("svg",Md,[M("path",{class:me(e.displayClass(l)),d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"},null,2)]))])),64)}var zd=Zo(Id,[["render",Pd]]),Od=Ot({name:"WalineStarWidget",components:{StarDisplay:zd},props:{path:{type:String,default:""},serverURL:{type:String,default:""},lang:{type:String,default:""}},emits:["rate"],setup(e,{emit:t}){const n=G(null),r=jo(),s=G(Ps((r.value[e.path]??0)+1)),i=G(null),l=G(Go([])),o=G(!1);en(()=>{Ft(()=>[e.serverURL,e.path],async()=>{try{const _=await Td({serverURL:e.serverURL,path:e.path,lang:e.lang});l.value=Go(_.value)}catch(_){console.error("Failed to fetch reaction data:",_)}})});const a=pe(()=>i.value??s.value),c=pe(()=>l.value.reduce((_,T)=>_+T,0)),u=pe(()=>l.value.map(_=>c.value?_/c.value:0)),f=_=>{if(!n.value)return 0;const{firstElementChild:T,lastElementChild:O}=n.value;if(!T||!O)return 0;const{left:S}=T.getBoundingClientRect(),{right:F}=O.getBoundingClientRect(),fe=F-S,ie=(_.clientX-S)/fe,D=Math.min(1,Math.max(0,ie))*5;return Ps(D)},p=_=>{i.value=f(_)},m=()=>{i.value=null},x=async _=>{const T=i.value??f(_);if(T===s.value||o.value)return;o.value=!0;const O=s.value,S={serverURL:e.serverURL,lang:e.lang,path:e.path};try{O&&(await Vt({...S,type:`reaction${O-1}`,action:"desc"}),l.value[O-1]=Math.max(0,(l.value[O-1]??0)-1)),s.value=T;const F=T-1;r.value[e.path]=F,await Vt({serverURL:e.serverURL,lang:e.lang,path:e.path,type:`reaction${F}`,action:"inc"}),l.value[F]=(l.value[F]??0)+1,t("rate",T)}catch(F){s.value=O,O?r.value[e.path]=O-1:delete r.value[e.path],console.error("[Waline] Failed to update reaction counter",F)}finally{o.value=!1}};function y(_){return l.value[_-1]??0}function A(_){return`${((u.value[_-1]??0)*100).toFixed(1)}%`}return{ratingArea:n,displayScore:a,onMouseMove:p,onMouseLeave:m,onClick:x,countFor:y,percentText:A}}});const jd={class:"wl-star"},Fd={class:"wl-star-score"},Dd={class:"wl-star-rate"},Ud={class:"wl-star-progress"},Hd=["data-count"],Nd={class:"wl-star-percent"};function Bd(e,t,n,r,s,i){const l=sl("StarDisplay");return E(),P("div",jd,[M("div",{ref:"ratingArea",class:"wl-star-rate",onMousemove:t[0]||(t[0]=(...o)=>e.onMouseMove&&e.onMouseMove(...o)),onMouseleave:t[1]||(t[1]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onClick:t[2]||(t[2]=(...o)=>e.onClick&&e.onClick(...o))},[ee(l,{score:e.displayScore},null,8,["score"])],544),M("div",Fd,[(E(),P(se,null,Ce([5,4,3,2,1],o=>M("div",{key:o,class:"wl-star-row"},[M("div",Dd,[ee(l,{score:o},null,8,["score"])]),M("div",Ud,[M("div",{class:"wl-star-progress-bar",style:Et({width:e.percentText(o)}),"data-count":e.countFor(o).toString()},null,12,Hd)]),M("span",Nd,Q(e.percentText(o)),1)])),64))])])}var Vd=Zo(Od,[["render",Bd]]);const Wd=({el:e,path:t,lang:n=navigator.language,serverURL:r,onRate:s})=>{const i=Sr(e);if(!i)return{destroy:()=>{}};const l=Zl(Vd,{path:t,lang:n,serverURL:r,onRate:s});return l.mount(i),{destroy:()=>{l.unmount(),i.innerHTML=""}}};export{Ed as RecentComments,Wd as Star,Ld as UserList,Bs as addComment,Mo as commentCount,Un as defaultLocales,Vs as deleteComment,Ws as fetchCommentCount,Dn as getArticleCounter,Ns as getComment,Ks as getPageview,Zs as getRecentComment,Ys as getUserList,Ad as init,qs as login,Ko as pageviewCount,Vt as updateArticleCounter,un as updateComment,Gs as updatePageview,Wo as version};
89
- //# sourceMappingURL=waline.js.map
107
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
108
+ `}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>${Vn(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),i=Hn(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Vn(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Hn(e);if(i===null)return Vn(n);e=i;let a=`<img src="${e}" alt="${Vn(n)}"`;return t&&(a+=` title="${Vn(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Vn(e.text)}},$n=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``}checkbox({raw:e}){return e}},er=class e{options;renderer;textRenderer;constructor(e){this.options=e||Dt,this.options.renderer=this.options.renderer||new Qn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $n}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},tr=class{options;block;constructor(e){this.options=e||Dt}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Zn.lex:Zn.lexInline}provideParser(e=this.block){return e?er.parse:er.parseInline}},X=class{defaults=Et();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=er;Renderer=Qn;TextRenderer=$n;Lexer=Zn;Tokenizer=Xn;Hooks=tr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Qn(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Xn(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new tr;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];tr.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&tr.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Zn.lex(e,t??this.defaults)}parser(e,t){return er.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?er.parse:er.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Zn.lex:Zn.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?er.parse:er.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
109
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Vn(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},nr=new X;function Z(e,t){return nr.parse(e,t)}Z.options=Z.setOptions=function(e){return nr.setOptions(e),Z.defaults=nr.defaults,Ot(Z.defaults),Z},Z.getDefaults=Et,Z.defaults=Dt,Z.use=function(...e){return nr.use(...e),Z.defaults=nr.defaults,Ot(Z.defaults),Z},Z.walkTokens=function(e,t){return nr.walkTokens(e,t)},Z.parseInline=nr.parseInline,Z.Parser=er,Z.parser=er.parse,Z.Renderer=Qn,Z.TextRenderer=$n,Z.Lexer=Zn,Z.lexer=Zn.lex,Z.Tokenizer=Xn,Z.Hooks=tr,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,er.parse,Zn.lex;function rr(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw 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;let n=ir(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(ar(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw 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.`);ar(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=ir(n),a=i?e.langPrefix+fr(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:fr(t,!0)}\n</code></pre>`}}}}function ir(e){return(e||``).match(/\S*/)[0]}function ar(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}const or=/[&<>"']/,sr=new RegExp(or.source,`g`),cr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lr=new RegExp(cr.source,`g`),ur={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},dr=e=>ur[e];function fr(e,t){if(t){if(or.test(e))return e.replace(sr,dr)}else if(cr.test(e))return e.replace(lr,dr);return e}const pr=/\$.*?\$/u,mr=/^\$(.*?)\$/u,hr=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/u,gr=e=>[{name:`blockMath`,level:`block`,tokenizer(t){let n=hr.exec(t);if(n!=null)return{type:`html`,raw:n[0],text:e(!0,n[1])}}},{name:`inlineMath`,level:`inline`,start(e){let t=e.search(pr);return t===-1?e.length:t},tokenizer(t){let n=mr.exec(t);if(n!=null)return{type:`html`,raw:n[0],text:e(!1,n[1])}}}],_r=(e=``,t={})=>e.replaceAll(/:(.+?):/gu,(e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e),vr=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{let i=new X;if(i.setOptions({breaks:!0}),n&&i.use(rr({highlight:n})),r){let e=gr(r);i.use({extensions:e})}return i.parse(_r(e,t))},yr=e=>{let{path:t}=e.dataset;return t?.length?t:null},br=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),xr=e=>e.match(/[\u4E00-\u9FD5]/gu),Sr=e=>(br(e)?.reduce((e,t)=>e+([``,`,`,`.`].includes(t.trim())?0:t.trim().split(/\s+/u).length),0)??0)+(xr(e)?.length??0),Cr=async()=>{let{userAgentData:e}=navigator,t=navigator.userAgent;if(e?.platform!==`Windows`)return t;let{platformVersion:n}=await e.getHighEntropyValues([`platformVersion`]);return n&&Number.parseInt(n.split(`.`)[0],10)>=13&&(t=t.replace(`Windows NT 10.0`,`Windows NT 11.0`)),t},wr=({serverURL:e,path:t=window.location.pathname,selector:n=`.waline-comment-count`,lang:r=navigator.language})=>{let i=new AbortController,a=document.querySelectorAll(n);return a.length>0&&b({serverURL:ye(e),paths:Array.from(a,e=>ge(yr(e)??t)),lang:r,signal:i.signal}).then(e=>{a.forEach((t,n)=>{t.textContent=e[n].toString()})}).catch(Ct),i.abort.bind(i)},Tr=()=>ft(`WALINE_USER_META`,{nick:``,mail:``,link:``}),Er=()=>ft(`WALINE_COMMENT_BOX_EDITOR`,``),Q=ft(`WALINE_LIKE`,[]),Dr=()=>Q,Or=ft(`WALINE_REACTION`,{}),kr=()=>Or;var Ar=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=void 0,e.ReCaptchaInstance=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:e})]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:e})];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement(`style`),this.styleContainer.innerHTML=`.grecaptcha-badge{visibility:hidden !important;}`,document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}()})),jr=o((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getInstance=e.load=void 0;var n=Ar(),r;(function(e){e[e.NOT_LOADED=0]=`NOT_LOADED`,e[e.LOADING=1]=`LOADING`,e[e.LOADED=2]=`LOADED`})(r||={});var i=function(){function e(){}return e.load=function(t,i){if(i===void 0&&(i={}),typeof document>`u`)return Promise.reject(Error(`This is a library for the browser!`));if(e.getLoadingState()===r.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));if(e.getLoadingState()===r.LOADING)return t===e.instanceSiteKey?new Promise(function(t,n){e.successfulLoadingConsumers.push(function(e){return t(e)}),e.errorLoadingRunnable.push(function(e){return n(e)})}):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));e.instanceSiteKey=t,e.setLoadingState(r.LOADING);var a=new e;return new Promise(function(o,s){a.loadScript(t,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters?i.renderParameters:{},i.customUrl).then(function(){e.setLoadingState(r.LOADED);var s=a.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),c=new n.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(e){return e(c)}),e.successfulLoadingConsumers=[],i.autoHideBadge&&c.hideBadge(),e.instance=c,o(c)}).catch(function(t){e.errorLoadingRunnable.forEach(function(e){return e(t)}),e.errorLoadingRunnable=[],s(t)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?r.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,a,o){var s=this;n===void 0&&(n=!1),i===void 0&&(i=!1),a===void 0&&(a={}),o===void 0&&(o=``);var c=document.createElement(`script`);c.setAttribute(`recaptcha-v3-script`,``),c.setAttribute(`async`,``),c.setAttribute(`defer`,``);var l=`https://www.google.com/recaptcha/api.js`;n?l=i?`https://recaptcha.net/recaptcha/enterprise.js`:`https://recaptcha.net/recaptcha/api.js`:i&&(l=`https://www.google.com/recaptcha/enterprise.js`),o&&(l=o),a.render&&=void 0;var u=this.buildQueryString(a);return c.src=l+`?render=explicit`+u,new Promise(function(t,n){c.addEventListener(`load`,s.waitForScriptToLoad(function(){t(c)},i),!1),c.onerror=function(t){e.setLoadingState(r.NOT_LOADED),n(t)},document.head.appendChild(c)})},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?``:`&`+Object.keys(e).filter(function(t){return!!e[t]}).map(function(t){return t+`=`+e[t]}).join(`&`)},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(e,n,r,i){var a=t({sitekey:n},r);return r.container?i?e.enterprise.render(r.container,a):e.render(r.container,a):i?e.enterprise.render(a):e.render(a)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();e.load=i.load,e.getInstance=i.getInstance})),Mr=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=jr();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Ar();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}))();const Nr={},Pr=e=>{let t=Nr[e]??=(0,Mr.load)(e,{useRecaptchaNet:!0,autoHideBadge:!0});return{execute:e=>t.then(t=>t.execute(e))}},Fr=e=>({execute:async t=>{let{load:n}=ht(`https://challenges.cloudflare.com/turnstile/v0/api.js`,void 0,{async:!1});await n();let{turnstile:r}=window;return new Promise(n=>{r?.ready(()=>{r.render(`.wl-captcha-container`,{sitekey:e,action:t,size:`compact`,callback:n})})})}}),Ir=ft(`WALINE_USER`,{}),Lr=()=>Ir,Rr=`3.15.0`,zr=({size:e})=>(0,W.h)(`svg`,{class:`wl-close-icon`,viewBox:`0 0 1024 1024`,width:e,height:e},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Br=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Vr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Hr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),$=({active:e=!1})=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`})]),Ur=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Wr=()=>(0,W.h)(`svg`,{width:`16`,height:`16`,ariaHidden:`true`},(0,W.h)(`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`})),Gr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Kr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),qr=()=>(0,W.h)(`svg`,{class:`verified-icon`,viewBox:`0 0 1024 1024`,width:`14`,height:`14`},(0,W.h)(`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`})),Jr=()=>(0,W.h)(`svg`,{class:`administrator-icon`,viewBox:`0 0 1024 1024`,width:`14`,height:`14`},[(0,W.h)(`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`})]),Yr=({size:e=100})=>(0,W.h)(`svg`,{width:e,height:e,viewBox:`0 0 100 100`,preserveAspectRatio:`xMidYMid`},(0,W.h)(`circle`,{cx:50,cy:50,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,r:`40`,"stroke-dasharray":`85 30`},(0,W.h)(`animateTransform`,{attributeName:`transform`,type:`rotate`,repeatCount:`indefinite`,dur:`1s`,values:`0 50 50;360 50 50`,keyTimes:`0;1`}))),Xr=()=>(0,W.h)(`svg`,{width:24,height:24,fill:`currentcolor`,viewBox:`0 0 24 24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Zr=()=>(0,W.h)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`},(0,W.h)(`g`,{transform:`translate(0 -1028.4)`},(0,W.h)(`g`,{},[(0,W.h)(`path`,{d:`m4 1031.4c-1.1046 0-2 0.9-2 2v16c0 1.1 0.8954 2 2 2h16c1.105 0 2-0.9 2-2v-16c0-1.1-0.895-2-2-2h-16z`,fill:`#d35400`}),(0,W.h)(`path`,{d:`m4 2c-1.1046 0-2 0.8954-2 2v16c0 1.105 0.8954 2 2 2h16c1.105 0 2-0.895 2-2v-16c0-1.1046-0.895-2-2-2h-16z`,transform:`translate(0 1028.4)`,fill:`#e67e22`}),(0,W.h)(`path`,{d:`m5 1034.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z`,fill:`#d35400`}),(0,W.h)(`path`,{d:`m5 1033.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z`,fill:`#ecf0f1`})]))),Qr=()=>(0,W.h)(`svg`,{fill:`currentColor`,width:`24`,height:`24`,viewBox:`-3 0 19 19`,class:`cf-icon-svg`},(0,W.h)(`path`,{d:`M.926 12.818a1.403 1.403 0 1 1 0 1.984 1.402 1.402 0 0 1 0-1.984zm10.531 2.357a1.03 1.03 0 0 1-1.029-1.03 8.775 8.775 0 0 0-.694-3.438A8.826 8.826 0 0 0 1.591 5.31a1.03 1.03 0 1 1 0-2.059 10.817 10.817 0 0 1 4.24.857 10.893 10.893 0 0 1 3.463 2.334 10.867 10.867 0 0 1 3.19 7.703 1.027 1.027 0 0 1-1.027 1.029zm-4.538 0a1.03 1.03 0 0 1-1.029-1.03 4.297 4.297 0 0 0-4.299-4.298 1.03 1.03 0 0 1 0-2.059 6.362 6.362 0 0 1 5.857 3.883 6.298 6.298 0 0 1 .5 2.475 1.03 1.03 0 0 1-1.029 1.029z`})),$r={key:0,class:`wl-reaction`},ei=[`textContent`],ti={class:`wl-reaction-list`},ni=[`onClick`],ri={class:`wl-reaction-img`},ii=[`src`,`alt`],ai=[`textContent`],oi=[`textContent`];var si=(0,W.defineComponent)({__name:`ArticleReaction`,setup(e){let t=kr(),n=(0,W.inject)(he),r=(0,W.ref)(-1),i=(0,W.ref)([]),a=(0,W.computed)(()=>n.value.locale),o=(0,W.computed)(()=>{let{reaction:e}=n.value;return e?.length?e:null}),s=(0,W.computed)(()=>{let{path:e}=n.value;return o.value?.map((n,r)=>({icon:n,desc:a.value[`reaction${r}`],active:t.value[e]===r}))??null}),c,l=async()=>{let{serverURL:e,lang:t,path:r}=n.value;if(!o.value)return;let a=new AbortController;c=a.abort.bind(a);let[s]=await m({serverURL:e,lang:t,paths:[r],type:o.value.map((e,t)=>`reaction${t}`),signal:a.signal});i.value=o.value.map((e,t)=>s[`reaction${t}`])},u=async e=>{if(r.value!==-1)return;let{serverURL:a,lang:o,path:s}=n.value,c=t.value[s];r.value=e,c!=null&&(await h({serverURL:a,lang:o,path:s,type:`reaction${c}`,action:`desc`}),i.value[c]=Math.max(i.value[c]-1,0)),c!==e&&(await h({serverURL:a,lang:o,path:s,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),c===e?delete t.value[s]:t.value[s]=e,r.value=-1};return(0,W.onMounted)(()=>{Qe(()=>[n.value.serverURL,n.value.path],()=>l())}),(0,W.onUnmounted)(()=>{c?.()}),(e,t)=>s.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,$r,[(0,W.createElementVNode)(`div`,{class:`wl-reaction-title`,textContent:(0,W.toDisplayString)(a.value.reactionTitle)},null,8,ei),(0,W.createElementVNode)(`ul`,ti,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(s.value,({active:e,icon:t,desc:n},a)=>((0,W.openBlock)(),(0,W.createElementBlock)(`li`,{key:a,class:(0,W.normalizeClass)([`wl-reaction-item`,{active:e}]),onClick:e=>u(a)},[(0,W.createElementVNode)(`div`,ri,[(0,W.createElementVNode)(`img`,{src:t,alt:n},null,8,ii),r.value===a?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Yr),{key:0,class:`wl-reaction-loading`})):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:1,class:`wl-reaction-votes`,textContent:(0,W.toDisplayString)(i.value[a]||0)},null,8,ai))]),(0,W.createElementVNode)(`div`,{class:`wl-reaction-text`,textContent:(0,W.toDisplayString)(n)},null,8,oi)],10,ni))),128))])])):(0,W.createCommentVNode)(`v-if`,!0)}}),ci=u(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.autosize=r())})(e,(function(){var e=new Map;function t(t){if(!t||!t.nodeName||t.nodeName!==`TEXTAREA`||e.has(t))return;var n=null;function r(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior=`auto`,t.scrollTop=n,t.style.scrollBehavior=null})}}var i=window.getComputedStyle(t);function a(e){var o=e.restoreTextAlign,s=o===void 0?null:o,c=e.testForHeightReduction,l=c===void 0?!0:c,u=i.overflowY;if(t.scrollHeight!==0){i.resize===`vertical`?t.style.resize=`none`:i.resize===`both`&&(t.style.resize=`horizontal`);var d;l&&(d=r(t),t.style.height=``);var f=i.boxSizing===`content-box`?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);if(i.maxHeight!==`none`&&f>parseFloat(i.maxHeight)?(i.overflowY===`hidden`&&(t.style.overflow=`scroll`),f=parseFloat(i.maxHeight)):i.overflowY!==`hidden`&&(t.style.overflow=`hidden`),t.style.height=f+`px`,s&&(t.style.textAlign=s),d&&d(),n!==f&&(t.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=f),u!==i.overflow&&!s){var p=i.textAlign;i.overflow===`hidden`&&(t.style.textAlign=p===`start`?`end`:`start`),a({restoreTextAlign:p,testForHeightReduction:!0})}}}function o(){a({testForHeightReduction:!0,restoreTextAlign:null})}var s=function(){var e=t.value;return function(){a({testForHeightReduction:e===``||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}}(),c=function(n){t.removeEventListener(`autosize:destroy`,c),t.removeEventListener(`autosize:update`,o),t.removeEventListener(`input`,s),window.removeEventListener(`resize`,o),Object.keys(n).forEach(function(e){return t.style[e]=n[e]}),e.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener(`autosize:destroy`,c),t.addEventListener(`autosize:update`,o),t.addEventListener(`input`,s),window.addEventListener(`resize`,o),t.style.overflowX=`hidden`,t.style.wordWrap=`break-word`,e.set(t,{destroy:c,update:o}),o()}function n(t){var n=e.get(t);n&&n.destroy()}function r(t){var n=e.get(t);n&&n.update()}var i=null;return typeof window>`u`?(i=function(e){return e},i.destroy=function(e){return e},i.update=function(e){return e}):(i=function(e,n){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return t(e)}),e},i.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],n),e},i.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),i}))}))());const li=[`data-index`],ui=[`src`,`title`,`onClick`];var di=(0,W.defineComponent)({__name:`ImageWall`,props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:[`insert`],setup(e){let t=null,n=(0,W.useTemplateRef)(`wall`),r=(0,W.ref)({}),i=(0,W.ref)([]),a=()=>{let t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},o=e=>Array.from({length:e},()=>[]),s=async t=>{if(t>=e.items.length)return;await(0,W.nextTick)();let r=[...n.value?.children??[]].reduce((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e);i.value[Number(r.dataset.index)].push(t),await s(t+1)},c=async(e=!1)=>{if(i.value.length===a()&&!e)return;i.value=o(a());let{scrollY:t}=window;await s(0),window.scrollTo({top:t})},l=e=>{r.value[e.target.src]=!0};return(0,W.onMounted)(()=>{c(!0),t=new ResizeObserver(()=>{c()}),t.observe(n.value),(0,W.watch)(()=>[e.items],()=>{r.value={},c(!0)}),(0,W.watch)(()=>[e.columnWidth,e.gap],()=>{c()})}),(0,W.onBeforeUnmount)(()=>{t.unobserve(n.value)}),(t,a)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{ref_key:`wall`,ref:n,class:`wl-gallery`,style:(0,W.normalizeStyle)({gap:`${e.gap}px`})},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(i.value,(n,i)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:i,class:`wl-gallery-column`,"data-index":i,style:(0,W.normalizeStyle)({gap:`${e.gap}px`})},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(n,n=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:n},[r.value[e.items[n].src]?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Yr),{key:0,size:36,style:{margin:`20px auto`}})),(0,W.createElementVNode)(`img`,{class:`wl-gallery-item`,src:e.items[n].src,title:e.items[n].title,loading:`lazy`,onLoad:l,onClick:r=>t.$emit(`insert`,`![](${e.items[n].src})`)},null,40,ui)],64))),128))],12,li))),128))],4))}});const fi={key:0,class:`wl-login-info`},pi={class:`wl-avatar`},mi=[`title`],hi=[`title`],gi=[`src`],_i=[`title`,`textContent`],vi={class:`wl-panel`},yi=[`for`,`textContent`],bi=[`id`,`onUpdate:modelValue`,`name`,`type`],xi=[`placeholder`],Si={class:`wl-preview`},Ci=[`innerHTML`],wi={class:`wl-footer`},Ti={class:`wl-actions`},Ei={href:`https://guides.github.com/features/mastering-markdown/`,title:`Markdown Guide`,"aria-label":`Markdown is supported`,class:`wl-action`,target:`_blank`,rel:`noopener noreferrer`},Di=[`title`],Oi=[`title`],ki=[`title`,`aria-label`],Ai=[`title`],ji={class:`wl-info`},Mi={class:`wl-text-number`},Ni={key:0},Pi=[`textContent`],Fi=[`textContent`],Ii=[`disabled`],Li=[`placeholder`],Ri={key:1,class:`wl-loading`},zi=[`title`,`onClick`,`onMouseenter`],Bi=[`src`,`alt`],Vi=[`src`],Hi={key:0,class:`wl-tabs`},Ui=[`onClick`],Wi=[`src`,`alt`,`title`],Gi=[`title`];var Ki=(0,W.defineComponent)({__name:`CommentBox`,props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:[`log`,`cancelEdit`,`cancelReply`,`submit`],setup(e,{emit:t}){let n=e,r=t,i=(0,W.inject)(he),a=Er(),o=Tr(),s=Lr(),c=(0,W.ref)({}),l=(0,W.useTemplateRef)(`textarea`),u=(0,W.useTemplateRef)(`image-uploader`),d=(0,W.useTemplateRef)(`emoji-button`),f=(0,W.useTemplateRef)(`emoji-popup`),p=(0,W.useTemplateRef)(`gif-button`),m=(0,W.useTemplateRef)(`gif-popup`),h=(0,W.useTemplateRef)(`gif-search`),g=(0,W.ref)({tabs:[],map:{}}),v=(0,W.ref)(0),b=(0,W.ref)(!1),x=(0,W.ref)(``),C=(0,W.ref)({}),w,T=(e,t)=>{clearTimeout(w),x.value=t;let n=e.currentTarget,r=f.value;if(n&&r){let e=n.getBoundingClientRect(),t=r.getBoundingClientRect();C.value={left:`${e.left-t.left+e.width/2}px`,top:`${e.top-t.top}px`,transform:`translate(-50%, -100%)`}}},E=()=>{w=setTimeout(()=>{x.value=``},50)},D=(0,W.ref)(!1),O=(0,W.ref)(!1),k=(0,W.ref)(``),A=(0,W.ref)(0),j=(0,W.reactive)({loading:!0,list:[]}),ee=(0,W.ref)(0),M=(0,W.ref)(!1),te=(0,W.ref)(``),N=(0,W.ref)(!1),P=(0,W.ref)(!1),F=(0,W.computed)(()=>i.value.locale),ne=(0,W.computed)(()=>!!s.value.token),I=(0,W.computed)(()=>i.value.imageUploader!=null),L=e=>{let t=l.value,n=t.selectionStart,r=t.selectionEnd||0,{scrollTop:i}=t;a.value=t.value.slice(0,n)+e+t.value.slice(r),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},re=async e=>{let t=`![${i.value.locale.uploading} ${e.name}]()`;L(t),N.value=!0;try{let n=await i.value.imageUploader(e);a.value=a.value.replace(t,`\r\n![${e.name}](${n})`)}catch(e){alert(e.message),a.value=a.value.replace(t,``)}finally{N.value=!1}},ie=e=>{if(e.dataTransfer?.items){let t=Tt(e.dataTransfer.items);t&&I.value&&(re(t),e.preventDefault())}},ae=e=>{if(e.clipboardData){let t=Tt(e.clipboardData.items);t&&I.value&&re(t)}},oe=()=>{let e=u.value;e.files&&I.value&&re(e.files[0]).then(()=>{e.value=``})},R=async()=>{let{serverURL:e,lang:t,login:u,wordLimit:d,requiredMeta:f,recaptchaV3Key:p,turnstileKey:m}=i.value,h={comment:te.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:i.value.path,ua:await Cr()};if(!n.edit)if(s.value.token)h.nick=s.value.display_name,h.mail=s.value.email,h.link=s.value.url;else{if(u===`force`)return;if(f.includes(`nick`)&&!h.nick){c.value.nick.focus(),alert(F.value.nickError);return}if(f.includes(`mail`)&&!h.mail||h.mail&&!Oe(h.mail)){c.value.mail.focus(),alert(F.value.mailError);return}h.nick||=F.value.anonymous}if(!h.comment){l.value.focus();return}if(!M.value){alert(F.value.wordHint.replace(`$0`,d[0].toString()).replace(`$1`,d[1].toString()).replace(`$2`,A.value.toString()));return}h.comment=_r(h.comment,g.value.map),n.replyId&&n.rootId&&(h.pid=n.replyId,h.rid=n.rootId,h.at=n.replyUser),N.value=!0;try{p&&(h.recaptchaV3=await Pr(p).execute(`social`)),m&&(h.turnstile=await Fr(m).execute(`social`));let i={serverURL:e,lang:t,token:s.value.token,comment:h},o=await(n.edit?y({objectId:n.edit.objectId,...i}):_(i));if(N.value=!1,o.errmsg){alert(o.errmsg);return}r(`submit`,o.data),a.value=``,k.value=``,await(0,W.nextTick)(),n.replyId&&r(`cancelReply`),n.edit?.objectId&&r(`cancelEdit`)}catch(e){N.value=!1,alert(e.message)}},se=({key:e,ctrlKey:t,metaKey:n})=>{N.value||(t||n)&&e===`Enter`&&R()},ce=e=>{e.preventDefault();let{lang:t,serverURL:n}=i.value;S({serverURL:n,lang:t}).then(e=>{s.value=e,(e.remember?localStorage:sessionStorage).setItem(`WALINE_USER`,JSON.stringify(e)),r(`log`)})},z=()=>{s.value={},localStorage.setItem(`WALINE_USER`,`null`),sessionStorage.setItem(`WALINE_USER`,`null`),r(`log`)},B=e=>{e.preventDefault();let{lang:t,serverURL:n}=i.value,r=(window.innerWidth-800)/2,a=(window.innerHeight-800)/2,o=new URLSearchParams({lng:t,token:s.value.token});window.open(`${n}/ui/profile?${o.toString()}`,`_blank`,`width=800,height=800,left=${r},top=${a},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:`TOKEN`,data:s.value.token},`*`)},le=e=>{!d.value?.contains(e.target)&&!f.value?.contains(e.target)&&(b.value=!1),!p.value?.contains(e.target)&&!m.value?.contains(e.target)&&(D.value=!1)},ue=async e=>{let{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,a=(n+t)/r,o=i.value.search,s=h.value?.value??``;a<.9||j.loading||P.value||(j.loading=!0,(o.more&&j.list.length>0?await o.more(s,j.list.length):await o.search(s)).length>0?j.list=[...j.list,...o.more&&j.list.length>0?await o.more(s,j.list.length):await o.search(s)]:P.value=!0,j.loading=!1,setTimeout(()=>{e.target.scrollTop=t},50))},V=Ke(e=>{j.list=[],P.value=!1,ue(e)},300);return nt(`click`,le),nt(`message`,({data:e})=>{e?.type===`profile`&&(s.value={...s.value,...e.data},[localStorage,sessionStorage].filter(e=>e.getItem(`WALINE_USER`)).forEach(e=>{e.setItem(`WALINE_USER`,JSON.stringify(s))}))}),Qe([i,A],([e,t])=>{let{wordLimit:n}=e;n?t<n[0]&&n[0]!==0?([ee.value]=n,M.value=!1):([,ee.value]=n,M.value=t<=n[1]):(ee.value=0,M.value=!0)}),(0,W.watch)(D,async e=>{if(!e)return;let t=i.value.search;h.value&&(h.value.value=``),j.loading=!0,j.list=await(t.default?.()??t.search(``)),j.loading=!1}),(0,W.onMounted)(()=>{n.edit?.objectId&&(a.value=n.edit.orig),Qe(()=>a.value,e=>{let{highlighter:t,texRenderer:n}=i.value;te.value=e,k.value=vr(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),A.value=Sr(e),e?(0,ci.default)(l.value):ci.default.destroy(l.value)}),Qe(()=>i.value.emoji,async e=>{g.value=await St(e)})}),(t,n)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:(0,W.unref)(s).token,class:`wl-comment`},[(0,W.unref)(i).login!==`disable`&&ne.value&&!e.edit?.objectId?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,fi,[(0,W.createElementVNode)(`div`,pi,[(0,W.createElementVNode)(`button`,{type:`submit`,class:`wl-logout-btn`,title:F.value.logout,onClick:z},[(0,W.createVNode)((0,W.unref)(zr),{size:14})],8,mi),(0,W.createElementVNode)(`a`,{href:`#`,class:`wl-login-nick`,"aria-label":`Profile`,title:F.value.profile,onClick:B},[(0,W.createElementVNode)(`img`,{src:(0,W.unref)(s).avatar,alt:`avatar`},null,8,gi)],8,hi)]),(0,W.createElementVNode)(`a`,{href:`#`,class:`wl-login-nick`,"aria-label":`Profile`,title:F.value.profile,onClick:B,textContent:(0,W.toDisplayString)((0,W.unref)(s).display_name)},null,8,_i)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,vi,[(0,W.unref)(i).login!==`force`&&(0,W.unref)(i).meta.length&&!ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:0,class:(0,W.normalizeClass)([`wl-header`,`item${(0,W.unref)(i).meta.length}`])},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)((0,W.unref)(i).meta,e=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:e,class:`wl-header-item`},[(0,W.createElementVNode)(`label`,{for:`wl-${e}`,textContent:(0,W.toDisplayString)(F.value[e]+((0,W.unref)(i).requiredMeta.includes(e)||!(0,W.unref)(i).requiredMeta.length?``:`(${F.value.optional})`))},null,8,yi),(0,W.withDirectives)((0,W.createElementVNode)(`input`,{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(c.value[e]=t)},"onUpdate:modelValue":t=>(0,W.unref)(o)[e]=t,class:(0,W.normalizeClass)([`wl-input`,`wl-${e}`]),name:e,type:e===`mail`?`email`:`text`},null,10,bi),[[W.vModelDynamic,(0,W.unref)(o)[e]]])]))),128))],2)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.withDirectives)((0,W.createElementVNode)(`textarea`,{id:`wl-edit`,ref:`textarea`,"onUpdate:modelValue":n[0]||=e=>(0,W.isRef)(a)?a.value=e:null,class:`wl-editor`,placeholder:e.replyUser?`@${e.replyUser}`:F.value.placeholder,onKeydown:se,onDrop:ie,onPaste:ae},null,40,xi),[[W.vModelText,(0,W.unref)(a)]]),(0,W.withDirectives)((0,W.createElementVNode)(`div`,Si,[n[7]||=(0,W.createElementVNode)(`hr`,null,null,-1),(0,W.createElementVNode)(`h4`,null,(0,W.toDisplayString)(F.value.preview)+`:`,1),(0,W.createElementVNode)(`div`,{class:`wl-content`,innerHTML:k.value},null,8,Ci)],512),[[W.vShow,O.value]]),(0,W.createElementVNode)(`div`,wi,[(0,W.createElementVNode)(`div`,Ti,[(0,W.createElementVNode)(`a`,Ei,[(0,W.createVNode)((0,W.unref)(Wr))]),(0,W.withDirectives)((0,W.createElementVNode)(`button`,{ref:`emoji-button`,type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:b.value}]),title:F.value.emoji,onClick:n[1]||=e=>b.value=!b.value},[(0,W.createVNode)((0,W.unref)(Vr))],10,Di),[[W.vShow,g.value.tabs.length]]),(0,W.unref)(i).search?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,ref:`gif-button`,type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:D.value}]),title:F.value.gif,onClick:n[2]||=e=>D.value=!D.value},[(0,W.createVNode)((0,W.unref)(Xr))],10,Oi)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`input`,{id:`wl-image-upload`,ref:`image-uploader`,class:`upload`,"aria-hidden":`true`,type:`file`,accept:`.png,.jpg,.jpeg,.webp,.bmp,.gif`,onChange:oe},null,544),I.value?((0,W.openBlock)(),(0,W.createElementBlock)(`label`,{key:1,for:`wl-image-upload`,class:`wl-action`,title:F.value.uploadImage,"aria-label":F.value.uploadImage},[(0,W.createVNode)((0,W.unref)(Hr))],8,ki)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`button`,{type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:O.value}]),title:F.value.preview,onClick:n[3]||=e=>O.value=!O.value},[(0,W.createVNode)((0,W.unref)(Ur))],10,Ai)]),(0,W.createElementVNode)(`div`,ji,[n[9]||=(0,W.createElementVNode)(`div`,{class:`wl-captcha-container`},null,-1),(0,W.createElementVNode)(`div`,Mi,[(0,W.createTextVNode)((0,W.toDisplayString)(A.value)+` `,1),(0,W.unref)(i).wordLimit?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,Ni,[n[8]||=(0,W.createTextVNode)(` \xA0/\xA0 `,-1),(0,W.createElementVNode)(`span`,{class:(0,W.normalizeClass)({illegal:!M.value}),textContent:(0,W.toDisplayString)(ee.value)},null,10,Pi)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createTextVNode)(` \xA0`+(0,W.toDisplayString)(F.value.word),1)]),(0,W.unref)(i).login!==`disable`&&!ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,type:`button`,class:`wl-btn`,onClick:ce,textContent:(0,W.toDisplayString)(F.value.login)},null,8,Fi)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.unref)(i).login!==`force`||ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:1,type:`submit`,class:`primary wl-btn`,title:`Cmd|Ctrl + Enter`,disabled:N.value,onClick:R},[N.value?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Yr),{key:0,size:16})):((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:1},[(0,W.createTextVNode)((0,W.toDisplayString)(F.value.submit),1)],64))],8,Ii)):(0,W.createCommentVNode)(`v-if`,!0)]),(0,W.createElementVNode)(`div`,{ref:`gif-popup`,class:(0,W.normalizeClass)([`wl-gif-popup`,{display:D.value}])},[(0,W.createElementVNode)(`input`,{ref:`gif-search`,type:`text`,placeholder:F.value.gifSearchPlaceholder,onInput:n[4]||=(...e)=>(0,W.unref)(V)&&(0,W.unref)(V)(...e)},null,40,Li),j.list.length?((0,W.openBlock)(),(0,W.createBlock)(di,{key:0,items:j.list,"column-width":200,gap:6,onInsert:n[5]||=e=>L(e),onScroll:ue},null,8,[`items`])):(0,W.createCommentVNode)(`v-if`,!0),j.loading?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Ri,[(0,W.createVNode)((0,W.unref)(Yr),{size:30})])):(0,W.createCommentVNode)(`v-if`,!0)],2),(0,W.createElementVNode)(`div`,{ref:`emoji-popup`,class:(0,W.normalizeClass)([`wl-emoji-popup`,{display:b.value}])},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(g.value.tabs,(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:e.name},[t===v.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:0,class:`wl-tab-wrapper`,onScroll:E},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(e.items,e=>((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:e,type:`button`,title:e,onClick:t=>L(`:${e}:`),onMouseenter:t=>T(t,e),onMouseleave:E},[b.value?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-emoji`,src:g.value.map[e],alt:e,loading:`lazy`,referrerPolicy:`no-referrer`},null,8,Bi)):(0,W.createCommentVNode)(`v-if`,!0)],40,zi))),128))],32)):(0,W.createCommentVNode)(`v-if`,!0)],64))),128)),(0,W.createElementVNode)(`div`,null,[x.value?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-emoji-preview`,src:g.value.map[x.value],alt:`preview`,loading:`lazy`,referrerPolicy:`no-referrer`,style:(0,W.normalizeStyle)(C.value)},null,12,Vi)):(0,W.createCommentVNode)(`v-if`,!0)]),g.value.tabs.length>1?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Hi,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(g.value.tabs,(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:e.name,type:`button`,class:(0,W.normalizeClass)([`wl-tab`,{active:v.value===t}]),onClick:e=>v.value=t},[(0,W.createElementVNode)(`img`,{class:`wl-emoji`,src:e.icon,alt:e.name,title:e.name,loading:`lazy`,referrerPolicy:`no-referrer`},null,8,Wi)],10,Ui))),128))])):(0,W.createCommentVNode)(`v-if`,!0)],2)])]),e.replyId||e.edit?.objectId?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:1,type:`button`,class:`wl-close`,title:F.value.cancelReply,onClick:n[6]||=t=>e.replyId?r(`cancelReply`):r(`cancelEdit`)},[(0,W.createVNode)((0,W.unref)(zr),{size:24})],8,Gi)):(0,W.createCommentVNode)(`v-if`,!0)]))}});const qi=[`id`],Ji={class:`wl-user`,"aria-hidden":`true`},Yi=[`src`],Xi={class:`wl-card`},Zi={class:`wl-head`},Qi=[`href`],$i={key:1,class:`wl-nick`},ea=[`textContent`],ta=[`textContent`],na=[`textContent`],ra=[`textContent`],ia={class:`wl-comment-actions`},aa=[`title`,`href`],oa=[`title`],sa=[`title`],ca={class:`wl-meta`,"aria-hidden":`true`},la=[`data-value`,`textContent`],ua={key:0,class:`wl-warning`,"aria-hidden":`true`},da={key:1,class:`wl-content`},fa={key:0,class:`wl-reply-to`},pa=[`href`],ma=[`innerHTML`],ha={key:2,class:`wl-admin-actions`},ga={class:`wl-comment-status`},_a=[`disabled`,`onClick`,`textContent`],va={key:4,class:`wl-quote`};var ya=(0,W.defineComponent)({__name:`CommentCard`,props:{comment:{},edit:{},rootId:{},reply:{}},emits:[`log`,`submit`,`delete`,`like`,`sticky`,`edit`,`reply`,`status`],setup(e,{emit:t}){let n=t,r=[`approved`,`waiting`,`spam`],i=(0,W.inject)(he),a=Dr(),o=mt(),s=Lr(),c=(0,W.computed)(()=>i.value.locale),l=(0,W.computed)(()=>{let{link:t}=e.comment;return t?ve(t)?t:`https://${t}`:``}),u=(0,W.computed)(()=>a.value.includes(e.comment.objectId)),d=(0,W.computed)(()=>Ee(new Date(e.comment.time),o.value,c.value)),f=(0,W.computed)(()=>s.value.type===`administrator`),p=(0,W.computed)(()=>e.comment.user_id&&s.value.objectId===e.comment.user_id),m=(0,W.computed)(()=>e.comment.objectId===e.reply?.objectId),h=(0,W.computed)(()=>e.comment.objectId===e.edit?.objectId);return(t,a)=>{let o=(0,W.resolveComponent)(`CommentCard`,!0);return(0,W.openBlock)(),(0,W.createElementBlock)(`div`,{id:e.comment.objectId.toString(),class:`wl-card-item`},[(0,W.createElementVNode)(`div`,Ji,[e.comment.avatar?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-user-avatar`,src:e.comment.avatar,alt:``},null,8,Yi)):(0,W.createCommentVNode)(`v-if`,!0),e.comment.type===`guest`?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(qr),{key:1})):(0,W.createCommentVNode)(`v-if`,!0),e.comment.type===`administrator`?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Jr),{key:2})):(0,W.createCommentVNode)(`v-if`,!0)]),(0,W.createElementVNode)(`div`,Xi,[(0,W.createElementVNode)(`div`,Zi,[l.value?((0,W.openBlock)(),(0,W.createElementBlock)(`a`,{key:0,class:`wl-nick`,href:l.value,target:`_blank`,rel:`ugc nofollow noreferrer noopener`},(0,W.toDisplayString)(e.comment.nick),9,Qi)):((0,W.openBlock)(),(0,W.createElementBlock)(`span`,$i,(0,W.toDisplayString)(e.comment.nick),1)),e.comment.label?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:2,class:`wl-badge`,textContent:(0,W.toDisplayString)(e.comment.label)},null,8,ea)):(0,W.createCommentVNode)(`v-if`,!0),e.comment.sticky?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:3,class:`wl-badge`,textContent:(0,W.toDisplayString)(c.value.sticky)},null,8,ta)):(0,W.createCommentVNode)(`v-if`,!0),typeof e.comment.level==`number`?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:4,class:(0,W.normalizeClass)(`wl-badge level${e.comment.level}`),textContent:(0,W.toDisplayString)(c.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,na)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`span`,{class:`wl-time`,textContent:(0,W.toDisplayString)(d.value)},null,8,ra),(0,W.createElementVNode)(`div`,ia,[f.value||p.value?((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:0},[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-edit`,onClick:a[0]||=t=>n(`edit`,e.comment)},[(0,W.createVNode)((0,W.unref)(Kr))]),(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-delete`,onClick:a[1]||=t=>n(`delete`,e.comment)},[(0,W.createVNode)((0,W.unref)(Br))])],64)):(0,W.createCommentVNode)(`v-if`,!0),p.value&&!(0,W.unref)(i).noRss?((0,W.openBlock)(),(0,W.createElementBlock)(`a`,{key:1,role:`button`,class:`wl-rss`,title:c.value.subscribeToReplies,href:`${(0,W.unref)(i).serverURL}/api/comment/rss?user_id=${e.comment.user_id}`,target:`_blank`,rel:`noopener noreferrer`},[(0,W.createVNode)((0,W.unref)(Qr))],8,aa)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-like`,title:u.value?c.value.cancelLike:c.value.like,onClick:a[2]||=t=>n(`like`,e.comment)},[(0,W.createVNode)((0,W.unref)($),{active:u.value},null,8,[`active`]),(0,W.createTextVNode)(` `+(0,W.toDisplayString)(`like`in e.comment?e.comment.like:``),1)],8,oa),(0,W.createElementVNode)(`button`,{type:`button`,class:(0,W.normalizeClass)([`wl-reply`,{active:m.value}]),title:m.value?c.value.cancelReply:c.value.reply,onClick:a[3]||=t=>n(`reply`,m.value?null:e.comment)},[(0,W.createVNode)((0,W.unref)(Gr))],10,sa)])]),(0,W.createElementVNode)(`div`,ca,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([`addr`,`browser`,`os`],t=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,[e.comment[t]?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:t,class:(0,W.normalizeClass)(`wl-${t}`),"data-value":e.comment[t],textContent:(0,W.toDisplayString)(e.comment[t])},null,10,la)):(0,W.createCommentVNode)(`v-if`,!0)],64))),64))]),e.comment.status===`waiting`&&!f.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ua,(0,W.toDisplayString)(c.value.commentUnderReview),1)):(0,W.createCommentVNode)(`v-if`,!0),h.value?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,da,[`reply_user`in e.comment&&e.comment.reply_user?((0,W.openBlock)(),(0,W.createElementBlock)(`p`,fa,[(0,W.createElementVNode)(`a`,{href:`#`+e.comment.pid},`@`+(0,W.toDisplayString)(e.comment.reply_user.nick),9,pa),a[17]||=(0,W.createElementVNode)(`span`,null,`: `,-1)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,{innerHTML:e.comment.comment},null,8,ma)])),f.value&&!h.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ha,[(0,W.createElementVNode)(`span`,ga,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(r,t=>(0,W.createElementVNode)(`button`,{key:t,type:`submit`,class:(0,W.normalizeClass)(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:r=>n(`status`,{status:t,comment:e.comment}),textContent:(0,W.toDisplayString)(c.value[t])},null,10,_a)),64))]),f.value&&!(`rid`in e.comment)?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,type:`submit`,class:`wl-btn wl-sticky`,onClick:a[4]||=t=>n(`sticky`,e.comment)},(0,W.toDisplayString)(e.comment.sticky?c.value.unsticky:c.value.sticky),1)):(0,W.createCommentVNode)(`v-if`,!0)])):(0,W.createCommentVNode)(`v-if`,!0),m.value||h.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:3,class:(0,W.normalizeClass)({"wl-reply-wrapper":m.value,"wl-edit-wrapper":h.value})},[(0,W.createVNode)(Ki,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:a[5]||=e=>n(`log`),onCancelReply:a[6]||=e=>n(`reply`,null),onCancelEdit:a[7]||=e=>n(`edit`,null),onSubmit:a[8]||=e=>n(`submit`,e)},null,8,[`edit`,`reply-id`,`reply-user`,`root-id`])],2)):(0,W.createCommentVNode)(`v-if`,!0),`children`in e.comment?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,va,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(e.comment.children,t=>((0,W.openBlock)(),(0,W.createBlock)(o,{key:t.objectId,comment:t,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:a[9]||=e=>n(`log`),onDelete:a[10]||=e=>n(`delete`,e),onEdit:a[11]||=e=>n(`edit`,e),onLike:a[12]||=e=>n(`like`,e),onReply:a[13]||=e=>n(`reply`,e),onStatus:a[14]||=e=>n(`status`,e),onSticky:a[15]||=e=>n(`sticky`,e),onSubmit:a[16]||=e=>n(`submit`,e)},null,8,[`comment`,`reply`,`edit`,`root-id`]))),128))])):(0,W.createCommentVNode)(`v-if`,!0)])],8,qi)}}});const ba={"data-waline":``},xa={class:`wl-meta-head`},Sa={class:`wl-count`},Ca=[`textContent`],wa={class:`wl-sort`},Ta=[`onClick`],Ea={class:`wl-cards`},Da={key:1,class:`wl-operation`},Oa=[`textContent`],ka={key:2,class:`wl-loading`},Aa=[`textContent`],ja={key:4,class:`wl-operation`},Ma=[`textContent`],Na={key:5,class:`wl-meta-foot`},Pa={key:0,class:`wl-rss`},Fa=[`href`,`alt`],Ia=[`textContent`],La=[`href`,`alt`],Ra=[`textContent`],za={key:1,class:`wl-power`};var Ba=(0,W.defineComponent)({__name:`WalineComment`,props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},noRss:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{type:[Object,Boolean]},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){let t=e,n=Lr(),r=Dr(),i=(0,W.ref)(`loading`),a=(0,W.ref)(0),o=(0,W.ref)(1),s=(0,W.ref)(0),c=(0,W.computed)(()=>xe(t)),l=(0,W.ref)(c.value.commentSorting),u=(0,W.ref)([]),d=(0,W.ref)(null),f=(0,W.ref)(null),p=(0,W.computed)(()=>Ce(c.value.dark)),m=(0,W.computed)(()=>c.value.locale);_t(p,{id:`waline-darkmode`});let h=null,_=e=>{let{serverURL:t,path:r,pageSize:d}=c.value,f=new AbortController;i.value=`loading`,h?.(),g({serverURL:t,lang:c.value.lang,path:r,pageSize:d,sortBy:pe[l.value],page:e,signal:f.signal,token:n.value.token}).then(t=>{i.value=`success`,a.value=t.count,u.value.push(...t.data),o.value=e,s.value=t.totalPages}).catch(e=>{e.name!==`AbortError`&&(console.error(e.message),i.value=`error`)}),h=f.abort.bind(f)},b=()=>{_(o.value+1)},x=()=>{a.value=0,u.value=[],_(1)},S=e=>{l.value!==e&&(l.value=e,x())},C=e=>{d.value=e},w=e=>{f.value=e},T=e=>{if(f.value)f.value.comment=e.comment,f.value.orig=e.orig;else if(`rid`in e){let t=u.value.find(({objectId:t})=>t===e.rid);if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else u.value.unshift(e),a.value+=1},E=async({comment:e,status:t})=>{if(e.status===t)return;let{serverURL:r,lang:i}=c.value;await y({serverURL:r,lang:i,token:n.value.token,objectId:e.objectId,comment:{status:t}}),e.status=t},D=async e=>{if(`rid`in e)return;let{serverURL:t,lang:r}=c.value;await y({serverURL:t,lang:r,token:n.value.token,objectId:e.objectId,comment:{sticky:+!e.sticky}}),e.sticky=!e.sticky},O=async({objectId:e})=>{if(!confirm(`Are you sure you want to delete this comment?`))return;let{serverURL:t,lang:r}=c.value;await v({serverURL:t,lang:r,token:n.value.token,objectId:e}),u.value.some((t,n)=>t.objectId===e?(u.value=u.value.filter((e,t)=>t!==n),!0):t.children.some((r,i)=>r.objectId===e?(u.value[n].children=t.children.filter((e,t)=>t!==i),!0):!1))},k=async e=>{let{serverURL:t,lang:i}=c.value,{objectId:a}=e,o=r.value.includes(a);await y({serverURL:t,lang:i,objectId:a,token:n.value.token,comment:{like:!o}}),o?r.value=r.value.filter(e=>e!==a):(r.value=[...r.value,a],r.value.length>50&&(r.value=r.value.slice(-50))),e.like=Math.max(0,(e.like||0)+(o?-1:1))};return(0,W.provide)(he,c),(0,W.onMounted)(async()=>{Qe(()=>[t.serverURL,t.path],()=>{x()});let e=new URLSearchParams(location.search).get(`token`);if(!e)return;let r=await fetch(`${c?.value.serverURL}/token`,{headers:{Authorization:`Bearer ${e}`}}).then(e=>e.json()).catch(e=>(console.error(e),{}));!r.errno&&r?.data?.objectId&&(n.value={...r.data,token:e});let i=new URL(window.location.href);i.searchParams.delete(`token`),history.replaceState(null,``,i.pathname+(i.searchParams.toString()?`?${i.searchParams.toString()}`:``)+i.hash)}),(0,W.onUnmounted)(()=>{h?.()}),(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ba,[(0,W.createVNode)(si),!d.value&&!f.value?((0,W.openBlock)(),(0,W.createBlock)(Ki,{key:0,onLog:x,onSubmit:T})):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,xa,[(0,W.createElementVNode)(`div`,Sa,[a.value?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:0,class:`wl-num`,textContent:(0,W.toDisplayString)(a.value)},null,8,Ca)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createTextVNode)(` `+(0,W.toDisplayString)(m.value.comment),1)]),(0,W.createElementVNode)(`ul`,wa,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)((0,W.unref)(me),e=>((0,W.openBlock)(),(0,W.createElementBlock)(`li`,{key:e,class:(0,W.normalizeClass)([e===l.value?`active`:``]),onClick:t=>S(e)},(0,W.toDisplayString)(m.value[e]),11,Ta))),128))])]),(0,W.createElementVNode)(`div`,Ea,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(u.value,e=>((0,W.openBlock)(),(0,W.createBlock)(ya,{key:e.objectId,"root-id":e.objectId,comment:e,reply:d.value,edit:f.value,onLog:x,onReply:C,onEdit:w,onSubmit:T,onStatus:E,onDelete:O,onSticky:D,onLike:k},null,8,[`root-id`,`comment`,`reply`,`edit`]))),128))]),i.value===`error`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Da,[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-btn`,onClick:x,textContent:(0,W.toDisplayString)(m.value.refresh)},null,8,Oa)])):i.value===`loading`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ka,[(0,W.createVNode)((0,W.unref)(Yr),{size:30})])):u.value.length?o.value<s.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ja,[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-btn`,onClick:b,textContent:(0,W.toDisplayString)(m.value.more)},null,8,Ma)])):(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:3,class:`wl-empty`,textContent:(0,W.toDisplayString)(m.value.sofa)},null,8,Aa)),u.value.length||i.value!==`loading`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Na,[c.value.noRss?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Pa,[(0,W.createElementVNode)(`a`,{href:`${c.value.serverURL}/api/comment/rss?path=${encodeURIComponent(c.value.path)}`,target:`_blank`,rel:`noopener noreferrer`,alt:m.value.subPostComment},[(0,W.createVNode)((0,W.unref)(Zr)),(0,W.createElementVNode)(`span`,{textContent:(0,W.toDisplayString)(m.value.subPostComment)},null,8,Ia)],8,Fa),(0,W.createElementVNode)(`a`,{href:`${c.value.serverURL}/api/comment/rss`,target:`_blank`,rel:`noopener noreferrer`,alt:m.value.subSiteComment},[(0,W.createVNode)((0,W.unref)(Zr)),(0,W.createElementVNode)(`span`,{textContent:(0,W.toDisplayString)(m.value.subSiteComment)},null,8,Ra)],8,La)])),c.value.noCopyright?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,za,[t[0]||=(0,W.createTextVNode)(` Powered by `,-1),t[1]||=(0,W.createElementVNode)(`a`,{href:`https://github.com/walinejs/waline`,target:`_blank`,rel:`noopener noreferrer`},` Waline `,-1),(0,W.createTextVNode)(` v`+(0,W.toDisplayString)((0,W.unref)(Rr)),1)]))])):(0,W.createCommentVNode)(`v-if`,!0)]))}});const Va=(e,t)=>{t.forEach((t,n)=>{let r=e[n].time;typeof r==`number`&&(t.textContent=r.toString())})},Ha=({serverURL:e,path:t=window.location.pathname,selector:n=`.waline-pageview-count`,update:r=!0,lang:i=navigator.language})=>{let a=new AbortController,o=[...document.querySelectorAll(n)],s=e=>{let n=yr(e);return n!=null&&t!==n},c=n=>C({serverURL:ye(e),paths:n.map(e=>yr(e)??t),lang:i,signal:a.signal}).then(e=>{Va(e,n)}).catch(Ct);if(r){let n=o.filter(e=>!s(e)),r=o.filter(e=>s(e));w({serverURL:ye(e),path:t,lang:i}).then(e=>{Va(e,n)}),r.length>0&&c(r)}else c(o);return a.abort.bind(a)},Ua=({el:e=`#waline`,path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{let a=e?wt(e):null;if(e&&!a)throw Error(`Option 'el' do not match any domElement!`);if(!i.serverURL)throw Error(`Option 'serverURL' is missing!`);let o=(0,W.reactive)({...i}),s=(0,W.reactive)({comment:n,pageview:r,path:t}),c=()=>{s.comment&&wr({serverURL:o.serverURL,path:s.path,...Se(s.comment)?{selector:s.comment}:{}})},l=()=>{s.pageview&&Ha({serverURL:o.serverURL,path:s.path,...Se(s.pageview)?{selector:s.pageview}:{}})},u=null;a&&(u=(0,W.createApp)(()=>(0,W.h)(Ba,{path:s.path,...o})),u.mount(a));let d=(0,W.watchEffect)(c),f=(0,W.watchEffect)(l);return{el:a,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach(([e,t])=>{o[e]=t}),s.path=n,e!=null&&(s.comment=e),t!=null&&(s.pageview=t)},destroy:()=>{u?.unmount(),d(),f()}}},Wa=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{let i=Lr(),a=wt(e),o=new AbortController;return T({serverURL:t,count:n,lang:r,signal:o.signal,token:i.value.token}).then(e=>a&&e.length>0?(a.innerHTML=`<ul class="wl-recent-list">${e.map(e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`).join(``)}</ul>`,{comments:e,destroy:()=>{o.abort(),a.innerHTML=``}}):{comments:e,destroy:()=>{o.abort()}})},Ga=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:a=`list`})=>{let o=wt(e),s=new AbortController;return E({serverURL:t,pageSize:n,lang:i,signal:s.signal}).then(e=>{if(!o||e.length===0)return{users:e,destroy:()=>{s.abort()}};let t={...de(i),...typeof r==`object`?r:{}};return o.innerHTML=`<ul class="wl-user-${a}">${e.map((e,n)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link?`<a href="${e.link}" target="_blank">`:``,`<div class="wl-user-avatar">`,`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${n+1}</span>`,`</div>`,`<div class="wl-user-meta">`,`<div class="wl-user-name">`,e.nick,typeof e.level==`number`?`<span class="wl-badge">${t[`level${e.level}`]??`Level ${e.level}`}</span>`:``,e.label?`<span class="wl-badge">${e.label}</span>`:``,`</div>`,e.link,`</div>`,e.link?`</a>`:``,`</li>`].filter(Boolean).join(``)).join(``)}</ul>`,{users:e,destroy:()=>{s.abort(),o.innerHTML=``}}})},Ka=async({serverURL:e,lang:t,path:n})=>{let r=[1,2,3,4,5],i=new AbortController,a=i.abort.bind(i),[o]=await m({serverURL:e,lang:t,paths:[n],type:Array.from({length:5},(e,t)=>`reaction${t}`),signal:i.signal});return{value:r.map((e,t)=>o[`reaction${t}`]),abort:a}},qa=e=>Number.isNaN(e)?0:Math.min(5,Math.max(0,Math.round(e))),Ja=(e=[])=>Array.from({length:5},(t,n)=>{let r=e[n]??0;return typeof r==`number`&&r>0?r:0}),Ya={class:`wl-star-icon`,viewBox:`0 0 24 24`};var Xa=(0,W.defineComponent)({__name:`WalineStarDisplay`,props:{score:{default:0}},setup(e){let t=(0,W.computed)(()=>qa(e.score)),n=e=>t.value>=e?`wl-star-solid`:`wl-star-outline`;return(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([1,2,3,4,5],e=>(0,W.createElementVNode)(`span`,{key:e,class:`wl-star-item`},[((0,W.openBlock)(),(0,W.createElementBlock)(`svg`,Ya,[(0,W.createElementVNode)(`path`,{class:(0,W.normalizeClass)(n(e)),d:`M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z`},null,2)]))])),64))}});const Za={class:`wl-star`},Qa={class:`wl-star-score`},$a={class:`wl-star-rate`},eo={class:`wl-star-progress`},to=[`data-count`],no={class:`wl-star-percent`};var ro=(0,W.defineComponent)({__name:`WalineStarWidget`,props:{serverURL:{},lang:{},path:{}},emits:[`rate`],setup(e,{emit:t}){let n=e,r=t,i=(0,W.ref)(null),a=kr(),o=(0,W.ref)(qa((a.value[n.path]??0)+1)),s=(0,W.ref)(null),c=(0,W.ref)(Ja([])),l=(0,W.ref)(!1);(0,W.onMounted)(()=>{Qe(()=>[n.serverURL,n.path],async()=>{try{c.value=Ja((await Ka(n)).value)}catch(e){console.error(`Failed to fetch reaction data:`,e)}})});let u=(0,W.computed)(()=>s.value??o.value),d=(0,W.computed)(()=>c.value.reduce((e,t)=>e+t,0)),f=(0,W.computed)(()=>c.value.map(e=>d.value?e/d.value:0)),p=e=>{if(!i.value)return 0;let{firstElementChild:t,lastElementChild:n}=i.value;if(!t||!n)return 0;let{left:r}=t.getBoundingClientRect(),{right:a}=n.getBoundingClientRect(),o=a-r,s=(e.clientX-r)/o;return qa(Math.min(1,Math.max(0,s))*5)},m=e=>{s.value=p(e)},g=()=>{s.value=null},_=async e=>{let t=s.value??p(e);if(t===o.value||l.value)return;l.value=!0;let i=o.value;try{i&&(await h({...n,type:`reaction${i-1}`,action:`desc`}),c.value[i-1]=Math.max(0,(c.value[i-1]??0)-1)),o.value=t;let e=t-1;a.value[n.path]=e,await h({...n,type:`reaction${e}`,action:`inc`}),c.value[e]=(c.value[e]??0)+1,r(`rate`,t)}catch(e){o.value=i,i?a.value[n.path]=i-1:delete a.value[n.path],console.error(`[Waline] Failed to update reaction counter`,e)}finally{l.value=!1}},v=e=>c.value[e-1]??0,y=e=>`${((f.value[e-1]??0)*100).toFixed(1)}%`;return(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Za,[(0,W.createElementVNode)(`div`,{ref_key:`ratingArea`,ref:i,class:`wl-star-rate`,onMousemove:m,onMouseleave:g,onClick:_},[(0,W.createVNode)(Xa,{score:u.value},null,8,[`score`])],544),(0,W.createElementVNode)(`div`,Qa,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([5,4,3,2,1],e=>(0,W.createElementVNode)(`div`,{key:e,class:`wl-star-row`},[(0,W.createElementVNode)(`div`,$a,[(0,W.createVNode)(Xa,{score:e},null,8,[`score`])]),(0,W.createElementVNode)(`div`,eo,[(0,W.createElementVNode)(`div`,{class:`wl-star-progress-bar`,style:(0,W.normalizeStyle)({width:y(e)}),"data-count":v(e).toString()},null,12,to)]),(0,W.createElementVNode)(`span`,no,(0,W.toDisplayString)(y(e)),1)])),64))])]))}});const io=({el:e,path:t,lang:n=navigator.language,serverURL:r,onRate:i})=>{let a=wt(e);if(!a)return{destroy:()=>{}};let o=(0,W.createApp)(ro,{path:t,lang:n,serverURL:r,onRate:i});return o.mount(a),{destroy:()=>{o.unmount(),a.innerHTML=``}}};export{Wa as RecentComments,io as Star,Ga as UserList,_ as addComment,wr as commentCount,V as defaultLocales,v as deleteComment,b as fetchCommentCount,m as getArticleCounter,g as getComment,C as getPageview,T as getRecentComment,E as getUserList,Ua as init,S as login,Ha as pageviewCount,h as updateArticleCounter,y as updateComment,w as updatePageview,Rr as version};
110
+ //# sourceMappingURL=waline.js.map