@waline/client 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comment.js +1 -1
- package/dist/component.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/slim.js +1 -1
- package/dist/slim.js.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.js +58 -58
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +58 -58
- package/dist/waline.umd.js.map +1 -1
- package/package.json +9 -9
package/dist/waline.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),
|
|
3
|
-
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),
|
|
4
|
-
Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),
|
|
5
|
-
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),
|
|
6
|
-
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),
|
|
7
|
-
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),
|
|
8
|
-
Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),
|
|
9
|
-
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),
|
|
10
|
-
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const
|
|
11
|
-
* @vue/shared v3.5.
|
|
1
|
+
var go=Object.defineProperty;var mo=(e,t,n)=>t in e?go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $i=(e,t,n)=>mo(e,typeof t!="symbol"?t+"":t,n);const Si={"Content-Type":"application/json"},rt=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},kr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${rt(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>_t(s,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${rt(e)}article?lang=${t}`,{method:"POST",headers:Si,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>_t(s,"Update counter").data),Ri=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${rt(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>_t(c,"Get comment data").data)},Ai=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${rt(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ei=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${rt(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>_t(i,"Delete comment")),Qt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${rt(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Si,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>_t(s,"Update comment")),Ti=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${rt(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>_t(i,"Get comment count").data),Li=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=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 i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ii=({serverURL:e,lang:t,paths:n,signal:r})=>kr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Mi=e=>On({...e,type:"time",action:"inc"}),Oi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${rt(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Pi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${rt(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>_t(i,"user list")).then(i=>i.data),vo=["nick","mail","link"],ji=e=>e.filter(t=>vo.includes(t)),zi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],bo=["//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"],yo=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=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),wo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',ko=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(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.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()})}},xo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,_o=/</,Co=/(?:^|\s)\/\/(.+?)$/gm,$o=/\/\*([\S\s]*?)\*\//gm,So=new RegExp(`(${xo.source}|${_o.source})|((?:${Co.source})|(?:${$o.source}))`,"gmi"),Fi=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],xr={},Ro=e=>{let t=0;return e.replace(So,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"<";let s;xr[r]?s=xr[r]:(s=Fi[t],xr[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%Fi.length,l})},Ao=["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"],Ye=e=>Object.fromEntries(e.map((t,n)=>[Ao[n],t]));var Eo=Ye(["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?"]),Di=Ye(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
|
2
|
+
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Hi=Ye(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
|
|
3
|
+
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Ni=Ye(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
|
|
4
|
+
Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Ui=Ye(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
5
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),To=Ye(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
|
6
|
+
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Bi=Ye(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
7
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Vi=Ye(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
|
|
8
|
+
Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Wi=Ye(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
9
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Lo=Ye(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
10
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const qi="en-US",Pn={zh:Wi,"zh-cn":Wi,"zh-tw":Lo,en:Di,"en-us":Di,fr:Ni,"fr-fr":Ni,jp:Ui,"jp-jp":Ui,"pt-br":To,ru:Bi,"ru-ru":Bi,vi:Vi,"vi-vn":Vi,de:Eo,es:Hi,"es-mx":Hi},Ki=e=>Pn[e.toLowerCase()]||Pn[qi.toLowerCase()],Gi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:qi,Zi=e=>{try{e=decodeURI(e)}catch{}return e},Ji=(e="")=>e.replace(/\/$/u,""),Yi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Ji(e);return Yi(t)?t:`https://${t}`},Io=e=>Array.isArray(e)?e:e?[0,e]:!1,_r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Mo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=zi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:d,copyright:g=!0,login:k="enable",search:v,reaction:$,recaptchaV3Key:b="",turnstileKey:C="",commentSorting:N="latest",...E})=>({serverURL:jn(e),path:Zi(t),lang:Gi(n),locale:{...Ki(Gi(n)),...typeof r=="object"?r:{}},wordLimit:Io(c),meta:ji(s),requiredMeta:ji(l),imageUploader:_r(u,yo),highlighter:_r(h,Ro),texRenderer:_r(d,wo),dark:o,emoji:typeof i=="boolean"?i?zi:[]:i,pageSize:a,login:k,copyright:g,search:v===!1?!1:typeof v=="object"?v:ko(n),recaptchaV3Key:b,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?bo:[],commentSorting:N,...E}),Ft=e=>typeof e=="string",Cr="{--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}",Oo=e=>Ft(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Cr}}`:`${e}${Cr}`:e===!0?`:root${Cr}`:"",$r=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Po=e=>{const t=$r(e.getDate(),2),n=$r(e.getMonth()+1,2);return`${$r(e.getFullYear(),2)}-${n}-${t}`},jo=(e,t,n)=>{if(!e)return"";const r=Ft(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%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 s<0?n.now:s<8?`${s} ${n.days}`:Po(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])?)*$/,Fo=e=>zo.test(e);/**
|
|
11
|
+
* @vue/shared v3.5.13
|
|
12
12
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
13
|
* @license MIT
|
|
14
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
15
|
-
* @vue/reactivity v3.5.
|
|
14
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Sr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},Dt=[],Ct=()=>{},Do=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Rr=e=>e.startsWith("onUpdate:"),He=Object.assign,Qi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ho=Object.prototype.hasOwnProperty,ee=(e,t)=>Ho.call(e,t),V=Array.isArray,Ht=e=>Xt(e)==="[object Map]",Nt=e=>Xt(e)==="[object Set]",Xi=e=>Xt(e)==="[object Date]",le=e=>typeof e=="function",we=e=>typeof e=="string",Qe=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",es=e=>(ge(e)||le(e))&&le(e.then)&&le(e.catch),ts=Object.prototype.toString,Xt=e=>ts.call(e),No=e=>Xt(e).slice(8,-1),ns=e=>Xt(e)==="[object Object]",Ar=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Sr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,Ne=Fn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),Bo=/\B([A-Z])/g,$t=Fn(e=>e.replace(Bo,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=Fn(e=>e?`on${Dn(e)}`:""),mt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},rs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const tn=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=we(r)?Ko(r):nn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(we(e)||ge(e))return e}const Vo=/;(?![^(]*\))/g,Wo=/:([^]+)/,qo=/\/\*[^]*?\*\//g;function Ko(e){const t={};return e.replace(qo,"").split(Vo).forEach(n=>{if(n){const r=n.split(Wo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(we(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Go="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zo=Sr(Go);function ss(e){return!!e||e===""}function Jo(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=Xi(e),r=Xi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Qe(e),r=Qe(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?Jo(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)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 Tr(e,t){return e.findIndex(n=>St(n,t))}const ls=e=>!!(e&&e.__v_isRef===!0),X=e=>we(e)?e:e==null?"":V(e)||ge(e)&&(e.toString===ts||!le(e.toString))?ls(e)?X(e.value):JSON.stringify(e,os,2):String(e),os=(e,t)=>ls(t)?os(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Lr(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lr(n))}:Qe(t)?Lr(t):ge(t)&&!V(t)&&!ns(t)?String(t):t,Lr=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
15
|
+
* @vue/reactivity v3.5.13
|
|
16
16
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
17
|
* @license MIT
|
|
18
|
-
**/let Ae;class da{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function bs(){return Ae}function pa(e,t=!1){Ae&&Ae.cleanups.push(e)}let ue;const Fr=new WeakSet;class ys{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,Ae&&Ae.active&&Ae.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||(this.flags|=8,this.nextEffect=sn,sn=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cs(this),xs(this);const t=ue,n=Ke;ue=this,Ke=!0;try{return this.fn()}finally{ks(this),ue=t,Ke=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nr(t);this.deps=this.depsTail=void 0,Cs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ur(this)&&this.run()}get dirty(){return Ur(this)}}let ws=0,sn;function Dr(){ws++}function Hr(){if(--ws>0)return;let e;for(;sn;){let t=sn;for(sn=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function xs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ks(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),Nr(r),ga(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Ur(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&_s(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function _s(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln))return;e.globalVersion=ln;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Ur(e)){e.flags&=-3;return}const n=ue,r=Ke;ue=e,Ke=!0;try{xs(e);const i=e.fn(e._value);(t.version===0||pt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ue=n,Ke=r,ks(e),e.flags&=-3}}function Nr(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Nr(i)}}function ga(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const $s=[];function Et(){$s.push(Ke),Ke=!1}function Tt(){const e=$s.pop();Ke=e===void 0?!0:e}function Cs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let ln=0;class Vr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!ue||!Ke||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink={dep:this,sub:ue,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,ue.flags&4&&Ss(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++,ln++,this.notify(t)}notify(t){Dr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Hr()}}}function Ss(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ss(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Br=new WeakMap,At=Symbol(""),Wr=Symbol(""),on=Symbol("");function Ce(e,t,n){if(Ke&&ue){let r=Br.get(e);r||Br.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Vr),i.track()}}function it(e,t,n,r,i,s){const l=Br.get(e);if(!l){ln++;return}let o=[];if(t==="clear")o=[...l.values()];else{const a=B(e),u=a&&Mr(n);if(a&&n==="length"){const c=Number(r);l.forEach((h,p)=>{(p==="length"||p===on||!Xe(p)&&p>=c)&&o.push(h)})}else{const c=h=>h&&o.push(h);switch(n!==void 0&&c(l.get(n)),u&&c(l.get(on)),t){case"add":a?u&&c(l.get("length")):(c(l.get(At)),Ht(e)&&c(l.get(Wr)));break;case"delete":a||(c(l.get(At)),Ht(e)&&c(l.get(Wr)));break;case"set":Ht(e)&&c(l.get(At));break}}}Dr();for(const a of o)a.trigger();Hr()}function Nt(e){const t=te(e);return t===e?t:(Ce(t,"iterate",on),Ge(e)?t:t.map(Se))}function Bn(e){return Ce(e=te(e),"iterate",on),e}const ma={__proto__:null,[Symbol.iterator](){return qr(this,Symbol.iterator,Se)},concat(...e){return Nt(this).concat(...e.map(t=>B(t)?Nt(t):t))},entries(){return qr(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return st(this,"every",e,t,void 0,arguments)},filter(e,t){return st(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return st(this,"find",e,t,Se,arguments)},findIndex(e,t){return st(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return st(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return st(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return st(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kr(this,"includes",e)},indexOf(...e){return Kr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Kr(this,"lastIndexOf",e)},map(e,t){return st(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return Es(this,"reduce",e,t)},reduceRight(e,...t){return Es(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return st(this,"some",e,t,void 0,arguments)},splice(...e){return an(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return an(this,"unshift",e)},values(){return qr(this,"values",Se)}};function qr(e,t,n){const r=Bn(e),i=r[t]();return r!==e&&!Ge(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const va=Array.prototype;function st(e,t,n,r,i,s){const l=Bn(e),o=l!==e&&!Ge(e),a=l[t];if(a!==va[t]){const h=a.apply(e,s);return o?Se(h):h}let u=n;l!==e&&(o?u=function(h,p){return n.call(this,Se(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=a.call(l,u,r);return o&&i?i(c):c}function Es(e,t,n,r){const i=Bn(e);let s=n;return i!==e&&(Ge(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Kr(e,t,n){const r=te(e);Ce(r,"iterate",on);const i=r[t](...n);return(i===-1||i===!1)&&Jr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function an(e,t,n=[]){Et(),Dr();const r=te(e)[t].apply(e,n);return Hr(),Tt(),r}const ba=Ir("__proto__,__v_isRef,__isVue"),Ts=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function ya(e){Xe(e)||(e=String(e));const t=te(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class As{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?La:Ps:s?zs:js).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=B(t);if(!i){let a;if(l&&(a=ma[n]))return a;if(n==="hasOwnProperty")return ya}const o=Reflect.get(t,n,ke(t)?t:r);return(Xe(n)?Ts.has(n):ba(n))||(i||Ce(t,"get",n),s)?o:ke(o)?l&&Mr(n)?o:o.value:pe(o)?i?un(o):cn(o):o}}class Rs extends As{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Rt(s);if(!Ge(r)&&!Rt(r)&&(s=te(s),r=te(r)),!B(t)&&ke(s)&&!ke(r))return a?!1:(s.value=r,!0)}const l=B(t)&&Mr(n)?Number(n)<t.length:se(t,n),o=Reflect.set(t,n,r,ke(t)?t:i);return t===te(i)&&(l?pt(r,s)&&it(t,"set",n,r):it(t,"add",n,r)),o}deleteProperty(t,n){const r=se(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&it(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Xe(n)||!Ts.has(n))&&Ce(t,"has",n),r}ownKeys(t){return Ce(t,"iterate",B(t)?"length":At),Reflect.ownKeys(t)}}class wa extends As{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xa=new Rs,ka=new wa,_a=new Rs(!0),Gr=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function qn(e,t,n=!1,r=!1){e=e.__v_raw;const i=te(e),s=te(t);n||(pt(t,s)&&Ce(i,"get",t),Ce(i,"get",s));const{has:l}=Wn(i),o=r?Gr:n?Yr:Se;if(l.call(i,t))return o(e.get(t));if(l.call(i,s))return o(e.get(s));e!==i&&e.get(t)}function Kn(e,t=!1){const n=this.__v_raw,r=te(n),i=te(e);return t||(pt(e,i)&&Ce(r,"has",e),Ce(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Gn(e,t=!1){return e=e.__v_raw,!t&&Ce(te(e),"iterate",At),Reflect.get(e,"size",e)}function Is(e,t=!1){!t&&!Ge(e)&&!Rt(e)&&(e=te(e));const n=te(this);return Wn(n).has.call(n,e)||(n.add(e),it(n,"add",e,e)),this}function Ls(e,t,n=!1){!n&&!Ge(t)&&!Rt(t)&&(t=te(t));const r=te(this),{has:i,get:s}=Wn(r);let l=i.call(r,e);l||(e=te(e),l=i.call(r,e));const o=s.call(r,e);return r.set(e,t),l?pt(t,o)&&it(r,"set",e,t):it(r,"add",e,t),this}function Ms(e){const t=te(this),{has:n,get:r}=Wn(t);let i=n.call(t,e);i||(e=te(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&it(t,"delete",e,void 0),s}function Os(){const e=te(this),t=e.size!==0,n=e.clear();return t&&it(e,"clear",void 0,void 0),n}function Zn(e,t){return function(r,i){const s=this,l=s.__v_raw,o=te(l),a=t?Gr:e?Yr:Se;return!e&&Ce(o,"iterate",At),l.forEach((u,c)=>r.call(i,a(u),a(c),s))}}function Qn(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=i[e](...r),c=n?Gr:t?Yr:Se;return!t&&Ce(s,"iterate",a?Wr:At),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:o?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function gt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $a(){const e={get(s){return qn(this,s)},get size(){return Gn(this)},has:Kn,add:Is,set:Ls,delete:Ms,clear:Os,forEach:Zn(!1,!1)},t={get(s){return qn(this,s,!1,!0)},get size(){return Gn(this)},has:Kn,add(s){return Is.call(this,s,!0)},set(s,l){return Ls.call(this,s,l,!0)},delete:Ms,clear:Os,forEach:Zn(!1,!0)},n={get(s){return qn(this,s,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:Zn(!0,!1)},r={get(s){return qn(this,s,!0,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:Zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Qn(s,!1,!1),n[s]=Qn(s,!0,!1),t[s]=Qn(s,!1,!0),r[s]=Qn(s,!0,!0)}),[e,n,t,r]}const[Ca,Sa,Ea,Ta]=$a();function Zr(e,t){const n=t?e?Ta:Ea:e?Sa:Ca;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(se(n,i)&&i in r?n:r,i,s)}const Aa={get:Zr(!1,!1)},Ra={get:Zr(!1,!0)},Ia={get:Zr(!0,!1)},js=new WeakMap,zs=new WeakMap,Ps=new WeakMap,La=new WeakMap;function Ma(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Oa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ma(ra(e))}function cn(e){return Rt(e)?e:Qr(e,!1,xa,Aa,js)}function ja(e){return Qr(e,!1,_a,Ra,zs)}function un(e){return Qr(e,!0,ka,Ia,Ps)}function Qr(e,t,n,r,i){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=Oa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Vt(e){return Rt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function Jr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function za(e){return Object.isExtensible(e)&&ds(e,"__v_skip",!0),e}const Se=e=>pe(e)?cn(e):e,Yr=e=>pe(e)?un(e):e;function ke(e){return e?e.__v_isRef===!0:!1}function q(e){return Fs(e,!1)}function Pa(e){return Fs(e,!0)}function Fs(e,t){return ke(e)?e:new Fa(e,t)}class Fa{constructor(t,n){this.dep=new Vr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ge(t)||Rt(t);t=r?t:te(t),pt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function K(e){return ke(e)?e.value:e}const Da={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ke(i)&&!ke(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ds(e){return Vt(e)?e:new Proxy(e,Da)}class Ha{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Vr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){ue!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return _s(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ua(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new Ha(r,i,n)}const Jn={},Yn=new WeakMap;let It;function Na(e,t=!1,n=It){if(n){let r=Yn.get(n);r||Yn.set(n,r=[]),r.push(e)}}function Va(e,t,n=ce){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,u=A=>i?A:Ge(A)||i===!1||i===0?lt(A,1):lt(A);let c,h,p,m,w=!1,k=!1;if(ke(e)?(h=()=>e.value,w=Ge(e)):Vt(e)?(h=()=>u(e),w=!0):B(e)?(k=!0,w=e.some(A=>Vt(A)||Ge(A)),h=()=>e.map(A=>{if(ke(A))return A.value;if(Vt(A))return u(A);if(ee(A))return a?a(A,2):A()})):ee(e)?t?h=a?()=>a(e,2):e:h=()=>{if(p){Et();try{p()}finally{Tt()}}const A=It;It=c;try{return a?a(e,3,[m]):e(m)}finally{It=A}}:h=$t,t&&i){const A=h,j=i===!0?1/0:i;h=()=>lt(A(),j)}const C=bs(),v=()=>{c.stop(),C&&as(C.effects,c)};if(s)if(t){const A=t;t=(...j)=>{A(...j),v()}}else{const A=h;h=()=>{A(),v()}}let $=k?new Array(e.length).fill(Jn):Jn;const U=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const j=c.run();if(i||w||(k?j.some((W,H)=>pt(W,$[H])):pt(j,$))){p&&p();const W=It;It=c;try{const H=[j,$===Jn?void 0:k&&$[0]===Jn?[]:$,m];a?a(t,3,H):t(...H),$=j}finally{It=W}}}else c.run()};return o&&o(U),c=new ys(h),c.scheduler=l?()=>l(U,!1):U,m=A=>Na(A,!1,c),p=c.onStop=()=>{const A=Yn.get(c);if(A){if(a)a(A,4);else for(const j of A)j();Yn.delete(c)}},t?r?U(!0):$=c.run():l?l(U.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function lt(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ke(e))lt(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)lt(e[r],t,n);else if(Ut(e)||Ht(e))e.forEach(r=>{lt(r,t,n)});else if(hs(e)){for(const r in e)lt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&<(e[r],t,n)}return e}/**
|
|
19
|
-
* @vue/runtime-core v3.5.
|
|
18
|
+
**/let Ae;class Yo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function as(){return Ae}function Qo(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Ir=new WeakSet;class cs{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,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ir.has(this)&&(Ir.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ms(this),hs(this);const t=fe,n=Ke;fe=this,Ke=!0;try{return this.fn()}finally{ds(this),fe=t,Ke=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jr(t);this.deps=this.depsTail=void 0,ms(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ir.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pr(this)&&this.run()}get dirty(){return Pr(this)}}let us=0,rn,sn;function fs(e,t=!1){if(e.flags|=8,t){e.next=sn,sn=e;return}e.next=rn,rn=e}function Mr(){us++}function Or(){if(--us>0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rn;){let t=rn;for(rn=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 hs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ds(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),jr(r),Xo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Pr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ps(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ps(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln))return;e.globalVersion=ln;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Pr(e)){e.flags&=-3;return}const n=fe,r=Ke;fe=e,Ke=!0;try{hs(e);const i=e.fn(e._value);(t.version===0||mt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ke=r,ds(e),e.flags&=-3}}function jr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)jr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const gs=[];function Rt(){gs.push(Ke),Ke=!1}function At(){const e=gs.pop();Ke=e===void 0?!0:e}function ms(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let ln=0;class ea{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 zr{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(!fe||!Ke||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new ea(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,vs(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=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){Mr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Or()}}}function vs(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)vs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fr=new WeakMap,Et=Symbol(""),Dr=Symbol(""),on=Symbol("");function $e(e,t,n){if(Ke&&fe){let r=Fr.get(e);r||Fr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new zr),i.map=r,i.key=n),i.track()}}function it(e,t,n,r,i,s){const l=Fr.get(e);if(!l){ln++;return}const o=a=>{a&&a.trigger()};if(Mr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Ar(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===on||!Qe(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(on)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Ht(e)&&o(l.get(Dr)));break;case"delete":a||(o(l.get(Et)),Ht(e)&&o(l.get(Dr)));break;case"set":Ht(e)&&o(l.get(Et));break}}Or()}function Ut(e){const t=te(e);return t===e?t:($e(t,"iterate",on),Ue(e)?t:t.map(Se))}function Un(e){return $e(e=te(e),"iterate",on),e}const ta={__proto__:null,[Symbol.iterator](){return Hr(this,Symbol.iterator,Se)},concat(...e){return Ut(this).concat(...e.map(t=>V(t)?Ut(t):t))},entries(){return Hr(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return st(this,"every",e,t,void 0,arguments)},filter(e,t){return st(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return st(this,"find",e,t,Se,arguments)},findIndex(e,t){return st(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return st(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return st(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return st(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nr(this,"includes",e)},indexOf(...e){return Nr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Nr(this,"lastIndexOf",e)},map(e,t){return st(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return bs(this,"reduce",e,t)},reduceRight(e,...t){return bs(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return st(this,"some",e,t,void 0,arguments)},splice(...e){return an(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 an(this,"unshift",e)},values(){return Hr(this,"values",Se)}};function Hr(e,t,n){const r=Un(e),i=r[t]();return r!==e&&!Ue(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const na=Array.prototype;function st(e,t,n,r,i,s){const l=Un(e),o=l!==e&&!Ue(e),a=l[t];if(a!==na[t]){const h=a.apply(e,s);return o?Se(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Se(h),d,e)}:n.length>2&&(c=function(h,d){return n.call(this,h,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function bs(e,t,n,r){const i=Un(e);let s=n;return i!==e&&(Ue(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Nr(e,t,n){const r=te(e);$e(r,"iterate",on);const i=r[t](...n);return(i===-1||i===!1)&&Wr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function an(e,t,n=[]){Rt(),Mr();const r=te(e)[t].apply(e,n);return Or(),At(),r}const ra=Sr("__proto__,__v_isRef,__isVue"),ys=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function ia(e){Qe(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class ws{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?pa:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!i){let a;if(l&&(a=ta[n]))return a;if(n==="hasOwnProperty")return ia}const o=Reflect.get(t,n,xe(t)?t:r);return(Qe(n)?ys.has(n):ra(n))||(i||$e(t,"get",n),s)?o:xe(o)?l&&Ar(n)?o:o.value:ge(o)?i?un(o):cn(o):o}}class ks extends ws{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Tt(s);if(!Ue(r)&&!Tt(r)&&(s=te(s),r=te(r)),!V(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=V(t)&&Ar(n)?Number(n)<t.length:ee(t,n),o=Reflect.set(t,n,r,xe(t)?t:i);return t===te(i)&&(l?mt(r,s)&&it(t,"set",n,r):it(t,"add",n,r)),o}deleteProperty(t,n){const r=ee(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&it(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Qe(n)||!ys.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",V(t)?"length":Et),Reflect.ownKeys(t)}}class sa extends ws{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const la=new ks,oa=new sa,aa=new ks(!0),Ur=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function ca(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Ur:t?qr:Se;return!t&&$e(s,"iterate",a?Dr:Et),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ua(e,t){const n={get(i){const s=this.__v_raw,l=te(s),o=te(i);e||(mt(i,o)&&$e(l,"get",i),$e(l,"get",o));const{has:a}=Bn(l),c=t?Ur:e?qr:Se;if(a.call(l,i))return c(s.get(i));if(a.call(l,o))return c(s.get(o));s!==l&&s.get(i)},get size(){const i=this.__v_raw;return!e&&$e(te(i),"iterate",Et),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=te(s),o=te(i);return e||(mt(i,o)&&$e(l,"has",i),$e(l,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const l=this,o=l.__v_raw,a=te(o),c=t?Ur:e?qr:Se;return!e&&$e(a,"iterate",Et),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return He(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!Ue(i)&&!Tt(i)&&(i=te(i));const s=te(this);return Bn(s).has.call(s,i)||(s.add(i),it(s,"add",i,i)),this},set(i,s){!t&&!Ue(s)&&!Tt(s)&&(s=te(s));const l=te(this),{has:o,get:a}=Bn(l);let c=o.call(l,i);c||(i=te(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?mt(s,u)&&it(l,"set",i,s):it(l,"add",i,s),this},delete(i){const s=te(this),{has:l,get:o}=Bn(s);let a=l.call(s,i);a||(i=te(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&it(s,"delete",i,void 0),c},clear(){const i=te(this),s=i.size!==0,l=i.clear();return s&&it(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ca(i,e,t)}),n}function Br(e,t){const n=ua(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ee(n,i)&&i in r?n:r,i,s)}const fa={get:Br(!1,!1)},ha={get:Br(!1,!0)},da={get:Br(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,pa=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ma(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(No(e))}function cn(e){return Tt(e)?e:Vr(e,!1,la,fa,xs)}function va(e){return Vr(e,!1,aa,ha,_s)}function un(e){return Vr(e,!0,oa,da,Cs)}function Vr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=ma(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return Tt(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function Wr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ba(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&rs(e,"__v_skip",!0),e}const Se=e=>ge(e)?cn(e):e,qr=e=>ge(e)?un(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function W(e){return $s(e,!1)}function ya(e){return $s(e,!0)}function $s(e,t){return xe(e)?e:new wa(e,t)}class wa{constructor(t,n){this.dep=new zr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ue(t)||Tt(t);t=r?t:te(t),mt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function q(e){return xe(e)?e.value:e}const ka={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ss(e){return Bt(e)?e:new Proxy(e,ka)}class xa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return fs(this,!0),!0}get value(){const t=this.dep.track();return ps(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _a(e,t,n=!1){let r,i;return le(e)?r=e:(r=e.get,i=e.set),new xa(r,i,n)}const Wn={},qn=new WeakMap;let Lt;function Ca(e,t=!1,n=Lt){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function $a(e,t,n=ce){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=E=>i?E:Ue(E)||i===!1||i===0?lt(E,1):lt(E);let u,h,d,g,k=!1,v=!1;if(xe(e)?(h=()=>e.value,k=Ue(e)):Bt(e)?(h=()=>c(e),k=!0):V(e)?(v=!0,k=e.some(E=>Bt(E)||Ue(E)),h=()=>e.map(E=>{if(xe(E))return E.value;if(Bt(E))return c(E);if(le(E))return a?a(E,2):E()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){Rt();try{d()}finally{At()}}const E=Lt;Lt=u;try{return a?a(e,3,[g]):e(g)}finally{Lt=E}}:h=Ct,t&&i){const E=h,j=i===!0?1/0:i;h=()=>lt(E(),j)}const $=as(),b=()=>{u.stop(),$&&$.active&&Qi($.effects,u)};if(s&&t){const E=t;t=(...j)=>{E(...j),b()}}let C=v?new Array(e.length).fill(Wn):Wn;const N=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const j=u.run();if(i||k||(v?j.some((K,z)=>mt(K,C[z])):mt(j,C))){d&&d();const K=Lt;Lt=u;try{const z=[j,C===Wn?void 0:v&&C[0]===Wn?[]:C,g];a?a(t,3,z):t(...z),C=j}finally{Lt=K}}}else u.run()};return o&&o(N),u=new cs(h),u.scheduler=l?()=>l(N,!1):N,g=E=>Ca(E,!1,u),d=u.onStop=()=>{const E=qn.get(u);if(E){if(a)a(E,4);else for(const j of E)j();qn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function lt(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--,xe(e))lt(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)lt(e[r],t,n);else if(Nt(e)||Ht(e))e.forEach(r=>{lt(r,t,n)});else if(ns(e)){for(const r in e)lt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&<(e[r],t,n)}return e}/**
|
|
19
|
+
* @vue/runtime-core v3.5.13
|
|
20
20
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
21
|
* @license MIT
|
|
22
|
-
**/function fn(e,t,n,r){try{return r?e(...r):e()}catch(i){Xn(i,t,n)}}function ot(e,t,n,r){if(ee(e)){const i=fn(e,t,n,r);return i&&us(i)&&i.catch(s=>{Xn(s,t,n)}),i}if(B(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ot(e[s],t,n,r));return i}}function Xn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ce;if(t){let o=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,a,u)===!1)return}o=o.parent}if(s){Et(),fn(s,null,10,[e,a,u]),Tt();return}}Ba(e,n,i,r,l)}function Ba(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let hn=!1,Xr=!1;const Re=[];let et=0;const Bt=[];let mt=null,Wt=0;const Hs=Promise.resolve();let ei=null;function qt(e){const t=ei||Hs;return e?t.then(this?e.bind(this):e):t}function Wa(e){let t=hn?et+1:0,n=Re.length;for(;t<n;){const r=t+n>>>1,i=Re[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function ti(e){if(!(e.flags&1)){const t=dn(e),n=Re[Re.length-1];!n||!(e.flags&2)&&t>=dn(n)?Re.push(e):Re.splice(Wa(t),0,e),e.flags|=1,Us()}}function Us(){!hn&&!Xr&&(Xr=!0,ei=Hs.then(Bs))}function qa(e){B(e)?Bt.push(...e):mt&&e.id===-1?mt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Us()}function Ns(e,t,n=hn?et+1:0){for(;n<Re.length;n++){const r=Re[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Re.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Vs(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>dn(n)-dn(r));if(Bt.length=0,mt){mt.push(...t);return}for(mt=t,Wt=0;Wt<mt.length;Wt++){const n=mt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mt=null,Wt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Bs(e){Xr=!1,hn=!0;try{for(et=0;et<Re.length;et++){const t=Re[et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),fn(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;et<Re.length;et++){const t=Re[et];t&&(t.flags&=-2)}et=0,Re.length=0,Vs(),hn=!1,ei=null,(Re.length||Bt.length)&&Bs()}}let Oe=null,Ws=null;function er(e){const t=Oe;return Oe=e,Ws=e&&e.type.__scopeId||null,t}function Ka(e,t=Oe,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&pl(-1);const s=er(t);let l;try{l=e(...i)}finally{er(s),r._d&&pl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tr(e,t){if(Oe===null)return e;const n=cr(Oe),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ce]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&<(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Lt(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(Et(),ot(a,n,8,[e.el,o,e,t]),Tt())}}const Ga=Symbol("_vte"),Za=e=>e.__isTeleport;function ni(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ni(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 pn(e,t){return ee(e)?Te({name:e.name},t,{setup:e}):e}function Qa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ri(e,t,n,r,i=!1){if(B(e)){e.forEach((w,k)=>ri(w,t&&(B(t)?t[k]:t),n,r,i));return}if(gn(r)&&!i)return;const s=r.shapeFlag&4?cr(r.component):r.el,l=i?null:s,{i:o,r:a}=e,u=t&&t.r,c=o.refs===ce?o.refs={}:o.refs,h=o.setupState,p=te(h),m=h===ce?()=>!1:w=>se(p,w);if(u!=null&&u!==a&&(we(u)?(c[u]=null,m(u)&&(h[u]=null)):ke(u)&&(u.value=null)),ee(a))fn(a,o,12,[l,c]);else{const w=we(a),k=ke(a);if(w||k){const C=()=>{if(e.f){const v=w?m(a)?h[a]:c[a]:a.value;i?B(v)&&as(v,s):B(v)?v.includes(s)||v.push(s):w?(c[a]=[s],m(a)&&(h[a]=c[a])):(a.value=[s],e.k&&(c[e.k]=a.value))}else w?(c[a]=l,m(a)&&(h[a]=l)):k&&(a.value=l,e.k&&(c[e.k]=l))};l?(C.id=-1,De(C,n)):C()}}}const gn=e=>!!e.type.__asyncLoader,Ja=e=>e.type.__isKeepAlive;function Ya(e,t,n=Le,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{Et();const o=mi(n),a=ot(t,n,e,l);return o(),Tt(),a});return r?i.unshift(s):i.push(s),s}}const ii=e=>(t,n=Le)=>{(!ar||e==="sp")&&Ya(e,(...r)=>t(...r),n)},mn=ii("m"),Xa=ii("bum"),si=ii("um"),ec="components";function tc(e,t){return rc(ec,e,!0,t)||e}const nc=Symbol.for("v-ndc");function rc(e,t,n=!0,r=!1){const i=Oe||Le;if(i){const s=i.type;{const o=Wc(s,!1);if(o&&(o===t||o===qe(t)||o===Un(qe(t))))return s}const l=qs(i[e]||s[e],t)||qs(i.appContext[e],t);return!l&&r?s:l}}function qs(e,t){return e&&(e[t]||e[qe(t)]||e[Un(qe(t))])}function Ne(e,t,n,r){let i;const s=n,l=B(e);if(l||we(e)){const o=l&&Vt(e);o&&(e=Bn(e)),i=new Array(e.length);for(let a=0,u=e.length;a<u;a++)i[a]=t(o?Se(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(pe(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a<u;a++){const c=o[a];i[a]=t(e[c],c,a,s)}}else i=[];return i}const li=e=>e?bl(e)?cr(e):li(e.parent):null,vn=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>li(e.parent),$root:e=>li(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{ti(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>$t}),oi=(e,t)=>e!==ce&&!e.__isScriptSetup&&se(e,t),ic={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(oi(r,t))return l[t]=1,r[t];if(i!==ce&&se(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&se(u,t))return l[t]=3,s[t];if(n!==ce&&se(n,t))return l[t]=4,n[t];l[t]=0}}const c=vn[t];let h,p;if(c)return t==="$attrs"&&Ce(e.attrs,"get",""),c(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ce&&se(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,se(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return oi(i,t)?(i[t]=n,!0):r!==ce&&se(r,t)?(r[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let o;return!!n[l]||e!==ce&&se(e,l)||oi(t,l)||(o=s[0])&&se(o,l)||se(r,l)||se(vn,l)||se(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ks(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function sc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(u=>nr(a,u,l,!0)),nr(a,t,l)),pe(t)&&s.set(t,a),a}function nr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&nr(e,s,n,!0),i&&i.forEach(l=>nr(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const o=lc[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const lc={data:Gs,props:Qs,emits:Qs,methods:bn,computed:bn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:bn,directives:bn,watch:ac,provide:Gs,inject:oc};function Gs(e,t){return t?e?function(){return Te(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function oc(e,t){return bn(Zs(e),Zs(t))}function Zs(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?Te(Object.create(null),e,t):t}function Qs(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:Te(Object.create(null),Ks(e),Ks(t??{})):t}function ac(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const r in t)n[r]=Ie(e[r],t[r]);return n}function Js(){return{app:null,config:{isNativeTag:ta,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 cc=0;function uc(e,t){return function(r,i=null){ee(r)||(r=Te({},r)),i!=null&&!pe(i)&&(i=null);const s=Js(),l=new WeakSet,o=[];let a=!1;const u=s.app={_uid:cc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Kc,get config(){return s.config},set config(c){},use(c,...h){return l.has(c)||(c&&ee(c.install)?(l.add(c),c.install(u,...h)):ee(c)&&(l.add(c),c(u,...h))),u},mixin(c){return u},component(c,h){return h?(s.components[c]=h,u):s.components[c]},directive(c,h){return h?(s.directives[c]=h,u):s.directives[c]},mount(c,h,p){if(!a){const m=u._ceVNode||oe(r,i);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),h&&t?t(m,c):e(m,c,p),a=!0,u._container=c,c.__vue_app__=u,cr(m.component)}},onUnmount(c){o.push(c)},unmount(){a&&(ot(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,h){return s.provides[c]=h,u},runWithContext(c){const h=Kt;Kt=u;try{return c()}finally{Kt=h}}};return u}}let Kt=null;function fc(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function rr(e,t,n=!1){const r=Le||Oe;if(r||Kt){const i=Kt?Kt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Ys={},Xs=()=>Object.create(Ys),el=e=>Object.getPrototypeOf(e)===Ys;function hc(e,t,n,r=!1){const i={},s=Xs();e.propsDefaults=Object.create(null),tl(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:ja(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function dc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let u=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(ir(e.emitsOptions,p))continue;const m=t[p];if(a)if(se(s,p))m!==s[p]&&(s[p]=m,u=!0);else{const w=qe(p);i[w]=ai(a,o,w,m,e,!1)}else m!==s[p]&&(s[p]=m,u=!0)}}}else{tl(e,t,i,s)&&(u=!0);let c;for(const h in o)(!t||!se(t,h)&&((c=Ct(h))===h||!se(t,c)))&&(a?n&&(n[h]!==void 0||n[c]!==void 0)&&(i[h]=ai(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!se(t,h))&&(delete s[h],u=!0)}u&&it(e.attrs,"set","")}function tl(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(nn(a))continue;const u=t[a];let c;i&&se(i,c=qe(a))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:ir(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,l=!0)}if(s){const a=te(n),u=o||ce;for(let c=0;c<s.length;c++){const h=s[c];n[h]=ai(i,a,h,u[h],e,!se(u,h))}}return l}function ai(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=se(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=mi(i);r=u[n]=a.call(null,t),c()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===Ct(n))&&(r=!0))}return r}function pc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return pe(e)&&r.set(e,Dt),Dt;if(B(s))for(let c=0;c<s.length;c++){const h=qe(s[c]);nl(h)&&(l[h]=ce)}else if(s)for(const c in s){const h=qe(c);if(nl(h)){const p=s[c],m=l[h]=B(p)||ee(p)?{type:p}:Te({},p),w=m.type;let k=!1,C=!0;if(B(w))for(let v=0;v<w.length;++v){const $=w[v],U=ee($)&&$.name;if(U==="Boolean"){k=!0;break}else U==="String"&&(C=!1)}else k=ee(w)&&w.name==="Boolean";m[0]=k,m[1]=C,(k||se(m,"default"))&&o.push(h)}}const u=[l,o];return pe(e)&&r.set(e,u),u}function nl(e){return e[0]!=="$"&&!nn(e)}const rl=e=>e[0]==="_"||e==="$stable",ci=e=>B(e)?e.map(tt):[tt(e)],gc=(e,t,n)=>{if(t._n)return t;const r=Ka((...i)=>ci(t(...i)),n);return r._c=!1,r},il=(e,t,n)=>{const r=e._ctx;for(const i in e){if(rl(i))continue;const s=e[i];if(ee(s))t[i]=gc(i,s,r);else if(s!=null){const l=ci(s);t[i]=()=>l}}},sl=(e,t)=>{const n=ci(t);e.slots.default=()=>n},ll=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},mc=(e,t,n)=>{const r=e.slots=Xs();if(e.vnode.shapeFlag&32){const i=t._;i?(ll(r,t,n),n&&ds(r,"_",i,!0)):il(t,r)}else t&&sl(e,t)},vc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ce;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:ll(i,t,n):(s=!t.$stable,il(t,i)),l=t}else t&&(sl(e,t),l={default:1});if(s)for(const o in i)!rl(o)&&l[o]==null&&delete i[o]};function bc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(jr().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=Lc;function yc(e){return wc(e)}function wc(e,t){bc();const n=jr();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=$t,insertStaticContent:w}=e,k=(f,d,g,y=null,b=null,x=null,R=void 0,E=null,S=!!d.dynamicChildren)=>{if(f===d)return;f&&!xn(f,d)&&(y=kt(f),je(f,b,x,!0),f=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:_,ref:M,shapeFlag:I}=d;switch(_){case sr:C(f,d,g,y);break;case Ot:v(f,d,g,y);break;case hi:f==null&&$(d,g,y,R);break;case he:me(f,d,g,y,b,x,R,E,S);break;default:I&1?j(f,d,g,y,b,x,R,E,S):I&6?P(f,d,g,y,b,x,R,E,S):(I&64||I&128)&&_.process(f,d,g,y,b,x,R,E,S,T)}M!=null&&b&&ri(M,f&&f.ref,x,d||f,!d)},C=(f,d,g,y)=>{if(f==null)r(d.el=o(d.children),g,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},v=(f,d,g,y)=>{f==null?r(d.el=a(d.children||""),g,y):d.el=f.el},$=(f,d,g,y)=>{[f.el,f.anchor]=w(f.children,d,g,y,f.el,f.anchor)},U=({el:f,anchor:d},g,y)=>{let b;for(;f&&f!==d;)b=p(f),r(f,g,y),f=b;r(d,g,y)},A=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),i(f),f=g;i(d)},j=(f,d,g,y,b,x,R,E,S)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),f==null?W(d,g,y,b,x,R,E,S):Me(f,d,b,x,R,E,S)},W=(f,d,g,y,b,x,R,E)=>{let S,_;const{props:M,shapeFlag:I,transition:F,dirs:V}=f;if(S=f.el=l(f.type,x,M&&M.is,M),I&8?c(S,f.children):I&16&&Y(f.children,S,null,y,b,ui(f,x),R,E),V&&Lt(f,null,y,"created"),H(S,f,f.scopeId,R,y),M){for(const fe in M)fe!=="value"&&!nn(fe)&&s(S,fe,null,M[fe],x,y);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&nt(_,y,f)}V&&Lt(f,null,y,"beforeMount");const Z=xc(b,F);Z&&F.beforeEnter(S),r(S,d,g),((_=M&&M.onVnodeMounted)||Z||V)&&De(()=>{_&&nt(_,y,f),Z&&F.enter(S),V&&Lt(f,null,y,"mounted")},b)},H=(f,d,g,y,b)=>{if(g&&m(f,g),y)for(let x=0;x<y.length;x++)m(f,y[x]);if(b){let x=b.subTree;if(d===x||dl(x.type)&&(x.ssContent===d||x.ssFallback===d)){const R=b.vnode;H(f,R,R.scopeId,R.slotScopeIds,b.parent)}}},Y=(f,d,g,y,b,x,R,E,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=E?vt(f[_]):tt(f[_]);k(null,M,d,g,y,b,x,R,E)}},Me=(f,d,g,y,b,x,R)=>{const E=d.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=d;S|=f.patchFlag&16;const I=f.props||ce,F=d.props||ce;let V;if(g&&Mt(g,!1),(V=F.onVnodeBeforeUpdate)&&nt(V,g,d,f),M&&Lt(d,f,g,"beforeUpdate"),g&&Mt(g,!0),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&c(E,""),_?G(f.dynamicChildren,_,E,g,y,ui(d,b),x):R||ye(f,d,E,null,g,y,ui(d,b),x,!1),S>0){if(S&16)re(E,I,F,g,b);else if(S&2&&I.class!==F.class&&s(E,"class",null,F.class,b),S&4&&s(E,"style",I.style,F.style,b),S&8){const Z=d.dynamicProps;for(let fe=0;fe<Z.length;fe++){const ie=Z[fe],ze=I[ie],$e=F[ie];($e!==ze||ie==="value")&&s(E,ie,ze,$e,b,g)}}S&1&&f.children!==d.children&&c(E,d.children)}else!R&&_==null&&re(E,I,F,g,b);((V=F.onVnodeUpdated)||M)&&De(()=>{V&&nt(V,g,d,f),M&&Lt(d,f,g,"updated")},y)},G=(f,d,g,y,b,x,R)=>{for(let E=0;E<d.length;E++){const S=f[E],_=d[E],M=S.el&&(S.type===he||!xn(S,_)||S.shapeFlag&70)?h(S.el):g;k(S,_,M,null,y,b,x,R,!0)}},re=(f,d,g,y,b)=>{if(d!==g){if(d!==ce)for(const x in d)!nn(x)&&!(x in g)&&s(f,x,d[x],null,b,y);for(const x in g){if(nn(x))continue;const R=g[x],E=d[x];R!==E&&x!=="value"&&s(f,x,E,R,b,y)}"value"in g&&s(f,"value",d.value,g.value,b)}},me=(f,d,g,y,b,x,R,E,S)=>{const _=d.el=f?f.el:o(""),M=d.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:V}=d;V&&(E=E?E.concat(V):V),f==null?(r(_,g,y),r(M,g,y),Y(d.children||[],g,M,b,x,R,E,S)):I>0&&I&64&&F&&f.dynamicChildren?(G(f.dynamicChildren,F,g,b,x,R,E),(d.key!=null||b&&d===b.subTree)&&ol(f,d,!0)):ye(f,d,g,M,b,x,R,E,S)},P=(f,d,g,y,b,x,R,E,S)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?b.ctx.activate(d,g,y,R,S):Q(d,g,y,b,x,R,S):le(f,d,S)},Q=(f,d,g,y,b,x,R)=>{const E=f.component=Dc(f,y,b);if(Ja(f)&&(E.ctx.renderer=T),Uc(E,!1,R),E.asyncDep){if(b&&b.registerDep(E,xe,R),!f.el){const S=E.subTree=oe(Ot);v(null,S,d,g)}}else xe(E,f,d,g,b,x,R)},le=(f,d,g)=>{const y=d.component=f.component;if(Rc(f,d,g))if(y.asyncDep&&!y.asyncResolved){be(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},xe=(f,d,g,y,b,x,R)=>{const E=()=>{if(f.isMounted){let{next:I,bu:F,u:V,parent:Z,vnode:fe}=f;{const Pe=al(f);if(Pe){I&&(I.el=fe.el,be(f,I,R)),Pe.asyncDep.then(()=>{f.isUnmounted||E()});return}}let ie=I,ze;Mt(f,!1),I?(I.el=fe.el,be(f,I,R)):I=fe,F&&Nn(F),(ze=I.props&&I.props.onVnodeBeforeUpdate)&&nt(ze,Z,I,fe),Mt(f,!0);const $e=fi(f),We=f.subTree;f.subTree=$e,k(We,$e,h(We.el),kt(We),f,b,x),I.el=$e.el,ie===null&&Ic(f,$e.el),V&&De(V,b),(ze=I.props&&I.props.onVnodeUpdated)&&De(()=>nt(ze,Z,I,fe),b)}else{let I;const{el:F,props:V}=d,{bm:Z,m:fe,parent:ie,root:ze,type:$e}=f,We=gn(d);if(Mt(f,!1),Z&&Nn(Z),!We&&(I=V&&V.onVnodeBeforeMount)&&nt(I,ie,d),Mt(f,!0),F&&de){const Pe=()=>{f.subTree=fi(f),de(F,f.subTree,f,b,null)};We&&$e.__asyncHydrate?$e.__asyncHydrate(F,f,Pe):Pe()}else{ze.ce&&ze.ce._injectChildStyle($e);const Pe=f.subTree=fi(f);k(null,Pe,g,y,f,b,x),d.el=Pe.el}if(fe&&De(fe,b),!We&&(I=V&&V.onVnodeMounted)){const Pe=d;De(()=>nt(I,ie,Pe),b)}(d.shapeFlag&256||ie&&gn(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&De(f.a,b),f.isMounted=!0,d=g=y=null}};f.scope.on();const S=f.effect=new ys(E);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>ti(M),Mt(f,!0),_()},be=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,dc(f,d.props,y,g),vc(f,d.children,g),Et(),Ns(f),Tt()},ye=(f,d,g,y,b,x,R,E,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,I=d.children,{patchFlag:F,shapeFlag:V}=d;if(F>0){if(F&128){dt(_,I,g,y,b,x,R,E,S);return}else if(F&256){Ee(_,I,g,y,b,x,R,E,S);return}}V&8?(M&16&&xt(_,b,x),I!==_&&c(g,I)):M&16?V&16?dt(_,I,g,y,b,x,R,E,S):xt(_,b,x,!0):(M&8&&c(g,""),V&16&&Y(I,g,y,b,x,R,E,S))},Ee=(f,d,g,y,b,x,R,E,S)=>{f=f||Dt,d=d||Dt;const _=f.length,M=d.length,I=Math.min(_,M);let F;for(F=0;F<I;F++){const V=d[F]=S?vt(d[F]):tt(d[F]);k(f[F],V,g,null,b,x,R,E,S)}_>M?xt(f,b,x,!0,!1,I):Y(d,g,y,b,x,R,E,S,I)},dt=(f,d,g,y,b,x,R,E,S)=>{let _=0;const M=d.length;let I=f.length-1,F=M-1;for(;_<=I&&_<=F;){const V=f[_],Z=d[_]=S?vt(d[_]):tt(d[_]);if(xn(V,Z))k(V,Z,g,null,b,x,R,E,S);else break;_++}for(;_<=I&&_<=F;){const V=f[I],Z=d[F]=S?vt(d[F]):tt(d[F]);if(xn(V,Z))k(V,Z,g,null,b,x,R,E,S);else break;I--,F--}if(_>I){if(_<=F){const V=F+1,Z=V<M?d[V].el:y;for(;_<=F;)k(null,d[_]=S?vt(d[_]):tt(d[_]),g,Z,b,x,R,E,S),_++}}else if(_>F)for(;_<=I;)je(f[_],b,x,!0),_++;else{const V=_,Z=_,fe=new Map;for(_=Z;_<=F;_++){const Fe=d[_]=S?vt(d[_]):tt(d[_]);Fe.key!=null&&fe.set(Fe.key,_)}let ie,ze=0;const $e=F-Z+1;let We=!1,Pe=0;const Xt=new Array($e);for(_=0;_<$e;_++)Xt[_]=0;for(_=V;_<=I;_++){const Fe=f[_];if(ze>=$e){je(Fe,b,x,!0);continue}let Je;if(Fe.key!=null)Je=fe.get(Fe.key);else for(ie=Z;ie<=F;ie++)if(Xt[ie-Z]===0&&xn(Fe,d[ie])){Je=ie;break}Je===void 0?je(Fe,b,x,!0):(Xt[Je-Z]=_+1,Je>=Pe?Pe=Je:We=!0,k(Fe,d[Je],g,null,b,x,R,E,S),ze++)}const Mi=We?kc(Xt):Dt;for(ie=Mi.length-1,_=$e-1;_>=0;_--){const Fe=Z+_,Je=d[Fe],Oi=Fe+1<M?d[Fe+1].el:y;Xt[_]===0?k(null,Je,g,Oi,b,x,R,E,S):We&&(ie<0||_!==Mi[ie]?wt(Je,g,Oi,2):ie--)}}},wt=(f,d,g,y,b=null)=>{const{el:x,type:R,transition:E,children:S,shapeFlag:_}=f;if(_&6){wt(f.component.subTree,d,g,y);return}if(_&128){f.suspense.move(d,g,y);return}if(_&64){R.move(f,d,g,T);return}if(R===he){r(x,d,g);for(let I=0;I<S.length;I++)wt(S[I],d,g,y);r(f.anchor,d,g);return}if(R===hi){U(f,d,g);return}if(y!==2&&_&1&&E)if(y===0)E.beforeEnter(x),r(x,d,g),De(()=>E.enter(x),b);else{const{leave:I,delayLeave:F,afterLeave:V}=E,Z=()=>r(x,d,g),fe=()=>{I(x,()=>{Z(),V&&V()})};F?F(x,Z,fe):fe()}else r(x,d,g)},je=(f,d,g,y=!1,b=!1)=>{const{type:x,props:R,ref:E,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:I,dirs:F,cacheIndex:V}=f;if(I===-2&&(b=!1),E!=null&&ri(E,null,g,f,!0),V!=null&&(d.renderCache[V]=void 0),M&256){d.ctx.deactivate(f);return}const Z=M&1&&F,fe=!gn(f);let ie;if(fe&&(ie=R&&R.onVnodeBeforeUnmount)&&nt(ie,d,f),M&6)jn(f.component,g,y);else{if(M&128){f.suspense.unmount(g,y);return}Z&&Lt(f,null,d,"beforeUnmount"),M&64?f.type.remove(f,d,g,T,y):_&&!_.hasOnce&&(x!==he||I>0&&I&64)?xt(_,d,g,!1,!0):(x===he&&I&384||!b&&M&16)&&xt(S,d,g),y&&On(f)}(fe&&(ie=R&&R.onVnodeUnmounted)||Z)&&De(()=>{ie&&nt(ie,d,f),Z&&Lt(f,null,d,"unmounted")},g)},On=f=>{const{type:d,el:g,anchor:y,transition:b}=f;if(d===he){Cr(g,y);return}if(d===hi){A(f);return}const x=()=>{i(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:E}=b,S=()=>R(g,x);E?E(f.el,x,S):S()}else x()},Cr=(f,d)=>{let g;for(;f!==d;)g=p(f),i(f),f=g;i(d)},jn=(f,d,g)=>{const{bum:y,scope:b,job:x,subTree:R,um:E,m:S,a:_}=f;cl(S),cl(_),y&&Nn(y),b.stop(),x&&(x.flags|=8,je(R,f,d,g)),E&&De(E,d),De(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},xt=(f,d,g,y=!1,b=!1,x=0)=>{for(let R=x;R<f.length;R++)je(f[R],d,g,y,b)},kt=f=>{if(f.shapeFlag&6)return kt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[Ga];return g?p(g):d};let Pt=!1;const O=(f,d,g)=>{f==null?d._vnode&&je(d._vnode,null,null,!0):k(d._vnode||null,f,d,null,null,null,g),d._vnode=f,Pt||(Pt=!0,Ns(),Vs(),Pt=!1)},T={p:k,um:je,m:wt,r:On,mt:Q,mc:Y,pc:ye,pbc:G,n:kt,o:e};let N,de;return{render:O,hydrate:N,createApp:uc(O,N)}}function ui({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ol(e,t,n=!1){const r=e.children,i=t.children;if(B(r)&&B(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=vt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&ol(l,o)),o.type===sr&&(o.el=l.el)}}function kc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<u?s=o+1:l=o;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function al(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:al(t)}function cl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const _c=Symbol.for("v-scx"),$c=()=>rr(_c);function ul(e,t){return fl(e,null,t)}function Ve(e,t,n){return fl(e,t,n)}function fl(e,t,n=ce){const{immediate:r,deep:i,flush:s,once:l}=n,o=Te({},n);let a;if(ar)if(s==="sync"){const p=$c();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||r)o.once=!0;else return{stop:$t,resume:$t,pause:$t};const u=Le;o.call=(p,m,w)=>ot(p,u,m,w);let c=!1;s==="post"?o.scheduler=p=>{De(p,u&&u.suspense)}:s!=="sync"&&(c=!0,o.scheduler=(p,m)=>{m?p():ti(p)}),o.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=Va(e,t,o);return a&&a.push(h),h}const Cc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${qe(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function Sc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let i=n;const s=t.startsWith("update:"),l=s&&Cc(r,t.slice(7));l&&(l.trim&&(i=n.map(c=>we(c)?c.trim():c)),l.number&&(i=n.map(Vn)));let o,a=r[o=Or(t)]||r[o=Or(qe(t))];!a&&s&&(a=r[o=Or(Ct(t))]),a&&ot(a,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ot(u,e,6,i)}}function Ec(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(pe(e)&&r.set(e,null),null):(B(s)?s.forEach(a=>l[a]=null):Te(l,s),pe(e)&&r.set(e,l),l)}function ir(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Ct(t))||se(e,t))}function fi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:u,renderCache:c,props:h,data:p,setupState:m,ctx:w,inheritAttrs:k}=e,C=er(e);let v,$;try{if(n.shapeFlag&4){const A=i||r,j=A;v=tt(u.call(j,A,c,h,m,p,w)),$=o}else{const A=t;v=tt(A.length>1?A(h,{attrs:o,slots:l,emit:a}):A(h,null)),$=t.props?o:Tc(o)}}catch(A){yn.length=0,Xn(A,e,1),v=oe(Ot)}let U=v;if($&&k!==!1){const A=Object.keys($),{shapeFlag:j}=U;A.length&&j&7&&(s&&A.some(Lr)&&($=Ac($,s)),U=Gt(U,$,!1,!0))}return n.dirs&&(U=Gt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&ni(U,n.transition),v=U,er(C),v}const Tc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dn(n))&&((t||(t={}))[n]=e[n]);return t},Ac=(e,t)=>{const n={};for(const r in e)(!Lr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Rc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?hl(r,l,u):!!l;if(a&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(l[p]!==r[p]&&!ir(u,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?hl(r,l,u):!0:!!l;return!1}function hl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ir(n,s))return!0}return!1}function Ic({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const dl=e=>e.__isSuspense;function Lc(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):qa(e)}const he=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),yn=[];let He=null;function L(e=!1){yn.push(He=e?null:[])}function Mc(){yn.pop(),He=yn[yn.length-1]||null}let wn=1;function pl(e){wn+=e,e<0&&He&&(He.hasOnce=!0)}function gl(e){return e.dynamicChildren=wn>0?He||Dt:null,Mc(),wn>0&&He&&He.push(e),e}function z(e,t,n,r,i,s){return gl(D(e,t,n,r,i,s,!0))}function at(e,t,n,r,i){return gl(oe(e,t,n,r,i,!0))}function di(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const ml=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ke(e)||ee(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ml(t),ref:t&&lr(t),scopeId:Ws,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Oe};return o?(pi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),wn>0&&!l&&He&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&He.push(a),a}const oe=Oc;function Oc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===nc)&&(e=Ot),di(e)){const o=Gt(e,t,!0);return n&&pi(o,n),wn>0&&!s&&He&&(o.shapeFlag&6?He[He.indexOf(e)]=o:He.push(o)),o.patchFlag=-2,o}if(qc(e)&&(e=e.__vccOpts),t){t=jc(t);let{class:o,style:a}=t;o&&!we(o)&&(t.class=ve(o)),pe(a)&&(Jr(a)&&!B(a)&&(a=Te({},a)),t.style=rn(a))}const l=we(e)?1:dl(e)?128:Za(e)?64:pe(e)?4:ee(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function jc(e){return e?Jr(e)||el(e)?Te({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,u=t?zc(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ml(u),ref:t&&t.ref?n&&s?B(s)?s.concat(lr(t)):[s,lr(t)]:lr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ni(c,a.clone(c)),c}function ct(e=" ",t=0){return oe(sr,null,e,t)}function J(e="",t=!1){return t?(L(),at(Ot,null,e)):oe(Ot,null,e)}function tt(e){return e==null||typeof e=="boolean"?oe(Ot):B(e)?oe(he,null,e.slice()):typeof e=="object"?vt(e):oe(sr,null,String(e))}function vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function pi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),pi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!el(t)?t._ctx=Oe:i===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),r&64?(n=16,t=[ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function zc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=rn([t.style,r.style]);else if(Dn(i)){const s=t[i],l=r[i];l&&s!==l&&!(B(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function nt(e,t,n,r=null){ot(e,t,7,[n,r])}const Pc=Js();let Fc=0;function Dc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Pc,s={uid:Fc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new da(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:pc(r,i),emitsOptions:Ec(r,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:r.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Sc.bind(null,s),e.ce&&e.ce(s),s}let Le=null;const Hc=()=>Le||Oe;let or,gi;{const e=jr(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};or=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),gi=t("__VUE_SSR_SETTERS__",n=>ar=n)}const mi=e=>{const t=Le;return or(e),e.scope.on(),()=>{e.scope.off(),or(t)}},vl=()=>{Le&&Le.scope.off(),or(null)};function bl(e){return e.vnode.shapeFlag&4}let ar=!1;function Uc(e,t=!1,n=!1){t&&gi(t);const{props:r,children:i}=e.vnode,s=bl(e);hc(e,r,s,t),mc(e,i,n);const l=s?Nc(e,t):void 0;return t&&gi(!1),l}function Nc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ic);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Bc(e):null,s=mi(e);Et();const l=fn(r,e,0,[e.props,i]);if(Tt(),s(),us(l)){if(gn(e)||Qa(e),l.then(vl,vl),t)return l.then(o=>{yl(e,o,t)}).catch(o=>{Xn(o,e,0)});e.asyncDep=l}else yl(e,l,t)}else xl(e,t)}function yl(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Ds(t)),xl(e,n)}let wl;function xl(e,t,n){const r=e.type;if(!e.render){if(!t&&wl&&!r.render){const i=r.template||sc(e).template;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,u=Te(Te({isCustomElement:s,delimiters:o},l),a);r.render=wl(i,u)}}e.render=r.render||$t}}const Vc={get(e,t){return Ce(e,"get",""),e[t]}};function Bc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Vc),slots:e.slots,emit:e.emit,expose:t}}function cr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ds(za(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}})):e.proxy}function Wc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function qc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>Ua(e,t,ar);function ne(e,t,n){const r=arguments.length;return r===2?pe(t)&&!B(t)?di(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&di(n)&&(n=[n]),oe(e,t,n))}const Kc="3.5.3";/**
|
|
23
|
-
* @vue/runtime-dom v3.5.
|
|
22
|
+
**/function fn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function ot(e,t,n,r){if(le(e)){const i=fn(e,t,n,r);return i&&es(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(V(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ot(e[s],t,n,r));return i}}function Kn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ce;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 h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}o=o.parent}if(s){Rt(),fn(s,null,10,[e,a,c]),At();return}}Sa(e,n,i,r,l)}function Sa(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Ee=[];let Xe=-1;const Vt=[];let vt=null,Wt=0;const Rs=Promise.resolve();let Gn=null;function qt(e){const t=Gn||Rs;return e?t.then(this?e.bind(this):e):t}function Ra(e){let t=Xe+1,n=Ee.length;for(;t<n;){const r=t+n>>>1,i=Ee[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Kr(e){if(!(e.flags&1)){const t=hn(e),n=Ee[Ee.length-1];!n||!(e.flags&2)&&t>=hn(n)?Ee.push(e):Ee.splice(Ra(t),0,e),e.flags|=1,As()}}function As(){Gn||(Gn=Rs.then(Ls))}function Aa(e){V(e)?Vt.push(...e):vt&&e.id===-1?vt.splice(Wt+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),As()}function Es(e,t,n=Xe+1){for(;n<Ee.length;n++){const r=Ee[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ee.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ts(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,r)=>hn(n)-hn(r));if(Vt.length=0,vt){vt.push(...t);return}for(vt=t,Wt=0;Wt<vt.length;Wt++){const n=vt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,Wt=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ls(e){try{for(Xe=0;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),fn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Xe<Ee.length;Xe++){const t=Ee[Xe];t&&(t.flags&=-2)}Xe=-1,Ee.length=0,Ts(),Gn=null,(Ee.length||Vt.length)&&Ls()}}let Me=null,Is=null;function Zn(e){const t=Me;return Me=e,Is=e&&e.type.__scopeId||null,t}function Ea(e,t=Me,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ys(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&Ys(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Me===null)return e;const n=ir(Me),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ce]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&<(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function It(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(Rt(),ot(a,n,8,[e.el,o,e,t]),At())}}const Ta=Symbol("_vte"),La=e=>e.__isTeleport;function Gr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gr(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 dn(e,t){return le(e)?He({name:e.name},t,{setup:e}):e}function Ia(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yn(e,t,n,r,i=!1){if(V(e)){e.forEach((k,v)=>Yn(k,t&&(V(t)?t[v]:t),n,r,i));return}if(pn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ce?o.refs={}:o.refs,h=o.setupState,d=te(h),g=h===ce?()=>!1:k=>ee(d,k);if(c!=null&&c!==a&&(we(c)?(u[c]=null,g(c)&&(h[c]=null)):xe(c)&&(c.value=null)),le(a))fn(a,o,12,[l,u]);else{const k=we(a),v=xe(a);if(k||v){const $=()=>{if(e.f){const b=k?g(a)?h[a]:u[a]:a.value;i?V(b)&&Qi(b,s):V(b)?b.includes(s)||b.push(s):k?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else k?(u[a]=l,g(a)&&(h[a]=l)):v&&(a.value=l,e.k&&(u[e.k]=l))};l?($.id=-1,Fe($,n)):$()}}}tn().requestIdleCallback,tn().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,Ma=e=>e.type.__isKeepAlive;function Oa(e,t,n=Te,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{Rt();const o=li(n),a=ot(t,n,e,l);return o(),At(),a});return r?i.unshift(s):i.push(s),s}}const Zr=e=>(t,n=Te)=>{(!wn||e==="sp")&&Oa(e,(...r)=>t(...r),n)},gn=Zr("m"),Pa=Zr("bum"),Jr=Zr("um"),ja="components";function za(e,t){return Da(ja,e,!0,t)||e}const Fa=Symbol.for("v-ndc");function Da(e,t,n=!0,r=!1){const i=Me||Te;if(i){const s=i.type;{const o=_c(s,!1);if(o&&(o===t||o===Ne(t)||o===Dn(Ne(t))))return s}const l=Ms(i[e]||s[e],t)||Ms(i.appContext[e],t);return!l&&r?s:l}}function Ms(e,t){return e&&(e[t]||e[Ne(t)]||e[Dn(Ne(t))])}function Be(e,t,n,r){let i;const s=n,l=V(e);if(l||we(e)){const o=l&&Bt(e);let a=!1;o&&(a=!Ue(e),e=Un(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?Se(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];i[a]=t(e[u],u,a,s)}}else i=[];return i}const Yr=e=>e?tl(e)?ir(e):Yr(e.parent):null,mn=He(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=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Kr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>Ct}),Qr=(e,t)=>e!==ce&&!e.__isScriptSetup&&ee(e,t),Ha={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Qr(r,t))return l[t]=1,r[t];if(i!==ce&&ee(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&ee(c,t))return l[t]=3,s[t];if(n!==ce&&ee(n,t))return l[t]=4,n[t];l[t]=0}}const u=mn[t];let h,d;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ce&&ee(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Qr(i,t)?(i[t]=n,!0):r!==ce&&ee(r,t)?(r[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let o;return!!n[l]||e!==ce&&ee(e,l)||Qr(t,l)||(o=s[0])&&ee(o,l)||ee(r,l)||ee(mn,l)||ee(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(){return{app:null,config:{isNativeTag:Do,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 Na=0;function Ua(e,t){return function(r,i=null){le(r)||(r=He({},r)),i!=null&&!ge(i)&&(i=null);const s=Os(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Na++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:$c,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&le(u.install)?(l.add(u),u.install(c,...h)):le(u)&&(l.add(u),u(c,...h))),c},mixin(u){return c},component(u,h){return h?(s.components[u]=h,c):s.components[u]},directive(u,h){return h?(s.directives[u]=h,c):s.directives[u]},mount(u,h,d){if(!a){const g=c._ceVNode||oe(r,i);return g.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(g,u):e(g,u,d),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(ot(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return s.provides[u]=h,c},runWithContext(u){const h=Kt;Kt=c;try{return u()}finally{Kt=h}}};return c}}let Kt=null;function Ba(e,t){if(Te){let n=Te.provides;const r=Te.parent&&Te.parent.provides;r===n&&(n=Te.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Te||Me;if(r||Kt){const i=Kt?Kt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}const Ps={},js=()=>Object.create(Ps),zs=e=>Object.getPrototypeOf(e)===Ps;function Va(e,t,n,r=!1){const i={},s=js();e.propsDefaults=Object.create(null),Fs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:va(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Wa(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Xn(e.emitsOptions,d))continue;const g=t[d];if(a)if(ee(s,d))g!==s[d]&&(s[d]=g,c=!0);else{const k=Ne(d);i[k]=Xr(a,o,k,g,e,!1)}else g!==s[d]&&(s[d]=g,c=!0)}}}else{Fs(e,t,i,s)&&(c=!0);let u;for(const h in o)(!t||!ee(t,h)&&((u=$t(h))===h||!ee(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=Xr(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!ee(t,h))&&(delete s[h],c=!0)}c&&it(e.attrs,"set","")}function Fs(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(en(a))continue;const c=t[a];let u;i&&ee(i,u=Ne(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=te(n),c=o||ce;for(let u=0;u<s.length;u++){const h=s[u];n[h]=Xr(i,a,h,c[h],e,!ee(c,h))}}return l}function Xr(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=ee(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&le(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=li(i);r=c[n]=a.call(null,t),u()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===$t(n))&&(r=!0))}return r}function qa(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return ge(e)&&r.set(e,Dt),Dt;if(V(s))for(let u=0;u<s.length;u++){const h=Ne(s[u]);Ds(h)&&(l[h]=ce)}else if(s)for(const u in s){const h=Ne(u);if(Ds(h)){const d=s[u],g=l[h]=V(d)||le(d)?{type:d}:He({},d),k=g.type;let v=!1,$=!0;if(V(k))for(let b=0;b<k.length;++b){const C=k[b],N=le(C)&&C.name;if(N==="Boolean"){v=!0;break}else N==="String"&&($=!1)}else v=le(k)&&k.name==="Boolean";g[0]=v,g[1]=$,(v||ee(g,"default"))&&o.push(h)}}const c=[l,o];return ge(e)&&r.set(e,c),c}function Ds(e){return e[0]!=="$"&&!en(e)}const Hs=e=>e[0]==="_"||e==="$stable",ei=e=>V(e)?e.map(et):[et(e)],Ka=(e,t,n)=>{if(t._n)return t;const r=Ea((...i)=>ei(t(...i)),n);return r._c=!1,r},Ns=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Hs(i))continue;const s=e[i];if(le(s))t[i]=Ka(i,s,r);else if(s!=null){const l=ei(s);t[i]=()=>l}}},Us=(e,t)=>{const n=ei(t);e.slots.default=()=>n},Bs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Ga=(e,t,n)=>{const r=e.slots=js();if(e.vnode.shapeFlag&32){const i=t._;i?(Bs(r,t,n),n&&rs(r,"_",i,!0)):Ns(t,r)}else t&&Us(e,t)},Za=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ce;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Bs(i,t,n):(s=!t.$stable,Ns(t,i)),l=t}else t&&(Us(e,t),l={default:1});if(s)for(const o in i)!Hs(o)&&l[o]==null&&delete i[o]};function Ja(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(tn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=uc;function Ya(e){return Qa(e)}function Qa(e,t){Ja();const n=tn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:g=Ct,insertStaticContent:k}=e,v=(f,p,m,w=null,y=null,x=null,T=void 0,R=null,S=!!p.dynamicChildren)=>{if(f===p)return;f&&!yn(f,p)&&(w=xt(f),Oe(f,y,x,!0),f=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:M,shapeFlag:L}=p;switch(_){case er:$(f,p,m,w);break;case Ot:b(f,p,m,w);break;case ri:f==null&&C(p,m,w,T);break;case he:me(f,p,m,w,y,x,T,R,S);break;default:L&1?j(f,p,m,w,y,x,T,R,S):L&6?F(f,p,m,w,y,x,T,R,S):(L&64||L&128)&&_.process(f,p,m,w,y,x,T,R,S,A)}M!=null&&y&&Yn(M,f&&f.ref,x,p||f,!p)},$=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const y=p.el=f.el;p.children!==f.children&&c(y,p.children)}},b=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},C=(f,p,m,w)=>{[f.el,f.anchor]=k(f.children,p,m,w,f.el,f.anchor)},N=({el:f,anchor:p},m,w)=>{let y;for(;f&&f!==p;)y=d(f),r(f,m,w),f=y;r(p,m,w)},E=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},j=(f,p,m,w,y,x,T,R,S)=>{p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),f==null?K(p,m,w,y,x,T,R,S):Ie(f,p,y,x,T,R,S)},K=(f,p,m,w,y,x,T,R)=>{let S,_;const{props:M,shapeFlag:L,transition:D,dirs:B}=f;if(S=f.el=l(f.type,x,M&&M.is,M),L&8?u(S,f.children):L&16&&G(f.children,S,null,w,y,ti(f,x),T,R),B&&It(f,null,w,"created"),z(S,f,f.scopeId,T,w),M){for(const ue in M)ue!=="value"&&!en(ue)&&s(S,ue,null,M[ue],x,w);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&tt(_,w,f)}B&&It(f,null,w,"beforeMount");const J=Xa(y,D);J&&D.beforeEnter(S),r(S,p,m),((_=M&&M.onVnodeMounted)||J||B)&&Fe(()=>{_&&tt(_,w,f),J&&D.enter(S),B&&It(f,null,w,"mounted")},y)},z=(f,p,m,w,y)=>{if(m&&g(f,m),w)for(let x=0;x<w.length;x++)g(f,w[x]);if(y){let x=y.subTree;if(p===x||Js(x.type)&&(x.ssContent===p||x.ssFallback===p)){const T=y.vnode;z(f,T,T.scopeId,T.slotScopeIds,y.parent)}}},G=(f,p,m,w,y,x,T,R,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=R?bt(f[_]):et(f[_]);v(null,M,p,m,w,y,x,T,R)}},Ie=(f,p,m,w,y,x,T)=>{const R=p.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=p;S|=f.patchFlag&16;const L=f.props||ce,D=p.props||ce;let B;if(m&&Mt(m,!1),(B=D.onVnodeBeforeUpdate)&&tt(B,m,p,f),M&&It(p,f,m,"beforeUpdate"),m&&Mt(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&u(R,""),_?Z(f.dynamicChildren,_,R,m,w,ti(p,y),x):T||ye(f,p,R,null,m,w,ti(p,y),x,!1),S>0){if(S&16)re(R,L,D,m,y);else if(S&2&&L.class!==D.class&&s(R,"class",null,D.class,y),S&4&&s(R,"style",L.style,D.style,y),S&8){const J=p.dynamicProps;for(let ue=0;ue<J.length;ue++){const ie=J[ue],Pe=L[ie],Ce=D[ie];(Ce!==Pe||ie==="value")&&s(R,ie,Pe,Ce,y,m)}}S&1&&f.children!==p.children&&u(R,p.children)}else!T&&_==null&&re(R,L,D,m,y);((B=D.onVnodeUpdated)||M)&&Fe(()=>{B&&tt(B,m,p,f),M&&It(p,f,m,"updated")},w)},Z=(f,p,m,w,y,x,T)=>{for(let R=0;R<p.length;R++){const S=f[R],_=p[R],M=S.el&&(S.type===he||!yn(S,_)||S.shapeFlag&70)?h(S.el):m;v(S,_,M,null,w,y,x,T,!0)}},re=(f,p,m,w,y)=>{if(p!==m){if(p!==ce)for(const x in p)!en(x)&&!(x in m)&&s(f,x,p[x],null,y,w);for(const x in m){if(en(x))continue;const T=m[x],R=p[x];T!==R&&x!=="value"&&s(f,x,R,T,y,w)}"value"in m&&s(f,"value",p.value,m.value,y)}},me=(f,p,m,w,y,x,T,R,S)=>{const _=p.el=f?f.el:o(""),M=p.anchor=f?f.anchor:o("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=p;B&&(R=R?R.concat(B):B),f==null?(r(_,m,w),r(M,m,w),G(p.children||[],m,M,y,x,T,R,S)):L>0&&L&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,y,x,T,R),(p.key!=null||y&&p===y.subTree)&&Vs(f,p,!0)):ye(f,p,m,M,y,x,T,R,S)},F=(f,p,m,w,y,x,T,R,S)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?y.ctx.activate(p,m,w,T,S):Y(p,m,w,y,x,T,S):se(f,p,S)},Y=(f,p,m,w,y,x,T)=>{const R=f.component=vc(f,w,y);if(Ma(f)&&(R.ctx.renderer=A),yc(R,!1,T),R.asyncDep){if(y&&y.registerDep(R,ke,T),!f.el){const S=R.subTree=oe(Ot);b(null,S,p,m)}}else ke(R,f,p,m,y,x,T)},se=(f,p,m)=>{const w=p.component=f.component;if(ac(f,p,m))if(w.asyncDep&&!w.asyncResolved){be(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},ke=(f,p,m,w,y,x,T)=>{const R=()=>{if(f.isMounted){let{next:L,bu:D,u:B,parent:J,vnode:ue}=f;{const je=Ws(f);if(je){L&&(L.el=ue.el,be(f,L,T)),je.asyncDep.then(()=>{f.isUnmounted||R()});return}}let ie=L,Pe;Mt(f,!1),L?(L.el=ue.el,be(f,L,T)):L=ue,D&&Hn(D),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&tt(Pe,J,L,ue),Mt(f,!0);const Ce=ni(f),qe=f.subTree;f.subTree=Ce,v(qe,Ce,h(qe.el),xt(qe),f,y,x),L.el=Ce.el,ie===null&&cc(f,Ce.el),B&&Fe(B,y),(Pe=L.props&&L.props.onVnodeUpdated)&&Fe(()=>tt(Pe,J,L,ue),y)}else{let L;const{el:D,props:B}=p,{bm:J,m:ue,parent:ie,root:Pe,type:Ce}=f,qe=pn(p);if(Mt(f,!1),J&&Hn(J),!qe&&(L=B&&B.onVnodeBeforeMount)&&tt(L,ie,p),Mt(f,!0),D&&de){const je=()=>{f.subTree=ni(f),de(D,f.subTree,f,y,null)};qe&&Ce.__asyncHydrate?Ce.__asyncHydrate(D,f,je):je()}else{Pe.ce&&Pe.ce._injectChildStyle(Ce);const je=f.subTree=ni(f);v(null,je,m,w,f,y,x),p.el=je.el}if(ue&&Fe(ue,y),!qe&&(L=B&&B.onVnodeMounted)){const je=p;Fe(()=>tt(L,ie,je),y)}(p.shapeFlag&256||ie&&pn(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&Fe(f.a,y),f.isMounted=!0,p=m=w=null}};f.scope.on();const S=f.effect=new cs(R);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>Kr(M),Mt(f,!0),_()},be=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Wa(f,p.props,w,m),Za(f,p.children,m),Rt(),Es(f),At()},ye=(f,p,m,w,y,x,T,R,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,L=p.children,{patchFlag:D,shapeFlag:B}=p;if(D>0){if(D&128){gt(_,L,m,w,y,x,T,R,S);return}else if(D&256){Re(_,L,m,w,y,x,T,R,S);return}}B&8?(M&16&&kt(_,y,x),L!==_&&u(m,L)):M&16?B&16?gt(_,L,m,w,y,x,T,R,S):kt(_,y,x,!0):(M&8&&u(m,""),B&16&&G(L,m,w,y,x,T,R,S))},Re=(f,p,m,w,y,x,T,R,S)=>{f=f||Dt,p=p||Dt;const _=f.length,M=p.length,L=Math.min(_,M);let D;for(D=0;D<L;D++){const B=p[D]=S?bt(p[D]):et(p[D]);v(f[D],B,m,null,y,x,T,R,S)}_>M?kt(f,y,x,!0,!1,L):G(p,m,w,y,x,T,R,S,L)},gt=(f,p,m,w,y,x,T,R,S)=>{let _=0;const M=p.length;let L=f.length-1,D=M-1;for(;_<=L&&_<=D;){const B=f[_],J=p[_]=S?bt(p[_]):et(p[_]);if(yn(B,J))v(B,J,m,null,y,x,T,R,S);else break;_++}for(;_<=L&&_<=D;){const B=f[L],J=p[D]=S?bt(p[D]):et(p[D]);if(yn(B,J))v(B,J,m,null,y,x,T,R,S);else break;L--,D--}if(_>L){if(_<=D){const B=D+1,J=B<M?p[B].el:w;for(;_<=D;)v(null,p[_]=S?bt(p[_]):et(p[_]),m,J,y,x,T,R,S),_++}}else if(_>D)for(;_<=L;)Oe(f[_],y,x,!0),_++;else{const B=_,J=_,ue=new Map;for(_=J;_<=D;_++){const ze=p[_]=S?bt(p[_]):et(p[_]);ze.key!=null&&ue.set(ze.key,_)}let ie,Pe=0;const Ce=D-J+1;let qe=!1,je=0;const Yt=new Array(Ce);for(_=0;_<Ce;_++)Yt[_]=0;for(_=B;_<=L;_++){const ze=f[_];if(Pe>=Ce){Oe(ze,y,x,!0);continue}let Je;if(ze.key!=null)Je=ue.get(ze.key);else for(ie=J;ie<=D;ie++)if(Yt[ie-J]===0&&yn(ze,p[ie])){Je=ie;break}Je===void 0?Oe(ze,y,x,!0):(Yt[Je-J]=_+1,Je>=je?je=Je:qe=!0,v(ze,p[Je],m,null,y,x,T,R,S),Pe++)}const _i=qe?ec(Yt):Dt;for(ie=_i.length-1,_=Ce-1;_>=0;_--){const ze=J+_,Je=p[ze],Ci=ze+1<M?p[ze+1].el:w;Yt[_]===0?v(null,Je,m,Ci,y,x,T,R,S):qe&&(ie<0||_!==_i[ie]?wt(Je,m,Ci,2):ie--)}}},wt=(f,p,m,w,y=null)=>{const{el:x,type:T,transition:R,children:S,shapeFlag:_}=f;if(_&6){wt(f.component.subTree,p,m,w);return}if(_&128){f.suspense.move(p,m,w);return}if(_&64){T.move(f,p,m,A);return}if(T===he){r(x,p,m);for(let L=0;L<S.length;L++)wt(S[L],p,m,w);r(f.anchor,p,m);return}if(T===ri){N(f,p,m);return}if(w!==2&&_&1&&R)if(w===0)R.beforeEnter(x),r(x,p,m),Fe(()=>R.enter(x),y);else{const{leave:L,delayLeave:D,afterLeave:B}=R,J=()=>r(x,p,m),ue=()=>{L(x,()=>{J(),B&&B()})};D?D(x,J,ue):ue()}else r(x,p,m)},Oe=(f,p,m,w=!1,y=!1)=>{const{type:x,props:T,ref:R,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:L,dirs:D,cacheIndex:B}=f;if(L===-2&&(y=!1),R!=null&&Yn(R,null,m,f,!0),B!=null&&(p.renderCache[B]=void 0),M&256){p.ctx.deactivate(f);return}const J=M&1&&D,ue=!pn(f);let ie;if(ue&&(ie=T&&T.onVnodeBeforeUnmount)&&tt(ie,p,f),M&6)Mn(f.component,m,w);else{if(M&128){f.suspense.unmount(m,w);return}J&&It(f,null,p,"beforeUnmount"),M&64?f.type.remove(f,p,m,A,w):_&&!_.hasOnce&&(x!==he||L>0&&L&64)?kt(_,p,m,!1,!0):(x===he&&L&384||!y&&M&16)&&kt(S,p,m),w&&In(f)}(ue&&(ie=T&&T.onVnodeUnmounted)||J)&&Fe(()=>{ie&&tt(ie,p,f),J&&It(f,null,p,"unmounted")},m)},In=f=>{const{type:p,el:m,anchor:w,transition:y}=f;if(p===he){wr(m,w);return}if(p===ri){E(f);return}const x=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:T,delayLeave:R}=y,S=()=>T(m,x);R?R(f.el,x,S):S()}else x()},wr=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},Mn=(f,p,m)=>{const{bum:w,scope:y,job:x,subTree:T,um:R,m:S,a:_}=f;qs(S),qs(_),w&&Hn(w),y.stop(),x&&(x.flags|=8,Oe(T,f,p,m)),R&&Fe(R,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},kt=(f,p,m,w=!1,y=!1,x=0)=>{for(let T=x;T<f.length;T++)Oe(f[T],p,m,w,y)},xt=f=>{if(f.shapeFlag&6)return xt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Ta];return m?d(m):p};let zt=!1;const O=(f,p,m)=>{f==null?p._vnode&&Oe(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,m),p._vnode=f,zt||(zt=!0,Es(),Ts(),zt=!1)},A={p:v,um:Oe,m:wt,r:In,mt:Y,mc:G,pc:ye,pbc:Z,n:xt,o:e};let U,de;return{render:O,hydrate:U,createApp:Ua(O,U)}}function ti({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vs(e,t,n=!1){const r=e.children,i=t.children;if(V(r)&&V(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=bt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Vs(l,o)),o.type===er&&(o.el=l.el)}}function ec(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Ws(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ws(t)}function qs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const tc=Symbol.for("v-scx"),nc=()=>Qn(tc);function Ks(e,t){return Gs(e,null,t)}function Ve(e,t,n){return Gs(e,t,n)}function Gs(e,t,n=ce){const{immediate:r,deep:i,flush:s,once:l}=n,o=He({},n),a=t&&r||!t&&s!=="post";let c;if(wn){if(s==="sync"){const g=nc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ct,g.resume=Ct,g.pause=Ct,g}}const u=Te;o.call=(g,k,v)=>ot(g,u,k,v);let h=!1;s==="post"?o.scheduler=g=>{Fe(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,k)=>{k?g():Kr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=$a(e,t,o);return wn&&(c?c.push(d):a&&d()),d}const rc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function ic(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let i=n;const s=t.startsWith("update:"),l=s&&rc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>we(u)?u.trim():u)),l.number&&(i=n.map(Nn)));let o,a=r[o=Er(t)]||r[o=Er(Ne(t))];!a&&s&&(a=r[o=Er($t(t))]),a&&ot(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ot(c,e,6,i)}}function sc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):He(l,s),ge(e)&&r.set(e,l),l)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,$t(t))||ee(e,t))}function ni(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:d,setupState:g,ctx:k,inheritAttrs:v}=e,$=Zn(e);let b,C;try{if(n.shapeFlag&4){const E=i||r,j=E;b=et(c.call(j,E,u,h,g,d,k)),C=o}else{const E=t;b=et(E.length>1?E(h,{attrs:o,slots:l,emit:a}):E(h,null)),C=t.props?o:lc(o)}}catch(E){vn.length=0,Kn(E,e,1),b=oe(Ot)}let N=b;if(C&&v!==!1){const E=Object.keys(C),{shapeFlag:j}=N;E.length&&j&7&&(s&&E.some(Rr)&&(C=oc(C,s)),N=Gt(N,C,!1,!0))}return n.dirs&&(N=Gt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Gr(N,n.transition),b=N,Zn($),b}const lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},oc=(e,t)=>{const n={};for(const r in e)(!Rr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ac(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Zs(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(l[d]!==r[d]&&!Xn(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?Zs(r,l,c):!0:!!l;return!1}function Zs(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!Xn(n,s))return!0}return!1}function cc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Js=e=>e.__isSuspense;function uc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Aa(e)}const he=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),ri=Symbol.for("v-stc"),vn=[];let De=null;function I(e=!1){vn.push(De=e?null:[])}function fc(){vn.pop(),De=vn[vn.length-1]||null}let bn=1;function Ys(e,t=!1){bn+=e,e<0&&De&&t&&(De.hasOnce=!0)}function Qs(e){return e.dynamicChildren=bn>0?De||Dt:null,fc(),bn>0&&De&&De.push(e),e}function P(e,t,n,r,i,s){return Qs(H(e,t,n,r,i,s,!0))}function at(e,t,n,r,i){return Qs(oe(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const Xs=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||xe(e)||le(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xs(t),ref:t&&nr(t),scopeId:Is,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Me};return o?(ii(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),bn>0&&!l&&De&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&De.push(a),a}const oe=hc;function hc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Fa)&&(e=Ot),tr(e)){const o=Gt(e,t,!0);return n&&ii(o,n),bn>0&&!s&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag=-2,o}if(Cc(e)&&(e=e.__vccOpts),t){t=dc(t);let{class:o,style:a}=t;o&&!we(o)&&(t.class=ve(o)),ge(a)&&(Wr(a)&&!V(a)&&(a=He({},a)),t.style=nn(a))}const l=we(e)?1:Js(e)?128:La(e)?64:ge(e)?4:le(e)?2:0;return H(e,t,n,r,i,l,s,!0)}function dc(e){return e?Wr(e)||zs(e)?He({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?pc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Xs(c),ref:t&&t.ref?n&&s?V(s)?s.concat(nr(t)):[s,nr(t)]:nr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Gr(u,a.clone(u)),u}function ct(e=" ",t=0){return oe(er,null,e,t)}function Q(e="",t=!1){return t?(I(),at(Ot,null,e)):oe(Ot,null,e)}function et(e){return e==null||typeof e=="boolean"?oe(Ot):V(e)?oe(he,null,e.slice()):tr(e)?bt(e):oe(er,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function ii(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ii(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!zs(t)?t._ctx=Me:i===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function pc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=nn([t.style,r.style]);else if(zn(i)){const s=t[i],l=r[i];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function tt(e,t,n,r=null){ot(e,t,7,[n,r])}const gc=Os();let mc=0;function vc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||gc,s={uid:mc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qa(r,i),emitsOptions:sc(r,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:r.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=ic.bind(null,s),e.ce&&e.ce(s),s}let Te=null;const bc=()=>Te||Me;let rr,si;{const e=tn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};rr=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),si=t("__VUE_SSR_SETTERS__",n=>wn=n)}const li=e=>{const t=Te;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},el=()=>{Te&&Te.scope.off(),rr(null)};function tl(e){return e.vnode.shapeFlag&4}let wn=!1;function yc(e,t=!1,n=!1){t&&si(t);const{props:r,children:i}=e.vnode,s=tl(e);Va(e,r,s,t),Ga(e,i,n);const l=s?wc(e,t):void 0;return t&&si(!1),l}function wc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ha);const{setup:r}=n;if(r){Rt();const i=e.setupContext=r.length>1?xc(e):null,s=li(e),l=fn(r,e,0,[e.props,i]),o=es(l);if(At(),s(),(o||e.sp)&&!pn(e)&&Ia(e),o){if(l.then(el,el),t)return l.then(a=>{nl(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else nl(e,l,t)}else il(e,t)}function nl(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ss(t)),il(e,n)}let rl;function il(e,t,n){const r=e.type;if(!e.render){if(!t&&rl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=He(He({isCustomElement:s,delimiters:o},l),a);r.render=rl(i,c)}}e.render=r.render||Ct}}const kc={get(e,t){return $e(e,"get",""),e[t]}};function xc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ss(ba(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}})):e.proxy}function _c(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Cc(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>_a(e,t,wn);function ne(e,t,n){const r=arguments.length;return r===2?ge(t)&&!V(t)?tr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),oe(e,t,n))}const $c="3.5.13";/**
|
|
23
|
+
* @vue/runtime-dom v3.5.13
|
|
24
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
25
25
|
* @license MIT
|
|
26
|
-
**/let vi;const kl=typeof window<"u"&&window.trustedTypes;if(kl)try{vi=kl.createPolicy("vue",{createHTML:e=>e})}catch{}const _l=vi?e=>vi.createHTML(e):e=>e,Gc="http://www.w3.org/2000/svg",Zc="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,$l=ut&&ut.createElement("template"),Qc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ut.createElementNS(Gc,e):t==="mathml"?ut.createElementNS(Zc,e):n?ut.createElement(e,{is:n}):ut.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{$l.innerHTML=_l(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=$l.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Jc=Symbol("_vtc");function Yc(e,t,n){const r=e[Jc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),Cl=Symbol("_vsh"),Sl={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),kn(e,!0),r.enter(e)):r.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[ur]:"none",e[Cl]=!t}const Xc=Symbol(""),eu=/(^|;)\s*display\s*:/;function tu(e,t,n){const r=e.style,i=we(n);let s=!1;if(n&&!i){if(t)if(we(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fr(r,o,"")}else for(const l in t)n[l]==null&&fr(r,l,"");for(const l in n)l==="display"&&(s=!0),fr(r,l,n[l])}else if(i){if(t!==n){const l=r[Xc];l&&(n+=";"+l),r.cssText=n,s=eu.test(n)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=s?r.display:"",e[Cl]&&(r.display="none"))}const El=/\s*!important$/;function fr(e,t,n){if(B(n))n.forEach(r=>fr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=nu(e,t);El.test(n)?e.setProperty(Ct(r),n.replace(El,""),"important"):e[r]=n}}const Tl=["Webkit","Moz","ms"],bi={};function nu(e,t){const n=bi[t];if(n)return n;let r=qe(t);if(r!=="filter"&&r in e)return bi[t]=r;r=Un(r);for(let i=0;i<Tl.length;i++){const s=Tl[i]+r;if(s in e)return bi[t]=s}return t}const Al="http://www.w3.org/1999/xlink";function Rl(e,t,n,r,i,s=fa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Al,t.slice(6,t.length)):e.setAttributeNS(Al,t,n):n==null||s&&!gs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Xe(n)?String(n):n)}function ru(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_l(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?e.type==="checkbox"?"on":"":String(n);(l!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=gs(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function ft(e,t,n,r){e.addEventListener(t,n,r)}function iu(e,t,n,r){e.removeEventListener(t,n,r)}const Il=Symbol("_vei");function su(e,t,n,r,i=null){const s=e[Il]||(e[Il]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=lu(t);if(r){const u=s[t]=cu(r,i);ft(e,o,u,a)}else l&&(iu(e,o,l,a),s[t]=void 0)}}const Ll=/(?:Once|Passive|Capture)$/;function lu(e){let t;if(Ll.test(e)){t={};let r;for(;r=e.match(Ll);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ct(e.slice(2)),t]}let yi=0;const ou=Promise.resolve(),au=()=>yi||(ou.then(()=>yi=0),yi=Date.now());function cu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(uu(r,n.value),t,5,[r])};return n.value=e,n.attached=au(),n}function uu(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Ml=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fu=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Yc(e,r,l):t==="style"?tu(e,n,r):Dn(t)?Lr(t)||su(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hu(e,t,r,l))?(ru(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rl(e,t,r,l,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Rl(e,t,r,l))};function hu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ml(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ml(t)&&we(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!we(n)))}const bt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Nn(t,n):t};function du(e){e.target.composing=!0}function Ol(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Be=Symbol("_assign"),wi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Be]=bt(i);const s=r||i.props&&i.props.type==="number";ft(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[Be](o)}),n&&ft(e,"change",()=>{e.value=e.value.trim()}),t||(ft(e,"compositionstart",du),ft(e,"compositionend",Ol),ft(e,"change",Ol))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Be]=bt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},pu={deep:!0,created(e,t,n){e[Be]=bt(n),ft(e,"change",()=>{const r=e._modelValue,i=Zt(e),s=e.checked,l=e[Be];if(B(r)){const o=zr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const u=[...r];u.splice(o,1),l(u)}}else if(Ut(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(Pl(e,s))})},mounted:jl,beforeUpdate(e,t,n){e[Be]=bt(n),jl(e,t,n)}};function jl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;B(t)?i=zr(t,r.props.value)>-1:Ut(t)?i=t.has(r.props.value):i=St(t,Pl(e,!0)),e.checked!==i&&(e.checked=i)}const gu={created(e,{value:t},n){e.checked=St(t,n.props.value),e[Be]=bt(n),ft(e,"change",()=>{e[Be](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Be]=bt(r),t!==n&&(e.checked=St(t,r.props.value))}},mu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ut(t);ft(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Zt(l)):Zt(l));e[Be](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[Be]=bt(r)},mounted(e,{value:t,modifiers:{number:n}}){zl(e,t)},beforeUpdate(e,t,n){e[Be]=bt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||zl(e,t)}};function zl(e,t,n){const r=e.multiple,i=B(t);if(!(r&&!i&&!Ut(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],a=Zt(o);if(r)if(i){const u=typeof a;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=zr(t,a)>-1}else o.selected=t.has(a);else if(St(Zt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function Pl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const vu={created(e,t,n){hr(e,t,n,null,"created")},mounted(e,t,n){hr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hr(e,t,n,r,"updated")}};function bu(e,t){switch(e){case"SELECT":return mu;case"TEXTAREA":return wi;default:switch(t){case"checkbox":return pu;case"radio":return gu;default:return wi}}}function hr(e,t,n,r,i){const l=bu(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const yu=Te({patchProp:fu},Qc);let Fl;function wu(){return Fl||(Fl=yc(yu))}const xu=(...e)=>{const t=wu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=_u(r);if(!i)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,ku(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function ku(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _u(e){return we(e)?document.querySelector(e):e}function _n(e){return bs()?(pa(e),!0):!1}function ht(e){return typeof e=="function"?e():K(e)}const dr=typeof window<"u"&&typeof document<"u",$u=Object.prototype.toString,Cu=e=>$u.call(e)==="[object Object]",pr=()=>{};function Dl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Hl=e=>e();function Su(e,t={}){let n,r,i=pr;const s=o=>{clearTimeout(o),i(),i=pr};return o=>{const a=ht(e),u=ht(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((c,h)=>{i=t.rejectOnCancel?h:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(o())},u)),n=setTimeout(()=>{r&&s(r),r=null,c(o())},a)})}}function Eu(e=Hl){const t=q(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:un(t),pause:n,resume:r,eventFilter:i}}function Ul(e){return Hc()}function Tu(e,t=200,n={}){return Dl(Su(t,n),e)}function Au(e,t,n={}){const{eventFilter:r=Hl,...i}=n;return Ve(e,Dl(r,t),i)}function Ru(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=Eu(r);return{stop:Au(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function xi(e,t=!0,n){Ul()?mn(e,n):t?e():qt(e)}function Iu(e,t){Ul()&&si(e,t)}function Lu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function u(){const c=ht(t);c<=0||(l.value=!0,i&&e(),o(),s=setInterval(e,c))}if(r&&dr&&u(),ke(t)||typeof t=="function"){const c=Ve(t,()=>{l.value&&dr&&u()});_n(c)}return _n(a),{isActive:l,pause:a,resume:u}}function Mu(e){var t;const n=ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gr=dr?window:void 0,Nl=dr?window.document:void 0;function mr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=gr):[t,n,r,i]=e,!t)return pr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},o=(c,h,p,m)=>(c.addEventListener(h,p,m),()=>c.removeEventListener(h,p,m)),a=Ve(()=>[Mu(t),ht(i)],([c,h])=>{if(l(),!c)return;const p=Cu(h)?{...h}:h;s.push(...n.flatMap(m=>r.map(w=>o(c,m,w,p))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return _n(u),u}function Ou(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=gr}=t,s=q(!1),l=r?1e3/r:null;let o=0,a=null;function u(p){if(!s.value||!i)return;o||(o=p);const m=p-o;if(l&&m<l){a=i.requestAnimationFrame(u);return}o=p,e({delta:m,timestamp:p}),a=i.requestAnimationFrame(u)}function c(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(u))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&c(),_n(h),{isActive:un(s),pause:h,resume:c}}const vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},br="__vueuse_ssr_handlers__",ju=zu();function zu(){return br in vr||(vr[br]=vr[br]||{}),vr[br]}function Pu(e,t){return ju[e]||t}function Fu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Du={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vl="vueuse-storage";function Qt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:h=gr,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:w}=r,k=(c?Pa:q)(typeof t=="function"?t():t);if(!n)try{n=Pu("getDefaultStorage",()=>{var G;return(G=gr)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return k;const C=ht(t),v=Fu(C),$=(i=r.serializer)!=null?i:Du[v],{pause:U,resume:A}=Ru(k,()=>W(k.value),{flush:s,deep:l,eventFilter:p});h&&o&&xi(()=>{n instanceof Storage?mr(h,"storage",Y):mr(h,Vl,Me),w&&Y()}),w||Y();function j(G,re){if(h){const me={key:e,oldValue:G,newValue:re,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",me):new CustomEvent(Vl,{detail:me}))}}function W(G){try{const re=n.getItem(e);if(G==null)j(re,null),n.removeItem(e);else{const me=$.write(G);re!==me&&(n.setItem(e,me),j(re,me))}}catch(re){m(re)}}function H(G){const re=G?G.newValue:n.getItem(e);if(re==null)return a&&C!=null&&n.setItem(e,$.write(C)),C;if(!G&&u){const me=$.read(re);return typeof u=="function"?u(me,C):v==="object"&&!Array.isArray(me)?{...C,...me}:me}else return typeof re!="string"?re:$.read(re)}function Y(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){k.value=C;return}if(!(G&&G.key!==e)){U();try{(G==null?void 0:G.newValue)!==$.write(k.value)&&(k.value=H(G))}catch(re){m(re)}finally{G?qt(A):A()}}}}function Me(G){Y(G.detail)}return k}function Hu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=q(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?Ou(i,{immediate:!0}):Lu(i,n,{immediate:!0});return t?{now:r,...s}:r}function Uu(e,t=pr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:u,defer:c,document:h=Nl,attrs:p={}}=n,m=q(null);let w=null;const k=$=>new Promise((U,A)=>{const j=Y=>(m.value=Y,U(Y),Y);if(!h){U(!1);return}let W=!1,H=h.querySelector(`script[src="${ht(e)}"]`);H?H.hasAttribute("data-loaded")&&j(H):(H=h.createElement("script"),H.type=s,H.async=l,H.src=ht(e),c&&(H.defer=c),o&&(H.crossOrigin=o),u&&(H.noModule=u),a&&(H.referrerPolicy=a),Object.entries(p).forEach(([Y,Me])=>H==null?void 0:H.setAttribute(Y,Me)),W=!0),H.addEventListener("error",Y=>A(Y)),H.addEventListener("abort",Y=>A(Y)),H.addEventListener("load",()=>{H.setAttribute("data-loaded","true"),t(H),j(H)}),W&&(H=h.head.appendChild(H)),$||j(H)}),C=($=!0)=>(w||(w=k($)),w),v=()=>{if(!h)return;w=null,m.value&&(m.value=null);const $=h.querySelector(`script[src="${ht(e)}"]`);$&&h.head.removeChild($)};return r&&!i&&xi(C),i||Iu(v),{scriptTag:m,load:C,unload:v}}let Nu=0;function Vu(e,t={}){const n=q(!1),{document:r=Nl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Nu}`}=t,o=q(e);let a=()=>{};const u=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Ve(o,p=>{h.textContent=p},{immediate:!0}),n.value=!0)},c=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&xi(u),s||_n(c),{id:l,css:o,unload:c,load:u,isLoaded:un(n)}}const Bu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Wu=e=>{const t=Qt("WALINE_EMOJI",{}),n=Bu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Bl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,qu=e=>Promise.all(e.map(t=>Ft(t)?Wu(ls(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:u}=r;n.tabs.push({name:i,icon:Bl(l,s,o,a),items:u.map(c=>{const h=`${o}${c}`;return n.map[h]=Bl(c,s,o,a),h})})}),n}),Wl=e=>{e.name!=="AbortError"&&console.error(e.message)},ki=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Ku=e=>e.type.includes("image"),ql=e=>{const t=Array.from(e).find(Ku);return t?t.getAsFile():null};function _i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let jt=_i();function Kl(e){jt=e}const Gl=/[&<>"']/,Gu=new RegExp(Gl.source,"g"),Zl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Zu=new RegExp(Zl.source,"g"),Qu={"&":"&","<":"<",">":">",'"':""","'":"'"},Ql=e=>Qu[e];function Ue(e,t){if(t){if(Gl.test(e))return e.replace(Gu,Ql)}else if(Zl.test(e))return e.replace(Zu,Ql);return e}const Ju=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Ju,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}function Jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const $n={exec:()=>null};function Yl(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Cn(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Yu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Xl(e,t,n,r){const i=t.href,s=t.title?Ue(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:s,text:Ue(l)}}function Xu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
27
|
-
`).
|
|
28
|
-
`)
|
|
29
|
-
`)}}
|
|
30
|
-
`)}}
|
|
26
|
+
**/let oi;const sl=typeof window<"u"&&window.trustedTypes;if(sl)try{oi=sl.createPolicy("vue",{createHTML:e=>e})}catch{}const ll=oi?e=>oi.createHTML(e):e=>e,Sc="http://www.w3.org/2000/svg",Rc="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,ol=ut&&ut.createElement("template"),Ac={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ut.createElementNS(Sc,e):t==="mathml"?ut.createElementNS(Rc,e):n?ut.createElement(e,{is:n}):ut.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{ol.innerHTML=ll(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=ol.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ec=Symbol("_vtc");function Tc(e,t,n){const r=e[Ec];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),al=Symbol("_vsh"),cl={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),kn(e,!0),r.enter(e)):r.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[sr]:"none",e[al]=!t}const Lc=Symbol(""),Ic=/(^|;)\s*display\s*:/;function Mc(e,t,n){const r=e.style,i=we(n);let s=!1;if(n&&!i){if(t)if(we(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&lr(r,o,"")}else for(const l in t)n[l]==null&&lr(r,l,"");for(const l in n)l==="display"&&(s=!0),lr(r,l,n[l])}else if(i){if(t!==n){const l=r[Lc];l&&(n+=";"+l),r.cssText=n,s=Ic.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[al]&&(r.display="none"))}const ul=/\s*!important$/;function lr(e,t,n){if(V(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Oc(e,t);ul.test(n)?e.setProperty($t(r),n.replace(ul,""),"important"):e[r]=n}}const fl=["Webkit","Moz","ms"],ai={};function Oc(e,t){const n=ai[t];if(n)return n;let r=Ne(t);if(r!=="filter"&&r in e)return ai[t]=r;r=Dn(r);for(let i=0;i<fl.length;i++){const s=fl[i]+r;if(s in e)return ai[t]=s}return t}const hl="http://www.w3.org/1999/xlink";function dl(e,t,n,r,i,s=Zo(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(hl,t.slice(6,t.length)):e.setAttributeNS(hl,t,n):n==null||s&&!ss(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Qe(n)?String(n):n)}function pl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ll(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=ss(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function ft(e,t,n,r){e.addEventListener(t,n,r)}function Pc(e,t,n,r){e.removeEventListener(t,n,r)}const gl=Symbol("_vei");function jc(e,t,n,r,i=null){const s=e[gl]||(e[gl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=zc(t);if(r){const c=s[t]=Hc(r,i);ft(e,o,c,a)}else l&&(Pc(e,o,l,a),s[t]=void 0)}}const ml=/(?:Once|Passive|Capture)$/;function zc(e){let t;if(ml.test(e)){t={};let r;for(;r=e.match(ml);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let ci=0;const Fc=Promise.resolve(),Dc=()=>ci||(Fc.then(()=>ci=0),ci=Date.now());function Hc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(Nc(r,n.value),t,5,[r])};return n.value=e,n.attached=Dc(),n}function Nc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const vl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Tc(e,r,l):t==="style"?Mc(e,n,r):zn(t)?Rr(t)||jc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bc(e,t,r,l))?(pl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?pl(e,Ne(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),dl(e,t,r,l))};function Bc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&vl(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return vl(t)&&we(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Hn(t,n):t};function Vc(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const We=Symbol("_assign"),ui={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[We]=yt(i);const s=r||i.props&&i.props.type==="number";ft(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Nn(o)),e[We](o)}),n&&ft(e,"change",()=>{e.value=e.value.trim()}),t||(ft(e,"compositionstart",Vc),ft(e,"compositionend",bl),ft(e,"change",bl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[We]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Nn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},Wc={deep:!0,created(e,t,n){e[We]=yt(n),ft(e,"change",()=>{const r=e._modelValue,i=Zt(e),s=e.checked,l=e[We];if(V(r)){const o=Tr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(kl(e,s))})},mounted:yl,beforeUpdate(e,t,n){e[We]=yt(n),yl(e,t,n)}};function yl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(V(t))i=Tr(t,r.props.value)>-1;else if(Nt(t))i=t.has(r.props.value);else{if(t===n)return;i=St(t,kl(e,!0))}e.checked!==i&&(e.checked=i)}const qc={created(e,{value:t},n){e.checked=St(t,n.props.value),e[We]=yt(n),ft(e,"change",()=>{e[We](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[We]=yt(r),t!==n&&(e.checked=St(t,r.props.value))}},Kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);ft(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Nn(Zt(l)):Zt(l));e[We](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[We]=yt(r)},mounted(e,{value:t}){wl(e,t)},beforeUpdate(e,t,n){e[We]=yt(n)},updated(e,{value:t}){e._assigning||wl(e,t)}};function wl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Nt(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Zt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Tr(t,o)>-1}else l.selected=t.has(o);else if(St(Zt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function kl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Gc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Zc(e,t){switch(e){case"SELECT":return Kc;case"TEXTAREA":return ui;default:switch(t){case"checkbox":return Wc;case"radio":return qc;default:return ui}}}function or(e,t,n,r,i){const l=Zc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const Jc=He({patchProp:Uc},Ac);let xl;function Yc(){return xl||(xl=Ya(Jc))}const Qc=(...e)=>{const t=Yc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=eu(r);if(!i)return;const s=t._component;!le(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Xc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Xc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return we(e)?document.querySelector(e):e}function xn(e){return as()?(Qo(e),!0):!1}function ht(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",tu=Object.prototype.toString,nu=e=>tu.call(e)==="[object Object]",cr=()=>{};function _l(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Cl=e=>e();function ru(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=ht(e),c=ht(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{i=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function iu(e=Cl){const t=W(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:un(t),pause:n,resume:r,eventFilter:i}}function $l(e){return bc()}function su(e,t=200,n={}){return _l(ru(t,n),e)}function lu(e,t,n={}){const{eventFilter:r=Cl,...i}=n;return Ve(e,_l(r,t),i)}function ou(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=iu(r);return{stop:lu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function fi(e,t=!0,n){$l()?gn(e,n):t?e():qt(e)}function au(e,t){$l()&&Jr(e,t)}function cu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=W(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=ht(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),xe(t)||typeof t=="function"){const u=Ve(t,()=>{l.value&&ar&&c()});xn(u)}return xn(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,Sl=ar?window.document:void 0;function uu(e){var t;const n=ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function fr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,h,d,g)=>(u.addEventListener(h,d,g),()=>u.removeEventListener(h,d,g)),a=Ve(()=>[uu(t),ht(i)],([u,h])=>{if(l(),!u)return;const d=nu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(k=>o(u,g,k,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return xn(c),c}function fu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=W(!1),l=r?1e3/r:null;let o=0,a=null;function c(d){if(!s.value||!i)return;o||(o=d);const g=d-o;if(l&&g<l){a=i.requestAnimationFrame(c);return}o=d,e({delta:g,timestamp:d}),a=i.requestAnimationFrame(c)}function u(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(c))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&u(),xn(h),{isActive:un(s),pause:h,resume:u}}const hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",hu=du();function du(){return dr in hr||(hr[dr]=hr[dr]||{}),hr[dr]}function pu(e,t){return hu[e]||t}function gu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const mu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Rl="vueuse-storage";function Jt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=ur,eventFilter:d,onError:g=Z=>{console.error(Z)},initOnMounted:k}=r,v=(u?ya:W)(typeof t=="function"?t():t);if(!n)try{n=pu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return v;const $=ht(t),b=gu($),C=(i=r.serializer)!=null?i:mu[b],{pause:N,resume:E}=ou(v,()=>K(v.value),{flush:s,deep:l,eventFilter:d});h&&o&&fi(()=>{n instanceof Storage?fr(h,"storage",G):fr(h,Rl,Ie),k&&G()}),k||G();function j(Z,re){if(h){const me={key:e,oldValue:Z,newValue:re,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",me):new CustomEvent(Rl,{detail:me}))}}function K(Z){try{const re=n.getItem(e);if(Z==null)j(re,null),n.removeItem(e);else{const me=C.write(Z);re!==me&&(n.setItem(e,me),j(re,me))}}catch(re){g(re)}}function z(Z){const re=Z?Z.newValue:n.getItem(e);if(re==null)return a&&$!=null&&n.setItem(e,C.write($)),$;if(!Z&&c){const me=C.read(re);return typeof c=="function"?c(me,$):b==="object"&&!Array.isArray(me)?{...$,...me}:me}else return typeof re!="string"?re:C.read(re)}function G(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){v.value=$;return}if(!(Z&&Z.key!==e)){N();try{(Z==null?void 0:Z.newValue)!==C.write(v.value)&&(v.value=z(Z))}catch(re){g(re)}finally{Z?qt(E):E()}}}}function Ie(Z){G(Z.detail)}return v}function vu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?fu(i,{immediate:!0}):cu(i,n,{immediate:!0});return t?{now:r,...s}:r}function bu(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=Sl,attrs:d={}}=n,g=W(null);let k=null;const v=C=>new Promise((N,E)=>{const j=G=>(g.value=G,N(G),G);if(!h){N(!1);return}let K=!1,z=h.querySelector(`script[src="${ht(e)}"]`);z?z.hasAttribute("data-loaded")&&j(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=ht(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([G,Ie])=>z==null?void 0:z.setAttribute(G,Ie)),K=!0),z.addEventListener("error",G=>E(G)),z.addEventListener("abort",G=>E(G)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),j(z)}),K&&(z=h.head.appendChild(z)),C||j(z)}),$=(C=!0)=>(k||(k=v(C)),k),b=()=>{if(!h)return;k=null,g.value&&(g.value=null);const C=h.querySelector(`script[src="${ht(e)}"]`);C&&h.head.removeChild(C)};return r&&!i&&fi($),i||au(b),{scriptTag:g,load:$,unload:b}}let yu=0;function wu(e,t={}){const n=W(!1),{document:r=Sl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++yu}`}=t,o=W(e);let a=()=>{};const c=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Ve(o,d=>{h.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&fi(c),s||xn(u),{id:l,css:o,unload:u,load:c,isLoaded:un(n)}}const ku=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),xu=e=>{const t=Jt("WALINE_EMOJI",{}),n=ku(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Al=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,_u=e=>Promise.all(e.map(t=>Ft(t)?xu(Ji(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:i,icon:Al(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Al(u,s,o,a),h})})}),n}),El=e=>{e.name!=="AbortError"&&console.error(e.message)},hi=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Cu=e=>e.type.includes("image"),Tl=e=>{const t=Array.from(e).find(Cu);return t?t.getAsFile():null};function di(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Pt=di();function Ll(e){Pt=e}const _n={exec:()=>null};function ae(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Le.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Le={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},$u=/^(?:[ \t]*(?:\n|$))+/,Su=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ru=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Au=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Il=/(?:[*+-]|\d{1,9}[.)])/,Ml=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Il).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Eu=/^[^\n]+/,gi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tu=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Il).getRegex(),pr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Iu=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ol=ae(pi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),Mu=ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ol).getRegex(),vi={blockquote:Mu,code:Su,def:Tu,fences:Ru,heading:Au,hr:Cn,html:Iu,lheading:Ml,list:Lu,newline:$u,paragraph:Ol,table:_n,text:Eu},Pl=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),Ou={...vi,table:Pl,paragraph:ae(pi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex()},Pu={...vi,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(pi).replace("hr",Cn).replace("heading",` *#{1,6} *[^
|
|
27
|
+
]`).replace("lheading",Ml).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},jl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ju=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zl=/^( {2,}|\\)\n(?!\s*$)/,zu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$n=new RegExp("\\p{P}\\p{S}","u"),Fu=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,$n).getRegex(),Du=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Hu=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$n).getRegex(),Nu=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$n).getRegex(),Uu=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$n).getRegex(),Bu=ae(/\\([punct])/,"gu").replace(/punct/g,$n).getRegex(),Vu=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wu=ae(mi).replace("(?:-->|$)","-->").getRegex(),qu=ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ku=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",gi).getRegex(),Dl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),Gu=ae("reflink|nolink(?!\\()","g").replace("reflink",Fl).replace("nolink",Dl).getRegex(),bi={_backpedal:_n,anyPunctuation:Bu,autolink:Vu,blockSkip:Du,br:zl,code:ju,del:_n,emStrongLDelim:Hu,emStrongRDelimAst:Nu,emStrongRDelimUnd:Uu,escape:jl,link:Ku,nolink:Dl,punctuation:Fu,reflink:Fl,reflinkSearch:Gu,tag:qu,text:zu,url:_n},Zu={...bi,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},yi={...bi,escape:ae(jl).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ju={...yi,br:ae(zl).replace("{2,}","*").getRegex(),text:ae(yi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mr={normal:vi,gfm:Ou,pedantic:Pu},Sn={normal:bi,gfm:yi,breaks:Ju,pedantic:Zu},Yu={"&":"&","<":"<",">":">",'"':""","'":"'"},Hl=e=>Yu[e];function nt(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,Hl)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,Hl);return e}function Nl(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Ul(e,t){var s;const n=e.replace(Le.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Le.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Le.slashPipe,"|");return r}function Rn(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Qu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Bl(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function Xu(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
|
|
28
|
+
`).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
|
|
29
|
+
`)}class vr{options;rules;lexer;constructor(t){this.options=t||Pt}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Rn(r,`
|
|
30
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Xu(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=Rn(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Rn(n[0],`
|
|
31
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Rn(n[0],`
|
|
31
32
|
`).split(`
|
|
32
|
-
`),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let
|
|
33
|
-
`),h=
|
|
34
|
-
$1`).replace(
|
|
35
|
-
${
|
|
36
|
-
${h}`:h;const
|
|
33
|
+
`),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),o=!0;else if(!o)a.push(r[c]);else break;r=r.slice(c);const u=a.join(`
|
|
34
|
+
`),h=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
35
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
36
|
+
${u}`:u,s=s?`${s}
|
|
37
|
+
${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=d,r.length===0)break;const g=l.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const k=g,v=k.raw+`
|
|
37
38
|
`+r.join(`
|
|
38
|
-
`)
|
|
39
|
+
`),$=this.blockquote(v);l[l.length-1]=$,i=i.substring(0,i.length-k.raw.length)+$.raw,s=s.substring(0,s.length-k.text.length)+$.text;break}else if((g==null?void 0:g.type)==="list"){const k=g,v=k.raw+`
|
|
39
40
|
`+r.join(`
|
|
40
|
-
`)
|
|
41
|
-
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=
|
|
42
|
-
`,1)[0].replace(
|
|
43
|
-
`,1)[0],
|
|
44
|
-
`,t=t.substring(
|
|
45
|
-
`,1)[0];let
|
|
46
|
-
`+
|
|
47
|
-
`+
|
|
48
|
-
`,t=t.substring(
|
|
49
|
-
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const
|
|
50
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
`+
|
|
55
|
-
`+
|
|
56
|
-
`+
|
|
57
|
-
`+
|
|
58
|
-
`+
|
|
59
|
-
`+
|
|
60
|
-
`+i.raw,s.text
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`:"<pre><code>"+(r?s:Ue(s,!0))+`</code></pre>
|
|
41
|
+
`),$=this.list(v);l[l.length-1]=$,i=i.substring(0,i.length-g.raw.length)+$.raw,s=s.substring(0,s.length-k.raw.length)+$.raw,r=v.substring(l.at(-1).raw.length).split(`
|
|
42
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let c=!1,u="",h="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(`
|
|
43
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),g=t.split(`
|
|
44
|
+
`,1)[0],k=!d.trim(),v=0;if(this.options.pedantic?(v=2,h=d.trimStart()):k?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=d.slice(v),v+=n[1].length),k&&this.rules.other.blankLine.test(g)&&(u+=g+`
|
|
45
|
+
`,t=t.substring(g.length+1),c=!0),!c){const C=this.rules.other.nextBulletRegex(v),N=this.rules.other.hrRegex(v),E=this.rules.other.fencesBeginRegex(v),j=this.rules.other.headingBeginRegex(v),K=this.rules.other.htmlBeginRegex(v);for(;t;){const z=t.split(`
|
|
46
|
+
`,1)[0];let G;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),G=g):G=g.replace(this.rules.other.tabCharGlobal," "),E.test(g)||j.test(g)||K.test(g)||C.test(g)||N.test(g))break;if(G.search(this.rules.other.nonSpaceChar)>=v||!g.trim())h+=`
|
|
47
|
+
`+G.slice(v);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(d)||j.test(d)||N.test(d))break;h+=`
|
|
48
|
+
`+g}!k&&!g.trim()&&(k=!0),u+=z+`
|
|
49
|
+
`,t=t.substring(z.length+1),d=G.slice(v)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let $=null,b;this.options.gfm&&($=this.rules.other.listIsTask.exec(h),$&&(b=$[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!$,checked:b,loose:!1,text:h,tokens:[]}),s.raw+=u}const a=s.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Ul(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
50
|
+
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of s)l.rows.push(Ul(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
51
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=Rn(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Qu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Bl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Bl(r,s,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,c=l,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...i[0]][0].length,g=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const k=g.slice(2,-2);return{type:"strong",raw:g,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Ge{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Pt,this.options.tokenizer=this.options.tokenizer||new vr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Le,block:mr.normal,inline:Sn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Sn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Sn.breaks:n.inline=Sn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Sn}}static lex(t,n){return new Ge(n).lex(t)}static lexInline(t,n){return new Ge(n).inlineTokens(t)}lex(t){t=t.replace(Le.carriageReturn,`
|
|
52
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Le.tabCharGlobal," ").replace(Le.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
|
53
|
+
`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
|
|
54
|
+
`+o.raw,c.text+=`
|
|
55
|
+
`+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
|
|
56
|
+
`+o.raw,c.text+=`
|
|
57
|
+
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0;const u=t.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
|
|
58
|
+
`+o.raw,c.text+=`
|
|
59
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
|
|
60
|
+
`+o.raw,c.text+=`
|
|
61
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const g=t.slice(1);let k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},g),typeof k=="number"&&k>=0&&(d=Math.min(d,k))}),d<1/0&&d>=0&&(h=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class br{options;parser;constructor(t){this.options=t||Pt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Le.notSpaceStart))==null?void 0:l[0],s=t.replace(Le.endingNewline,"")+`
|
|
62
|
+
`;return i?'<pre><code class="language-'+nt(i)+'">'+(r?s:nt(s,!0))+`</code></pre>
|
|
63
|
+
`:"<pre><code>"+(r?s:nt(s,!0))+`</code></pre>
|
|
64
64
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
65
65
|
${this.parser.parse(t)}</blockquote>
|
|
66
66
|
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
67
67
|
`}hr(t){return`<hr>
|
|
68
68
|
`}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o<t.items.length;o++){const a=t.items[o];i+=this.listitem(a)}const s=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+s+l+`>
|
|
69
69
|
`+i+"</"+s+`>
|
|
70
|
-
`}listitem(t){let n="";if(t.task){const
|
|
70
|
+
`}listitem(t){var r;let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+nt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
71
71
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
72
72
|
`}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<t.rows.length;s++){const l=t.rows[s];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
73
73
|
<thead>
|
|
@@ -76,9 +76,9 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
76
76
|
`}tablerow({text:t}){return`<tr>
|
|
77
77
|
${t}</tr>
|
|
78
78
|
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
79
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=
|
|
80
|
-
`+this.renderer.text(
|
|
81
|
-
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+
|
|
82
|
-
</code></pre>`}}}}function co(e){return(e||"").match(/\S*/)[0]}function uo(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const fo=/[&<>"']/,Tf=new RegExp(fo.source,"g"),ho=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Af=new RegExp(ho.source,"g"),Rf={"&":"&","<":"<",">":">",'"':""","'":"'"},po=e=>Rf[e];function go(e,t){if(t){if(fo.test(e))return e.replace(Tf,po)}else if(ho.test(e))return e.replace(Af,po);return e}const If=/\$.*?\$/,Lf=/^\$(.*?)\$/,Mf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Of=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Mf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(If);return n!==-1?n:t.length},tokenizer(t){const n=Lf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],mo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),jf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new ao;if(i.setOptions({breaks:!0}),n&&i.use(Ef({highlight:n})),r){const s=Of(r);i.use({extensions:s})}return i.parse(mo(e,t))},Ii=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},zf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Pf=e=>e.match(/[\u4E00-\u9FD5]/gu),Ff=e=>{var t,n;return(((t=zf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=Pf(e))==null?void 0:n.length)??0)},Df=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},vo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Hi({serverURL:Fn(e),paths:Array.from(s).map(l=>ss(Ii(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Wl),i.abort.bind(i)},bo=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Hf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Uf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Nf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Vf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Wf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),qf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Kf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Gf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),Rn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Zf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Qf=()=>Qt("WALINE_USER_META",{nick:"",mail:"",link:""}),Jf=()=>Qt("WALINE_COMMENT_BOX_EDITOR",""),Yf="WALINE_LIKE";let yo=null;const wo=()=>yo??(yo=Qt(Yf,[])),Xf="WALINE_REACTION";let xo=null;const eh=()=>xo??(xo=Qt(Xf,{}));var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ko={},Yt={},In={},th=Jt&&Jt.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(c){try{u(r.next(c))}catch(h){l(h)}}function a(c){try{u(r.throw(c))}catch(h){l(h)}}function u(c){c.done?s(c.value):i(c.value).then(o,a)}u((r=r.apply(e,t||[])).next())})},nh=Jt&&Jt.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(In,"__esModule",{value:!0}),In.ReCaptchaInstance=void 0;var rh=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return th(this,void 0,void 0,function(){var n;return nh(this,function(r){switch(r.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:t})]:[3,2];case 1:return n=r.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:t})];case 3:n=r.sent(),r.label=4;case 4:return[2,n]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();In.ReCaptchaInstance=rh;var Li=Jt&&Jt.__assign||function(){return Li=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Li.apply(this,arguments)};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.getInstance=Yt.load=void 0;var ih=In,yt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(yt||(yt={}));var _o=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===yt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===yt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,s){e.successfulLoadingConsumers.push(function(l){return i(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(yt.LOADING);var r=new e;return new Promise(function(i,s){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(yt.LOADED);var l=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new ih.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,i(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?yt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,s){var l=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),s===void 0&&(s="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script",""),o.setAttribute("async",""),o.setAttribute("defer","");var a="https://www.google.com/recaptcha/api.js";n?r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js":r&&(a="https://www.google.com/recaptcha/enterprise.js"),s&&(a=s),i.render&&(i.render=void 0);var u=this.buildQueryString(i);return o.src=a+"?render=explicit"+u,new Promise(function(c,h){o.addEventListener("load",l.waitForScriptToLoad(function(){c(o)},r),!1),o.onerror=function(p){e.setLoadingState(yt.NOT_LOADED),h(p)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,i){var s=Li({sitekey:n},r);return r.container?i?t.enterprise.render(r.container,s):t.render(r.container,s):i?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Yt.load=_o.load,Yt.getInstance=_o.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Yt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=In;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(ko);const $o={},sh=e=>{const t=$o[e]??($o[e]=ko.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},lh=e=>({execute:async t=>{const{load:n}=Uu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),oh="WALINE_USER";let Co=null;const $r=()=>Co??(Co=Qt(oh,{})),ah={key:0,class:"wl-reaction"},ch=["textContent"],uh={class:"wl-reaction-list"},fh=["onClick"],hh={class:"wl-reaction-img"},dh=["src","alt"],ph=["textContent"],gh=["textContent"];var mh=pn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=eh(),r=rr("config"),i=q(-1),s=q([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=r.value;return p.map((w,k)=>({icon:w,desc:l.value[`reaction${k}`],active:n.value[m]===k}))});let u;const c=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:w,reaction:k}=r.value,C=new AbortController;u=C.abort.bind(C);const v=await Sr({serverURL:p,lang:m,paths:[w],type:k.map(($,U)=>`reaction${U}`),signal:C.signal});s.value=k.map(($,U)=>v[0][`reaction${U}`])},h=async p=>{if(i.value===-1){const{serverURL:m,lang:w,path:k}=r.value,C=n.value[k];i.value=p,C!==void 0&&(await zn({serverURL:m,lang:w,path:k,type:`reaction${C}`,action:"desc"}),s.value[C]=Math.max(s.value[C]-1,0)),C!==p&&(await zn({serverURL:m,lang:w,path:k,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),C===p?delete n.value[k]:n.value[k]=p,i.value=-1}};return mn(()=>{Ve(()=>[r.value.serverURL,r.value.path],()=>{c()},{immediate:!0})}),si(()=>u==null?void 0:u()),(p,m)=>a.value.length?(L(),z("div",ah,[D("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,ch),D("ul",uh,[(L(!0),z(he,null,Ne(a.value,({active:w,icon:k,desc:C},v)=>(L(),z("li",{key:v,class:ve(["wl-reaction-item",{active:w}]),onClick:$=>h(v)},[D("div",hh,[D("img",{src:k,alt:C},null,8,dh),i.value===v?(L(),at(K(Rn),{key:0,class:"wl-reaction-loading"})):(L(),z("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[v]||0)},null,8,ph))]),D("div",{class:"wl-reaction-text",textContent:X(C)},null,8,gh)],10,fh))),128))])])):J("v-if",!0)}}),Ln=new Map;function vh(e){var t=Ln.get(e);t&&t.destroy()}function bh(e){var t=Ln.get(e);t&&t.update()}var Mn=null;typeof window>"u"?((Mn=function(e){return e}).destroy=function(e){return e},Mn.update=function(e){return e}):((Mn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Ln.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){u({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",c),r.removeEventListener("input",o),window.removeEventListener("resize",c),Object.keys(h).forEach(function(p){return r.style[p]=h[p]}),Ln.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",c),r.addEventListener("input",o),window.addEventListener("resize",c),r.style.overflowX="hidden",r.style.wordWrap="break-word",Ln.set(r,{destroy:a,update:c}),c()}function u(h){var p,m,w=h.restoreTextAlign,k=w===void 0?null:w,C=h.testForHeightReduction,v=C===void 0||C,$=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),v&&(p=function(A){for(var j=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&j.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return j.forEach(function(W){var H=W[0],Y=W[1];H.style.scrollBehavior="auto",H.scrollTop=Y,H.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",k&&(r.style.textAlign=k),p&&p(),s!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!k)){var U=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=U==="start"?"end":"start"),u({restoreTextAlign:U,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],vh),e},Mn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],bh),e});var So=Mn;const yh=["data-index"],wh=["src","title","onClick"];var xh=pn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=q(null),s=q({}),l=q([]),o=()=>{const p=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),u=async p=>{var m;if(p>=n.items.length)return;await qt();const w=Array.from(((m=i.value)==null?void 0:m.children)??[]).reduce((k,C)=>C.getBoundingClientRect().height<k.getBoundingClientRect().height?C:k);l.value[Number(w.dataset.index)].push(p),await u(p+1)},c=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await u(0),window.scrollTo({top:m})},h=p=>{s.value[p.target.src]=!0};return mn(()=>{c(!0),r=new ResizeObserver(()=>{c()}),r.observe(i.value),Ve(()=>[n.items],()=>{s.value={},c(!0)}),Ve(()=>[n.columnWidth,n.gap],()=>{c()})}),Xa(()=>r.unobserve(i.value)),(p,m)=>(L(),z("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:rn({gap:`${p.gap}px`})},[(L(!0),z(he,null,Ne(l.value,(w,k)=>(L(),z("div",{key:k,class:"wl-gallery-column","data-index":k,style:rn({gap:`${p.gap}px`})},[(L(!0),z(he,null,Ne(w,C=>(L(),z(he,{key:C},[s.value[p.items[C].src]?J("v-if",!0):(L(),at(K(Rn),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:p.items[C].src,title:p.items[C].title,loading:"lazy",onLoad:h,onClick:v=>p.$emit("insert",``)},null,40,wh)],64))),128))],12,yh))),128))],4))}});const kh={key:0,class:"wl-login-info"},_h={class:"wl-avatar"},$h=["title"],Ch=["title"],Sh=["src"],Eh=["title","textContent"],Th={class:"wl-panel"},Ah=["for","textContent"],Rh=["id","onUpdate:modelValue","name","type"],Ih=["placeholder"],Lh={class:"wl-preview"},Mh=["innerHTML"],Oh={class:"wl-footer"},jh={class:"wl-actions"},zh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Ph=["title"],Fh=["title"],Dh=["title","aria-label"],Hh=["title"],Uh={class:"wl-info"},Nh={class:"wl-text-number"},Vh={key:0},Bh=["textContent"],Wh=["textContent"],qh=["disabled"],Kh=["placeholder"],Gh={key:1,class:"wl-loading"},Zh={key:0,class:"wl-tab-wrapper"},Qh=["title","onClick"],Jh=["src","alt"],Yh={key:0,class:"wl-tabs"},Xh=["onClick"],ed=["src","alt","title"],td=["title"];var Eo=pn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=rr("config"),s=Jf(),l=Qf(),o=$r(),a=q({}),u=q(null),c=q(null),h=q(null),p=q(null),m=q(null),w=q(null),k=q(null),C=q({tabs:[],map:{}}),v=q(0),$=q(!1),U=q(!1),A=q(!1),j=q(""),W=q(0),H=cn({loading:!0,list:[]}),Y=q(0),Me=q(!1),G=q(""),re=q(!1),me=q(!1),P=_e(()=>i.value.locale),Q=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),le=_e(()=>i.value.imageUploader!==!1),xe=O=>{const T=u.value,N=T.selectionStart,de=T.selectionEnd||0,f=T.scrollTop;s.value=T.value.substring(0,N)+O+T.value.substring(de,T.value.length),T.focus(),T.selectionStart=N+O.length,T.selectionEnd=N+O.length,T.scrollTop=f},be=O=>{if(re.value)return;const T=O.key;(O.ctrlKey||O.metaKey)&&T==="Enter"&&je()},ye=O=>{const T=`![${i.value.locale.uploading} ${O.name}]()`;return xe(T),re.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(N=>{s.value=s.value.replace(T,`\r
|
|
83
|
-
`)}).catch(N=>{alert(N.message),s.value=s.value.replace(T,"")}).then(()=>{re.value=!1})},Ee=O=>{var T;if((T=O.dataTransfer)!=null&&T.items){const N=ql(O.dataTransfer.items);N&&le.value&&(ye(N),O.preventDefault())}},dt=O=>{if(O.clipboardData){const T=ql(O.clipboardData.items);T&&le.value&&ye(T)}},wt=()=>{const O=c.value;O.files&&le.value&&ye(O.files[0]).then(()=>{O.value=""})},je=async()=>{var O,T,N,de,f,d;const{serverURL:g,lang:y,login:b,wordLimit:x,requiredMeta:R,recaptchaV3Key:E,turnstileKey:S}=i.value,_=await Df(),M={comment:G.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(b==="force")return;if(R.includes("nick")&&!M.nick)return(T=a.value.nick)==null||T.focus(),alert(P.value.nickError);if(R.includes("mail")&&!M.mail||M.mail&&!ea(M.mail))return(N=a.value.mail)==null||N.focus(),alert(P.value.mailError);M.nick||(M.nick=P.value.anonymous)}if(!M.comment){(de=u.value)==null||de.focus();return}if(!Me.value)return alert(P.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",W.value.toString()));M.comment=mo(M.comment,C.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),re.value=!0;try{E&&(M.recaptchaV3=await sh(E).execute("social")),S&&(M.turnstile=await lh(S).execute("social"));const I={serverURL:g,lang:y,token:(f=o.value)==null?void 0:f.token,comment:M},F=await(n.edit?en({objectId:n.edit.objectId,...I}):Fi(I));if(re.value=!1,F.errmsg)return alert(F.errmsg);r("submit",F.data),s.value="",j.value="",await qt(),n.replyId&&r("cancelReply"),(d=n.edit)!=null&&d.objectId&&r("cancelEdit")}catch(I){re.value=!1,alert(I.message)}},On=O=>{O.preventDefault();const{lang:T,serverURL:N}=i.value;Ui({serverURL:N,lang:T}).then(de=>{o.value=de,(de.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(de)),r("log")})},Cr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},jn=O=>{O.preventDefault();const{lang:T,serverURL:N}=i.value,de=800,f=800,d=(window.innerWidth-de)/2,g=(window.innerHeight-f)/2,y=new URLSearchParams({lng:T,token:o.value.token}),b=window.open(`${N}/ui/profile?${y.toString()}`,"_blank",`width=${de},height=${f},left=${d},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);b==null||b.postMessage({type:"TOKEN",data:o.value.token},"*")},xt=O=>{var T,N,de,f;!((T=h.value)!=null&&T.contains(O.target))&&!((N=p.value)!=null&&N.contains(O.target))&&($.value=!1),!((de=m.value)!=null&&de.contains(O.target))&&!((f=w.value)!=null&&f.contains(O.target))&&(U.value=!1)},kt=async O=>{var T;const{scrollTop:N,clientHeight:de,scrollHeight:f}=O.target,d=(de+N)/f,g=i.value.search,y=((T=k.value)==null?void 0:T.value)??"";d<.9||H.loading||me.value||(H.loading=!0,(g.more&&H.list.length?await g.more(y,H.list.length):await g.search(y)).length?H.list=[...H.list,...g.more&&H.list.length?await g.more(y,H.list.length):await g.search(y)]:me.value=!0,H.loading=!1,setTimeout(()=>{O.target.scrollTop=N},50))},Pt=Tu(O=>{H.list=[],me.value=!1,kt(O)},300);return Ve([i,W],([O,T])=>{const{wordLimit:N}=O;N?T<N[0]&&N[0]!==0?(Y.value=N[0],Me.value=!1):T>N[1]?(Y.value=N[1],Me.value=!1):(Y.value=N[1],Me.value=!0):(Y.value=0,Me.value=!0)},{immediate:!0}),mr("click",xt),mr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(T=>T.getItem("WALINE_USER")).forEach(T=>T.setItem("WALINE_USER",JSON.stringify(o))))}),Ve(U,async O=>{var T;if(!O)return;const N=i.value.search;k.value&&(k.value.value=""),H.loading=!0,H.list=await(((T=N.default)==null?void 0:T.call(N))??N.search("")),H.loading=!1}),mn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ve(()=>s.value,T=>{const{highlighter:N,texRenderer:de}=i.value;G.value=T,j.value=jf(T,{emojiMap:C.value.map,highlighter:N,texRenderer:de}),W.value=Ff(T),T?So(u.value):So.destroy(u.value)},{immediate:!0}),Ve(()=>i.value.emoji,T=>qu(T).then(N=>{C.value=N}),{immediate:!0})}),(O,T)=>{var N,de;return L(),z("div",{key:K(o).token,class:"wl-comment"},[K(i).login!=="disable"&&Q.value&&!((N=O.edit)!=null&&N.objectId)?(L(),z("div",kh,[D("div",_h,[D("button",{type:"submit",class:"wl-logout-btn",title:P.value.logout,onClick:Cr},[oe(K(bo),{size:14})],8,$h),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:jn},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,Sh)],8,Ch)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:jn,textContent:X(K(o).display_name)},null,8,Eh)])):J("v-if",!0),D("div",Th,[K(i).login!=="force"&&K(i).meta.length&&!Q.value?(L(),z("div",{key:0,class:ve(["wl-header",`item${K(i).meta.length}`])},[(L(!0),z(he,null,Ne(K(i).meta,f=>(L(),z("div",{key:f,class:"wl-header-item"},[D("label",{for:`wl-${f}`,textContent:X(P.value[f]+(K(i).requiredMeta.includes(f)||!K(i).requiredMeta.length?"":`(${P.value.optional})`))},null,8,Ah),tr(D("input",{id:`wl-${f}`,ref_for:!0,ref:d=>{d&&(a.value[f]=d)},"onUpdate:modelValue":d=>K(l)[f]=d,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,Rh),[[vu,K(l)[f]]])]))),128))],2)):J("v-if",!0),tr(D("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":T[0]||(T[0]=f=>ke(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:P.value.placeholder,onKeydown:be,onDrop:Ee,onPaste:dt},null,40,Ih),[[wi,K(s)]]),tr(D("div",Lh,[T[7]||(T[7]=D("hr",null,null,-1)),D("h4",null,X(P.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:j.value},null,8,Mh)],512),[[Sl,A.value]]),D("div",Oh,[D("div",jh,[D("a",zh,[oe(K(Wf))]),tr(D("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:$.value}]),title:P.value.emoji,onClick:T[1]||(T[1]=f=>$.value=!$.value)},[oe(K(Uf))],10,Ph),[[Sl,C.value.tabs.length]]),K(i).search?(L(),z("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ve(["wl-action",{active:U.value}]),title:P.value.gif,onClick:T[2]||(T[2]=f=>U.value=!U.value)},[oe(K(Zf))],10,Fh)):J("v-if",!0),D("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:c,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:wt},null,544),le.value?(L(),z("label",{key:1,for:"wl-image-upload",class:"wl-action",title:P.value.uploadImage,"aria-label":P.value.uploadImage},[oe(K(Nf))],8,Dh)):J("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:A.value}]),title:P.value.preview,onClick:T[3]||(T[3]=f=>A.value=!A.value)},[oe(K(Bf))],10,Hh)]),D("div",Uh,[T[9]||(T[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Nh,[ct(X(W.value)+" ",1),K(i).wordLimit?(L(),z("span",Vh,[T[8]||(T[8]=ct(" / ")),D("span",{class:ve({illegal:!Me.value}),textContent:X(Y.value)},null,10,Bh)])):J("v-if",!0),ct(" "+X(P.value.word),1)]),K(i).login!=="disable"&&!Q.value?(L(),z("button",{key:0,type:"button",class:"wl-btn",onClick:On,textContent:X(P.value.login)},null,8,Wh)):J("v-if",!0),K(i).login!=="force"||Q.value?(L(),z("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:re.value,onClick:je},[re.value?(L(),at(K(Rn),{key:0,size:16})):(L(),z(he,{key:1},[ct(X(P.value.submit),1)],64))],8,qh)):J("v-if",!0)]),D("div",{ref_key:"gifPopupRef",ref:w,class:ve(["wl-gif-popup",{display:U.value}])},[D("input",{ref_key:"gifSearchInputRef",ref:k,type:"text",placeholder:P.value.gifSearchPlaceholder,onInput:T[4]||(T[4]=(...f)=>K(Pt)&&K(Pt)(...f))},null,40,Kh),H.list.length?(L(),at(xh,{key:0,items:H.list,"column-width":200,gap:6,onInsert:T[5]||(T[5]=f=>xe(f)),onScroll:kt},null,8,["items"])):J("v-if",!0),H.loading?(L(),z("div",Gh,[oe(K(Rn),{size:30})])):J("v-if",!0)],2),D("div",{ref_key:"emojiPopupRef",ref:p,class:ve(["wl-emoji-popup",{display:$.value}])},[(L(!0),z(he,null,Ne(C.value.tabs,(f,d)=>(L(),z(he,{key:f.name},[d===v.value?(L(),z("div",Zh,[(L(!0),z(he,null,Ne(f.items,g=>(L(),z("button",{key:g,type:"button",title:g,onClick:y=>xe(`:${g}:`)},[$.value?(L(),z("img",{key:0,class:"wl-emoji",src:C.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Jh)):J("v-if",!0)],8,Qh))),128))])):J("v-if",!0)],64))),128)),C.value.tabs.length>1?(L(),z("div",Yh,[(L(!0),z(he,null,Ne(C.value.tabs,(f,d)=>(L(),z("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:v.value===d}]),onClick:g=>v.value=d},[D("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ed)],10,Xh))),128))])):J("v-if",!0)],2)])]),O.replyId||(de=O.edit)!=null&&de.objectId?(L(),z("button",{key:1,type:"button",class:"wl-close",title:P.value.cancelReply,onClick:T[6]||(T[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(K(bo),{size:24})],8,td)):J("v-if",!0)])}}});const nd=["id"],rd={class:"wl-user","aria-hidden":"true"},id=["src"],sd={class:"wl-card"},ld={class:"wl-head"},od=["href"],ad={key:1,class:"wl-nick"},cd=["textContent"],ud=["textContent"],fd=["textContent"],hd=["textContent"],dd=["textContent"],pd={class:"wl-comment-actions"},gd=["title"],md=["title"],vd={class:"wl-meta","aria-hidden":"true"},bd=["data-value","textContent"],yd={key:0,class:"wl-content"},wd={key:0},xd=["href"],kd=["innerHTML"],_d={key:1,class:"wl-admin-actions"},$d={class:"wl-comment-status"},Cd=["disabled","onClick","textContent"],Sd={key:3,class:"wl-quote"};var Ed=pn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=rr("config"),l=wo(),o=Hu(),a=$r(),u=_e(()=>s.value.locale),c=_e(()=>{const{link:v}=n.comment;return v?os(v)?v:`https://${v}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),p=_e(()=>Yo(new Date(n.comment.time),o.value,u.value)),m=_e(()=>a.value.type==="administrator"),w=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=_e(()=>{var v;return n.comment.objectId===((v=n.reply)==null?void 0:v.objectId)}),C=_e(()=>{var v;return n.comment.objectId===((v=n.edit)==null?void 0:v.objectId)});return(v,$)=>{var U;const A=tc("CommentCard",!0);return L(),z("div",{id:v.comment.objectId,class:"wl-card-item"},[D("div",rd,[v.comment.avatar?(L(),z("img",{key:0,class:"wl-user-avatar",src:v.comment.avatar,alt:""},null,8,id)):J("v-if",!0),v.comment.type?(L(),at(K(Gf),{key:1})):J("v-if",!0)]),D("div",sd,[D("div",ld,[c.value?(L(),z("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(v.comment.nick),9,od)):(L(),z("span",ad,X(v.comment.nick),1)),v.comment.type==="administrator"?(L(),z("span",{key:2,class:"wl-badge",textContent:X(u.value.admin)},null,8,cd)):J("v-if",!0),v.comment.label?(L(),z("span",{key:3,class:"wl-badge",textContent:X(v.comment.label)},null,8,ud)):J("v-if",!0),v.comment.sticky?(L(),z("span",{key:4,class:"wl-badge",textContent:X(u.value.sticky)},null,8,fd)):J("v-if",!0),typeof v.comment.level=="number"?(L(),z("span",{key:5,class:ve(`wl-badge level${v.comment.level}`),textContent:X(u.value[`level${v.comment.level}`]||`Level ${v.comment.level}`)},null,10,hd)):J("v-if",!0),D("span",{class:"wl-time",textContent:X(p.value)},null,8,dd),D("div",pd,[m.value||w.value?(L(),z(he,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=j=>r("edit",v.comment))},[oe(K(Kf))]),D("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=j=>r("delete",v.comment))},[oe(K(Hf))])],64)):J("v-if",!0),D("button",{type:"button",class:"wl-like",title:h.value?u.value.cancelLike:u.value.like,onClick:$[2]||($[2]=j=>r("like",v.comment))},[oe(K(Vf),{active:h.value},null,8,["active"]),ct(" "+X("like"in v.comment?v.comment.like:""),1)],8,gd),D("button",{type:"button",class:ve(["wl-reply",{active:k.value}]),title:k.value?u.value.cancelReply:u.value.reply,onClick:$[3]||($[3]=j=>r("reply",k.value?null:v.comment))},[oe(K(qf))],10,md)])]),D("div",vd,[(L(),z(he,null,Ne(["addr","browser","os"],j=>(L(),z(he,null,[v.comment[j]?(L(),z("span",{key:j,class:ve(`wl-${j}`),"data-value":v.comment[j],textContent:X(v.comment[j])},null,10,bd)):J("v-if",!0)],64))),64))]),C.value?J("v-if",!0):(L(),z("div",yd,[v.comment.reply_user?(L(),z("p",wd,[D("a",{href:"#"+v.comment.pid},"@"+X(v.comment.reply_user.nick),9,xd),$[17]||($[17]=D("span",null,": ",-1))])):J("v-if",!0),D("div",{innerHTML:v.comment.comment},null,8,kd)])),m.value&&!C.value?(L(),z("div",_d,[D("span",$d,[(L(),z(he,null,Ne(i,j=>D("button",{key:j,type:"submit",class:ve(`wl-btn wl-${j}`),disabled:v.comment.status===j,onClick:W=>r("status",{status:j,comment:v.comment}),textContent:X(u.value[j])},null,10,Cd)),64))]),m.value&&!("rid"in v.comment)?(L(),z("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=j=>r("sticky",v.comment))},X(v.comment.sticky?u.value.unsticky:u.value.sticky),1)):J("v-if",!0)])):J("v-if",!0),k.value||C.value?(L(),z("div",{key:2,class:ve({"wl-reply-wrapper":k.value,"wl-edit-wrapper":C.value})},[oe(Eo,{edit:v.edit,"reply-id":(U=v.reply)==null?void 0:U.objectId,"reply-user":v.comment.nick,"root-id":v.rootId,onLog:$[5]||($[5]=j=>r("log")),onCancelReply:$[6]||($[6]=j=>r("reply",null)),onCancelEdit:$[7]||($[7]=j=>r("edit",null)),onSubmit:$[8]||($[8]=j=>r("submit",j))},null,8,["edit","reply-id","reply-user","root-id"])],2)):J("v-if",!0),"children"in v.comment?(L(),z("div",Sd,[(L(!0),z(he,null,Ne(v.comment.children,j=>(L(),at(A,{key:j.objectId,comment:j,reply:v.reply,edit:v.edit,"root-id":v.rootId,onLog:$[9]||($[9]=W=>r("log")),onDelete:$[10]||($[10]=W=>r("delete",W)),onEdit:$[11]||($[11]=W=>r("edit",W)),onLike:$[12]||($[12]=W=>r("like",W)),onReply:$[13]||($[13]=W=>r("reply",W)),onStatus:$[14]||($[14]=W=>r("status",W)),onSticky:$[15]||($[15]=W=>r("sticky",W)),onSubmit:$[16]||($[16]=W=>r("submit",W))},null,8,["comment","reply","edit","root-id"]))),128))])):J("v-if",!0)])],8,nd)}}});const To="3.3.2",Td={"data-waline":""},Ad={class:"wl-meta-head"},Rd={class:"wl-count"},Id=["textContent"],Ld={class:"wl-sort"},Md=["onClick"],Od={class:"wl-cards"},jd={key:1,class:"wl-operation"},zd=["textContent"],Pd={key:2,class:"wl-loading"},Fd=["textContent"],Dd={key:4,class:"wl-operation"},Hd=["textContent"],Ud={key:5,class:"wl-power"};var Nd=pn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=$r(),s=wo(),l=q("loading"),o=q(0),a=q(1),u=q(0),c=_e(()=>Zo(t)),h=q(c.value.commentSorting),p=q([]),m=q(null),w=q(null),k=_e(()=>Qo(c.value.dark)),C=_e(()=>c.value.locale);Vu(k,{id:"waline-darkmode"});let v;const $=P=>{var Q;const{serverURL:le,path:xe,pageSize:be}=c.value,ye=new AbortController;l.value="loading",v==null||v(),Pi({serverURL:le,lang:c.value.lang,path:xe,pageSize:be,sortBy:n[h.value],page:P,signal:ye.signal,token:(Q=i.value)==null?void 0:Q.token}).then(Ee=>{l.value="success",o.value=Ee.count,p.value.push(...Ee.data),a.value=P,u.value=Ee.totalPages}).catch(Ee=>{Ee.name!=="AbortError"&&(console.error(Ee.message),l.value="error")}),v=ye.abort.bind(ye)},U=()=>$(a.value+1),A=()=>{o.value=0,p.value=[],$(1)},j=P=>{h.value!==P&&(h.value=P,A())},W=P=>{m.value=P},H=P=>{w.value=P},Y=P=>{if(w.value)w.value.comment=P.comment,w.value.orig=P.orig;else if("rid"in P){const Q=p.value.find(({objectId:le})=>le===P.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(P)}else p.value.unshift(P),o.value+=1},Me=async({comment:P,status:Q})=>{var le;if(P.status===Q)return;const{serverURL:xe,lang:be}=c.value;await en({serverURL:xe,lang:be,token:(le=i.value)==null?void 0:le.token,objectId:P.objectId,comment:{status:Q}}),P.status=Q},G=async P=>{var Q;if("rid"in P)return;const{serverURL:le,lang:xe}=c.value;await en({serverURL:le,lang:xe,token:(Q=i.value)==null?void 0:Q.token,objectId:P.objectId,comment:{sticky:P.sticky?0:1}}),P.sticky=!P.sticky},re=async({objectId:P})=>{var Q;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:le,lang:xe}=c.value;await Di({serverURL:le,lang:xe,token:(Q=i.value)==null?void 0:Q.token,objectId:P}),p.value.some((be,ye)=>be.objectId===P?(p.value=p.value.filter((Ee,dt)=>dt!==ye),!0):be.children.some((Ee,dt)=>Ee.objectId===P?(p.value[ye].children=be.children.filter((wt,je)=>je!==dt),!0):!1))},me=async P=>{var Q;const{serverURL:le,lang:xe}=c.value,{objectId:be}=P,ye=s.value.includes(be);await en({serverURL:le,lang:xe,objectId:be,token:(Q=i.value)==null?void 0:Q.token,comment:{like:!ye}}),ye?s.value=s.value.filter(Ee=>Ee!==be):(s.value=[...s.value,be],s.value.length>50&&(s.value=s.value.slice(-50))),P.like=(P.like||0)+(ye?-1:1)};return fc("config",c),mn(()=>{Ve(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),si(()=>v==null?void 0:v()),(P,Q)=>(L(),z("div",Td,[oe(mh),!m.value&&!w.value?(L(),at(Eo,{key:0,onLog:A,onSubmit:Y})):J("v-if",!0),D("div",Ad,[D("div",Rd,[o.value?(L(),z("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,Id)):J("v-if",!0),ct(" "+X(C.value.comment),1)]),D("ul",Ld,[(L(!0),z(he,null,Ne(K(r),le=>(L(),z("li",{key:le,class:ve([le===h.value?"active":""]),onClick:xe=>j(le)},X(C.value[le]),11,Md))),128))])]),D("div",Od,[(L(!0),z(he,null,Ne(p.value,le=>(L(),at(Ed,{key:le.objectId,"root-id":le.objectId,comment:le,reply:m.value,edit:w.value,onLog:A,onReply:W,onEdit:H,onSubmit:Y,onStatus:Me,onDelete:re,onSticky:G,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(L(),z("div",jd,[D("button",{type:"button",class:"wl-btn",onClick:A,textContent:X(C.value.refresh)},null,8,zd)])):l.value==="loading"?(L(),z("div",Pd,[oe(K(Rn),{size:30})])):p.value.length?a.value<u.value?(L(),z("div",Dd,[D("button",{type:"button",class:"wl-btn",onClick:U,textContent:X(C.value.more)},null,8,Hd)])):J("v-if",!0):(L(),z("div",{key:3,class:"wl-empty",textContent:X(C.value.sofa)},null,8,Fd)),c.value.copyright?(L(),z("div",Ud,[Q[0]||(Q[0]=ct(" Powered by ")),Q[1]||(Q[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ct(" v"+X(K(To)),1)])):J("v-if",!0)]))}});const Ao=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},Ro=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=u=>{const c=Ii(u);return c!==null&&t!==c},a=u=>Ni({serverURL:Fn(e),paths:u.map(c=>Ii(c)??t),lang:i,signal:s.signal}).then(c=>Ao(c,u)).catch(Wl);if(r){const u=l.filter(h=>!o(h)),c=l.filter(o);Vi({serverURL:Fn(e),path:t,lang:i}).then(h=>Ao(h,u)),c.length&&a(c)}else a(l);return s.abort.bind(s)},Vd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?ki(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=cn({...i}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&vo({serverURL:l.serverURL,path:o.path,...Ft(o.comment)?{selector:o.comment}:{}})},u=()=>{o.pageview&&Ro({serverURL:l.serverURL,path:o.path,...Ft(o.pageview)?{selector:o.pageview}:{}})},c=s?xu(()=>ne(Nd,{path:o.path,...l})):null;c&&c.mount(s);const h=ul(a),p=ul(u);return{el:s,update:({comment:m,pageview:w,path:k=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([v,$])=>{l[v]=$}),o.path=k,m!==void 0&&(o.comment=m),w!==void 0&&(o.pageview=w)},destroy:()=>{c==null||c.unmount(),h(),p()}}},Bd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=$r(),l=ki(e),o=new AbortController;return Bi({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(u=>`<li class="wl-recent-item"><a href="${u.url}">${u.nick}</a>:${u.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Wd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=ki(e),o=new AbortController;return Wi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...rs(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((u,c)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link&&`<a href="${u.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${c+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,u.level&&`<span class="wl-badge">${r?r[`level${u.level}`]:`Level ${u.level}`}</span>`,u.label&&`<span class="wl-badge">${u.label}</span>`,"</div>",u.link&&u.link,"</div>",u.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};export{Bd as RecentComments,Wd as UserList,Fi as addComment,vo as commentCount,Pn as defaultLocales,Di as deleteComment,Hi as fetchCommentCount,Sr as getArticleCounter,Pi as getComment,Ni as getPageview,Bi as getRecentComment,Wi as getUserList,Vd as init,Ui as login,Ro as pageviewCount,zn as updateArticleCounter,en as updateComment,Vi as updatePageview,To as version};
|
|
79
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${nt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Nl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+nt(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Nl(t);if(i===null)return nt(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${nt(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:nt(t.text)}}class wi{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ze{options;renderer;textRenderer;constructor(t){this.options=t||Pt,this.options.renderer=this.options.renderer||new br,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wi}static parse(t,n){return new Ze(n).parse(t)}static parseInline(t,n){return new Ze(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
|
|
80
|
+
`+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class An{options;block;constructor(t){this.options=t||Pt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Ge.lex:Ge.lexInline}provideParser(){return this.block?Ze.parse:Ze.parseInline}}$i(An,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Vl{defaults=di();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ze;Renderer=br;TextRenderer=wi;Lexer=Ge;Tokenizer=vr;Hooks=An;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new br(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new vr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new An;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];An.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const h=a.call(s,u);return c.call(s,h)}:s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Ge.lex(t,n??this.defaults)}parser(t,n){return Ze.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Ge.lex:Ge.lexInline,c=l.hooks?l.hooks.provideParser():t?Ze.parse:Ze.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=c(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
|
|
81
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+nt(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const jt=new Vl;function pe(e,t){return jt.parse(e,t)}pe.options=pe.setOptions=function(e){return jt.setOptions(e),pe.defaults=jt.defaults,Ll(pe.defaults),pe},pe.getDefaults=di,pe.defaults=Pt,pe.use=function(...e){return jt.use(...e),pe.defaults=jt.defaults,Ll(pe.defaults),pe},pe.walkTokens=function(e,t){return jt.walkTokens(e,t)},pe.parseInline=jt.parseInline,pe.Parser=Ze,pe.parser=Ze.parse,pe.Renderer=br,pe.TextRenderer=wi,pe.Lexer=Ge,pe.lexer=Ge.lex,pe.Tokenizer=vr,pe.Hooks=An,pe.parse=pe;function ef(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=Wl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(ql(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");ql(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Wl(n),s=i?e.langPrefix+Jl(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Jl(t,!0)}
|
|
82
|
+
</code></pre>`}}}}function Wl(e){return(e||"").match(/\S*/)[0]}function ql(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Kl=/[&<>"']/,tf=new RegExp(Kl.source,"g"),Gl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,nf=new RegExp(Gl.source,"g"),rf={"&":"&","<":"<",">":">",'"':""","'":"'"},Zl=e=>rf[e];function Jl(e,t){if(t){if(Kl.test(e))return e.replace(tf,Zl)}else if(Gl.test(e))return e.replace(nf,Zl);return e}const sf=/\$.*?\$/,lf=/^\$(.*?)\$/,of=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,af=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=of.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(sf);return n!==-1?n:t.length},tokenizer(t){const n=lf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Yl=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),cf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Vl;if(i.setOptions({breaks:!0}),n&&i.use(ef({highlight:n})),r){const s=af(r);i.use({extensions:s})}return i.parse(Yl(e,t))},ki=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},uf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ff=e=>e.match(/[\u4E00-\u9FD5]/gu),hf=e=>{var t,n;return(((t=uf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=ff(e))==null?void 0:n.length)??0)},df=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Ql=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Ti({serverURL:jn(e),paths:Array.from(s).map(l=>Zi(ki(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(El),i.abort.bind(i)},Xl=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),pf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),gf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),mf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),vf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),yf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),wf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),kf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),xf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),En=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),_f=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Cf=()=>Jt("WALINE_USER_META",{nick:"",mail:"",link:""}),$f=()=>Jt("WALINE_COMMENT_BOX_EDITOR",""),Sf="WALINE_LIKE";let eo=null;const to=()=>eo??(eo=Jt(Sf,[])),Rf="WALINE_REACTION";let no=null;const Af=()=>no??(no=Jt(Rf,{}));var xi={},dt={},pt={},ro;function io(){if(ro)return pt;ro=1;var e=pt&&pt.__awaiter||function(r,i,s,l){function o(a){return a instanceof s?a:new s(function(c){c(a)})}return new(s||(s=Promise))(function(a,c){function u(g){try{d(l.next(g))}catch(k){c(k)}}function h(g){try{d(l.throw(g))}catch(k){c(k)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=pt&&pt.__generator||function(r,i){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(g){return h([d,g])}}function h(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(g){d=[6,g],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(pt,"__esModule",{value:!0}),pt.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return pt.ReCaptchaInstance=n,pt}var so;function Ef(){if(so)return dt;so=1;var e=dt&&dt.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(dt,"__esModule",{value:!0}),dt.getInstance=dt.load=void 0;var t=io(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(h)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),i.instance=h,a(h)}).catch(function(u){i.errorLoadingRunnable.forEach(function(h){return h(u)}),i.errorLoadingRunnable=[],c(u)})})},i.getInstance=function(){return i.instance},i.setLoadingState=function(s){i.loadingState=s},i.getLoadingState=function(){return i.loadingState===null?n.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(s,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=d+"?render=explicit"+g,new Promise(function(k,v){h.addEventListener("load",u.waitForScriptToLoad(function(){k(h)},o),!1),h.onerror=function($){i.setLoadingState(n.NOT_LOADED),v($)},document.head.appendChild(h)})},i.prototype.buildQueryString=function(s){var l=Object.keys(s);return l.length<1?"":"&"+Object.keys(s).filter(function(o){return!!s[o]}).map(function(o){return o+"="+s[o]}).join("&")},i.prototype.waitForScriptToLoad=function(s,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(s,l)},i.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){s()}):window.grecaptcha.ready(function(){s()})}},i.prototype.doExplicitRender=function(s,l,o,a){var c=e({sitekey:l},o);return o.container?a?s.enterprise.render(o.container,c):s.render(o.container,c):a?s.enterprise.render(c):s.render(c)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return dt.load=r.load,dt.getInstance=r.getInstance,dt}var lo;function Tf(){return lo||(lo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ef();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=io();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(xi)),xi}var Lf=Tf();const oo={},If=e=>{const t=oo[e]??(oo[e]=Lf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Mf=e=>({execute:async t=>{const{load:n}=bu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Of="WALINE_USER";let ao=null;const yr=()=>ao??(ao=Jt(Of,{})),Pf={key:0,class:"wl-reaction"},jf=["textContent"],zf={class:"wl-reaction-list"},Ff=["onClick"],Df={class:"wl-reaction-img"},Hf=["src","alt"],Nf=["textContent"],Uf=["textContent"];var Bf=dn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Af(),r=Qn("config"),i=W(-1),s=W([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:d,path:g}=r.value;return d.map((k,v)=>({icon:k,desc:l.value[`reaction${v}`],active:n.value[g]===v}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:d,lang:g,path:k,reaction:v}=r.value,$=new AbortController;c=$.abort.bind($);const b=await kr({serverURL:d,lang:g,paths:[k],type:v.map((C,N)=>`reaction${N}`),signal:$.signal});s.value=v.map((C,N)=>b[0][`reaction${N}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:k,path:v}=r.value,$=n.value[v];i.value=d,$!==void 0&&(await On({serverURL:g,lang:k,path:v,type:`reaction${$}`,action:"desc"}),s.value[$]=Math.max(s.value[$]-1,0)),$!==d&&(await On({serverURL:g,lang:k,path:v,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),$===d?delete n.value[v]:n.value[v]=d,i.value=-1}};return gn(()=>{Ve(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Jr(()=>c==null?void 0:c()),(d,g)=>a.value.length?(I(),P("div",Pf,[H("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,jf),H("ul",zf,[(I(!0),P(he,null,Be(a.value,({active:k,icon:v,desc:$},b)=>(I(),P("li",{key:b,class:ve(["wl-reaction-item",{active:k}]),onClick:C=>h(b)},[H("div",Df,[H("img",{src:v,alt:$},null,8,Hf),i.value===b?(I(),at(q(En),{key:0,class:"wl-reaction-loading"})):(I(),P("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[b]||0)},null,8,Nf))]),H("div",{class:"wl-reaction-text",textContent:X($)},null,8,Uf)],10,Ff))),128))])])):Q("v-if",!0)}}),Tn=new Map;function Vf(e){var t=Tn.get(e);t&&t.destroy()}function Wf(e){var t=Tn.get(e);t&&t.update()}var Ln=null;typeof window>"u"?((Ln=function(e){return e}).destroy=function(e){return e},Ln.update=function(e){return e}):((Ln=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Tn.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(d){return r.style[d]=h[d]}),Tn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Tn.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,k=h.restoreTextAlign,v=k===void 0?null:k,$=h.testForHeightReduction,b=$===void 0||$,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),b&&(d=function(E){for(var j=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&j.push([E.parentNode,E.parentNode.scrollTop]),E=E.parentNode;return function(){return j.forEach(function(K){var z=K[0],G=K[1];z.style.scrollBehavior="auto",z.scrollTop=G,z.style.scrollBehavior=null})}}(r),r.style.height=""),g=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&g>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),g=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=g+"px",v&&(r.style.textAlign=v),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),C!==l.overflow&&!v)){var N=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=N==="start"?"end":"start"),c({restoreTextAlign:N,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vf),e},Ln.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Wf),e});var co=Ln;const qf=["data-index"],Kf=["src","title","onClick"];var Gf=dn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=W(null),s=W({}),l=W([]),o=()=>{const d=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return d>0?d:1},a=d=>new Array(d).fill(null).map(()=>[]),c=async d=>{var g;if(d>=n.items.length)return;await qt();const k=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((v,$)=>$.getBoundingClientRect().height<v.getBoundingClientRect().height?$:v);l.value[Number(k.dataset.index)].push(d),await c(d+1)},u=async(d=!1)=>{if(l.value.length===o()&&!d)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=d=>{s.value[d.target.src]=!0};return gn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ve(()=>[n.items],()=>{s.value={},u(!0)}),Ve(()=>[n.columnWidth,n.gap],()=>{u()})}),Pa(()=>r.unobserve(i.value)),(d,g)=>(I(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:nn({gap:`${d.gap}px`})},[(I(!0),P(he,null,Be(l.value,(k,v)=>(I(),P("div",{key:v,class:"wl-gallery-column","data-index":v,style:nn({gap:`${d.gap}px`})},[(I(!0),P(he,null,Be(k,$=>(I(),P(he,{key:$},[s.value[d.items[$].src]?Q("v-if",!0):(I(),at(q(En),{key:0,size:36,style:{margin:"20px auto"}})),H("img",{class:"wl-gallery-item",src:d.items[$].src,title:d.items[$].title,loading:"lazy",onLoad:h,onClick:b=>d.$emit("insert",``)},null,40,Kf)],64))),128))],12,qf))),128))],4))}});const Zf={key:0,class:"wl-login-info"},Jf={class:"wl-avatar"},Yf=["title"],Qf=["title"],Xf=["src"],eh=["title","textContent"],th={class:"wl-panel"},nh=["for","textContent"],rh=["id","onUpdate:modelValue","name","type"],ih=["placeholder"],sh={class:"wl-preview"},lh=["innerHTML"],oh={class:"wl-footer"},ah={class:"wl-actions"},ch={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},uh=["title"],fh=["title"],hh=["title","aria-label"],dh=["title"],ph={class:"wl-info"},gh={class:"wl-text-number"},mh={key:0},vh=["textContent"],bh=["textContent"],yh=["disabled"],wh=["placeholder"],kh={key:1,class:"wl-loading"},xh={key:0,class:"wl-tab-wrapper"},_h=["title","onClick"],Ch=["src","alt"],$h={key:0,class:"wl-tabs"},Sh=["onClick"],Rh=["src","alt","title"],Ah=["title"];var uo=dn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=Qn("config"),s=$f(),l=Cf(),o=yr(),a=W({}),c=W(null),u=W(null),h=W(null),d=W(null),g=W(null),k=W(null),v=W(null),$=W({tabs:[],map:{}}),b=W(0),C=W(!1),N=W(!1),E=W(!1),j=W(""),K=W(0),z=cn({loading:!0,list:[]}),G=W(0),Ie=W(!1),Z=W(""),re=W(!1),me=W(!1),F=_e(()=>i.value.locale),Y=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),se=_e(()=>i.value.imageUploader!==!1),ke=O=>{const A=c.value,U=A.selectionStart,de=A.selectionEnd||0,f=A.scrollTop;s.value=A.value.substring(0,U)+O+A.value.substring(de,A.value.length),A.focus(),A.selectionStart=U+O.length,A.selectionEnd=U+O.length,A.scrollTop=f},be=O=>{if(re.value)return;const A=O.key;(O.ctrlKey||O.metaKey)&&A==="Enter"&&Oe()},ye=O=>{const A=`![${i.value.locale.uploading} ${O.name}]()`;return ke(A),re.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(U=>{s.value=s.value.replace(A,`\r
|
|
83
|
+
`)}).catch(U=>{alert(U.message),s.value=s.value.replace(A,"")}).then(()=>{re.value=!1})},Re=O=>{var A;if((A=O.dataTransfer)!=null&&A.items){const U=Tl(O.dataTransfer.items);U&&se.value&&(ye(U),O.preventDefault())}},gt=O=>{if(O.clipboardData){const A=Tl(O.clipboardData.items);A&&se.value&&ye(A)}},wt=()=>{const O=u.value;O.files&&se.value&&ye(O.files[0]).then(()=>{O.value=""})},Oe=async()=>{var O,A,U,de,f,p;const{serverURL:m,lang:w,login:y,wordLimit:x,requiredMeta:T,recaptchaV3Key:R,turnstileKey:S}=i.value,_=await df(),M={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(y==="force")return;if(T.includes("nick")&&!M.nick)return(A=a.value.nick)==null||A.focus(),alert(F.value.nickError);if(T.includes("mail")&&!M.mail||M.mail&&!Fo(M.mail))return(U=a.value.mail)==null||U.focus(),alert(F.value.mailError);M.nick||(M.nick=F.value.anonymous)}if(!M.comment){(de=c.value)==null||de.focus();return}if(!Ie.value)return alert(F.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",K.value.toString()));M.comment=Yl(M.comment,$.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),re.value=!0;try{R&&(M.recaptchaV3=await If(R).execute("social")),S&&(M.turnstile=await Mf(S).execute("social"));const L={serverURL:m,lang:w,token:(f=o.value)==null?void 0:f.token,comment:M},D=await(n.edit?Qt({objectId:n.edit.objectId,...L}):Ai(L));if(re.value=!1,D.errmsg)return alert(D.errmsg);r("submit",D.data),s.value="",j.value="",await qt(),n.replyId&&r("cancelReply"),(p=n.edit)!=null&&p.objectId&&r("cancelEdit")}catch(L){re.value=!1,alert(L.message)}},In=O=>{O.preventDefault();const{lang:A,serverURL:U}=i.value;Li({serverURL:U,lang:A}).then(de=>{o.value=de,(de.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(de)),r("log")})},wr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Mn=O=>{O.preventDefault();const{lang:A,serverURL:U}=i.value,de=800,f=800,p=(window.innerWidth-de)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:A,token:o.value.token}),y=window.open(`${U}/ui/profile?${w.toString()}`,"_blank",`width=${de},height=${f},left=${p},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},kt=O=>{var A,U,de,f;!((A=h.value)!=null&&A.contains(O.target))&&!((U=d.value)!=null&&U.contains(O.target))&&(C.value=!1),!((de=g.value)!=null&&de.contains(O.target))&&!((f=k.value)!=null&&f.contains(O.target))&&(N.value=!1)},xt=async O=>{var A;const{scrollTop:U,clientHeight:de,scrollHeight:f}=O.target,p=(de+U)/f,m=i.value.search,w=((A=v.value)==null?void 0:A.value)??"";p<.9||z.loading||me.value||(z.loading=!0,(m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)).length?z.list=[...z.list,...m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)]:me.value=!0,z.loading=!1,setTimeout(()=>{O.target.scrollTop=U},50))},zt=su(O=>{z.list=[],me.value=!1,xt(O)},300);return Ve([i,K],([O,A])=>{const{wordLimit:U}=O;U?A<U[0]&&U[0]!==0?(G.value=U[0],Ie.value=!1):A>U[1]?(G.value=U[1],Ie.value=!1):(G.value=U[1],Ie.value=!0):(G.value=0,Ie.value=!0)},{immediate:!0}),fr("click",kt),fr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(A=>A.getItem("WALINE_USER")).forEach(A=>A.setItem("WALINE_USER",JSON.stringify(o))))}),Ve(N,async O=>{var A;if(!O)return;const U=i.value.search;v.value&&(v.value.value=""),z.loading=!0,z.list=await(((A=U.default)==null?void 0:A.call(U))??U.search("")),z.loading=!1}),gn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ve(()=>s.value,A=>{const{highlighter:U,texRenderer:de}=i.value;Z.value=A,j.value=cf(A,{emojiMap:$.value.map,highlighter:U,texRenderer:de}),K.value=hf(A),A?co(c.value):co.destroy(c.value)},{immediate:!0}),Ve(()=>i.value.emoji,A=>_u(A).then(U=>{$.value=U}),{immediate:!0})}),(O,A)=>{var U,de;return I(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&Y.value&&!((U=O.edit)!=null&&U.objectId)?(I(),P("div",Zf,[H("div",Jf,[H("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:wr},[oe(q(Xl),{size:14})],8,Yf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Mn},[H("img",{src:q(o).avatar,alt:"avatar"},null,8,Xf)],8,Qf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Mn,textContent:X(q(o).display_name)},null,8,eh)])):Q("v-if",!0),H("div",th,[q(i).login!=="force"&&q(i).meta.length&&!Y.value?(I(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(I(!0),P(he,null,Be(q(i).meta,f=>(I(),P("div",{key:f,class:"wl-header-item"},[H("label",{for:`wl-${f}`,textContent:X(F.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,nh),Jn(H("input",{id:`wl-${f}`,ref_for:!0,ref:p=>{p&&(a.value[f]=p)},"onUpdate:modelValue":p=>q(l)[f]=p,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,rh),[[Gc,q(l)[f]]])]))),128))],2)):Q("v-if",!0),Jn(H("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":A[0]||(A[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:F.value.placeholder,onKeydown:be,onDrop:Re,onPaste:gt},null,40,ih),[[ui,q(s)]]),Jn(H("div",sh,[A[7]||(A[7]=H("hr",null,null,-1)),H("h4",null,X(F.value.preview)+":",1),H("div",{class:"wl-content",innerHTML:j.value},null,8,lh)],512),[[cl,E.value]]),H("div",oh,[H("div",ah,[H("a",ch,[oe(q(yf))]),Jn(H("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:A[1]||(A[1]=f=>C.value=!C.value)},[oe(q(gf))],10,uh),[[cl,$.value.tabs.length]]),q(i).search?(I(),P("button",{key:0,ref_key:"gifButtonRef",ref:g,type:"button",class:ve(["wl-action",{active:N.value}]),title:F.value.gif,onClick:A[2]||(A[2]=f=>N.value=!N.value)},[oe(q(_f))],10,fh)):Q("v-if",!0),H("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:wt},null,544),se.value?(I(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(q(mf))],8,hh)):Q("v-if",!0),H("button",{type:"button",class:ve(["wl-action",{active:E.value}]),title:F.value.preview,onClick:A[3]||(A[3]=f=>E.value=!E.value)},[oe(q(bf))],10,dh)]),H("div",ph,[A[9]||(A[9]=H("div",{class:"wl-captcha-container"},null,-1)),H("div",gh,[ct(X(K.value)+" ",1),q(i).wordLimit?(I(),P("span",mh,[A[8]||(A[8]=ct(" / ")),H("span",{class:ve({illegal:!Ie.value}),textContent:X(G.value)},null,10,vh)])):Q("v-if",!0),ct(" "+X(F.value.word),1)]),q(i).login!=="disable"&&!Y.value?(I(),P("button",{key:0,type:"button",class:"wl-btn",onClick:In,textContent:X(F.value.login)},null,8,bh)):Q("v-if",!0),q(i).login!=="force"||Y.value?(I(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:re.value,onClick:Oe},[re.value?(I(),at(q(En),{key:0,size:16})):(I(),P(he,{key:1},[ct(X(F.value.submit),1)],64))],8,yh)):Q("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:k,class:ve(["wl-gif-popup",{display:N.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:v,type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...f)=>q(zt)&&q(zt)(...f))},null,40,wh),z.list.length?(I(),at(Gf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=f=>ke(f)),onScroll:xt},null,8,["items"])):Q("v-if",!0),z.loading?(I(),P("div",kh,[oe(q(En),{size:30})])):Q("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:d,class:ve(["wl-emoji-popup",{display:C.value}])},[(I(!0),P(he,null,Be($.value.tabs,(f,p)=>(I(),P(he,{key:f.name},[p===b.value?(I(),P("div",xh,[(I(!0),P(he,null,Be(f.items,m=>(I(),P("button",{key:m,type:"button",title:m,onClick:w=>ke(`:${m}:`)},[C.value?(I(),P("img",{key:0,class:"wl-emoji",src:$.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ch)):Q("v-if",!0)],8,_h))),128))])):Q("v-if",!0)],64))),128)),$.value.tabs.length>1?(I(),P("div",$h,[(I(!0),P(he,null,Be($.value.tabs,(f,p)=>(I(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:b.value===p}]),onClick:m=>b.value=p},[H("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Rh)],10,Sh))),128))])):Q("v-if",!0)],2)])]),O.replyId||(de=O.edit)!=null&&de.objectId?(I(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:A[6]||(A[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(q(Xl),{size:24})],8,Ah)):Q("v-if",!0)])}}});const Eh=["id"],Th={class:"wl-user","aria-hidden":"true"},Lh=["src"],Ih={class:"wl-card"},Mh={class:"wl-head"},Oh=["href"],Ph={key:1,class:"wl-nick"},jh=["textContent"],zh=["textContent"],Fh=["textContent"],Dh=["textContent"],Hh=["textContent"],Nh={class:"wl-comment-actions"},Uh=["title"],Bh=["title"],Vh={class:"wl-meta","aria-hidden":"true"},Wh=["data-value","textContent"],qh={key:0,class:"wl-content"},Kh={key:0},Gh=["href"],Zh=["innerHTML"],Jh={key:1,class:"wl-admin-actions"},Yh={class:"wl-comment-status"},Qh=["disabled","onClick","textContent"],Xh={key:3,class:"wl-quote"};var ed=dn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Qn("config"),l=to(),o=vu(),a=yr(),c=_e(()=>s.value.locale),u=_e(()=>{const{link:b}=n.comment;return b?Yi(b)?b:`https://${b}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),d=_e(()=>jo(new Date(n.comment.time),o.value,c.value)),g=_e(()=>a.value.type==="administrator"),k=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),v=_e(()=>{var b;return n.comment.objectId===((b=n.reply)==null?void 0:b.objectId)}),$=_e(()=>{var b;return n.comment.objectId===((b=n.edit)==null?void 0:b.objectId)});return(b,C)=>{var N;const E=za("CommentCard",!0);return I(),P("div",{id:b.comment.objectId,class:"wl-card-item"},[H("div",Th,[b.comment.avatar?(I(),P("img",{key:0,class:"wl-user-avatar",src:b.comment.avatar,alt:""},null,8,Lh)):Q("v-if",!0),b.comment.type?(I(),at(q(xf),{key:1})):Q("v-if",!0)]),H("div",Ih,[H("div",Mh,[u.value?(I(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(b.comment.nick),9,Oh)):(I(),P("span",Ph,X(b.comment.nick),1)),b.comment.type==="administrator"?(I(),P("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,jh)):Q("v-if",!0),b.comment.label?(I(),P("span",{key:3,class:"wl-badge",textContent:X(b.comment.label)},null,8,zh)):Q("v-if",!0),b.comment.sticky?(I(),P("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,Fh)):Q("v-if",!0),typeof b.comment.level=="number"?(I(),P("span",{key:5,class:ve(`wl-badge level${b.comment.level}`),textContent:X(c.value[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,Dh)):Q("v-if",!0),H("span",{class:"wl-time",textContent:X(d.value)},null,8,Hh),H("div",Nh,[g.value||k.value?(I(),P(he,{key:0},[H("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=j=>r("edit",b.comment))},[oe(q(kf))]),H("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=j=>r("delete",b.comment))},[oe(q(pf))])],64)):Q("v-if",!0),H("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=j=>r("like",b.comment))},[oe(q(vf),{active:h.value},null,8,["active"]),ct(" "+X("like"in b.comment?b.comment.like:""),1)],8,Uh),H("button",{type:"button",class:ve(["wl-reply",{active:v.value}]),title:v.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=j=>r("reply",v.value?null:b.comment))},[oe(q(wf))],10,Bh)])]),H("div",Vh,[(I(),P(he,null,Be(["addr","browser","os"],j=>(I(),P(he,null,[b.comment[j]?(I(),P("span",{key:j,class:ve(`wl-${j}`),"data-value":b.comment[j],textContent:X(b.comment[j])},null,10,Wh)):Q("v-if",!0)],64))),64))]),$.value?Q("v-if",!0):(I(),P("div",qh,[b.comment.reply_user?(I(),P("p",Kh,[H("a",{href:"#"+b.comment.pid},"@"+X(b.comment.reply_user.nick),9,Gh),C[17]||(C[17]=H("span",null,": ",-1))])):Q("v-if",!0),H("div",{innerHTML:b.comment.comment},null,8,Zh)])),g.value&&!$.value?(I(),P("div",Jh,[H("span",Yh,[(I(),P(he,null,Be(i,j=>H("button",{key:j,type:"submit",class:ve(`wl-btn wl-${j}`),disabled:b.comment.status===j,onClick:K=>r("status",{status:j,comment:b.comment}),textContent:X(c.value[j])},null,10,Qh)),64))]),g.value&&!("rid"in b.comment)?(I(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=j=>r("sticky",b.comment))},X(b.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),v.value||$.value?(I(),P("div",{key:2,class:ve({"wl-reply-wrapper":v.value,"wl-edit-wrapper":$.value})},[oe(uo,{edit:b.edit,"reply-id":(N=b.reply)==null?void 0:N.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:C[5]||(C[5]=j=>r("log")),onCancelReply:C[6]||(C[6]=j=>r("reply",null)),onCancelEdit:C[7]||(C[7]=j=>r("edit",null)),onSubmit:C[8]||(C[8]=j=>r("submit",j))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in b.comment?(I(),P("div",Xh,[(I(!0),P(he,null,Be(b.comment.children,j=>(I(),at(E,{key:j.objectId,comment:j,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:C[9]||(C[9]=K=>r("log")),onDelete:C[10]||(C[10]=K=>r("delete",K)),onEdit:C[11]||(C[11]=K=>r("edit",K)),onLike:C[12]||(C[12]=K=>r("like",K)),onReply:C[13]||(C[13]=K=>r("reply",K)),onStatus:C[14]||(C[14]=K=>r("status",K)),onSticky:C[15]||(C[15]=K=>r("sticky",K)),onSubmit:C[16]||(C[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Eh)}}});const fo="3.4.0",td={"data-waline":""},nd={class:"wl-meta-head"},rd={class:"wl-count"},id=["textContent"],sd={class:"wl-sort"},ld=["onClick"],od={class:"wl-cards"},ad={key:1,class:"wl-operation"},cd=["textContent"],ud={key:2,class:"wl-loading"},fd=["textContent"],hd={key:4,class:"wl-operation"},dd=["textContent"],pd={key:5,class:"wl-power"};var gd=dn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=yr(),s=to(),l=W("loading"),o=W(0),a=W(1),c=W(0),u=_e(()=>Mo(t)),h=W(u.value.commentSorting),d=W([]),g=W(null),k=W(null),v=_e(()=>Oo(u.value.dark)),$=_e(()=>u.value.locale);wu(v,{id:"waline-darkmode"});let b;const C=F=>{var Y;const{serverURL:se,path:ke,pageSize:be}=u.value,ye=new AbortController;l.value="loading",b==null||b(),Ri({serverURL:se,lang:u.value.lang,path:ke,pageSize:be,sortBy:n[h.value],page:F,signal:ye.signal,token:(Y=i.value)==null?void 0:Y.token}).then(Re=>{l.value="success",o.value=Re.count,d.value.push(...Re.data),a.value=F,c.value=Re.totalPages}).catch(Re=>{Re.name!=="AbortError"&&(console.error(Re.message),l.value="error")}),b=ye.abort.bind(ye)},N=()=>C(a.value+1),E=()=>{o.value=0,d.value=[],C(1)},j=F=>{h.value!==F&&(h.value=F,E())},K=F=>{g.value=F},z=F=>{k.value=F},G=F=>{if(k.value)k.value.comment=F.comment,k.value.orig=F.orig;else if("rid"in F){const Y=d.value.find(({objectId:se})=>se===F.rid);if(!Y)return;Array.isArray(Y.children)||(Y.children=[]),Y.children.push(F)}else d.value.unshift(F),o.value+=1},Ie=async({comment:F,status:Y})=>{var se;if(F.status===Y)return;const{serverURL:ke,lang:be}=u.value;await Qt({serverURL:ke,lang:be,token:(se=i.value)==null?void 0:se.token,objectId:F.objectId,comment:{status:Y}}),F.status=Y},Z=async F=>{var Y;if("rid"in F)return;const{serverURL:se,lang:ke}=u.value;await Qt({serverURL:se,lang:ke,token:(Y=i.value)==null?void 0:Y.token,objectId:F.objectId,comment:{sticky:F.sticky?0:1}}),F.sticky=!F.sticky},re=async({objectId:F})=>{var Y;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:ke}=u.value;await Ei({serverURL:se,lang:ke,token:(Y=i.value)==null?void 0:Y.token,objectId:F}),d.value.some((be,ye)=>be.objectId===F?(d.value=d.value.filter((Re,gt)=>gt!==ye),!0):be.children.some((Re,gt)=>Re.objectId===F?(d.value[ye].children=be.children.filter((wt,Oe)=>Oe!==gt),!0):!1))},me=async F=>{var Y;const{serverURL:se,lang:ke}=u.value,{objectId:be}=F,ye=s.value.includes(be);await Qt({serverURL:se,lang:ke,objectId:be,token:(Y=i.value)==null?void 0:Y.token,comment:{like:!ye}}),ye?s.value=s.value.filter(Re=>Re!==be):(s.value=[...s.value,be],s.value.length>50&&(s.value=s.value.slice(-50))),F.like=(F.like||0)+(ye?-1:1)};return Ba("config",u),gn(()=>{Ve(()=>[t.serverURL,t.path],()=>E(),{immediate:!0})}),Jr(()=>b==null?void 0:b()),(F,Y)=>(I(),P("div",td,[oe(Bf),!g.value&&!k.value?(I(),at(uo,{key:0,onLog:E,onSubmit:G})):Q("v-if",!0),H("div",nd,[H("div",rd,[o.value?(I(),P("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,id)):Q("v-if",!0),ct(" "+X($.value.comment),1)]),H("ul",sd,[(I(!0),P(he,null,Be(q(r),se=>(I(),P("li",{key:se,class:ve([se===h.value?"active":""]),onClick:ke=>j(se)},X($.value[se]),11,ld))),128))])]),H("div",od,[(I(!0),P(he,null,Be(d.value,se=>(I(),at(ed,{key:se.objectId,"root-id":se.objectId,comment:se,reply:g.value,edit:k.value,onLog:E,onReply:K,onEdit:z,onSubmit:G,onStatus:Ie,onDelete:re,onSticky:Z,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),P("div",ad,[H("button",{type:"button",class:"wl-btn",onClick:E,textContent:X($.value.refresh)},null,8,cd)])):l.value==="loading"?(I(),P("div",ud,[oe(q(En),{size:30})])):d.value.length?a.value<c.value?(I(),P("div",hd,[H("button",{type:"button",class:"wl-btn",onClick:N,textContent:X($.value.more)},null,8,dd)])):Q("v-if",!0):(I(),P("div",{key:3,class:"wl-empty",textContent:X($.value.sofa)},null,8,fd)),u.value.copyright?(I(),P("div",pd,[Y[0]||(Y[0]=ct(" Powered by ")),Y[1]||(Y[1]=H("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ct(" v"+X(q(fo)),1)])):Q("v-if",!0)]))}});const ho=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=ki(c);return u!==null&&t!==u},a=c=>Ii({serverURL:jn(e),paths:c.map(u=>ki(u)??t),lang:i,signal:s.signal}).then(u=>ho(u,c)).catch(El);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Mi({serverURL:jn(e),path:t,lang:i}).then(h=>ho(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},md=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?hi(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=cn({...i}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Ql({serverURL:l.serverURL,path:o.path,...Ft(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&po({serverURL:l.serverURL,path:o.path,...Ft(o.pageview)?{selector:o.pageview}:{}})},u=s?Qc(()=>ne(gd,{path:o.path,...l})):null;u&&u.mount(s);const h=Ks(a),d=Ks(c);return{el:s,update:({comment:g,pageview:k,path:v=window.location.pathname,...$}={})=>{Object.entries($).forEach(([b,C])=>{l[b]=C}),o.path=v,g!==void 0&&(o.comment=g),k!==void 0&&(o.pageview=k)},destroy:()=>{u==null||u.unmount(),h(),d()}}},vd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=yr(),l=hi(e),o=new AbortController;return Oi({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},bd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=hi(e),o=new AbortController;return Pi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Ki(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};export{vd as RecentComments,bd as UserList,Ai as addComment,Ql as commentCount,Pn as defaultLocales,Ei as deleteComment,Ti as fetchCommentCount,kr as getArticleCounter,Ri as getComment,Ii as getPageview,Oi as getRecentComment,Pi as getUserList,md as init,Li as login,po as pageviewCount,On as updateArticleCounter,Qt as updateComment,Mi as updatePageview,fo as version};
|
|
84
84
|
//# sourceMappingURL=waline.js.map
|