UNPKG

@waline/client

Version:

client for waline comment system

24 lines 193 kB
var Bd=Object.defineProperty;var Vd=(ne,Se,Re)=>Se in ne?Bd(ne,Se,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ne[Se]=Re;var js=(ne,Se,Re)=>Vd(ne,typeof Se!="symbol"?Se+"":Se,Re);(function(ne,Se){typeof exports=="object"&&typeof module<"u"?Se(exports):typeof define=="function"&&define.amd?define(["exports"],Se):(ne=typeof globalThis<"u"?globalThis:ne||self,Se(ne.Waline={}))})(this,(function(ne){"use strict";var zr;const Se={"Content-Type":"application/json"},Re=e=>`${e.replace(/\/?$/,"/")}api/`,Ct=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Un=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Re(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>Ct(i,"Get counter").data),Wt=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Re(e)}article?lang=${t}`,{method:"POST",headers:Se,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>Ct(i,"Update counter").data),Ds=({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(`${Re(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>Ct(c,"Get comment data").data)},Us=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Re(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Hs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Re(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>Ct(s,"Delete comment")),cn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Re(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Se,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>Ct(i,"Update comment")),Ns=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Re(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>Ct(s,"Get comment count").data),Jo=()=>{const e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},Bs=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2;if(Jo())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)})},Vs=({serverURL:e,lang:t,paths:n,signal:r})=>Un({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ws=e=>Wt({...e,type:"time",action:"inc"}),qs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Re(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Ks=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Re(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>Ct(s,"user list")).then(s=>s.data),Qo=new Set(["nick","mail","link"]),Gs=e=>e.filter(t=>Qo.has(t)),Zs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Xo=["//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"],ea=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)}),ta=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',na=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()})}},ra=/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/,sa=/</,ia=/(?:^|\s)\/\/(.+?)$/gm,la=/\/\*([\S\s]*?)\*\//gm,oa=new RegExp(`(${ra.source}|${sa.source})|((?:${ia.source})|(?:${la.source}))`,"gmi"),Ys=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Or={},aa=e=>{let t=0;return e.replace(oa,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Or[r]?i=Or[r]:(i=Ys[t],Or[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Ys.length,l})},ca=["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)=>[ca[n],t]));var ua=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"]),Js=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! 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"]),Qs=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! 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"]),Xs=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 ! 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"]),ei=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! 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"]),ti=Oe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。","この投稿のコメントを購読する","このサイトのコメントを購読する","あなたのコメントの返信を購読する"]),ni=Oe(["닉네임","닉네임은 3바이트 이상이어야 합니다.","이메일","이메일 주소를 확인해 주세요.","웹사이트","선택사항","여기에 댓글을 입력하세요...","아직 댓글이 없습니다.","제출","좋아요","좋아요 취소","답글","답글 취소","댓글","새로고침","더 보기...","미리보기","이모지","이미지 업로드","초 전","분 전","시간 전","일 전","방금 전","업로드 중","로그인","로그아웃","관리자","고정","글자 수",`댓글은 $0자에서 $1자 사이여야 합니다! 현재 글자 수: $2`,"익명","난쟁이","호빗","엔트","마법사","엘프","마이아","GIF","GIF 검색","프로필","승인됨","대기 중","스팸","고정 해제","오래된 순","최신 순","인기순","어떻게 생각하시나요?","댓글이 검토 중이며 현재 본인만 볼 수 있습니다. 승인 후 공개됩니다.","이 게시물의 댓글 구독","이 사이트의 댓글 구독","댓글에 대한 답글 구독"]),fa=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! 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"]),ri=Oe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?","Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным.","Подписаться на комментарии к этому посту","Подписаться на комментарии этого сайта","Подписаться на ответы ваших комментариев"]),si=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 có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! 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"]),ii=Oe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?","评论正在审核中,当前仅自己可见,审核通过后公开可见。","订阅本文评论","订阅本站评论","订阅你的评论回复"]),ha=Oe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?","您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。","訂閱此文章的評論","訂閱本站的評論","訂閱您的評論回覆"]);const li="en-US",Hn={zh:ii,"zh-cn":ii,"zh-tw":ha,en:Js,"en-us":Js,fr:Xs,"fr-fr":Xs,it:ei,"it-it":ei,jp:ti,"jp-jp":ti,ko:ni,"ko-kr":ni,"pt-br":fa,ru:ri,"ru-ru":ri,vi:si,"vi-vn":si,de:ua,es:Qs,"es-mx":Qs},oi=e=>Hn[e.toLowerCase()]??Hn[li.toLowerCase()],ai=e=>Object.keys(Hn).includes(e.toLowerCase())?e:li,ci={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},pa=Object.keys(ci),Nn=Symbol("waline-config"),ui=e=>{try{return decodeURI(e)}catch{return e}},fi=(e="")=>e.replace(/\/$/u,""),hi=e=>/^(https?:)?\/\//.test(e),Bn=e=>{const t=fi(e);return hi(t)?t:`https://${t}`},da=e=>Array.isArray(e)?e:typeof e=="number"?[0,e]:!1,un=(e,t)=>e==null||e===!0?t:e===!1?null:e,ga=({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=Zs,imageUploader:A,highlighter:_,texRenderer:T,search:j,reaction:S,...F})=>({serverURL:Bn(e),path:ui(t),lang:ai(n),locale:{...oi(ai(n)),...typeof r=="object"?r:{}},wordLimit:da(a),meta:Gs(s),requiredMeta:Gs(i),dark:l,pageSize:o,commentSorting:x,login:f,noCopyright:c,noRss:u,recaptchaV3Key:p,turnstileKey:m,...F,reaction:S===!0?Xo:S||null,imageUploader:un(A,ea),highlighter:un(_,aa),texRenderer:un(T,ta),emoji:un(y,Zs),search:un(j,na(n))}),qt=e=>typeof e=="string",Fr="{--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}",ma=e=>qt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Fr}}`:`${e}${Fr}`:e===!0?`:root${Fr}`:"",Dr=(e,t)=>{let n=e.toString();for(;n.length<t;)n=`0${n}`;return n},va=e=>{const t=Dr(e.getDate(),2),n=Dr(e.getMonth()+1,2);return`${Dr(e.getFullYear(),2)}-${n}-${t}`},ba=(e,t,n)=>{if(!e)return"";const r=qt(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}`:va(r)},ya=/^[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])?)*$/,wa=e=>ya.test(e);/** * @vue/shared v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Kt=[],St=()=>{},pi=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),Te=Object.assign,di=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ka=Object.prototype.hasOwnProperty,le=(e,t)=>ka.call(e,t),V=Array.isArray,Gt=e=>fn(e)==="[object Map]",Zt=e=>fn(e)==="[object Set]",gi=e=>fn(e)==="[object Date]",re=e=>typeof e=="function",ye=e=>typeof e=="string",We=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",mi=e=>(ce(e)||re(e))&&re(e.then)&&re(e.catch),vi=Object.prototype.toString,fn=e=>vi.call(e),xa=e=>fn(e).slice(8,-1),bi=e=>fn(e)==="[object Object]",Wn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=Ur(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},_a=/-\w/g,Fe=qn(e=>e.replace(_a,t=>t.slice(1).toUpperCase())),$a=/\B([A-Z])/g,Rt=qn(e=>e.replace($a,"-$1").toLowerCase()),Kn=qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nr=qn(e=>e?`on${Kn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Gn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},yi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wi;const pn=()=>wi||(wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function At(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?Aa(r):At(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||ce(e))return e}const Ca=/;(?![^(]*\))/g,Sa=/:([^]+)/,Ra=/\/\*[^]*?\*\//g;function Aa(e){const t={};return e.replace(Ra,"").split(Ca).forEach(n=>{if(n){const r=n.split(Sa);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ea=Ur("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ki(e){return!!e||e===""}function La(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=pt(e[r],t[r]);return n}function pt(e,t){if(e===t)return!0;let n=gi(e),r=gi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=We(e),r=We(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?La(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||!pt(e[l],t[l]))return!1}}return String(e)===String(t)}function Br(e,t){return e.findIndex(n=>pt(n,t))}const xi=e=>!!(e&&e.__v_isRef===!0),J=e=>ye(e)?e:e==null?"":V(e)||ce(e)&&(e.toString===vi||!re(e.toString))?xi(e)?J(e.value):JSON.stringify(e,_i,2):String(e),_i=(e,t)=>xi(t)?_i(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Vr(r,i)+" =>"]=s,n),{})}:Zt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vr(n))}:We(t)?Vr(t):ce(t)&&!V(t)&&!bi(t)?String(t):t,Vr=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let we;class Ta{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=we,!t&&we&&(this.index=(we.scopes||(we.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=we;try{return we=this,t()}finally{we=n}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=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 $i(){return we}function Ia(e,t=!1){we&&we.cleanups.push(e)}let ue;const Wr=new WeakSet;class Ci{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,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wr.has(this)&&(Wr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ii(this),Ai(this);const t=ue,n=Ne;ue=this,Ne=!0;try{return this.fn()}finally{Ei(this),ue=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zr(t);this.deps=this.depsTail=void 0,Ii(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gr(this)&&this.run()}get dirty(){return Gr(this)}}let Si=0,dn,gn;function Ri(e,t=!1){if(e.flags|=8,t){e.next=gn,gn=e;return}e.next=dn,dn=e}function qr(){Si++}function Kr(){if(--Si>0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;dn;){let t=dn;for(dn=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 Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ei(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zr(r),Ma(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Gr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Li(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Li(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mn)||(e.globalVersion=mn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gr(e))))return;e.flags|=2;const t=e.dep,n=ue,r=Ne;ue=e,Ne=!0;try{Ai(e);const s=e.fn(e._value);(t.version===0||ht(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,Ei(e),e.flags&=-3}}function Zr(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)Zr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ma(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const Ti=[];function dt(){Ti.push(Ne),Ne=!1}function gt(){const e=Ti.pop();Ne=e===void 0?!0:e}function Ii(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let mn=0;class Pa{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Yn{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||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new Pa(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,Mi(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++,mn++,this.notify(t)}notify(t){qr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kr()}}}function Mi(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)Mi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Jn=new WeakMap,Et=Symbol(""),Yr=Symbol(""),vn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Jn.get(e);r||Jn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Yn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Jn.get(e);if(!l){mn++;return}const o=a=>{a&&a.trigger()};if(qr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Wn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,p)=>{(p==="length"||p===vn||!We(p)&&p>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(vn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"delete":a||(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"set":Gt(e)&&o(l.get(Et));break}}Kr()}function za(e,t){const n=Jn.get(e);return n&&n.get(t)}function Yt(e){const t=te(e);return t===e?t:(ke(t,"iterate",vn),Ie(e)?t:t.map(Be))}function Qn(e){return ke(e=te(e),"iterate",vn),e}function mt(e,t){return nt(e)?Jt(Tt(e)?Be(t):t):Be(t)}const ja={__proto__:null,[Symbol.iterator](){return Jr(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return Yt(this).concat(...e.map(t=>V(t)?Yt(t):t))},entries(){return Jr(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(r=>mt(this,r)),arguments)},find(e,t){return tt(this,"find",e,t,n=>mt(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>mt(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qr(this,"includes",e)},indexOf(...e){return Qr(this,"indexOf",e)},join(e){return Yt(this).join(e)},lastIndexOf(...e){return Qr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return bn(this,"pop")},push(...e){return bn(this,"push",e)},reduce(e,...t){return Pi(this,"reduce",e,t)},reduceRight(e,...t){return Pi(this,"reduceRight",e,t)},shift(){return bn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return bn(this,"splice",e)},toReversed(){return Yt(this).toReversed()},toSorted(e){return Yt(this).toSorted(e)},toSpliced(...e){return Yt(this).toSpliced(...e)},unshift(...e){return bn(this,"unshift",e)},values(){return Jr(this,"values",e=>mt(this,e))}};function Jr(e,t,n){const r=Qn(e),s=r[t]();return r!==e&&!Ie(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Oa=Array.prototype;function tt(e,t,n,r,s,i){const l=Qn(e),o=l!==e&&!Ie(e),a=l[t];if(a!==Oa[t]){const f=a.apply(e,i);return o?Be(f):f}let c=n;l!==e&&(o?c=function(f,p){return n.call(this,mt(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 Pi(e,t,n,r){const s=Qn(e);let i=n;return s!==e&&(Ie(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,mt(e,o),a,e)}),s[t](i,...r)}function Qr(e,t,n){const r=te(e);ke(r,"iterate",vn);const s=r[t](...n);return(s===-1||s===!1)&&rr(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function bn(e,t,n=[]){dt(),qr();const r=te(e)[t].apply(e,n);return Kr(),gt(),r}const Fa=Ur("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Da(e){We(e)||(e=String(e));const t=te(this);return ke(t,"has",e),t.hasOwnProperty(e)}class ji{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?Ni:Hi:i?Ui:Di).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!s){let a;if(l&&(a=ja[n]))return a;if(n==="hasOwnProperty")return Da}const o=Reflect.get(t,n,be(t)?t:r);if((We(n)?zi.has(n):Fa(n))||(s||ke(t,"get",n),i))return o;if(be(o)){const a=l&&Wn(n)?o:o.value;return s&&ce(a)?Lt(a):a}return ce(o)?s?Lt(o):yn(o):o}}class Oi extends ji{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const l=V(t)&&Wn(n);if(!this._isShallow){const c=nt(i);if(!Ie(r)&&!nt(r)&&(i=te(i),r=te(r)),!l&&be(i)&&!be(r))return c||(i.value=r),!0}const o=l?Number(n)<t.length:le(t,n),a=Reflect.set(t,n,r,be(t)?t:s);return t===te(s)&&(o?ht(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),a}deleteProperty(t,n){const r=le(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&et(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!We(n)||!zi.has(n))&&ke(t,"has",n),r}ownKeys(t){return ke(t,"iterate",V(t)?"length":Et),Reflect.ownKeys(t)}}class Fi extends ji{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ua=new Oi,Ha=new Fi,Na=new Oi(!0),Ba=new Fi(!0),Xr=e=>e,Xn=e=>Reflect.getPrototypeOf(e);function Va(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),l=Gt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Xr:t?Jt:Be;return!t&&ke(i,"iterate",a?Yr:Et),Te(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 er(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wa(e,t){const n={get(s){const i=this.__v_raw,l=te(i),o=te(s);e||(ht(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Xn(l),c=t?Xr:e?Jt:Be;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&&ke(te(s),"iterate",Et),s.size},has(s){const i=this.__v_raw,l=te(i),o=te(s);return e||(ht(s,o)&&ke(l,"has",s),ke(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?Xr:e?Jt:Be;return!e&&ke(a,"iterate",Et),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Te(n,e?{add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear")}:{add(s){!t&&!Ie(s)&&!nt(s)&&(s=te(s));const i=te(this);return Xn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!Ie(i)&&!nt(i)&&(i=te(i));const l=te(this),{has:o,get:a}=Xn(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?ht(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=te(this),{has:l,get:o}=Xn(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&&et(i,"delete",s,void 0),c},clear(){const s=te(this),i=s.size!==0,l=s.clear();return i&&et(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Va(s,e,t)}),n}function tr(e,t){const n=Wa(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const qa={get:tr(!1,!1)},Ka={get:tr(!1,!0)},Ga={get:tr(!0,!1)},Za={get:tr(!0,!0)},Di=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,Ni=new WeakMap;function Ya(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ja(e){return e.__v_skip||!Object.isExtensible(e)?0:Ya(xa(e))}function yn(e){return nt(e)?e:nr(e,!1,Ua,qa,Di)}function Qa(e){return nr(e,!1,Na,Ka,Ui)}function Lt(e){return nr(e,!0,Ha,Ga,Hi)}function Xa(e){return nr(e,!0,Ba,Za,Ni)}function nr(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ja(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 Tt(e){return nt(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function rr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ec(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&yi(e,"__v_skip",!0),e}const Be=e=>ce(e)?yn(e):e,Jt=e=>ce(e)?Lt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function G(e){return Bi(e,!1)}function It(e){return Bi(e,!0)}function Bi(e,t){return be(e)?e:new tc(e,t)}class tc{constructor(t,n){this.dep=new Yn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Be(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ie(t)||nt(t);t=r?t:te(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:Be(t),this.dep.trigger())}}function N(e){return be(e)?e.value:e}function Me(e){return re(e)?e():N(e)}const nc={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Vi(e){return Tt(e)?e:new Proxy(e,nc)}class rc{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Yn,{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 sc(e){return new rc(e)}class ic{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)||!Wn(String(n)))do s=!rr(i)||Ie(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&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return za(this._raw,this._key)}}class lc{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 oc(e,t,n){return be(e)?e:re(e)?new lc(e):ce(e)&&arguments.length>1?ac(e,t,n):G(e)}function ac(e,t,n){return new ic(e,t,n)}class cc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Yn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mn-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 Ri(this,!0),!0}get value(){const t=this.dep.track();return Li(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uc(e,t,n=!1){let r,s;return re(e)?r=e:(r=e.get,s=e.set),new cc(r,s,n)}const sr={},ir=new WeakMap;let Mt;function fc(e,t=!1,n=Mt){if(n){let r=ir.get(n);r||ir.set(n,r=[]),r.push(e)}}function hc(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=S=>s?S:Ie(S)||s===!1||s===0?rt(S,1):rt(S);let u,f,p,m,x=!1,y=!1;if(be(e)?(f=()=>e.value,x=Ie(e)):Tt(e)?(f=()=>c(e),x=!0):V(e)?(y=!0,x=e.some(S=>Tt(S)||Ie(S)),f=()=>e.map(S=>{if(be(S))return S.value;if(Tt(S))return c(S);if(re(S))return a?a(S,2):S()})):re(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){dt();try{p()}finally{gt()}}const S=Mt;Mt=u;try{return a?a(e,3,[m]):e(m)}finally{Mt=S}}:f=St,t&&s){const S=f,F=s===!0?1/0:s;f=()=>rt(S(),F)}const A=$i(),_=()=>{u.stop(),A&&A.active&&di(A.effects,u)};if(i&&t){const S=t;t=(...F)=>{S(...F),_()}}let T=y?new Array(e.length).fill(sr):sr;const j=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const F=u.run();if(s||x||(y?F.some((pe,oe)=>ht(pe,T[oe])):ht(F,T))){p&&p();const pe=Mt;Mt=u;try{const oe=[F,T===sr?void 0:y&&T[0]===sr?[]:T,m];T=F,a?a(t,3,oe):t(...oe)}finally{Mt=pe}}}else u.run()};return o&&o(j),u=new Ci(f),u.scheduler=l?()=>l(j,!1):j,m=S=>fc(S,!1,u),p=u.onStop=()=>{const S=ir.get(u);if(S){if(a)a(S,4);else for(const F of S)F();ir.delete(u)}},t?r?j(!0):T=u.run():l?l(j.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function rt(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--,be(e))rt(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Zt(e)||Gt(e))e.forEach(r=>{rt(r,t,n)});else if(bi(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.28 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function wn(e,t,n,r){try{return r?e(...r):e()}catch(s){lr(s,t,n)}}function st(e,t,n,r){if(re(e)){const s=wn(e,t,n,r);return s&&mi(s)&&s.catch(i=>{lr(i,t,n)}),s}if(V(e)){const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,n,r));return s}}function lr(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){dt(),wn(i,null,10,[e,a,c]),gt();return}}pc(e,n,s,r,l)}function pc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const xe=[];let qe=-1;const Qt=[];let vt=null,Xt=0;const Wi=Promise.resolve();let or=null;function en(e){const t=or||Wi;return e?t.then(this?e.bind(this):e):t}function dc(e){let t=qe+1,n=xe.length;for(;t<n;){const r=t+n>>>1,s=xe[r],i=kn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=kn(e),n=xe[xe.length-1];!n||!(e.flags&2)&&t>=kn(n)?xe.push(e):xe.splice(dc(t),0,e),e.flags|=1,qi()}}function qi(){or||(or=Wi.then(Zi))}function gc(e){V(e)?Qt.push(...e):vt&&e.id===-1?vt.splice(Xt+1,0,e):e.flags&1||(Qt.push(e),e.flags|=1),qi()}function Ki(e,t,n=qe+1){for(;n<xe.length;n++){const r=xe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;xe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Gi(e){if(Qt.length){const t=[...new Set(Qt)].sort((n,r)=>kn(n)-kn(r));if(Qt.length=0,vt){vt.push(...t);return}for(vt=t,Xt=0;Xt<vt.length;Xt++){const n=vt[Xt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,Xt=0}}const kn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zi(e){try{for(qe=0;qe<xe.length;qe++){const t=xe[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<xe.length;qe++){const t=xe[qe];t&&(t.flags&=-2)}qe=-1,xe.length=0,Gi(),or=null,(xe.length||Qt.length)&&Zi()}}let Pe=null,Yi=null;function ar(e){const t=Pe;return Pe=e,Yi=e&&e.type.__scopeId||null,t}function mc(e,t=Pe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&dr(-1);const i=ar(t);let l;try{l=e(...s)}finally{ar(i),r._d&&dr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function cr(e,t){if(Pe===null)return e;const n=br(Pe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=he]=t[s];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&rt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Pt(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&&(dt(),st(a,n,8,[e.el,o,e,t]),gt())}}function vc(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function ur(e,t,n=!1){const r=hs();if(r||nn){let s=nn?nn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&re(t)?t.call(r&&r.proxy):t}}const bc=Symbol.for("v-scx"),yc=()=>ur(bc);function Ji(e,t){return Qi(e,null,t)}function bt(e,t,n){return Qi(e,t,n)}function Qi(e,t,n=he){const{immediate:r,flush:s}=n,i=Te({},n),l=t&&r||!t&&s!=="post";let o;if(An){if(s==="sync"){const f=yc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=St,f.resume=St,f.pause=St,f}}const a=Le;i.call=(f,p,m)=>st(f,a,p,m);let c=!1;s==="post"?i.scheduler=f=>{Ee(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,p)=>{p?f():es(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=hc(e,t,i);return An&&(o?o.push(u):l&&u()),u}const wc=Symbol("_vte"),kc=e=>e.__isTeleport,xc=Symbol("_leaveCb");function ts(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ts(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zt(e,t){return re(e)?Te({name:e.name},t,{setup:e}):e}function _c(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yt(e){const t=hs(),n=It(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 Xi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const fr=new WeakMap;function xn(e,t,n,r,s=!1){if(V(e)){e.forEach((y,A)=>xn(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&&xn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?br(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?pi:y=>Xi(u,y)?!1:le(p,y),x=(y,A)=>!(A&&Xi(u,A));if(c!=null&&c!==a){if(el(t),ye(c))u[c]=null,m(c)&&(f[c]=null);else if(be(c)){const y=t;x(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(re(a))wn(a,o,12,[l,u]);else{const y=ye(a),A=be(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)&&di(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 j=[i];x(a,e.k)&&(a.value=j),e.k&&(u[e.k]=j)}}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=()=>{_(),fr.delete(e)};T.id=-1,fr.set(e,T),Ee(T,n)}else el(e),_()}}}function el(e){const t=fr.get(e);t&&(t.flags|=8,fr.delete(e))}pn().requestIdleCallback,pn().cancelIdleCallback;const _n=e=>!!e.type.__asyncLoader,$c=e=>e.type.__isKeepAlive;function Cc(e,t,n=Le,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{dt();const o=ds(n),a=st(t,n,e,l);return o(),gt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Le)=>{(!An||e==="sp")&&Cc(e,(...r)=>t(...r),n)},tn=ns("m"),Sc=ns("bum"),rs=ns("um"),Rc="components";function tl(e,t){return Ec(Rc,e,!0,t)||e}const Ac=Symbol.for("v-ndc");function Ec(e,t,n=!0,r=!1){const s=Pe||Le;if(s){const i=s.type;{const o=cu(i,!1);if(o&&(o===t||o===Fe(t)||o===Kn(Fe(t))))return i}const l=nl(s[e]||i[e],t)||nl(s.appContext[e],t);return!l&&r?i:l}}function nl(e,t){return e&&(e[t]||e[Fe(t)]||e[Kn(Fe(t))])}function Ae(e,t,n,r){let s;const i=n,l=V(e);if(l||ye(e)){const o=l&&Tt(e);let a=!1,c=!1;o&&(a=!Ie(e),c=nt(e),e=Qn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Jt(Be(e[u])):Be(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 ss=e=>e?_l(e)?br(e):ss(e.parent):null,$n=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ss(e.parent),$root:e=>ss(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{es(e.update)}),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>St}),is=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),Lc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;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(is(r,t))return l[t]=1,r[t];if(le(i,t))return l[t]=3,i[t];if(n!==he&&le(n,t))return l[t]=4,n[t];l[t]=0}}const c=$n[t];let u,f;if(c)return t==="$attrs"&&ke(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==he&&le(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{setupState:r,ctx:s}=e;return is(r,t)?(r[t]=n,!0):le(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]||is(t,o)||le(i,o)||le(r,o)||le($n,o)||le(s.config.globalProperties,o)||(a=l.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rl(){return{app:null,config:{isNativeTag:pi,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 Tc=0;function Ic(e,t){return function(r,s=null){re(r)||(r=Te({},r)),s!=null&&!ce(s)&&(s=null);const i=rl(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Tc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:fu,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&re(u.install)?(l.add(u),u.install(c,...f)):re(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,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,br(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(st(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=nn;nn=c;try{return u()}finally{nn=f}}};return c}}let nn=null;const Mc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Pc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),l=i&&Mc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>ye(u)?u.trim():u)),l.number&&(s=n.map(Zn)));let o,a=r[o=Nr(t)]||r[o=Nr(Fe(t))];!a&&i&&(a=r[o=Nr(Rt(t))]),a&&st(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,st(c,e,6,s)}}function zc(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):Te(l,i),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function hr(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Rt(t))||le(e,t))}function sl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:p,setupState:m,ctx:x,inheritAttrs:y}=e,A=ar(e);let _,T;try{if(n.shapeFlag&4){const S=s||r,F=S;_=Ge(c.call(F,S,u,f,m,p,x)),T=o}else{const S=t;_=Ge(S.length>1?S(f,{attrs:o,slots:l,emit:a}):S(f,null)),T=t.props?o:jc(o)}}catch(S){Cn.length=0,lr(S,e,1),_=ee(wt)}let j=_;if(T&&y!==!1){const S=Object.keys(T),{shapeFlag:F}=j;S.length&&F&7&&(i&&S.some(Hr)&&(T=Oc(T,i)),