UNPKG

@waline/client

Version:

client for waline comment system

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