var bl=Object.defineProperty;var yl=(e,t,i)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Oe=(e,t,i)=>(yl(e,typeof t!="symbol"?t+"":t,i),i),_l=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};var _i=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)};var En=(e,t,i)=>(_l(e,t,"access private method"),i);var xn,kr,bi,wl;const Sr={"Content-Type":"application/json"},Ge=e=>`${e.replace(/\/?$/,"/")}api/`,vt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},ki=({serverURL:e,lang:t,paths:i,type:n,signal:r})=>fetch(`${Ge(e)}article?path=${encodeURIComponent(i.join(","))}&type=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(o=>o.json()).then(o=>vt(o,"Get counter").data),Sn=({serverURL:e,lang:t,path:i,type:n,action:r})=>fetch(`${Ge(e)}article?lang=${t}`,{method:"POST",headers:Sr,body:JSON.stringify({path:i,type:n,action:r})}).then(o=>o.json()).then(o=>vt(o,"Update counter").data),Ir=({serverURL:e,lang:t,path:i,page:n,pageSize:r,sortBy:o,signal:s,token:l})=>{const a={};return l&&(a.Authorization=`Bearer ${l}`),fetch(`${Ge(e)}comment?path=${encodeURIComponent(i)}&pageSize=${r}&page=${n}&lang=${t}&sortBy=${o}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>vt(c,"Get comment data").data)},Rr=({serverURL:e,lang:t,token:i,comment:n})=>{const r={"Content-Type":"application/json"};return i&&(r.Authorization=`Bearer ${i}`),fetch(`${Ge(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(n)}).then(o=>o.json())},Tr=({serverURL:e,lang:t,token:i,objectId:n})=>fetch(`${Ge(e)}comment/${n}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}}).then(r=>r.json()).then(r=>vt(r,"Delete comment")),qt=({serverURL:e,lang:t,token:i,objectId:n,comment:r})=>fetch(`${Ge(e)}comment/${n}?lang=${t}`,{method:"PUT",headers:{...Sr,Authorization:`Bearer ${i}`},body:JSON.stringify(r)}).then(o=>o.json()).then(o=>vt(o,"Update comment")),Lr=({serverURL:e,lang:t,paths:i,signal:n})=>fetch(`${Ge(e)}comment?type=count&url=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:n}).then(r=>r.json()).then(r=>vt(r,"Get comment count").data),Ar=({lang:e,serverURL:t})=>{const i=(window.innerWidth-450)/2,n=(window.innerHeight-450)/2,r=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${i},top=${n},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return r==null||r.postMessage({type:"TOKEN",data:null},"*"),new Promise(o=>{const s=({data:l})=>{!l||typeof l!="object"||l.type!=="userInfo"||l.data.token&&(r==null||r.close(),window.removeEventListener("message",s),o(l.data))};window.addEventListener("message",s)})},Mr=({serverURL:e,lang:t,paths:i,signal:n})=>ki({serverURL:e,lang:t,paths:i,type:["time"],signal:n}),$r=e=>Sn({...e,type:"time",action:"inc"}),Or=({serverURL:e,lang:t,count:i,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${Ge(e)}comment?type=recent&count=${i}&lang=${t}`,{signal:n,headers:o}).then(s=>s.json())},jr=({serverURL:e,signal:t,pageSize:i,lang:n})=>fetch(`${Ge(e)}user?pageSize=${i}&lang=${n}`,{signal:t}).then(r=>r.json()).then(r=>vt(r,"user list")).then(r=>r.data),kl=["nick","mail","link"],zr=e=>e.filter(t=>kl.includes(t)),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=e=>new Promise((t,i)=>{if(e.size>128e3)return i(new Error("File too large! File size limit 128KB"));const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{var r;return t(((r=n.result)==null?void 0:r.toString())??"")},n.onerror=i}),El=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Sl=e=>{const t=async(i,n={})=>fetch(`https://api.giphy.com/v1/gifs/${i}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then(r=>r.json()).then(({data:r})=>r.map(o=>({title:o.title,src:o.images.downsized_medium.url})));return{search:i=>t("search",{q:i,offset:"0"}),default:()=>t("trending",{}),more:(i,n=0)=>t("search",{q:i,offset:n.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 t=0;return e.replace(Al,(i,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(n==="<")return"&lt;";let o;xi[n]?o=xi[n]:(o=Fr[t],xi[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%Fr.length,s})},$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((t,i)=>[$l[i],t]));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=>{const t=Zr(e);return Qr(t)?t:`https://${t}`},Pl=e=>Array.isArray(e)?e:e?[0,e]:!1,Ci=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Fl=({serverURL:e,path:t=location.pathname,lang:i=typeof navigator>"u"?"en-US":navigator.language,locale:n,emoji:r=Pr,meta:o=["nick","mail","link"],requiredMeta:s=[],dark:l=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:h,texRenderer:p,copyright:g=!0,login:R="enable",search:x,reaction:T,recaptchaV3Key:$="",turnstileKey:P="",commentSorting:A="latest",...U})=>({serverURL:Rn(e),path:Gr(t),lang:Kr(i),locale:{...qr(Kr(i)),...typeof n=="object"?n:{}},wordLimit:Pl(c),meta:zr(o),requiredMeta:zr(s),imageUploader:Ci(f,Cl),highlighter:Ci(h,Ml),texRenderer:Ci(p,El),dark:l,emoji:typeof r=="boolean"?r?Pr:[]:r,pageSize:a,login:R,copyright:g,search:x===!1?!1:typeof x=="object"?x:Sl(i),recaptchaV3Key:$,turnstileKey:P,reaction:Array.isArray(T)?T:T===!0?xl:[],commentSorting:A,...U}),$t=e=>typeof e=="string",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)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ei}}`:`${e}${Ei}`:e===!0?`:root${Ei}`:"",Si=(e,t)=>{let i=e.toString();for(;i.length<t;)i="0"+i;return i},Nl=e=>{const t=Si(e.getDate(),2),i=Si(e.getMonth()+1,2);return`${Si(e.getFullYear(),2)}-${i}-${t}`},Hl=(e,t,i)=>{if(!e)return"";const n=$t(e)?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,r=t.getTime()-n.getTime(),o=Math.floor(r/(24*3600*1e3));if(o===0){const s=r%864e5,l=Math.floor(s/(3600*1e3));if(l===0){const a=s%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${i.seconds}`}return`${c} ${i.minutes}`}return`${l} ${i.hours}`}return o<0?i.now:o<8?`${o} ${i.days}`:Nl(n)},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);/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Ii(e,t){const i=new Set(e.split(","));return n=>i.has(n)}const se={},Ot=[],Qe=()=>{},Bl=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ri=e=>e.startsWith("onUpdate:"),be=Object.assign,Jr=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},Wl=Object.prototype.hasOwnProperty,G=(e,t)=>Wl.call(e,t),N=Array.isArray,jt=e=>Kt(e)==="[object Map]",zt=e=>Kt(e)==="[object Set]",Yr=e=>Kt(e)==="[object Date]",ee=e=>typeof e=="function",ve=e=>typeof e=="string",Je=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",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=>Kt(e)==="[object Object]",Ti=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=Ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Kl=/-(\w)/g,Ve=Ln(e=>e.replace(Kl,(t,i)=>i?i.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=(e,t)=>{for(let i=0;i<e.length;i++)e[i](t)},no=(e,t,i,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:i})},$n=e=>{const 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(e){if(N(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=ve(n)?Yl(n):Zt(n);if(r)for(const o in r)t[o]=r[o]}return t}else if(ve(e)||ce(e))return e}const Zl=/;(?![^(]*\))/g,Ql=/:([^]+)/,Jl=/\/\*[^]*?\*\//g;function Yl(e){const t={};return e.replace(Jl,"").split(Zl).forEach(i=>{if(i){const n=i.split(Ql);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t="";if(ve(e))t=e;else if(N(e))for(let i=0;i<e.length;i++){const n=pe(e[i]);n&&(t+=n+" ")}else if(ce(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}const Xl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ea=Ii(Xl);function ro(e){return!!e||e===""}function ta(e,t){if(e.length!==t.length)return!1;let i=!0;for(let n=0;i&&n<e.length;n++)i=wt(e[n],t[n]);return i}function wt(e,t){if(e===t)return!0;let i=Yr(e),n=Yr(t);if(i||n)return i&&n?e.getTime()===t.getTime():!1;if(i=Je(e),n=Je(t),i||n)return e===t;if(i=N(e),n=N(t),i||n)return i&&n?ta(e,t):!1;if(i=ce(e),n=ce(t),i||n){if(!i||!n)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(l&&!a||!l&&a||!wt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(i=>wt(i,t))}const Q=e=>ve(e)?e:e==null?"":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((i,[n,r],o)=>(i[$i(n,o)+" =>"]=r,i),{})}:zt(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>$i(i))}:Je(t)?$i(t):ce(t)&&!N(t)&&!to(t)?String(t):t,$i=(e,t="")=>{var i;return Je(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/**
* @vue/reactivity v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Me;class na{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Me;try{return Me=this,t()}finally{Me=i}}}on(){Me=this}off(){Me=this.parent}stop(t){if(this._active){let i,n;for(i=0,n=this.effects.length;i<n;i++)this.effects[i].stop();for(i=0,n=this.cleanups.length;i<n;i++)this.cleanups[i]();if(this.scopes)for(i=0,n=this.scopes.length;i<n;i++)this.scopes[i].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,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(t,i,n,r){this.fn=t,this.trigger=i,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(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,yt(),this._dirtyLevel===1&&(this._dirtyLevel=0),_t()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=at,i=bt;try{return at=!0,bt=this,this._runnings++,lo(this),this.fn()}finally{ao(this),this._runnings--,bt=i,at=t}}stop(){this.active&&(lo(this),ao(this),this.onStop&&this.onStop(),this.active=!1)}}function lo(e){e._trackId++,e._depsLength=0}function ao(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)co(e.deps[t],e);e.deps.length=e._depsLength}}function co(e,t){const i=e.get(t);i!==void 0&&t._trackId!==i&&(e.delete(t),e.size===0&&e.cleanup())}let at=!0,ji=0;const uo=[];function yt(){uo.push(at),at=!1}function _t(){const e=uo.pop();at=e===void 0?!0:e}function zi(){ji++}function Pi(){for(ji--;!ji&&Fi.length;)Fi.shift()()}function fo(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&co(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fi=[];function ho(e,t,i){zi();for(const n of e.keys()){let r;n._dirtyLevel<t&&(r??(r=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(r??(r=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&Fi.push(n.scheduler)))}Pi()}const po=(e,t)=>{const i=new Map;return i.cleanup=e,i.computed=t,i},Ui=new WeakMap,kt=Symbol(""),Ni=Symbol("");function Ie(e,t,i){if(at&&bt){let n=Ui.get(e);n||Ui.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=po(()=>n.delete(i))),fo(bt,r)}}function Ye(e,t,i,n,r,o){const s=Ui.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(i==="length"&&N(e)){const a=Number(n);s.forEach((c,f)=>{(f==="length"||!Je(f)&&f>=a)&&l.push(c)})}else switch(i!==void 0&&l.push(s.get(i)),t){case"add":N(e)?Ti(i)&&l.push(s.get("length")):(l.push(s.get(kt)),jt(e)&&l.push(s.get(Ni)));break;case"delete":N(e)||(l.push(s.get(kt)),jt(e)&&l.push(s.get(Ni)));break;case"set":jt(e)&&l.push(s.get(kt));break}zi();for(const a of l)a&&ho(a,4);Pi()}const oa=Ii("__proto__,__v_isRef,__isVue"),go=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je)),mo=sa();function sa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=J(this);for(let o=0,s=this.length;o<s;o++)Ie(n,"get",o+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(J)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){yt(),zi();const n=J(this)[t].apply(this,i);return Pi(),_t(),n}}),e}function la(e){Je(e)||(e=String(e));const t=J(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class vo{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,n){const r=this._isReadonly,o=this._isShallow;if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(r?o?ya:Eo:o?Co:xo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=N(t);if(!r){if(s&&G(mo,i))return Reflect.get(mo,i,n);if(i==="hasOwnProperty")return la}const l=Reflect.get(t,i,n);return(Je(i)?go.has(i):oa(i))||(r||Ie(t,"get",i),o)?l:Re(l)?s&&Ti(i)?l:l.value:ce(l)?r?Jt(l):Qt(l):l}}class wo extends vo{constructor(t=!1){super(!1,t)}set(t,i,n,r){let o=t[i];if(!this._isShallow){const a=Xt(o);if(!Nn(n)&&!Xt(n)&&(o=J(o),n=J(n)),!N(t)&&Re(o)&&!Re(n))return a?!1:(o.value=n,!0)}const s=N(t)&&Ti(i)?Number(i)<t.length:G(t,i),l=Reflect.set(t,i,n,r);return t===J(r)&&(s?lt(n,o)&&Ye(t,"set",i,n):Ye(t,"add",i,n)),l}deleteProperty(t,i){const n=G(t,i),r=Reflect.deleteProperty(t,i);return r&&n&&Ye(t,"delete",i,void 0),r}has(t,i){const n=Reflect.has(t,i);return(!Je(i)||!go.has(i))&&Ie(t,"has",i),n}ownKeys(t){return Ie(t,"iterate",N(t)?"length":kt),Reflect.ownKeys(t)}}class aa extends vo{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){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,i=!1,n=!1){e=e.__v_raw;const r=J(e),o=J(t);i||(lt(t,o)&&Ie(r,"get",t),Ie(r,"get",o));const{has:s}=On(r),l=n?Hi:i?Bi:en;if(s.call(r,t))return l(e.get(t));if(s.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function zn(e,t=!1){const i=this.__v_raw,n=J(i),r=J(e);return t||(lt(e,r)&&Ie(n,"has",e),Ie(n,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}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 i=J(this),{has:n,get:r}=On(i);let o=n.call(i,e);o||(e=J(e),o=n.call(i,e));const s=r.call(i,e);return i.set(e,t),o?lt(t,s)&&Ye(i,"set",e,t):Ye(i,"add",e,t),this}function _o(e){const t=J(this),{has:i,get:n}=On(t);let r=i.call(t,e);r||(e=J(e),r=i.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return r&&Ye(t,"delete",e,void 0),o}function ko(){const e=J(this),t=e.size!==0,i=e.clear();return t&&Ye(e,"clear",void 0,void 0),i}function Fn(e,t){return function(n,r){const o=this,s=o.__v_raw,l=J(s),a=t?Hi:e?Bi:en;return!e&&Ie(l,"iterate",kt),s.forEach((c,f)=>n.call(r,a(c),a(f),o))}}function Un(e,t,i){return function(...n){const r=this.__v_raw,o=J(r),s=jt(o),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...n),f=i?Hi:t?Bi:en;return!t&&Ie(o,"iterate",a?Ni:kt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function da(){const e={get(o){return jn(this,o)},get size(){return Pn(this)},has:zn,add:bo,set:yo,delete:_o,clear:ko,forEach:Fn(!1,!1)},t={get(o){return jn(this,o,!1,!0)},get size(){return Pn(this)},has:zn,add:bo,set:yo,delete:_o,clear:ko,forEach:Fn(!1,!0)},i={get(o){return jn(this,o,!0)},get size(){return Pn(this,!0)},has(o){return zn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!1)},n={get(o){return jn(this,o,!0,!0)},get size(){return Pn(this,!0)},has(o){return zn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),i[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),n[o]=Un(o,!0,!0)}),[e,i,t,n]}const[ha,pa,ga,ma]=da();function Di(e,t){const i=t?e?ma:ga:e?pa:ha;return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(G(i,r)&&r in n?i:n,r,o)}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,i,n,r){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=ka(e);if(s===0)return e;const l=new Proxy(e,s===2?n:i);return r.set(e,l),l}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:!1}function J(e){const 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(t,i,n,r){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Oi(()=>t(this._value),()=>Hn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&Hn(t,4),Ro(t),t.effect._dirtyLevel>=2&&Hn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ea(e,t,i=!1){let n,r;const o=ee(e);return o?(n=e,r=Qe):(n=e.get,r=e.set),new Io(n,r,o||!r,i)}function Ro(e){var t;at&&bt&&(e=J(e),fo(bt,(t=e.dep)!=null?t:e.dep=po(()=>e.dep=void 0,e instanceof Io?e:void 0)))}function Hn(e,t=4,i){e=J(e);const n=e.dep;n&&ho(n,t)}function Re(e){return!!(e&&e.__v_isRef===!0)}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(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:J(t),this._value=i?t:en(t)}get value(){return Ro(this),this._value}set value(t){const i=this.__v_isShallow||Nn(t)||Xt(t);t=i?t:J(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:en(t),Hn(this,4))}}function Lo(e){return Re(e)?e.value:e}const Ra={get:(e,t,i)=>Lo(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Re(r)&&!Re(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function Ao(e){return Yt(e)?e:new Proxy(e,Ra)}/**
* @vue/runtime-core v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ut(e,t,i,n){try{return n?e(...n):e()}catch(r){Dn(r,t,i)}}function Be(e,t,i,n){if(ee(e)){const r=ut(e,t,i,n);return r&&Xr(r)&&r.catch(o=>{Dn(o,t,i)}),r}if(N(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Be(e[o],t,i,n));return r}}function Dn(e,t,i,n=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${i}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,l)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){yt(),ut(a,null,10,[e,s,l]),_t();return}}Ta(e,i,r,n)}function Ta(e,t,i,n=!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,i=ye.length;for(;t<i;){const n=t+i>>>1,r=ye[n],o=nn(r);o<e||o===e&&r.pre?t=n+1:i=n}return t}function Ki(e){(!ye.length||!ye.includes(e,tn&&e.allowRecurse?We+1:We))&&(e.id==null?ye.push(e):ye.splice(La(e.id),0,e),$o())}function $o(){!tn&&!Wi&&(Wi=!0,qi=Mo.then(zo))}function Aa(e){const t=ye.indexOf(e);t>We&&ye.splice(t,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,i=tn?We+1:0){for(;i<ye.length;i++){const n=ye[i];if(n&&n.pre){if(e&&n.id!==e.uid)continue;ye.splice(i,1),i--,n()}}}function jo(e){if(Ft.length){const t=[...new Set(Ft)].sort((i,n)=>nn(i)-nn(n));if(Ft.length=0,ft){ft.push(...t);return}for(ft=t,xt=0;xt<ft.length;xt++)ft[xt]();ft=null,xt=0}}const nn=e=>e.id==null?1/0:e.id,$a=(e,t)=>{const i=nn(e)-nn(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function zo(e){Wi=!1,tn=!0,ye.sort($a);try{for(We=0;We<ye.length;We++){const t=ye[We];t&&t.active!==!1&&ut(t,null,14)}}finally{We=0,ye.length=0,jo(),tn=!1,qi=null,(ye.length||Ft.length)&&zo()}}function Oa(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||se;let r=i;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:p}=n[f]||se;p&&(r=i.map(g=>ve(g)?g.trim():g)),h&&(r=i.map($n))}let l,a=n[l=Li(t)]||n[l=Li(Ve(t))];!a&&o&&(a=n[l=Li(Pt(t))]),a&&Be(a,e,6,r);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Be(c,e,6,r)}}function ja(e,t,i=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let s={};return!o&&!!1?(ce(e)&&n.set(e,null),null):(N(o)?o.forEach(a=>s[a]=null):be(s,o),ce(e)&&n.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(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){const t=xe;return xe=e,Po=e&&e.type.__scopeId||null,t}function za(e,t=xe,i){if(!t||e._n)return e;const n=(...r)=>{n._d&&ss(-1);const o=Bn(t);let s;try{s=e(...r)}finally{Bn(o),n._d&&ss(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Gi(e){const{type:t,vnode:i,proxy:n,withProxy:r,propsOptions:[o],slots:s,attrs:l,emit:a,render:c,renderCache:f,props:h,data:p,setupState:g,ctx:R,inheritAttrs:x}=e,T=Bn(e);let $,P;try{if(i.shapeFlag&4){const U=r||n,X=U;$=qe(c.call(X,U,f,h,g,p,R)),P=l}else{const U=t;$=qe(U.length>1?U(h,{attrs:l,slots:s,emit:a}):U(h,null)),P=t.props?l:Pa(l)}}catch(U){cn.length=0,Dn(U,e,1),$=ie(It)}let A=$;if(P&&x!==!1){const U=Object.keys(P),{shapeFlag:X}=A;U.length&&X&7&&(o&&U.some(Ri)&&(P=Fa(P,o)),A=Nt(A,P,!1,!0))}return i.dirs&&(A=Nt(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(i.dirs):i.dirs),i.transition&&(A.transition=i.transition),$=A,Bn(T),$}const Pa=e=>{let t;for(const i in e)(i==="class"||i==="style"||Tn(i))&&((t||(t={}))[i]=e[i]);return t},Fa=(e,t)=>{const i={};for(const n in e)(!Ri(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function Ua(e,t,i){const{props:n,children:r,component:o}=e,{props:s,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&a>=0){if(a&1024)return!0;if(a&16)return n?Fo(n,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const p=f[h];if(s[p]!==n[p]&&!Vn(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===s?!1:n?s?Fo(n,s,c):!0:!!s;return!1}function Fo(e,t,i){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(t[o]!==e[o]&&!Vn(i,o))return!0}return!1}function Na({vnode:e,parent:t},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=i,t=t.parent;else break}}const Ha="components";function Da(e,t){return Ba(Ha,e,!0,t)||e}const Va=Symbol.for("v-ndc");function Ba(e,t,i=!0,n=!1){const r=xe||Ee;if(r){const o=r.type;{const l=Lc(o,!1);if(l&&(l===t||l===Ve(t)||l===An(Ve(t))))return o}const s=Uo(r[e]||o[e],t)||Uo(r.appContext[e],t);return!s&&n?o:s}}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,i){return Ho(e,t,i)}function Ho(e,t,{immediate:i,deep:n,flush:r,once:o,onTrack:s,onTrigger:l}=se){if(t&&o){const H=t;t=(...D)=>{H(...D),X()}}const a=Ee,c=H=>n===!0?H:Ct(H,n===!1?1:void 0);let f,h=!1,p=!1;if(Re(e)?(f=()=>e.value,h=Nn(e)):Yt(e)?(f=()=>c(e),h=!0):N(e)?(p=!0,h=e.some(H=>Yt(H)||Nn(H)),f=()=>e.map(H=>{if(Re(H))return H.value;if(Yt(H))return c(H);if(ee(H))return ut(H,a,2)})):ee(e)?t?f=()=>ut(e,a,2):f=()=>(g&&g(),Be(e,a,3,[R])):f=Qe,t&&n){const H=f;f=()=>Ct(H())}let g,R=H=>{g=A.onStop=()=>{ut(H,a,4),g=A.onStop=void 0}},x;if(Xn)if(R=Qe,t?i&&Be(t,a,3,[f(),p?[]:void 0,R]):f(),r==="sync"){const H=Ga();x=H.__watcherHandles||(H.__watcherHandles=[])}else return Qe;let T=p?new Array(e.length).fill(Wn):Wn;const $=()=>{if(!(!A.active||!A.dirty))if(t){const H=A.run();(n||h||(p?H.some((D,V)=>lt(D,T[V])):lt(H,T)))&&(g&&g(),Be(t,a,3,[H,T===Wn?void 0:p&&T[0]===Wn?[]:T,R]),T=H)}else A.run()};$.allowRecurse=!!t;let P;r==="sync"?P=$:r==="post"?P=()=>Te($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),P=()=>Ki($));const A=new Oi(f,Qe,P),U=so(),X=()=>{A.stop(),U&&Jr(U.effects,A)};return t?i?$():T=A.run():r==="post"?Te(A.run.bind(A),a&&a.suspense):A.run(),x&&x.push(X),X}function Ct(e,t=1/0,i){if(t<=0||!ce(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Re(e))Ct(e.value,t,i);else if(N(e))for(let n=0;n<e.length;n++)Ct(e[n],t,i);else if(zt(e)||jt(e))e.forEach(n=>{Ct(n,t,i)});else if(to(e))for(const n in e)Ct(e[n],t,i);return e}function qn(e,t){if(xe===null)return e;const i=ei(xe)||xe.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,s,l,a=se]=t[r];o&&(ee(o)&&(o={mounted:o,updated:o}),o.deep&&Ct(s),n.push({dir:o,instance:i,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Et(e,t,i,n){const r=e.dirs,o=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];o&&(l.oldValue=o[s].value);let a=l.dir[n];a&&(yt(),Be(a,i,8,[e.el,l,e,t]),_t())}}/*! #__NO_SIDE_EFFECTS__ */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(e,t,i=Ee,n=!1){if(i){const r=i[e]||(i[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(i.isUnmounted)return;yt();const l=lr(i),a=Be(t,i,e,s);return l(),_t(),a});return n?r.unshift(o):r.push(o),o}}const Zi=e=>(t,i=Ee)=>(!Xn||e==="sp")&&Qa(e,(...n)=>t(...n),i),on=Zi("m"),Ja=Zi("bum"),Qi=Zi("um");function ze(e,t,i,n){let r;const o=i;if(N(e)||ve(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,o)}else if(ce(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,o));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,o)}}else r=[];return r}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(t==="__v_skip")return!0;const{ctx:i,setupState:n,data:r,props:o,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return r[t];case 4:return i[t];case 3:return o[t]}else{if(Yi(n,t))return s[t]=1,n[t];if(r!==se&&G(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&G(c,t))return s[t]=3,o[t];if(i!==se&&G(i,t))return s[t]=4,i[t];s[t]=0}}const f=sn[t];let h,p;if(f)return t==="$attrs"&&Ie(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(i!==se&&G(i,t))return s[t]=4,i[t];if(p=a.config.globalProperties,G(p,t))return p[t]},set({_:e},t,i){const{data:n,setupState:r,ctx:o}=e;return Yi(r,t)?(r[t]=i,!0):n!==se&&G(n,t)?(n[t]=i,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,propsOptions:o}},s){let l;return!!i[s]||e!==se&&G(e,s)||Yi(t,s)||(l=o[0])&&G(l,s)||G(n,s)||G(sn,s)||G(r.config.globalProperties,s)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:G(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function Do(e){return N(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function Xa(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!i&&!n?a=t:(a={},r.length&&r.forEach(c=>Gn(a,c,s,!0)),Gn(a,t,s)),ce(t)&&o.set(t,a),a}function Gn(e,t,i,n=!1){const{mixins:r,extends:o}=t;o&&Gn(e,o,i,!0),r&&r.forEach(s=>Gn(e,s,i,!0));for(const s in t)if(!(n&&s==="expose")){const l=ec[s]||i&&i[s];e[s]=l?l(e[s],t[s]):t[s]}return e}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(e){if(N(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}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 i=be(Object.create(null),e);for(const n in t)i[n]=Ce(e[n],t[n]);return i}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(e,t){return function(n,r=null){ee(n)||(n=be({},n)),r!=null&&!ce(r)&&(r=null);const o=qo(),s=new WeakSet;let l=!1;const a=o.app={_uid:ic++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Mc,get config(){return o.config},set config(c){},use(c,...f){return s.has(c)||(c&&ee(c.install)?(s.add(c),c.install(a,...f)):ee(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(o.components[c]=f,a):o.components[c]},directive(c,f){return f?(o.directives[c]=f,a):o.directives[c]},mount(c,f,h){if(!l){const p=ie(n,r);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(p,c):e(p,c,h),l=!0,a._container=c,c.__vue_app__=a,ei(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return o.provides[c]=f,a},runWithContext(c){const f=an;an=a;try{return c()}finally{an=f}}};return a}}let an=null;function oc(e,t){if(Ee){let i=Ee.provides;const n=Ee.parent&&Ee.parent.provides;n===i&&(i=Ee.provides=Object.create(n)),i[e]=t}}function Zn(e,t,i=!1){const n=Ee||xe;if(n||an){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:an._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return i&&ee(t)?t.call(n&&n.proxy):t}}const Ko={},Go=()=>Object.create(Ko),Zo=e=>Object.getPrototypeOf(e)===Ko;function sc(e,t,i,n=!1){const r={},o=Go();e.propsDefaults=Object.create(null),Qo(e,t,r,o);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);i?e.props=n?r:xa(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function lc(e,t,i,n){const{props:r,attrs:o,vnode:{patchFlag:s}}=e,l=J(r),[a]=e.propsOptions;let c=!1;if((n||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let p=f[h];if(Vn(e.emitsOptions,p))continue;const g=t[p];if(a)if(G(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const R=Ve(p);r[R]=Xi(a,l,R,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{Qo(e,t,r,o)&&(c=!0);let f;for(const h in l)(!t||!G(t,h)&&((f=Pt(h))===h||!G(t,f)))&&(a?i&&(i[h]!==void 0||i[f]!==void 0)&&(r[h]=Xi(a,l,h,void 0,e,!0)):delete r[h]);if(o!==l)for(const h in o)(!t||!G(t,h))&&(delete o[h],c=!0)}c&&Ye(e.attrs,"set","")}function Qo(e,t,i,n){const[r,o]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Gt(a))continue;const c=t[a];let f;r&&G(r,f=Ve(a))?!o||!o.includes(f)?i[f]=c:(l||(l={}))[f]=c:Vn(e.emitsOptions,a)||(!(a in n)||c!==n[a])&&(n[a]=c,s=!0)}if(o){const a=J(i),c=l||se;for(let f=0;f<o.length;f++){const h=o[f];i[h]=Xi(r,a,h,c[h],e,!G(c,h))}}return s}function Xi(e,t,i,n,r,o){const s=e[i];if(s!=null){const l=G(s,"default");if(l&&n===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ee(a)){const{propsDefaults:c}=r;if(i in c)n=c[i];else{const f=lr(r);n=c[i]=a.call(null,t),f()}}else n=a}s[0]&&(o&&!l?n=!1:s[1]&&(n===""||n===Pt(i))&&(n=!0))}return n}function ac(e,t,i=!1){const n=t.propsCache,r=n.get(e);if(r)return r;const o=e.props,s={},l=[];if(!o&&!!1)return ce(e)&&n.set(e,Ot),Ot;if(N(o))for(let f=0;f<o.length;f++){const h=Ve(o[f]);Jo(h)&&(s[h]=se)}else if(o)for(const f in o){const h=Ve(f);if(Jo(h)){const p=o[f],g=s[h]=N(p)||ee(p)?{type:p}:be({},p);if(g){const R=es(Boolean,g.type),x=es(String,g.type);g[0]=R>-1,g[1]=x<0||R<x,(R>-1||G(g,"default"))&&l.push(h)}}}const c=[s,l];return ce(e)&&n.set(e,c),c}function Jo(e){return e[0]!=="$"&&!Gt(e)}function Yo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Xo(e,t){return Yo(e)===Yo(t)}function es(e,t){return N(t)?t.findIndex(i=>Xo(i,e)):ee(t)&&Xo(t,e)?0:-1}const ts=e=>e[0]==="_"||e==="$stable",er=e=>N(e)?e.map(qe):[qe(e)],cc=(e,t,i)=>{if(t._n)return t;const n=za((...r)=>er(t(...r)),i);return n._c=!1,n},ns=(e,t,i)=>{const n=e._ctx;for(const r in e){if(ts(r))continue;const o=e[r];if(ee(o))t[r]=cc(r,o,n);else if(o!=null){const s=er(o);t[r]=()=>s}}},is=(e,t)=>{const i=er(t);e.slots.default=()=>i},uc=(e,t)=>{const i=e.slots=Go();if(e.vnode.shapeFlag&32){const n=t._;n?(be(i,t),no(i,"_",n,!0)):ns(t,i)}else t&&is(e,t)},fc=(e,t,i)=>{const{vnode:n,slots:r}=e;let o=!0,s=se;if(n.shapeFlag&32){const l=t._;l?i&&l===1?o=!1:(be(r,t),!i&&l===1&&delete r._):(o=!t.$stable,ns(t,r)),s=t}else t&&(is(e,t),s={default:1});if(o)for(const l in r)!ts(l)&&s[l]==null&&delete r[l]};function tr(e,t,i,n,r=!1){if(N(e)){e.forEach((p,g)=>tr(p,t&&(N(t)?t[g]:t),i,n,r));return}if(Kn(n)&&!r)return;const o=n.shapeFlag&4?ei(n.component)||n.component.proxy:n.el,s=r?null:o,{i:l,r:a}=e,c=t&&t.r,f=l.refs===se?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(ve(c)?(f[c]=null,G(h,c)&&(h[c]=null)):Re(c)&&(c.value=null)),ee(a))ut(a,l,12,[s,f]);else{const p=ve(a),g=Re(a);if(p||g){const R=()=>{if(e.f){const x=p?G(h,a)?h[a]:f[a]:a.value;r?N(x)&&Jr(x,o):N(x)?x.includes(o)||x.push(o):p?(f[a]=[o],G(h,a)&&(h[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else p?(f[a]=s,G(h,a)&&(h[a]=s)):g&&(a.value=s,e.k&&(f[e.k]=s))};s?(R.id=-1,Te(R,i)):R()}}}function dc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Ai().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Te=qa;function hc(e){return pc(e)}function pc(e,t){dc();const i=Ai();i.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:s,createText:l,createComment:a,setText:c,setElementText:f,parentNode:h,nextSibling:p,setScopeId:g=Qe,insertStaticContent:R}=e,x=(u,d,m,w=null,v=null,y=null,C=void 0,_=null,k=!!d.dynamicChildren)=>{if(u===d)return;u&&!fn(u,d)&&(w=mt(u),Se(u,v,y,!0),u=null),d.patchFlag===-2&&(k=!1,d.dynamicChildren=null);const{type:b,ref:I,shapeFlag:z}=d;switch(b){case Qn:T(u,d,m,w);break;case It:$(u,d,m,w);break;case ir:u==null&&P(d,m,w,C);break;case oe:fe(u,d,m,w,v,y,C,_,k);break;default:z&1?X(u,d,m,w,v,y,C,_,k):z&6?ot(u,d,m,w,v,y,C,_,k):(z&64||z&128)&&b.process(u,d,m,w,v,y,C,_,k,st)}I!=null&&v&&tr(I,u&&u.ref,y,d||u,!d)},T=(u,d,m,w)=>{if(u==null)n(d.el=l(d.children),m,w);else{const v=d.el=u.el;d.children!==u.children&&c(v,d.children)}},$=(u,d,m,w)=>{u==null?n(d.el=a(d.children||""),m,w):d.el=u.el},P=(u,d,m,w)=>{[u.el,u.anchor]=R(u.children,d,m,w,u.el,u.anchor)},A=({el:u,anchor:d},m,w)=>{let v;for(;u&&u!==d;)v=p(u),n(u,m,w),u=v;n(d,m,w)},U=({el:u,anchor:d})=>{let m;for(;u&&u!==d;)m=p(u),r(u),u=m;r(d)},X=(u,d,m,w,v,y,C,_,k)=>{d.type==="svg"?C="svg":d.type==="math"&&(C="mathml"),u==null?H(d,m,w,v,y,C,_,k):Le(u,d,v,y,C,_,k)},H=(u,d,m,w,v,y,C,_)=>{let k,b;const{props:I,shapeFlag:z,transition:E,dirs:F}=u;if(k=u.el=s(u.type,y,I&&I.is,I),z&8?f(k,u.children):z&16&&V(u.children,k,null,w,v,nr(u,y),C,_),F&&Et(u,null,w,"created"),D(k,u,u.scopeId,C,w),I){for(const ne in I)ne!=="value"&&!Gt(ne)&&o(k,ne,null,I[ne],y,u.children,w,v,Ue);"value"in I&&o(k,"value",null,I.value,y),(b=I.onVnodeBeforeMount)&&Ke(b,w,u)}F&&Et(u,null,w,"beforeMount");const K=gc(v,E);K&&E.beforeEnter(k),n(k,d,m),((b=I&&I.onVnodeMounted)||K||F)&&Te(()=>{b&&Ke(b,w,u),K&&E.enter(k),F&&Et(u,null,w,"mounted")},v)},D=(u,d,m,w,v)=>{if(m&&g(u,m),w)for(let y=0;y<w.length;y++)g(u,w[y]);if(v){let y=v.subTree;if(d===y){const C=v.vnode;D(u,C,C.scopeId,C.slotScopeIds,v.parent)}}},V=(u,d,m,w,v,y,C,_,k=0)=>{for(let b=k;b<u.length;b++){const I=u[b]=_?dt(u[b]):qe(u[b]);x(null,I,d,m,w,v,y,C,_)}},Le=(u,d,m,w,v,y,C)=>{const _=d.el=u.el;let{patchFlag:k,dynamicChildren:b,dirs:I}=d;k|=u.patchFlag&16;const z=u.props||se,E=d.props||se;let F;if(m&&St(m,!1),(F=E.onVnodeBeforeUpdate)&&Ke(F,m,d,u),I&&Et(d,u,m,"beforeUpdate"),m&&St(m,!0),b?B(u.dynamicChildren,b,_,m,w,nr(d,v),y):C||_e(u,d,_,null,m,w,nr(d,v),y,!1),k>0){if(k&16)le(_,d,z,E,m,w,v);else if(k&2&&z.class!==E.class&&o(_,"class",null,E.class,v),k&4&&o(_,"style",z.style,E.style,v),k&8){const K=d.dynamicProps;for(let ne=0;ne<K.length;ne++){const ae=K[ne],me=z[ae],Ne=E[ae];(Ne!==me||ae==="value")&&o(_,ae,me,Ne,v,u.children,m,w,Ue)}}k&1&&u.children!==d.children&&f(_,d.children)}else!C&&b==null&&le(_,d,z,E,m,w,v);((F=E.onVnodeUpdated)||I)&&Te(()=>{F&&Ke(F,m,d,u),I&&Et(d,u,m,"updated")},w)},B=(u,d,m,w,v,y,C)=>{for(let _=0;_<d.length;_++){const k=u[_],b=d[_],I=k.el&&(k.type===oe||!fn(k,b)||k.shapeFlag&70)?h(k.el):m;x(k,b,I,null,w,v,y,C,!0)}},le=(u,d,m,w,v,y,C)=>{if(m!==w){if(m!==se)for(const _ in m)!Gt(_)&&!(_ in w)&&o(u,_,m[_],null,C,d.children,v,y,Ue);for(const _ in w){if(Gt(_))continue;const k=w[_],b=m[_];k!==b&&_!=="value"&&o(u,_,b,k,C,d.children,v,y,Ue)}"value"in w&&o(u,"value",m.value,w.value,C)}},fe=(u,d,m,w,v,y,C,_,k)=>{const b=d.el=u?u.el:l(""),I=d.anchor=u?u.anchor:l("");let{patchFlag:z,dynamicChildren:E,slotScopeIds:F}=d;F&&(_=_?_.concat(F):F),u==null?(n(b,m,w),n(I,m,w),V(d.children||[],m,I,v,y,C,_,k)):z>0&&z&64&&E&&u.dynamicChildren?(B(u.dynamicChildren,E,m,v,y,C,_),(d.key!=null||v&&d===v.subTree)&&rs(u,d,!0)):_e(u,d,m,I,v,y,C,_,k)},ot=(u,d,m,w,v,y,C,_,k)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?v.ctx.activate(d,m,w,C,k):Fe(d,m,w,v,y,C,k):q(u,d,k)},Fe=(u,d,m,w,v,y,C)=>{const _=u.component=Cc(u,w,v);if(Za(u)&&(_.ctx.renderer=st),Sc(_),_.asyncDep){if(v&&v.registerDep(_,te),!u.el){const k=_.subTree=ie(It);$(null,k,d,m)}}else te(_,u,d,m,v,y,C)},q=(u,d,m)=>{const w=d.component=u.component;if(Ua(u,d,m))if(w.asyncDep&&!w.asyncResolved){de(w,d,m);return}else w.next=d,Aa(w.update),w.effect.dirty=!0,w.update();else d.el=u.el,w.vnode=d},te=(u,d,m,w,v,y,C)=>{const _=()=>{if(u.isMounted){let{next:I,bu:z,u:E,parent:F,vnode:K}=u;{const Mt=os(u);if(Mt){I&&(I.el=K.el,de(u,I,C)),Mt.asyncDep.then(()=>{u.isUnmounted||_()});return}}let ne=I,ae;St(u,!1),I?(I.el=K.el,de(u,I,C)):I=K,z&&Mn(z),(ae=I.props&&I.props.onVnodeBeforeUpdate)&&Ke(ae,F,I,K),St(u,!0);const me=Gi(u),Ne=u.subTree;u.subTree=me,x(Ne,me,h(Ne.el),mt(Ne),u,v,y),I.el=me.el,ne===null&&Na(u,me.el),E&&Te(E,v),(ae=I.props&&I.props.onVnodeUpdated)&&Te(()=>Ke(ae,F,I,K),v)}else{let I;const{el:z,props:E}=d,{bm:F,m:K,parent:ne}=u,ae=Kn(d);if(St(u,!1),F&&Mn(F),!ae&&(I=E&&E.onVnodeBeforeMount)&&Ke(I,ne,d),St(u,!0),z&&j){const me=()=>{u.subTree=Gi(u),j(z,u.subTree,u,v,null)};ae?d.type.__asyncLoader().then(()=>!u.isUnmounted&&me()):me()}else{const me=u.subTree=Gi(u);x(null,me,m,w,u,v,y),d.el=me.el}if(K&&Te(K,v),!ae&&(I=E&&E.onVnodeMounted)){const me=d;Te(()=>Ke(I,ne,me),v)}(d.shapeFlag&256||ne&&Kn(ne.vnode)&&ne.vnode.shapeFlag&256)&&u.a&&Te(u.a,v),u.isMounted=!0,d=m=w=null}},k=u.effect=new Oi(_,Qe,()=>Ki(b),u.scope),b=u.update=()=>{k.dirty&&k.run()};b.id=u.uid,St(u,!0),b()},de=(u,d,m)=>{d.component=u;const w=u.vnode.props;u.vnode=d,u.next=null,lc(u,d.props,w,m),fc(u,d.children,m),yt(),Oo(u),_t()},_e=(u,d,m,w,v,y,C,_,k=!1)=>{const b=u&&u.children,I=u?u.shapeFlag:0,z=d.children,{patchFlag:E,shapeFlag:F}=d;if(E>0){if(E&128){ke(b,z,m,w,v,y,C,_,k);return}else if(E&256){he(b,z,m,w,v,y,C,_,k);return}}F&8?(I&16&&Ue(b,v,y),z!==b&&f(m,z)):I&16?F&16?ke(b,z,m,w,v,y,C,_,k):Ue(b,v,y,!0):(I&8&&f(m,""),F&16&&V(z,m,w,v,y,C,_,k))},he=(u,d,m,w,v,y,C,_,k)=>{u=u||Ot,d=d||Ot;const b=u.length,I=d.length,z=Math.min(b,I);let E;for(E=0;E<z;E++){const F=d[E]=k?dt(d[E]):qe(d[E]);x(u[E],F,m,null,v,y,C,_,k)}b>I?Ue(u,v,y,!0,!1,z):V(d,m,w,v,y,C,_,k,z)},ke=(u,d,m,w,v,y,C,_,k)=>{let b=0;const I=d.length;let z=u.length-1,E=I-1;for(;b<=z&&b<=E;){const F=u[b],K=d[b]=k?dt(d[b]):qe(d[b]);if(fn(F,K))x(F,K,m,null,v,y,C,_,k);else break;b++}for(;b<=z&&b<=E;){const F=u[z],K=d[E]=k?dt(d[E]):qe(d[E]);if(fn(F,K))x(F,K,m,null,v,y,C,_,k);else break;z--,E--}if(b>z){if(b<=E){const F=E+1,K=F<I?d[F].el:w;for(;b<=E;)x(null,d[b]=k?dt(d[b]):qe(d[b]),m,K,v,y,C,_,k),b++}}else if(b>E)for(;b<=z;)Se(u[b],v,y,!0),b++;else{const F=b,K=b,ne=new Map;for(b=K;b<=E;b++){const Ae=d[b]=k?dt(d[b]):qe(d[b]);Ae.key!=null&&ne.set(Ae.key,b)}let ae,me=0;const Ne=E-K+1;let Mt=!1,xr=0;const Wt=new Array(Ne);for(b=0;b<Ne;b++)Wt[b]=0;for(b=F;b<=z;b++){const Ae=u[b];if(me>=Ne){Se(Ae,v,y,!0);continue}let De;if(Ae.key!=null)De=ne.get(Ae.key);else for(ae=K;ae<=E;ae++)if(Wt[ae-K]===0&&fn(Ae,d[ae])){De=ae;break}De===void 0?Se(Ae,v,y,!0):(Wt[De-K]=b+1,De>=xr?xr=De:Mt=!0,x(Ae,d[De],m,null,v,y,C,_,k),me++)}const Cr=Mt?mc(Wt):Ot;for(ae=Cr.length-1,b=Ne-1;b>=0;b--){const Ae=K+b,De=d[Ae],Er=Ae+1<I?d[Ae+1].el:w;Wt[b]===0?x(null,De,m,Er,v,y,C,_,k):Mt&&(ae<0||b!==Cr[ae]?ge(De,m,Er,2):ae--)}}},ge=(u,d,m,w,v=null)=>{const{el:y,type:C,transition:_,children:k,shapeFlag:b}=u;if(b&6){ge(u.component.subTree,d,m,w);return}if(b&128){u.suspense.move(d,m,w);return}if(b&64){C.move(u,d,m,st);return}if(C===oe){n(y,d,m);for(let z=0;z<k.length;z++)ge(k[z],d,m,w);n(u.anchor,d,m);return}if(C===ir){A(u,d,m);return}if(w!==2&&b&1&&_)if(w===0)_.beforeEnter(y),n(y,d,m),Te(()=>_.enter(y),v);else{const{leave:z,delayLeave:E,afterLeave:F}=_,K=()=>n(y,d,m),ne=()=>{z(y,()=>{K(),F&&F()})};E?E(y,K,ne):ne()}else n(y,d,m)},Se=(u,d,m,w=!1,v=!1)=>{const{type:y,props:C,ref:_,children:k,dynamicChildren:b,shapeFlag:I,patchFlag:z,dirs:E}=u;if(_!=null&&tr(_,null,m,u,!0),I&256){d.ctx.deactivate(u);return}const F=I&1&&E,K=!Kn(u);let ne;if(K&&(ne=C&&C.onVnodeBeforeUnmount)&&Ke(ne,d,u),I&6)yi(u.component,m,w);else{if(I&128){u.suspense.unmount(m,w);return}F&&Et(u,null,d,"beforeUnmount"),I&64?u.type.remove(u,d,m,v,st,w):b&&(y!==oe||z>0&&z&64)?Ue(b,d,m,!1,!0):(y===oe&&z&384||!v&&I&16)&&Ue(k,d,m),w&&Lt(u)}(K&&(ne=C&&C.onVnodeUnmounted)||F)&&Te(()=>{ne&&Ke(ne,d,u),F&&Et(u,null,d,"unmounted")},m)},Lt=u=>{const{type:d,el:m,anchor:w,transition:v}=u;if(d===oe){Bt(m,w);return}if(d===ir){U(u);return}const y=()=>{r(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:C,delayLeave:_}=v,k=()=>C(m,y);_?_(u.el,y,k):k()}else y()},Bt=(u,d)=>{let m;for(;u!==d;)m=p(u),r(u),u=m;r(d)},yi=(u,d,m)=>{const{bum:w,scope:v,update:y,subTree:C,um:_}=u;w&&Mn(w),v.stop(),y&&(y.active=!1,Se(C,u,d,m)),_&&Te(_,d),Te(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ue=(u,d,m,w=!1,v=!1,y=0)=>{for(let C=y;C<u.length;C++)Se(u[C],d,m,w,v)},mt=u=>u.shapeFlag&6?mt(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let At=!1;const Cn=(u,d,m)=>{u==null?d._vnode&&Se(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,m),At||(At=!0,Oo(),jo(),At=!1),d._vnode=u},st={p:x,um:Se,m:ge,r:Lt,mt:Fe,mc:V,pc:_e,pbc:B,n:mt,o:e};let O,j;return{render:Cn,hydrate:O,createApp:rc(Cn,O)}}function nr({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function St({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rs(e,t,i=!1){const n=e.children,r=t.children;if(N(n)&&N(r))for(let o=0;o<n.length;o++){const s=n[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=dt(r[o]),l.el=s.el),i||rs(s,l)),l.type===Qn&&(l.el=s.el)}}function mc(e){const t=e.slice(),i=[0];let n,r,o,s,l;const a=e.length;for(n=0;n<a;n++){const c=e[n];if(c!==0){if(r=i[i.length-1],e[r]<c){t[n]=r,i.push(n);continue}for(o=0,s=i.length-1;o<s;)l=o+s>>1,e[i[l]]<c?o=l+1:s=l;c<e[i[o]]&&(o>0&&(t[n]=i[o-1]),i[o]=n)}}for(o=i.length,s=i[o-1];o-- >0;)i[o]=s,s=t[s];return i}function os(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:os(t)}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=un>0?He||Ot:null,wc(),un>0&&He&&He.push(e),e}function L(e,t,i,n,r,o){return ls(M(e,t,i,n,r,o,!0))}function Xe(e,t,i,n,r){return ls(ie(e,t,i,n,r,!0))}function rr(e){return e?e.__v_isVNode===!0:!1}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:i})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Re(e)||ee(e)?{i:xe,r:e,k:t,f:!!i}:e:null);function M(e,t=null,i=null,n=0,r=null,o=e===oe?0:1,s=!1,l=!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:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:xe};return l?(or(a,i),o&128&&e.normalize(a)):i&&(a.shapeFlag|=ve(i)?8:16),un>0&&!s&&He&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&He.push(a),a}const ie=bc;function bc(e,t=null,i=null,n=0,r=null,o=!1){if((!e||e===Va)&&(e=It),rr(e)){const l=Nt(e,t,!0);return i&&or(l,i),un>0&&!o&&He&&(l.shapeFlag&6?He[He.indexOf(e)]=l:He.push(l)),l.patchFlag|=-2,l}if(Ac(e)&&(e=e.__vccOpts),t){t=yc(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=pe(l)),ce(a)&&(So(a)&&!N(a)&&(a=be({},a)),t.style=Zt(a))}const s=ve(e)?1:Wa(e)?128:vc(e)?64:ce(e)?4:ee(e)?2:0;return M(e,t,i,n,r,s,o,!0)}function yc(e){return e?So(e)||Zo(e)?be({},e):e:null}function Nt(e,t,i=!1,n=!1){const{props:r,ref:o,patchFlag:s,children:l,transition:a}=e,c=t?_c(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&as(c),ref:t&&t.ref?i&&o?N(o)?o.concat(Jn(t)):[o,Jn(t)]:Jn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==oe?s===-1?16:s|16:s,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&&n&&(f.transition=a.clone(f)),f}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 e==null||typeof e=="boolean"?ie(It):N(e)?ie(oe,null,e.slice()):typeof e=="object"?dt(e):ie(Qn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function or(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(N(t))i=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!Zo(t)?t._ctx=xe:r===3&&xe&&(xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:xe},i=32):(t=String(t),n&64?(i=16,t=[et(t)]):i=8);e.children=t,e.shapeFlag|=i}function _c(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=pe([t.class,n.class]));else if(r==="style")t.style=Zt([t.style,n.style]);else if(Tn(r)){const o=t[r],s=n[r];s&&o!==s&&!(N(o)&&o.includes(s))&&(t[r]=o?[].concat(o,s):s)}else r!==""&&(t[r]=n[r])}return t}function Ke(e,t,i,n=null){Be(e,t,7,[i,n])}const kc=qo();let xc=0;function Cc(e,t,i){const n=e.type,r=(t?t.appContext:e.appContext)||kc,o={uid:xc++,vnode:e,type:n,parent:t,appContext:r,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(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ac(n,r),emitsOptions:ja(n,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:n.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:i,suspenseId:i?i.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Oa.bind(null,o),e.ce&&e.ce(o),o}let Ee=null;const Ec=()=>Ee||xe;let Yn,sr;{const e=Ai(),t=(i,n)=>{let r;return(r=e[i])||(r=e[i]=[]),r.push(n),o=>{r.length>1?r.forEach(s=>s(o)):r[0](o)}};Yn=t("__VUE_INSTANCE_SETTERS__",i=>Ee=i),sr=t("__VUE_SSR_SETTERS__",i=>Xn=i)}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 e.vnode.shapeFlag&4}let Xn=!1;function Sc(e,t=!1){t&&sr(t);const{props:i,children:n}=e.vnode,r=us(e);sc(e,i,r,t),uc(e,n);const o=r?Ic(e,t):void 0;return t&&sr(!1),o}function Ic(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ya);const{setup:n}=i;if(n){const r=e.setupContext=n.length>1?Tc(e):null,o=lr(e);yt();const s=ut(n,e,0,[e.props,r]);if(_t(),o(),Xr(s)){if(s.then(cs,cs),t)return s.then(l=>{fs(e,l,t)}).catch(l=>{Dn(l,e,0)});e.asyncDep=s}else fs(e,s,t)}else hs(e,t)}function fs(e,t,i){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Ao(t)),hs(e,i)}let ds;function hs(e,t,i){const n=e.type;if(!e.render){if(!t&&ds&&!n.render){const r=n.template||Xa(e).template;if(r){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=n,c=be(be({isCustomElement:o,delimiters:l},s),a);n.render=ds(r,c)}}e.render=n.render||Qe}}const Rc={get(e,t){return Ie(e,"get",""),e[t]}};function Tc(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,Rc),slots:e.slots,emit:e.emit,expose:t}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ao(Ca(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in sn)return sn[i](e)},has(t,i){return i in t||i 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,i){const n=arguments.length;return n===2?ce(t)&&!N(t)?rr(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&rr(i)&&(i=[i]),ie(e,t,i))}const Mc="3.4.27";/**
* @vue/runtime-dom v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const $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,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const r=t==="svg"?ht.createElementNS($c,e):t==="mathml"?ht.createElementNS(Oc,e):ht.createElement(e,i?{is:i}:void 0);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},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,i,n,r,o){const s=i?i.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),i),!(r===o||!(r=r.nextSibling)););else{ps.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const l=ps.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,i)}return[s?s.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},zc=Symbol("_vtc");function Pc(e,t,i){const n=e[zc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),gs=Symbol("_vsh"),ms={beforeMount(e,{value:t},{transition:i}){e[ti]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):dn(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!=!i&&(n?t?(n.beforeEnter(e),dn(e,!0),n.enter(e)):n.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,i){const n=e.style,r=ve(i);let o=!1;if(i&&!r){if(t)if(ve(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();i[l]==null&&ni(n,l,"")}else for(const s in t)i[s]==null&&ni(n,s,"");for(const s in i)s==="display"&&(o=!0),ni(n,s,i[s])}else if(r){if(t!==i){const s=n[Fc];s&&(i+=";"+s),n.cssText=i,o=Uc.test(i)}}else t&&e.removeAttribute("style");ti in e&&(e[ti]=o?n.display:"",e[gs]&&(n.display="none"))}const vs=/\s*!important$/;function ni(e,t,i){if(N(i))i.forEach(n=>ni(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=Hc(e,t);vs.test(i)?e.setProperty(Pt(n),i.replace(vs,""),"important"):e[n]=i}}const ws=["Webkit","Moz","ms"],ar={};function Hc(e,t){const i=ar[t];if(i)return i;let n=Ve(t);if(n!=="filter"&&n in e)return ar[t]=n;n=An(n);for(let r=0;r<ws.length;r++){const o=ws[r]+n;if(o in e)return ar[t]=o}return t}const bs="http://www.w3.org/1999/xlink";function Dc(e,t,i,n,r){if(n&&t.startsWith("xlink:"))i==null?e.removeAttributeNS(bs,t.slice(6,t.length)):e.setAttributeNS(bs,t,i);else{const o=ea(t);i==null||o&&!ro(i)?e.removeAttribute(t):e.setAttribute(t,o?"":i)}}function Vc(e,t,i,n,r,o,s){if(t==="innerHTML"||t==="textContent"){n&&s(n,r,o),e[t]=i??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=i??"";(c!==f||!("_value"in e))&&(e.value=f),i==null&&e.removeAttribute(t),e._value=i;return}let a=!1;if(i===""||i==null){const c=typeof e[t];c==="boolean"?i=ro(i):i==null&&c==="string"?(i="",a=!0):c==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(t)}function tt(e,t,i,n){e.addEventListener(t,i,n)}function Bc(e,t,i,n){e.removeEventListener(t,i,n)}const ys=Symbol("_vei");function Wc(e,t,i,n,r=null){const o=e[ys]||(e[ys]={}),s=o[t];if(n&&s)s.value=n;else{const[l,a]=qc(t);if(n){const c=o[t]=Zc(n,r);tt(e,l,c,a)}else s&&(Bc(e,l,s,a),o[t]=void 0)}}const _s=/(?:Once|Passive|Capture)$/;function qc(e){let t;if(_s.test(e)){t={};let n;for(;n=e.match(_s);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let cr=0;const Kc=Promise.resolve(),Gc=()=>cr||(Kc.then(()=>cr=0),cr=Date.now());function Zc(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Be(Qc(n,i.value),t,5,[n])};return i.value=e,i.attached=Gc(),i}function Qc(e,t){if(N(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jc=(e,t,i,n,r,o,s,l,a)=>{const c=r==="svg";t==="class"?Pc(e,n,c):t==="style"?Nc(e,i,n):Tn(t)?Ri(t)||Wc(e,t,i,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yc(e,t,n,c))?Vc(e,t,n,o,s,l,a):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Dc(e,t,n,c))};function Yc(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ks(t)&&ee(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ks(t)&&ve(i)?!1:t in e}const pt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?i=>Mn(t,i):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(e,{modifiers:{lazy:t,trim:i,number:n}},r){e[Pe]=pt(r);const o=n||r.props&&r.props.type==="number";tt(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;i&&(l=l.trim()),o&&(l=$n(l)),e[Pe](l)}),i&&tt(e,"change",()=>{e.value=e.value.trim()}),t||(tt(e,"compositionstart",Xc),tt(e,"compositionend",xs),tt(e,"change",xs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:n,number:r}},o){if(e[Pe]=pt(o),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?$n(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(i||n&&e.value.trim()===l)||(e.value=l))}},eu={deep:!0,created(e,t,i){e[Pe]=pt(i),tt(e,"change",()=>{const n=e._modelValue,r=Ht(e),o=e.checked,s=e[Pe];if(N(n)){const l=Mi(n,r),a=l!==-1;if(o&&!a)s(n.concat(r));else if(!o&&a){const c=[...n];c.splice(l,1),s(c)}}else if(zt(n)){const l=new Set(n);o?l.add(r):l.delete(r),s(l)}else s(Ss(e,o))})},mounted:Cs,beforeUpdate(e,t,i){e[Pe]=pt(i),Cs(e,t,i)}};function Cs(e,{value:t,oldValue:i},n){e._modelValue=t,N(t)?e.checked=Mi(t,n.props.value)>-1:zt(t)?e.checked=t.has(n.props.value):t!==i&&(e.checked=wt(t,Ss(e,!0)))}const tu={created(e,{value:t},i){e.checked=wt(t,i.props.value),e[Pe]=pt(i),tt(e,"change",()=>{e[Pe](Ht(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Pe]=pt(n),t!==i&&(e.checked=wt(t,n.props.value))}},nu={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const r=zt(t);tt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>i?$n(Ht(s)):Ht(s));e[Pe](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Ut(()=>{e._assigning=!1})}),e[Pe]=pt(n)},mounted(e,{value:t,modifiers:{number:i}}){Es(e,t)},beforeUpdate(e,t,i){e[Pe]=pt(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Es(e,t)}};function Es(e,t,i){const n=e.multiple,r=N(t);if(!(n&&!r&&!zt(t))){for(let o=0,s=e.options.length;o<s;o++){const l=e.options[o],a=Ht(l);if(n)if(r){const c=typeof a;c==="string"||c==="number"?l.selected=t.some(f=>String(f)===String(a)):l.selected=Mi(t,a)>-1}else l.selected=t.has(a);else if(wt(Ht(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ht(e){return"_value"in e?e._value:e.value}function Ss(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const iu={created(e,t,i){ii(e,t,i,null,"created")},mounted(e,t,i){ii(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){ii(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){ii(e,t,i,n,"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,i,n,r){const s=ru(e.tagName,i.props&&i.props.type)[r];s&&s(e,t,i,n)}const ou=be({patchProp:Jc},jc);let Is;function su(){return Is||(Is=hc(ou))}const lu=(...e)=>{const t=su().createApp(...e),{mount:i}=t;return t.mount=n=>{const r=cu(n);if(!r)return;const o=t._component;!ee(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const s=i(r,!1,au(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function au(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cu(e){return ve(e)?document.querySelector(e):e}function hn(e){return so()?(ra(e),!0):!1}function nt(e){return typeof e=="function"?e():Lo(e)}const ri=typeof window<"u"&&typeof document<"u",uu=Object.prototype.toString,fu=e=>uu.call(e)==="[object Object]",oi=()=>{};function Rs(e,t){function i(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}return i}const Ts=e=>e();function du(e,t={}){let i,n,r=oi;const o=l=>{clearTimeout(l),r(),r=oi};return l=>{const a=nt(e),c=nt(t.maxWait);return i&&o(i),a<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(l())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!n&&(n=setTimeout(()=>{i&&o(i),n=null,f(l())},c)),i=setTimeout(()=>{n&&o(n),n=null,f(l())},a)})}}function hu(e=Ts){const t=W(!0);function i(){t.value=!1}function n(){t.value=!0}const r=(...o)=>{t.value&&e(...o)};return{isActive:Jt(t),pause:i,resume:n,eventFilter:r}}function Ls(e){return Ec()}function pu(e,t=200,i={}){return Rs(du(t,i),e)}function gu(e,t,i={}){const{eventFilter:n=Ts,...r}=i;return je(e,Rs(n,t),r)}function mu(e,t,i={}){const{eventFilter:n,...r}=i,{eventFilter:o,pause:s,resume:l,isActive:a}=hu(n);return{stop:gu(e,t,{...r,eventFilter:o}),pause:s,resume:l,isActive:a}}function fr(e,t=!0,i){Ls()?on(e,i):t?e():Ut(e)}function vu(e,t){Ls()&&Qi(e,t)}function wu(e,t=1e3,i={}){const{immediate:n=!0,immediateCallback:r=!1}=i;let o=null;const s=W(!1);function l(){o&&(clearInterval(o),o=null)}function a(){s.value=!1,l()}function c(){const f=nt(t);f<=0||(s.value=!0,r&&e(),l(),o=setInterval(e,f))}if(n&&ri&&c(),Re(t)||typeof t=="function"){const f=je(t,()=>{s.value&&ri&&c()});hn(f)}return hn(a),{isActive:s,pause:a,resume:c}}function bu(e){var t;const i=nt(e);return(t=i==null?void 0:i.$el)!=null?t:i}const si=ri?window:void 0,As=ri?window.document:void 0;function li(...e){let t,i,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,n,r]=e,t=si):[t,i,n,r]=e,!t)return oi;Array.isArray(i)||(i=[i]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,p,g)=>(f.addEventListener(h,p,g),()=>f.removeEventListener(h,p,g)),a=je(()=>[bu(t),nt(r)],([f,h])=>{if(s(),!f)return;const p=fu(h)?{...h}:h;o.push(...i.flatMap(g=>n.map(R=>l(f,g,R,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return hn(c),c}function yu(e,t={}){const{immediate:i=!0,fpsLimit:n=void 0,window:r=si}=t,o=W(!1),s=n?1e3/n:null;let l=0,a=null;function c(p){if(!o.value||!r)return;l||(l=p);const g=p-l;if(s&&g<s){a=r.requestAnimationFrame(c);return}l=p,e({delta:g,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!o.value&&r&&(o.value=!0,l=0,a=r.requestAnimationFrame(c))}function h(){o.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return i&&f(),hn(h),{isActive:Jt(o),pause:h,resume:f}}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 e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Eu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ms="vueuse-storage";function Dt(e,t,i,n={}){var r;const{flush:o="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:h=si,eventFilter:p,onError:g=B=>{console.error(B)},initOnMounted:R}=n,x=(f?Sa:W)(typeof t=="function"?t():t);if(!i)try{i=xu("getDefaultStorage",()=>{var B;return(B=si)==null?void 0:B.localStorage})()}catch(B){g(B)}if(!i)return x;const T=nt(t),$=Cu(T),P=(r=n.serializer)!=null?r:Eu[$],{pause:A,resume:U}=mu(x,()=>H(x.value),{flush:o,deep:s,eventFilter:p});h&&l&&fr(()=>{li(h,"storage",V),li(h,Ms,Le),R&&V()}),R||V();function X(B,le){h&&h.dispatchEvent(new CustomEvent(Ms,{detail:{key:e,oldValue:B,newValue:le,storageArea:i}}))}function H(B){try{const le=i.getItem(e);if(B==null)X(le,null),i.removeItem(e);else{const fe=P.write(B);le!==fe&&(i.setItem(e,fe),X(le,fe))}}catch(le){g(le)}}function D(B){const le=B?B.newValue:i.getItem(e);if(le==null)return a&&T!=null&&i.setItem(e,P.write(T)),T;if(!B&&c){const fe=P.read(le);return typeof c=="function"?c(fe,T):$==="object"&&!Array.isArray(fe)?{...T,...fe}:fe}else return typeof le!="string"?le:P.read(le)}function V(B){if(!(B&&B.storageArea!==i)){if(B&&B.key==null){x.value=T;return}if(!(B&&B.key!==e)){A();try{(B==null?void 0:B.newValue)!==P.write(x.value)&&(x.value=D(B))}catch(le){g(le)}finally{B?Ut(U):U()}}}}function Le(B){V(B.detail)}return x}function Su(e={}){const{controls:t=!1,interval:i="requestAnimationFrame"}=e,n=W(new Date),r=()=>n.value=new Date,o=i==="requestAnimationFrame"?yu(r,{immediate:!0}):wu(r,i,{immediate:!0});return t?{now:n,...o}:n}function Iu(e,t=oi,i={}){const{immediate:n=!0,manual:r=!1,type:o="text/javascript",async:s=!0,crossOrigin:l,referrerPolicy:a,noModule:c,defer:f,document:h=As,attrs:p={}}=i,g=W(null);let R=null;const x=P=>new Promise((A,U)=>{const X=V=>(g.value=V,A(V),V);if(!h){A(!1);return}let H=!1,D=h.querySelector(`script[src="${nt(e)}"]`);D?D.hasAttribute("data-loaded")&&X(D):(D=h.createElement("script"),D.type=o,D.async=s,D.src=nt(e),f&&(D.defer=f),l&&(D.crossOrigin=l),c&&(D.noModule=c),a&&(D.referrerPolicy=a),Object.entries(p).forEach(([V,Le])=>D==null?void 0:D.setAttribute(V,Le)),H=!0),D.addEventListener("error",V=>U(V)),D.addEventListener("abort",V=>U(V)),D.addEventListener("load",()=>{D.setAttribute("data-loaded","true"),t(D),X(D)}),H&&(D=h.head.appendChild(D)),P||X(D)}),T=(P=!0)=>(R||(R=x(P)),R),$=()=>{if(!h)return;R=null,g.value&&(g.value=null);const P=h.querySelector(`script[src="${nt(e)}"]`);P&&h.head.removeChild(P)};return n&&!r&&fr(T),r||vu($),{scriptTag:g,load:T,unload:$}}let Ru=0;function Tu(e,t={}){const i=W(!1),{document:n=As,immediate:r=!0,manual:o=!1,id:s=`vueuse_styletag_${++Ru}`}=t,l=W(e);let a=()=>{};const c=()=>{if(!n)return;const h=n.getElementById(s)||n.createElement("style");h.isConnected||(h.id=s,t.media&&(h.media=t.media),n.head.appendChild(h)),!i.value&&(a=je(l,p=>{h.textContent=p},{immediate:!0}),i.value=!0)},f=()=>{!n||!i.value||(a(),n.head.removeChild(n.getElementById(s)),i.value=!1)};return r&&!o&&fr(c),o||hn(f),{id:s,css:l,unload:f,load:c,isLoaded:Jt(i)}}const Lu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Au=e=>{const t=Dt("WALINE_EMOJI",{}),i=Lu(e);if(i){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return i&&(t.value[e]=r),r})},$s=(e,t="",i="",n="")=>`${t?`${t}/`:""}${i}${e}${n?`.${n}`:""}`,Mu=e=>Promise.all(e.map(t=>$t(t)?Au(Zr(t)):Promise.resolve(t))).then(t=>{const i={tabs:[],map:{}};return t.forEach(n=>{const{name:r,folder:o,icon:s,prefix:l="",type:a,items:c}=n;i.tabs.push({name:r,icon:$s(s,o,l,a),items:c.map(f=>{const h=`${l}${f}`;return i.map[h]=$s(f,o,l,a),h})})}),i}),Os=e=>{e.name!=="AbortError"&&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+));?/ig;function Fu(e){return e.replace(Pu,(t,i)=>(i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""))}const Uu=/(^|[^\[])\^/g;function re(e,t){let i=typeof e=="string"?e:e.source;t=t||"";const n={replace:(r,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Uu,"$1"),i=i.replace(r,s),n},getRegex:()=>new RegExp(i,t)};return n}function Ns(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const pn={exec:()=>null};function Hs(e,t){const i=e.replace(/\|/g,(o,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),n=i.split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ui(e,t,i){const n=e.length;if(n===0)return"";let r=0;for(;r<n;){const o=e.charAt(n-r-1);if(o===t&&!i)r++;else if(o!==t&&i)r++;else break}return e.slice(0,n-r)}function Nu(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])i++;else if(e[n]===t[1]&&(i--,i<0))return n;return-1}function Ds(e,t,i,n){const r=t.href,o=t.title?$e(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const l={type:"link",raw:i,href:r,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:i,href:r,title:o,text:$e(s)}}function Hu(e,t){const i=e.match(/^(\s+)(?:```)/);if(i===null)return t;const n=i[1];return t.split(`
`).map(r=>{const o=r.match(/^\s+/);if(o===null)return r;const[s]=o;return s.length>=n.length?r.slice(n.length):r}).join(`
`)}class fi{options;rules;lexer;constructor(t){this.options=t||Rt}space(t){const i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){const i=this.rules.block.code.exec(t);if(i){const n=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ui(n,`
`)}}}fences(t){const i=this.rules.block.fences.exec(t);if(i){const n=i[0],r=Hu(n,i[3]||"");return{type:"code",raw:n,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:r}}}heading(t){const i=this.rules.block.heading.exec(t);if(i){let n=i[2].trim();if(/#$/.test(n)){const r=ui(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const i=this.rules.block.hr.exec(t);if(i)return{type:"hr",raw:i[0]}}blockquote(t){const i=this.rules.block.blockquote.exec(t);if(i){let n=i[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`);n=ui(n.replace(/^ *>[ \t]?/gm,""),`
`);const r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:i[0],tokens:o,text:n}}}list(t){let i=this.rules.block.list.exec(t);if(i){let n=i[1].trim();const r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=new RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`);let l="",a="",c=!1;for(;t;){let f=!1;if(!(i=s.exec(t))||this.rules.block.hr.test(t))break;l=i[0],t=t.substring(l.length);let h=i[2].split(`
`,1)[0].replace(/^\t+/,$=>" ".repeat(3*$.length)),p=t.split(`
`,1)[0],g=0;this.options.pedantic?(g=2,a=h.trimStart()):(g=i[2].search(/[^ ]/),g=g>4?1:g,a=h.slice(g),g+=i[1].length);let R=!1;if(!h&&/^ *$/.test(p)&&(l+=p+`
`,t=t.substring(p.length+1),f=!0),!f){const $=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),P=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),U=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const X=t.split(`
`,1)[0];if(p=X,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),A.test(p)||U.test(p)||$.test(p)||P.test(t))break;if(p.search(/[^ ]/)>=g||!p.trim())a+=`
`+p.slice(g);else{if(R||h.search(/[^ ]/)>=4||A.test(h)||U.test(h)||P.test(h))break;a+=`
`+p}!R&&!p.trim()&&(R=!0),l+=X+`
`,t=t.substring(X.length+1),h=p.slice(g)}}o.loose||(c?o.loose=!0:/\n *\n *$/.test(l)&&(c=!0));let x=null,T;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&(T=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:l,task:!!x,checked:T,loose:!1,text:a,tokens:[]}),o.raw+=l}o.items[o.items.length-1].raw=l.trimEnd(),o.items[o.items.length-1].text=a.trimEnd(),o.raw=o.raw.trimEnd();for(let f=0;f<o.items.length;f++)if(this.lexer.state.top=!1,o.items[f].tokens=this.lexer.blockTokens(o.items[f].text,[]),!o.loose){const h=o.items[f].tokens.filter(g=>g.type==="space"),p=h.length>0&&h.some(g=>/\n.*\n/.test(g.raw));o.loose=p}if(o.loose)for(let f=0;f<o.items.length;f++)o.items[f].loose=!0;return o}}html(t){const i=this.rules.block.html.exec(t);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(t){const i=this.rules.block.def.exec(t);if(i){const n=i[1].toLowerCase().replace(/\s+/g," "),r=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:n,raw:i[0],href:r,title:o}}}table(t){const i=this.rules.block.table.exec(t);if(!i||!/[:|]/.test(i[2]))return;const n=Hs(i[1]),r=i[2].replace(/^\||\| *$/g,"").split("|"),o=i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(`
`):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(const l of n)s.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of o)s.rows.push(Hs(l,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(t){const i=this.rules.block.lheading.exec(t);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(t){const i=this.rules.block.paragraph.exec(t);if(i){const n=i[1].charAt(i[1].length-1)===`
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const i=this.rules.block.text.exec(t);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(t){const i=this.rules.inline.escape.exec(t);if(i)return{type:"escape",raw:i[0],text:$e(i[1])}}tag(t){const i=this.rules.inline.tag.exec(t);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(t){const i=this.rules.inline.link.exec(t);if(i){const n=i[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const s=ui(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=Nu(i[2],"()");if(s>-1){const a=(i[0].indexOf("!")===0?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,a).trim(),i[3]=""}}let r=i[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=i[3]?i[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(n)?r=r.slice(1):r=r.slice(1,-1)),Ds(i,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer)}}reflink(t,i){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(/\s+/g," "),o=i[r.toLowerCase()];if(!o){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Ds(n,o,n[0],this.lexer)}}emStrong(t,i,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let l,a,c=s,f=0;const h=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,i=i.slice(-1*t.length+s);(r=h.exec(i))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(a=[...l].length,r[3]||r[4]){c+=a;continue}else if((r[5]||r[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const p=[...r[0]][0].length,g=t.slice(0,s+r.index+p+a);if(Math.min(s,a)%2){const x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}const R=g.slice(2,-2);return{type:"strong",raw:g,text:R,tokens:this.lexer.inlineTokens(R)}}}}codespan(t){const i=this.rules.inline.code.exec(t);if(i){let n=i[2].replace(/\n/g," ");const r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=$e(n,!0),{type:"codespan",raw:i[0],text:n}}}br(t){const i=this.rules.inline.br.exec(t);if(i)return{type:"br",raw:i[0]}}del(t){const i=this.rules.inline.del.exec(t);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(t){const i=this.rules.inline.autolink.exec(t);if(i){let n,r;return i[2]==="@"?(n=$e(i[1]),r="mailto:"+n):(n=$e(i[1]),r=n),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let i;if(i=this.rules.inline.url.exec(t)){let r,o;if(i[2]==="@")r=$e(i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=((n=this.rules.inline._backpedal.exec(i[0]))==null?void 0:n[0])??"";while(s!==i[0]);r=$e(i[0]),i[1]==="www."?o="http://"+i[0]:o=i[0]}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const i=this.rules.inline.text.exec(t);if(i){let n;return this.lexer.state.inRawBlock?n=i[0]:n=$e(i[0]),{type:"text",raw:i[0],text:n}}}}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("(?:-->|$)","-->").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(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Rt,this.options.tokenizer=this.options.tokenizer||new fi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:pi.normal,inline:vn.normal};this.options.pedantic?(i.block=pi.pedantic,i.inline=vn.pedantic):this.options.gfm&&(i.block=pi.gfm,this.options.breaks?i.inline=vn.breaks:i.inline=vn.gfm),this.tokenizer.rules=i}static get rules(){return{block:pi,inline:vn}}static lex(t,i){return new it(i).lex(t)}static lexInline(t,i){return new it(i).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const n=this.inlineQueue[i];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[]){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,a,c)=>a+"    ".repeat(c.length));let n,r,o,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&i.length>0?i[i.length-1].raw+=`
`:i.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+n.raw,r.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),i.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const a=t.slice(1);let c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},a),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(o=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=i[i.length-1],s&&r.type==="paragraph"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n),s=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&r.type==="text"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(n);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let n,r,o,s=t,l,a,c;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),r=i[i.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),r=i[i.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(n=this.tokenizer.emStrong(t,s,c)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),i.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),i.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),i.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=t.slice(1);let p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},h),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(o=t.substring(0,f+1))}if(n=this.tokenizer.inlineText(o)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),a=!0,r=i[i.length-1],r&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):i.push(n);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return i}}class gi{options;constructor(t){this.options=t||Rt}code(t,i,n){var o;const r=(o=(i||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,"")+`
`,r?'<pre><code class="language-'+$e(r)+'">'+(n?t:$e(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:$e(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t,i){return t}heading(t,i,n){return`<h${i}>${t}</h${i}>
`}hr(){return`<hr>
`}list(t,i,n){const r=i?"ol":"ul",o=i&&n!==1?' start="'+n+'"':"";return"<"+r+o+`>
`+t+"</"+r+`>
`}listitem(t,i,n){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
`}table(t,i){return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+i+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,i){const n=i.header?"th":"td";return(i.align?`<${n} align="${i.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,i,n){const r=Ns(t);if(r===null)return n;t=r;let o='<a href="'+t+'"';return i&&(o+=' title="'+i+'"'),o+=">"+n+"</a>",o}image(t,i,n){const r=Ns(t);if(r===null)return n;t=r;let o=`<img src="${t}" alt="${n}"`;return i&&(o+=` title="${i}"`),o+=">",o}text(t){return t}}class yr{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,n){return""+n}image(t,i,n){return""+n}br(){return""}}class rt{options;renderer;textRenderer;constructor(t){this.options=t||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(t,i){return new rt(i).parse(t)}static parseInline(t,i){return new rt(i).parseInline(t)}parse(t,i=!0){let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=l||"";continue}}switch(o.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{const s=o;n+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Fu(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=o;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=o;let l="",a="";for(let f=0;f<s.header.length;f++)a+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});l+=this.renderer.tablerow(a);let c="";for(let f=0;f<s.rows.length;f++){const h=s.rows[f];a="";for(let p=0;p<h.length;p++)a+=this.renderer.tablecell(this.parseInline(h[p].tokens),{header:!1,align:s.align[p]});c+=this.renderer.tablerow(a)}n+=this.renderer.table(l,c);continue}case"blockquote":{const s=o,l=this.parse(s.tokens);n+=this.renderer.blockquote(l);continue}case"list":{const s=o,l=s.ordered,a=s.start,c=s.loose;let f="";for(let h=0;h<s.items.length;h++){const p=s.items[h],g=p.checked,R=p.task;let x="";if(p.task){const T=this.renderer.checkbox(!!g);c?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=T+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=T+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:T+" "}):x+=T+" "}x+=this.parse(p.tokens,c),f+=this.renderer.listitem(x,R,!!g)}n+=this.renderer.list(f,l,a);continue}case"html":{const s=o;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=o;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=o,l=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<t.length&&t[r+1].type==="text";)s=t[++r],l+=`
`+(s.tokens?this.parseInline(s.tokens):s.text);n+=i?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,i){i=i||this.renderer;let n="";for(let r=0;r<t.length;r++){const o=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=s||"";continue}}switch(o.type){case"escape":{const s=o;n+=i.text(s.text);break}case"html":{const s=o;n+=i.html(s.text);break}case"link":{const s=o;n+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break}case"image":{const s=o;n+=i.image(s.href,s.title,s.text);break}case"strong":{const s=o;n+=i.strong(this.parseInline(s.tokens,i));break}case"em":{const s=o;n+=i.em(this.parseInline(s.tokens,i));break}case"codespan":{const s=o;n+=i.codespan(s.text);break}case"br":{n+=i.br();break}case"del":{const s=o;n+=i.del(this.parseInline(s.tokens,i));break}case"text":{const s=o;n+=i.text(s.text);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class wn{options;constructor(t){this.options=t||Rt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Oe(wn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Js{constructor(...t){_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(...t)}walkTokens(t,i){var r,o;let n=[];for(const s of t)switch(n=n.concat(i.call(this,s)),s.type){case"table":{const l=s;for(const a of l.header)n=n.concat(this.walkTokens(a.tokens,i));for(const a of l.rows)for(const c of a)n=n.concat(this.walkTokens(c.tokens,i));break}case"list":{const l=s;n=n.concat(this.walkTokens(l.items,i));break}default:{const l=s;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{const c=l[a].flat(1/0);n=n.concat(this.walkTokens(c,i))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,i)))}}return n}use(...t){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=i.renderers[o.name];s?i.renderers[o.name]=function(...l){let a=o.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:i.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=i[o.level];s?s.unshift(o.tokenizer):i[o.level]=[o.tokenizer],o.start&&(o.level==="block"?i.startBlock?i.startBlock.push(o.start):i.startBlock=[o.start]:o.level==="inline"&&(i.startInline?i.startInline.push(o.start):i.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(i.childTokens[o.name]=o.childTokens)}),r.extensions=i),n.renderer){const o=this.defaults.renderer||new gi(this.defaults);for(const s in n.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.renderer[l],c=o[l];o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h||""}}r.renderer=o}if(n.tokenizer){const o=this.defaults.tokenizer||new fi(this.defaults);for(const s in n.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=n.tokenizer[l],c=o[l];o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h}}r.tokenizer=o}if(n.hooks){const o=this.defaults.hooks||new wn;for(const s in n.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,a=n.hooks[l],c=o[l];wn.passThroughHooks.has(s)?o[l]=f=>{if(this.defaults.async)return Promise.resolve(a.call(o,f)).then(p=>c.call(o,p));const h=a.call(o,f);return c.call(o,h)}:o[l]=(...f)=>{let h=a.apply(o,f);return h===!1&&(h=c.apply(o,f)),h}}r.hooks=o}if(n.walkTokens){const o=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),o&&(a=a.concat(o.call(this,l))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,i){return it.lex(t,i??this.defaults)}parser(t,i){return rt.parse(t,i??this.defaults)}}xn=new WeakSet,kr=function(t,i){return(n,r)=>{const o={...r},s={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=En(this,bi,wl).call(this,!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(a=>t(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>i(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let a=t(n,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=i(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return l(a)}}},bi=new WeakSet,wl=function(t,i){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+$e(n.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(n);throw n}};const Tt=new Js;function ue(e,t){return Tt.parse(e,t)}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;function gf(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const i=Ys(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,i,t.lang||"")).then(Xs(t));const n=e.highlight(t.text,i,t.lang||"");if(n 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(t)(n)},renderer:{code(t,i,n){const r=Ys(i),o=r?` class="${e.langPrefix}${il(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${o}>${n?t:il(t,!0)}
</code></pre>`}}}}function Ys(e){return(e||"").match(/\S*/)[0]}function Xs(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}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=e=>[{name:"blockMath",level:"block",tokenizer(t){const i=_f.exec(t);if(i!==null)return{type:"html",raw:i[0],text:e(!0,i[1])}}},{name:"inlineMath",level:"inline",start(t){const i=t.search(bf);return i!==-1?i:t.length},tokenizer(t){const i=yf.exec(t);if(i!==null)return{type:"html",raw:i[0],text:e(!1,i[1])}}}],rl=(e="",t={})=>e.replace(/:(.+?):/g,(i,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:i),xf=(e,{emojiMap:t,highlighter:i,texRenderer:n})=>{const r=new Js;if(r.setOptions({breaks:!0}),i&&r.use(gf({highlight:i})),n){const o=kf(n);r.use({extensions:o})}return r.parse(rl(e,t))},_r=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Cf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Ef=e=>e.match(/[\u4E00-\u9FD5]/gu),Sf=e=>{var t,i;return(((t=Cf(e))==null?void 0:t.reduce((n,r)=>n+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((i=Ef(e))==null?void 0:i.length)??0)},If=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:i}=await e.getHighEntropyValues(["platformVersion"]);return i&&parseInt(i.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},ol=({serverURL:e,path:t=window.location.pathname,selector:i=".waline-comment-count",lang:n=navigator.language})=>{const r=new AbortController,o=document.querySelectorAll(i);return o.length&&Lr({serverURL:Rn(e),paths:Array.from(o).map(s=>Gr(_r(s)??t)),lang:n,signal:r.signal}).then(s=>{o.forEach((l,a)=>{l.innerText=s[a].toString()})}).catch(Os),r.abort.bind(r)},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 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,t,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(f){try{c(n.next(f))}catch(h){s(h)}}function a(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?o(f.value):r(f.value).then(l,a)}c((n=n.apply(e,t||[])).next())})},Wf=vi&&vi.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(f){return a([c,f])}}function a(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(f){c=[6,f],r=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.ReCaptchaInstance=void 0;var qf=function(){function e(t,i,n){this.siteKey=t,this.recaptchaID=i,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(t){return Bf(this,void 0,void 0,function(){return Wf(this,function(i){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();bn.ReCaptchaInstance=qf,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Kf=bn,gt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(gt||(gt={}));var ul=function(){function e(){}return e.load=function(t,i){if(i===void 0&&(i={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===gt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===gt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,o){e.successfulLoadingConsumers.push(function(s){return r(s)}),e.errorLoadingRunnable.push(function(s){return o(s)})});e.instanceSiteKey=t,e.setLoadingState(gt.LOADING);var n=new e;return new Promise(function(r,o){n.loadScript(t,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters?i.renderParameters:{},i.customUrl).then(function(){e.setLoadingState(gt.LOADED);var s=n.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),l=new Kf.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(l)}),e.successfulLoadingConsumers=[],i.autoHideBadge&&l.hideBadge(),e.instance=l,r(l)}).catch(function(s){e.errorLoadingRunnable.forEach(function(l){return l(s)}),e.errorLoadingRunnable=[],o(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?gt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,i,n,r,o){var s=this;i===void 0&&(i=!1),n===void 0&&(n=!1),r===void 0&&(r={}),o===void 0&&(o="");var l=document.createElement("script");l.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";i&&(n?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),n&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),r.render&&(r.render=void 0);var c=this.buildQueryString(r);return l.src=a+"?render=explicit"+c,new Promise(function(f,h){l.addEventListener("load",s.waitForScriptToLoad(function(){f(l)},n),!1),l.onerror=function(p){e.setLoadingState(gt.NOT_LOADED),h(p)},document.head.appendChild(l)})},e.prototype.buildQueryString=function(t){var i=Object.keys(t);return i.length<1?"":"&"+Object.keys(t).filter(function(n){return!!t[n]}).map(function(n){return n+"="+t[n]}).join("&")},e.prototype.waitForScriptToLoad=function(t,i){var n=this;return function(){window.grecaptcha===void 0?setTimeout(function(){n.waitForScriptToLoad(t,i)},e.SCRIPT_LOAD_DELAY):i?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,i,n,r){var o={sitekey:i,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?t.enterprise.render(n.container,o):t.render(n.container,o):r?t.enterprise.render(o):t.render(o)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();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;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var i=bn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return i.ReCaptchaInstance}})}(cl);const fl={},Gf=e=>{const t=fl[e]??(fl[e]=cl.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:i=>t.then(n=>n.execute(i))}},Zf=e=>({execute:async t=>{const{load:i}=Iu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await i();const n=window==null?void 0:window.turnstile;return new Promise(r=>{n==null||n.ready(()=>{n==null||n.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:r})})})}}),Qf="WALINE_USER";let dl=null;const wi=()=>dl??(dl=Dt(Qf,{}));var Jf=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const i=Vf(),n=Zn("config"),r=W(-1),o=W([]),s=we(()=>n.value.locale),l=we(()=>n.value.reaction.length>0),a=we(()=>{const{reaction:g,path:R}=n.value;return g.map((x,T)=>({icon:x,desc:s.value[`reaction${T}`],active:i.value[R]===T}))});let c;const f=async()=>{if(!l.value)return;const{serverURL:g,lang:R,path:x,reaction:T}=n.value,$=new AbortController;c=$.abort.bind($);const P=await ki({serverURL:g,lang:R,paths:[x],type:T.map((A,U)=>`reaction${U}`),signal:$.signal});o.value=T.map((A,U)=>P[0][`reaction${U}`])},h=async g=>{if(r.value===-1){const{serverURL:R,lang:x,path:T}=n.value,$=i.value[T];r.value=g,$!==void 0&&(await Sn({serverURL:R,lang:x,path:T,type:`reaction${$}`,action:"desc"}),o.value[$]=Math.max(o.value[$]-1,0)),$!==g&&(await Sn({serverURL:R,lang:x,path:T,type:`reaction${g}`}),o.value[g]=(o.value[g]||0)+1),$===g?delete i.value[T]:i.value[T]=g,r.value=-1}};on(()=>{je(()=>[n.value.serverURL,n.value.path],()=>{f()},{immediate:!0})}),Qi(()=>c==null?void 0:c());const p={reactionStorage:i,config:n,votingIndex:r,voteNumbers:o,locale:s,isReactionEnabled:l,reactionsInfo:a,get abort(){return c},set abort(g){c=g},fetchReaction:f,vote:h,get LoadingIcon(){return mi}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}}),yn=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};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,i,n,r,o){return n.reactionsInfo.length?(S(),L("div",Yf,[M("div",{class:"wl-reaction-title",textContent:Q(n.locale.reactionTitle)},null,8,Xf),M("ul",ed,[(S(!0),L(oe,null,ze(n.reactionsInfo,({active:s,icon:l,desc:a},c)=>(S(),L("li",{key:c,class:pe(["wl-reaction-item",{active:s}]),onClick:f=>n.vote(c)},[M("div",nd,[M("img",{src:l,alt:a},null,8,id),n.votingIndex===c?(S(),Xe(n.LoadingIcon,{key:0,class:"wl-reaction-loading"})):(S(),L("div",{key:1,class:"wl-reaction-votes",textContent:Q(n.voteNumbers[c]||0)},null,8,rd))]),M("div",{class:"wl-reaction-text",textContent:Q(a)},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){var t=_n.get(e);t&&t.destroy()}function cd(e){var t=_n.get(e);t&&t.update()}var kn=null;typeof window>"u"?((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(i){return function(n){if(n&&n.nodeName&&n.nodeName==="TEXTAREA"&&!_n.has(n)){var r,o=null,s=window.getComputedStyle(n),l=(r=n.value,function(){c({testForHeightReduction:r===""||!n.value.startsWith(r),restoreTextAlign:null}),r=n.value}),a=(function(h){n.removeEventListener("autosize:destroy",a),n.removeEventListener("autosize:update",f),n.removeEventListener("input",l),window.removeEventListener("resize",f),Object.keys(h).forEach(function(p){return n.style[p]=h[p]}),_n.delete(n)}).bind(n,{height:n.style.height,resize:n.style.resize,textAlign:n.style.textAlign,overflowY:n.style.overflowY,overflowX:n.style.overflowX,wordWrap:n.style.wordWrap});n.addEventListener("autosize:destroy",a),n.addEventListener("autosize:update",f),n.addEventListener("input",l),window.addEventListener("resize",f),n.style.overflowX="hidden",n.style.wordWrap="break-word",_n.set(n,{destroy:a,update:f}),f()}function c(h){var p,g,R=h.restoreTextAlign,x=R===void 0?null:R,T=h.testForHeightReduction,$=T===void 0||T,P=s.overflowY;if(n.scrollHeight!==0&&(s.resize==="vertical"?n.style.resize="none":s.resize==="both"&&(n.style.resize="horizontal"),$&&(p=function(U){for(var X=[];U&&U.parentNode&&U.parentNode instanceof Element;)U.parentNode.scrollTop&&X.push([U.parentNode,U.parentNode.scrollTop]),U=U.parentNode;return function(){return X.forEach(function(H){var D=H[0],V=H[1];D.style.scrollBehavior="auto",D.scrollTop=V,D.style.scrollBehavior=null})}}(n),n.style.height=""),g=s.boxSizing==="content-box"?n.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):n.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&g>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(n.style.overflow="scroll"),g=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(n.style.overflow="hidden"),n.style.height=g+"px",x&&(n.style.textAlign=x),p&&p(),o!==g&&(n.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=g),P!==s.overflow&&!x)){var A=s.textAlign;s.overflow==="hidden"&&(n.style.textAlign=A==="start"?"end":"start"),c({restoreTextAlign:A,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(i)}),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});var hl=kn,ud=rn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const i=e;t();let n=null;const r=W(null),o=W({}),s=W([]),l=()=>{const g=Math.floor((r.value.getBoundingClientRect().width+i.gap)/(i.columnWidth+i.gap));return g>0?g:1},a=g=>new Array(g).fill(null).map(()=>[]),c=async g=>{var R;if(g>=i.items.length)return;await Ut();const x=Array.from(((R=r.value)==null?void 0:R.children)??[]).reduce((T,$)=>$.getBoundingClientRect().height<T.getBoundingClientRect().height?$:T);s.value[Number(x.dataset.index)].push(g),await c(g+1)},f=async(g=!1)=>{if(s.value.length===l()&&!g)return;s.value=a(l());const R=window.scrollY;await c(0),window.scrollTo({top:R})},h=g=>{o.value[g.target.src]=!0};on(()=>{f(!0),n=new ResizeObserver(()=>{f()}),n.observe(r.value),je(()=>[i.items],()=>{o.value={},f(!0)}),je(()=>[i.columnWidth,i.gap],()=>{f()})}),Ja(()=>n.unobserve(r.value));const p={props:i,get resizeObserver(){return n},set resizeObserver(g){n=g},wall:r,state:o,columns:s,getColumnCount:l,createColumns:a,fillColumns:c,redraw:f,imageLoad:h,get LoadingIcon(){return mi}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});const fd=["data-index"],dd=["src","title","onClick"];function hd(e,t,i,n,r,o){return S(),L("div",{ref:"wall",class:"wl-gallery",style:Zt({gap:`${i.gap}px`})},[(S(!0),L(oe,null,ze(n.columns,(s,l)=>(S(),L("div",{key:l,class:"wl-gallery-column","data-index":l,style:Zt({gap:`${i.gap}px`})},[(S(!0),L(oe,null,ze(s,a=>(S(),L(oe,{key:a},[n.state[i.items[a].src]?Z("v-if",!0):(S(),Xe(n.LoadingIcon,{key:0,size:36,style:{margin:"20px auto"}})),M("img",{class:"wl-gallery-item",src:i.items[a].src,title:i.items[a].title,loading:"lazy",onLoad:n.imageLoad,onClick:c=>e.$emit("insert",`![](${i.items[a].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:i}){t();const n=e,r=i,o=Zn("config"),s=Nf(),l=Uf(),a=wi(),c=W({}),f=W(null),h=W(null),p=W(null),g=W(null),R=W(null),x=W(null),T=W(null),$=W({tabs:[],map:{}}),P=W(0),A=W(!1),U=W(!1),X=W(!1),H=W(""),D=W(0),V=Qt({loading:!0,list:[]}),Le=W(0),B=W(!1),le=W(""),fe=W(!1),ot=W(!1),Fe=we(()=>o.value.locale),q=we(()=>{var O;return!!((O=a.value)!=null&&O.token)}),te=we(()=>o.value.imageUploader!==!1),de=O=>{const j=f.value,u=j.selectionStart,d=j.selectionEnd||0,m=j.scrollTop;s.value=j.value.substring(0,u)+O+j.value.substring(d,j.value.length),j.focus(),j.selectionStart=u+O.length,j.selectionEnd=u+O.length,j.scrollTop=m},_e=O=>{const j=O.key;(O.ctrlKey||O.metaKey)&&j==="Enter"&&Lt()},he=O=>{const j=`![${o.value.locale.uploading} ${O.name}]()`;return de(j),fe.value=!0,Promise.resolve().then(()=>o.value.imageUploader(O)).then(u=>{s.value=s.value.replace(j,`\r
![${O.name}](${u})`)}).catch(u=>{alert(u.message),s.value=s.value.replace(j,"")}).then(()=>{fe.value=!1})},ke=O=>{var j;if((j=O.dataTransfer)!=null&&j.items){const u=js(O.dataTransfer.items);u&&te.value&&(he(u),O.preventDefault())}},ge=O=>{if(O.clipboardData){const j=js(O.clipboardData.items);j&&te.value&&he(j)}},Se=()=>{const O=h.value;O.files&&te.value&&he(O.files[0]).then(()=>{O.value=""})},Lt=async()=>{var O,j,u,d,m,w;const{serverURL:v,lang:y,login:C,wordLimit:_,requiredMeta:k,recaptchaV3Key:b,turnstileKey:I}=o.value,z=await If(),E={comment:le.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:o.value.path,ua:z};if(!n.edit)if((O=a.value)!=null&&O.token)E.nick=a.value.display_name,E.mail=a.value.email,E.link=a.value.url;else{if(C==="force")return;if(k.indexOf("nick")>-1&&!E.nick)return(j=c.value.nick)==null||j.focus(),alert(Fe.value.nickError);if(k.indexOf("mail")>-1&&!E.mail||E.mail&&!Vl(E.mail))return(u=c.value.mail)==null||u.focus(),alert(Fe.value.mailError);E.nick||(E.nick=Fe.value.anonymous)}if(!E.comment){(d=f.value)==null||d.focus();return}if(!B.value)return alert(Fe.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",D.value.toString()));E.comment=rl(E.comment,$.value.map),n.replyId&&n.rootId&&(E.pid=n.replyId,E.rid=n.rootId,E.at=n.replyUser),fe.value=!0;try{b&&(E.recaptchaV3=await Gf(b).execute("social")),I&&(E.turnstile=await Zf(I).execute("social"));const F={serverURL:v,lang:y,token:(m=a.value)==null?void 0:m.token,comment:E},K=await(n.edit?qt({objectId:n.edit.objectId,...F}):Rr(F));if(fe.value=!1,K.errmsg)return alert(K.errmsg);r("submit",K.data),s.value="",H.value="",await Ut(),n.replyId&&r("cancelReply"),(w=n.edit)!=null&&w.objectId&&r("cancelEdit")}catch(F){fe.value=!1,alert(F.message)}},Bt=O=>{O.preventDefault();const{lang:j,serverURL:u}=o.value;Ar({serverURL:u,lang:j}).then(d=>{a.value=d,(d.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(d)),r("log")})},yi=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ue=O=>{O.preventDefault();const{lang:j,serverURL:u}=o.value,d=800,m=800,w=(window.innerWidth-d)/2,v=(window.innerHeight-m)/2,y=new URLSearchParams({lng:j,token:a.value.token}),C=window.open(`${u}/ui/profile?${y.toString()}`,"_blank",`width=${d},height=${m},left=${w},top=${v},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);C==null||C.postMessage({type:"TOKEN",data:a.value.token},"*")},mt=O=>{var j,u,d,m;!((j=p.value)!=null&&j.contains(O.target))&&!((u=g.value)!=null&&u.contains(O.target))&&(A.value=!1),!((d=R.value)!=null&&d.contains(O.target))&&!((m=x.value)!=null&&m.contains(O.target))&&(U.value=!1)},At=async O=>{var j;const{scrollTop:u,clientHeight:d,scrollHeight:m}=O.target,w=(d+u)/m,v=o.value.search,y=((j=T.value)==null?void 0:j.value)??"";w<.9||V.loading||ot.value||(V.loading=!0,(v.more&&V.list.length?await v.more(y,V.list.length):await v.search(y)).length?V.list=[...V.list,...v.more&&V.list.length?await v.more(y,V.list.length):await v.search(y)]:ot.value=!0,V.loading=!1,setTimeout(()=>{O.target.scrollTop=u},50))},Cn=pu(O=>{V.list=[],ot.value=!1,At(O)},300);je([o,D],([O,j])=>{const{wordLimit:u}=O;u?j<u[0]&&u[0]!==0?(Le.value=u[0],B.value=!1):j>u[1]?(Le.value=u[1],B.value=!1):(Le.value=u[1],B.value=!0):(Le.value=0,B.value=!0)},{immediate:!0}),li("click",mt),li("message",({data:O})=>{!O||O.type!=="profile"||(a.value={...a.value,...O.data},[localStorage,sessionStorage].filter(j=>j.getItem("WALINE_USER")).forEach(j=>j.setItem("WALINE_USER",JSON.stringify(a))))}),je(U,async O=>{var j;if(!O)return;const u=o.value.search;T.value&&(T.value.value=""),V.loading=!0,V.list=await(((j=u.default)==null?void 0:j.call(u))??u.search("")),V.loading=!1}),on(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),je(()=>s.value,j=>{const{highlighter:u,texRenderer:d}=o.value;le.value=j,H.value=xf(j,{emojiMap:$.value.map,highlighter:u,texRenderer:d}),D.value=Sf(j),j?hl(f.value):hl.destroy(f.value)},{immediate:!0}),je(()=>o.value.emoji,j=>Mu(j).then(u=>{$.value=u}),{immediate:!0})});const st={props:n,emit:r,config:o,editor:s,userMeta:l,userInfo:a,inputRefs:c,editorRef:f,imageUploadRef:h,emojiButtonRef:p,emojiPopupRef:g,gifButtonRef:R,gifPopupRef:x,gifSearchInputRef:T,emoji:$,emojiTabIndex:P,showEmoji:A,showGif:U,showPreview:X,previewText:H,wordNumber:D,searchResults:V,wordLimit:Le,isWordNumberLegal:B,content:le,isSubmitting:fe,isImageListEnd:ot,locale:Fe,isLogin:q,canUploadImage:te,insert:de,onKeyDown:_e,uploadImage:he,onDrop:ke,onPaste:ge,onChange:Se,submitComment:Lt,onLogin:Bt,onLogout:yi,onProfile:Ue,popupHandler:mt,onImageWallScroll:At,onGifSearch:Cn,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(st,"__isScriptSetup",{enumerable:!1,value:!0}),st}});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,i,n,r,o){var s,l;return S(),L("div",{key:n.userInfo.token,class:"wl-comment"},[n.config.login!=="disable"&&n.isLogin&&!((s=i.edit)!=null&&s.objectId)?(S(),L("div",md,[M("div",vd,[M("button",{type:"submit",class:"wl-logout-btn",title:n.locale.logout,onClick:n.onLogout},[ie(n.CloseIcon,{size:14})],8,wd),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:n.locale.profile,onClick:n.onProfile},[M("img",{src:n.userInfo.avatar,alt:"avatar"},null,8,yd)],8,bd)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:n.locale.profile,onClick:n.onProfile,textContent:Q(n.userInfo.display_name)},null,8,_d)])):Z("v-if",!0),M("div",kd,[n.config.login!=="force"&&n.config.meta.length&&!n.isLogin?(S(),L("div",{key:0,class:pe(["wl-header",`item${n.config.meta.length}`])},[(S(!0),L(oe,null,ze(n.config.meta,a=>(S(),L("div",{key:a,class:"wl-header-item"},[M("label",{for:`wl-${a}`,textContent:Q(n.locale[a]+(n.config.requiredMeta.includes(a)||!n.config.requiredMeta.length?"":`(${n.locale.optional})`))},null,8,xd),qn(M("input",{id:`wl-${a}`,ref_for:!0,ref:c=>{c&&(n.inputRefs[a]=c)},"onUpdate:modelValue":c=>n.userMeta[a]=c,class:pe(["wl-input",`wl-${a}`]),name:a,type:a==="mail"?"email":"text"},null,10,Cd),[[iu,n.userMeta[a]]])]))),128))],2)):Z("v-if",!0),qn(M("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[0]||(t[0]=a=>n.editor=a),class:"wl-editor",placeholder:i.replyUser?`@${i.replyUser}`:n.locale.placeholder,onKeydown:n.onKeyDown,onDrop:n.onDrop,onPaste:n.onPaste},null,40,Ed),[[ur,n.editor]]),qn(M("div",Sd,[Id,M("h4",null,Q(n.locale.preview)+":",1),M("div",{class:"wl-content",innerHTML:n.previewText},null,8,Rd)],512),[[ms,n.showPreview]]),M("div",Td,[M("div",Ld,[M("a",Ad,[ie(n.MarkdownIcon)]),qn(M("button",{ref:"emojiButtonRef",type:"button",class:pe(["wl-action",{active:n.showEmoji}]),title:n.locale.emoji,onClick:t[1]||(t[1]=a=>n.showEmoji=!n.showEmoji)},[ie(n.EmojiIcon)],10,Md),[[ms,n.emoji.tabs.length]]),n.config.search?(S(),L("button",{key:0,ref:"gifButtonRef",type:"button",class:pe(["wl-action",{active:n.showGif}]),title:n.locale.gif,onClick:t[2]||(t[2]=a=>n.showGif=!n.showGif)},[ie(n.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:n.onChange},null,544),n.canUploadImage?(S(),L("label",{key:1,for:"wl-image-upload",class:"wl-action",title:n.locale.uploadImage},[ie(n.ImageIcon)],8,Od)):Z("v-if",!0),M("button",{type:"button",class:pe(["wl-action",{active:n.showPreview}]),title:n.locale.preview,onClick:t[3]||(t[3]=a=>n.showPreview=!n.showPreview)},[ie(n.PreviewIcon)],10,jd)]),M("div",zd,[Pd,M("div",Fd,[et(Q(n.wordNumber)+" ",1),n.config.wordLimit?(S(),L("span",Ud,[et("  /  "),M("span",{class:pe({illegal:!n.isWordNumberLegal}),textContent:Q(n.wordLimit)},null,10,Nd)])):Z("v-if",!0),et("  "+Q(n.locale.word),1)]),n.config.login!=="disable"&&!n.isLogin?(S(),L("button",{key:0,type:"button",class:"wl-btn",onClick:n.onLogin,textContent:Q(n.locale.login)},null,8,Hd)):Z("v-if",!0),n.config.login!=="force"||n.isLogin?(S(),L("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:n.isSubmitting,onClick:n.submitComment},[n.isSubmitting?(S(),Xe(n.LoadingIcon,{key:0,size:16})):(S(),L(oe,{key:1},[et(Q(n.locale.submit),1)],64))],8,Dd)):Z("v-if",!0)]),M("div",{ref:"gifPopupRef",class:pe(["wl-gif-popup",{display:n.showGif}])},[M("input",{ref:"gifSearchInputRef",type:"text",placeholder:n.locale.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...a)=>n.onGifSearch&&n.onGifSearch(...a))},null,40,Vd),n.searchResults.list.length?(S(),Xe(n.ImageWall,{key:0,items:n.searchResults.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=a=>n.insert(a)),onScroll:n.onImageWallScroll},null,8,["items"])):Z("v-if",!0),n.searchResults.loading?(S(),L("div",Bd,[ie(n.LoadingIcon,{size:30})])):Z("v-if",!0)],2),M("div",{ref:"emojiPopupRef",class:pe(["wl-emoji-popup",{display:n.showEmoji}])},[(S(!0),L(oe,null,ze(n.emoji.tabs,(a,c)=>(S(),L(oe,{key:a.name},[c===n.emojiTabIndex?(S(),L("div",Wd,[(S(!0),L(oe,null,ze(a.items,f=>(S(),L("button",{key:f,type:"button",title:f,onClick:h=>n.insert(`:${f}:`)},[n.showEmoji?(S(),L("img",{key:0,class:"wl-emoji",src:n.emoji.map[f],alt:f,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Kd)):Z("v-if",!0)],8,qd))),128))])):Z("v-if",!0)],64))),128)),n.emoji.tabs.length>1?(S(),L("div",Gd,[(S(!0),L(oe,null,ze(n.emoji.tabs,(a,c)=>(S(),L("button",{key:a.name,type:"button",class:pe(["wl-tab",{active:n.emojiTabIndex===c}]),onClick:f=>n.emojiTabIndex=c},[M("img",{class:"wl-emoji",src:a.icon,alt:a.name,title:a.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Qd)],10,Zd))),128))])):Z("v-if",!0)],2)])]),i.replyId||(l=i.edit)!=null&&l.objectId?(S(),L("button",{key:1,type:"button",class:"wl-close",title:n.locale.cancelReply,onClick:t[6]||(t[6]=a=>i.replyId?n.emit("cancelReply"):n.emit("cancelEdit"))},[ie(n.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:i}){t();const n=e,r=i,o=["approved","waiting","spam"],s=Zn("config"),l=ll(),a=Su(),c=wi(),f=we(()=>s.value.locale),h=we(()=>{const{link:A}=n.comment;return A?Qr(A)?A:`https://${A}`:""}),p=we(()=>l.value.includes(n.comment.objectId)),g=we(()=>Hl(new Date(n.comment.time),a.value,f.value)),R=we(()=>c.value.type==="administrator"),x=we(()=>n.comment.user_id&&c.value.objectId===n.comment.user_id),T=we(()=>{var A;return n.comment.objectId===((A=n.reply)==null?void 0:A.objectId)}),$=we(()=>{var A;return n.comment.objectId===((A=n.edit)==null?void 0:A.objectId)}),P={props:n,emit:r,commentStatus:o,config:s,likes:l,now:a,userInfo:c,locale:f,link:h,like:p,time:g,isAdmin:R,isOwner:x,isReplyingCurrent:T,isEditingCurrent:$,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(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}});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,i,n,r,o){var l;const s=Da("CommentCard",!0);return S(),L("div",{id:i.comment.objectId,class:"wl-card-item"},[M("div",th,[i.comment.avatar?(S(),L("img",{key:0,class:"wl-user-avatar",src:i.comment.avatar},null,8,nh)):Z("v-if",!0),i.comment.type?(S(),Xe(n.VerifiedIcon,{key:1})):Z("v-if",!0)]),M("div",ih,[M("div",rh,[n.link?(S(),L("a",{key:0,class:"wl-nick",href:n.link,target:"_blank",rel:"nofollow noopener noreferrer"},Q(i.comment.nick),9,oh)):(S(),L("span",sh,Q(i.comment.nick),1)),i.comment.type==="administrator"?(S(),L("span",{key:2,class:"wl-badge",textContent:Q(n.locale.admin)},null,8,lh)):Z("v-if",!0),i.comment.label?(S(),L("span",{key:3,class:"wl-badge",textContent:Q(i.comment.label)},null,8,ah)):Z("v-if",!0),i.comment.sticky?(S(),L("span",{key:4,class:"wl-badge",textContent:Q(n.locale.sticky)},null,8,ch)):Z("v-if",!0),typeof i.comment.level=="number"?(S(),L("span",{key:5,class:pe(`wl-badge level${i.comment.level}`),textContent:Q(n.locale[`level${i.comment.level}`]||`Level ${i.comment.level}`)},null,10,uh)):Z("v-if",!0),M("span",{class:"wl-time",textContent:Q(n.time)},null,8,fh),M("div",dh,[n.isAdmin||n.isOwner?(S(),L(oe,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:t[0]||(t[0]=a=>n.emit("edit",i.comment))},[ie(n.EditIcon)]),M("button",{type:"button",class:"wl-delete",onClick:t[1]||(t[1]=a=>n.emit("delete",i.comment))},[ie(n.DeleteIcon)])],64)):Z("v-if",!0),M("button",{type:"button",class:"wl-like",title:n.like?n.locale.cancelLike:n.locale.like,onClick:t[2]||(t[2]=a=>n.emit("like",i.comment))},[ie(n.LikeIcon,{active:n.like},null,8,["active"]),et(" "+Q("like"in i.comment?i.comment.like:""),1)],8,hh),M("button",{type:"button",class:pe(["wl-reply",{active:n.isReplyingCurrent}]),title:n.isReplyingCurrent?n.locale.cancelReply:n.locale.reply,onClick:t[3]||(t[3]=a=>n.emit("reply",n.isReplyingCurrent?null:i.comment))},[ie(n.ReplyIcon)],10,ph)])]),M("div",gh,[(S(),L(oe,null,ze(["addr","browser","os"],a=>(S(),L(oe,null,[i.comment[a]?(S(),L("span",{key:a,class:pe(`wl-${a}`),"data-value":i.comment[a],textContent:Q(i.comment[a])},null,10,mh)):Z("v-if",!0)],64))),64))]),n.isEditingCurrent?Z("v-if",!0):(S(),L("div",vh,[i.comment.reply_user?(S(),L("p",wh,[M("a",{href:"#"+i.comment.pid},"@"+Q(i.comment.reply_user.nick),9,bh),yh])):Z("v-if",!0),M("div",{innerHTML:i.comment.comment},null,8,_h)])),n.isAdmin&&!n.isEditingCurrent?(S(),L("div",kh,[M("span",xh,[(S(),L(oe,null,ze(n.commentStatus,a=>M("button",{key:a,type:"submit",class:pe(`wl-btn wl-${a}`),disabled:i.comment.status===a,onClick:c=>n.emit("status",{status:a,comment:i.comment}),textContent:Q(n.locale[a])},null,10,Ch)),64))]),n.isAdmin&&!("rid"in i.comment)?(S(),L("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=a=>n.emit("sticky",i.comment))},Q(i.comment.sticky?n.locale.unsticky:n.locale.sticky),1)):Z("v-if",!0)])):Z("v-if",!0),n.isReplyingCurrent||n.isEditingCurrent?(S(),L("div",{key:2,class:pe({"wl-reply-wrapper":n.isReplyingCurrent,"wl-edit-wrapper":n.isEditingCurrent})},[ie(n.CommentBox,{edit:i.edit,"reply-id":(l=i.reply)==null?void 0:l.objectId,"reply-user":i.comment.nick,"root-id":i.rootId,onLog:t[5]||(t[5]=a=>n.emit("log")),onCancelReply:t[6]||(t[6]=a=>n.emit("reply",null)),onCancelEdit:t[7]||(t[7]=a=>n.emit("edit",null)),onSubmit:t[8]||(t[8]=a=>n.emit("submit",a))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Z("v-if",!0),"children"in i.comment?(S(),L("div",Eh,[(S(!0),L(oe,null,ze(i.comment.children,a=>(S(),Xe(s,{key:a.objectId,comment:a,reply:i.reply,edit:i.edit,"root-id":i.rootId,onLog:t[9]||(t[9]=c=>n.emit("log")),onDelete:t[10]||(t[10]=c=>n.emit("delete",c)),onEdit:t[11]||(t[11]=c=>n.emit("edit",c)),onLike:t[12]||(t[12]=c=>n.emit("like",c)),onReply:t[13]||(t[13]=c=>n.emit("reply",c)),onStatus:t[14]||(t[14]=c=>n.emit("status",c)),onSticky:t[15]||(t[15]=c=>n.emit("sticky",c)),onSubmit:t[16]||(t[16]=c=>n.emit("submit",c))},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 i=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),o=wi(),s=ll(),l=W("loading"),a=W(0),c=W(1),f=W(0),h=we(()=>Fl(i)),p=W(h.value.commentSorting),g=W([]),R=W(null),x=W(null),T=we(()=>Ul(h.value.dark)),$=we(()=>h.value.locale);Tu(T,{id:"waline-darkmode"});let P;const A=q=>{var te;const{serverURL:de,path:_e,pageSize:he}=h.value,ke=new AbortController;l.value="loading",P==null||P(),Ir({serverURL:de,lang:h.value.lang,path:_e,pageSize:he,sortBy:n[p.value],page:q,signal:ke.signal,token:(te=o.value)==null?void 0:te.token}).then(ge=>{l.value="success",a.value=ge.count,g.value.push(...ge.data),c.value=q,f.value=ge.totalPages}).catch(ge=>{ge.name!=="AbortError"&&(console.error(ge.message),l.value="error")}),P=ke.abort.bind(ke)},U=()=>A(c.value+1),X=()=>{a.value=0,g.value=[],A(1)},H=q=>{p.value!==q&&(p.value=q,X())},D=q=>{R.value=q},V=q=>{x.value=q},Le=q=>{if(x.value)x.value.comment=q.comment,x.value.orig=q.orig;else if("rid"in q){const te=g.value.find(({objectId:de})=>de===q.rid);if(!te)return;Array.isArray(te.children)||(te.children=[]),te.children.push(q)}else g.value.unshift(q),a.value+=1},B=async({comment:q,status:te})=>{var de;if(q.status===te)return;const{serverURL:_e,lang:he}=h.value;await qt({serverURL:_e,lang:he,token:(de=o.value)==null?void 0:de.token,objectId:q.objectId,comment:{status:te}}),q.status=te},le=async q=>{var te;if("rid"in q)return;const{serverURL:de,lang:_e}=h.value;await qt({serverURL:de,lang:_e,token:(te=o.value)==null?void 0:te.token,objectId:q.objectId,comment:{sticky:q.sticky?0:1}}),q.sticky=!q.sticky},fe=async({objectId:q})=>{var te;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:de,lang:_e}=h.value;await Tr({serverURL:de,lang:_e,token:(te=o.value)==null?void 0:te.token,objectId:q}),g.value.some((he,ke)=>he.objectId===q?(g.value=g.value.filter((ge,Se)=>Se!==ke),!0):he.children.some((ge,Se)=>ge.objectId===q?(g.value[ke].children=he.children.filter((Lt,Bt)=>Bt!==Se),!0):!1))},ot=async q=>{var te;const{serverURL:de,lang:_e}=h.value,{objectId:he}=q,ke=s.value.includes(he);await qt({serverURL:de,lang:_e,objectId:he,token:(te=o.value)==null?void 0:te.token,comment:{like:!ke}}),ke?s.value=s.value.filter(ge=>ge!==he):(s.value=[...s.value,he],s.value.length>50&&(s.value=s.value.slice(-50))),q.like=(q.like||0)+(ke?-1:1)};oc("config",h),on(()=>{je(()=>[i.serverURL,i.path],()=>X(),{immediate:!0})}),Qi(()=>P==null?void 0:P());const Fe={props:i,sortKeyMap:n,sortingMethods:r,userInfo:o,likeStorage:s,status:l,count:a,page:c,totalPages:f,config:h,commentSortingRef:p,data:g,reply:R,edit:x,darkmodeStyle:T,i18n:$,get abort(){return P},set abort(q){P=q},getCommentData:A,loadMore:U,refresh:X,onSortByChange:H,onReply:D,onEdit:V,onSubmit:Le,onStatusChange:B,onSticky:le,onDelete:fe,onLike:ot,Reaction:ld,CommentBox:pl,CommentCard:Ih,get LoadingIcon(){return mi},get version(){return gl}};return Object.defineProperty(Fe,"__isScriptSetup",{enumerable:!1,value:!0}),Fe}});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,i,n,r,o){return S(),L("div",Th,[ie(n.Reaction),!n.reply&&!n.edit?(S(),Xe(n.CommentBox,{key:0,onLog:n.refresh,onSubmit:n.onSubmit})):Z("v-if",!0),M("div",Lh,[M("div",Ah,[n.count?(S(),L("span",{key:0,class:"wl-num",textContent:Q(n.count)},null,8,Mh)):Z("v-if",!0),et(" "+Q(n.i18n.comment),1)]),M("ul",$h,[(S(!0),L(oe,null,ze(n.sortingMethods,s=>(S(),L("li",{key:s,class:pe([s===n.commentSortingRef?"active":""]),onClick:l=>n.onSortByChange(s)},Q(n.i18n[s]),11,Oh))),128))])]),M("div",jh,[(S(!0),L(oe,null,ze(n.data,s=>(S(),Xe(n.CommentCard,{key:s.objectId,"root-id":s.objectId,comment:s,reply:n.reply,edit:n.edit,onLog:n.refresh,onReply:n.onReply,onEdit:n.onEdit,onSubmit:n.onSubmit,onStatus:n.onStatusChange,onDelete:n.onDelete,onSticky:n.onSticky,onLike:n.onLike},null,8,["root-id","comment","reply","edit"]))),128))]),n.status==="error"?(S(),L("div",zh,[M("button",{type:"button",class:"wl-btn",onClick:n.refresh,textContent:Q(n.i18n.refresh)},null,8,Ph)])):n.status==="loading"?(S(),L("div",Fh,[ie(n.LoadingIcon,{size:30})])):n.data.length?n.page<n.totalPages?(S(),L("div",Nh,[M("button",{type:"button",class:"wl-btn",onClick:n.loadMore,textContent:Q(n.i18n.more)},null,8,Hh)])):Z("v-if",!0):(S(),L("div",{key:3,class:"wl-empty",textContent:Q(n.i18n.sofa)},null,8,Uh)),n.config.copyright?(S(),L("div",Dh,[et(" Powered by "),Vh,et(" v"+Q(n.version),1)])):Z("v-if",!0)])}var Wh=yn(Rh,[["render",Bh],["__file","WalineComment.vue"]]);const ml=(e,t)=>{t.forEach((i,n)=>{const r=e[n].time;typeof r=="number"&&(i.innerText=r.toString())})},vl=({serverURL:e,path:t=window.location.pathname,selector:i=".waline-pageview-count",update:n=!0,lang:r=navigator.language})=>{const o=new AbortController,s=Array.from(document.querySelectorAll(i)),l=c=>{const f=_r(c);return f!==null&&t!==f},a=c=>Mr({serverURL:Rn(e),paths:c.map(f=>_r(f)??t),lang:r,signal:o.signal}).then(f=>ml(f,c)).catch(Os);if(n){const c=s.filter(h=>!l(h)),f=s.filter(l);$r({serverURL:Rn(e),path:t,lang:r}).then(h=>ml(h,c)),f.length&&a(f)}else a(s);return o.abort.bind(o)},qh=({el:e="#waline",path:t=window.location.pathname,comment:i=!1,pageview:n=!1,...r})=>{const o=e?dr(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Qt({...r}),l=Qt({comment:i,pageview:n,path:t}),a=()=>{l.comment&&ol({serverURL:s.serverURL,path:l.path,...$t(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&vl({serverURL:s.serverURL,path:l.path,...$t(l.pageview)?{selector:l.pageview}:{}})},f=o?lu(()=>Y(Wh,{path:l.path,...s})):null;f&&f.mount(o);const h=No(a),p=No(c);return{el:o,update:({comment:g,pageview:R,path:x=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([$,P])=>{s[$]=P}),l.path=x,g!==void 0&&(l.comment=g),R!==void 0&&(l.pageview=R)},destroy:()=>{f==null||f.unmount(),h(),p()}}},Kh=({el:e,serverURL:t,count:i,lang:n=navigator.language})=>{var r;const o=wi(),s=dr(e),l=new AbortController;return Or({serverURL:t,count:i,lang:n,signal:l.signal,token:(r=o.value)==null?void 0:r.token}).then(a=>s&&a.length?(s.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>：${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>l.abort()})},Gh=({el:e,serverURL:t,count:i,locale:n,lang:r=navigator.language,mode:o="list"})=>{const s=dr(e),l=new AbortController;return jr({serverURL:t,pageSize:i,lang:r,signal:l.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>l.abort()}:(n={...qr(r),...typeof n=="object"?n:{}},s.innerHTML=`<ul class="wl-user-${o}">${a.map((c,f)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${n?n[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{l.abort(),s.innerHTML=""}}))};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};
//# sourceMappingURL=waline.js.map
