UNPKG

@waline/client

Version:

client for waline comment system

22 lines 174 kB
var $o=Object.defineProperty;var Ro=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ts=(e,t,n)=>Ro(e,typeof t!="symbol"?t+"":t,n);const Is={"Content-Type":"application/json"},Xe=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Er=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Xe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>yt(i,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Xe(e)}article?lang=${t}`,{method:"POST",headers:Is,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>yt(i,"Update counter").data),Ls=({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(`${Xe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ms=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Xe(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Ps=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>yt(s,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Is,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>yt(i,"Update comment")),Os=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Xe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>yt(s,"Get comment count").data),js=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},zs=({serverURL:e,lang:t,paths:n,signal:r})=>Er({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ds=e=>zn({...e,type:"time",action:"inc"}),Fs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Xe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Hs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Xe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>yt(s,"user list")).then(s=>s.data),Ao=["nick","mail","link"],Us=e=>e.filter(t=>Ao.includes(t)),Ns=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Eo=["//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"],To=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Io=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Lo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Mo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Po=/</,Oo=/(?:^|\s)\/\/(.+?)$/gm,jo=/\/\*([\S\s]*?)\*\//gm,zo=new RegExp(`(${Mo.source}|${Po.source})|((?:${Oo.source})|(?:${jo.source}))`,"gmi"),Bs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Tr={},Do=e=>{let t=0;return e.replace(zo,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Tr[r]?i=Tr[r]:(i=Bs[t],Tr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Bs.length,l})},Fo=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],qe=e=>Object.fromEntries(e.map((t,n)=>[Fo[n],t]));var Ho=qe(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Vs=qe(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words! 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?"]),Ws=qe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras! 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?"]),qs=qe(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots ! 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 ?"]),Ks=qe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Uo=qe(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras! 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?"]),Gs=qe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Zs=qe(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! 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?"]),Js=qe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),No=qe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ys="en-US",Dn={zh:Js,"zh-cn":Js,"zh-tw":No,en:Vs,"en-us":Vs,fr:qs,"fr-fr":qs,jp:Ks,"jp-jp":Ks,"pt-br":Uo,ru:Gs,"ru-ru":Gs,vi:Zs,"vi-vn":Zs,de:Ho,es:Ws,"es-mx":Ws},Qs=e=>Dn[e.toLowerCase()]||Dn[Ys.toLowerCase()],Xs=e=>Object.keys(Dn).includes(e.toLowerCase())?e:Ys,ei={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Bo=Object.keys(ei),Fn=Symbol("waline-config"),ti=e=>{try{e=decodeURI(e)}catch{}return e},ni=(e="")=>e.replace(/\/$/u,""),ri=e=>/^(https?:)?\/\//.test(e),Hn=e=>{const t=ni(e);return ri(t)?t:`https://${t}`},Vo=e=>Array.isArray(e)?e:e?[0,e]:!1,nn=(e,t)=>e==null||e===!0?t:e===!1?null:e,Wo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Ns,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Hn(e),path:ti(t),lang:Xs(n),locale:{...Qs(Xs(n)),...typeof r=="object"?r:{}},wordLimit:Vo(a),meta:Us(s),requiredMeta:Us(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:N===!0?Eo:N||null,imageUploader:nn(b,To),highlighter:nn(T,Do),texRenderer:nn(w,Io),emoji:nn(x,Ns),search:nn(C,Lo(n))}),zt=e=>typeof e=="string",Ir="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",qo=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ir}}`:`${e}${Ir}`:e===!0?`:root${Ir}`:"",Lr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Ko=e=>{const t=Lr(e.getDate(),2),n=Lr(e.getMonth()+1,2);return`${Lr(e.getFullYear(),2)}-${n}-${t}`},Go=(e,t,n)=>{if(!e)return"";const r=zt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:Ko(r)},Zo=/^[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])?)*$/,Jo=e=>Zo.test(e);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Mr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ie={},Dt=[],wt=()=>{},Yo=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pr=e=>e.startsWith("onUpdate:"),je=Object.assign,si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qo=Object.prototype.hasOwnProperty,X=(e,t)=>Qo.call(e,t),q=Array.isArray,Ft=e=>rn(e)==="[object Map]",Ht=e=>rn(e)==="[object Set]",ii=e=>rn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ke=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",li=e=>(he(e)||ee(e))&&ee(e.then)&&ee(e.catch),oi=Object.prototype.toString,rn=e=>oi.call(e),Xo=e=>rn(e).slice(8,-1),ai=e=>rn(e)==="[object Object]",Or=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Mr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ea=/-(\w)/g,ze=Nn(e=>e.replace(ea,(t,n)=>n?n.toUpperCase():"")),ta=/\B([A-Z])/g,kt=Nn(e=>e.replace(ta,"-$1").toLowerCase()),Bn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),jr=Nn(e=>e?`on${Bn(e)}`:""),ft=(e,t)=>!Object.is(e,t),Vn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ci=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ui;const ln=()=>ui||(ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?ia(r):on(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||he(e))return e}const na=/;(?![^(]*\))/g,ra=/:([^]+)/,sa=/\/\*[^]*?\*\//g;function ia(e){const t={};return e.replace(sa,"").split(na).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(ye(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const la="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",oa=Mr(la);function fi(e){return!!e||e===""}function aa(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=ii(e),r=ii(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ke(e),r=Ke(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return n&&r?aa(e,t):!1;if(n=he(e),r=he(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||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function zr(e,t){return e.findIndex(n=>xt(n,t))}const hi=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":q(e)||he(e)&&(e.toString===oi||!ee(e.toString))?hi(e)?Y(e.value):JSON.stringify(e,pi,2):String(e),pi=(e,t)=>hi(t)?pi(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Dr(r,i)+" =>"]=s,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Dr(n))}:Ke(t)?Dr(t):he(t)&&!q(t)&&!ai(t)?String(t):t,Dr=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ce;class ca{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}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 di(){return Ce}function ua(e,t=!1){Ce&&Ce.cleanups.push(e)}let ue;const Fr=new WeakSet;class gi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fr.has(this)&&(Fr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xi(this),bi(this);const t=ue,n=Ne;ue=this,Ne=!0;try{return this.fn()}finally{yi(this),ue=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Br(t);this.deps=this.depsTail=void 0,xi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let mi=0,an,cn;function vi(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Hr(){mi++}function Ur(){if(--mi>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=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 bi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Br(r),fa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un))return;e.globalVersion=un;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Nr(e)){e.flags&=-3;return}const n=ue,r=Ne;ue=e,Ne=!0;try{bi(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,yi(e),e.flags&=-3}}function Br(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)Br(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fa(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 ki=[];function _t(){ki.push(Ne),Ne=!1}function Ct(){const e=ki.pop();Ne=e===void 0?!0:e}function xi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let un=0;class ha{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ue||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new ha(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,_i(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++,un++,this.notify(t)}notify(t){Hr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ur()}}}function _i(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)_i(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Kn=new WeakMap,St=Symbol(""),Vr=Symbol(""),fn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Kn.get(e);r||Kn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Kn.get(e);if(!l){un++;return}const o=a=>{a&&a.trigger()};if(Hr(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&Or(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===fn||!Ke(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(fn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ft(e)&&o(l.get(Vr)));break;case"delete":a||(o(l.get(St)),Ft(e)&&o(l.get(Vr)));break;case"set":Ft(e)&&o(l.get(St));break}}Ur()}function pa(e,t){const n=Kn.get(e);return n&&n.get(t)}function Ut(e){const t=Q(e);return t===e?t:(ke(t,"iterate",fn),De(e)?t:t.map(xe))}function Gn(e){return ke(e=Q(e),"iterate",fn),e}const da={__proto__:null,[Symbol.iterator](){return Wr(this,Symbol.iterator,xe)},concat(...e){return Ut(this).concat(...e.map(t=>q(t)?Ut(t):t))},entries(){return Wr(this,"entries",e=>(e[1]=xe(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(xe),arguments)},find(e,t){return tt(this,"find",e,t,xe,arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,xe,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 Ut(this).join(e)},lastIndexOf(...e){return qr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return Ci(this,"reduce",e,t)},reduceRight(e,...t){return Ci(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return Wr(this,"values",xe)}};function Wr(e,t,n){const r=Gn(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ga=Array.prototype;function tt(e,t,n,r,s,i){const l=Gn(e),o=l!==e&&!De(e),a=l[t];if(a!==ga[t]){const f=a.apply(e,i);return o?xe(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,xe(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Ci(e,t,n,r){const s=Gn(e);let i=n;return s!==e&&(De(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,xe(o),a,e)}),s[t](i,...r)}function qr(e,t,n){const r=Q(e);ke(r,"iterate",fn);const s=r[t](...n);return(s===-1||s===!1)&&Gr(n[0])?(n[0]=Q(n[0]),r[t](...n)):s}function hn(e,t,n=[]){_t(),Hr();const r=Q(e)[t].apply(e,n);return Ur(),Ct(),r}const ma=Mr("__proto__,__v_isRef,__isVue"),Si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function va(e){Ke(e)||(e=String(e));const t=Q(this);return ke(t,"has",e),t.hasOwnProperty(e)}class $i{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?Li:Ii:i?Ti:Ei).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!s){let a;if(l&&(a=da[n]))return a;if(n==="hasOwnProperty")return va}const o=Reflect.get(t,n,ve(t)?t:r);return(Ke(n)?Si.has(n):ma(n))||(s||ke(t,"get",n),i)?o:ve(o)?l&&Or(n)?o:o.value:he(o)?s?Nt(o):pn(o):o}}class Ri extends $i{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=$t(i);if(!De(r)&&!$t(r)&&(i=Q(i),r=Q(r)),!q(t)&&ve(i)&&!ve(r))return a?!1:(i.value=r,!0)}const l=q(t)&&Or(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,ve(t)?t:s);return t===Q(s)&&(l?ft(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),o}deleteProperty(t,n){const r=X(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(!Ke(n)||!Si.has(n))&&ke(t,"has",n),r}ownKeys(t){return ke(t,"iterate",q(t)?"length":St),Reflect.ownKeys(t)}}class Ai extends $i{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ba=new Ri,ya=new Ai,wa=new Ri(!0),ka=new Ai(!0),Kr=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function xa(e,t,n){return function(...r){const s=this.__v_raw,i=Q(s),l=Ft(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Kr:t?Zr:xe;return!t&&ke(i,"iterate",a?Vr:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _a(e,t){const n={get(s){const i=this.__v_raw,l=Q(i),o=Q(s);e||(ft(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Zn(l),c=t?Kr:e?Zr:xe;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ke(Q(s),"iterate",St),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=Q(i),o=Q(s);return e||(ft(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=Q(o),c=t?Kr:e?Zr:xe;return!e&&ke(a,"iterate",St),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return je(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const i=Q(this);return Zn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const l=Q(this),{has:o,get:a}=Zn(l);let c=o.call(l,s);c||(s=Q(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ft(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=Q(this),{has:l,get:o}=Zn(i);let a=l.call(i,s);a||(s=Q(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=Q(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]=xa(s,e,t)}),n}function Yn(e,t){const n=_a(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(X(n,s)&&s in r?n:r,s,i)}const Ca={get:Yn(!1,!1)},Sa={get:Yn(!1,!0)},$a={get:Yn(!0,!1)},Ra={get:Yn(!0,!0)},Ei=new WeakMap,Ti=new WeakMap,Ii=new WeakMap,Li=new WeakMap;function Aa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ea(e){return e.__v_skip||!Object.isExtensible(e)?0:Aa(Xo(e))}function pn(e){return $t(e)?e:Qn(e,!1,ba,Ca,Ei)}function Ta(e){return Qn(e,!1,wa,Sa,Ti)}function Nt(e){return Qn(e,!0,ya,$a,Ii)}function Ia(e){return Qn(e,!0,ka,Ra,Li)}function Qn(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=Ea(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return s.set(e,o),o}function Bt(e){return $t(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Gr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function La(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&ci(e,"__v_skip",!0),e}const xe=e=>he(e)?pn(e):e,Zr=e=>he(e)?Nt(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function se(e){return Mi(e,!1)}function Rt(e){return Mi(e,!0)}function Mi(e,t){return ve(e)?e:new Ma(e,t)}class Ma{constructor(t,n){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||$t(t);t=r?t:Q(t),ft(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function K(e){return ve(e)?e.value:e}function Te(e){return ee(e)?e():K(e)}const Pa={get:(e,t,n)=>t==="__v_raw"?e:K(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 Pi(e){return Bt(e)?e:new Proxy(e,Pa)}class Oa{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ja(e){return new Oa(e)}class za{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pa(Q(this._object),this._key)}}class Da{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Fa(e,t,n){return ve(e)?e:ee(e)?new Da(e):he(e)&&arguments.length>1?Ha(e,t,n):se(e)}function Ha(e,t,n){const r=e[t];return ve(r)?r:new za(e,t,n)}class Ua{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-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 vi(this,!0),!0}get value(){const t=this.dep.track();return wi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Na(e,t,n=!1){let r,s;return ee(e)?r=e:(r=e.get,s=e.set),new Ua(r,s,n)}const Xn={},er=new WeakMap;let At;function Ba(e,t=!1,n=At){if(n){let r=er.get(n);r||er.set(n,r=[]),r.push(e)}}function Va(e,t,n=ie){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=I=>s?I:De(I)||s===!1||s===0?nt(I,1):nt(I);let u,f,d,m,x=!1,b=!1;if(ve(e)?(f=()=>e.value,x=De(e)):Bt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Bt(I)||De(I)),f=()=>e.map(I=>{if(ve(I))return I.value;if(Bt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=At;At=u;try{return a?a(e,3,[m]):e(m)}finally{At=I}}:f=wt,t&&s){const I=f,O=s===!0?1/0:s;f=()=>nt(I(),O)}const T=di(),w=()=>{u.stop(),T&&T.active&&si(T.effects,u)};if(i&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Xn):Xn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(s||x||(b?O.some((G,j)=>ft(G,C[j])):ft(O,C))){d&&d();const G=At;At=u;try{const j=[O,C===Xn?void 0:b&&C[0]===Xn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{At=G}}}else u.run()};return o&&o(N),u=new gi(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Ba(I,!1,u),d=u.onStop=()=>{const I=er.get(u);if(I){if(a)a(I,4);else for(const O of I)O();er.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function nt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))nt(e.value,t,n);else if(q(e))for(let r=0;r<e.length;r++)nt(e[r],t,n);else if(Ht(e)||Ft(e))e.forEach(r=>{nt(r,t,n)});else if(ai(e)){for(const r in e)nt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function dn(e,t,n,r){try{return r?e(...r):e()}catch(s){tr(s,t,n)}}function rt(e,t,n,r){if(ee(e)){const s=dn(e,t,n,r);return s&&li(s)&&s.catch(i=>{tr(i,t,n)}),s}if(q(e)){const s=[];for(let i=0;i<e.length;i++)s.push(rt(e[i],t,n,r));return s}}function tr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ie;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){_t(),dn(i,null,10,[e,a,c]),Ct();return}}Wa(e,n,s,r,l)}function Wa(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let Ge=-1;const Vt=[];let ht=null,Wt=0;const Oi=Promise.resolve();let nr=null;function qt(e){const t=nr||Oi;return e?t.then(this?e.bind(this):e):t}function qa(e){let t=Ge+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=gn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=gn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=gn(n)?Se.push(e):Se.splice(qa(t),0,e),e.flags|=1,ji()}}function ji(){nr||(nr=Oi.then(Fi))}function Ka(e){q(e)?Vt.push(...e):ht&&e.id===-1?ht.splice(Wt+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),ji()}function zi(e,t,n=Ge+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Di(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,r)=>gn(n)-gn(r));if(Vt.length=0,ht){ht.push(...t);return}for(ht=t,Wt=0;Wt<ht.length;Wt++){const n=ht[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ht=null,Wt=0}}const gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fi(e){try{for(Ge=0;Ge<Se.length;Ge++){const t=Se[Ge];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ge<Se.length;Ge++){const t=Se[Ge];t&&(t.flags&=-2)}Ge=-1,Se.length=0,Di(),nr=null,(Se.length||Vt.length)&&Fi()}}let Ae=null,Hi=null;function rr(e){const t=Ae;return Ae=e,Hi=e&&e.type.__scopeId||null,t}function Ga(e,t=Ae,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ll(-1);const i=rr(t);let l;try{l=e(...s)}finally{rr(i),r._d&&ll(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function sr(e,t){if(Ae===null)return e;const n=hr(Ae),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=ie]=t[s];i&&(ee(i)&&(i={mounted:i,updated:i}),i.deep&&nt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Et(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&&(_t(),rt(a,n,8,[e.el,o,e,t]),Ct())}}const Za=Symbol("_vte"),Ja=e=>e.__isTeleport;function Yr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function mn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function Ya(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pt(e){const t=cl(),n=Rt(null);if(t){const s=t.refs===ie?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function ir(e,t,n,r,s=!1){if(q(e)){e.forEach((x,b)=>ir(x,t&&(q(t)?t[b]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ir(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?hr(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ie?o.refs={}:o.refs,f=o.setupState,d=Q(f),m=f===ie?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):ve(c)&&(c.value=null)),ee(a))dn(a,o,12,[l,u]);else{const x=ye(a),b=ve(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;s?q(w)&&si(w,i):q(w)?w.includes(i)||w.push(i):x?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Ie(T,n)):T()}}}ln().requestIdleCallback,ln().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,Qa=e=>e.type.__isKeepAlive;function Xa(e,t,n=$e,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{_t();const o=as(n),a=rt(t,n,e,l);return o(),Ct(),a});return r?s.unshift(i):s.push(i),i}}const Qr=e=>(t,n=$e)=>{(!_n||e==="sp")&&Xa(e,(...r)=>t(...r),n)},bn=Qr("m"),ec=Qr("bum"),Xr=Qr("um"),tc="components";function nc(e,t){return sc(tc,e,!0,t)||e}const rc=Symbol.for("v-ndc");function sc(e,t,n=!0,r=!1){const s=Ae||$e;if(s){const i=s.type;{const o=Uc(i,!1);if(o&&(o===t||o===ze(t)||o===Bn(ze(t))))return i}const l=Ui(s[e]||i[e],t)||Ui(s.appContext[e],t);return!l&&r?i:l}}function Ui(e,t){return e&&(e[t]||e[ze(t)]||e[Bn(ze(t))])}function Fe(e,t,n,r){let s;const i=n,l=q(e);if(l||ye(e)){const o=l&&Bt(e);let a=!1;o&&(a=!De(e),e=Gn(e)),s=new Array(e.length);for(let c=0,u=e.length;c<u;c++)s[c]=t(a?xe(e[c]):e[c],c,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(he(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 es=e=>e?fl(e)?hr(e):es(e.parent):null,yn=je(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=>es(e.parent),$root:e=>es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Jr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>wt}),ts=(e,t)=>e!==ie&&!e.__isScriptSetup&&X(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;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ts(r,t))return l[t]=1,r[t];if(s!==ie&&X(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,i[t];if(n!==ie&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=yn[t];let f,d;if(u)return t==="$attrs"&&ke(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==ie&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ts(s,t)?(s[t]=n,!0):r!==ie&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==ie&&X(e,l)||ts(t,l)||(o=i[0])&&X(o,l)||X(r,l)||X(yn,l)||X(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ni(){return{app:null,config:{isNativeTag:Yo,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 lc=0;function oc(e,t){return function(r,s=null){ee(r)||(r=je({},r)),s!=null&&!he(s)&&(s=null);const i=Ni(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:lc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Bc,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||le(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,hr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(rt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function ac(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function lr(e,t,n=!1){const r=$e||Ae;if(r||Kt){const s=Kt?Kt._context.provides:r?r.parent==null?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&&ee(t)?t.call(r&&r.proxy):t}}const Bi={},Vi=()=>Object.create(Bi),Wi=e=>Object.getPrototypeOf(e)===Bi;function cc(e,t,n,r=!1){const s={},i=Vi();e.propsDefaults=Object.create(null),qi(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Ta(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function uc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=Q(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(or(e.emitsOptions,d))continue;const m=t[d];if(a)if(X(i,d))m!==i[d]&&(i[d]=m,c=!0);else{const x=ze(d);s[x]=ns(a,o,x,m,e,!1)}else m!==i[d]&&(i[d]=m,c=!0)}}}else{qi(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!X(t,f)&&((u=kt(f))===f||!X(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ns(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!X(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function qi(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(sn(a))continue;const c=t[a];let u;s&&X(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:or(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=Q(n),c=o||ie;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ns(s,a,f,c[f],e,!X(c,f))}}return l}function ns(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=X(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=as(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===kt(n))&&(r=!0))}return r}function fc(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 he(e)&&r.set(e,Dt),Dt;if(q(i))for(let c=0;c<i.length;c++){const u=ze(i[c]);Ki(u)&&(l[u]=ie)}else if(i)for(const c in i){const u=ze(c);if(Ki(u)){const f=i[c],d=l[u]=q(f)||ee(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(q(m))for(let T=0;T<m.length;++T){const w=m[T],C=ee(w)&&w.name;if(C==="Boolean"){x=!0;break}else C==="String"&&(b=!1)}else x=ee(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||X(d,"default"))&&o.push(u)}}const a=[l,o];return he(e)&&r.set(e,a),a}function Ki(e){return e[0]!=="$"&&!sn(e)}const Gi=e=>e[0]==="_"||e==="$stable",rs=e=>q(e)?e.map(Ze):[Ze(e)],hc=(e,t,n)=>{if(t._n)return t;const r=Ga((...s)=>rs(t(...s)),n);return r._c=!1,r},Zi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Gi(s))continue;const i=e[s];if(ee(i))t[s]=hc(s,i,r);else if(i!=null){const l=rs(i);t[s]=()=>l}}},Ji=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Yi=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},pc=(e,t,n)=>{const r=e.slots=Vi();if(e.vnode.shapeFlag&32){const s=t._;s?(Yi(r,t,n),n&&ci(r,"_",s,!0)):Zi(t,r)}else t&&Ji(e,t)},dc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ie;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:Yi(s,t,n):(i=!t.$stable,Zi(t,s)),l=t}else t&&(Ji(e,t),l={default:1});if(i)for(const o in s)!Gi(o)&&l[o]==null&&delete s[o]};function gc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ln().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ie=Ec;function mc(e){return vc(e)}function vc(e,t){gc();const n=ln();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!xn(h,p)&&(y=bt(h),Ue(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case ar:T(h,p,g,y);break;case It:w(h,p,g,y);break;case is:h==null&&C(p,g,y,A);break;case fe:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&ir(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),s(h),h=g;s(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):ae(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&oe(h.children,$,null,y,k,ss(h,v),A,S),V&&Et(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const re in U)re!=="value"&&!sn(re)&&i($,re,null,U[re],v,y);"value"in U&&i($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Je(_,y,h)}V&&Et(h,null,y,"beforeMount");const Z=bc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Ie(()=>{_&&Je(_,y,h),Z&&H.enter($),V&&Et(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||il(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;j(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},oe=(h,p,g,y,k,v,A,S,$=0)=>{for(let _=$;_<h.length;_++){const U=h[_]=S?gt(h[_]):Ze(h[_]);b(null,U,p,g,y,k,v,A,S)}},ae=(h,p,g,y,k,v,A)=>{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||ie,H=p.props||ie;let V;if(g&&Tt(g,!1),(V=H.onVnodeBeforeUpdate)&&Je(V,g,p,h),U&&Et(p,h,g,"beforeUpdate"),g&&Tt(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Me(h.dynamicChildren,_,S,g,y,ss(p,k),v):A||ut(h,p,S,null,g,y,ss(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&i(S,"class",null,H.class,k),$&4&&i(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let re=0;re<Z.length;re++){const ce=Z[re],Pe=M[ce],_e=H[ce];(_e!==Pe||ce==="value")&&i(S,ce,Pe,_e,k,g)}}$&1&&h.children!==p.children&&u(S,p.children)}else!A&&_==null&&E(S,M,H,g,k);((V=H.onVnodeUpdated)||U)&&Ie(()=>{V&&Je(V,g,p,h),U&&Et(p,h,g,"updated")},y)},Me=(h,p,g,y,k,v,A)=>{for(let S=0;S<p.length;S++){const $=h[S],_=p[S],U=$.el&&($.type===fe||!xn($,_)||$.shapeFlag&70)?f($.el):g;b($,_,U,null,y,k,v,A,!0)}},E=(h,p,g,y,k)=>{if(p!==g){if(p!==ie)for(const v in p)!sn(v)&&!(v in g)&&i(h,v,p[v],null,k,y);for(const v in g){if(sn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&i(h,v,S,A,k,y)}"value"in g&&i(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),oe(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Me(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Qi(h,p,!0)):ut(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeIds=S,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,$):de(p,g,y,k,v,A,$):we(h,p,$)},de=(h,p,g,y,k,v,A)=>{const S=h.component=jc(h,y,k);if(Qa(h)&&(S.ctx.renderer=R),zc(S,!1,A),S.asyncDep){if(k&&k.registerDep(S,be,A),!h.el){const $=S.subTree=le(I