mirror of
https://github.com/StarGazer114/stargazer114.github.io.git
synced 2025-01-08 14:28:17 +08:00
85 lines
168 KiB
JavaScript
85 lines
168 KiB
JavaScript
var xo=Object.defineProperty;var _o=(e,t,n)=>t in e?xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var As=(e,t,n)=>_o(e,typeof t!="symbol"?t+"":t,n);const Es={"Content-Type":"application/json"},tt=e=>`${e.replace(/\/?$/,"/")}api/`,kt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_r=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${tt(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>kt(i,"Get counter").data),Pn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${tt(e)}article?lang=${t}`,{method:"POST",headers:Es,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>kt(i,"Update counter").data),Ts=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${tt(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>kt(c,"Get comment data").data)},Ls=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${tt(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Is=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${tt(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>kt(s,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${tt(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Es,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>kt(i,"Update comment")),Ms=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${tt(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>kt(s,"Get comment count").data),Ps=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},Os=({serverURL:e,lang:t,paths:n,signal:r})=>_r({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),js=e=>Pn({...e,type:"time",action:"inc"}),zs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${tt(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Fs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${tt(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>kt(s,"user list")).then(s=>s.data),Co=["nick","mail","link"],Ds=e=>e.filter(t=>Co.includes(t)),Hs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],So=["//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"],$o=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Ro=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ao=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Eo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,To=/</,Lo=/(?:^|\s)\/\/(.+?)$/gm,Io=/\/\*([\S\s]*?)\*\//gm,Mo=new RegExp(`(${Eo.source}|${To.source})|((?:${Lo.source})|(?:${Io.source}))`,"gmi"),Us=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Cr={},Po=e=>{let t=0;return e.replace(Mo,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"<";let i;Cr[r]?i=Cr[r]:(i=Us[t],Cr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Us.length,l})},Oo=["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"],Ge=e=>Object.fromEntries(e.map((t,n)=>[Oo[n],t]));var jo=Ge(["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?"]),Ns=Ge(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
||
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Bs=Ge(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
|
||
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Vs=Ge(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
|
||
Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Ws=Ge(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
||
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),zo=Ge(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
||
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),qs=Ge(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
||
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ks=Ge(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
|
||
Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Gs=Ge(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
||
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Fo=Ge(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
||
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Zs="en-US",On={zh:Gs,"zh-cn":Gs,"zh-tw":Fo,en:Ns,"en-us":Ns,fr:Vs,"fr-fr":Vs,jp:Ws,"jp-jp":Ws,"pt-br":zo,ru:qs,"ru-ru":qs,vi:Ks,"vi-vn":Ks,de:jo,es:Bs,"es-mx":Bs},Js=e=>On[e.toLowerCase()]||On[Zs.toLowerCase()],Ys=e=>Object.keys(On).includes(e.toLowerCase())?e:Zs,Xs={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Do=Object.keys(Xs),jn=Symbol("waline-config"),Qs=e=>{try{e=decodeURI(e)}catch{}return e},ei=(e="")=>e.replace(/\/$/u,""),ti=e=>/^(https?:)?\/\//.test(e),zn=e=>{const t=ei(e);return ti(t)?t:`https://${t}`},Ho=e=>Array.isArray(e)?e:e?[0,e]:!1,Sr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Uo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:s=Hs,meta:i=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:p,copyright:g=!0,login:x="enable",search:b,reaction:S,recaptchaV3Key:y="",turnstileKey:_="",commentSorting:H="latest",...T})=>({serverURL:zn(e),path:Qs(t),lang:Ys(n),locale:{...Js(Ys(n)),...typeof r=="object"?r:{}},wordLimit:Ho(c),meta:Ds(i),requiredMeta:Ds(l),imageUploader:Sr(u,$o),highlighter:Sr(h,Po),texRenderer:Sr(p,Ro),dark:o,emoji:typeof s=="boolean"?s?Hs:[]:s,pageSize:a,login:x,copyright:g,search:b===!1?!1:typeof b=="object"?b:Ao(n),recaptchaV3Key:y,turnstileKey:_,reaction:Array.isArray(S)?S:S===!0?So:[],commentSorting:H,...T}),zt=e=>typeof e=="string",$r="{--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}",No=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${$r}}`:`${e}${$r}`:e===!0?`:root${$r}`:"",Rr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Bo=e=>{const t=Rr(e.getDate(),2),n=Rr(e.getMonth()+1,2);return`${Rr(e.getFullYear(),2)}-${n}-${t}`},Vo=(e,t,n)=>{if(!e)return"";const r=zt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:Bo(r)},Wo=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,qo=e=>Wo.test(e);/**
|
||
* @vue/shared v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function Ar(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ie={},Ft=[],xt=()=>{},Ko=()=>!1,Fn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Er=e=>e.startsWith("onUpdate:"),je=Object.assign,ni=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Go=Object.prototype.hasOwnProperty,te=(e,t)=>Go.call(e,t),W=Array.isArray,Dt=e=>Qt(e)==="[object Map]",Ht=e=>Qt(e)==="[object Set]",ri=e=>Qt(e)==="[object Date]",le=e=>typeof e=="function",be=e=>typeof e=="string",Ze=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",si=e=>(de(e)||le(e))&&le(e.then)&&le(e.catch),ii=Object.prototype.toString,Qt=e=>ii.call(e),Zo=e=>Qt(e).slice(8,-1),li=e=>Qt(e)==="[object Object]",Tr=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Ar(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Jo=/-(\w)/g,ze=Dn(e=>e.replace(Jo,(t,n)=>n?n.toUpperCase():"")),Yo=/\B([A-Z])/g,_t=Dn(e=>e.replace(Yo,"-$1").toLowerCase()),Hn=Dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lr=Dn(e=>e?`on${Hn(e)}`:""),dt=(e,t)=>!Object.is(e,t),Un=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oi=(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 ai;const tn=()=>ai||(ai=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=be(r)?ta(r):nn(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(be(e)||de(e))return e}const Xo=/;(?![^(]*\))/g,Qo=/:([^]+)/,ea=/\/\*[^]*?\*\//g;function ta(e){const t={};return e.replace(ea,"").split(Xo).forEach(n=>{if(n){const r=n.split(Qo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(be(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const na="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ra=Ar(na);function ci(e){return!!e||e===""}function sa(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ct(e[r],t[r]);return n}function Ct(e,t){if(e===t)return!0;let n=ri(e),r=ri(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=W(e),r=W(t),n||r)return n&&r?sa(e,t):!1;if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!Ct(e[l],t[l]))return!1}}return String(e)===String(t)}function Ir(e,t){return e.findIndex(n=>Ct(n,t))}const ui=e=>!!(e&&e.__v_isRef===!0),ee=e=>be(e)?e:e==null?"":W(e)||de(e)&&(e.toString===ii||!le(e.toString))?ui(e)?ee(e.value):JSON.stringify(e,fi,2):String(e),fi=(e,t)=>ui(t)?fi(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Mr(r,i)+" =>"]=s,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mr(n))}:Ze(t)?Mr(t):de(t)&&!W(t)&&!li(t)?String(t):t,Mr=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Se;class ia{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.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=Se;try{return Se=this,t()}finally{Se=n}}}on(){Se=this}off(){Se=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function hi(){return Se}function la(e,t=!1){Se&&Se.cleanups.push(e)}let ue;const Pr=new WeakSet;class pi{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,Se&&Se.active&&Se.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pr.has(this)&&(Pr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wi(this),mi(this);const t=ue,n=Ve;ue=this,Ve=!0;try{return this.fn()}finally{vi(this),ue=t,Ve=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fr(t);this.deps=this.depsTail=void 0,wi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zr(this)&&this.run()}get dirty(){return zr(this)}}let di=0,rn,sn;function gi(e,t=!1){if(e.flags|=8,t){e.next=sn,sn=e;return}e.next=rn,rn=e}function Or(){di++}function jr(){if(--di>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 mi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vi(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Fr(r),oa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function zr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bi(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&&!zr(e)){e.flags&=-3;return}const n=ue,r=Ve;ue=e,Ve=!0;try{mi(e);const s=e.fn(e._value);(t.version===0||dt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ve=r,vi(e),e.flags&=-3}}function Fr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Fr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ve=!0;const yi=[];function St(){yi.push(Ve),Ve=!1}function $t(){const e=yi.pop();Ve=e===void 0?!0:e}function wi(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 aa{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 Dr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ue||!Ve||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new aa(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,ki(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){Or();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{jr()}}}function ki(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)ki(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Hr=new WeakMap,Rt=Symbol(""),Ur=Symbol(""),on=Symbol("");function _e(e,t,n){if(Ve&&ue){let r=Hr.get(e);r||Hr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Dr),s.map=r,s.key=n),s.track()}}function nt(e,t,n,r,s,i){const l=Hr.get(e);if(!l){ln++;return}const o=a=>{a&&a.trigger()};if(Or(),t==="clear")l.forEach(o);else{const a=W(e),c=a&&Tr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,p)=>{(p==="length"||p===on||!Ze(p)&&p>=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(Rt)),Dt(e)&&o(l.get(Ur)));break;case"delete":a||(o(l.get(Rt)),Dt(e)&&o(l.get(Ur)));break;case"set":Dt(e)&&o(l.get(Rt));break}}jr()}function Ut(e){const t=ne(e);return t===e?t:(_e(t,"iterate",on),Fe(e)?t:t.map(Ce))}function Bn(e){return _e(e=ne(e),"iterate",on),e}const ca={__proto__:null,[Symbol.iterator](){return Nr(this,Symbol.iterator,Ce)},concat(...e){return Ut(this).concat(...e.map(t=>W(t)?Ut(t):t))},entries(){return Nr(this,"entries",e=>(e[1]=Ce(e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(Ce),arguments)},find(e,t){return rt(this,"find",e,t,Ce,arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,Ce,arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Br(this,"includes",e)},indexOf(...e){return Br(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Br(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return xi(this,"reduce",e,t)},reduceRight(e,...t){return xi(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return rt(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 Nr(this,"values",Ce)}};function Nr(e,t,n){const r=Bn(e),s=r[t]();return r!==e&&!Fe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ua=Array.prototype;function rt(e,t,n,r,s,i){const l=Bn(e),o=l!==e&&!Fe(e),a=l[t];if(a!==ua[t]){const h=a.apply(e,i);return o?Ce(h):h}let c=n;l!==e&&(o?c=function(h,p){return n.call(this,Ce(h),p,e)}:n.length>2&&(c=function(h,p){return n.call(this,h,p,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function xi(e,t,n,r){const s=Bn(e);let i=n;return s!==e&&(Fe(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,Ce(o),a,e)}),s[t](i,...r)}function Br(e,t,n){const r=ne(e);_e(r,"iterate",on);const s=r[t](...n);return(s===-1||s===!1)&&Kr(n[0])?(n[0]=ne(n[0]),r[t](...n)):s}function an(e,t,n=[]){St(),Or();const r=ne(e)[t].apply(e,n);return jr(),$t(),r}const fa=Ar("__proto__,__v_isRef,__isVue"),_i=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function ha(e){Ze(e)||(e=String(e));const t=ne(this);return _e(t,"has",e),t.hasOwnProperty(e)}class Ci{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?xa:Ai:i?Ri:$i).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=W(t);if(!s){let a;if(l&&(a=ca[n]))return a;if(n==="hasOwnProperty")return ha}const o=Reflect.get(t,n,we(t)?t:r);return(Ze(n)?_i.has(n):fa(n))||(s||_e(t,"get",n),i)?o:we(o)?l&&Tr(n)?o:o.value:de(o)?s?un(o):cn(o):o}}class Si extends Ci{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=At(i);if(!Fe(r)&&!At(r)&&(i=ne(i),r=ne(r)),!W(t)&&we(i)&&!we(r))return a?!1:(i.value=r,!0)}const l=W(t)&&Tr(n)?Number(n)<t.length:te(t,n),o=Reflect.set(t,n,r,we(t)?t:s);return t===ne(s)&&(l?dt(r,i)&&nt(t,"set",n,r):nt(t,"add",n,r)),o}deleteProperty(t,n){const r=te(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&nt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ze(n)||!_i.has(n))&&_e(t,"has",n),r}ownKeys(t){return _e(t,"iterate",W(t)?"length":Rt),Reflect.ownKeys(t)}}class pa extends Ci{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const da=new Si,ga=new pa,ma=new Si(!0),Vr=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function va(e,t,n){return function(...r){const s=this.__v_raw,i=ne(s),l=Dt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Vr:t?Gr:Ce;return!t&&_e(i,"iterate",a?Ur:Rt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:o?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function Wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ba(e,t){const n={get(s){const i=this.__v_raw,l=ne(i),o=ne(s);e||(dt(s,o)&&_e(l,"get",s),_e(l,"get",o));const{has:a}=Vn(l),c=t?Vr:e?Gr:Ce;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&_e(ne(s),"iterate",Rt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=ne(i),o=ne(s);return e||(dt(s,o)&&_e(l,"has",s),_e(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=ne(o),c=t?Vr:e?Gr:Ce;return!e&&_e(a,"iterate",Rt),o.forEach((u,h)=>s.call(i,c(u),c(h),l))}};return je(n,e?{add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear")}:{add(s){!t&&!Fe(s)&&!At(s)&&(s=ne(s));const i=ne(this);return Vn(i).has.call(i,s)||(i.add(s),nt(i,"add",s,s)),this},set(s,i){!t&&!Fe(i)&&!At(i)&&(i=ne(i));const l=ne(this),{has:o,get:a}=Vn(l);let c=o.call(l,s);c||(s=ne(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?dt(i,u)&&nt(l,"set",s,i):nt(l,"add",s,i),this},delete(s){const i=ne(this),{has:l,get:o}=Vn(i);let a=l.call(i,s);a||(s=ne(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&nt(i,"delete",s,void 0),c},clear(){const s=ne(this),i=s.size!==0,l=s.clear();return i&&nt(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=va(s,e,t)}),n}function Wr(e,t){const n=ba(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(te(n,s)&&s in r?n:r,s,i)}const ya={get:Wr(!1,!1)},wa={get:Wr(!1,!0)},ka={get:Wr(!0,!1)},$i=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,xa=new WeakMap;function _a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ca(e){return e.__v_skip||!Object.isExtensible(e)?0:_a(Zo(e))}function cn(e){return At(e)?e:qr(e,!1,da,ya,$i)}function Sa(e){return qr(e,!1,ma,wa,Ri)}function un(e){return qr(e,!0,ga,ka,Ai)}function qr(e,t,n,r,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=Ca(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return s.set(e,o),o}function Nt(e){return At(e)?Nt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function Kr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function $a(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&oi(e,"__v_skip",!0),e}const Ce=e=>de(e)?cn(e):e,Gr=e=>de(e)?un(e):e;function we(e){return e?e.__v_isRef===!0:!1}function X(e){return Ti(e,!1)}function Ei(e){return Ti(e,!0)}function Ti(e,t){return we(e)?e:new Ra(e,t)}class Ra{constructor(t,n){this.dep=new Dr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Ce(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Fe(t)||At(t);t=r?t:ne(t),dt(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function q(e){return we(e)?e.value:e}const Aa={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Li(e){return Nt(e)?e:new Proxy(e,Aa)}class Ea{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Dr(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)&&ue!==this)return gi(this,!0),!0}get value(){const t=this.dep.track();return bi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ta(e,t,n=!1){let r,s;return le(e)?r=e:(r=e.get,s=e.set),new Ea(r,s,n)}const qn={},Kn=new WeakMap;let Et;function La(e,t=!1,n=Et){if(n){let r=Kn.get(n);r||Kn.set(n,r=[]),r.push(e)}}function Ia(e,t,n=ie){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=T=>s?T:Fe(T)||s===!1||s===0?st(T,1):st(T);let u,h,p,g,x=!1,b=!1;if(we(e)?(h=()=>e.value,x=Fe(e)):Nt(e)?(h=()=>c(e),x=!0):W(e)?(b=!0,x=e.some(T=>Nt(T)||Fe(T)),h=()=>e.map(T=>{if(we(T))return T.value;if(Nt(T))return c(T);if(le(T))return a?a(T,2):T()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(p){St();try{p()}finally{$t()}}const T=Et;Et=u;try{return a?a(e,3,[g]):e(g)}finally{Et=T}}:h=xt,t&&s){const T=h,O=s===!0?1/0:s;h=()=>st(T(),O)}const S=hi(),y=()=>{u.stop(),S&&S.active&&ni(S.effects,u)};if(i&&t){const T=t;t=(...O)=>{T(...O),y()}}let _=b?new Array(e.length).fill(qn):qn;const H=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const O=u.run();if(s||x||(b?O.some((K,z)=>dt(K,_[z])):dt(O,_))){p&&p();const K=Et;Et=u;try{const z=[O,_===qn?void 0:b&&_[0]===qn?[]:_,g];a?a(t,3,z):t(...z),_=O}finally{Et=K}}}else u.run()};return o&&o(H),u=new pi(h),u.scheduler=l?()=>l(H,!1):H,g=T=>La(T,!1,u),p=u.onStop=()=>{const T=Kn.get(u);if(T){if(a)a(T,4);else for(const O of T)O();Kn.delete(u)}},t?r?H(!0):_=u.run():l?l(H.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function st(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,we(e))st(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if(Ht(e)||Dt(e))e.forEach(r=>{st(r,t,n)});else if(li(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function fn(e,t,n,r){try{return r?e(...r):e()}catch(s){Gn(s,t,n)}}function it(e,t,n,r){if(le(e)){const s=fn(e,t,n,r);return s&&si(s)&&s.catch(i=>{Gn(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i<e.length;i++)s.push(it(e[i],t,n,r));return s}}function Gn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ie;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}o=o.parent}if(i){St(),fn(i,null,10,[e,a,c]),$t();return}}Ma(e,n,s,r,l)}function Ma(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const $e=[];let Je=-1;const Bt=[];let gt=null,Vt=0;const Ii=Promise.resolve();let Zn=null;function Wt(e){const t=Zn||Ii;return e?t.then(this?e.bind(this):e):t}function Pa(e){let t=Je+1,n=$e.length;for(;t<n;){const r=t+n>>>1,s=$e[r],i=hn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Zr(e){if(!(e.flags&1)){const t=hn(e),n=$e[$e.length-1];!n||!(e.flags&2)&&t>=hn(n)?$e.push(e):$e.splice(Pa(t),0,e),e.flags|=1,Mi()}}function Mi(){Zn||(Zn=Ii.then(ji))}function Oa(e){W(e)?Bt.push(...e):gt&&e.id===-1?gt.splice(Vt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Mi()}function Pi(e,t,n=Je+1){for(;n<$e.length;n++){const r=$e[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;$e.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Oi(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>hn(n)-hn(r));if(Bt.length=0,gt){gt.push(...t);return}for(gt=t,Vt=0;Vt<gt.length;Vt++){const n=gt[Vt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gt=null,Vt=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ji(e){try{for(Je=0;Je<$e.length;Je++){const t=$e[Je];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(;Je<$e.length;Je++){const t=$e[Je];t&&(t.flags&=-2)}Je=-1,$e.length=0,Oi(),Zn=null,($e.length||Bt.length)&&ji()}}let Te=null,zi=null;function Jn(e){const t=Te;return Te=e,zi=e&&e.type.__scopeId||null,t}function ja(e,t=Te,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&nl(-1);const i=Jn(t);let l;try{l=e(...s)}finally{Jn(i),r._d&&nl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Yn(e,t){if(Te===null)return e;const n=ir(Te),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=ie]=t[s];i&&(le(i)&&(i={mounted:i,updated:i}),i.deep&&st(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Tt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(St(),it(a,n,8,[e.el,o,e,t]),$t())}}const za=Symbol("_vte"),Fa=e=>e.__isTeleport;function Jr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jr(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 le(e)?je({name:e.name},t,{setup:e}):e}function Da(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mt(e){const t=il(),n=Ei(null);if(t){const s=t.refs===ie?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Xn(e,t,n,r,s=!1){if(W(e)){e.forEach((x,b)=>Xn(x,t&&(W(t)?t[b]:t),n,r,s));return}if(dn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Xn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ir(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ie?o.refs={}:o.refs,h=o.setupState,p=ne(h),g=h===ie?()=>!1:x=>te(p,x);if(c!=null&&c!==a&&(be(c)?(u[c]=null,g(c)&&(h[c]=null)):we(c)&&(c.value=null)),le(a))fn(a,o,12,[l,u]);else{const x=be(a),b=we(a);if(x||b){const S=()=>{if(e.f){const y=x?g(a)?h[a]:u[a]:a.value;s?W(y)&&ni(y,i):W(y)?y.includes(i)||y.push(i):x?(u[a]=[i],g(a)&&(h[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,g(a)&&(h[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(S.id=-1,Pe(S,n)):S()}}}tn().requestIdleCallback,tn().cancelIdleCallback;const dn=e=>!!e.type.__asyncLoader,Ha=e=>e.type.__isKeepAlive;function Ua(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{St();const o=as(n),a=it(t,n,e,l);return o(),$t(),a});return r?s.unshift(i):s.push(i),i}}const Yr=e=>(t,n=Re)=>{(!wn||e==="sp")&&Ua(e,(...r)=>t(...r),n)},gn=Yr("m"),Na=Yr("bum"),Xr=Yr("um"),Ba="components";function Va(e,t){return qa(Ba,e,!0,t)||e}const Wa=Symbol.for("v-ndc");function qa(e,t,n=!0,r=!1){const s=Te||Re;if(s){const i=s.type;{const o=Ec(i,!1);if(o&&(o===t||o===ze(t)||o===Hn(ze(t))))return i}const l=Fi(s[e]||i[e],t)||Fi(s.appContext[e],t);return!l&&r?i:l}}function Fi(e,t){return e&&(e[t]||e[ze(t)]||e[Hn(ze(t))])}function De(e,t,n,r){let s;const i=n,l=W(e);if(l||be(e)){const o=l&&Nt(e);let a=!1;o&&(a=!Fe(e),e=Bn(e)),s=new Array(e.length);for(let c=0,u=e.length;c<u;c++)s[c]=t(a?Ce(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(de(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const Qr=e=>e?ol(e)?ir(e):Qr(e.parent):null,mn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qr(e.parent),$root:e=>Qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Zr(e.update)}),$nextTick:e=>e.n||(e.n=Wt.bind(e.proxy)),$watch:e=>xt}),es=(e,t)=>e!==ie&&!e.__isScriptSetup&&te(e,t),Ka={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(es(r,t))return l[t]=1,r[t];if(s!==ie&&te(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&te(c,t))return l[t]=3,i[t];if(n!==ie&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=mn[t];let h,p;if(u)return t==="$attrs"&&_e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ie&&te(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,te(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return es(s,t)?(s[t]=n,!0):r!==ie&&te(r,t)?(r[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==ie&&te(e,l)||es(t,l)||(o=i[0])&&te(o,l)||te(r,l)||te(mn,l)||te(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Di(){return{app:null,config:{isNativeTag:Ko,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 Ga=0;function Za(e,t){return function(r,s=null){le(r)||(r=je({},r)),s!=null&&!de(s)&&(s=null);const i=Di(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Ga++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Lc,get config(){return i.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?(i.components[u]=h,c):i.components[u]},directive(u,h){return h?(i.directives[u]=h,c):i.directives[u]},mount(u,h,p){if(!a){const g=c._ceVNode||oe(r,s);return g.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),h&&t?t(g,u):e(g,u,p),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(it(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return i.provides[u]=h,c},runWithContext(u){const h=qt;qt=c;try{return u()}finally{qt=h}}};return c}}let qt=null;function Ja(e,t){if(Re){let n=Re.provides;const r=Re.parent&&Re.parent.provides;r===n&&(n=Re.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Re||Te;if(r||qt){const s=qt?qt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}const Hi={},Ui=()=>Object.create(Hi),Ni=e=>Object.getPrototypeOf(e)===Hi;function Ya(e,t,n,r=!1){const s={},i=Ui();e.propsDefaults=Object.create(null),Bi(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Sa(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Xa(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=ne(s),[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 p=u[h];if(er(e.emitsOptions,p))continue;const g=t[p];if(a)if(te(i,p))g!==i[p]&&(i[p]=g,c=!0);else{const x=ze(p);s[x]=ts(a,o,x,g,e,!1)}else g!==i[p]&&(i[p]=g,c=!0)}}}else{Bi(e,t,s,i)&&(c=!0);let u;for(const h in o)(!t||!te(t,h)&&((u=_t(h))===h||!te(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(s[h]=ts(a,o,h,void 0,e,!0)):delete s[h]);if(i!==o)for(const h in i)(!t||!te(t,h))&&(delete i[h],c=!0)}c&&nt(e.attrs,"set","")}function Bi(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(en(a))continue;const c=t[a];let u;s&&te(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:er(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=ne(n),c=o||ie;for(let u=0;u<i.length;u++){const h=i[u];n[h]=ts(s,a,h,c[h],e,!te(c,h))}}return l}function ts(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=te(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&le(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=as(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===_t(n))&&(r=!0))}return r}function Qa(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i&&!!1)return de(e)&&r.set(e,Ft),Ft;if(W(i))for(let u=0;u<i.length;u++){const h=ze(i[u]);Vi(h)&&(l[h]=ie)}else if(i)for(const u in i){const h=ze(u);if(Vi(h)){const p=i[u],g=l[h]=W(p)||le(p)?{type:p}:je({},p),x=g.type;let b=!1,S=!0;if(W(x))for(let y=0;y<x.length;++y){const _=x[y],H=le(_)&&_.name;if(H==="Boolean"){b=!0;break}else H==="String"&&(S=!1)}else b=le(x)&&x.name==="Boolean";g[0]=b,g[1]=S,(b||te(g,"default"))&&o.push(h)}}const c=[l,o];return de(e)&&r.set(e,c),c}function Vi(e){return e[0]!=="$"&&!en(e)}const Wi=e=>e[0]==="_"||e==="$stable",ns=e=>W(e)?e.map(Ye):[Ye(e)],ec=(e,t,n)=>{if(t._n)return t;const r=ja((...s)=>ns(t(...s)),n);return r._c=!1,r},qi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Wi(s))continue;const i=e[s];if(le(i))t[s]=ec(s,i,r);else if(i!=null){const l=ns(i);t[s]=()=>l}}},Ki=(e,t)=>{const n=ns(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},tc=(e,t,n)=>{const r=e.slots=Ui();if(e.vnode.shapeFlag&32){const s=t._;s?(Gi(r,t,n),n&&oi(r,"_",s,!0)):qi(t,r)}else t&&Ki(e,t)},nc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ie;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:Gi(s,t,n):(i=!t.$stable,qi(t,s)),l=t}else t&&(Ki(e,t),l={default:1});if(i)for(const o in s)!Wi(o)&&l[o]==null&&delete s[o]};function rc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(tn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=vc;function sc(e){return ic(e)}function ic(e,t){rc();const n=tn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:g=xt,insertStaticContent:x}=e,b=(f,d,m,w=null,v=null,k=null,E=void 0,A=null,$=!!d.dynamicChildren)=>{if(f===d)return;f&&!yn(f,d)&&(w=wt(f),Ne(f,v,k,!0),f=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:C,ref:U,shapeFlag:I}=d;switch(C){case tr:S(f,d,m,w);break;case It:y(f,d,m,w);break;case is:f==null&&_(d,m,w,E);break;case fe:G(f,d,m,w,v,k,E,A,$);break;default:I&1?O(f,d,m,w,v,k,E,A,$):I&6?B(f,d,m,w,v,k,E,A,$):(I&64||I&128)&&C.process(f,d,m,w,v,k,E,A,$,R)}U!=null&&v&&Xn(U,f&&f.ref,k,d||f,!d)},S=(f,d,m,w)=>{if(f==null)r(d.el=o(d.children),m,w);else{const v=d.el=f.el;d.children!==f.children&&c(v,d.children)}},y=(f,d,m,w)=>{f==null?r(d.el=a(d.children||""),m,w):d.el=f.el},_=(f,d,m,w)=>{[f.el,f.anchor]=x(f.children,d,m,w,f.el,f.anchor)},H=({el:f,anchor:d},m,w)=>{let v;for(;f&&f!==d;)v=p(f),r(f,m,w),f=v;r(d,m,w)},T=({el:f,anchor:d})=>{let m;for(;f&&f!==d;)m=p(f),s(f),f=m;s(d)},O=(f,d,m,w,v,k,E,A,$)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),f==null?K(d,m,w,v,k,E,A,$):Ee(f,d,v,k,E,A,$)},K=(f,d,m,w,v,k,E,A)=>{let $,C;const{props:U,shapeFlag:I,transition:D,dirs:N}=f;if($=f.el=l(f.type,k,U&&U.is,U),I&8?u($,f.children):I&16&&J(f.children,$,null,w,v,rs(f,k),E,A),N&&Tt(f,null,w,"created"),z($,f,f.scopeId,E,w),U){for(const ce in U)ce!=="value"&&!en(ce)&&i($,ce,null,U[ce],k,w);"value"in U&&i($,"value",null,U.value,k),(C=U.onVnodeBeforeMount)&&Xe(C,w,f)}N&&Tt(f,null,w,"beforeMount");const Y=lc(v,D);Y&&D.beforeEnter($),r($,d,m),((C=U&&U.onVnodeMounted)||Y||N)&&Pe(()=>{C&&Xe(C,w,f),Y&&D.enter($),N&&Tt(f,null,w,"mounted")},v)},z=(f,d,m,w,v)=>{if(m&&g(f,m),w)for(let k=0;k<w.length;k++)g(f,w[k]);if(v){let k=v.subTree;if(d===k||tl(k.type)&&(k.ssContent===d||k.ssFallback===d)){const E=v.vnode;z(f,E,E.scopeId,E.slotScopeIds,v.parent)}}},J=(f,d,m,w,v,k,E,A,$=0)=>{for(let C=$;C<f.length;C++){const U=f[C]=A?vt(f[C]):Ye(f[C]);b(null,U,d,m,w,v,k,E,A)}},Ee=(f,d,m,w,v,k,E)=>{const A=d.el=f.el;let{patchFlag:$,dynamicChildren:C,dirs:U}=d;$|=f.patchFlag&16;const I=f.props||ie,D=d.props||ie;let N;if(m&&Lt(m,!1),(N=D.onVnodeBeforeUpdate)&&Xe(N,m,d,f),U&&Tt(d,f,m,"beforeUpdate"),m&&Lt(m,!0),(I.innerHTML&&D.innerHTML==null||I.textContent&&D.textContent==null)&&u(A,""),C?Z(f.dynamicChildren,C,A,m,w,rs(d,v),k):E||pt(f,d,A,null,m,w,rs(d,v),k,!1),$>0){if($&16)M(A,I,D,m,v);else if($&2&&I.class!==D.class&&i(A,"class",null,D.class,v),$&4&&i(A,"style",I.style,D.style,v),$&8){const Y=d.dynamicProps;for(let ce=0;ce<Y.length;ce++){const se=Y[ce],Le=I[se],xe=D[se];(xe!==Le||se==="value")&&i(A,se,Le,xe,v,m)}}$&1&&f.children!==d.children&&u(A,d.children)}else!E&&C==null&&M(A,I,D,m,v);((N=D.onVnodeUpdated)||U)&&Pe(()=>{N&&Xe(N,m,d,f),U&&Tt(d,f,m,"updated")},w)},Z=(f,d,m,w,v,k,E)=>{for(let A=0;A<d.length;A++){const $=f[A],C=d[A],U=$.el&&($.type===fe||!yn($,C)||$.shapeFlag&70)?h($.el):m;b($,C,U,null,w,v,k,E,!0)}},M=(f,d,m,w,v)=>{if(d!==m){if(d!==ie)for(const k in d)!en(k)&&!(k in m)&&i(f,k,d[k],null,v,w);for(const k in m){if(en(k))continue;const E=m[k],A=d[k];E!==A&&k!=="value"&&i(f,k,A,E,v,w)}"value"in m&&i(f,"value",d.value,m.value,v)}},G=(f,d,m,w,v,k,E,A,$)=>{const C=d.el=f?f.el:o(""),U=d.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:D,slotScopeIds:N}=d;N&&(A=A?A.concat(N):N),f==null?(r(C,m,w),r(U,m,w),J(d.children||[],m,U,v,k,E,A,$)):I>0&&I&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,v,k,E,A),(d.key!=null||v&&d===v.subTree)&&Zi(f,d,!0)):pt(f,d,m,U,v,k,E,A,$)},B=(f,d,m,w,v,k,E,A,$)=>{d.slotScopeIds=A,f==null?d.shapeFlag&512?v.ctx.activate(d,m,w,E,$):ge(d,m,w,v,k,E,$):ye(f,d,$)},ge=(f,d,m,w,v,k,E)=>{const A=f.component=Cc(f,w,v);if(Ha(f)&&(A.ctx.renderer=R),Sc(A,!1,E),A.asyncDep){if(v&&v.registerDep(A,ve,E),!f.el){const $=A.subTree=oe(It);y(null,$,d,m)}}else ve(A,f,d,m,v,k,E)},ye=(f,d,m)=>{const w=d.component=f.component;if(gc(f,d,m))if(w.asyncDep&&!w.asyncResolved){et(w,d,m);return}else w.next=d,w.update();else d.el=f.el,w.vnode=d},ve=(f,d,m,w,v,k,E)=>{const A=()=>{if(f.isMounted){let{next:I,bu:D,u:N,parent:Y,vnode:ce}=f;{const Ie=Ji(f);if(Ie){I&&(I.el=ce.el,et(f,I,E)),Ie.asyncDep.then(()=>{f.isUnmounted||A()});return}}let se=I,Le;Lt(f,!1),I?(I.el=ce.el,et(f,I,E)):I=ce,D&&Un(D),(Le=I.props&&I.props.onVnodeBeforeUpdate)&&Xe(Le,Y,I,ce),Lt(f,!0);const xe=ss(f),Be=f.subTree;f.subTree=xe,b(Be,xe,h(Be.el),wt(Be),f,v,k),I.el=xe.el,se===null&&mc(f,xe.el),N&&Pe(N,v),(Le=I.props&&I.props.onVnodeUpdated)&&Pe(()=>Xe(Le,Y,I,ce),v)}else{let I;const{el:D,props:N}=d,{bm:Y,m:ce,parent:se,root:Le,type:xe}=f,Be=dn(d);if(Lt(f,!1),Y&&Un(Y),!Be&&(I=N&&N.onVnodeBeforeMount)&&Xe(I,se,d),Lt(f,!0),D&&he){const Ie=()=>{f.subTree=ss(f),he(D,f.subTree,f,v,null)};Be&&xe.__asyncHydrate?xe.__asyncHydrate(D,f,Ie):Ie()}else{Le.ce&&Le.ce._injectChildStyle(xe);const Ie=f.subTree=ss(f);b(null,Ie,m,w,f,v,k),d.el=Ie.el}if(ce&&Pe(ce,v),!Be&&(I=N&&N.onVnodeMounted)){const Ie=d;Pe(()=>Xe(I,se,Ie),v)}(d.shapeFlag&256||se&&dn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Pe(f.a,v),f.isMounted=!0,d=m=w=null}};f.scope.on();const $=f.effect=new pi(A);f.scope.off();const C=f.update=$.run.bind($),U=f.job=$.runIfDirty.bind($);U.i=f,U.id=f.uid,$.scheduler=()=>Zr(U),Lt(f,!0),C()},et=(f,d,m)=>{d.component=f;const w=f.vnode.props;f.vnode=d,f.next=null,Xa(f,d.props,w,m),nc(f,d.children,m),St(),Pi(f),$t()},pt=(f,d,m,w,v,k,E,A,$=!1)=>{const C=f&&f.children,U=f?f.shapeFlag:0,I=d.children,{patchFlag:D,shapeFlag:N}=d;if(D>0){if(D&128){Ln(C,I,m,w,v,k,E,A,$);return}else if(D&256){Jt(C,I,m,w,v,k,E,A,$);return}}N&8?(U&16&&yt(C,v,k),I!==C&&u(m,I)):U&16?N&16?Ln(C,I,m,w,v,k,E,A,$):yt(C,v,k,!0):(U&8&&u(m,""),N&16&&J(I,m,w,v,k,E,A,$))},Jt=(f,d,m,w,v,k,E,A,$)=>{f=f||Ft,d=d||Ft;const C=f.length,U=d.length,I=Math.min(C,U);let D;for(D=0;D<I;D++){const N=d[D]=$?vt(d[D]):Ye(d[D]);b(f[D],N,m,null,v,k,E,A,$)}C>U?yt(f,v,k,!0,!1,I):J(d,m,w,v,k,E,A,$,I)},Ln=(f,d,m,w,v,k,E,A,$)=>{let C=0;const U=d.length;let I=f.length-1,D=U-1;for(;C<=I&&C<=D;){const N=f[C],Y=d[C]=$?vt(d[C]):Ye(d[C]);if(yn(N,Y))b(N,Y,m,null,v,k,E,A,$);else break;C++}for(;C<=I&&C<=D;){const N=f[I],Y=d[D]=$?vt(d[D]):Ye(d[D]);if(yn(N,Y))b(N,Y,m,null,v,k,E,A,$);else break;I--,D--}if(C>I){if(C<=D){const N=D+1,Y=N<U?d[N].el:w;for(;C<=D;)b(null,d[C]=$?vt(d[C]):Ye(d[C]),m,Y,v,k,E,A,$),C++}}else if(C>D)for(;C<=I;)Ne(f[C],v,k,!0),C++;else{const N=C,Y=C,ce=new Map;for(C=Y;C<=D;C++){const Me=d[C]=$?vt(d[C]):Ye(d[C]);Me.key!=null&&ce.set(Me.key,C)}let se,Le=0;const xe=D-Y+1;let Be=!1,Ie=0;const Yt=new Array(xe);for(C=0;C<xe;C++)Yt[C]=0;for(C=N;C<=I;C++){const Me=f[C];if(Le>=xe){Ne(Me,v,k,!0);continue}let Ke;if(Me.key!=null)Ke=ce.get(Me.key);else for(se=Y;se<=D;se++)if(Yt[se-Y]===0&&yn(Me,d[se])){Ke=se;break}Ke===void 0?Ne(Me,v,k,!0):(Yt[Ke-Y]=C+1,Ke>=Ie?Ie=Ke:Be=!0,b(Me,d[Ke],m,null,v,k,E,A,$),Le++)}const $s=Be?oc(Yt):Ft;for(se=$s.length-1,C=xe-1;C>=0;C--){const Me=Y+C,Ke=d[Me],Rs=Me+1<U?d[Me+1].el:w;Yt[C]===0?b(null,Ke,m,Rs,v,k,E,A,$):Be&&(se<0||C!==$s[se]?Ot(Ke,m,Rs,2):se--)}}},Ot=(f,d,m,w,v=null)=>{const{el:k,type:E,transition:A,children:$,shapeFlag:C}=f;if(C&6){Ot(f.component.subTree,d,m,w);return}if(C&128){f.suspense.move(d,m,w);return}if(C&64){E.move(f,d,m,R);return}if(E===fe){r(k,d,m);for(let I=0;I<$.length;I++)Ot($[I],d,m,w);r(f.anchor,d,m);return}if(E===is){H(f,d,m);return}if(w!==2&&C&1&&A)if(w===0)A.beforeEnter(k),r(k,d,m),Pe(()=>A.enter(k),v);else{const{leave:I,delayLeave:D,afterLeave:N}=A,Y=()=>r(k,d,m),ce=()=>{I(k,()=>{Y(),N&&N()})};D?D(k,Y,ce):ce()}else r(k,d,m)},Ne=(f,d,m,w=!1,v=!1)=>{const{type:k,props:E,ref:A,children:$,dynamicChildren:C,shapeFlag:U,patchFlag:I,dirs:D,cacheIndex:N}=f;if(I===-2&&(v=!1),A!=null&&Xn(A,null,m,f,!0),N!=null&&(d.renderCache[N]=void 0),U&256){d.ctx.deactivate(f);return}const Y=U&1&&D,ce=!dn(f);let se;if(ce&&(se=E&&E.onVnodeBeforeUnmount)&&Xe(se,d,f),U&6)Mn(f.component,m,w);else{if(U&128){f.suspense.unmount(m,w);return}Y&&Tt(f,null,d,"beforeUnmount"),U&64?f.type.remove(f,d,m,R,w):C&&!C.hasOnce&&(k!==fe||I>0&&I&64)?yt(C,d,m,!1,!0):(k===fe&&I&384||!v&&U&16)&&yt($,d,m),w&&In(f)}(ce&&(se=E&&E.onVnodeUnmounted)||Y)&&Pe(()=>{se&&Xe(se,d,f),Y&&Tt(f,null,d,"unmounted")},m)},In=f=>{const{type:d,el:m,anchor:w,transition:v}=f;if(d===fe){xr(m,w);return}if(d===is){T(f);return}const k=()=>{s(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:E,delayLeave:A}=v,$=()=>E(m,k);A?A(f.el,k,$):$()}else k()},xr=(f,d)=>{let m;for(;f!==d;)m=p(f),s(f),f=m;s(d)},Mn=(f,d,m)=>{const{bum:w,scope:v,job:k,subTree:E,um:A,m:$,a:C}=f;Yi($),Yi(C),w&&Un(w),v.stop(),k&&(k.flags|=8,Ne(E,f,d,m)),A&&Pe(A,d),Pe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},yt=(f,d,m,w=!1,v=!1,k=0)=>{for(let E=k;E<f.length;E++)Ne(f[E],d,m,w,v)},wt=f=>{if(f.shapeFlag&6)return wt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),m=d&&d[za];return m?p(m):d};let jt=!1;const j=(f,d,m)=>{f==null?d._vnode&&Ne(d._vnode,null,null,!0):b(d._vnode||null,f,d,null,null,null,m),d._vnode=f,jt||(jt=!0,Pi(),Oi(),jt=!1)},R={p:b,um:Ne,m:Ot,r:In,mt:ge,mc:J,pc:pt,pbc:Z,n:wt,o:e};let V,he;return{render:j,hydrate:V,createApp:Za(j,V)}}function rs({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 Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zi(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(s))for(let i=0;i<r.length;i++){const l=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=vt(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&Zi(l,o)),o.type===tr&&(o.el=l.el)}}function oc(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<c?i=o+1:l=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function Ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ji(t)}function Yi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ac=Symbol.for("v-scx"),cc=()=>Qn(ac);function Xi(e,t){return Qi(e,null,t)}function He(e,t,n){return Qi(e,t,n)}function Qi(e,t,n=ie){const{immediate:r,deep:s,flush:i,once:l}=n,o=je({},n),a=t&&r||!t&&i!=="post";let c;if(wn){if(i==="sync"){const g=cc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=xt,g.resume=xt,g.pause=xt,g}}const u=Re;o.call=(g,x,b)=>it(g,u,x,b);let h=!1;i==="post"?o.scheduler=g=>{Pe(g,u&&u.suspense)}:i!=="sync"&&(h=!0,o.scheduler=(g,x)=>{x?g():Zr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=Ia(e,t,o);return wn&&(c?c.push(p):a&&p()),p}const uc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${_t(t)}Modifiers`];function fc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ie;let s=n;const i=t.startsWith("update:"),l=i&&uc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>be(u)?u.trim():u)),l.number&&(s=n.map(Nn)));let o,a=r[o=Lr(t)]||r[o=Lr(ze(t))];!a&&i&&(a=r[o=Lr(_t(t))]),a&&it(a,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,it(c,e,6,s)}}function hc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={};return!i&&!!1?(de(e)&&r.set(e,null),null):(W(i)?i.forEach(a=>l[a]=null):je(l,i),de(e)&&r.set(e,l),l)}function er(e,t){return!e||!Fn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,_t(t))||te(e,t))}function ss(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:p,setupState:g,ctx:x,inheritAttrs:b}=e,S=Jn(e);let y,_;try{if(n.shapeFlag&4){const T=s||r,O=T;y=Ye(c.call(O,T,u,h,g,p,x)),_=o}else{const T=t;y=Ye(T.length>1?T(h,{attrs:o,slots:l,emit:a}):T(h,null)),_=t.props?o:pc(o)}}catch(T){vn.length=0,Gn(T,e,1),y=oe(It)}let H=y;if(_&&b!==!1){const T=Object.keys(_),{shapeFlag:O}=H;T.length&&O&7&&(i&&T.some(Er)&&(_=dc(_,i)),H=Kt(H,_,!1,!0))}return n.dirs&&(H=Kt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&Jr(H,n.transition),y=H,Jn(S),y}const pc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Fn(n))&&((t||(t={}))[n]=e[n]);return t},dc=(e,t)=>{const n={};for(const r in e)(!Er(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gc(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?el(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const p=u[h];if(l[p]!==r[p]&&!er(c,p))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?el(r,l,c):!0:!!l;return!1}function el(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!er(n,i))return!0}return!1}function mc({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 tl=e=>e.__isSuspense;function vc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Oa(e)}const fe=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),vn=[];let Oe=null;function L(e=!1){vn.push(Oe=e?null:[])}function bc(){vn.pop(),Oe=vn[vn.length-1]||null}let bn=1;function nl(e,t=!1){bn+=e,e<0&&Oe&&t&&(Oe.hasOnce=!0)}function rl(e){return e.dynamicChildren=bn>0?Oe||Ft:null,bc(),bn>0&&Oe&&Oe.push(e),e}function P(e,t,n,r,s,i){return rl(F(e,t,n,r,s,i,!0))}function lt(e,t,n,r,s){return rl(oe(e,t,n,r,s,!0))}function nr(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const sl=({key:e})=>e??null,rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||le(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,s=null,i=e===fe?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sl(t),ref:t&&rr(t),scopeId:zi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Te};return o?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),bn>0&&!l&&Oe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Oe.push(a),a}const oe=yc;function yc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Wa)&&(e=It),nr(e)){const o=Kt(e,t,!0);return n&&ls(o,n),bn>0&&!i&&Oe&&(o.shapeFlag&6?Oe[Oe.indexOf(e)]=o:Oe.push(o)),o.patchFlag=-2,o}if(Tc(e)&&(e=e.__vccOpts),t){t=wc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=me(o)),de(a)&&(Kr(a)&&!W(a)&&(a=je({},a)),t.style=nn(a))}const l=be(e)?1:tl(e)?128:Fa(e)?64:de(e)?4:le(e)?2:0;return F(e,t,n,r,s,l,i,!0)}function wc(e){return e?Kr(e)||Ni(e)?je({},e):e:null}function Kt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?kc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&sl(c),ref:t&&t.ref?n&&i?W(i)?i.concat(rr(t)):[i,rr(t)]:rr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?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&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Jr(u,a.clone(u)),u}function ot(e=" ",t=0){return oe(tr,null,e,t)}function Q(e="",t=!1){return t?(L(),lt(It,null,e)):oe(It,null,e)}function Ye(e){return e==null||typeof e=="boolean"?oe(It):W(e)?oe(fe,null,e.slice()):nr(e)?vt(e):oe(tr,null,String(e))}function vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ls(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ni(t)?t._ctx=Te:s===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),r&64?(n=16,t=[ot(t)]):n=8);e.children=t,e.shapeFlag|=n}function kc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=me([t.class,r.class]));else if(s==="style")t.style=nn([t.style,r.style]);else if(Fn(s)){const i=t[s],l=r[s];l&&i!==l&&!(W(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Xe(e,t,n,r=null){it(e,t,7,[n,r])}const xc=Di();let _c=0;function Cc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||xc,i={uid:_c++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ia(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qa(r,s),emitsOptions:hc(r,s),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:r.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=fc.bind(null,i),e.ce&&e.ce(i),i}let Re=null;const il=()=>Re||Te;let sr,os;{const e=tn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};sr=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),os=t("__VUE_SSR_SETTERS__",n=>wn=n)}const as=e=>{const t=Re;return sr(e),e.scope.on(),()=>{e.scope.off(),sr(t)}},ll=()=>{Re&&Re.scope.off(),sr(null)};function ol(e){return e.vnode.shapeFlag&4}let wn=!1;function Sc(e,t=!1,n=!1){t&&os(t);const{props:r,children:s}=e.vnode,i=ol(e);Ya(e,r,i,t),tc(e,s,n);const l=i?$c(e,t):void 0;return t&&os(!1),l}function $c(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ka);const{setup:r}=n;if(r){St();const s=e.setupContext=r.length>1?Ac(e):null,i=as(e),l=fn(r,e,0,[e.props,s]),o=si(l);if($t(),i(),(o||e.sp)&&!dn(e)&&Da(e),o){if(l.then(ll,ll),t)return l.then(a=>{al(e,a,t)}).catch(a=>{Gn(a,e,0)});e.asyncDep=l}else al(e,l,t)}else ul(e,t)}function al(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Li(t)),ul(e,n)}let cl;function ul(e,t,n){const r=e.type;if(!e.render){if(!t&&cl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=je(je({isCustomElement:i,delimiters:o},l),a);r.render=cl(s,c)}}e.render=r.render||xt}}const Rc={get(e,t){return _e(e,"get",""),e[t]}};function Ac(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Li($a(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 Ec(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Tc(e){return le(e)&&"__vccOpts"in e}const ke=(e,t)=>Ta(e,t,wn);function re(e,t,n){const r=arguments.length;return r===2?de(t)&&!W(t)?nr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&nr(n)&&(n=[n]),oe(e,t,n))}const Lc="3.5.13";/**
|
||
* @vue/runtime-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let cs;const fl=typeof window<"u"&&window.trustedTypes;if(fl)try{cs=fl.createPolicy("vue",{createHTML:e=>e})}catch{}const hl=cs?e=>cs.createHTML(e):e=>e,Ic="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",at=typeof document<"u"?document:null,pl=at&&at.createElement("template"),Pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?at.createElementNS(Ic,e):t==="mathml"?at.createElementNS(Mc,e):n?at.createElement(e,{is:n}):at.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>at.createTextNode(e),createComment:e=>at.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>at.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{pl.innerHTML=hl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=pl.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]}},Oc=Symbol("_vtc");function jc(e,t,n){const r=e[Oc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lr=Symbol("_vod"),dl=Symbol("_vsh"),gl={beforeMount(e,{value:t},{transition:n}){e[lr]=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[lr]:"none",e[dl]=!t}const zc=Symbol(""),Fc=/(^|;)\s*display\s*:/;function Dc(e,t,n){const r=e.style,s=be(n);let i=!1;if(n&&!s){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&or(r,o,"")}else for(const l in t)n[l]==null&&or(r,l,"");for(const l in n)l==="display"&&(i=!0),or(r,l,n[l])}else if(s){if(t!==n){const l=r[zc];l&&(n+=";"+l),r.cssText=n,i=Fc.test(n)}}else t&&e.removeAttribute("style");lr in e&&(e[lr]=i?r.display:"",e[dl]&&(r.display="none"))}const ml=/\s*!important$/;function or(e,t,n){if(W(n))n.forEach(r=>or(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Hc(e,t);ml.test(n)?e.setProperty(_t(r),n.replace(ml,""),"important"):e[r]=n}}const vl=["Webkit","Moz","ms"],us={};function Hc(e,t){const n=us[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return us[t]=r;r=Hn(r);for(let s=0;s<vl.length;s++){const i=vl[s]+r;if(i in e)return us[t]=i}return t}const bl="http://www.w3.org/1999/xlink";function yl(e,t,n,r,s,i=ra(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(bl,t.slice(6,t.length)):e.setAttributeNS(bl,t,n):n==null||i&&!ci(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ze(n)?String(n):n)}function wl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?hl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=ci(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(s||t)}function ct(e,t,n,r){e.addEventListener(t,n,r)}function Uc(e,t,n,r){e.removeEventListener(t,n,r)}const kl=Symbol("_vei");function Nc(e,t,n,r,s=null){const i=e[kl]||(e[kl]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=Bc(t);if(r){const c=i[t]=qc(r,s);ct(e,o,c,a)}else l&&(Uc(e,o,l,a),i[t]=void 0)}}const xl=/(?:Once|Passive|Capture)$/;function Bc(e){let t;if(xl.test(e)){t={};let r;for(;r=e.match(xl);)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 fs=0;const Vc=Promise.resolve(),Wc=()=>fs||(Vc.then(()=>fs=0),fs=Date.now());function qc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;it(Kc(r,n.value),t,5,[r])};return n.value=e,n.attached=Wc(),n}function Kc(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const _l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?jc(e,r,l):t==="style"?Dc(e,n,r):Fn(t)?Er(t)||Nc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,r,l))?(wl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yl(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(r))?wl(e,ze(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yl(e,t,r,l))};function Zc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_l(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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return _l(t)&&be(n)?!1:t in e}const bt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Un(t,n):t};function Jc(e){e.target.composing=!0}function Cl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),hs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ue]=bt(s);const i=r||s.props&&s.props.type==="number";ct(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=Nn(o)),e[Ue](o)}),n&&ct(e,"change",()=>{e.value=e.value.trim()}),t||(ct(e,"compositionstart",Jc),ct(e,"compositionend",Cl),ct(e,"change",Cl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[Ue]=bt(l),e.composing)return;const o=(i||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||s&&e.value.trim()===a)||(e.value=a))}},Yc={deep:!0,created(e,t,n){e[Ue]=bt(n),ct(e,"change",()=>{const r=e._modelValue,s=Gt(e),i=e.checked,l=e[Ue];if(W(r)){const o=Ir(r,s),a=o!==-1;if(i&&!a)l(r.concat(s));else if(!i&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Ht(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Rl(e,i))})},mounted:Sl,beforeUpdate(e,t,n){e[Ue]=bt(n),Sl(e,t,n)}};function Sl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(W(t))s=Ir(t,r.props.value)>-1;else if(Ht(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,Rl(e,!0))}e.checked!==s&&(e.checked=s)}const Xc={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ue]=bt(n),ct(e,"change",()=>{e[Ue](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ue]=bt(r),t!==n&&(e.checked=Ct(t,r.props.value))}},Qc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ht(t);ct(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Nn(Gt(l)):Gt(l));e[Ue](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Wt(()=>{e._assigning=!1})}),e[Ue]=bt(r)},mounted(e,{value:t}){$l(e,t)},beforeUpdate(e,t,n){e[Ue]=bt(n)},updated(e,{value:t}){e._assigning||$l(e,t)}};function $l(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Ht(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=Gt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Ir(t,o)>-1}else l.selected=t.has(o);else if(Ct(Gt(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eu={created(e,t,n){ar(e,t,n,null,"created")},mounted(e,t,n){ar(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ar(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ar(e,t,n,r,"updated")}};function tu(e,t){switch(e){case"SELECT":return Qc;case"TEXTAREA":return hs;default:switch(t){case"checkbox":return Yc;case"radio":return Xc;default:return hs}}}function ar(e,t,n,r,s){const l=tu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const nu=je({patchProp:Gc},Pc);let Al;function ru(){return Al||(Al=sc(nu))}const su=(...e)=>{const t=ru().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=lu(r);if(!s)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,iu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function iu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lu(e){return be(e)?document.querySelector(e):e}function xn(e){return hi()?(la(e),!0):!1}function ut(e){return typeof e=="function"?e():q(e)}const cr=typeof window<"u"&&typeof document<"u",ou=Object.prototype.toString,au=e=>ou.call(e)==="[object Object]",ur=()=>{};function El(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Tl=e=>e();function cu(e,t={}){let n,r,s=ur;const i=o=>{clearTimeout(o),s(),s=ur};return o=>{const a=ut(e),c=ut(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{s=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&i(r),r=null,u(o())},a)})}}function uu(e=Tl){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...i)=>{t.value&&e(...i)};return{isActive:un(t),pause:n,resume:r,eventFilter:s}}function Ll(e){return il()}function fu(e,t=200,n={}){return El(cu(t,n),e)}function hu(e,t,n={}){const{eventFilter:r=Tl,...s}=n;return He(e,El(r,t),s)}function pu(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:l,resume:o,isActive:a}=uu(r);return{stop:hu(e,t,{...s,eventFilter:i}),pause:l,resume:o,isActive:a}}function ps(e,t=!0,n){Ll()?gn(e,n):t?e():Wt(e)}function du(e,t){Ll()&&Xr(e,t)}function gu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=X(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=ut(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}if(r&&cr&&c(),we(t)||typeof t=="function"){const u=He(t,()=>{l.value&&cr&&c()});xn(u)}return xn(a),{isActive:l,pause:a,resume:c}}const fr=cr?window:void 0,Il=cr?window.document:void 0;function mu(e){var t;const n=ut(e);return(t=n==null?void 0:n.$el)!=null?t:n}function hr(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=fr):[t,n,r,s]=e,!t)return ur;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],l=()=>{i.forEach(u=>u()),i.length=0},o=(u,h,p,g)=>(u.addEventListener(h,p,g),()=>u.removeEventListener(h,p,g)),a=He(()=>[mu(t),ut(s)],([u,h])=>{if(l(),!u)return;const p=au(h)?{...h}:h;i.push(...n.flatMap(g=>r.map(x=>o(u,g,x,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return xn(c),c}function vu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=fr}=t,i=X(!1),l=r?1e3/r:null;let o=0,a=null;function c(p){if(!i.value||!s)return;o||(o=p);const g=p-o;if(l&&g<l){a=s.requestAnimationFrame(c);return}o=p,e({delta:g,timestamp:p}),a=s.requestAnimationFrame(c)}function u(){!i.value&&s&&(i.value=!0,o=0,a=s.requestAnimationFrame(c))}function h(){i.value=!1,a!=null&&s&&(s.cancelAnimationFrame(a),a=null)}return n&&u(),xn(h),{isActive:un(i),pause:h,resume:u}}const pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",bu=yu();function yu(){return dr in pr||(pr[dr]=pr[dr]||{}),pr[dr]}function wu(e,t){return bu[e]||t}function ku(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 xu={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()}},Ml="vueuse-storage";function Zt(e,t,n,r={}){var s;const{flush:i="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=fr,eventFilter:p,onError:g=Z=>{console.error(Z)},initOnMounted:x}=r,b=(u?Ei:X)(typeof t=="function"?t():t);if(!n)try{n=wu("getDefaultStorage",()=>{var Z;return(Z=fr)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return b;const S=ut(t),y=ku(S),_=(s=r.serializer)!=null?s:xu[y],{pause:H,resume:T}=pu(b,()=>K(b.value),{flush:i,deep:l,eventFilter:p});h&&o&&ps(()=>{n instanceof Storage?hr(h,"storage",J):hr(h,Ml,Ee),x&&J()}),x||J();function O(Z,M){if(h){const G={key:e,oldValue:Z,newValue:M,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Ml,{detail:G}))}}function K(Z){try{const M=n.getItem(e);if(Z==null)O(M,null),n.removeItem(e);else{const G=_.write(Z);M!==G&&(n.setItem(e,G),O(M,G))}}catch(M){g(M)}}function z(Z){const M=Z?Z.newValue:n.getItem(e);if(M==null)return a&&S!=null&&n.setItem(e,_.write(S)),S;if(!Z&&c){const G=_.read(M);return typeof c=="function"?c(G,S):y==="object"&&!Array.isArray(G)?{...S,...G}:G}else return typeof M!="string"?M:_.read(M)}function J(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){b.value=S;return}if(!(Z&&Z.key!==e)){H();try{(Z==null?void 0:Z.newValue)!==_.write(b.value)&&(b.value=z(Z))}catch(M){g(M)}finally{Z?Wt(T):T()}}}}function Ee(Z){J(Z.detail)}return b}function _u(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=X(new Date),s=()=>r.value=new Date,i=n==="requestAnimationFrame"?vu(s,{immediate:!0}):gu(s,n,{immediate:!0});return t?{now:r,...i}:r}function Cu(e,t=ur,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=Il,attrs:p={}}=n,g=X(null);let x=null;const b=_=>new Promise((H,T)=>{const O=J=>(g.value=J,H(J),J);if(!h){H(!1);return}let K=!1,z=h.querySelector(`script[src="${ut(e)}"]`);z?z.hasAttribute("data-loaded")&&O(z):(z=h.createElement("script"),z.type=i,z.async=l,z.src=ut(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(p).forEach(([J,Ee])=>z==null?void 0:z.setAttribute(J,Ee)),K=!0),z.addEventListener("error",J=>T(J)),z.addEventListener("abort",J=>T(J)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),O(z)}),K&&(z=h.head.appendChild(z)),_||O(z)}),S=(_=!0)=>(x||(x=b(_)),x),y=()=>{if(!h)return;x=null,g.value&&(g.value=null);const _=h.querySelector(`script[src="${ut(e)}"]`);_&&h.head.removeChild(_)};return r&&!s&&ps(S),s||du(y),{scriptTag:g,load:S,unload:y}}let Su=0;function $u(e,t={}){const n=X(!1),{document:r=Il,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++Su}`}=t,o=X(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=He(o,p=>{h.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ps(c),i||xn(u),{id:l,css:o,unload:u,load:c,isLoaded:un(n)}}const Ru=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Au=e=>{const t=Zt("WALINE_EMOJI",{}),n=Ru(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 s={folder:e,...r};return n&&(t.value[e]=s),s})},Pl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Eu=e=>Promise.all(e.map(t=>zt(t)?Au(ei(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:Pl(l,i,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Pl(u,i,o,a),h})})}),n}),Ol=e=>{e.name!=="AbortError"&&console.error(e.message)},ds=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Tu=e=>e.type.includes("image"),jl=e=>{const t=Array.from(e).find(Tu);return t?t.getAsFile():null};function gs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Mt=gs();function zl(e){Mt=e}const _n={exec:()=>null};function ae(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Ae.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}const Ae={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")},Lu=/^(?:[ \t]*(?:\n|$))+/,Iu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mu=/^ {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+|$)/,Pu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Fl=/(?:[*+-]|\d{1,9}[.)])/,Dl=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Fl).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(),ms=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ou=/^[^\n]+/,vs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ju=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Fl).getRegex(),gr="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",bs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fu=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",bs).replace("tag",gr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hl=ae(ms).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",gr).getRegex(),Du=ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Hl).getRegex(),ys={blockquote:Du,code:Iu,def:ju,fences:Mu,heading:Pu,hr:Cn,html:Fu,lheading:Dl,list:zu,newline:Lu,paragraph:Hl,table:_n,text:Ou},Ul=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",gr).getRegex(),Hu={...ys,table:Ul,paragraph:ae(ms).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ul).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",gr).getRegex()},Uu={...ys,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bs).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(ms).replace("hr",Cn).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",Dl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Nl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,Bu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mr=/[\p{P}\p{S}]/u,ws=/[\s\p{P}\p{S}]/u,Vl=/[^\s\p{P}\p{S}]/u,Vu=ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ws).getRegex(),Wu=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,qu=ae(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,mr).getRegex(),Ku=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,ws).replace(/punct/g,mr).getRegex(),Gu=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,ws).replace(/punct/g,mr).getRegex(),Zu=ae(/\\(punct)/,"gu").replace(/punct/g,mr).getRegex(),Ju=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(),Yu=ae(bs).replace("(?:-->|$)","-->").getRegex(),Xu=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",Yu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qu=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",vr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",vr).replace("ref",vs).getRegex(),ql=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",vs).getRegex(),ef=ae("reflink|nolink(?!\\()","g").replace("reflink",Wl).replace("nolink",ql).getRegex(),ks={_backpedal:_n,anyPunctuation:Zu,autolink:Ju,blockSkip:Wu,br:Bl,code:Nu,del:_n,emStrongLDelim:qu,emStrongRDelimAst:Ku,emStrongRDelimUnd:Gu,escape:Nl,link:Qu,nolink:ql,punctuation:Vu,reflink:Wl,reflinkSearch:ef,tag:Xu,text:Bu,url:_n},tf={...ks,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",vr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vr).getRegex()},xs={...ks,escape:ae(Nl).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.!#$%&'*+\/=?_`{\|}~-]+@)))/},nf={...xs,br:ae(Bl).replace("{2,}","*").getRegex(),text:ae(xs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},br={normal:ys,gfm:Hu,pedantic:Uu},Sn={normal:ks,gfm:xs,breaks:nf,pedantic:tf},rf={"&":"&","<":"<",">":">",'"':""","'":"'"},Kl=e=>rf[e];function Qe(e,t){if(t){if(Ae.escapeTest.test(e))return e.replace(Ae.escapeReplace,Kl)}else if(Ae.escapeTestNoEncode.test(e))return e.replace(Ae.escapeReplaceNoEncode,Kl);return e}function Gl(e){try{e=encodeURI(e).replace(Ae.percentDecode,"%")}catch{return null}return e}function Zl(e,t){var i;const n=e.replace(Ae.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ae.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(Ae.slashPipe,"|");return r}function $n(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r;){const i=e.charAt(r-s-1);if(i===t&&!n)s++;else if(i!==t&&n)s++;else break}return e.slice(0,r-s)}function sf(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 Jl(e,t,n,r,s){const i=t.href,l=t.title||null,o=e[1].replace(s.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:l,text:o}}function lf(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const s=r[1];return t.split(`
|
||
`).map(i=>{const l=i.match(n.other.beginningSpace);if(l===null)return i;const[o]=l;return o.length>=s.length?i.slice(s.length):i}).join(`
|
||
`)}class yr{options;rules;lexer;constructor(t){this.options=t||Mt}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:$n(r,`
|
||
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=lf(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:s}}}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 s=$n(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.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:$n(n[0],`
|
||
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=$n(n[0],`
|
||
`).split(`
|
||
`),s="",i="";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(`
|
||
`),h=u.replace(this.rules.other.blockquoteSetextReplace,`
|
||
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
||
${u}`:u,i=i?`${i}
|
||
${h}`:h;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=p,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 x=g,b=x.raw+`
|
||
`+r.join(`
|
||
`),S=this.blockquote(b);l[l.length-1]=S,s=s.substring(0,s.length-x.raw.length)+S.raw,i=i.substring(0,i.length-x.text.length)+S.text;break}else if((g==null?void 0:g.type)==="list"){const x=g,b=x.raw+`
|
||
`+r.join(`
|
||
`),S=this.list(b);l[l.length-1]=S,s=s.substring(0,s.length-g.raw.length)+S.raw,i=i.substring(0,i.length-x.raw.length)+S.raw,r=b.substring(l.at(-1).raw.length).split(`
|
||
`);continue}}return{type:"blockquote",raw:s,tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?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 p=n[2].split(`
|
||
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),g=t.split(`
|
||
`,1)[0],x=!p.trim(),b=0;if(this.options.pedantic?(b=2,h=p.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,h=p.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(g)&&(u+=g+`
|
||
`,t=t.substring(g.length+1),c=!0),!c){const _=this.rules.other.nextBulletRegex(b),H=this.rules.other.hrRegex(b),T=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),K=this.rules.other.htmlBeginRegex(b);for(;t;){const z=t.split(`
|
||
`,1)[0];let J;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),J=g):J=g.replace(this.rules.other.tabCharGlobal," "),T.test(g)||O.test(g)||K.test(g)||_.test(g)||H.test(g))break;if(J.search(this.rules.other.nonSpaceChar)>=b||!g.trim())h+=`
|
||
`+J.slice(b);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(p)||O.test(p)||H.test(p))break;h+=`
|
||
`+g}!x&&!g.trim()&&(x=!0),u+=z+`
|
||
`,t=t.substring(z.length+1),p=J.slice(b)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let S=null,y;this.options.gfm&&(S=this.rules.other.listIsTask.exec(h),S&&(y=S[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!S,checked:y,loose:!1,text:h,tokens:[]}),i.raw+=u}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){const u=i.items[c].tokens.filter(p=>p.type==="space"),h=u.length>0&&u.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=h}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].loose=!0;return i}}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," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=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:s,title:i}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Zl(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
||
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)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 i)l.rows.push(Zl(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)===`
|
||
`?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=$n(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=sf(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 s=n[2],i="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Jl(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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 s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Jl(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...s[0]].length-1;let o,a,c=l,u=0;const h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(s=h.exec(n))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(a=[...o].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const p=[...s[0]][0].length,g=t.slice(0,l+s.index+p+a);if(Math.min(l,a)%2){const b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}const x=g.slice(2,-2);return{type:"strong",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(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,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=n[0],i="mailto:"+s;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]);s=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}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 We{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new yr,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:Ae,block:br.normal,inline:Sn.normal};this.options.pedantic?(n.block=br.pedantic,n.inline=Sn.pedantic):this.options.gfm&&(n.block=br.gfm,this.options.breaks?n.inline=Sn.breaks:n.inline=Sn.gfm),this.tokenizer.rules=n}static get rules(){return{block:br,inline:Sn}}static lex(t,n){return new We(n).lex(t)}static lexInline(t,n){return new We(n).inlineTokens(t)}lex(t){t=t.replace(Ae.carriageReturn,`
|
||
`),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 s,i,l;for(this.options.pedantic&&(t=t.replace(Ae.tabCharGlobal," ").replace(Ae.spaceLine,""));t;){let o;if((i=(s=this.options.extensions)==null?void 0:s.block)!=null&&i.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
||
`: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+=`
|
||
`+o.raw,c.text+=`
|
||
`+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+=`
|
||
`+o.raw,c.text+=`
|
||
`+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(p=>{h=p.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+=`
|
||
`+o.raw,c.text+=`
|
||
`+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+=`
|
||
`+o.raw,c.text+=`
|
||
`+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,s=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(p=>(u=p.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 p=n.at(-1);u.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.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 p=1/0;const g=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},g),typeof x=="number"&&x>=0&&(p=Math.min(p,x))}),p<1/0&&p>=0&&(h=t.substring(0,p+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),i=!0;const p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):n.push(u);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}}class wr{options;parser;constructor(t){this.options=t||Mt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const s=(l=(n||"").match(Ae.notSpaceStart))==null?void 0:l[0],i=t.replace(Ae.endingNewline,"")+`
|
||
`;return s?'<pre><code class="language-'+Qe(s)+'">'+(r?i:Qe(i,!0))+`</code></pre>
|
||
`:"<pre><code>"+(r?i:Qe(i,!0))+`</code></pre>
|
||
`}blockquote({tokens:t}){return`<blockquote>
|
||
${this.parser.parse(t)}</blockquote>
|
||
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
||
`}hr(t){return`<hr>
|
||
`}list(t){const n=t.ordered,r=t.start;let s="";for(let o=0;o<t.items.length;o++){const a=t.items[o];s+=this.listitem(a)}const i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
|
||
`+s+"</"+i+`>
|
||
`}listitem(t){var r;let n="";if(t.task){const s=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=s+" "+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=s+" "+Qe(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
||
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
||
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){const l=t.rows[i];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
||
<thead>
|
||
`+n+`</thead>
|
||
`+s+`</table>
|
||
`}tablerow({text:t}){return`<tr>
|
||
${t}</tr>
|
||
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
||
`}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>${Qe(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 s=this.parser.parseInline(r),i=Gl(t);if(i===null)return s;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+Qe(n)+'"'),l+=">"+s+"</a>",l}image({href:t,title:n,text:r}){const s=Gl(t);if(s===null)return Qe(r);t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${Qe(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qe(t.text)}}class _s{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 qe{options;renderer;textRenderer;constructor(t){this.options=t||Mt,this.options.renderer=this.options.renderer||new wr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _s}static parse(t,n){return new qe(n).parse(t)}static parseInline(t,n){return new qe(n).parseInline(t)}parse(t,n=!0){var s,i;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[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+=`
|
||
`+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 s,i;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[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 Rn{options;block;constructor(t){this.options=t||Mt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?We.lex:We.lexInline}provideParser(){return this.block?qe.parse:qe.parseInline}}As(Rn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Yl{defaults=gs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qe;Renderer=wr;TextRenderer=_s;Lexer=We;Tokenizer=yr;Hooks=Rn;constructor(...t){this.use(...t)}walkTokens(t,n){var s,i;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;(i=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&i[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 s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const l=n.renderers[i.name];l?n.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[i.level];l?l.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){const i=this.defaults.renderer||new wr(this.defaults);for(const l in r.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=i[o];i[o]=(...u)=>{let h=a.apply(i,u);return h===!1&&(h=c.apply(i,u)),h||""}}s.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new yr(this.defaults);for(const l in r.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=i[o];i[o]=(...u)=>{let h=a.apply(i,u);return h===!1&&(h=c.apply(i,u)),h}}s.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Rn;for(const l in r.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=i[o];Rn.passThroughHooks.has(l)?i[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(i,u)).then(p=>c.call(i,p));const h=a.call(i,u);return c.call(i,h)}:i[o]=(...u)=>{let h=a.apply(i,u);return h===!1&&(h=c.apply(i,u)),h}}s.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,l=r.walkTokens;s.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return We.lex(t,n??this.defaults)}parser(t,n){return qe.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const i={...s},l={...this.defaults,...i},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.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?We.lex:We.lexInline,c=l.hooks?l.hooks.provideParser():t?qe.parse:qe.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+=`
|
||
Please report this to https://github.com/markedjs/marked.`,t){const s="<p>An error occurred:</p><pre>"+Qe(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const Pt=new Yl;function pe(e,t){return Pt.parse(e,t)}pe.options=pe.setOptions=function(e){return Pt.setOptions(e),pe.defaults=Pt.defaults,zl(pe.defaults),pe},pe.getDefaults=gs,pe.defaults=Mt,pe.use=function(...e){return Pt.use(...e),pe.defaults=Pt.defaults,zl(pe.defaults),pe},pe.walkTokens=function(e,t){return Pt.walkTokens(e,t)},pe.parseInline=Pt.parseInline,pe.Parser=qe,pe.parser=qe.parse,pe.Renderer=wr,pe.TextRenderer=_s,pe.Lexer=We,pe.lexer=We.lex,pe.Tokenizer=yr,pe.Hooks=Rn,pe.parse=pe;function of(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=Xl(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 s=Xl(n),i=s?e.langPrefix+ro(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:ro(t,!0)}
|
||
</code></pre>`}}}}function Xl(e){return(e||"").match(/\S*/)[0]}function Ql(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const eo=/[&<>"']/,af=new RegExp(eo.source,"g"),to=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cf=new RegExp(to.source,"g"),uf={"&":"&","<":"<",">":">",'"':""","'":"'"},no=e=>uf[e];function ro(e,t){if(t){if(eo.test(e))return e.replace(af,no)}else if(to.test(e))return e.replace(cf,no);return e}const ff=/\$.*?\$/,hf=/^\$(.*?)\$/,pf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,df=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=pf.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(ff);return n!==-1?n:t.length},tokenizer(t){const n=hf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],so=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),gf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new Yl;if(s.setOptions({breaks:!0}),n&&s.use(of({highlight:n})),r){const i=df(r);s.use({extensions:i})}return s.parse(so(e,t))},Cs=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},mf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),vf=e=>e.match(/[\u4E00-\u9FD5]/gu),bf=e=>{var t,n;return(((t=mf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=vf(e))==null?void 0:n.length)??0)},yf=async()=>{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},io=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length&&Ms({serverURL:zn(e),paths:Array.from(i).map(l=>Qs(Cs(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ol),s.abort.bind(s)},lo=({size:e})=>re("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[re("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"}),re("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"})]),wf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),kf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),xf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"}),re("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"})]),_f=({active:e=!1})=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"})]),Cf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"}),re("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"})]),Sf=()=>re("svg",{width:"16",height:"16",ariaHidden:"true"},re("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"})),$f=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),Rf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),Af=()=>re("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},re("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"})),An=({size:e=100})=>re("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},re("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},re("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Ef=()=>re("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[re("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"}),re("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"})]),Tf=()=>Zt("WALINE_USER_META",{nick:"",mail:"",link:""}),Lf=()=>Zt("WALINE_COMMENT_BOX_EDITOR",""),If="WALINE_LIKE";let oo=null;const ao=()=>oo??(oo=Zt(If,[])),Mf="WALINE_REACTION";let co=null;const Pf=()=>co??(co=Zt(Mf,{}));var Ss={},ft={},ht={},uo;function fo(){if(uo)return ht;uo=1;var e=ht&&ht.__awaiter||function(r,s,i,l){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(g){try{p(l.next(g))}catch(x){c(x)}}function h(g){try{p(l.throw(g))}catch(x){c(x)}}function p(g){g.done?a(g.value):o(g.value).then(u,h)}p((l=l.apply(r,s||[])).next())})},t=ht&&ht.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(g){return h([p,g])}}function h(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=s.call(r,i)}catch(g){p=[6,g],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.ReCaptchaInstance=void 0;var n=function(){function r(s,i,l){this.siteKey=s,this.recaptchaID=i,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=l.sent(),l.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return ht.ReCaptchaInstance=n,ht}var ho;function Of(){if(ho)return ft;ho=1;var e=ft&&ft.__assign||function(){return e=Object.assign||function(s){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ft,"__esModule",{value:!0}),ft.getInstance=ft.load=void 0;var t=fo(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function s(){}return s.load=function(i,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var o=new s;return new Promise(function(a,c){o.loadScript(i,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,i,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(p){return p(h)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),s.instance=h,a(h)}).catch(function(u){s.errorLoadingRunnable.forEach(function(h){return h(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=p+"?render=explicit"+g,new Promise(function(x,b){h.addEventListener("load",u.waitForScriptToLoad(function(){x(h)},o),!1),h.onerror=function(S){s.setLoadingState(n.NOT_LOADED),b(S)},document.head.appendChild(h)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s}();return ft.load=r.load,ft.getInstance=r.getInstance,ft}var po;function jf(){return po||(po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Of();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=fo();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ss)),Ss}var zf=jf();const go={},Ff=e=>{const t=go[e]??(go[e]=zf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Df=e=>({execute:async t=>{const{load:n}=Cu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),Hf="WALINE_USER";let mo=null;const kr=()=>mo??(mo=Zt(Hf,{})),Uf={key:0,class:"wl-reaction"},Nf=["textContent"],Bf={class:"wl-reaction-list"},Vf=["onClick"],Wf={class:"wl-reaction-img"},qf=["src","alt"],Kf=["textContent"],Gf=["textContent"];var Zf=pn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Pf(),r=Qn(jn),s=X(-1),i=X([]),l=ke(()=>r.value.locale),o=ke(()=>r.value.reaction.length>0),a=ke(()=>{const{reaction:p,path:g}=r.value;return p.map((x,b)=>({icon:x,desc:l.value[`reaction${b}`],active:n.value[g]===b}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:p,lang:g,path:x,reaction:b}=r.value,S=new AbortController;c=S.abort.bind(S);const y=await _r({serverURL:p,lang:g,paths:[x],type:b.map((_,H)=>`reaction${H}`),signal:S.signal});i.value=b.map((_,H)=>y[0][`reaction${H}`])},h=async p=>{if(s.value===-1){const{serverURL:g,lang:x,path:b}=r.value,S=n.value[b];s.value=p,S!==void 0&&(await Pn({serverURL:g,lang:x,path:b,type:`reaction${S}`,action:"desc"}),i.value[S]=Math.max(i.value[S]-1,0)),S!==p&&(await Pn({serverURL:g,lang:x,path:b,type:`reaction${p}`}),i.value[p]=(i.value[p]||0)+1),S===p?delete n.value[b]:n.value[b]=p,s.value=-1}};return gn(()=>{He(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Xr(()=>{c()}),(p,g)=>a.value.length?(L(),P("div",Uf,[F("div",{class:"wl-reaction-title",textContent:ee(l.value.reactionTitle)},null,8,Nf),F("ul",Bf,[(L(!0),P(fe,null,De(a.value,({active:x,icon:b,desc:S},y)=>(L(),P("li",{key:y,class:me(["wl-reaction-item",{active:x}]),onClick:_=>h(y)},[F("div",Wf,[F("img",{src:b,alt:S},null,8,qf),s.value===y?(L(),lt(q(An),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:ee(i.value[y]||0)},null,8,Kf))]),F("div",{class:"wl-reaction-text",textContent:ee(S)},null,8,Gf)],10,Vf))),128))])])):Q("v-if",!0)}}),En=new Map;function Jf(e){var t=En.get(e);t&&t.destroy()}function Yf(e){var t=En.get(e);t&&t.update()}var Tn=null;typeof window>"u"?((Tn=function(e){return e}).destroy=function(e){return e},Tn.update=function(e){return e}):((Tn=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"&&!En.has(r)){var s,i=null,l=window.getComputedStyle(r),o=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(p){return r.style[p]=h[p]}),En.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",En.set(r,{destroy:a,update:u}),u()}function c(h){var p,g,x=h.restoreTextAlign,b=x===void 0?null:x,S=h.testForHeightReduction,y=S===void 0||S,_=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),y&&(p=function(T){for(var O=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&O.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return O.forEach(function(K){var z=K[0],J=K[1];z.style.scrollBehavior="auto",z.scrollTop=J,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",b&&(r.style.textAlign=b),p&&p(),i!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=g),_!==l.overflow&&!b)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),c({restoreTextAlign:H,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Jf),e},Tn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Yf),e});var vo=Tn;const Xf=["data-index"],Qf=["src","title","onClick"];var eh=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 s=mt("wall"),i=X({}),l=X([]),o=()=>{const p=Math.floor((s.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),c=async p=>{var g;if(p>=n.items.length)return;await Wt();const x=Array.from(((g=s.value)==null?void 0:g.children)??[]).reduce((b,S)=>S.getBoundingClientRect().height<b.getBoundingClientRect().height?S:b);l.value[Number(x.dataset.index)].push(p),await c(p+1)},u=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=p=>{i.value[p.target.src]=!0};return gn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(s.value),He(()=>[n.items],()=>{i.value={},u(!0)}),He(()=>[n.columnWidth,n.gap],()=>{u()})}),Na(()=>{r.unobserve(s.value)}),(p,g)=>(L(),P("div",{ref_key:"wall",ref:s,class:"wl-gallery",style:nn({gap:`${p.gap}px`})},[(L(!0),P(fe,null,De(l.value,(x,b)=>(L(),P("div",{key:b,class:"wl-gallery-column","data-index":b,style:nn({gap:`${p.gap}px`})},[(L(!0),P(fe,null,De(x,S=>(L(),P(fe,{key:S},[i.value[p.items[S].src]?Q("v-if",!0):(L(),lt(q(An),{key:0,size:36,style:{margin:"20px auto"}})),F("img",{class:"wl-gallery-item",src:p.items[S].src,title:p.items[S].title,loading:"lazy",onLoad:h,onClick:y=>p.$emit("insert",`![](${p.items[S].src})`)},null,40,Qf)],64))),128))],12,Xf))),128))],4))}});const th={key:0,class:"wl-login-info"},nh={class:"wl-avatar"},rh=["title"],sh=["title"],ih=["src"],lh=["title","textContent"],oh={class:"wl-panel"},ah=["for","textContent"],ch=["id","onUpdate:modelValue","name","type"],uh=["placeholder"],fh={class:"wl-preview"},hh=["innerHTML"],ph={class:"wl-footer"},dh={class:"wl-actions"},gh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},mh=["title"],vh=["title"],bh=["title","aria-label"],yh=["title"],wh={class:"wl-info"},kh={class:"wl-text-number"},xh={key:0},_h=["textContent"],Ch=["textContent"],Sh=["disabled"],$h=["placeholder"],Rh={key:1,class:"wl-loading"},Ah={key:0,class:"wl-tab-wrapper"},Eh=["title","onClick"],Th=["src","alt"],Lh={key:0,class:"wl-tabs"},Ih=["onClick"],Mh=["src","alt","title"],Ph=["title"];var bo=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,s=Qn(jn),i=Lf(),l=Tf(),o=kr(),a=X({}),c=mt("textarea"),u=mt("image-uploader"),h=mt("emoji-button"),p=mt("emoji-popup"),g=mt("gif-button"),x=mt("gif-popup"),b=mt("gif-search"),S=X({tabs:[],map:{}}),y=X(0),_=X(!1),H=X(!1),T=X(!1),O=X(""),K=X(0),z=cn({loading:!0,list:[]}),J=X(0),Ee=X(!1),Z=X(""),M=X(!1),G=X(!1),B=ke(()=>s.value.locale),ge=ke(()=>!!o.value.token),ye=ke(()=>s.value.imageUploader!==!1),ve=j=>{const R=c.value,V=R.selectionStart,he=R.selectionEnd||0,f=R.scrollTop;i.value=R.value.substring(0,V)+j+R.value.substring(he,R.value.length),R.focus(),R.selectionStart=V+j.length,R.selectionEnd=V+j.length,R.scrollTop=f},et=j=>{if(M.value)return;const R=j.key;(j.ctrlKey||j.metaKey)&&R==="Enter"&&Ne()},pt=j=>{const R=`![${s.value.locale.uploading} ${j.name}]()`;return ve(R),M.value=!0,Promise.resolve().then(()=>s.value.imageUploader(j)).then(V=>{i.value=i.value.replace(R,`\r
|
||
![${j.name}](${V})`)}).catch(V=>{alert(V.message),i.value=i.value.replace(R,"")}).then(()=>{M.value=!1})},Jt=j=>{var R;if((R=j.dataTransfer)!=null&&R.items){const V=jl(j.dataTransfer.items);V&&ye.value&&(pt(V),j.preventDefault())}},Ln=j=>{if(j.clipboardData){const R=jl(j.clipboardData.items);R&&ye.value&&pt(R)}},Ot=()=>{const j=u.value;j.files&&ye.value&&pt(j.files[0]).then(()=>{j.value=""})},Ne=async()=>{var j;const{serverURL:R,lang:V,login:he,wordLimit:f,requiredMeta:d,recaptchaV3Key:m,turnstileKey:w}=s.value,v={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await yf()};if(!n.edit)if(o.value.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if(he==="force")return;if(d.includes("nick")&&!v.nick){a.value.nick.focus(),alert(B.value.nickError);return}if(d.includes("mail")&&!v.mail||v.mail&&!qo(v.mail)){a.value.mail.focus(),alert(B.value.mailError);return}v.nick||(v.nick=B.value.anonymous)}if(!v.comment){c.value.focus();return}if(!Ee.value){alert(B.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",K.value.toString()));return}v.comment=so(v.comment,S.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),M.value=!0;try{m&&(v.recaptchaV3=await Ff(m).execute("social")),w&&(v.turnstile=await Df(w).execute("social"));const k={serverURL:R,lang:V,token:o.value.token,comment:v},E=await(n.edit?Xt({objectId:n.edit.objectId,...k}):Ls(k));if(M.value=!1,E.errmsg){alert(E.errmsg);return}r("submit",E.data),i.value="",O.value="",await Wt(),n.replyId&&r("cancelReply"),(j=n.edit)!=null&&j.objectId&&r("cancelEdit")}catch(k){M.value=!1,alert(k.message)}},In=j=>{j.preventDefault();const{lang:R,serverURL:V}=s.value;Ps({serverURL:V,lang:R}).then(he=>{o.value=he,(he.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(he)),r("log")})},xr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Mn=j=>{j.preventDefault();const{lang:R,serverURL:V}=s.value,he=800,f=800,d=(window.innerWidth-he)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${V}/ui/profile?${w.toString()}`,"_blank",`width=${he},height=${f},left=${d},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},yt=j=>{var R,V,he,f;!((R=h.value)!=null&&R.contains(j.target))&&!((V=p.value)!=null&&V.contains(j.target))&&(_.value=!1),!((he=g.value)!=null&&he.contains(j.target))&&!((f=x.value)!=null&&f.contains(j.target))&&(H.value=!1)},wt=async j=>{var R;const{scrollTop:V,clientHeight:he,scrollHeight:f}=j.target,d=(he+V)/f,m=s.value.search,w=((R=b.value)==null?void 0:R.value)??"";d<.9||z.loading||G.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)]:G.value=!0,z.loading=!1,setTimeout(()=>{j.target.scrollTop=V},50))},jt=fu(j=>{z.list=[],G.value=!1,wt(j)},300);return He([s,K],([j,R])=>{const{wordLimit:V}=j;V?R<V[0]&&V[0]!==0?(J.value=V[0],Ee.value=!1):R>V[1]?(J.value=V[1],Ee.value=!1):(J.value=V[1],Ee.value=!0):(J.value=0,Ee.value=!0)},{immediate:!0}),hr("click",yt),hr("message",({data:j})=>{!j||j.type!=="profile"||(o.value={...o.value,...j.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),He(H,async j=>{var R;if(!j)return;const V=s.value.search;b.value&&(b.value.value=""),z.loading=!0,z.list=await(((R=V.default)==null?void 0:R.call(V))??V.search("")),z.loading=!1}),gn(()=>{var j;(j=n.edit)!=null&&j.objectId&&(i.value=n.edit.orig),He(()=>i.value,R=>{const{highlighter:V,texRenderer:he}=s.value;Z.value=R,O.value=gf(R,{emojiMap:S.value.map,highlighter:V,texRenderer:he}),K.value=bf(R),R?vo(c.value):vo.destroy(c.value)},{immediate:!0}),He(()=>s.value.emoji,R=>Eu(R).then(V=>{S.value=V}),{immediate:!0})}),(j,R)=>{var V,he;return L(),P("div",{key:q(o).token,class:"wl-comment"},[q(s).login!=="disable"&&ge.value&&!((V=j.edit)!=null&&V.objectId)?(L(),P("div",th,[F("div",nh,[F("button",{type:"submit",class:"wl-logout-btn",title:B.value.logout,onClick:xr},[oe(q(lo),{size:14})],8,rh),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:Mn},[F("img",{src:q(o).avatar,alt:"avatar"},null,8,ih)],8,sh)]),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:Mn,textContent:ee(q(o).display_name)},null,8,lh)])):Q("v-if",!0),F("div",oh,[q(s).login!=="force"&&q(s).meta.length&&!ge.value?(L(),P("div",{key:0,class:me(["wl-header",`item${q(s).meta.length}`])},[(L(!0),P(fe,null,De(q(s).meta,f=>(L(),P("div",{key:f,class:"wl-header-item"},[F("label",{for:`wl-${f}`,textContent:ee(B.value[f]+(q(s).requiredMeta.includes(f)||!q(s).requiredMeta.length?"":`(${B.value.optional})`))},null,8,ah),Yn(F("input",{id:`wl-${f}`,ref_for:!0,ref:d=>{d&&(a.value[f]=d)},"onUpdate:modelValue":d=>q(l)[f]=d,class:me(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,ch),[[eu,q(l)[f]]])]))),128))],2)):Q("v-if",!0),Yn(F("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=f=>we(i)?i.value=f:null),class:"wl-editor",placeholder:j.replyUser?`@${j.replyUser}`:B.value.placeholder,onKeydown:et,onDrop:Jt,onPaste:Ln},null,40,uh),[[hs,q(i)]]),Yn(F("div",fh,[R[7]||(R[7]=F("hr",null,null,-1)),F("h4",null,ee(B.value.preview)+":",1),F("div",{class:"wl-content",innerHTML:O.value},null,8,hh)],512),[[gl,T.value]]),F("div",ph,[F("div",dh,[F("a",gh,[oe(q(Sf))]),Yn(F("button",{ref:"emoji-button",type:"button",class:me(["wl-action",{active:_.value}]),title:B.value.emoji,onClick:R[1]||(R[1]=f=>_.value=!_.value)},[oe(q(kf))],10,mh),[[gl,S.value.tabs.length]]),q(s).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:me(["wl-action",{active:H.value}]),title:B.value.gif,onClick:R[2]||(R[2]=f=>H.value=!H.value)},[oe(q(Ef))],10,vh)):Q("v-if",!0),F("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ot},null,544),ye.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:B.value.uploadImage,"aria-label":B.value.uploadImage},[oe(q(xf))],8,bh)):Q("v-if",!0),F("button",{type:"button",class:me(["wl-action",{active:T.value}]),title:B.value.preview,onClick:R[3]||(R[3]=f=>T.value=!T.value)},[oe(q(Cf))],10,yh)]),F("div",wh,[R[9]||(R[9]=F("div",{class:"wl-captcha-container"},null,-1)),F("div",kh,[ot(ee(K.value)+" ",1),q(s).wordLimit?(L(),P("span",xh,[R[8]||(R[8]=ot(" / ")),F("span",{class:me({illegal:!Ee.value}),textContent:ee(J.value)},null,10,_h)])):Q("v-if",!0),ot(" "+ee(B.value.word),1)]),q(s).login!=="disable"&&!ge.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:In,textContent:ee(B.value.login)},null,8,Ch)):Q("v-if",!0),q(s).login!=="force"||ge.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:M.value,onClick:Ne},[M.value?(L(),lt(q(An),{key:0,size:16})):(L(),P(fe,{key:1},[ot(ee(B.value.submit),1)],64))],8,Sh)):Q("v-if",!0)]),F("div",{ref:"gif-popup",class:me(["wl-gif-popup",{display:H.value}])},[F("input",{ref:"gif-search",type:"text",placeholder:B.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...f)=>q(jt)&&q(jt)(...f))},null,40,$h),z.list.length?(L(),lt(eh,{key:0,items:z.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=f=>ve(f)),onScroll:wt},null,8,["items"])):Q("v-if",!0),z.loading?(L(),P("div",Rh,[oe(q(An),{size:30})])):Q("v-if",!0)],2),F("div",{ref:"emoji-popup",class:me(["wl-emoji-popup",{display:_.value}])},[(L(!0),P(fe,null,De(S.value.tabs,(f,d)=>(L(),P(fe,{key:f.name},[d===y.value?(L(),P("div",Ah,[(L(!0),P(fe,null,De(f.items,m=>(L(),P("button",{key:m,type:"button",title:m,onClick:w=>ve(`:${m}:`)},[_.value?(L(),P("img",{key:0,class:"wl-emoji",src:S.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Th)):Q("v-if",!0)],8,Eh))),128))])):Q("v-if",!0)],64))),128)),S.value.tabs.length>1?(L(),P("div",Lh,[(L(!0),P(fe,null,De(S.value.tabs,(f,d)=>(L(),P("button",{key:f.name,type:"button",class:me(["wl-tab",{active:y.value===d}]),onClick:m=>y.value=d},[F("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Mh)],10,Ih))),128))])):Q("v-if",!0)],2)])]),j.replyId||(he=j.edit)!=null&&he.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:B.value.cancelReply,onClick:R[6]||(R[6]=f=>j.replyId?r("cancelReply"):r("cancelEdit"))},[oe(q(lo),{size:24})],8,Ph)):Q("v-if",!0)])}}});const Oh=["id"],jh={class:"wl-user","aria-hidden":"true"},zh=["src"],Fh={class:"wl-card"},Dh={class:"wl-head"},Hh=["href"],Uh={key:1,class:"wl-nick"},Nh=["textContent"],Bh=["textContent"],Vh=["textContent"],Wh=["textContent"],qh=["textContent"],Kh={class:"wl-comment-actions"},Gh=["title"],Zh=["title"],Jh={class:"wl-meta","aria-hidden":"true"},Yh=["data-value","textContent"],Xh={key:0,class:"wl-content"},Qh={key:0},ep=["href"],tp=["innerHTML"],np={key:1,class:"wl-admin-actions"},rp={class:"wl-comment-status"},sp=["disabled","onClick","textContent"],ip={key:3,class:"wl-quote"};var lp=pn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,s=["approved","waiting","spam"],i=Qn(jn),l=ao(),o=_u(),a=kr(),c=ke(()=>i.value.locale),u=ke(()=>{const{link:y}=n.comment;return y?ti(y)?y:`https://${y}`:""}),h=ke(()=>l.value.includes(n.comment.objectId)),p=ke(()=>Vo(new Date(n.comment.time),o.value,c.value)),g=ke(()=>a.value.type==="administrator"),x=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=ke(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),S=ke(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,_)=>{var H;const T=Va("CommentCard",!0);return L(),P("div",{id:y.comment.objectId,class:"wl-card-item"},[F("div",jh,[y.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar,alt:""},null,8,zh)):Q("v-if",!0),y.comment.type?(L(),lt(q(Af),{key:1})):Q("v-if",!0)]),F("div",Fh,[F("div",Dh,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(y.comment.nick),9,Hh)):(L(),P("span",Uh,ee(y.comment.nick),1)),y.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,Nh)):Q("v-if",!0),y.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:ee(y.comment.label)},null,8,Bh)):Q("v-if",!0),y.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,Vh)):Q("v-if",!0),typeof y.comment.level=="number"?(L(),P("span",{key:5,class:me(`wl-badge level${y.comment.level}`),textContent:ee(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,Wh)):Q("v-if",!0),F("span",{class:"wl-time",textContent:ee(p.value)},null,8,qh),F("div",Kh,[g.value||x.value?(L(),P(fe,{key:0},[F("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=O=>r("edit",y.comment))},[oe(q(Rf))]),F("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=O=>r("delete",y.comment))},[oe(q(wf))])],64)):Q("v-if",!0),F("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=O=>r("like",y.comment))},[oe(q(_f),{active:h.value},null,8,["active"]),ot(" "+ee("like"in y.comment?y.comment.like:""),1)],8,Gh),F("button",{type:"button",class:me(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=O=>r("reply",b.value?null:y.comment))},[oe(q($f))],10,Zh)])]),F("div",Jh,[(L(),P(fe,null,De(["addr","browser","os"],O=>(L(),P(fe,null,[y.comment[O]?(L(),P("span",{key:O,class:me(`wl-${O}`),"data-value":y.comment[O],textContent:ee(y.comment[O])},null,10,Yh)):Q("v-if",!0)],64))),64))]),S.value?Q("v-if",!0):(L(),P("div",Xh,["reply_user"in y.comment&&y.comment.reply_user?(L(),P("p",Qh,[F("a",{href:"#"+y.comment.pid},"@"+ee(y.comment.reply_user.nick),9,ep),_[17]||(_[17]=F("span",null,": ",-1))])):Q("v-if",!0),F("div",{innerHTML:y.comment.comment},null,8,tp)])),g.value&&!S.value?(L(),P("div",np,[F("span",rp,[(L(),P(fe,null,De(s,O=>F("button",{key:O,type:"submit",class:me(`wl-btn wl-${O}`),disabled:y.comment.status===O,onClick:K=>r("status",{status:O,comment:y.comment}),textContent:ee(c.value[O])},null,10,sp)),64))]),g.value&&!("rid"in y.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=O=>r("sticky",y.comment))},ee(y.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),b.value||S.value?(L(),P("div",{key:2,class:me({"wl-reply-wrapper":b.value,"wl-edit-wrapper":S.value})},[oe(bo,{edit:y.edit,"reply-id":(H=y.reply)==null?void 0:H.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:_[5]||(_[5]=O=>r("log")),onCancelReply:_[6]||(_[6]=O=>r("reply",null)),onCancelEdit:_[7]||(_[7]=O=>r("edit",null)),onSubmit:_[8]||(_[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in y.comment?(L(),P("div",ip,[(L(!0),P(fe,null,De(y.comment.children,O=>(L(),lt(T,{key:O.objectId,comment:O,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:_[9]||(_[9]=K=>r("log")),onDelete:_[10]||(_[10]=K=>r("delete",K)),onEdit:_[11]||(_[11]=K=>r("edit",K)),onLike:_[12]||(_[12]=K=>r("like",K)),onReply:_[13]||(_[13]=K=>r("reply",K)),onStatus:_[14]||(_[14]=K=>r("status",K)),onSticky:_[15]||(_[15]=K=>r("sticky",K)),onSubmit:_[16]||(_[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Oh)}}});const yo="3.4.2",op={"data-waline":""},ap={class:"wl-meta-head"},cp={class:"wl-count"},up=["textContent"],fp={class:"wl-sort"},hp=["onClick"],pp={class:"wl-cards"},dp={key:1,class:"wl-operation"},gp=["textContent"],mp={key:2,class:"wl-loading"},vp=["textContent"],bp={key:4,class:"wl-operation"},yp=["textContent"],wp={key:5,class:"wl-power"};var kp=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=kr(),r=ao(),s=X("loading"),i=X(0),l=X(1),o=X(0),a=ke(()=>Uo(t)),c=X(a.value.commentSorting),u=X([]),h=X(null),p=X(null),g=ke(()=>No(a.value.dark)),x=ke(()=>a.value.locale);$u(g,{id:"waline-darkmode"});let b=null;const S=M=>{const{serverURL:G,path:B,pageSize:ge}=a.value,ye=new AbortController;s.value="loading",b==null||b(),Ts({serverURL:G,lang:a.value.lang,path:B,pageSize:ge,sortBy:Xs[c.value],page:M,signal:ye.signal,token:n.value.token}).then(ve=>{s.value="success",i.value=ve.count,u.value.push(...ve.data),l.value=M,o.value=ve.totalPages}).catch(ve=>{ve.name!=="AbortError"&&(console.error(ve.message),s.value="error")}),b=ye.abort.bind(ye)},y=()=>{S(l.value+1)},_=()=>{i.value=0,u.value=[],S(1)},H=M=>{c.value!==M&&(c.value=M,_())},T=M=>{h.value=M},O=M=>{p.value=M},K=M=>{if(p.value)p.value.comment=M.comment,p.value.orig=M.orig;else if("rid"in M){const G=u.value.find(({objectId:B})=>B===M.rid);if(!G)return;Array.isArray(G.children)||(G.children=[]),G.children.push(M)}else u.value.unshift(M),i.value+=1},z=async({comment:M,status:G})=>{if(M.status===G)return;const{serverURL:B,lang:ge}=a.value;await Xt({serverURL:B,lang:ge,token:n.value.token,objectId:M.objectId,comment:{status:G}}),M.status=G},J=async M=>{if("rid"in M)return;const{serverURL:G,lang:B}=a.value;await Xt({serverURL:G,lang:B,token:n.value.token,objectId:M.objectId,comment:{sticky:M.sticky?0:1}}),M.sticky=!M.sticky},Ee=async({objectId:M})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:G,lang:B}=a.value;await Is({serverURL:G,lang:B,token:n.value.token,objectId:M}),u.value.some((ge,ye)=>ge.objectId===M?(u.value=u.value.filter((ve,et)=>et!==ye),!0):ge.children.some((ve,et)=>ve.objectId===M?(u.value[ye].children=ge.children.filter((pt,Jt)=>Jt!==et),!0):!1))},Z=async M=>{const{serverURL:G,lang:B}=a.value,{objectId:ge}=M,ye=r.value.includes(ge);await Xt({serverURL:G,lang:B,objectId:ge,token:n.value.token,comment:{like:!ye}}),ye?r.value=r.value.filter(ve=>ve!==ge):(r.value=[...r.value,ge],r.value.length>50&&(r.value=r.value.slice(-50))),M.like=Math.max(0,(M.like||0)+(ye?-1:1))};return Ja(jn,a),gn(()=>{He(()=>[t.serverURL,t.path],()=>{_()},{immediate:!0})}),Xr(()=>{b==null||b()}),(M,G)=>(L(),P("div",op,[oe(Zf),!h.value&&!p.value?(L(),lt(bo,{key:0,onLog:_,onSubmit:K})):Q("v-if",!0),F("div",ap,[F("div",cp,[i.value?(L(),P("span",{key:0,class:"wl-num",textContent:ee(i.value)},null,8,up)):Q("v-if",!0),ot(" "+ee(x.value.comment),1)]),F("ul",fp,[(L(!0),P(fe,null,De(q(Do),B=>(L(),P("li",{key:B,class:me([B===c.value?"active":""]),onClick:ge=>H(B)},ee(x.value[B]),11,hp))),128))])]),F("div",pp,[(L(!0),P(fe,null,De(u.value,B=>(L(),lt(lp,{key:B.objectId,"root-id":B.objectId,comment:B,reply:h.value,edit:p.value,onLog:_,onReply:T,onEdit:O,onSubmit:K,onStatus:z,onDelete:Ee,onSticky:J,onLike:Z},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(L(),P("div",dp,[F("button",{type:"button",class:"wl-btn",onClick:_,textContent:ee(x.value.refresh)},null,8,gp)])):s.value==="loading"?(L(),P("div",mp,[oe(q(An),{size:30})])):u.value.length?l.value<o.value?(L(),P("div",bp,[F("button",{type:"button",class:"wl-btn",onClick:y,textContent:ee(x.value.more)},null,8,yp)])):Q("v-if",!0):(L(),P("div",{key:3,class:"wl-empty",textContent:ee(x.value.sofa)},null,8,vp)),a.value.copyright?(L(),P("div",wp,[G[0]||(G[0]=ot(" Powered by ")),G[1]||(G[1]=F("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ot(" v"+ee(q(yo)),1)])):Q("v-if",!0)]))}});const wo=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},ko=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=Cs(c);return u!==null&&t!==u},a=c=>Os({serverURL:zn(e),paths:c.map(u=>Cs(u)??t),lang:s,signal:i.signal}).then(u=>wo(u,c)).catch(Ol);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);js({serverURL:zn(e),path:t,lang:s}).then(h=>wo(h,c)),u.length&&a(u)}else a(l);return i.abort.bind(i)},xp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?ds(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const l=cn({...s}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&io({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&ko({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=su(()=>re(kp,{path:o.path,...l})),u.mount(i));const h=Xi(a),p=Xi(c);return{el:i,update:({comment:g,pageview:x,path:b=window.location.pathname,...S}={})=>{Object.entries(S).forEach(([y,_])=>{l[y]=_}),o.path=b,g!==void 0&&(o.comment=g),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),h(),p()}}},_p=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=kr(),i=ds(e),l=new AbortController;return zs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length?(i.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Cp=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=ds(e),o=new AbortController;return Fs({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Js(s),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${i}">${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{_p as RecentComments,Cp as UserList,Ls as addComment,io as commentCount,On as defaultLocales,Is as deleteComment,Ms as fetchCommentCount,_r as getArticleCounter,Ts as getComment,Os as getPageview,zs as getRecentComment,Fs as getUserList,xp as init,Ps as login,ko as pageviewCount,Pn as updateArticleCounter,Xt as updateComment,js as updatePageview,yo as version};
|
||
//# sourceMappingURL=waline.js.map
|