hugo-theme-next/static/js/3rd/waline/3.3.0/waline.min.js
2025-01-06 13:26:27 +08:00

56 lines
159 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var xn,kr,bi,wl,bl=Object.defineProperty,yl=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(yl(e,"symbol"!=typeof t?t+"":t,n),n),_l=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},En=(e,t,n)=>(_l(e,t,"access private method"),n);const Sr={"Content-Type":"application/json"},Ge=e=>e.replace(/\/?$/,"/")+"api/",vt=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: `+e.errmsg);return e},ki=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Ge(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=`+t,{signal:i}).then(e=>e.json()).then(e=>vt(e,"Get counter").data),Sn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(Ge(e)+"article?lang="+t,{method:"POST",headers:Sr,body:JSON.stringify({path:n,type:r,action:i})}).then(e=>e.json()).then(e=>vt(e,"Update counter").data),Ir=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:l,signal:o,token:s})=>{const a={};return s&&(a.Authorization="Bearer "+s),fetch(`${Ge(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=`+l,{signal:o,headers:a}).then(e=>e.json()).then(e=>vt(e,"Get comment data").data)},Rr=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization="Bearer "+n),fetch(Ge(e)+"comment?lang="+t,{method:"POST",headers:i,body:JSON.stringify(r)}).then(e=>e.json())},Tr=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(Ge(e)+`comment/${r}?lang=`+t,{method:"DELETE",headers:{Authorization:"Bearer "+n}}).then(e=>e.json()).then(e=>vt(e,"Delete comment")),qt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(Ge(e)+`comment/${r}?lang=`+t,{method:"PUT",headers:{...Sr,Authorization:"Bearer "+n},body:JSON.stringify(i)}).then(e=>e.json()).then(e=>vt(e,"Update comment")),Lr=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Ge(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=`+t,{signal:r}).then(e=>e.json()).then(e=>vt(e,"Get comment count").data),Ar=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(t.replace(/\/$/,"")+"/ui/login?lng="+encodeURIComponent(e),"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return null!=i&&i.postMessage({type:"TOKEN",data:null},"*"),new Promise(t=>{const n=({data:e})=>{e&&"object"==typeof e&&"userInfo"===e.type&&e.data.token&&(null!=i&&i.close(),window.removeEventListener("message",n),t(e.data))};window.addEventListener("message",n)})},Mr=({serverURL:e,lang:t,paths:n,signal:r})=>ki({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),$r=e=>Sn({...e,type:"time",action:"inc"}),Or=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const l={};return i&&(l.Authorization="Bearer "+i),fetch(Ge(e)+`comment?type=recent&count=${n}&lang=`+t,{signal:r,headers:l}).then(e=>e.json())},jr=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(Ge(e)+`user?pageSize=${n}&lang=`+r,{signal:t}).then(e=>e.json()).then(e=>vt(e,"user list")).then(e=>e.data),kl=["nick","mail","link"],zr=e=>e.filter(e=>kl.includes(e)),Pr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],xl=["//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"],Cl=r=>new Promise((t,e)=>{if(128e3<r.size)return e(new Error("File too large! File size limit 128KB"));const n=new FileReader;n.readAsDataURL(r),n.onload=()=>{var e;return t((null==(e=n.result)?void 0:e.toString())??"")},n.onerror=e}),El=e=>!0===e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Sl=n=>{const r=async(e,t={})=>fetch(`https://api.giphy.com/v1/gifs/${e}?`+new URLSearchParams({lang:n,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...t}).toString()).then(e=>e.json()).then(({data:e})=>e.map(e=>({title:e.title,src:e.images.downsized_medium.url})));return{search:e=>r("search",{q:e,offset:"0"}),default:()=>r("trending",{}),more:(e,t=0)=>r("search",{q:e,offset:t.toString()})}},Il=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Rl=/</,Tl=/(?:^|\s)\/\/(.+?)$/gm,Ll=/\/\*([\S\s]*?)\*\//gm,Al=new RegExp(`(${Il.source}|${Rl.source})|((?:${Tl.source})|(?:${Ll.source}))`,"gmi"),Fr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],xi={},Ml=e=>{let i=0;return e.replace(Al,(e,t,n)=>{if(n)return`<span style="color: slategray">${n}</span>`;if("<"===t)return"&lt;";let r;xi[t]?r=xi[t]:(r=Fr[i],xi[t]=r);n=`<span style="color: #${r}">${t}</span>`;return i=++i%Fr.length,n})},$l=["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"],Ze=e=>Object.fromEntries(e.map((e,t)=>[$l[t],e]));var Ur=Ze(["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?"]),Nr=Ze(["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 ?"]),Hr=Ze(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Ol=Ze(["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?"]),Dr=Ze(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Vr=Ze(["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?"]),Br=Ze(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),jl=Ze(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]),zl=Ze(["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?"]);const Wr="en-US",In={zh:Br,"zh-cn":Br,"zh-tw":jl,en:Ur,"en-us":Ur,fr:Nr,"fr-fr":Nr,jp:Hr,"jp-jp":Hr,"pt-br":Ol,ru:Dr,"ru-ru":Dr,vi:Vr,"vi-vn":Vr,de:zl},qr=e=>In[e.toLowerCase()]||In[Wr.toLowerCase()],Kr=e=>Object.keys(In).includes(e.toLowerCase())?e:Wr,Gr=e=>{try{e=decodeURI(e)}catch{}return e},Zr=(e="")=>e.replace(/\/$/u,""),Qr=e=>/^(https?:)?\/\//.test(e),Rn=e=>{e=Zr(e);return Qr(e)?e:"https://"+e},Pl=e=>Array.isArray(e)?e:!!e&&[0,e],Ci=(e,t)=>"function"==typeof e?e:!1!==e&&t,Fl=({serverURL:e,path:t=location.pathname,lang:n="u"<typeof navigator?"en-US":navigator.language,locale:r,emoji:i=Pr,meta:l=["nick","mail","link"],requiredMeta:o=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g,reaction:m,recaptchaV3Key:v="",turnstileKey:y="",commentSorting:w="latest",...b})=>({serverURL:Rn(e),path:Gr(t),lang:Kr(n),locale:{...qr(Kr(n)),..."object"==typeof r?r:{}},wordLimit:Pl(c),meta:zr(l),requiredMeta:zr(o),imageUploader:Ci(u,Cl),highlighter:Ci(p,Ml),texRenderer:Ci(d,El),dark:s,emoji:"boolean"==typeof i?i?Pr:[]:i,pageSize:a,login:f,copyright:h,search:!1!==g&&("object"==typeof g?g:Sl(n)),recaptchaV3Key:v,turnstileKey:y,reaction:Array.isArray(m)?m:!0===m?xl:[],commentSorting:w,...b}),$t=e=>"string"==typeof e,Ei="{--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}",Ul=e=>$t(e)?"auto"===e?`@media(prefers-color-scheme:dark){body${Ei}}`:""+e+Ei:!0===e?":root"+Ei:"",Si=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Nl=e=>{var t=Si(e.getDate(),2),n=Si(e.getMonth()+1,2);return Si(e.getFullYear(),2)+`-${n}-`+t},Hl=(e,t,n)=>{if(!e)return"";const r=$t(e)?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),l=Math.floor(i/864e5);var o;return 0===l?(e=i%864e5,0===(t=Math.floor(e/36e5))?(e=e%36e5,0===(o=Math.floor(e/6e4))?Math.round(e%6e4/1e3)+" "+n.seconds:o+" "+n.minutes):t+" "+n.hours):l<0?n.now:l<8?l+" "+n.days:Nl(r)},Dl=/^[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])?)*$/,Vl=e=>Dl.test(e);function Ii(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const se={},Ot=[],Qe=()=>{},Bl=()=>!1,Tn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(122<e.charCodeAt(2)||e.charCodeAt(2)<97),Ri=e=>e.startsWith("onUpdate:"),be=Object.assign,Jr=(e,t)=>{t=e.indexOf(t);-1<t&&e.splice(t,1)},Wl=Object.prototype.hasOwnProperty,G=(e,t)=>Wl.call(e,t),N=Array.isArray,jt=e=>"[object Map]"===Kt(e),zt=e=>"[object Set]"===Kt(e),Yr=e=>"[object Date]"===Kt(e),ee=e=>"function"==typeof e,ve=e=>"string"==typeof e,Je=e=>"symbol"==typeof e,ce=e=>null!==e&&"object"==typeof e,Xr=e=>(ce(e)||ee(e))&&ee(e.then)&&ee(e.catch),eo=Object.prototype.toString,Kt=e=>eo.call(e),ql=e=>Kt(e).slice(8,-1),to=e=>"[object Object]"===Kt(e),Ti=e=>ve(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Gt=Ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=t=>{const n=Object.create(null);return e=>n[e]||(n[e]=t(e))},Kl=/-(\w)/g,Ve=Ln(e=>e.replace(Kl,(e,t)=>t?t.toUpperCase():"")),Gl=/\B([A-Z])/g,Pt=Ln(e=>e.replace(Gl,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Li=Ln(e=>e?"on"+An(e):""),lt=(e,t)=>!Object.is(e,t),Mn=(t,n)=>{for(let e=0;e<t.length;e++)t[e](n)},no=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},$n=e=>{var t=parseFloat(e);return isNaN(t)?e:t};let io;const Ai=()=>io=io||(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(t){if(N(t)){const i={};for(let e=0;e<t.length;e++){var n=t[e],r=(ve(n)?Yl:Zt)(n);if(r)for(const l in r)i[l]=r[l]}return i}if(ve(t)||ce(t))return t}const Zl=/;(?![^(]*\))/g,Ql=/:([^]+)/,Jl=/\/\*[^]*?\*\//g;function Yl(e){const n={};return e.replace(Jl,"").split(Zl).forEach(e=>{if(e){const t=e.split(Ql);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n}function pe(t){let n="";if(ve(t))n=t;else if(N(t))for(let e=0;e<t.length;e++){var r=pe(t[e]);r&&(n+=r+" ")}else if(ce(t))for(const e in t)t[e]&&(n+=e+" ");return n.trim()}const Xl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ea=Ii(Xl);function ro(e){return!!e||""===e}function ta(t,n){if(t.length!==n.length)return!1;let r=!0;for(let e=0;r&&e<t.length;e++)r=wt(t[e],n[e]);return r}function wt(e,t){if(e===t)return!0;let n=Yr(e),r=Yr(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=Je(e),r=Je(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return!(!n||!r)&&ta(e,t);if(n=ce(e),r=ce(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){var i=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(i&&!l||!i&&l||!wt(e[o],t[o]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(e=>wt(e,t))}const Q=e=>ve(e)?e:null==e?"":N(e)||ce(e)&&(e.toString===eo||!ee(e.toString))?JSON.stringify(e,oo,2):String(e),oo=(e,t)=>t&&t.__v_isRef?oo(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[$i(t,r)+" =>"]=n,e),{})}:zt(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>$i(e))}:Je(t)?$i(t):!ce(t)||N(t)||to(t)?t:String(t),$i=(e,t="")=>{var n;return Je(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let Me;class na{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Me,!e&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){var t=Me;try{return Me=this,e()}finally{Me=t}}}on(){Me=this}off(){Me=this.parent}stop(n){if(this._active){let e,t;for(e=0,t=this.effects.length;e<t;e++)this.effects[e].stop();for(e=0,t=this.cleanups.length;e<t;e++)this.cleanups[e]();if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!n){const r=this.parent.scopes.pop();r&&r!==this&&((this.parent.scopes[this.index]=r).index=this.index)}this.parent=void 0,this._active=!1}}}function ia(e,t=Me){t&&t.active&&t.effects.push(e)}function so(){return Me}function ra(e){Me&&Me.cleanups.push(e)}let bt;class Oi{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ia(this,r)}get dirty(){return 2!==this._dirtyLevel&&3!==this._dirtyLevel||(this._dirtyLevel=1,yt(),1===this._dirtyLevel&&(this._dirtyLevel=0),_t()),4<=this._dirtyLevel}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();var e=at,t=bt;try{return at=!0,(bt=this)._runnings++,lo(this),this.fn()}finally{ao(this),this._runnings--,bt=t,at=e}}stop(){this.active&&(lo(this),ao(this),this.onStop&&this.onStop(),this.active=!1)}}function lo(e){e._trackId++,e._depsLength=0}function ao(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)co(t.deps[e],t);t.deps.length=t._depsLength}}function co(e,t){var n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let at=!0,ji=0;const uo=[];function yt(){uo.push(at),at=!1}function _t(){var e=uo.pop();at=void 0===e||e}function zi(){ji++}function Pi(){for(ji--;!ji&&Fi.length;)Fi.shift()()}function fo(e,t,n){var r;t.get(e)!==e._trackId&&(t.set(e,e._trackId),(r=e.deps[e._depsLength])!==t?(r&&co(r,e),e.deps[e._depsLength++]=t):e._depsLength++)}const Fi=[];function ho(t,n,e){zi();for(const r of t.keys()){let e;r._dirtyLevel<n&&(e=e??t.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=n),r._shouldSchedule&&(e=e??t.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Fi.push(r.scheduler)))}Pi()}const po=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ui=new WeakMap,kt=Symbol(""),Ni=Symbol("");function Ie(n,e,r){if(at&&bt){let e=Ui.get(n),t=(e||Ui.set(n,e=new Map),e.get(r));t||e.set(r,t=po(()=>e.delete(r))),fo(bt,t)}}function Ye(e,t,r,i,n,l){const o=Ui.get(e);if(o){let n=[];if("clear"===t)n=[...o.values()];else if("length"===r&&N(e)){const s=Number(i);o.forEach((e,t)=>{("length"===t||!Je(t)&&t>=s)&&n.push(e)})}else switch(void 0!==r&&n.push(o.get(r)),t){case"add":N(e)?Ti(r)&&n.push(o.get("length")):(n.push(o.get(kt)),jt(e)&&n.push(o.get(Ni)));break;case"delete":N(e)||(n.push(o.get(kt)),jt(e)&&n.push(o.get(Ni)));break;case"set":jt(e)&&n.push(o.get(kt))}zi();for(const a of n)a&&ho(a,4);Pi()}}const oa=Ii("__proto__,__v_isRef,__isVue"),go=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Je)),mo=sa();function sa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(r=>{e[r]=function(...e){const n=J(this);for(let e=0,t=this.length;e<t;e++)Ie(n,"get",e+"");var t=n[r](...e);return-1===t||!1===t?n[r](...e.map(J)):t}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){yt(),zi();e=J(this)[t].apply(this,e);return Pi(),_t(),e}}),e}function la(e){Je(e)||(e=String(e));const t=J(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class vo{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){var r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?ya:Eo:i?Co:xo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;var l=N(e);if(!r){if(l&&G(mo,t))return Reflect.get(mo,t,n);if("hasOwnProperty"===t)return la}n=Reflect.get(e,t,n);return(Je(t)?go.has(t):oa(t))||(r||Ie(e,"get",t),i)?n:Re(n)?l&&Ti(t)?n:n.value:ce(n)?(r?Jt:Qt)(n):n}}class wo extends vo{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){var l=Xt(i);if(Nn(n)||Xt(n)||(i=J(i),n=J(n)),!N(e)&&Re(i)&&!Re(n))return!l&&(i.value=n,!0)}var l=N(e)&&Ti(t)?Number(t)<e.length:G(e,t),o=Reflect.set(e,t,n,r);return e===J(r)&&(l?lt(n,i)&&Ye(e,"set",t,n):Ye(e,"add",t,n)),o}deleteProperty(e,t){var n=G(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ye(e,"delete",t,void 0),r}has(e,t){var n=Reflect.has(e,t);return Je(t)&&go.has(t)||Ie(e,"has",t),n}ownKeys(e){return Ie(e,"iterate",N(e)?"length":kt),Reflect.ownKeys(e)}}class aa extends vo{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ca=new wo,ua=new aa,fa=new wo(!0),Hi=e=>e,On=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,r=!1){var i=J(e=e.__v_raw),l=J(t);n||(lt(t,l)&&Ie(i,"get",t),Ie(i,"get",l));const o=On(i)["has"],s=r?Hi:n?Bi:en;return o.call(i,t)?s(e.get(t)):o.call(i,l)?s(e.get(l)):void(e!==i&&e.get(t))}function zn(e,t=!1){const n=this.__v_raw,r=J(n),i=J(e);return t||(lt(e,i)&&Ie(r,"has",e),Ie(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Pn(e,t=!1){return e=e.__v_raw,t||Ie(J(e),"iterate",kt),Reflect.get(e,"size",e)}function bo(e){e=J(e);const t=J(this);return On(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function yo(e,t){t=J(t);const n=J(this),{has:r,get:i}=On(n);let l=r.call(n,e);l||(e=J(e),l=r.call(n,e));var o=i.call(n,e);return n.set(e,t),l?lt(t,o)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function _o(e){const t=J(this),{has:n,get:r}=On(t);let i=n.call(t,e);i||(e=J(e),i=n.call(t,e)),r&&r.call(t,e);var l=t.delete(e);return i&&Ye(t,"delete",e,void 0),l}function ko(){const e=J(this),t=0!==e.size,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function Fn(o,s){return function(n,r){const i=this,e=i.__v_raw,t=J(e),l=s?Hi:o?Bi:en;return o||Ie(t,"iterate",kt),e.forEach((e,t)=>n.call(r,l(e),l(t),i))}}function Un(a,c,u){return function(...e){const t=this.__v_raw,n=J(t),r=jt(n),i="entries"===a||a===Symbol.iterator&&r,l="keys"===a&&r,o=t[a](...e),s=u?Hi:c?Bi:en;return c||Ie(n,"iterate",l?Ni:kt),{next(){var{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:i?[s(e[0]),s(e[1])]:s(e),done:t}},[Symbol.iterator](){return this}}}}function ct(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function da(){const t={get(e){return jn(this,e)},get size(){return Pn(this)},has:zn,add:bo,set:yo,delete:_o,clear:ko,forEach:Fn(!1,!1)},n={get(e){return jn(this,e,!1,!0)},get size(){return Pn(this)},has:zn,add:bo,set:yo,delete:_o,clear:ko,forEach:Fn(!1,!0)},r={get(e){return jn(this,e,!0)},get size(){return Pn(this,!0)},has(e){return zn.call(this,e,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!1)},i={get(e){return jn(this,e,!0,!0)},get size(){return Pn(this,!0)},has(e){return zn.call(this,e,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(e=>{t[e]=Un(e,!1,!1),r[e]=Un(e,!0,!1),n[e]=Un(e,!1,!0),i[e]=Un(e,!0,!0)}),[t,r,n,i]}const[ha,pa,ga,ma]=da();function Di(r,e){const i=e?r?ma:ga:r?pa:ha;return(e,t,n)=>"__v_isReactive"===t?!r:"__v_isReadonly"===t?r:"__v_raw"===t?e:Reflect.get(G(i,t)&&t in e?i:e,t,n)}const va={get:Di(!1,!1)},wa={get:Di(!1,!0)},ba={get:Di(!0,!1)},xo=new WeakMap,Co=new WeakMap,Eo=new WeakMap,ya=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 ka(e){return e.__v_skip||!Object.isExtensible(e)?0:_a(ql(e))}function Qt(e){return Xt(e)?e:Vi(e,!1,ca,va,xo)}function xa(e){return Vi(e,!1,fa,wa,Co)}function Jt(e){return Vi(e,!0,ua,ba,Eo)}function Vi(e,t,n,r,i){if(!ce(e)||e.__v_raw&&(!t||!e.__v_isReactive))return e;t=i.get(e);if(t)return t;t=ka(e);if(0===t)return e;t=new Proxy(e,2===t?r:n);return i.set(e,t),t}function Yt(e){return Xt(e)?Yt(e.__v_raw):!(!e||!e.__v_isReactive)}function Xt(e){return!(!e||!e.__v_isReadonly)}function Nn(e){return!(!e||!e.__v_isShallow)}function So(e){return!!e&&!!e.__v_raw}function J(e){var t=e&&e.__v_raw;return t?J(t):e}function Ca(e){return Object.isExtensible(e)&&no(e,"__v_skip",!0),e}const en=e=>ce(e)?Qt(e):e,Bi=e=>ce(e)?Jt(e):e;class Io{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Oi(()=>e(this._value),()=>Hn(this,2===this.effect._dirtyLevel?2:3)),(this.effect.computed=this).effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=J(this);return e._cacheable&&!e.effect.dirty||!lt(e._value,e._value=e.effect.run())||Hn(e,4),Ro(e),2<=e.effect._dirtyLevel&&Hn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ea(e,t,n=!1){let r,i;var l=ee(e);return i=l?(r=e,Qe):(r=e.get,e.set),new Io(r,i,l||!i,n)}function Ro(e){var t;at&&bt&&(e=J(e),fo(bt,null!=(t=e.dep)?t:e.dep=po(()=>e.dep=void 0,e instanceof Io?e:void 0)))}function Hn(e,t=4,n){e=(e=J(e)).dep;e&&ho(e,t)}function Re(e){return!(!e||!0!==e.__v_isRef)}function W(e){return To(e,!1)}function Sa(e){return To(e,!0)}function To(e,t){return Re(e)?e:new Ia(e,t)}class Ia{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:J(e),this._value=t?e:en(e)}get value(){return Ro(this),this._value}set value(e){var t=this.__v_isShallow||Nn(e)||Xt(e);e=t?e:J(e),lt(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:en(e),Hn(this,4))}}function Lo(e){return Re(e)?e.value:e}const Ra={get:(e,t,n)=>Lo(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Re(i)&&!Re(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ao(e){return Yt(e)?e:new Proxy(e,Ra)}function ut(e,t,n,r){try{return r?e(...r):e()}catch(e){Dn(e,t,n)}}function Be(t,n,r,i){if(ee(t)){const e=ut(t,n,r,i);return e&&Xr(e)&&e.catch(e=>{Dn(e,n,r)}),e}if(N(t)){const l=[];for(let e=0;e<t.length;e++)l.push(Be(t[e],n,r,i));return l}}function Dn(t,n,r,e=!0){var i=n?n.vnode:null;if(n){let e=n.parent;for(var l=n.proxy,o="https://vuejs.org/error-reference/#runtime-"+r;e;){const s=e.ec;if(s)for(let e=0;e<s.length;e++)if(!1===s[e](t,l,o))return;e=e.parent}n=n.appContext.config.errorHandler;if(n)return yt(),ut(n,null,10,[t,l,o]),void _t()}Ta(t,r,i,e)}function Ta(e,t,n,r=0){console.error(e)}let tn=!1,Wi=!1;const ye=[];let We=0;const Ft=[];let ft=null,xt=0;const Mo=Promise.resolve();let qi=null;function Ut(e){const t=qi||Mo;return e?t.then(this?e.bind(this):e):t}function La(e){let t=We+1,n=ye.length;for(;t<n;){var r=t+n>>>1,i=ye[r],l=nn(i);l<e||l===e&&i.pre?t=1+r:n=r}return t}function Ki(e){ye.length&&ye.includes(e,tn&&e.allowRecurse?We+1:We)||(null==e.id?ye.push(e):ye.splice(La(e.id),0,e),$o())}function $o(){tn||Wi||(Wi=!0,qi=Mo.then(zo))}function Aa(e){e=ye.indexOf(e);e>We&&ye.splice(e,1)}function Ma(e){N(e)?Ft.push(...e):ft&&ft.includes(e,e.allowRecurse?xt+1:xt)||Ft.push(e),$o()}function Oo(e,t,n=tn?We+1:0){for(;n<ye.length;n++){const r=ye[n];r&&r.pre&&(e&&r.id!==e.uid||(ye.splice(n,1),n--,r()))}}function jo(e){if(Ft.length){var t=[...new Set(Ft)].sort((e,t)=>nn(e)-nn(t));if(Ft.length=0,ft)ft.push(...t);else{for(ft=t,xt=0;xt<ft.length;xt++)ft[xt]();ft=null,xt=0}}}const nn=e=>null==e.id?1/0:e.id,$a=(e,t)=>{var n=nn(e)-nn(t);if(0==n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zo(e){Wi=!1,tn=!0,ye.sort($a);try{for(We=0;We<ye.length;We++){var t=ye[We];t&&!1!==t.active&&ut(t,null,14)}}finally{We=0,ye.length=0,jo(),tn=!1,qi=null,(ye.length||Ft.length)&&zo()}}function Oa(r,i,...l){if(!r.isUnmounted){var o=r.vnode.props||se;let e=l;var s=i.startsWith("update:"),a=s&&i.slice(7);a&&a in o&&({number:a,trim:c}=o[`${"modelValue"===a?"model":a}Modifiers`]||se,c&&(e=l.map(e=>ve(e)?e.trim():e)),a&&(e=l.map($n)));let t,n=o[t=Li(i)]||o[t=Li(Ve(i))];(n=!n&&s?o[t=Li(Pt(i))]:n)&&Be(n,r,6,e);var c=o[t+"Once"];if(c){if(r.emitted){if(r.emitted[t])return}else r.emitted={};r.emitted[t]=!0,Be(c,r,6,e)}}}function ja(e,t,n=0){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const l=e.emits;let o={};return l?(N(l)?l.forEach(e=>o[e]=null):be(o,l),ce(e)&&r.set(e,o),o):(ce(e)&&r.set(e,null),null)}function Vn(e,t){return!(!e||!Tn(t))&&(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,Pt(t))||G(e,t))}let xe=null,Po=null;function Bn(e){var t=xe;return xe=e,Po=e&&e.type.__scopeId||null,t}function za(r,i=xe,e){if(!i||r._n)return r;const l=(...e)=>{l._d&&ss(-1);var t=Bn(i);let n;try{n=r(...e)}finally{Bn(t),l._d&&ss(1)}return n};return l._n=!0,l._c=!0,l._d=!0,l}function Gi(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[l],slots:o,attrs:s,emit:a,render:c,renderCache:u,props:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=t,m=Bn(t);let v,y;try{if(4&n.shapeFlag){var w=i||r,b=w;v=qe(c.call(b,w,u,p,h,d,f)),y=s}else{const x=e;v=qe(1<x.length?x(p,{attrs:s,slots:o,emit:a}):x(p,null)),y=e.props?s:Pa(s)}}catch(e){cn.length=0,Dn(e,t,1),v=ie(It)}let k=v;if(y&&!1!==g){const _=Object.keys(y),S=k["shapeFlag"];_.length&&7&S&&(l&&_.some(Ri)&&(y=Fa(y,l)),k=Nt(k,y,!1,!0))}return n.dirs&&((k=Nt(k,null,!1,!0)).dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),v=k,Bn(m),v}const Pa=e=>{let t;for(const n in e)"class"!==n&&"style"!==n&&!Tn(n)||((t=t||{})[n]=e[n]);return t},Fa=(e,t)=>{const n={};for(const r in e)Ri(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Ua(e,t,n){var{props:r,children:e,component:i}=e,{props:l,children:o,patchFlag:s}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&0<=s))return!(!e&&!o||o&&o.$stable)||r!==l&&(r?!l||Fo(r,l,a):!!l);if(1024&s)return!0;if(16&s)return r?Fo(r,l,a):!!l;if(8&s){var c=t.dynamicProps;for(let e=0;e<c.length;e++){var u=c[e];if(l[u]!==r[u]&&!Vn(a,u))return!0}}return!1}function Fo(t,n,r){var i=Object.keys(n);if(i.length!==Object.keys(t).length)return!0;for(let e=0;e<i.length;e++){var l=i[e];if(n[l]!==t[l]&&!Vn(r,l))return!0}return!1}function Na({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const Ha="components";function Da(e,t){return Ba(Ha,e,!0,t)||e}const Va=Symbol.for("v-ndc");function Ba(e,t,n=0,r=!1){var i=xe||Ee;if(i){var l=i.type,o=Lc(l,!1);if(o&&(o===t||o===Ve(t)||o===An(Ve(t))))return l;o=Uo(i[e]||l[e],t)||Uo(i.appContext[e],t);return!o&&r?l:o}}function Uo(e,t){return e&&(e[t]||e[Ve(t)]||e[An(Ve(t))])}const Wa=e=>e.__isSuspense;function qa(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Ma(e)}const Ka=Symbol.for("v-scx"),Ga=()=>Zn(Ka);function No(e,t){return Ho(e,null,t)}const Wn={};function je(e,t,n){return Ho(e,t,n)}function Ho(e,t,{immediate:n,deep:r,flush:i,once:l}=se){if(t&&l){const b=t;t=(...e)=>{b(...e),w()}}const o=Ee,s=e=>!0===r?e:Ct(e,!1===r?1:void 0);let a,c=!1,u=!1;if(Re(e)?(a=()=>e.value,c=Nn(e)):Yt(e)?(a=()=>s(e),c=!0):a=N(e)?(u=!0,c=e.some(e=>Yt(e)||Nn(e)),()=>e.map(e=>Re(e)?e.value:Yt(e)?s(e):ee(e)?ut(e,o,2):void 0)):ee(e)?t?()=>ut(e,o,2):()=>(p&&p(),Be(e,o,3,[d])):Qe,t&&r){const k=a;a=()=>Ct(k())}let p,d=e=>{p=v.onStop=()=>{ut(e,o,4),p=v.onStop=void 0}},h;if(Xn){if(d=Qe,t?n&&Be(t,o,3,[a(),u?[]:void 0,d]):a(),"sync"!==i)return Qe;{const x=Ga();h=x.__watcherHandles||(x.__watcherHandles=[])}}let f=u?new Array(e.length).fill(Wn):Wn;const g=()=>{if(v.active&&v.dirty)if(t){const e=v.run();(r||c||(u?e.some((e,t)=>lt(e,f[t])):lt(e,f)))&&(p&&p(),Be(t,o,3,[e,f===Wn?void 0:u&&f[0]===Wn?[]:f,d]),f=e)}else v.run()};g.allowRecurse=!!t;let m;m="sync"===i?g:"post"===i?()=>Te(g,o&&o.suspense):(g.pre=!0,o&&(g.id=o.uid),()=>Ki(g));const v=new Oi(a,Qe,m),y=so(),w=()=>{v.stop(),y&&Jr(y.effects,v)};return t?n?g():f=v.run():"post"===i?Te(v.run.bind(v),o&&o.suspense):v.run(),h&&h.push(w),w}function Ct(t,n=1/0,r){if(n<=0||!ce(t)||t.__v_skip||(r=r||new Set).has(t))return t;if(r.add(t),n--,Re(t))Ct(t.value,n,r);else if(N(t))for(let e=0;e<t.length;e++)Ct(t[e],n,r);else if(zt(t)||jt(t))t.forEach(e=>{Ct(e,n,r)});else if(to(t))for(const e in t)Ct(t[e],n,r);return t}function qn(e,l){if(null===xe)return e;const o=ei(xe)||xe.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<l.length;i++){let[e,t,n,r=se]=l[i];e&&((e=ee(e)?{mounted:e,updated:e}:e).deep&&Ct(t),s.push({dir:e,instance:o,value:t,oldValue:void 0,arg:n,modifiers:r}))}return e}function Et(t,n,r,i){var l=t.dirs,o=n&&n.dirs;for(let e=0;e<l.length;e++){const a=l[e];o&&(a.oldValue=o[e].value);var s=a.dir[i];s&&(yt(),Be(s,r,8,[t.el,a,t,n]),_t())}}function rn(e,t){return ee(e)?be({name:e.name},t,{setup:e}):e}const Kn=e=>!!e.type.__asyncLoader,Za=e=>e.type.__isKeepAlive;function Qa(r,i,l=Ee,e=!1){if(l){const t=l[r]||(l[r]=[]),n=i.__weh||(i.__weh=(...e)=>{if(!l.isUnmounted){yt();const t=lr(l),n=Be(i,l,r,e);return t(),_t(),n}});return e?t.unshift(n):t.push(n),n}}const Zi=n=>(t,e=Ee)=>(!Xn||"sp"===n)&&Qa(n,(...e)=>t(...e),e),on=Zi("m"),Ja=Zi("bum"),Qi=Zi("um");function ze(n,r,e,t){let i;const l=e;if(N(n)||ve(n)){i=new Array(n.length);for(let e=0,t=n.length;e<t;e++)i[e]=r(n[e],e,void 0,l)}else if("number"==typeof n){i=new Array(n);for(let e=0;e<n;e++)i[e]=r(e+1,e,void 0,l)}else if(ce(n))if(n[Symbol.iterator])i=Array.from(n,(e,t)=>r(e,t,void 0,l));else{var o=Object.keys(n);i=new Array(o.length);for(let e=0,t=o.length;e<t;e++){var s=o[e];i[e]=r(n[s],s,e,l)}}else i=[];return i}const Ji=e=>e?us(e)?ei(e)||e.proxy:Ji(e.parent):null,sn=be(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=>Ji(e.parent),$root:e=>Ji(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ki(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>Qe}),Yi=(e,t)=>e!==se&&!e.__isScriptSetup&&G(e,t),Ya={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:l,accessCache:o,type:s,appContext:a}=e;if("$"!==t[0]){var c=o[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(Yi(r,t))return o[t]=1,r[t];if(i!==se&&G(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&G(c,t))return o[t]=3,l[t];if(n!==se&&G(n,t))return o[t]=4,n[t];o[t]=0}}const u=sn[t];let p,d;return u?("$attrs"===t&&Ie(e.attrs,"get",""),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==se&&G(n,t)?(o[t]=4,n[t]):(d=a.config.globalProperties,G(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return Yi(i,t)?(i[t]=n,!0):r!==se&&G(r,t)?(r[t]=n,!0):!(G(e.props,t)||"$"===t[0]&&t.slice(1)in e)&&(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},o){return!!n[o]||e!==se&&G(e,o)||Yi(t,o)||(n=l[0])&&G(n,o)||G(r,o)||G(sn,o)||G(i.config.globalProperties,o)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Do(e){return N(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Xa(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,s=l.get(t);let a;return s?a=s:i.length||n||r?(a={},i.length&&i.forEach(e=>Gn(a,e,o,!0)),Gn(a,t,o)):a=t,ce(t)&&l.set(t,a),a}function Gn(t,e,n,r=!1){const{mixins:i,extends:l}=e;l&&Gn(t,l,n,!0),i&&i.forEach(e=>Gn(t,e,n,!0));for(const o in e)if(!r||"expose"!==o){const s=ec[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const ec={data:Vo,props:Wo,emits:Wo,methods:ln,computed:ln,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:ln,directives:ln,watch:nc,provide:Vo,inject:tc};function Vo(e,t){return t?e?function(){return be(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function tc(e,t){return ln(Bo(e),Bo(t))}function Bo(t){if(N(t)){const n={};for(let e=0;e<t.length;e++)n[t[e]]=t[e];return n}return t}function Ce(e,t){return e?[...new Set([].concat(e,t))]:t}function ln(e,t){return e?be(Object.create(null),e,t):t}function Wo(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:be(Object.create(null),Do(e),Do(t??{})):t}function nc(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const r in t)n[r]=Ce(e[r],t[r]);return n}function qo(){return{app:null,config:{isNativeTag:Bl,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 ic=0;function rc(c,u){return function(i,l=null){ee(i)||(i=be({},i)),null==l||ce(l)||(l=null);const o=qo(),n=new WeakSet;let s=!1;const a=o.app={_uid:ic++,_component:i,_props:l,_container:null,_context:o,_instance:null,version:Mc,get config(){return o.config},set config(e){},use(e,...t){return n.has(e)||(e&&ee(e.install)?(n.add(e),e.install(a,...t)):ee(e)&&(n.add(e),e(a,...t))),a},mixin(e){return a},component(e,t){return t?(o.components[e]=t,a):o.components[e]},directive(e,t){return t?(o.directives[e]=t,a):o.directives[e]},mount(e,t,n){if(!s){const r=ie(i,l);return r.appContext=o,!0===n?n="svg":!1===n&&(n=void 0),t&&u?u(r,e):c(r,e,n),s=!0,(a._container=e).__vue_app__=a,ei(r.component)||r.component.proxy}},unmount(){s&&(c(null,a._container),delete a._container.__vue_app__)},provide(e,t){return o.provides[e]=t,a},runWithContext(e){var t=an;an=a;try{return e()}finally{an=t}}};return a}}let an=null;function oc(t,n){if(Ee){let e=Ee.provides;var r=Ee.parent&&Ee.parent.provides;(e=r===e?Ee.provides=Object.create(r):e)[t]=n}}function Zn(e,t,n=!1){var r,i=Ee||xe;if(i||an)return(r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:an._context.provides)&&e in r?r[e]:1<arguments.length?n&&ee(t)?t.call(i&&i.proxy):t:void 0}const Ko={},Go=()=>Object.create(Ko),Zo=e=>Object.getPrototypeOf(e)===Ko;function sc(e,t,n,r=!1){const i={},l=Go();e.propsDefaults=Object.create(null),Qo(e,t,i,l);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:xa(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function lc(t,n,r,e){const{props:i,attrs:l,vnode:{patchFlag:o}}=t,s=J(i),[a]=t.propsOptions;let c=!1;if(!(e||0<o)||16&o){Qo(t,n,i,l)&&(c=!0);let e;for(const h in s)n&&(G(n,h)||(e=Pt(h))!==h&&G(n,e))||(a?!r||void 0===r[h]&&void 0===r[e]||(i[h]=Xi(a,s,h,void 0,t,!0)):delete i[h]);if(l!==s)for(const f in l)n&&G(n,f)||(delete l[f],c=!0)}else if(8&o){var u=t.vnode.dynamicProps;for(let e=0;e<u.length;e++){var p,d=u[e];Vn(t.emitsOptions,d)||(p=n[d],!a||G(l,d)?p!==l[d]&&(l[d]=p,c=!0):(d=Ve(d),i[d]=Xi(a,s,d,p,t,!1)))}}c&&Ye(t.attrs,"set","")}function Qo(t,n,r,i){const[l,o]=t.propsOptions;let s=!1,a;if(n)for(var c in n)if(!Gt(c)){var u=n[c];let e;l&&G(l,e=Ve(c))?o&&o.includes(e)?(a=a||{})[e]=u:r[e]=u:Vn(t.emitsOptions,c)||c in i&&u===i[c]||(i[c]=u,s=!0)}if(o){var p=J(r),d=a||se;for(let e=0;e<o.length;e++){var h=o[e];r[h]=Xi(l,p,h,d[h],t,!G(d,h))}}return s}function Xi(e,t,n,r,i,l){e=e[n];if(null!=e){var o=G(e,"default");if(o&&void 0===r){const s=e.default;if(e.type!==Function&&!e.skipFactory&&ee(s)){const a=i["propsDefaults"];if(n in a)r=a[n];else{const c=lr(i);r=a[n]=s.call(null,t),c()}}else r=s}e[0]&&(l&&!o?r=!1:!e[1]||""!==r&&r!==Pt(n)||(r=!0))}return r}function ac(e,t,n=0){const r=t.propsCache,i=r.get(e);if(i)return i;const l=e.props,o={},s=[];if(!l)return ce(e)&&r.set(e,Ot),Ot;if(N(l))for(let e=0;e<l.length;e++){var a=Ve(l[e]);Jo(a)&&(o[a]=se)}else if(l)for(const d in l){var c,u,p=Ve(d);if(Jo(p)){const h=l[d],f=o[p]=N(h)||ee(h)?{type:h}:be({},h);f&&(c=es(Boolean,f.type),u=es(String,f.type),f[0]=-1<c,f[1]=u<0||c<u,(-1<c||G(f,"default"))&&s.push(p))}}t=[o,s];return ce(e)&&r.set(e,t),t}function Jo(e){return"$"!==e[0]&&!Gt(e)}function Yo(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Xo(e,t){return Yo(e)===Yo(t)}function es(t,e){return N(e)?e.findIndex(e=>Xo(e,t)):ee(e)&&Xo(e,t)?0:-1}const ts=e=>"_"===e[0]||"$stable"===e,er=e=>N(e)?e.map(qe):[qe(e)],cc=(e,t,n)=>{if(t._n)return t;const r=za((...e)=>er(t(...e)),n);return r._c=!1,r},ns=(e,t,n)=>{var r=e._ctx;for(const l in e)if(!ts(l)){var i=e[l];if(ee(i))t[l]=cc(l,i,r);else if(null!=i){const o=er(i);t[l]=()=>o}}},is=(e,t)=>{const n=er(t);e.slots.default=()=>n},uc=(e,t)=>{var n,r=e.slots=Go();32&e.vnode.shapeFlag?(n=t._)?(be(r,t),no(r,"_",n,!0)):ns(t,r):t&&is(e,t)},fc=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,o=se;var s;if(32&r.shapeFlag?((s=t._)?n&&1===s?l=!1:(be(i,t),n||1!==s||delete i._):(l=!t.$stable,ns(t,i)),o=t):t&&(is(e,t),o={default:1}),l)for(const a in i)ts(a)||null!=o[a]||delete i[a]};function tr(t,n,r,i,l=!1){if(N(t))t.forEach((e,t)=>tr(e,n&&(N(n)?n[t]:n),r,i,l));else if(!Kn(i)||l){const o=4&i.shapeFlag?ei(i.component)||i.component.proxy:i.el,s=l?null:o,{i:a,r:c}=t,u=n&&n.r,p=a.refs===se?a.refs={}:a.refs,d=a.setupState;if(null!=u&&u!==c&&(ve(u)?(p[u]=null,G(d,u)&&(d[u]=null)):Re(u)&&(u.value=null)),ee(c))ut(c,a,12,[s,p]);else{const h=ve(c),f=Re(c);var e;(h||f)&&(e=()=>{if(t.f){const e=h?(G(d,c)?d:p)[c]:c.value;l?N(e)&&Jr(e,o):N(e)?e.includes(o)||e.push(o):h?(p[c]=[o],G(d,c)&&(d[c]=p[c])):(c.value=[o],t.k&&(p[t.k]=c.value))}else h?(p[c]=s,G(d,c)&&(d[c]=s)):f&&(c.value=s,t.k&&(p[t.k]=s))},s?(e.id=-1,Te(e,r)):e())}}}function dc(){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Ai().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Te=qa;function hc(e){return pc(e)}function pc(e,o){dc();const t=Ai(),{insert:O,remove:g,patchProp:y,createElement:m,createText:P,createComment:i,setText:N,setElementText:S,parentNode:b,nextSibling:k,setScopeId:l=Qe,insertStaticContent:U}=(t.__VUE__=!0,e),E=(r,i,l,o=null,s=null,a=null,c=void 0,u=null,p=!!i.dynamicChildren)=>{if(r!==i){r&&!fn(r,i)&&(o=q(r),Z(r,s,a,!0),r=null),-2===i.patchFlag&&(p=!1,i.dynamicChildren=null);const{type:A,ref:$,shapeFlag:M}=i;switch(A){case Qn:var e=r,t=i,n=l,d=o;if(e==null)O(t.el=P(t.children),n,d);else{const T=t.el=e.el;t.children!==e.children&&N(T,t.children)}break;case It:V(r,i,l,o);break;case ir:null==r&&(n=i,d=l,e=o,t=c,[n.el,n.anchor]=U(n.children,d,e,t,n.el,n.anchor));break;case oe:{var h=r;var f=i;var g=l;var m=o;var v=s;var y=a;var w=c;var b=u;var k=p;const z=f.el=h?h.el:P(""),j=f.anchor=h?h.anchor:P("");let{patchFlag:e,dynamicChildren:t,slotScopeIds:n}=f;n&&(b=b?b.concat(n):n),h==null?(O(z,g,m),O(j,g,m),F(f.children||[],g,j,v,y,w,b,k)):e>0&&e&64&&t&&h.dynamicChildren?(D(h.dynamicChildren,t,g,v,y,w,b),(f.key!=null||v&&f===v.subTree)&&rs(h,f,!0)):G(h,f,g,j,v,y,w,b,k)}break;default:1&M?(m=r,h=l,f=o,g=s,v=a,y=c,w=u,b=p,"svg"===(k=i).type?y="svg":"math"===k.type&&(y="mathml"),null==m?W(k,h,f,g,v,y,w,b):H(m,k,g,v,y,w,b)):6&M?(x=r,S=l,C=o,L=s,R=a,I=c,E=p,(_=i).slotScopeIds=u,null==x?512&_.shapeFlag?L.ctx.activate(_,S,C,I,E):B(_,S,C,L,R,I,E):J(x,_,E)):(64&M||128&M)&&A.process(r,i,l,o,s,a,c,u,p,Q)}var x,_,S,C,L,R,I,E;null!=$&&s&&tr($,r&&r.ref,a,i||r,!i)}},V=(e,t,n,r)=>{null==e?O(t.el=i(t.children||""),n,r):t.el=e.el},W=(e,t,n,r,i,l,o,s)=>{let a,c;const{props:u,shapeFlag:p,transition:d,dirs:h}=e;if(a=e.el=m(e.type,l,u&&u.is,u),8&p?S(a,e.children):16&p&&F(e.children,a,null,r,i,nr(e,l),o,s),h&&Et(e,null,r,"created"),v(a,e,e.scopeId,o,r),u){for(const g in u)"value"===g||Gt(g)||y(a,g,null,u[g],l,e.children,r,i,L);"value"in u&&y(a,"value",null,u.value,l),(c=u.onVnodeBeforeMount)&&Ke(c,r,e)}h&&Et(e,null,r,"beforeMount");const f=gc(i,d);f&&d.beforeEnter(a),O(a,t,n),((c=u&&u.onVnodeMounted)||f||h)&&Te(()=>{c&&Ke(c,r,e),f&&d.enter(a),h&&Et(e,null,r,"mounted")},i)},v=(t,e,n,r,i)=>{if(n&&l(t,n),r)for(let e=0;e<r.length;e++)l(t,r[e]);i&&e===i.subTree&&(n=i.vnode,v(t,n,n.scopeId,n.slotScopeIds,i.parent))},F=(t,n,r,i,l,o,s,a,c=0)=>{for(let e=c;e<t.length;e++){var u=t[e]=(a?dt:qe)(t[e]);E(null,u,n,r,i,l,o,s,a)}},H=(t,e,n,r,i,l,o)=>{var s=e.el=t.el;let{patchFlag:a,dynamicChildren:c,dirs:u}=e;a|=16&t.patchFlag;var p=t.props||se,d=e.props||se;let h;if(n&&St(n,!1),(h=d.onVnodeBeforeUpdate)&&Ke(h,n,e,t),u&&Et(e,t,n,"beforeUpdate"),n&&St(n,!0),c?D(t.dynamicChildren,c,s,n,r,nr(e,i),l):o||G(t,e,s,null,n,r,nr(e,i),l,!1),0<a){if(16&a)w(s,e,p,d,n,r,i);else if(2&a&&p.class!==d.class&&y(s,"class",null,d.class,i),4&a&&y(s,"style",p.style,d.style,i),8&a){var f=e.dynamicProps;for(let e=0;e<f.length;e++){var g=f[e],m=p[g],v=d[g];v===m&&"value"!==g||y(s,g,m,v,i,t.children,n,r,L)}}1&a&&t.children!==e.children&&S(s,e.children)}else o||null!=c||w(s,e,p,d,n,r,i);((h=d.onVnodeUpdated)||u)&&Te(()=>{h&&Ke(h,n,e,t),u&&Et(e,t,n,"updated")},r)},D=(t,n,r,i,l,o,s)=>{for(let e=0;e<n.length;e++){var a=t[e],c=n[e],u=a.el&&(a.type===oe||!fn(a,c)||70&a.shapeFlag)?b(a.el):r;E(a,c,u,null,i,l,o,s,!0)}},w=(e,t,n,r,i,l,o)=>{if(n!==r){if(n!==se)for(const c in n)Gt(c)||c in r||y(e,c,n[c],null,o,t.children,i,l,L);for(const u in r){var s,a;Gt(u)||(s=r[u])!==(a=n[u])&&"value"!==u&&y(e,u,a,s,o,t.children,i,l,L)}"value"in r&&y(e,"value",n.value,r.value,o)}},B=(e,t,n,r,i,l,o)=>{const s=e.component=Cc(e,r,i);Za(e)&&(s.ctx.renderer=Q),Sc(s),s.asyncDep?(i&&i.registerDep(s,a),e.el||(r=s.subTree=ie(It),V(null,r,t,n))):a(s,e,t,n,i,l,o)},J=(e,t,n)=>{const r=t.component=e.component;Ua(e,t,n)?r.asyncDep&&!r.asyncResolved?x(r,t,n):(r.next=t,Aa(r.update),r.effect.dirty=!0,r.update()):(t.el=e.el,r.vnode=t)},a=(d,h,f,g,m,v,y)=>{const w=()=>{if(d.isMounted){let{next:e,bu:t,u:n,parent:r,vnode:i}=d;{const c=os(d);if(c)return e&&(e.el=i.el,x(d,e,y)),void c.asyncDep.then(()=>{d.isUnmounted||w()})}let l=e,o;St(d,!1),e?(e.el=i.el,x(d,e,y)):e=i,t&&Mn(t),(o=e.props&&e.props.onVnodeBeforeUpdate)&&Ke(o,r,e,i),St(d,!0);var s=Gi(d),a=d.subTree;d.subTree=s,E(a,s,b(a.el),q(a),d,m,v),e.el=s.el,null===l&&Na(d,s.el),n&&Te(n,m),(o=e.props&&e.props.onVnodeUpdated)&&Te(()=>Ke(o,r,e,i),m)}else{let e;const{el:t,props:n}=h,{bm:r,m:i,parent:l}=d,o=Kn(h);if(St(d,!1),r&&Mn(r),!o&&(e=n&&n.onVnodeBeforeMount)&&Ke(e,l,h),St(d,!0),t&&R){const u=()=>{d.subTree=Gi(d),R(t,d.subTree,d,m,null)};o?h.type.__asyncLoader().then(()=>!d.isUnmounted&&u()):u()}else{a=d.subTree=Gi(d);E(null,a,f,g,d,m,v),h.el=a.el}if(i&&Te(i,m),!o&&(e=n&&n.onVnodeMounted)){const p=h;Te(()=>Ke(e,l,p),m)}(256&h.shapeFlag||l&&Kn(l.vnode)&&256&l.vnode.shapeFlag)&&d.a&&Te(d.a,m),d.isMounted=!0,h=f=g=null}},e=d.effect=new Oi(w,Qe,()=>Ki(t),d.scope),t=d.update=()=>{e.dirty&&e.run()};t.id=d.uid,St(d,!0),t()},x=(e,t,n)=>{var r=(t.component=e).vnode.props;e.vnode=t,e.next=null,lc(e,t.props,r,n),fc(e,t.children,n),yt(),Oo(e),_t()},G=(e,t,n,r,i,l,o,s,a=!1)=>{var c=e&&e.children,e=e?e.shapeFlag:0,u=t.children,{patchFlag:t,shapeFlag:p}=t;if(0<t){if(128&t)return void C(c,u,n,r,i,l,o,s,a);if(256&t){{var d=c;var h=u;var f=n;t=r;var g=i;var m=l;var v=o;var y=s;var w=a;d=d||Ot,h=h||Ot;const b=d.length,k=h.length,x=Math.min(b,k);let e;for(e=0;e<x;e++){const _=h[e]=w?dt(h[e]):qe(h[e]);E(d[e],_,f,null,g,m,v,y,w)}b>k?L(d,g,m,!0,!1,x):F(h,f,t,g,m,v,y,w,x)}return}}8&p?(16&e&&L(c,i,l),u!==c&&S(n,u)):16&e?16&p?C(c,u,n,r,i,l,o,s,a):L(c,i,l,!0):(8&e&&S(n,""),16&p&&F(u,n,r,i,l,o,s,a))},C=(e,l,o,s,a,c,u,p,d)=>{let h=0;var f=l.length;let g=e.length-1,m=f-1;for(;h<=g&&h<=m;){var t=e[h],n=l[h]=(d?dt:qe)(l[h]);if(!fn(t,n))break;E(t,n,o,null,a,c,u,p,d),h++}for(;h<=g&&h<=m;){var r=e[g],i=l[m]=(d?dt:qe)(l[m]);if(!fn(r,i))break;E(r,i,o,null,a,c,u,p,d),g--,m--}if(h>g){if(h<=m)for(var v=m+1,y=v<f?l[v].el:s;h<=m;)E(null,l[h]=(d?dt:qe)(l[h]),o,y,a,c,u,p,d),h++}else if(h>m)for(;h<=g;)Z(e[h],a,c,!0),h++;else{const C=h,L=h,R=new Map;for(h=L;h<=m;h++){var w=l[h]=(d?dt:qe)(l[h]);null!=w.key&&R.set(w.key,h)}let t,n=0;var b=m-L+1;let r=!1,i=0;const I=new Array(b);for(h=0;h<b;h++)I[h]=0;for(h=C;h<=g;h++){var k=e[h];if(n>=b)Z(k,a,c,!0);else{let e;if(null!=k.key)e=R.get(k.key);else for(t=L;t<=m;t++)if(0===I[t-L]&&fn(k,l[t])){e=t;break}void 0===e?Z(k,a,c,!0):(I[e-L]=h+1,e>=i?i=e:r=!0,E(k,l[e],o,null,a,c,u,p,d),n++)}}var x=r?mc(I):Ot;for(t=x.length-1,h=b-1;0<=h;h--){var _=L+h,S=l[_],_=_+1<f?l[_+1].el:s;0===I[h]?E(null,S,o,_,a,c,u,p,d):r&&(t<0||h!==x[t]?A(S,o,_,2):t--)}}},A=(e,t,n,r,i=null)=>{const{el:l,type:o,transition:s,children:a,shapeFlag:c}=e;if(6&c)A(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)o.move(e,t,n,Q);else if(o===oe){O(l,t,n);for(let e=0;e<a.length;e++)A(a[e],t,n,r);O(e.anchor,t,n)}else if(o===ir){for(var u,[{el:p,anchor:d},h,f]=[e,t,n];p&&p!==d;)u=k(p),O(p,h,f),p=u;O(d,h,f)}else if(2!==r&&1&c&&s)if(0===r)s.beforeEnter(l),O(l,t,n),Te(()=>s.enter(l),i);else{const{leave:g,delayLeave:m,afterLeave:v}=s,y=()=>O(l,t,n),w=()=>{g(l,()=>{y(),v&&v()})};m?m(l,y,w):w()}else O(l,t,n)},Z=(t,n,r,i=!1,l=!1)=>{var{type:o,props:s,ref:e,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=t;if(null!=e&&tr(e,null,r,t,!0),256&u)n.ctx.deactivate(t);else{const h=1&u&&d,f=!Kn(t);let e;if(f&&(e=s&&s.onVnodeBeforeUnmount)&&Ke(e,n,t),6&u)I(t.component,r,i);else{if(128&u)return void t.suspense.unmount(r,i);h&&Et(t,null,n,"beforeUnmount"),64&u?t.type.remove(t,n,r,l,Q,i):c&&(o!==oe||0<p&&64&p)?L(c,n,r,!1,!0):(o===oe&&384&p||!l&&16&u)&&L(a,n,r),i&&_(t)}(f&&(e=s&&s.onVnodeUnmounted)||h)&&Te(()=>{e&&Ke(e,n,t),h&&Et(t,null,n,"unmounted")},r)}},_=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===oe){for(var l,o=n,s=r;o!==s;)l=k(o),g(o),o=l;g(s)}else if(t===ir){for(var a,{el:c,anchor:u}=[e][0];c&&c!==u;)a=k(c),g(c),c=a;g(u)}else{const p=()=>{g(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:d,delayLeave:h}=i,f=()=>d(n,p);h?h(e.el,p,f):f()}else p()}},I=(e,t,n)=>{const{bum:r,scope:i,update:l,subTree:o,um:s}=e;r&&Mn(r),i.stop(),l&&(l.active=!1,Z(o,e,t,n)),s&&Te(s,t),Te(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},L=(t,n,r,i=!1,l=!1,o=0)=>{for(let e=o;e<t.length;e++)Z(t[e],n,r,i,l)},q=e=>6&e.shapeFlag?q(e.component.subTree):128&e.shapeFlag?e.suspense.next():k(e.anchor||e.el);let r=!1;const n=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):E(t._vnode||null,e,t,null,null,null,n),r||(r=!0,Oo(),jo(),r=!1),t._vnode=e},Q={p:E,um:Z,m:A,r:_,mt:B,mc:F,pc:G,pbc:D,n:q,o:e};let R;return{render:n,hydrate:void 0,createApp:rc(n,void 0)}}function nr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gc(e,t){return(!e||!e.pendingBranch)&&t&&!t.persisted}function rs(e,t,n=!1){const r=e.children,i=t.children;if(N(r)&&N(i))for(let t=0;t<r.length;t++){var l=r[t];let e=i[t];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&((e=i[t]=dt(i[t])).el=l.el),n||rs(l,e)),e.type===Qn&&(e.el=l.el)}}function mc(e){const t=e.slice(),n=[0];let r,i,l,o,s;var a=e.length;for(r=0;r<a;r++){var c=e[r];if(0!==c)if(e[i=n[n.length-1]]<c)t[r]=i,n.push(r);else{for(l=0,o=n.length-1;l<o;)s=l+o>>1,e[n[s]]<c?l=1+s:o=s;c<e[n[l]]&&(0<l&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,o=n[l-1];0<l--;)n[l]=o,o=t[o];return n}function os(e){e=e.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:os(e)}const vc=e=>e.__isTeleport,oe=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),cn=[];let He=null;function S(e=!1){cn.push(He=e?null:[])}function wc(){cn.pop(),He=cn[cn.length-1]||null}let un=1;function ss(e){un+=e}function ls(e){return e.dynamicChildren=0<un?He||Ot:null,wc(),0<un&&He&&He.push(e),e}function L(e,t,n,r,i,l){return ls(M(e,t,n,r,i,l,!0))}function Xe(e,t,n,r,i){return ls(ie(e,t,n,r,i,!0))}function rr(e){return!!e&&!0===e.__v_isVNode}function fn(e,t){return e.type===t.type&&e.key===t.key}const as=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>null!=(e="number"==typeof e?""+e:e)?ve(e)||Re(e)||ee(e)?{i:xe,r:e,k:t,f:!!n}:e:null;function M(e,t=null,n=null,r=0,i=null,l=e===oe?0:1,o=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&as(t),ref:t&&Jn(t),scopeId:Po,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xe};return s?(or(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),0<un&&!o&&He&&(0<a.patchFlag||6&l)&&32!==a.patchFlag&&He.push(a),a}const ie=bc;function bc(e,n=null,t=null,r=0,i=null,l=!1){if(rr(e=e&&e!==Va?e:It)){const o=Nt(e,n,!0);return t&&or(o,t),0<un&&!l&&He&&(6&o.shapeFlag?He[He.indexOf(e)]=o:He.push(o)),o.patchFlag|=-2,o}if(Ac(e)&&(e=e.__vccOpts),n){let{class:e,style:t}=n=yc(n);e&&!ve(e)&&(n.class=pe(e)),ce(t)&&(So(t)&&!N(t)&&(t=be({},t)),n.style=Zt(t))}return M(e,n,t,r,i,ve(e)?1:Wa(e)?128:vc(e)?64:ce(e)?4:ee(e)?2:0,l,!0)}function yc(e){return e?So(e)||Zo(e)?be({},e):e:null}function Nt(e,t,n=!1,r=!1){const{props:i,ref:l,patchFlag:o,children:s,transition:a}=e,c=t?_c(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&as(c),ref:t&&t.ref?n&&l?N(l)?l.concat(Jn(t)):[l,Jn(t)]:Jn(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==oe?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&(u.transition=a.clone(u)),u}function et(e=" ",t=0){return ie(Qn,null,e,t)}function Z(e="",t=!1){return t?(S(),Xe(It,null,e)):ie(It,null,e)}function qe(e){return null==e||"boolean"==typeof e?ie(It):N(e)?ie(oe,null,e.slice()):"object"==typeof e?dt(e):ie(Qn,null,String(e))}function dt(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Nt(e)}function or(e,t){let n=0;var r=e["shapeFlag"];if(null==t)t=null;else if(N(t))n=16;else if("object"==typeof t){if(65&r){const l=t.default;return void(l&&(l._c&&(l._d=!1),or(e,l()),l._c&&(l._d=!0)))}n=32;var i=t._;i||Zo(t)?3===i&&xe&&(1===xe.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xe}else ee(t)?(t={default:t,_ctx:xe},n=32):(t=String(t),64&r?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function _c(...t){const n={};for(let e=0;e<t.length;e++){var r=t[e];for(const i in r)if("class"===i)n.class!==r.class&&(n.class=pe([n.class,r.class]));else if("style"===i)n.style=Zt([n.style,r.style]);else if(Tn(i)){const l=n[i],o=r[i];!o||l===o||N(l)&&l.includes(o)||(n[i]=l?[].concat(l,o):o)}else""!==i&&(n[i]=r[i])}return n}function Ke(e,t,n,r=null){Be(e,t,7,[n,r])}const kc=qo();let xc=0;function Cc(e,t,n){const r=e.type,i=(t||e).appContext||kc,l={uid:xc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new na(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ac(r,i),emitsOptions:ja(r,i),emit:null,emitted:null,propsDefaults:se,inheritAttrs:r.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,attrsProxy:null,slotsProxy: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 l.ctx={_:l},l.root=t?t.root:l,l.emit=Oa.bind(null,l),e.ce&&e.ce(l),l}let Ee=null;const Ec=()=>Ee||xe;let Yn,sr;{const JD=Ai(),KD=(e,t)=>{let n;return(n=(n=JD[e])?n:JD[e]=[]).push(t),t=>{1<n.length?n.forEach(e=>e(t)):n[0](t)}};Yn=KD("__VUE_INSTANCE_SETTERS__",e=>Ee=e),sr=KD("__VUE_SSR_SETTERS__",e=>Xn=e)}const lr=e=>{const t=Ee;return Yn(e),e.scope.on(),()=>{e.scope.off(),Yn(t)}},cs=()=>{Ee&&Ee.scope.off(),Yn(null)};function us(e){return 4&e.vnode.shapeFlag}let Xn=!1;function Sc(e,t=!1){t&&sr(t);var{props:n,children:r}=e.vnode,i=us(e),n=(sc(e,n,i,t),uc(e,r),i?Ic(e,t):void 0);return t&&sr(!1),n}function Ic(t,n){var e=t.type,e=(t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ya),e)["setup"];if(e){const r=t.setupContext=1<e.length?Tc(t):null,i=lr(t),l=(yt(),ut(e,t,0,[t.props,r]));if(_t(),i(),Xr(l)){if(l.then(cs,cs),n)return l.then(e=>{fs(t,e,n)}).catch(e=>{Dn(e,t,0)});t.asyncDep=l}else fs(t,l,n)}else hs(t,n)}function fs(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Ao(t)),hs(e,n)}let ds;function hs(e,t,n){const r=e.type;var i,l,o,s;e.render||(t||!ds||r.render||(t=r.template||Xa(e).template)&&({isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:o}=r,s=be(be({isCustomElement:s,delimiters:l},i),o),r.render=ds(t,s)),e.render=r.render||Qe)}const Rc={get(e,t){return Ie(e,"get",""),e[t]}};function Tc(t){return{attrs:new Proxy(t.attrs,Rc),slots:t.slots,emit:t.emit,expose:e=>{t.exposed=e||{}}}}function ei(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Ao(Ca(n.exposed)),{get(e,t){return t in e?e[t]:t in sn?sn[t](n):void 0},has(e,t){return t in e||t in sn}}))}function Lc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Ac(e){return ee(e)&&"__vccOpts"in e}const we=(e,t)=>Ea(e,t,Xn);function Y(e,t,n){var r=arguments.length;return 2===r?ce(t)&&!N(t)?rr(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(3<r?n=Array.prototype.slice.call(arguments,2):3===r&&rr(n)&&(n=[n]),ie(e,t,n))}const Mc="3.4.27",$c="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,ps=ht&&ht.createElement("template"),jc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?ht.createElementNS($c,e):"mathml"===t?ht.createElementNS(Oc,e):ht.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){var o=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==l&&(i=i.nextSibling););else{ps.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const a=ps.content;if("svg"===r||"mathml"===r){for(var s=a.firstChild;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zc=Symbol("_vtc");function Pc(e,t,n){var r=e[zc];null==(t=r?(t?[t,...r]:[...r]).join(" "):t)?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),gs=Symbol("_vsh"),ms={beforeMount(e,{value:t},{transition:n}){e[ti]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):dn(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),dn(e,!0),r.enter(e)):r.leave(e,()=>{dn(e,!1)}):dn(e,t))},beforeUnmount(e,{value:t}){dn(e,t)}};function dn(e,t){e.style.display=t?e[ti]:"none",e[gs]=!t}const Fc=Symbol(""),Uc=/(^|;)\s*display\s*:/;function Nc(e,t,n){const r=e.style,i=ve(n);let l=!1;if(n&&!i){if(t)if(ve(t))for(const a of t.split(";")){var o=a.slice(0,a.indexOf(":")).trim();null==n[o]&&ni(r,o,"")}else for(const c in t)null==n[c]&&ni(r,c,"");for(const u in n)"display"===u&&(l=!0),ni(r,u,n[u])}else{var s;i?t!==n&&((s=r[Fc])&&(n+=";"+s),r.cssText=n,l=Uc.test(n)):t&&e.removeAttribute("style")}ti in e&&(e[ti]=l?r.display:"",e[gs]&&(r.display="none"))}const vs=/\s*!important$/;function ni(t,n,e){var r;N(e)?e.forEach(e=>ni(t,n,e)):(null==e&&(e=""),n.startsWith("--")?t.setProperty(n,e):(r=Hc(t,n),vs.test(e)?t.setProperty(Pt(r),e.replace(vs,""),"important"):t[r]=e))}const ws=["Webkit","Moz","ms"],ar={};function Hc(t,n){var e=ar[n];if(e)return e;let r=Ve(n);if("filter"!==r&&r in t)return ar[n]=r;r=An(r);for(let e=0;e<ws.length;e++){var i=ws[e]+r;if(i in t)return ar[n]=i}return n}const bs="http://www.w3.org/1999/xlink";function Dc(e,t,n,r,i){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(bs,t.slice(6,t.length)):e.setAttributeNS(bs,t,n):(r=ea(t),null==n||r&&!ro(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n))}function Vc(e,t,n,r,i,l,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,i,l),void(e[t]=n??"");const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-"))return o=n??"",("OPTION"===s?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n);let a=!1;""!==n&&null!=n||("boolean"==(r=typeof e[t])?n=ro(n):null==n&&"string"==r?(n="",a=!0):"number"==r&&(n=0,a=!0));try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tt(e,t,n,r){e.addEventListener(t,n,r)}function Bc(e,t,n,r){e.removeEventListener(t,n,r)}const ys=Symbol("_vei");function Wc(e,t,n,r,i=null){const l=e[ys]||(e[ys]={}),o=l[t];var s,a;r&&o?o.value=r:([s,a]=qc(t),r?tt(e,s,l[t]=Zc(r,i),a):o&&(Bc(e,s,o,a),l[t]=void 0))}const _s=/(?:Once|Passive|Capture)$/;function qc(t){let n;if(_s.test(t)){n={};let e;for(;e=t.match(_s);)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):Pt(t.slice(2)),n]}let cr=0;const Kc=Promise.resolve(),Gc=()=>cr||(Kc.then(()=>cr=0),cr=Date.now());function Zc(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Be(Qc(e,n.value),t,5,[e])};return n.value=e,n.attached=Gc(),n}function Qc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(t=>e=>!e._stopped&&t&&t(e))}return t}const ks=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&96<e.charCodeAt(2)&&e.charCodeAt(2)<123,Jc=(e,t,n,r,i,l,o,s,a)=>{i="svg"===i;"class"===t?Pc(e,r,i):"style"===t?Nc(e,n,r):Tn(t)?Ri(t)||Wc(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Yc(e,t,r,i))?Vc(e,t,r,l,o,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Dc(e,t,r,i))};function Yc(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&ks(t)&&ee(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){r=e.tagName;if("IMG"===r||"VIDEO"===r||"CANVAS"===r||"SOURCE"===r)return!1}return(!ks(t)||!ve(n))&&t in e}const pt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?e=>Mn(t,e):t};function Xc(e){e.target.composing=!0}function xs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pe=Symbol("_assign"),ur={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Pe]=pt(i);const l=r||i.props&&"number"===i.props.type;tt(t,e?"change":"input",e=>{if(!e.target.composing){let e=t.value;n&&(e=e.trim()),l&&(e=$n(e)),t[Pe](e)}}),n&&tt(t,"change",()=>{t.value=t.value.trim()}),e||(tt(t,"compositionstart",Xc),tt(t,"compositionend",xs),tt(t,"change",xs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},l){e[Pe]=pt(l),e.composing||(l=t??"",(!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:$n(e.value))===l||document.activeElement===e&&"range"!==e.type&&(n||r&&e.value.trim()===l)||(e.value=l))}},eu={deep:!0,created(a,e,t){a[Pe]=pt(t),tt(a,"change",()=>{const e=a._modelValue,t=Ht(a),n=a.checked,r=a[Pe];if(N(e)){var i=Mi(e,t),l=-1!==i;if(n&&!l)r(e.concat(t));else if(!n&&l){const o=[...e];o.splice(i,1),r(o)}}else if(zt(e)){const s=new Set(e);n?s.add(t):s.delete(t),r(s)}else r(Ss(a,n))})},mounted:Cs,beforeUpdate(e,t,n){e[Pe]=pt(n),Cs(e,t,n)}};function Cs(e,{value:t,oldValue:n},r){e._modelValue=t,N(t)?e.checked=-1<Mi(t,r.props.value):zt(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=wt(t,Ss(e,!0)))}const tu={created(e,{value:t},n){e.checked=wt(t,n.props.value),e[Pe]=pt(n),tt(e,"change",()=>{e[Pe](Ht(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Pe]=pt(r),t!==n&&(e.checked=wt(t,r.props.value))}},nu={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=zt(e);tt(t,"change",()=>{var e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>n?$n(Ht(e)):Ht(e));t[Pe](t.multiple?i?new Set(e):e:e[0]),t._assigning=!0,Ut(()=>{t._assigning=!1})}),t[Pe]=pt(r)},mounted(e,{value:t,modifiers:{}}){Es(e,t)},beforeUpdate(e,t,n){e[Pe]=pt(n)},updated(e,{value:t,modifiers:{}}){e._assigning||Es(e,t)}};function Es(n,r,e){var i,l=n.multiple,o=N(r);if(!l||o||zt(r)){for(let e=0,t=n.options.length;e<t;e++){const s=n.options[e],a=Ht(s);if(l)o?(i=typeof a,s.selected="string"==i||"number"==i?r.some(e=>String(e)===String(a)):-1<Mi(r,a)):s.selected=r.has(a);else if(wt(Ht(s),r))return void(n.selectedIndex!==e&&(n.selectedIndex=e))}l||-1===n.selectedIndex||(n.selectedIndex=-1)}}function Ht(e){return"_value"in e?e._value:e.value}function Ss(e,t){var n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iu={created(e,t,n){ii(e,t,n,null,"created")},mounted(e,t,n){ii(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ii(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ii(e,t,n,r,"updated")}};function ru(e,t){switch(e){case"SELECT":return nu;case"TEXTAREA":return ur;default:switch(t){case"checkbox":return eu;case"radio":return tu;default:return ur}}}function ii(e,t,n,r,i){const l=ru(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const ou=be({patchProp:Jc},jc);let Is;function su(){return Is=Is||hc(ou)}const lu=(...e)=>{const r=su().createApp(...e),i=r["mount"];return r.mount=e=>{const t=cu(e);if(t){const n=r._component;ee(n)||n.render||n.template||(n.template=t.innerHTML),t.innerHTML="";e=i(t,!1,au(t));return t instanceof Element&&(t.removeAttribute("v-cloak"),t.setAttribute("data-v-app","")),e}},r};function au(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function cu(e){return ve(e)?document.querySelector(e):e}function hn(e){return!!so()&&(ra(e),!0)}function nt(e){return"function"==typeof e?e():Lo(e)}const ri=typeof window<"u"&&typeof document<"u",uu=Object.prototype.toString,fu=e=>"[object Object]"===uu.call(e),oi=()=>{};function Rs(r,i){return function(...n){return new Promise((e,t)=>{Promise.resolve(r(()=>i.apply(this,n),{fn:i,thisArg:this,args:n})).then(e).catch(t)})}}const Ts=e=>e();function du(e,l={}){let o,s,a=oi;const c=e=>{clearTimeout(e),a(),a=oi};return n=>{const r=nt(e),i=nt(l.maxWait);return o&&c(o),r<=0||void 0!==i&&i<=0?(s&&(c(s),s=null),Promise.resolve(n())):new Promise((e,t)=>{a=l.rejectOnCancel?t:e,i&&!s&&(s=setTimeout(()=>{o&&c(o),s=null,e(n())},i)),o=setTimeout(()=>{s&&c(s),s=null,e(n())},r)})}}function hu(t=Ts){const n=W(!0);return{isActive:Jt(n),pause:function(){n.value=!1},resume:function(){n.value=!0},eventFilter:(...e)=>{n.value&&t(...e)}}}function Ls(e){return Ec()}function pu(e,t=200,n={}){return Rs(du(t,n),e)}function gu(e,t,n={}){const{eventFilter:r=Ts,...i}=n;return je(e,Rs(r,t),i)}function mu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:l,pause:o,resume:s,isActive:a}=hu(r);return{stop:gu(e,t,{...i,eventFilter:l}),pause:o,resume:s,isActive:a}}function fr(e,t=!0,n){Ls()?on(e,n):t?e():Ut(e)}function vu(e,t){Ls()&&Qi(e,t)}function wu(t,n=1e3,e={}){const{immediate:r=!0,immediateCallback:i=!1}=e;let l=null;const o=W(!1);function s(){l&&(clearInterval(l),l=null)}function a(){o.value=!1,s()}function c(){var e=nt(n);e<=0||(o.value=!0,i&&t(),s(),l=setInterval(t,e))}return r&&ri&&c(),!Re(n)&&"function"!=typeof n||hn(je(n,()=>{o.value&&ri&&c()})),hn(a),{isActive:o,pause:a,resume:c}}function bu(e){var t,e=nt(e);return null!=(t=null==e?void 0:e.$el)?t:e}const si=ri?window:void 0,As=ri?window.document:void 0;function li(...e){let t,i,l,n;if("string"==typeof e[0]||Array.isArray(e[0])?([i,l,n]=e,t=si):[t,i,l,n]=e,!t)return oi;Array.isArray(i)||(i=[i]),Array.isArray(l)||(l=[l]);const o=[],s=()=>{o.forEach(e=>e()),o.length=0},r=je(()=>[bu(t),nt(n)],([n,e])=>{if(s(),n){const r=fu(e)?{...e}:e;o.push(...i.flatMap(t=>l.map(e=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(n,t,e,r))))}},{immediate:!0,flush:"post"}),a=()=>{r(),s()};return hn(a),a}function yu(n,e={}){const{immediate:t=!0,fpsLimit:r=void 0,window:i=si}=e,l=W(!1),o=r?1e3/r:null;let s=0,a=null;function c(e){var t;l.value&&i&&(t=e-(s=s||e),a=(o&&t<o||(s=e,n({delta:t,timestamp:e})),i.requestAnimationFrame(c)))}function u(){!l.value&&i&&(l.value=!0,s=0,a=i.requestAnimationFrame(c))}function p(){l.value=!1,null!=a&&i&&(i.cancelAnimationFrame(a),a=null)}return t&&u(),hn(p),{isActive:Jt(l),pause:p,resume:u}}const ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ci="__vueuse_ssr_handlers__",_u=ku();function ku(){return ci in ai||(ai[ci]=ai[ci]||{}),ai[ci]}function xu(e,t){return _u[e]||t}function Cu(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}const Eu={boolean:{read:e=>"true"===e,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()}},Ms="vueuse-storage";function Dt(r,e,i,t={}){const{flush:n="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:a=!1,shallow:c,window:u=si,eventFilter:p,onError:d=e=>{console.error(e)},initOnMounted:h}=t,f=(c?Sa:W)("function"==typeof e?e():e);if(!i)try{i=xu("getDefaultStorage",()=>{var e;return null==(e=si)?void 0:e.localStorage})()}catch(e){d(e)}if(!i)return f;const g=nt(e),m=Cu(g),v=null!=(e=t.serializer)?e:Eu[m],{pause:y,resume:w}=mu(f,()=>{var e=f.value;try{var t,n=i.getItem(r);null==e?(b(n,null),i.removeItem(r)):(t=v.write(e),n!==t&&(i.setItem(r,t),b(n,t)))}catch(e){d(e)}},{flush:n,deep:l,eventFilter:p});function b(e,t){u&&u.dispatchEvent(new CustomEvent(Ms,{detail:{key:r,oldValue:e,newValue:t,storageArea:i}}))}function k(e){if(!e||e.storageArea===i)if(e&&null==e.key)f.value=g;else if(!e||e.key===r){y();try{(null==e?void 0:e.newValue)!==v.write(f.value)&&(f.value=null==(n=(t=e)?t.newValue:i.getItem(r))?(s&&null!=g&&i.setItem(r,v.write(g)),g):!t&&a?(t=v.read(n),"function"==typeof a?a(t,g):"object"!==m||Array.isArray(t)?t:{...g,...t}):"string"!=typeof n?n:v.read(n))}catch(e){d(e)}finally{e?Ut(w):w()}}var t,n}function x(e){k(e.detail)}return u&&o&&fr(()=>{li(u,"storage",k),li(u,Ms,x),h&&k()}),h||k(),f}function Su(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,l="requestAnimationFrame"===n?yu(i,{immediate:!0}):wu(i,n,{immediate:!0});return t?{now:r,...l}:r}function Iu(o,s=oi,e={}){const{immediate:t=!0,manual:n=!1,type:a="text/javascript",async:c=!0,crossOrigin:u,referrerPolicy:p,noModule:d,defer:h,document:f=As,attrs:g={}}=e,m=W(null);let r=null;const i=(e=!0)=>r=r||(l=>new Promise((t,r)=>{const i=e=>(m.value=e,t(e),e);if(f){let e=!1,n=f.querySelector(`script[src="${nt(o)}"]`);n?n.hasAttribute("data-loaded")&&i(n):((n=f.createElement("script")).type=a,n.async=c,n.src=nt(o),h&&(n.defer=h),u&&(n.crossOrigin=u),d&&(n.noModule=d),p&&(n.referrerPolicy=p),Object.entries(g).forEach(([e,t])=>null==n?void 0:n.setAttribute(e,t)),e=!0),n.addEventListener("error",e=>r(e)),n.addEventListener("abort",e=>r(e)),n.addEventListener("load",()=>{n.setAttribute("data-loaded","true"),s(n),i(n)}),e&&(n=f.head.appendChild(n)),l||i(n)}else t(!1)}))(e),l=()=>{var e;f&&(r=null,m.value&&(m.value=null),(e=f.querySelector(`script[src="${nt(o)}"]`))&&f.head.removeChild(e))};return t&&!n&&fr(i),n||vu(l),{scriptTag:m,load:i,unload:l}}let Ru=0;function Tu(e,n={}){const r=W(!1),{document:i=As,immediate:t=!0,manual:l=!1,id:o="vueuse_styletag_"+ ++Ru}=n,s=W(e);let a=()=>{};var e=()=>{if(i){const t=i.getElementById(o)||i.createElement("style");t.isConnected||(t.id=o,n.media&&(t.media=n.media),i.head.appendChild(t)),r.value||(a=je(s,e=>{t.textContent=e},{immediate:!0}),r.value=!0)}},c=()=>{i&&r.value&&(a(),i.head.removeChild(i.getElementById(o)),r.value=!1)};return t&&!l&&fr(e),l||hn(c),{id:o,css:s,unload:c,load:e,isLoaded:Jt(r)}}const Lu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Au=t=>{const n=Dt("WALINE_EMOJI",{}),r=Lu(t);if(r){var e=n.value[t];if(e)return Promise.resolve(e)}return fetch(t+"/info.json").then(e=>e.json()).then(e=>{e={folder:t,...e};return r&&(n.value[t]=e),e})},$s=(e,t="",n="",r="")=>(t?t+"/":"")+n+e+(r?"."+r:""),Mu=e=>Promise.all(e.map(e=>$t(e)?Au(Zr(e)):Promise.resolve(e))).then(e=>{const s={tabs:[],map:{}};return e.forEach(e=>{const{name:t,folder:n,icon:r,prefix:i="",type:l,items:o}=e;s.tabs.push({name:t,icon:$s(r,n,i,l),items:o.map(e=>{var t=""+i+e;return s.map[t]=$s(e,n,i,l),t})})}),s}),Os=e=>{"AbortError"!==e.name&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:$t(e)?document.querySelector(e):null,$u=e=>e.type.includes("image"),js=e=>{const t=Array.from(e).find($u);return t?t.getAsFile():null};function hr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Rt=hr();function zs(e){Rt=e}const Ps=/[&<>"']/,Ou=new RegExp(Ps.source,"g"),Fs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ju=new RegExp(Fs.source,"g"),zu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Us=e=>zu[e];function $e(e,t){if(t){if(Ps.test(e))return e.replace(Ou,Us)}else if(Fs.test(e))return e.replace(ju,Us);return e}const Pu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fu(e){return e.replace(Pu,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const Uu=/(^|[^\[])\^/g;function re(e,t){let r="string"==typeof e?e:e.source;t=t||"";const i={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(Uu,"$1"),r=r.replace(e,n),i},getRegex:()=>new RegExp(r,t)};return i}function Ns(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const pn={exec:()=>null};function Hs(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;0<=--i&&"\\"===n[i];)r=!r;return r?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),0<r.length&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function ui(e,t,n){var r=e.length;if(0===r)return"";let i=0;for(;i<r;){var l=e.charAt(r-i-1);if(l!==t||n){if(l===t||!n)break;i++}else i++}return e.slice(0,r-i)}function Nu(t,n){if(-1===t.indexOf(n[1]))return-1;let r=0;for(let e=0;e<t.length;e++)if("\\"===t[e])e++;else if(t[e]===n[0])r++;else if(t[e]===n[1]&&--r<0)return e;return-1}function Ds(e,t,n,r){var i=t.href,t=t.title?$e(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?(r.state.inLink=!0,e={type:"link",raw:n,href:i,title:t,text:l,tokens:r.inlineTokens(l)},r.state.inLink=!1,e):{type:"image",raw:n,href:i,title:t,text:$e(l)}}function Hu(e,t){e=e.match(/^(\s+)(?:```)/);if(null===e)return t;const n=e[1];return t.split(`
`).map(e=>{var t=e.match(/^\s+/);if(null===t)return e;var[t]=t;return t.length>=n.length?e.slice(n.length):e}).join(`
`)}class fi{options;rules;lexer;constructor(e){this.options=e||Rt}space(e){e=this.rules.block.newline.exec(e);if(e&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){const t=this.rules.block.code.exec(e);if(t)return e=t[0].replace(/^ {1,4}/gm,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ui(e,`
`)}}fences(e){const t=this.rules.block.fences.exec(e);var n;if(t)return n=Hu(e=t[0],t[3]||""),{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:n}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const n=ui(e,"#");!this.options.pedantic&&n&&!/ $/.test(n)||(e=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`);e=ui(e.replace(/^ *>[ \t]?/gm,""),`
`);var t=this.lexer.state.top,r=(this.lexer.state.top=!0,this.lexer.blockTokens(e));return this.lexer.state.top=t,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(u){let p=this.rules.block.list.exec(u);if(p){let e=p[1].trim();const t=1<e.length,h={type:"list",raw:"",ordered:t,start:t?+e.slice(0,-1):"",loose:!1,items:[]},f=(e=t?"\\d{1,9}\\"+e.slice(-1):"\\"+e,this.options.pedantic&&(e=t?e:"[*+-]"),new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`));let s="",a="",c=!1;for(;u;){let e=!1;if(!(p=f.exec(u))||this.rules.block.hr.test(u))break;s=p[0],u=u.substring(s.length);let t=p[2].split(`
`,1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),n=u.split(`
`,1)[0],r=0,i=(this.options.pedantic?(r=2,a=t.trimStart()):(r=4<(r=p[2].search(/[^ ]/))?1:r,a=t.slice(r),r+=p[1].length),!1);if(!t&&/^ *$/.test(n)&&(s+=n+`
`,u=u.substring(n.length+1),e=!0),!e){const g=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),m=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;u;){var d=u.split(`
`,1)[0];if(n=d,this.options.pedantic&&(n=n.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(n)||y.test(n)||g.test(n)||m.test(u))break;if(n.search(/[^ ]/)>=r||!n.trim())a+=`
`+n.slice(r);else{if(i||4<=t.search(/[^ ]/)||v.test(t)||y.test(t)||m.test(t))break;a+=`
`+n}i||n.trim()||(i=!0),s+=d+`
`,u=u.substring(d.length+1),t=n.slice(r)}}h.loose||(c?h.loose=!0:/\n *\n *$/.test(s)&&(c=!0));let l=null,o;this.options.gfm&&((l=/^\[[ xX]\] /.exec(a))&&(o="[ ] "!==l[0],a=a.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:s,task:!!l,checked:o,loose:!1,text:a,tokens:[]}),h.raw+=s}h.items[h.items.length-1].raw=s.trimEnd(),h.items[h.items.length-1].text=a.trimEnd(),h.raw=h.raw.trimEnd();for(let e=0;e<h.items.length;e++)if(this.lexer.state.top=!1,h.items[e].tokens=this.lexer.blockTokens(h.items[e].text,[]),!h.loose){const n=h.items[e].tokens.filter(e=>"space"===e.type),r=0<n.length&&n.some(e=>/\n.*\n/.test(e.raw));h.loose=r}if(h.loose)for(let e=0;e<h.items.length;e++)h.items[e].loose=!0;return h}}html(e){e=this.rules.block.html.exec(e);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){const t=this.rules.block.def.exec(e);var n,r;if(t)return e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:e,raw:t[0],href:n,title:r}}table(e){const t=this.rules.block.table.exec(e);if(t&&/[:|]/.test(t[2])){const n=Hs(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const o of r)/^ *-+: *$/.test(o)?l.align.push("right"):/^ *:-+: *$/.test(o)?l.align.push("center"):/^ *:-+ *$/.test(o)?l.align.push("left"):l.align.push(null);for(const s of n)l.header.push({text:s,tokens:this.lexer.inline(s)});for(const a of i)l.rows.push(Hs(a,l.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return l}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t)return e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1],{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}text(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:$e(e[1])}}tag(e){e=this.rules.inline.tag.exec(e);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){const r=this.rules.inline.link.exec(n);if(r){const l=r[2].trim();if(!this.options.pedantic&&/^</.test(l)){if(!/>$/.test(l))return;n=ui(l.slice(0,-1),"\\");if((l.length-n.length)%2==0)return}else{var i,n=Nu(r[2],"()");-1<n&&(i=(0===r[0].indexOf("!")?5:4)+r[1].length+n,r[2]=r[2].substring(0,n),r[0]=r[0].substring(0,i).trim(),r[3]="")}let e=r[2],t="";return this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(e))&&(e=n[1],t=n[3]):t=r[3]?r[3].slice(1,-1):"",e=e.trim(),/^</.test(e)&&(e=this.options.pedantic&&!/>$/.test(l)?e.slice(1):e.slice(1,-1)),Ds(r,{href:e&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(/\s+/g," "),i=t[r.toLowerCase()];return i?Ds(n,i,n[0],this.lexer):{type:"text",raw:e=n[0].charAt(0),text:e}}}emStrong(i,l,e=""){let o=this.rules.inline.emStrongLDelim.exec(i);if(!(!o||o[3]&&e.match(/[\p{L}\p{N}]/u))&&(!o[1]&&!o[2]||!e||this.rules.inline.punctuation.exec(e))){var s=[...o[0]].length-1;let e,t,n=s,r=0;const c="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,l=l.slice(-1*i.length+s);null!=(o=c.exec(l));)if(e=o[1]||o[2]||o[3]||o[4]||o[5]||o[6])if(t=[...e].length,o[3]||o[4])n+=t;else if((o[5]||o[6])&&s%3&&!((s+t)%3))r+=t;else if(!(0<(n-=t))){t=Math.min(t,t+n+r);const u=[...o[0]][0].length,p=i.slice(0,s+o.index+u+t);if(Math.min(s,t)%2)return a=p.slice(1,-1),{type:"em",raw:p,text:a,tokens:this.lexer.inlineTokens(a)};var a=p.slice(2,-2);return{type:"strong",raw:p,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(/\n/g," ");var t=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return e=$e(e=t&&r?e.substring(1,e.length-1):e,!0),{type:"codespan",raw:n[0],text:e}}}br(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}}del(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){n=this.rules.inline.autolink.exec(n);if(n){let e,t;return t="@"===n[2]?"mailto:"+(e=$e(n[1])):e=$e(n[1]),{type:"link",raw:n[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var n,r;let i;if(i=this.rules.inline.url.exec(e)){let e,t;if("@"===i[2])e=$e(i[0]),t="mailto:"+e;else{for(;r=i[0],i[0]=(null==(n=this.rules.inline._backpedal.exec(i[0]))?void 0:n[0])??"",r!==i[0];);e=$e(i[0]),t="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(t){t=this.rules.inline.text.exec(t);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:$e(t[0]),{type:"text",raw:t[0],text:e}}}}const Du=/^(?: *(?:\n|$))+/,Vu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Bu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Wu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vs=/(?:[*+-]|\d{1,9}[.)])/,Bs=re(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Vs).replace(/blockCode/g,/ {4}/).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(),pr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qu=/^[^\n]+/,gr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ku=re(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",gr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gu=re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vs).getRegex(),di="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",mr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zu=re("^ {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",mr).replace("tag",di).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ws=re(pr).replace("hr",gn).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",di).getRegex(),Qu=re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ws).getRegex(),vr={blockquote:Qu,code:Vu,def:Ku,fences:Bu,heading:Wu,hr:gn,html:Zu,lheading:Bs,list:Gu,newline:Du,paragraph:Ws,table:pn,text:qu},qs=re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",di).getRegex(),Ju={...vr,table:qs,paragraph:re(pr).replace("hr",gn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs).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",di).getRegex()},Yu={...vr,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mr).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:pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(pr).replace("hr",gn).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Bs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ks=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gs=/^( {2,}|\\)\n(?!\s*$)/,ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mn="\\p{P}\\p{S}",tf=re(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,mn).getRegex(),nf=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,rf=re(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,mn).getRegex(),of=re("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,mn).getRegex(),sf=re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,mn).getRegex(),lf=re(/\\([punct])/,"gu").replace(/punct/g,mn).getRegex(),af=re(/^<(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(),cf=re(mr).replace("(?:--\x3e|$)","--\x3e").getRegex(),uf=re("^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",cf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ff=re(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",hi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zs=re(/^!?\[(label)\]\[(ref)\]/).replace("label",hi).replace("ref",gr).getRegex(),Qs=re(/^!?\[(ref)\](?:\[\])?/).replace("ref",gr).getRegex(),df=re("reflink|nolink(?!\\()","g").replace("reflink",Zs).replace("nolink",Qs).getRegex(),wr={_backpedal:pn,anyPunctuation:lf,autolink:af,blockSkip:nf,br:Gs,code:Xu,del:pn,emStrongLDelim:rf,emStrongRDelimAst:of,emStrongRDelimUnd:sf,escape:Ks,link:ff,nolink:Qs,punctuation:tf,reflink:Zs,reflinkSearch:df,tag:uf,text:ef,url:pn},hf={...wr,link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",hi).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hi).getRegex()},br={...wr,escape:re(Ks).replace("])","~|])").getRegex(),url:re(/^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},pf={...br,br:re(Gs).replace("{2,}","*").getRegex(),text:re(br.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pi={normal:vr,gfm:Ju,pedantic:Yu},vn={normal:wr,gfm:br,breaks:pf,pedantic:hf};class it{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Rt,this.options.tokenizer=this.options.tokenizer||new fi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:pi.normal,inline:vn.normal};this.options.pedantic?(t.block=pi.pedantic,t.inline=vn.pedantic):this.options.gfm&&(t.block=pi.gfm,this.options.breaks?t.inline=vn.breaks:t.inline=vn.gfm),this.tokenizer.rules=t}static get rules(){return{block:pi,inline:vn}}static lex(e,t){return new it(t).lex(e)}static lexInline(e,t){return new it(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,t=[]){r=this.options.pedantic?r.replace(/\t/g," ").replace(/^ +$/gm,""):r.replace(/^( *)(\t+)/gm,(e,t,n)=>t+" ".repeat(n.length));let n,e,i,l;for(;r;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(e=>!!(n=e.call({lexer:this},r,t))&&(r=r.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(r)){r=r.substring(n.raw.length),1===n.raw.length&&0<t.length?t[t.length-1].raw+=`
`:t.push(n);continue}if(n=this.tokenizer.code(r)){r=r.substring(n.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?t.push(n):(e.raw+=`
`+n.raw,e.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=e.text);continue}if(n=this.tokenizer.fences(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(r)){r=r.substring(n.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(e.raw+=`
`+n.raw,e.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=e.text);continue}if(n=this.tokenizer.table(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(r)){r=r.substring(n.raw.length),t.push(n);continue}if(i=r,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const s=r.slice(1);let n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},s))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(i=r.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){e=t[t.length-1],l&&"paragraph"===e.type?(e.raw+=`
`+n.raw,e.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(n),l=i.length!==r.length,r=r.substring(n.raw.length);continue}if(n=this.tokenizer.text(r)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===e.type?(e.raw+=`
`+n.raw,e.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(n);continue}if(r){var o="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(r,t=[]){let n,e,i,l=r,o,s,a;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(0<u.length)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;r;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(e=>!!(n=e.call({lexer:this},r,t))&&(r=r.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(r)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===n.type&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===n.type&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(r,l,a)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(r)){r=r.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(r))){r=r.substring(n.raw.length),t.push(n);continue}if(i=r,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const p=r.slice(1);let n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},p))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(i=r.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){r=r.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,(e=t[t.length-1])&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(r){var c="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return t}}class gi{options;constructor(e){this.options=e||Rt}code(e,t,n){t=null==(t=(t||"").match(/^\S*/))?void 0:t[0];return e=e.replace(/\n$/,"")+`
`,t?'<pre><code class="language-'+$e(t)+'">'+(n?e:$e(e,!0))+`</code></pre>
`:"<pre><code>"+(n?e:$e(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
`}hr(){return`<hr>
`}list(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+`>
`+e+"</"+r+`>
`}listitem(e,t,n){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
`}table(e,t){return`<table>
<thead>
`+e+`</thead>
`+(t=t&&`<tbody>${t}</tbody>`)+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){var n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){var r=Ns(e);if(null===r)return n;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"}image(e,t,n){var r=Ns(e);if(null===r)return n;let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=">"}text(e){return e}}class yr{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class rt{options;renderer;textRenderer;constructor(e){this.options=e||Rt,this.options.renderer=this.options.renderer||new gi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new yr}static parse(e,t){return new rt(t).parse(e)}static parseInline(e,t){return new rt(t).parseInline(e)}parse(r,i=!0){let l="";for(let n=0;n<r.length;n++){var o=r[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){var e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){l+=t||"";continue}}switch(o.type){case"space":continue;case"hr":l+=this.renderer.hr();continue;case"heading":var s=o;l+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Fu(this.parseInline(s.tokens,this.textRenderer)));continue;case"code":l+=this.renderer.code(o.text,o.lang,!!o.escaped);continue;case"table":{var a=o;let e="",t="";for(let e=0;e<a.header.length;e++)t+=this.renderer.tablecell(this.parseInline(a.header[e].tokens),{header:!0,align:a.align[e]});e+=this.renderer.tablerow(t);let n="";for(let e=0;e<a.rows.length;e++){var c=a.rows[e];t="";for(let e=0;e<c.length;e++)t+=this.renderer.tablecell(this.parseInline(c[e].tokens),{header:!1,align:a.align[e]});n+=this.renderer.tablerow(t)}l+=this.renderer.table(e,n);continue}case"blockquote":s=this.parse(o.tokens);l+=this.renderer.blockquote(s);continue;case"list":{var u,p=o,d=p.ordered,h=p.start,f=p.loose;let n="";for(let t=0;t<p.items.length;t++){const g=p.items[t],m=g.checked,v=g.task;let e="";g.task&&(u=this.renderer.checkbox(!!m),f?0<g.tokens.length&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=u+" "+g.tokens[0].text,g.tokens[0].tokens&&0<g.tokens[0].tokens.length&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=u+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:u+" "}):e+=u+" "),e+=this.parse(g.tokens,f),n+=this.renderer.listitem(e,v,!!m)}l+=this.renderer.list(n,d,h);continue}case"html":l+=this.renderer.html(o.text,o.block);continue;case"paragraph":l+=this.renderer.paragraph(this.parseInline(o.tokens));continue;case"text":{let e=o,t=e.tokens?this.parseInline(e.tokens):e.text;for(;n+1<r.length&&"text"===r[n+1].type;)e=r[++n],t+=`
`+(e.tokens?this.parseInline(e.tokens):e.text);l+=i?this.renderer.paragraph(t):t;continue}default:d='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}return l}parseInline(t,n){n=n||this.renderer;let r="";for(let e=0;e<t.length;e++){var i=t[e];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){var l=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}switch(i.type){case"escape":r+=n.text(i.text);break;case"html":r+=n.html(i.text);break;case"link":r+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break;case"image":r+=n.image(i.href,i.title,i.text);break;case"strong":r+=n.strong(this.parseInline(i.tokens,n));break;case"em":r+=n.em(this.parseInline(i.tokens,n));break;case"codespan":r+=n.codespan(i.text);break;case"br":r+=n.br();break;case"del":r+=n.del(this.parseInline(i.tokens,n));break;case"text":r+=n.text(i.text);break;default:var o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return r}}class wn{options;constructor(e){this.options=e||Rt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}Oe(wn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Js{constructor(...e){_i(this,xn),_i(this,bi),Oe(this,"defaults",hr()),Oe(this,"options",this.setOptions),Oe(this,"parse",En(this,xn,kr).call(this,it.lex,rt.parse)),Oe(this,"parseInline",En(this,xn,kr).call(this,it.lexInline,rt.parseInline)),Oe(this,"Parser",rt),Oe(this,"Renderer",gi),Oe(this,"TextRenderer",yr),Oe(this,"Lexer",it),Oe(this,"Tokenizer",fi),Oe(this,"Hooks",wn),this.use(...e)}walkTokens(e,t){var n;let r=[];for(const l of e)switch(r=r.concat(t.call(this,l)),l.type){case"table":var i=l;for(const o of i.header)r=r.concat(this.walkTokens(o.tokens,t));for(const s of i.rows)for(const a of s)r=r.concat(this.walkTokens(a.tokens,t));break;case"list":i=l;r=r.concat(this.walkTokens(i.items,t));break;default:{const c=l;null!=(n=null==(n=this.defaults.extensions)?void 0:n.childTokens)&&n[c.type]?this.defaults.extensions.childTokens[c.type].forEach(e=>{e=c[e].flat(1/0);r=r.concat(this.walkTokens(e,t))}):c.tokens&&(r=r.concat(this.walkTokens(c.tokens,t)))}}return r}use(...e){const w=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){const r=w.renderers[n.name];r?w.renderers[n.name]=function(...e){let t=n.renderer.apply(this,e);return t=!1===t?r.apply(this,e):t}:w.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");const e=w[n.level];e?e.unshift(n.tokenizer):w[n.level]=[n.tokenizer],n.start&&("block"===n.level?w.startBlock?w.startBlock.push(n.start):w.startBlock=[n.start]:"inline"===n.level&&(w.startInline?w.startInline.push(n.start):w.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(w.childTokens[n.name]=n.childTokens)}),t.extensions=w),e.renderer){const n=this.defaults.renderer||new gi(this.defaults);for(const r in e.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if("options"!==r){const i=r,l=e.renderer[i],o=n[i];n[i]=(...e)=>{let t=l.apply(n,e);return(t=!1===t?o.apply(n,e):t)||""}}}t.renderer=n}if(e.tokenizer){const s=this.defaults.tokenizer||new fi(this.defaults);for(const a in e.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(!["options","rules","lexer"].includes(a)){const c=a,u=e.tokenizer[c],p=s[c];s[c]=(...e)=>{let t=u.apply(s,e);return t=!1===t?p.apply(s,e):t}}}t.tokenizer=s}if(e.hooks){const d=this.defaults.hooks||new wn;for(const h in e.hooks){if(!(h in d))throw new Error(`hook '${h}' does not exist`);if("options"!==h){const f=h,g=e.hooks[f],m=d[f];wn.passThroughHooks.has(h)?d[f]=e=>{if(this.defaults.async)return Promise.resolve(g.call(d,e)).then(e=>m.call(d,e));e=g.call(d,e);return m.call(d,e)}:d[f]=(...e)=>{let t=g.apply(d,e);return t=!1===t?m.apply(d,e):t}}}t.hooks=d}if(e.walkTokens){const v=this.defaults.walkTokens,y=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(y.call(this,e)),t=v?t.concat(v.call(this,e)):t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return it.lex(e,t??this.defaults)}parser(e,t){return rt.parse(e,t??this.defaults)}}xn=new WeakSet,kr=function(l,o){return(n,e)=>{const t={...e},r={...this.defaults,...t},i=(!0===this.defaults.async&&!1===t.async&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=!0),En(this,bi,wl).call(this,!!r.silent,!!r.async));if("u"<typeof n||null===n)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(e=>l(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>o(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(i);try{r.hooks&&(n=r.hooks.preprocess(n));let e=l(n,r),t=(r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens),o(e,r));return t=r.hooks?r.hooks.postprocess(t):t}catch(e){return i(e)}}},bi=new WeakSet,wl=function(n,r){return e=>{var t;if(e.message+=`
Please report this to https://github.com/markedjs/marked.`,n)return t="<p>An error occurred:</p><pre>"+$e(e.message+"",!0)+"</pre>",r?Promise.resolve(t):t;if(r)return Promise.reject(e);throw e}};const Tt=new Js;function ue(e,t){return Tt.parse(e,t)}function gf(r){if((r="function"==typeof r?{highlight:r}:r)&&"function"==typeof r.highlight)return"string"!=typeof r.langPrefix&&(r.langPrefix="language-"),{async:!!r.async,walkTokens(e){if("code"===e.type){var t=Ys(e.lang);if(r.async)return Promise.resolve(r.highlight(e.text,t,e.lang||"")).then(Xs(e));t=r.highlight(e.text,t,e.lang||"");if(t 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.");Xs(e)(t)}},renderer:{code(e,t,n){t=Ys(t),t=t?` class="${r.langPrefix}${il(t)}"`:"";return e=e.replace(/\n$/,""),`<pre><code${t}>${n?e:il(e,!0)}
</code></pre>`}}};throw new Error("Must provide highlight function")}function Ys(e){return(e||"").match(/\S*/)[0]}function Xs(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}ue.options=ue.setOptions=function(e){return Tt.setOptions(e),ue.defaults=Tt.defaults,zs(ue.defaults),ue},ue.getDefaults=hr,ue.defaults=Rt,ue.use=function(...e){return Tt.use(...e),ue.defaults=Tt.defaults,zs(ue.defaults),ue},ue.walkTokens=function(e,t){return Tt.walkTokens(e,t)},ue.parseInline=Tt.parseInline,ue.Parser=rt,ue.parser=rt.parse,ue.Renderer=gi,ue.TextRenderer=yr,ue.Lexer=it,ue.lexer=it.lex,ue.Tokenizer=fi,ue.Hooks=wn,ue.parse=ue;const el=/[&<>"']/,mf=new RegExp(el.source,"g"),tl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,vf=new RegExp(tl.source,"g"),wf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nl=e=>wf[e];function il(e,t){if(t){if(el.test(e))return e.replace(mf,nl)}else if(tl.test(e))return e.replace(vf,nl);return e}const bf=/\$.*?\$/,yf=/^\$(.*?)\$/,_f=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,kf=t=>[{name:"blockMath",level:"block",tokenizer(e){e=_f.exec(e);if(null!==e)return{type:"html",raw:e[0],text:t(!0,e[1])}}},{name:"inlineMath",level:"inline",start(e){var t=e.search(bf);return-1!==t?t:e.length},tokenizer(e){e=yf.exec(e);if(null!==e)return{type:"html",raw:e[0],text:t(!1,e[1])}}}],rl=(e="",n={})=>e.replace(/:(.+?):/g,(e,t)=>n[t]?`<img class="wl-emoji" src="${n[t]}" alt="${t}">`:e),xf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Js;return i.setOptions({breaks:!0}),n&&i.use(gf({highlight:n})),r&&(n=kf(r),i.use({extensions:n})),i.parse(rl(e,t))},_r=e=>{e=e.dataset.path;return null!=e&&e.length?e:null},Cf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Ef=e=>e.match(/[\u4E00-\u9FD5]/gu),Sf=e=>{var t;return((null==(t=Cf(e))?void 0:t.reduce((e,t)=>e+(["",",","."].includes(t.trim())?0:t.trim().split(/\s+/u).length),0))??0)+((null==(t=Ef(e))?void 0:t.length)??0)},If=async()=>{if(!navigator)return"";const e=navigator["userAgentData"];let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const n=(await e.getHighEntropyValues(["platformVersion"]))["platformVersion"];return t=n&&13<=parseInt(n.split(".")[0])?t.replace("Windows NT 10.0","Windows NT 11.0"):t},ol=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,l=document.querySelectorAll(n);return l.length&&Lr({serverURL:Rn(e),paths:Array.from(l).map(e=>Gr(_r(e)??t)),lang:r,signal:i.signal}).then(n=>{l.forEach((e,t)=>{e.innerText=n[t].toString()})}).catch(Os),i.abort.bind(i)},Rf=({size:e})=>Y("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Y("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"}),Y("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"})]),Tf=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),Lf=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),Af=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"}),Y("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"})]),Mf=({active:e=!1})=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"})]),$f=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"}),Y("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"})]),Of=()=>Y("svg",{width:"16",height:"16",ariaHidden:"true"},Y("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"})),jf=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),zf=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),Pf=()=>Y("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Y("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"})),mi=({size:e=100})=>Y("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Y("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Y("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Ff=()=>Y("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Y("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"}),Y("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"})]),Uf=()=>Dt("WALINE_USER_META",{nick:"",mail:"",link:""}),Nf=()=>Dt("WALINE_COMMENT_BOX_EDITOR",""),Hf="WALINE_LIKE";let sl=null;const ll=()=>sl=sl??Dt(Hf,[]),Df="WALINE_REACTION";let al=null;const Vf=()=>al=al??Dt(Df,{});var gt,vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cl={},Vt={},bn={},Bf=vi&&vi.__awaiter||function(e,o,s,a){return new(s=s||Promise)(function(n,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function i(e){try{l(a.throw(e))}catch(e){t(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}l((a=a.apply(e,o||[])).next())})},Wf=vi&&vi.__generator||function(r,i){var l,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(r,a)}catch(e){t=[6,e],o=0}finally{l=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},qf=(Object.defineProperty(bn,"__esModule",{value:!0}),bn.ReCaptchaInstance=void 0,function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(t){return Bf(this,void 0,void 0,function(){return Wf(this,function(e){return[2,(this.recaptcha.enterprise||this.recaptcha).execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}()),Kf=(bn.ReCaptchaInstance=qf,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0,bn),ul=(!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(gt=gt||{}),function(){function a(){}return a.load=function(r,i){if(void 0===i&&(i={}),"u"<typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(a.getLoadingState()===gt.LOADED)return a.instance.getSiteKey()===r?Promise.resolve(a.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(a.getLoadingState()===gt.LOADING)return r!==a.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(t,n){a.successfulLoadingConsumers.push(function(e){return t(e)}),a.errorLoadingRunnable.push(function(e){return n(e)})});a.instanceSiteKey=r,a.setLoadingState(gt.LOADING);var l=new a;return new Promise(function(n,e){l.loadScript(r,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters||{},i.customUrl).then(function(){a.setLoadingState(gt.LOADED);var e=l.doExplicitRender(grecaptcha,r,i.explicitRenderParameters||{},i.useEnterprise||!1),t=new Kf.ReCaptchaInstance(r,e,grecaptcha);a.successfulLoadingConsumers.forEach(function(e){return e(t)}),a.successfulLoadingConsumers=[],i.autoHideBadge&&t.hideBadge(),n(a.instance=t)}).catch(function(t){a.errorLoadingRunnable.forEach(function(e){return e(t)}),a.errorLoadingRunnable=[],e(t)})})},a.getInstance=function(){return a.instance},a.setLoadingState=function(e){a.loadingState=e},a.getLoadingState=function(){return null===a.loadingState?gt.NOT_LOADED:a.loadingState},a.prototype.loadScript=function(e,t,n,r,i){var l=this,o=(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r={}),void 0===i&&(i=""),document.createElement("script")),s=(o.setAttribute("recaptcha-v3-script",""),"https://www.google.com/recaptcha/api.js"),t=(t&&(s=n?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),n&&(s="https://www.google.com/recaptcha/enterprise.js"),i&&(s=i),r.render&&(r.render=void 0),this.buildQueryString(r));return o.src=s+"?render=explicit"+t,new Promise(function(e,t){o.addEventListener("load",l.waitForScriptToLoad(function(){e(o)},n),!1),o.onerror=function(e){a.setLoadingState(gt.NOT_LOADED),t(e)},document.head.appendChild(o)})},a.prototype.buildQueryString=function(t){return Object.keys(t).length<1?"":"&"+Object.keys(t).filter(function(e){return!!t[e]}).map(function(e){return e+"="+t[e]}).join("&")},a.prototype.waitForScriptToLoad=function(e,t){var n=this;return function(){void 0===window.grecaptcha?setTimeout(function(){n.waitForScriptToLoad(e,t)},a.SCRIPT_LOAD_DELAY):(t?window.grecaptcha.enterprise:window.grecaptcha).ready(function(){e()})}},a.prototype.doExplicitRender=function(e,t,n,r){t={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?(r?e.enterprise:e).render(n.container,t):(r?e.enterprise:e).render(t)},a.loadingState=null,a.instance=null,a.instanceSiteKey=null,a.successfulLoadingConsumers=[],a.errorLoadingRunnable=[],a.SCRIPT_LOAD_DELAY=25,a}());Vt.load=ul.load,Vt.getInstance=ul.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Vt,n=(Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}}),bn);Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(cl);const fl={},Gf=e=>{const n=fl[e]??(fl[e]=cl.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:t=>n.then(e=>e.execute(t))}},Zf=r=>({execute:async t=>{const e=Iu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1})["load"],n=(await e(),null==window?void 0:window.turnstile);return new Promise(e=>{null!=n&&n.ready(()=>{null!=n&&n.render(".wl-captcha-container",{sitekey:r,action:t,size:"compact",callback:e})})})}}),Qf="WALINE_USER";let dl=null;const wi=()=>dl=dl??Dt(Qf,{});var Jf=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const l=Vf(),o=Zn("config"),s=W(-1),a=W([]),r=we(()=>o.value.locale),c=we(()=>0<o.value.reaction.length),n=we(()=>{const{reaction:e,path:n}=o.value;return e.map((e,t)=>({icon:e,desc:r.value["reaction"+t],active:l.value[n]===t}))});let u;const i=async()=>{if(c.value){const{serverURL:e,lang:t,path:n,reaction:r}=o.value,i=new AbortController,l=(u=i.abort.bind(i),await ki({serverURL:e,lang:t,paths:[n],type:r.map((e,t)=>"reaction"+t),signal:i.signal}));a.value=r.map((e,t)=>l[0]["reaction"+t])}};on(()=>{je(()=>[o.value.serverURL,o.value.path],()=>{i()},{immediate:!0})}),Qi(()=>null==u?void 0:u());t={reactionStorage:l,config:o,votingIndex:s,voteNumbers:a,locale:r,isReactionEnabled:c,reactionsInfo:n,get abort(){return u},set abort(e){u=e},fetchReaction:i,vote:async e=>{var t,n,r,i;-1===s.value&&({serverURL:t,lang:n,path:r}=o.value,i=l.value[r],s.value=e,void 0!==i&&(await Sn({serverURL:t,lang:n,path:r,type:"reaction"+i,action:"desc"}),a.value[i]=Math.max(a.value[i]-1,0)),i!==e&&(await Sn({serverURL:t,lang:n,path:r,type:"reaction"+e}),a.value[e]=(a.value[e]||0)+1),i===e?delete l.value[r]:l.value[r]=e,s.value=-1)},get LoadingIcon(){return mi}};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),yn=(e,t)=>{const n=e.__vccOpts||e;for(var[r,i]of t)n[r]=i;return n};const Yf={key:0,class:"wl-reaction"},Xf=["textContent"],ed={class:"wl-reaction-list"},td=["onClick"],nd={class:"wl-reaction-img"},id=["src","alt"],rd=["textContent"],od=["textContent"];function sd(e,t,n,i,r,l){return i.reactionsInfo.length?(S(),L("div",Yf,[M("div",{class:"wl-reaction-title",textContent:Q(i.locale.reactionTitle)},null,8,Xf),M("ul",ed,[(S(!0),L(oe,null,ze(i.reactionsInfo,({active:e,icon:t,desc:n},r)=>(S(),L("li",{key:r,class:pe(["wl-reaction-item",{active:e}]),onClick:e=>i.vote(r)},[M("div",nd,[M("img",{src:t,alt:n},null,8,id),i.votingIndex===r?(S(),Xe(i.LoadingIcon,{key:0,class:"wl-reaction-loading"})):(S(),L("div",{key:1,class:"wl-reaction-votes",textContent:Q(i.voteNumbers[r]||0)},null,8,rd))]),M("div",{class:"wl-reaction-text",textContent:Q(n)},null,8,od)],10,td))),128))])])):Z("v-if",!0)}var ld=yn(Jf,[["render",sd],["__file","ArticleReaction.vue"]]),_n=new Map;function ad(e){e=_n.get(e);e&&e.destroy()}function cd(e){e=_n.get(e);e&&e.update()}var kn=null,hl=("u"<typeof window?((kn=function(e){return e}).destroy=function(e){return e},kn.update=function(e){return e}):((kn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){function i(e){var t,n=e.restoreTextAlign,n=void 0===n?null:n,e=e.testForHeightReduction,e=void 0===e||e,r=s.overflowY;0===l.scrollHeight||("vertical"===s.resize?l.style.resize="none":"both"===s.resize&&(l.style.resize="horizontal"),e&&(t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],e=e[1];t.style.scrollBehavior="auto",t.scrollTop=e,t.style.scrollBehavior=null})}}(l),l.style.height=""),e="content-box"===s.boxSizing?l.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):l.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),"none"!==s.maxHeight&&e>parseFloat(s.maxHeight)?("hidden"===s.overflowY&&(l.style.overflow="scroll"),e=parseFloat(s.maxHeight)):"hidden"!==s.overflowY&&(l.style.overflow="hidden"),l.style.height=e+"px",n&&(l.style.textAlign=n),t&&t(),o!==e&&(l.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=e),r===s.overflow||n)||(t=s.textAlign,"hidden"===s.overflow&&(l.style.textAlign="start"===t?"end":"start"),i({restoreTextAlign:t,testForHeightReduction:!0}))}function n(){i({testForHeightReduction:!0,restoreTextAlign:null})}var l,t,o,s,r,a;(l=e)&&l.nodeName&&"TEXTAREA"===l.nodeName&&!_n.has(l)&&(o=null,s=window.getComputedStyle(l),t=l.value,r=function(){i({testForHeightReduction:""===t||!l.value.startsWith(t),restoreTextAlign:null}),t=l.value},a=function(t){l.removeEventListener("autosize:destroy",a),l.removeEventListener("autosize:update",n),l.removeEventListener("input",r),window.removeEventListener("resize",n),Object.keys(t).forEach(function(e){return l.style[e]=t[e]}),_n.delete(l)}.bind(l,{height:l.style.height,resize:l.style.resize,textAlign:l.style.textAlign,overflowY:l.style.overflowY,overflowX:l.style.overflowX,wordWrap:l.style.wordWrap}),l.addEventListener("autosize:destroy",a),l.addEventListener("autosize:update",n),l.addEventListener("input",r),window.addEventListener("resize",n),l.style.overflowX="hidden",l.style.wordWrap="break-word",_n.set(l,{destroy:a,update:n}),n())}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ad),e},kn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],cd),e}),kn),ud=rn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=W(null),l=W({}),o=W([]),s=()=>{var e=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return 0<e?e:1},a=e=>new Array(e).fill(null).map(()=>[]),c=async e=>{var t;e>=n.items.length||(await Ut(),t=Array.from((null==(t=i.value)?void 0:t.children)??[]).reduce((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e),o.value[Number(t.dataset.index)].push(e),await c(e+1))},u=async(e=!1)=>{o.value.length===s()&&!e||(o.value=a(s()),e=window.scrollY,await c(0),window.scrollTo({top:e}))};on(()=>{u(!0),(r=new ResizeObserver(()=>{u()})).observe(i.value),je(()=>[n.items],()=>{l.value={},u(!0)}),je(()=>[n.columnWidth,n.gap],()=>{u()})}),Ja(()=>r.unobserve(i.value));e={props:n,get resizeObserver(){return r},set resizeObserver(e){r=e},wall:i,state:l,columns:o,getColumnCount:s,createColumns:a,fillColumns:c,redraw:u,imageLoad:e=>{l.value[e.target.src]=!0},get LoadingIcon(){return mi}};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}});const fd=["data-index"],dd=["src","title","onClick"];function hd(n,e,r,i,t,l){return S(),L("div",{ref:"wall",class:"wl-gallery",style:Zt({gap:r.gap+"px"})},[(S(!0),L(oe,null,ze(i.columns,(e,t)=>(S(),L("div",{key:t,class:"wl-gallery-column","data-index":t,style:Zt({gap:r.gap+"px"})},[(S(!0),L(oe,null,ze(e,t=>(S(),L(oe,{key:t},[i.state[r.items[t].src]?Z("v-if",!0):(S(),Xe(i.LoadingIcon,{key:0,size:36,style:{margin:"20px auto"}})),M("img",{class:"wl-gallery-item",src:r.items[t].src,title:r.items[t].title,loading:"lazy",onLoad:i.imageLoad,onClick:e=>n.$emit("insert",`![](${r.items[t].src})`)},null,40,dd)],64))),128))],12,fd))),128))],4)}var pd=yn(ud,[["render",hd],["__file","ImageWall.vue"]]),gd=rn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){t();const f=e,g=n,m=Zn("config"),v=Nf(),y=Uf(),w=wi(),b=W({}),k=W(null),r=W(null),i=W(null),l=W(null),o=W(null),s=W(null),a=W(null),x=W({tabs:[],map:{}}),c=W(0),u=W(!1),p=W(!1),O=W(!1),_=W(""),S=W(0),d=Qt({loading:!0,list:[]}),h=W(0),C=W(!1),L=W(""),R=W(!1),I=W(!1),E=we(()=>m.value.locale),P=we(()=>{var e;return!(null==(e=w.value)||!e.token)}),A=we(()=>!1!==m.value.imageUploader),$=e=>{const t=k.value,n=t.selectionStart,r=t.selectionEnd||0,i=t.scrollTop;v.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},M=t=>{const n=`![${m.value.locale.uploading} ${t.name}]()`;return $(n),R.value=!0,Promise.resolve().then(()=>m.value.imageUploader(t)).then(e=>{v.value=v.value.replace(n,`\r
![${t.name}](${e})`)}).catch(e=>{alert(e.message),v.value=v.value.replace(n,"")}).then(()=>{R.value=!1})},T=async()=>{var e,t,n;const{serverURL:r,lang:i,login:l,wordLimit:o,requiredMeta:s,recaptchaV3Key:a,turnstileKey:c}=m.value,u=await If(),p={comment:L.value,nick:y.value.nick,mail:y.value.mail,link:y.value.link,url:m.value.path,ua:u};if(!f.edit)if(null!=(e=w.value)&&e.token)p.nick=w.value.display_name,p.mail=w.value.email,p.link=w.value.url;else{if("force"===l)return;if(-1<s.indexOf("nick")&&!p.nick)return null!=(e=b.value.nick)&&e.focus(),alert(E.value.nickError);if(-1<s.indexOf("mail")&&!p.mail||p.mail&&!Vl(p.mail))return null!=(e=b.value.mail)&&e.focus(),alert(E.value.mailError);p.nick||(p.nick=E.value.anonymous)}if(p.comment){if(!C.value)return alert(E.value.wordHint.replace("$0",o[0].toString()).replace("$1",o[1].toString()).replace("$2",S.value.toString()));p.comment=rl(p.comment,x.value.map),f.replyId&&f.rootId&&(p.pid=f.replyId,p.rid=f.rootId,p.at=f.replyUser),R.value=!0;try{a&&(p.recaptchaV3=await Gf(a).execute("social")),c&&(p.turnstile=await Zf(c).execute("social"));var d={serverURL:r,lang:i,token:null==(t=w.value)?void 0:t.token,comment:p},h=await(f.edit?qt({objectId:f.edit.objectId,...d}):Rr(d));if(R.value=!1,h.errmsg)return alert(h.errmsg);g("submit",h.data),v.value="",_.value="",await Ut(),f.replyId&&g("cancelReply"),null!=(n=f.edit)&&n.objectId&&g("cancelEdit")}catch(e){R.value=!1,alert(e.message)}}else null!=(e=k.value)&&e.focus()},z=e=>{var t;null!=(t=i.value)&&t.contains(e.target)||null!=(t=l.value)&&t.contains(e.target)||(u.value=!1),null!=(t=o.value)&&t.contains(e.target)||null!=(t=s.value)&&t.contains(e.target)||(p.value=!1)},j=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:i}=e.target,l=(r+n)/i,o=m.value.search,s=(null==(t=a.value)?void 0:t.value)??"";l<.9||d.loading||I.value||(d.loading=!0,(o.more&&d.list.length?await o.more(s,d.list.length):await o.search(s)).length?d.list=[...d.list,...o.more&&d.list.length?await o.more(s,d.list.length):await o.search(s)]:I.value=!0,d.loading=!1,setTimeout(()=>{e.target.scrollTop=n},50))},N=pu(e=>{d.list=[],I.value=!1,j(e)},300);je([m,S],([e,t])=>{e=e.wordLimit;e?t<e[0]&&0!==e[0]?(h.value=e[0],C.value=!1):t>e[1]?(h.value=e[1],C.value=!1):(h.value=e[1],C.value=!0):(h.value=0,C.value=!0)},{immediate:!0}),li("click",z),li("message",({data:e})=>{e&&"profile"===e.type&&(w.value={...w.value,...e.data},[localStorage,sessionStorage].filter(e=>e.getItem("WALINE_USER")).forEach(e=>e.setItem("WALINE_USER",JSON.stringify(w))))}),je(p,async e=>{if(e){const t=m.value.search;a.value&&(a.value.value=""),d.loading=!0,d.list=await((null==(e=t.default)?void 0:e.call(t))??t.search("")),d.loading=!1}}),on(()=>{var e;null!=(e=f.edit)&&e.objectId&&(v.value=f.edit.orig),je(()=>v.value,e=>{var{highlighter:t,texRenderer:n}=m.value;L.value=e,_.value=xf(e,{emojiMap:x.value.map,highlighter:t,texRenderer:n}),S.value=Sf(e),e?hl(k.value):hl.destroy(k.value)},{immediate:!0}),je(()=>m.value.emoji,e=>Mu(e).then(e=>{x.value=e}),{immediate:!0})});t={props:f,emit:g,config:m,editor:v,userMeta:y,userInfo:w,inputRefs:b,editorRef:k,imageUploadRef:r,emojiButtonRef:i,emojiPopupRef:l,gifButtonRef:o,gifPopupRef:s,gifSearchInputRef:a,emoji:x,emojiTabIndex:c,showEmoji:u,showGif:p,showPreview:O,previewText:_,wordNumber:S,searchResults:d,wordLimit:h,isWordNumberLegal:C,content:L,isSubmitting:R,isImageListEnd:I,locale:E,isLogin:P,canUploadImage:A,insert:$,onKeyDown:e=>{var t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&T()},uploadImage:M,onDrop:e=>{var t;null!=(t=e.dataTransfer)&&t.items&&(t=js(e.dataTransfer.items))&&A.value&&(M(t),e.preventDefault())},onPaste:e=>{e.clipboardData&&(e=js(e.clipboardData.items))&&A.value&&M(e)},onChange:()=>{const e=r.value;e.files&&A.value&&M(e.files[0]).then(()=>{e.value=""})},submitComment:T,onLogin:e=>{e.preventDefault();var{lang:e,serverURL:t}=m.value;Ar({serverURL:t,lang:e}).then(e=>{((w.value=e).remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),g("log")})},onLogout:()=>{w.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),g("log")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=m.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,l=new URLSearchParams({lng:t,token:w.value.token}),o=window.open(n+"/ui/profile?"+l.toString(),"_blank",`width=800,height=800,left=${r},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null!=o&&o.postMessage({type:"TOKEN",data:w.value.token},"*")},popupHandler:z,onImageWallScroll:j,onGifSearch:N,get CloseIcon(){return Rf},get EmojiIcon(){return Lf},get GifIcon(){return Ff},get ImageIcon(){return Af},get LoadingIcon(){return mi},get MarkdownIcon(){return Of},get PreviewIcon(){return $f},ImageWall:pd};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});const md={key:0,class:"wl-login-info"},vd={class:"wl-avatar"},wd=["title"],bd=["title"],yd=["src"],_d=["title","textContent"],kd={class:"wl-panel"},xd=["for","textContent"],Cd=["id","onUpdate:modelValue","name","type"],Ed=["placeholder"],Sd={class:"wl-preview"},Id=M("hr",null,null,-1),Rd=["innerHTML"],Td={class:"wl-footer"},Ld={class:"wl-actions"},Ad={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Md=["title"],$d=["title"],Od=["title"],jd=["title"],zd={class:"wl-info"},Pd=M("div",{class:"wl-captcha-container"},null,-1),Fd={class:"wl-text-number"},Ud={key:0},Nd=["textContent"],Hd=["textContent"],Dd=["disabled"],Vd=["placeholder"],Bd={key:1,class:"wl-loading"},Wd={key:0,class:"wl-tab-wrapper"},qd=["title","onClick"],Kd=["src","alt"],Gd={key:0,class:"wl-tabs"},Zd=["onClick"],Qd=["src","alt","title"],Jd=["title"];function Yd(e,t,n,r,i,l){var o;return S(),L("div",{key:r.userInfo.token,class:"wl-comment"},["disable"===r.config.login||!r.isLogin||null!=(o=n.edit)&&o.objectId?Z("v-if",!0):(S(),L("div",md,[M("div",vd,[M("button",{type:"submit",class:"wl-logout-btn",title:r.locale.logout,onClick:r.onLogout},[ie(r.CloseIcon,{size:14})],8,wd),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:r.locale.profile,onClick:r.onProfile},[M("img",{src:r.userInfo.avatar,alt:"avatar"},null,8,yd)],8,bd)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:r.locale.profile,onClick:r.onProfile,textContent:Q(r.userInfo.display_name)},null,8,_d)])),M("div",kd,["force"!==r.config.login&&r.config.meta.length&&!r.isLogin?(S(),L("div",{key:0,class:pe(["wl-header","item"+r.config.meta.length])},[(S(!0),L(oe,null,ze(r.config.meta,t=>(S(),L("div",{key:t,class:"wl-header-item"},[M("label",{for:"wl-"+t,textContent:Q(r.locale[t]+(r.config.requiredMeta.includes(t)||!r.config.requiredMeta.length?"":`(${r.locale.optional})`))},null,8,xd),qn(M("input",{id:"wl-"+t,ref_for:!0,ref:e=>{e&&(r.inputRefs[t]=e)},"onUpdate:modelValue":e=>r.userMeta[t]=e,class:pe(["wl-input","wl-"+t]),name:t,type:"mail"===t?"email":"text"},null,10,Cd),[[iu,r.userMeta[t]]])]))),128))],2)):Z("v-if",!0),qn(M("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[0]||(t[0]=e=>r.editor=e),class:"wl-editor",placeholder:n.replyUser?"@"+n.replyUser:r.locale.placeholder,onKeydown:r.onKeyDown,onDrop:r.onDrop,onPaste:r.onPaste},null,40,Ed),[[ur,r.editor]]),qn(M("div",Sd,[Id,M("h4",null,Q(r.locale.preview)+":",1),M("div",{class:"wl-content",innerHTML:r.previewText},null,8,Rd)],512),[[ms,r.showPreview]]),M("div",Td,[M("div",Ld,[M("a",Ad,[ie(r.MarkdownIcon)]),qn(M("button",{ref:"emojiButtonRef",type:"button",class:pe(["wl-action",{active:r.showEmoji}]),title:r.locale.emoji,onClick:t[1]||(t[1]=e=>r.showEmoji=!r.showEmoji)},[ie(r.EmojiIcon)],10,Md),[[ms,r.emoji.tabs.length]]),r.config.search?(S(),L("button",{key:0,ref:"gifButtonRef",type:"button",class:pe(["wl-action",{active:r.showGif}]),title:r.locale.gif,onClick:t[2]||(t[2]=e=>r.showGif=!r.showGif)},[ie(r.GifIcon)],10,$d)):Z("v-if",!0),M("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:r.onChange},null,544),r.canUploadImage?(S(),L("label",{key:1,for:"wl-image-upload",class:"wl-action",title:r.locale.uploadImage},[ie(r.ImageIcon)],8,Od)):Z("v-if",!0),M("button",{type:"button",class:pe(["wl-action",{active:r.showPreview}]),title:r.locale.preview,onClick:t[3]||(t[3]=e=>r.showPreview=!r.showPreview)},[ie(r.PreviewIcon)],10,jd)]),M("div",zd,[Pd,M("div",Fd,[et(Q(r.wordNumber)+" ",1),r.config.wordLimit?(S(),L("span",Ud,[et("  /  "),M("span",{class:pe({illegal:!r.isWordNumberLegal}),textContent:Q(r.wordLimit)},null,10,Nd)])):Z("v-if",!0),et("  "+Q(r.locale.word),1)]),"disable"===r.config.login||r.isLogin?Z("v-if",!0):(S(),L("button",{key:0,type:"button",class:"wl-btn",onClick:r.onLogin,textContent:Q(r.locale.login)},null,8,Hd)),"force"!==r.config.login||r.isLogin?(S(),L("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:r.isSubmitting,onClick:r.submitComment},[r.isSubmitting?(S(),Xe(r.LoadingIcon,{key:0,size:16})):(S(),L(oe,{key:1},[et(Q(r.locale.submit),1)],64))],8,Dd)):Z("v-if",!0)]),M("div",{ref:"gifPopupRef",class:pe(["wl-gif-popup",{display:r.showGif}])},[M("input",{ref:"gifSearchInputRef",type:"text",placeholder:r.locale.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...e)=>r.onGifSearch&&r.onGifSearch(...e))},null,40,Vd),r.searchResults.list.length?(S(),Xe(r.ImageWall,{key:0,items:r.searchResults.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=e=>r.insert(e)),onScroll:r.onImageWallScroll},null,8,["items"])):Z("v-if",!0),r.searchResults.loading?(S(),L("div",Bd,[ie(r.LoadingIcon,{size:30})])):Z("v-if",!0)],2),M("div",{ref:"emojiPopupRef",class:pe(["wl-emoji-popup",{display:r.showEmoji}])},[(S(!0),L(oe,null,ze(r.emoji.tabs,(e,t)=>(S(),L(oe,{key:e.name},[t===r.emojiTabIndex?(S(),L("div",Wd,[(S(!0),L(oe,null,ze(e.items,t=>(S(),L("button",{key:t,type:"button",title:t,onClick:e=>r.insert(`:${t}:`)},[r.showEmoji?(S(),L("img",{key:0,class:"wl-emoji",src:r.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Kd)):Z("v-if",!0)],8,qd))),128))])):Z("v-if",!0)],64))),128)),1<r.emoji.tabs.length?(S(),L("div",Gd,[(S(!0),L(oe,null,ze(r.emoji.tabs,(e,t)=>(S(),L("button",{key:e.name,type:"button",class:pe(["wl-tab",{active:r.emojiTabIndex===t}]),onClick:e=>r.emojiTabIndex=t},[M("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Qd)],10,Zd))),128))])):Z("v-if",!0)],2)])]),n.replyId||null!=(o=n.edit)&&o.objectId?(S(),L("button",{key:1,type:"button",class:"wl-close",title:r.locale.cancelReply,onClick:t[6]||(t[6]=e=>n.replyId?r.emit("cancelReply"):r.emit("cancelEdit"))},[ie(r.CloseIcon,{size:24})],8,Jd)):Z("v-if",!0)])}var pl=yn(gd,[["render",Yd],["__file","CommentBox.vue"]]),Xd=rn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{expose:t,emit:n}){t();const r=e,i=n,l=Zn("config"),o=ll(),s=Su(),a=wi(),c=we(()=>l.value.locale),u=we(()=>{var e=r.comment["link"];return e?Qr(e)?e:"https://"+e:""}),p=we(()=>o.value.includes(r.comment.objectId)),d=we(()=>Hl(new Date(r.comment.time),s.value,c.value)),h=we(()=>"administrator"===a.value.type),f=we(()=>r.comment.user_id&&a.value.objectId===r.comment.user_id),g=we(()=>{var e;return r.comment.objectId===(null==(e=r.reply)?void 0:e.objectId)}),m=we(()=>{var e;return r.comment.objectId===(null==(e=r.edit)?void 0:e.objectId)}),v={props:r,emit:i,commentStatus:["approved","waiting","spam"],config:l,likes:o,now:s,userInfo:a,locale:c,link:u,like:p,time:d,isAdmin:h,isOwner:f,isReplyingCurrent:g,isEditingCurrent:m,CommentBox:pl,get DeleteIcon(){return Tf},get EditIcon(){return zf},get LikeIcon(){return Mf},get ReplyIcon(){return jf},get VerifiedIcon(){return Pf}};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}});const eh=["id"],th={class:"wl-user","aria-hidden":"true"},nh=["src"],ih={class:"wl-card"},rh={class:"wl-head"},oh=["href"],sh={key:1,class:"wl-nick"},lh=["textContent"],ah=["textContent"],ch=["textContent"],uh=["textContent"],fh=["textContent"],dh={class:"wl-comment-actions"},hh=["title"],ph=["title"],gh={class:"wl-meta","aria-hidden":"true"},mh=["data-value","textContent"],vh={key:0,class:"wl-content"},wh={key:0},bh=["href"],yh=M("span",null,": ",-1),_h=["innerHTML"],kh={key:1,class:"wl-admin-actions"},xh={class:"wl-comment-status"},Ch=["disabled","onClick","textContent"],Eh={key:3,class:"wl-quote"};function Sh(e,t,n,r,i,l){var o;const s=Da("CommentCard",!0);return S(),L("div",{id:n.comment.objectId,class:"wl-card-item"},[M("div",th,[n.comment.avatar?(S(),L("img",{key:0,class:"wl-user-avatar",src:n.comment.avatar},null,8,nh)):Z("v-if",!0),n.comment.type?(S(),Xe(r.VerifiedIcon,{key:1})):Z("v-if",!0)]),M("div",ih,[M("div",rh,[r.link?(S(),L("a",{key:0,class:"wl-nick",href:r.link,target:"_blank",rel:"nofollow noopener noreferrer"},Q(n.comment.nick),9,oh)):(S(),L("span",sh,Q(n.comment.nick),1)),"administrator"===n.comment.type?(S(),L("span",{key:2,class:"wl-badge",textContent:Q(r.locale.admin)},null,8,lh)):Z("v-if",!0),n.comment.label?(S(),L("span",{key:3,class:"wl-badge",textContent:Q(n.comment.label)},null,8,ah)):Z("v-if",!0),n.comment.sticky?(S(),L("span",{key:4,class:"wl-badge",textContent:Q(r.locale.sticky)},null,8,ch)):Z("v-if",!0),"number"==typeof n.comment.level?(S(),L("span",{key:5,class:pe("wl-badge level"+n.comment.level),textContent:Q(r.locale["level"+n.comment.level]||"Level "+n.comment.level)},null,10,uh)):Z("v-if",!0),M("span",{class:"wl-time",textContent:Q(r.time)},null,8,fh),M("div",dh,[r.isAdmin||r.isOwner?(S(),L(oe,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:t[0]||(t[0]=e=>r.emit("edit",n.comment))},[ie(r.EditIcon)]),M("button",{type:"button",class:"wl-delete",onClick:t[1]||(t[1]=e=>r.emit("delete",n.comment))},[ie(r.DeleteIcon)])],64)):Z("v-if",!0),M("button",{type:"button",class:"wl-like",title:r.like?r.locale.cancelLike:r.locale.like,onClick:t[2]||(t[2]=e=>r.emit("like",n.comment))},[ie(r.LikeIcon,{active:r.like},null,8,["active"]),et(" "+Q("like"in n.comment?n.comment.like:""),1)],8,hh),M("button",{type:"button",class:pe(["wl-reply",{active:r.isReplyingCurrent}]),title:r.isReplyingCurrent?r.locale.cancelReply:r.locale.reply,onClick:t[3]||(t[3]=e=>r.emit("reply",r.isReplyingCurrent?null:n.comment))},[ie(r.ReplyIcon)],10,ph)])]),M("div",gh,[(S(),L(oe,null,ze(["addr","browser","os"],e=>(S(),L(oe,null,[n.comment[e]?(S(),L("span",{key:e,class:pe("wl-"+e),"data-value":n.comment[e],textContent:Q(n.comment[e])},null,10,mh)):Z("v-if",!0)],64))),64))]),r.isEditingCurrent?Z("v-if",!0):(S(),L("div",vh,[n.comment.reply_user?(S(),L("p",wh,[M("a",{href:"#"+n.comment.pid},"@"+Q(n.comment.reply_user.nick),9,bh),yh])):Z("v-if",!0),M("div",{innerHTML:n.comment.comment},null,8,_h)])),r.isAdmin&&!r.isEditingCurrent?(S(),L("div",kh,[M("span",xh,[(S(),L(oe,null,ze(r.commentStatus,t=>M("button",{key:t,type:"submit",class:pe("wl-btn wl-"+t),disabled:n.comment.status===t,onClick:e=>r.emit("status",{status:t,comment:n.comment}),textContent:Q(r.locale[t])},null,10,Ch)),64))]),!r.isAdmin||"rid"in n.comment?Z("v-if",!0):(S(),L("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=e=>r.emit("sticky",n.comment))},Q(n.comment.sticky?r.locale.unsticky:r.locale.sticky),1))])):Z("v-if",!0),r.isReplyingCurrent||r.isEditingCurrent?(S(),L("div",{key:2,class:pe({"wl-reply-wrapper":r.isReplyingCurrent,"wl-edit-wrapper":r.isEditingCurrent})},[ie(r.CommentBox,{edit:n.edit,"reply-id":null==(o=n.reply)?void 0:o.objectId,"reply-user":n.comment.nick,"root-id":n.rootId,onLog:t[5]||(t[5]=e=>r.emit("log")),onCancelReply:t[6]||(t[6]=e=>r.emit("reply",null)),onCancelEdit:t[7]||(t[7]=e=>r.emit("edit",null)),onSubmit:t[8]||(t[8]=e=>r.emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Z("v-if",!0),"children"in n.comment?(S(),L("div",Eh,[(S(!0),L(oe,null,ze(n.comment.children,e=>(S(),Xe(s,{key:e.objectId,comment:e,reply:n.reply,edit:n.edit,"root-id":n.rootId,onLog:t[9]||(t[9]=e=>r.emit("log")),onDelete:t[10]||(t[10]=e=>r.emit("delete",e)),onEdit:t[11]||(t[11]=e=>r.emit("edit",e)),onLike:t[12]||(t[12]=e=>r.emit("like",e)),onReply:t[13]||(t[13]=e=>r.emit("reply",e)),onStatus:t[14]||(t[14]=e=>r.emit("status",e)),onSticky:t[15]||(t[15]=e=>r.emit("sticky",e)),onSubmit:t[16]||(t[16]=e=>r.emit("submit",e))},null,8,["comment","reply","edit","root-id"]))),128))])):Z("v-if",!0)])],8,eh)}var Ih=yn(Xd,[["render",Sh],["__file","CommentCard.vue"]]);const gl="3.3.0";var Rh=rn({__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,{expose:t}){t();const n=e,o={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(o),s=wi(),a=ll(),c=W("loading"),u=W(0),p=W(1),d=W(0),h=we(()=>Fl(n)),f=W(h.value.commentSorting),g=W([]),i=W(null),l=W(null),m=we(()=>Ul(h.value.dark)),v=we(()=>h.value.locale);Tu(m,{id:"waline-darkmode"});let y;const w=t=>{var e;const{serverURL:n,path:r,pageSize:i}=h.value,l=new AbortController;c.value="loading",null!=y&&y(),Ir({serverURL:n,lang:h.value.lang,path:r,pageSize:i,sortBy:o[f.value],page:t,signal:l.signal,token:null==(e=s.value)?void 0:e.token}).then(e=>{c.value="success",u.value=e.count,g.value.push(...e.data),p.value=t,d.value=e.totalPages}).catch(e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")}),y=l.abort.bind(l)},b=()=>{u.value=0,g.value=[],w(1)};oc("config",h),on(()=>{je(()=>[n.serverURL,n.path],()=>b(),{immediate:!0})}),Qi(()=>null==y?void 0:y());t={props:n,sortKeyMap:o,sortingMethods:r,userInfo:s,likeStorage:a,status:c,count:u,page:p,totalPages:d,config:h,commentSortingRef:f,data:g,reply:i,edit:l,darkmodeStyle:m,i18n:v,get abort(){return y},set abort(e){y=e},getCommentData:w,loadMore:()=>w(p.value+1),refresh:b,onSortByChange:e=>{f.value!==e&&(f.value=e,b())},onReply:e=>{i.value=e},onEdit:e=>{l.value=e},onSubmit:t=>{if(l.value)l.value.comment=t.comment,l.value.orig=t.orig;else if("rid"in t){const e=g.value.find(({objectId:e})=>e===t.rid);e&&(Array.isArray(e.children)||(e.children=[]),e.children.push(t))}else g.value.unshift(t),u.value+=1},onStatusChange:async({comment:e,status:t})=>{var n,r;e.status!==t&&({serverURL:n,lang:r}=h.value,await qt({serverURL:n,lang:r,token:null==(n=s.value)?void 0:n.token,objectId:e.objectId,comment:{status:t}}),e.status=t)},onSticky:async e=>{var t,n;"rid"in e||({serverURL:t,lang:n}=h.value,await qt({serverURL:t,lang:n,token:null==(t=s.value)?void 0:t.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky)},onDelete:async({objectId:i})=>{var e,t;confirm("Are you sure you want to delete this comment?")&&({serverURL:e,lang:t}=h.value,await Tr({serverURL:e,lang:t,token:null==(e=s.value)?void 0:e.token,objectId:i}),g.value.some((t,r)=>t.objectId===i?(g.value=g.value.filter((e,t)=>t!==r),!0):t.children.some((e,n)=>e.objectId===i&&(g.value[r].children=t.children.filter((e,t)=>t!==n),!0))))},onLike:async e=>{var t;const{serverURL:n,lang:r}=h.value,i=e["objectId"],l=a.value.includes(i);await qt({serverURL:n,lang:r,objectId:i,token:null==(t=s.value)?void 0:t.token,comment:{like:!l}}),l?a.value=a.value.filter(e=>e!==i):(a.value=[...a.value,i],50<a.value.length&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},Reaction:ld,CommentBox:pl,CommentCard:Ih,get LoadingIcon(){return mi},get version(){return gl}};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});const Th={"data-waline":""},Lh={class:"wl-meta-head"},Ah={class:"wl-count"},Mh=["textContent"],$h={class:"wl-sort"},Oh=["onClick"],jh={class:"wl-cards"},zh={key:1,class:"wl-operation"},Ph=["textContent"],Fh={key:2,class:"wl-loading"},Uh=["textContent"],Nh={key:4,class:"wl-operation"},Hh=["textContent"],Dh={key:5,class:"wl-power"},Vh=M("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);function Bh(e,t,n,r,i,l){return S(),L("div",Th,[ie(r.Reaction),r.reply||r.edit?Z("v-if",!0):(S(),Xe(r.CommentBox,{key:0,onLog:r.refresh,onSubmit:r.onSubmit})),M("div",Lh,[M("div",Ah,[r.count?(S(),L("span",{key:0,class:"wl-num",textContent:Q(r.count)},null,8,Mh)):Z("v-if",!0),et(" "+Q(r.i18n.comment),1)]),M("ul",$h,[(S(!0),L(oe,null,ze(r.sortingMethods,t=>(S(),L("li",{key:t,class:pe([t===r.commentSortingRef?"active":""]),onClick:e=>r.onSortByChange(t)},Q(r.i18n[t]),11,Oh))),128))])]),M("div",jh,[(S(!0),L(oe,null,ze(r.data,e=>(S(),Xe(r.CommentCard,{key:e.objectId,"root-id":e.objectId,comment:e,reply:r.reply,edit:r.edit,onLog:r.refresh,onReply:r.onReply,onEdit:r.onEdit,onSubmit:r.onSubmit,onStatus:r.onStatusChange,onDelete:r.onDelete,onSticky:r.onSticky,onLike:r.onLike},null,8,["root-id","comment","reply","edit"]))),128))]),"error"===r.status?(S(),L("div",zh,[M("button",{type:"button",class:"wl-btn",onClick:r.refresh,textContent:Q(r.i18n.refresh)},null,8,Ph)])):"loading"===r.status?(S(),L("div",Fh,[ie(r.LoadingIcon,{size:30})])):r.data.length?r.page<r.totalPages?(S(),L("div",Nh,[M("button",{type:"button",class:"wl-btn",onClick:r.loadMore,textContent:Q(r.i18n.more)},null,8,Hh)])):Z("v-if",!0):(S(),L("div",{key:3,class:"wl-empty",textContent:Q(r.i18n.sofa)},null,8,Uh)),r.config.copyright?(S(),L("div",Dh,[et(" Powered by "),Vh,et(" v"+Q(r.version),1)])):Z("v-if",!0)])}var Wh=yn(Rh,[["render",Bh],["__file","WalineComment.vue"]]);const ml=(r,e)=>{e.forEach((e,t)=>{const n=r[t].time;"number"==typeof n&&(e.innerText=n.toString())})},vl=({serverURL:e,path:n=window.location.pathname,selector:t=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const l=new AbortController,o=Array.from(document.querySelectorAll(t)),s=e=>{e=_r(e);return null!==e&&n!==e},a=t=>Mr({serverURL:Rn(e),paths:t.map(e=>_r(e)??n),lang:i,signal:l.signal}).then(e=>ml(e,t)).catch(Os);if(r){const c=o.filter(e=>!s(e)),u=o.filter(s);$r({serverURL:Rn(e),path:n,lang:i}).then(e=>ml(e,c)),u.length&&a(u)}else a(o);return l.abort.bind(l)},qh=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{var l=e?dr(e):null;if(e&&!l)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const o=Qt({...i}),s=Qt({comment:n,pageview:r,path:t}),a=l?lu(()=>Y(Wh,{path:s.path,...o})):null,c=(a&&a.mount(l),No(()=>{s.comment&&ol({serverURL:o.serverURL,path:s.path,...$t(s.comment)?{selector:s.comment}:{}})})),u=No(()=>{s.pageview&&vl({serverURL:o.serverURL,path:s.path,...$t(s.pageview)?{selector:s.pageview}:{}})});return{el:l,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach(([e,t])=>{o[e]=t}),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{null!=a&&a.unmount(),c(),u()}}},Kh=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=wi(),l=dr(e),o=new AbortController;return Or({serverURL:t,count:n,lang:r,signal:o.signal,token:null==(e=i.value)?void 0:e.token}).then(e=>l&&e.length?(l.innerHTML=`<ul class="wl-recent-list">${e.map(e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>${e.comment}</li>`).join("")}</ul>`,{comments:e,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:e,destroy:()=>o.abort()})},Gh=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:l="list"})=>{const o=dr(e),s=new AbortController;return jr({serverURL:t,pageSize:n,lang:i,signal:s.signal}).then(e=>o&&e.length?(r={...qr(i),..."object"==typeof r?r:{}},o.innerHTML=`<ul class="wl-user-${l}">${e.map((e,t)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link&&`<a href="${e.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${t+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',e.nick,e.level&&`<span class="wl-badge">${r?r["level"+e.level]:"Level "+e.level}</span>`,e.label&&`<span class="wl-badge">${e.label}</span>`,"</div>",e.link&&e.link,"</div>",e.link&&"</a>","</li>"].filter(e=>e).join("")).join("")}</ul>`,{users:e,destroy:()=>{s.abort(),o.innerHTML=""}}):{users:e,destroy:()=>s.abort()})};export{Kh as RecentComments,Gh as UserList,Rr as addComment,ol as commentCount,In as defaultLocales,Tr as deleteComment,Lr as fetchCommentCount,ki as getArticleCounter,Ir as getComment,Mr as getPageview,Or as getRecentComment,jr as getUserList,qh as init,Ar as login,vl as pageviewCount,Sn as updateArticleCounter,qt as updateComment,$r as updatePageview,gl as version};