@waline/client 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comment.js +1 -1
- package/dist/comment.js.map +1 -1
- package/dist/component.js +11 -10
- package/dist/component.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/slim.js +11 -10
- package/dist/slim.js.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.js +72 -61
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +72 -61
- package/dist/waline.umd.js.map +1 -1
- package/package.json +10 -10
package/dist/waline.umd.js
CHANGED
|
@@ -1,73 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
1
|
+
var Vd=Object.defineProperty;var Bd=(re,Oe,je)=>Oe in re?Vd(re,Oe,{enumerable:!0,configurable:!0,writable:!0,value:je}):re[Oe]=je;var Io=(re,Oe,je)=>Bd(re,typeof Oe!="symbol"?Oe+"":Oe,je);(function(re,Oe){typeof exports=="object"&&typeof module<"u"?Oe(exports):typeof define=="function"&&define.amd?define(["exports"],Oe):(re=typeof globalThis<"u"?globalThis:re||self,Oe(re.Waline={}))})(this,function(re){"use strict";const Oe={"Content-Type":"application/json"},je=e=>`${e.replace(/\/?$/,"/")}api/`,xt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Er=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${je(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${je(e)}article?lang=${t}`,{method:"POST",headers:Oe,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),ji=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${je(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(u=>u.json()).then(u=>xt(u,"Get comment data").data)},zi=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${je(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Pi=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${je(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>xt(i,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${je(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Oe,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Fi=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${je(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>xt(i,"Get comment count").data),Di=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ui=({serverURL:e,lang:t,paths:n,signal:r})=>Er({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Hi=e=>zn({...e,type:"time",action:"inc"}),Ni=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${je(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Vi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${je(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>xt(i,"user list")).then(i=>i.data),Lo=["nick","mail","link"],Bi=e=>e.filter(t=>Lo.includes(t)),Wi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Mo=["//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"],Oo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),jo=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>',zo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Po=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Fo=/</,Do=/(?:^|\s)\/\/(.+?)$/gm,Uo=/\/\*([\S\s]*?)\*\//gm,Ho=new RegExp(`(${Po.source}|${Fo.source})|((?:${Do.source})|(?:${Uo.source}))`,"gmi"),qi=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Tr={},No=e=>{let t=0;return e.replace(Ho,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"<";let s;Tr[r]?s=Tr[r]:(s=qi[t],Tr[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%qi.length,l})},Vo=["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"],et=e=>Object.fromEntries(e.map((t,n)=>[Vo[n],t]));var Bo=et(["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?"]),Ki=et(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
|
2
|
+
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Gi=et(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
|
|
3
|
+
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Zi=et(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
|
|
4
|
+
Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Qi=et(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
5
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Wo=et(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
|
6
|
+
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Ji=et(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
7
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Yi=et(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
|
|
8
|
+
Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Xi=et(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
9
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),qo=et(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
10
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const es="en-US",Pn={zh:Xi,"zh-cn":Xi,"zh-tw":qo,en:Ki,"en-us":Ki,fr:Zi,"fr-fr":Zi,jp:Qi,"jp-jp":Qi,"pt-br":Wo,ru:Ji,"ru-ru":Ji,vi:Yi,"vi-vn":Yi,de:Bo,es:Gi,"es-mx":Gi},ts=e=>Pn[e.toLowerCase()]||Pn[es.toLowerCase()],ns=e=>Object.keys(Pn).includes(e.toLowerCase())?e:es,rs=e=>{try{e=decodeURI(e)}catch{}return e},is=(e="")=>e.replace(/\/$/u,""),ss=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=is(e);return ss(t)?t:`https://${t}`},Ko=e=>Array.isArray(e)?e:e?[0,e]:!1,Ar=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Go=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Wi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:u,imageUploader:c,highlighter:h,texRenderer:p,copyright:m=!0,login:w="enable",search:x,reaction:C,recaptchaV3Key:v="",turnstileKey:$="",commentSorting:H="latest",...A})=>({serverURL:Fn(e),path:rs(t),lang:ns(n),locale:{...ts(ns(n)),...typeof r=="object"?r:{}},wordLimit:Ko(u),meta:Bi(s),requiredMeta:Bi(l),imageUploader:Ar(c,Oo),highlighter:Ar(h,No),texRenderer:Ar(p,jo),dark:o,emoji:typeof i=="boolean"?i?Wi:[]:i,pageSize:a,login:w,copyright:m,search:x===!1?!1:typeof x=="object"?x:zo(n),recaptchaV3Key:v,turnstileKey:$,reaction:Array.isArray(C)?C:C===!0?Mo:[],commentSorting:H,...A}),Dt=e=>typeof e=="string",Rr="{--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}",Zo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Rr}}`:`${e}${Rr}`:e===!0?`:root${Rr}`:"",Ir=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Qo=e=>{const t=Ir(e.getDate(),2),n=Ir(e.getMonth()+1,2);return`${Ir(e.getFullYear(),2)}-${n}-${t}`},Jo=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,u=Math.floor(a/(60*1e3));if(u===0){const c=a%6e4;return`${Math.round(c/1e3)} ${n.seconds}`}return`${u} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Qo(r)},Yo=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Xo=e=>Yo.test(e);/**
|
|
11
|
+
* @vue/shared v3.5.3
|
|
11
12
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
13
|
* @license MIT
|
|
13
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
14
|
-
* @vue/reactivity v3.
|
|
14
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Lr(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ue={},Ut=[],_t=()=>{},ea=()=>!1,Dn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),Te=Object.assign,ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ta=Object.prototype.hasOwnProperty,ie=(e,t)=>ta.call(e,t),N=Array.isArray,Ht=e=>nn(e)==="[object Map]",Nt=e=>nn(e)==="[object Set]",os=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",tt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",as=e=>(ge(e)||ee(e))&&ee(e.then)&&ee(e.catch),cs=Object.prototype.toString,nn=e=>cs.call(e),na=e=>nn(e).slice(8,-1),us=e=>nn(e)==="[object Object]",Or=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ra=/-(\w)/g,Ge=Un(e=>e.replace(ra,(t,n)=>n?n.toUpperCase():"")),ia=/\B([A-Z])/g,$t=Un(e=>e.replace(ia,"-$1").toLowerCase()),Hn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),jr=Un(e=>e?`on${Hn(e)}`:""),gt=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hs;const zr=()=>hs||(hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?aa(r):sn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||ge(e))return e}const sa=/;(?![^(]*\))/g,la=/:([^]+)/,oa=/\/\*[^]*?\*\//g;function aa(e){const t={};return e.replace(oa,"").split(sa).forEach(n=>{if(n){const r=n.split(la);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ca=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ds(e){return!!e||e===""}function ua(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ct(e[r],t[r]);return n}function Ct(e,t){if(e===t)return!0;let n=os(e),r=os(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=tt(e),r=tt(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return n&&r?ua(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!Ct(e[l],t[l]))return!1}}return String(e)===String(t)}function Pr(e,t){return e.findIndex(n=>Ct(n,t))}const ps=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":N(e)||ge(e)&&(e.toString===cs||!ee(e.toString))?ps(e)?Y(e.value):JSON.stringify(e,gs,2):String(e),gs=(e,t)=>ps(t)?gs(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Fr(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fr(n))}:tt(t)?Fr(t):ge(t)&&!N(t)&&!us(t)?String(t):t,Fr=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
15
|
+
* @vue/reactivity v3.5.3
|
|
15
16
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
17
|
* @license MIT
|
|
17
|
-
**/let $e;class Xl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=$e;try{return $e=this,t()}finally{$e=i}}}on(){$e=this}off(){$e=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 ea(e,t=$e){t&&t.active&&t.effects.push(e)}function ro(){return $e}function ta(e){$e&&$e.cleanups.push(e)}let yt;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,ea(this,r)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,_t(),this._dirtyLevel===1&&(this._dirtyLevel=0),kt()),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=yt;try{return at=!0,yt=this,this._runnings++,oo(this),this.fn()}finally{so(this),this._runnings--,yt=i,at=t}}stop(){this.active&&(oo(this),so(this),this.onStop&&this.onStop(),this.active=!1)}}function oo(e){e._trackId++,e._depsLength=0}function so(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)lo(e.deps[t],e);e.deps.length=e._depsLength}}function lo(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 ao=[];function _t(){ao.push(at),at=!1}function kt(){const e=ao.pop();at=e===void 0?!0:e}function zi(){ji++}function Pi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function co(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&lo(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function uo(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&&Ui.push(n.scheduler)))}Pi()}const fo=(e,t)=>{const i=new Map;return i.cleanup=e,i.computed=t,i},Fi=new WeakMap,xt=Symbol(""),Ni=Symbol("");function Te(e,t,i){if(at&&yt){let n=Fi.get(e);n||Fi.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=fo(()=>n.delete(i))),co(yt,r)}}function et(e,t,i,n,r,o){const s=Fi.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(i==="length"&&F(e)){const a=Number(n);s.forEach((c,f)=>{(f==="length"||!Xe(f)&&f>=a)&&l.push(c)})}else switch(i!==void 0&&l.push(s.get(i)),t){case"add":F(e)?Ti(i)&&l.push(s.get("length")):(l.push(s.get(xt)),Ot(e)&&l.push(s.get(Ni)));break;case"delete":F(e)||(l.push(s.get(xt)),Ot(e)&&l.push(s.get(Ni)));break;case"set":Ot(e)&&l.push(s.get(xt));break}zi();for(const a of l)a&&uo(a,4);Pi()}const na=Ii("__proto__,__v_isRef,__isVue"),ho=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe)),go=ia();function ia(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const n=Y(this);for(let o=0,s=this.length;o<s;o++)Te(n,"get",o+"");const r=n[t](...i);return r===-1||r===!1?n[t](...i.map(Y)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){_t(),zi();const n=Y(this)[t].apply(this,i);return Pi(),kt(),n}}),e}function ra(e){Xe(e)||(e=String(e));const t=Y(this);return Te(t,"has",e),t.hasOwnProperty(e)}class po{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?va:xo:o?ko:_o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=F(t);if(!r){if(s&&Z(go,i))return Reflect.get(go,i,n);if(i==="hasOwnProperty")return ra}const l=Reflect.get(t,i,n);return(Xe(i)?ho.has(i):na(i))||(r||Te(t,"get",i),o)?l:Le(l)?s&&Ti(i)?l:l.value:fe(l)?r?Jt(l):Qt(l):l}}class mo extends po{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=Y(o),n=Y(n)),!F(t)&&Le(o)&&!Le(n))return a?!1:(o.value=n,!0)}const s=F(t)&&Ti(i)?Number(i)<t.length:Z(t,i),l=Reflect.set(t,i,n,r);return t===Y(r)&&(s?lt(n,o)&&et(t,"set",i,n):et(t,"add",i,n)),l}deleteProperty(t,i){const n=Z(t,i),r=Reflect.deleteProperty(t,i);return r&&n&&et(t,"delete",i,void 0),r}has(t,i){const n=Reflect.has(t,i);return(!Xe(i)||!ho.has(i))&&Te(t,"has",i),n}ownKeys(t){return Te(t,"iterate",F(t)?"length":xt),Reflect.ownKeys(t)}}class oa extends po{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){return!0}}const sa=new mo,la=new oa,aa=new mo(!0),Hi=e=>e,On=e=>Reflect.getPrototypeOf(e);function jn(e,t,i=!1,n=!1){e=e.__v_raw;const r=Y(e),o=Y(t);i||(lt(t,o)&&Te(r,"get",t),Te(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=Y(i),r=Y(e);return t||(lt(e,r)&&Te(n,"has",e),Te(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&&Te(Y(e),"iterate",xt),Reflect.get(e,"size",e)}function vo(e){e=Y(e);const t=Y(this);return On(t).has.call(t,e)||(t.add(e),et(t,"add",e,e)),this}function wo(e,t){t=Y(t);const i=Y(this),{has:n,get:r}=On(i);let o=n.call(i,e);o||(e=Y(e),o=n.call(i,e));const s=r.call(i,e);return i.set(e,t),o?lt(t,s)&&et(i,"set",e,t):et(i,"add",e,t),this}function bo(e){const t=Y(this),{has:i,get:n}=On(t);let r=i.call(t,e);r||(e=Y(e),r=i.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return r&&et(t,"delete",e,void 0),o}function yo(){const e=Y(this),t=e.size!==0,i=e.clear();return t&&et(e,"clear",void 0,void 0),i}function Un(e,t){return function(n,r){const o=this,s=o.__v_raw,l=Y(s),a=t?Hi:e?Bi:en;return!e&&Te(l,"iterate",xt),s.forEach((c,f)=>n.call(r,a(c),a(f),o))}}function Fn(e,t,i){return function(...n){const r=this.__v_raw,o=Y(r),s=Ot(o),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...n),f=i?Hi:t?Bi:en;return!t&&Te(o,"iterate",a?Ni:xt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ca(){const e={get(o){return jn(this,o)},get size(){return Pn(this)},has:zn,add:vo,set:wo,delete:bo,clear:yo,forEach:Un(!1,!1)},t={get(o){return jn(this,o,!1,!0)},get size(){return Pn(this)},has:zn,add:vo,set:wo,delete:bo,clear:yo,forEach:Un(!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:Un(!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:Un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Fn(o,!1,!1),i[o]=Fn(o,!0,!1),t[o]=Fn(o,!1,!0),n[o]=Fn(o,!0,!0)}),[e,i,t,n]}const[ua,fa,da,ha]=ca();function Di(e,t){const i=t?e?ha:da:e?fa:ua;return(n,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Z(i,r)&&r in n?i:n,r,o)}const ga={get:Di(!1,!1)},pa={get:Di(!1,!0)},ma={get:Di(!0,!1)},_o=new WeakMap,ko=new WeakMap,xo=new WeakMap,va=new WeakMap;function wa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ba(e){return e.__v_skip||!Object.isExtensible(e)?0:wa(Bl(e))}function Qt(e){return Xt(e)?e:Vi(e,!1,sa,ga,_o)}function ya(e){return Vi(e,!1,aa,pa,ko)}function Jt(e){return Vi(e,!0,la,ma,xo)}function Vi(e,t,i,n,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=ba(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 Co(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function _a(e){return Object.isExtensible(e)&&eo(e,"__v_skip",!0),e}const en=e=>fe(e)?Qt(e):e,Bi=e=>fe(e)?Jt(e):e;class Eo{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=Y(this);return(!t._cacheable||t.effect.dirty)&<(t._value,t._value=t.effect.run())&&Hn(t,4),So(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 ka(e,t,i=!1){let n,r;const o=ee(e);return o?(n=e,r=Ye):(n=e.get,r=e.set),new Eo(n,r,o||!r,i)}function So(e){var t;at&&yt&&(e=Y(e),co(yt,(t=e.dep)!=null?t:e.dep=fo(()=>e.dep=void 0,e instanceof Eo?e:void 0)))}function Hn(e,t=4,i){e=Y(e);const n=e.dep;n&&uo(n,t)}function Le(e){return!!(e&&e.__v_isRef===!0)}function V(e){return Io(e,!1)}function xa(e){return Io(e,!0)}function Io(e,t){return Le(e)?e:new Ca(e,t)}class Ca{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Y(t),this._value=i?t:en(t)}get value(){return So(this),this._value}set value(t){const i=this.__v_isShallow||Nn(t)||Xt(t);t=i?t:Y(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:en(t),Hn(this,4))}}function Ro(e){return Le(e)?e.value:e}const Ea={get:(e,t,i)=>Ro(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Le(r)&&!Le(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function To(e){return Yt(e)?e:new Proxy(e,Ea)}/**
|
|
18
|
-
* @vue/runtime-core v3.
|
|
18
|
+
**/let Ae;class fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function ms(){return Ae}function ha(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Dr=new WeakSet;class vs{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dr.has(this)&&(Dr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=ln,ln=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_s(this),ys(this);const t=fe,n=Ze;fe=this,Ze=!0;try{return this.fn()}finally{ws(this),fe=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vr(t);this.deps=this.depsTail=void 0,_s(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let bs=0,ln;function Ur(){bs++}function Hr(){if(--bs>0)return;let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ys(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ws(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),Vr(r),da(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&ks(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function ks(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Nr(e)){e.flags&=-3;return}const n=fe,r=Ze;fe=e,Ze=!0;try{ys(e);const i=e.fn(e._value);(t.version===0||gt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ze=r,ws(e),e.flags&=-3}}function Vr(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Vr(i)}}function da(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const xs=[];function St(){xs.push(Ze),Ze=!1}function Et(){const e=xs.pop();Ze=e===void 0?!0:e}function _s(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let on=0;class Br{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!fe||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink={dep:this,sub:fe,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,fe.flags&4&&$s(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Hr()}}}function $s(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)$s(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Wr=new WeakMap,Tt=Symbol(""),qr=Symbol(""),an=Symbol("");function Ce(e,t,n){if(Ze&&fe){let r=Wr.get(e);r||Wr.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Br),i.track()}}function lt(e,t,n,r,i,s){const l=Wr.get(e);if(!l){on++;return}let o=[];if(t==="clear")o=[...l.values()];else{const a=N(e),u=a&&Or(n);if(a&&n==="length"){const c=Number(r);l.forEach((h,p)=>{(p==="length"||p===an||!tt(p)&&p>=c)&&o.push(h)})}else{const c=h=>h&&o.push(h);switch(n!==void 0&&c(l.get(n)),u&&c(l.get(an)),t){case"add":a?u&&c(l.get("length")):(c(l.get(Tt)),Ht(e)&&c(l.get(qr)));break;case"delete":a||(c(l.get(Tt)),Ht(e)&&c(l.get(qr)));break;case"set":Ht(e)&&c(l.get(Tt));break}}}Ur();for(const a of o)a.trigger();Hr()}function Vt(e){const t=te(e);return t===e?t:(Ce(t,"iterate",an),Qe(e)?t:t.map(Se))}function Bn(e){return Ce(e=te(e),"iterate",an),e}const pa={__proto__:null,[Symbol.iterator](){return Kr(this,Symbol.iterator,Se)},concat(...e){return Vt(this).concat(...e.map(t=>N(t)?Vt(t):t))},entries(){return Kr(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return ot(this,"find",e,t,Se,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gr(this,"includes",e)},indexOf(...e){return Gr(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Gr(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return Cs(this,"reduce",e,t)},reduceRight(e,...t){return Cs(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Kr(this,"values",Se)}};function Kr(e,t,n){const r=Bn(e),i=r[t]();return r!==e&&!Qe(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ga=Array.prototype;function ot(e,t,n,r,i,s){const l=Bn(e),o=l!==e&&!Qe(e),a=l[t];if(a!==ga[t]){const h=a.apply(e,s);return o?Se(h):h}let u=n;l!==e&&(o?u=function(h,p){return n.call(this,Se(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=a.call(l,u,r);return o&&i?i(c):c}function Cs(e,t,n,r){const i=Bn(e);let s=n;return i!==e&&(Qe(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Gr(e,t,n){const r=te(e);Ce(r,"iterate",an);const i=r[t](...n);return(i===-1||i===!1)&&Yr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function cn(e,t,n=[]){St(),Ur();const r=te(e)[t].apply(e,n);return Hr(),Et(),r}const ma=Lr("__proto__,__v_isRef,__isVue"),Ss=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function va(e){tt(e)||(e=String(e));const t=te(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class Es{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Ra:js:s?Os:Ms).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=N(t);if(!i){let a;if(l&&(a=pa[n]))return a;if(n==="hasOwnProperty")return va}const o=Reflect.get(t,n,xe(t)?t:r);return(tt(n)?Ss.has(n):ma(n))||(i||Ce(t,"get",n),s)?o:xe(o)?l&&Or(n)?o:o.value:ge(o)?i?fn(o):un(o):o}}class Ts extends Es{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=At(s);if(!Qe(r)&&!At(r)&&(s=te(s),r=te(r)),!N(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=N(t)&&Or(n)?Number(n)<t.length:ie(t,n),o=Reflect.set(t,n,r,xe(t)?t:i);return t===te(i)&&(l?gt(r,s)&<(t,"set",n,r):lt(t,"add",n,r)),o}deleteProperty(t,n){const r=ie(t,n),i=Reflect.deleteProperty(t,n);return i&&r&<(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!tt(n)||!Ss.has(n))&&Ce(t,"has",n),r}ownKeys(t){return Ce(t,"iterate",N(t)?"length":Tt),Reflect.ownKeys(t)}}class ba extends Es{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ya=new Ts,wa=new ba,ka=new Ts(!0),Zr=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function qn(e,t,n=!1,r=!1){e=e.__v_raw;const i=te(e),s=te(t);n||(gt(t,s)&&Ce(i,"get",t),Ce(i,"get",s));const{has:l}=Wn(i),o=r?Zr:n?Xr:Se;if(l.call(i,t))return o(e.get(t));if(l.call(i,s))return o(e.get(s));e!==i&&e.get(t)}function Kn(e,t=!1){const n=this.__v_raw,r=te(n),i=te(e);return t||(gt(e,i)&&Ce(r,"has",e),Ce(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Gn(e,t=!1){return e=e.__v_raw,!t&&Ce(te(e),"iterate",Tt),Reflect.get(e,"size",e)}function As(e,t=!1){!t&&!Qe(e)&&!At(e)&&(e=te(e));const n=te(this);return Wn(n).has.call(n,e)||(n.add(e),lt(n,"add",e,e)),this}function Rs(e,t,n=!1){!n&&!Qe(t)&&!At(t)&&(t=te(t));const r=te(this),{has:i,get:s}=Wn(r);let l=i.call(r,e);l||(e=te(e),l=i.call(r,e));const o=s.call(r,e);return r.set(e,t),l?gt(t,o)&<(r,"set",e,t):lt(r,"add",e,t),this}function Is(e){const t=te(this),{has:n,get:r}=Wn(t);let i=n.call(t,e);i||(e=te(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&<(t,"delete",e,void 0),s}function Ls(){const e=te(this),t=e.size!==0,n=e.clear();return t&<(e,"clear",void 0,void 0),n}function Zn(e,t){return function(r,i){const s=this,l=s.__v_raw,o=te(l),a=t?Zr:e?Xr:Se;return!e&&Ce(o,"iterate",Tt),l.forEach((u,c)=>r.call(i,a(u),a(c),s))}}function Qn(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=i[e](...r),c=n?Zr:t?Xr:Se;return!t&&Ce(s,"iterate",a?qr:Tt),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:o?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xa(){const e={get(s){return qn(this,s)},get size(){return Gn(this)},has:Kn,add:As,set:Rs,delete:Is,clear:Ls,forEach:Zn(!1,!1)},t={get(s){return qn(this,s,!1,!0)},get size(){return Gn(this)},has:Kn,add(s){return As.call(this,s,!0)},set(s,l){return Rs.call(this,s,l,!0)},delete:Is,clear:Ls,forEach:Zn(!1,!0)},n={get(s){return qn(this,s,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!1)},r={get(s){return qn(this,s,!0,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Qn(s,!1,!1),n[s]=Qn(s,!0,!1),t[s]=Qn(s,!1,!0),r[s]=Qn(s,!0,!0)}),[e,n,t,r]}const[_a,$a,Ca,Sa]=xa();function Qr(e,t){const n=t?e?Sa:Ca:e?$a:_a;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ie(n,i)&&i in r?n:r,i,s)}const Ea={get:Qr(!1,!1)},Ta={get:Qr(!1,!0)},Aa={get:Qr(!0,!1)},Ms=new WeakMap,Os=new WeakMap,js=new WeakMap,Ra=new WeakMap;function Ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function La(e){return e.__v_skip||!Object.isExtensible(e)?0:Ia(na(e))}function un(e){return At(e)?e:Jr(e,!1,ya,Ea,Ms)}function Ma(e){return Jr(e,!1,ka,Ta,Os)}function fn(e){return Jr(e,!0,wa,Aa,js)}function Jr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=La(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return At(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Yr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Oa(e){return Object.isExtensible(e)&&fs(e,"__v_skip",!0),e}const Se=e=>ge(e)?un(e):e,Xr=e=>ge(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function q(e){return zs(e,!1)}function ja(e){return zs(e,!0)}function zs(e,t){return xe(e)?e:new za(e,t)}class za{constructor(t,n){this.dep=new Br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qe(t)||At(t);t=r?t:te(t),gt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function K(e){return xe(e)?e.value:e}const Pa={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ps(e){return Bt(e)?e:new Proxy(e,Pa)}class Fa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){fe!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return ks(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Da(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new Fa(r,i,n)}const Jn={},Yn=new WeakMap;let Rt;function Ua(e,t=!1,n=Rt){if(n){let r=Yn.get(n);r||Yn.set(n,r=[]),r.push(e)}}function Ha(e,t,n=ue){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,u=A=>i?A:Qe(A)||i===!1||i===0?at(A,1):at(A);let c,h,p,m,w=!1,x=!1;if(xe(e)?(h=()=>e.value,w=Qe(e)):Bt(e)?(h=()=>u(e),w=!0):N(e)?(x=!0,w=e.some(A=>Bt(A)||Qe(A)),h=()=>e.map(A=>{if(xe(A))return A.value;if(Bt(A))return u(A);if(ee(A))return a?a(A,2):A()})):ee(e)?t?h=a?()=>a(e,2):e:h=()=>{if(p){St();try{p()}finally{Et()}}const A=Rt;Rt=c;try{return a?a(e,3,[m]):e(m)}finally{Rt=A}}:h=_t,t&&i){const A=h,z=i===!0?1/0:i;h=()=>at(A(),z)}const C=ms(),v=()=>{c.stop(),C&&ls(C.effects,c)};if(s)if(t){const A=t;t=(...z)=>{A(...z),v()}}else{const A=h;h=()=>{A(),v()}}let $=x?new Array(e.length).fill(Jn):Jn;const H=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const z=c.run();if(i||w||(x?z.some((W,U)=>gt(W,$[U])):gt(z,$))){p&&p();const W=Rt;Rt=c;try{const U=[z,$===Jn?void 0:x&&$[0]===Jn?[]:$,m];a?a(t,3,U):t(...U),$=z}finally{Rt=W}}}else c.run()};return o&&o(H),c=new vs(h),c.scheduler=l?()=>l(H,!1):H,m=A=>Ua(A,!1,c),p=c.onStop=()=>{const A=Yn.get(c);if(A){if(a)a(A,4);else for(const z of A)z();Yn.delete(c)}},t?r?H(!0):$=c.run():l?l(H.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function at(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))at(e.value,t,n);else if(N(e))for(let r=0;r<e.length;r++)at(e[r],t,n);else if(Nt(e)||Ht(e))e.forEach(r=>{at(r,t,n)});else if(us(e)){for(const r in e)at(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&at(e[r],t,n)}return e}/**
|
|
19
|
+
* @vue/runtime-core v3.5.3
|
|
19
20
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
21
|
* @license MIT
|
|
21
|
-
**/function ut(e,t,i,n){try{return n?e(...n):e()}catch(r){Dn(r,t,i)}}function qe(e,t,i,n){if(ee(e)){const r=ut(e,t,i,n);return r&&Jr(r)&&r.catch(o=>{Dn(o,t,i)}),r}if(F(e)){const r=[];for(let o=0;o<e.length;o++)r.push(qe(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){_t(),ut(a,null,10,[e,s,l]),kt();return}}Sa(e,i,r,n)}function Sa(e,t,i,n=!0){console.error(e)}let tn=!1,Wi=!1;const xe=[];let Ke=0;const Pt=[];let ft=null,Ct=0;const Lo=Promise.resolve();let qi=null;function Ut(e){const t=qi||Lo;return e?t.then(this?e.bind(this):e):t}function Ia(e){let t=Ke+1,i=xe.length;for(;t<i;){const n=t+i>>>1,r=xe[n],o=nn(r);o<e||o===e&&r.pre?t=n+1:i=n}return t}function Ki(e){(!xe.length||!xe.includes(e,tn&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?xe.push(e):xe.splice(Ia(e.id),0,e),Ao())}function Ao(){!tn&&!Wi&&(Wi=!0,qi=Lo.then(Oo))}function Ra(e){const t=xe.indexOf(e);t>Ke&&xe.splice(t,1)}function Ta(e){F(e)?Pt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?Ct+1:Ct))&&Pt.push(e),Ao()}function Mo(e,t,i=tn?Ke+1:0){for(;i<xe.length;i++){const n=xe[i];if(n&&n.pre){if(e&&n.id!==e.uid)continue;xe.splice(i,1),i--,n()}}}function $o(e){if(Pt.length){const t=[...new Set(Pt)].sort((i,n)=>nn(i)-nn(n));if(Pt.length=0,ft){ft.push(...t);return}for(ft=t,Ct=0;Ct<ft.length;Ct++)ft[Ct]();ft=null,Ct=0}}const nn=e=>e.id==null?1/0:e.id,La=(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 Oo(e){Wi=!1,tn=!0,xe.sort(La);try{for(Ke=0;Ke<xe.length;Ke++){const t=xe[Ke];t&&t.active!==!1&&ut(t,null,14)}}finally{Ke=0,xe.length=0,$o(),tn=!1,qi=null,(xe.length||Pt.length)&&Oo()}}function Aa(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||le;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:g}=n[f]||le;g&&(r=i.map(p=>ye(p)?p.trim():p)),h&&(r=i.map($n))}let l,a=n[l=Li(t)]||n[l=Li(We(t))];!a&&o&&(a=n[l=Li(zt(t))]),a&&qe(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,qe(c,e,6,r)}}function Ma(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?(fe(e)&&n.set(e,null),null):(F(o)?o.forEach(a=>s[a]=null):ke(s,o),fe(e)&&n.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,zt(t))||Z(e,t))}let Ce=null,jo=null;function Bn(e){const t=Ce;return Ce=e,jo=e&&e.type.__scopeId||null,t}function $a(e,t=Ce,i){if(!t||e._n)return e;const n=(...r)=>{n._d&&rs(-1);const o=Bn(t);let s;try{s=e(...r)}finally{Bn(o),n._d&&rs(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:g,setupState:p,ctx:R,inheritAttrs:x}=e,T=Bn(e);let $,P;try{if(i.shapeFlag&4){const N=r||n,te=N;$=Ge(c.call(te,N,f,h,p,g,R)),P=l}else{const N=t;$=Ge(N.length>1?N(h,{attrs:l,slots:s,emit:a}):N(h,null)),P=t.props?l:Oa(l)}}catch(N){cn.length=0,Dn(N,e,1),$=ne(Rt)}let A=$;if(P&&x!==!1){const N=Object.keys(P),{shapeFlag:te}=A;N.length&&te&7&&(o&&N.some(Ri)&&(P=ja(P,o)),A=Ft(A,P,!1,!0))}return i.dirs&&(A=Ft(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 Oa=e=>{let t;for(const i in e)(i==="class"||i==="style"||Tn(i))&&((t||(t={}))[i]=e[i]);return t},ja=(e,t)=>{const i={};for(const n in e)(!Ri(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function za(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?zo(n,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const g=f[h];if(s[g]!==n[g]&&!Vn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===s?!1:n?s?zo(n,s,c):!0:!!s;return!1}function zo(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 Pa({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 Ua="components";function Fa(e,t){return Ha(Ua,e,!0,t)||e}const Na=Symbol.for("v-ndc");function Ha(e,t,i=!0,n=!1){const r=Ce||Se;if(r){const o=r.type;{const l=Ic(o,!1);if(l&&(l===t||l===We(t)||l===An(We(t))))return o}const s=Po(r[e]||o[e],t)||Po(r.appContext[e],t);return!s&&n?o:s}}function Po(e,t){return e&&(e[t]||e[We(t)]||e[An(We(t))])}const Da=e=>e.__isSuspense;function Va(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Ta(e)}const Ba=Symbol.for("v-scx"),Wa=()=>Zn(Ba);function Uo(e,t){return Fo(e,null,t)}const Wn={};function Pe(e,t,i){return Fo(e,t,i)}function Fo(e,t,{immediate:i,deep:n,flush:r,once:o,onTrack:s,onTrigger:l}=le){if(t&&o){const H=t;t=(...D)=>{H(...D),te()}}const a=Se,c=H=>n===!0?H:Et(H,n===!1?1:void 0);let f,h=!1,g=!1;if(Le(e)?(f=()=>e.value,h=Nn(e)):Yt(e)?(f=()=>c(e),h=!0):F(e)?(g=!0,h=e.some(H=>Yt(H)||Nn(H)),f=()=>e.map(H=>{if(Le(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=()=>(p&&p(),qe(e,a,3,[R])):f=Ye,t&&n){const H=f;f=()=>Et(H())}let p,R=H=>{p=A.onStop=()=>{ut(H,a,4),p=A.onStop=void 0}},x;if(Xn)if(R=Ye,t?i&&qe(t,a,3,[f(),g?[]:void 0,R]):f(),r==="sync"){const H=Wa();x=H.__watcherHandles||(H.__watcherHandles=[])}else return Ye;let T=g?new Array(e.length).fill(Wn):Wn;const $=()=>{if(!(!A.active||!A.dirty))if(t){const H=A.run();(n||h||(g?H.some((D,B)=>lt(D,T[B])):lt(H,T)))&&(p&&p(),qe(t,a,3,[H,T===Wn?void 0:g&&T[0]===Wn?[]:T,R]),T=H)}else A.run()};$.allowRecurse=!!t;let P;r==="sync"?P=$:r==="post"?P=()=>Ae($,a&&a.suspense):($.pre=!0,a&&($.id=a.uid),P=()=>Ki($));const A=new Oi(f,Ye,P),N=ro(),te=()=>{A.stop(),N&&Zr(N.effects,A)};return t?i?$():T=A.run():r==="post"?Ae(A.run.bind(A),a&&a.suspense):A.run(),x&&x.push(te),te}function Et(e,t=1/0,i){if(t<=0||!fe(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Le(e))Et(e.value,t,i);else if(F(e))for(let n=0;n<e.length;n++)Et(e[n],t,i);else if(jt(e)||Ot(e))e.forEach(n=>{Et(n,t,i)});else if(Xr(e))for(const n in e)Et(e[n],t,i);return e}function qn(e,t){if(Ce===null)return e;const i=ei(Ce)||Ce.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,s,l,a=le]=t[r];o&&(ee(o)&&(o={mounted:o,updated:o}),o.deep&&Et(s),n.push({dir:o,instance:i,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function St(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&&(_t(),qe(a,i,8,[e.el,l,e,t]),kt())}}/*! #__NO_SIDE_EFFECTS__ */function rn(e,t){return ee(e)?ke({name:e.name},t,{setup:e}):e}const Kn=e=>!!e.type.__asyncLoader,qa=e=>e.type.__isKeepAlive;function Ka(e,t,i=Se,n=!1){if(i){const r=i[e]||(i[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(i.isUnmounted)return;_t();const l=lr(i),a=qe(t,i,e,s);return l(),kt(),a});return n?r.unshift(o):r.push(o),o}}const Zi=e=>(t,i=Se)=>(!Xn||e==="sp")&&Ka(e,(...n)=>t(...n),i),on=Zi("m"),Ga=Zi("bum"),Qi=Zi("um");function Ue(e,t,i,n){let r;const o=i;if(F(e)||ye(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(fe(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?as(e)?ei(e)||e.proxy:Ji(e.parent):null,sn=ke(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=>Ye}),Yi=(e,t)=>e!==le&&!e.__isScriptSetup&&Z(e,t),Za={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 p=s[t];if(p!==void 0)switch(p){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!==le&&Z(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&Z(c,t))return s[t]=3,o[t];if(i!==le&&Z(i,t))return s[t]=4,i[t];s[t]=0}}const f=sn[t];let h,g;if(f)return t==="$attrs"&&Te(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(i!==le&&Z(i,t))return s[t]=4,i[t];if(g=a.config.globalProperties,Z(g,t))return g[t]},set({_:e},t,i){const{data:n,setupState:r,ctx:o}=e;return Yi(r,t)?(r[t]=i,!0):n!==le&&Z(n,t)?(n[t]=i,!0):Z(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!==le&&Z(e,s)||Yi(t,s)||(l=o[0])&&Z(l,s)||Z(n,s)||Z(sn,s)||Z(r.config.globalProperties,s)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Z(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function No(e){return F(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function Qa(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)),fe(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=Ja[s]||i&&i[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ja={data:Ho,props:Vo,emits:Vo,methods:ln,computed:ln,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:ln,directives:ln,watch:Xa,provide:Ho,inject:Ya};function Ho(e,t){return t?e?function(){return ke(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return ln(Do(e),Do(t))}function Do(e){if(F(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function ln(e,t){return e?ke(Object.create(null),e,t):t}function Vo(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:ke(Object.create(null),No(e),No(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;const i=ke(Object.create(null),e);for(const n in t)i[n]=Ee(e[n],t[n]);return i}function Bo(){return{app:null,config:{isNativeTag:Dl,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 ec=0;function tc(e,t){return function(n,r=null){ee(n)||(n=ke({},n)),r!=null&&!fe(r)&&(r=null);const o=Bo(),s=new WeakSet;let l=!1;const a=o.app={_uid:ec++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Tc,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 g=ne(n,r);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(g,c):e(g,c,h),l=!0,a._container=c,c.__vue_app__=a,ei(g.component)||g.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 nc(e,t){if(Se){let i=Se.provides;const n=Se.parent&&Se.parent.provides;n===i&&(i=Se.provides=Object.create(n)),i[e]=t}}function Zn(e,t,i=!1){const n=Se||Ce;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 Wo={},qo=()=>Object.create(Wo),Ko=e=>Object.getPrototypeOf(e)===Wo;function ic(e,t,i,n=!1){const r={},o=qo();e.propsDefaults=Object.create(null),Go(e,t,r,o);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);i?e.props=n?r:ya(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function rc(e,t,i,n){const{props:r,attrs:o,vnode:{patchFlag:s}}=e,l=Y(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 g=f[h];if(Vn(e.emitsOptions,g))continue;const p=t[g];if(a)if(Z(o,g))p!==o[g]&&(o[g]=p,c=!0);else{const R=We(g);r[R]=Xi(a,l,R,p,e,!1)}else p!==o[g]&&(o[g]=p,c=!0)}}}else{Go(e,t,r,o)&&(c=!0);let f;for(const h in l)(!t||!Z(t,h)&&((f=zt(h))===h||!Z(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||!Z(t,h))&&(delete o[h],c=!0)}c&&et(e.attrs,"set","")}function Go(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&&Z(r,f=We(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=Y(i),c=l||le;for(let f=0;f<o.length;f++){const h=o[f];i[h]=Xi(r,a,h,c[h],e,!Z(c,h))}}return s}function Xi(e,t,i,n,r,o){const s=e[i];if(s!=null){const l=Z(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===zt(i))&&(n=!0))}return n}function oc(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 fe(e)&&n.set(e,$t),$t;if(F(o))for(let f=0;f<o.length;f++){const h=We(o[f]);Zo(h)&&(s[h]=le)}else if(o)for(const f in o){const h=We(f);if(Zo(h)){const g=o[f],p=s[h]=F(g)||ee(g)?{type:g}:ke({},g);if(p){const R=Yo(Boolean,p.type),x=Yo(String,p.type);p[0]=R>-1,p[1]=x<0||R<x,(R>-1||Z(p,"default"))&&l.push(h)}}}const c=[s,l];return fe(e)&&n.set(e,c),c}function Zo(e){return e[0]!=="$"&&!Gt(e)}function Qo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Jo(e,t){return Qo(e)===Qo(t)}function Yo(e,t){return F(t)?t.findIndex(i=>Jo(i,e)):ee(t)&&Jo(t,e)?0:-1}const Xo=e=>e[0]==="_"||e==="$stable",er=e=>F(e)?e.map(Ge):[Ge(e)],sc=(e,t,i)=>{if(t._n)return t;const n=$a((...r)=>er(t(...r)),i);return n._c=!1,n},es=(e,t,i)=>{const n=e._ctx;for(const r in e){if(Xo(r))continue;const o=e[r];if(ee(o))t[r]=sc(r,o,n);else if(o!=null){const s=er(o);t[r]=()=>s}}},ts=(e,t)=>{const i=er(t);e.slots.default=()=>i},lc=(e,t)=>{const i=e.slots=qo();if(e.vnode.shapeFlag&32){const n=t._;n?(ke(i,t),eo(i,"_",n,!0)):es(t,i)}else t&&ts(e,t)},ac=(e,t,i)=>{const{vnode:n,slots:r}=e;let o=!0,s=le;if(n.shapeFlag&32){const l=t._;l?i&&l===1?o=!1:(ke(r,t),!i&&l===1&&delete r._):(o=!t.$stable,es(t,r)),s=t}else t&&(ts(e,t),s={default:1});if(o)for(const l in r)!Xo(l)&&s[l]==null&&delete r[l]};function tr(e,t,i,n,r=!1){if(F(e)){e.forEach((g,p)=>tr(g,t&&(F(t)?t[p]: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===le?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(ye(c)?(f[c]=null,Z(h,c)&&(h[c]=null)):Le(c)&&(c.value=null)),ee(a))ut(a,l,12,[s,f]);else{const g=ye(a),p=Le(a);if(g||p){const R=()=>{if(e.f){const x=g?Z(h,a)?h[a]:f[a]:a.value;r?F(x)&&Zr(x,o):F(x)?x.includes(o)||x.push(o):g?(f[a]=[o],Z(h,a)&&(h[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else g?(f[a]=s,Z(h,a)&&(h[a]=s)):p&&(a.value=s,e.k&&(f[e.k]=s))};s?(R.id=-1,Ae(R,i)):R()}}}function cc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Ai().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ae=Va;function uc(e){return fc(e)}function fc(e,t){cc();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:g,setScopeId:p=Ye,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=At(u),Me(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 Rt:$(u,d,m,w);break;case ir:u==null&&P(d,m,w,C);break;case se:pe(u,d,m,w,v,y,C,_,k);break;default:z&1?te(u,d,m,w,v,y,C,_,k):z&6?mt(u,d,m,w,v,y,C,_,k):(z&64||z&128)&&b.process(u,d,m,w,v,y,C,_,k,vt)}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=g(u),n(u,m,w),u=v;n(d,m,w)},N=({el:u,anchor:d})=>{let m;for(;u&&u!==d;)m=g(u),r(u),u=m;r(d)},te=(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):je(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:U}=u;if(k=u.el=s(u.type,y,I&&I.is,I),z&8?f(k,u.children):z&16&&B(u.children,k,null,w,v,nr(u,y),C,_),U&&St(u,null,w,"created"),D(k,u,u.scopeId,C,w),I){for(const oe in I)oe!=="value"&&!Gt(oe)&&o(k,oe,null,I[oe],y,u.children,w,v,Ve);"value"in I&&o(k,"value",null,I.value,y),(b=I.onVnodeBeforeMount)&&Ze(b,w,u)}U&&St(u,null,w,"beforeMount");const K=dc(v,E);K&&E.beforeEnter(k),n(k,d,m),((b=I&&I.onVnodeMounted)||K||U)&&Ae(()=>{b&&Ze(b,w,u),K&&E.enter(k),U&&St(u,null,w,"mounted")},v)},D=(u,d,m,w,v)=>{if(m&&p(u,m),w)for(let y=0;y<w.length;y++)p(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)}}},B=(u,d,m,w,v,y,C,_,k=0)=>{for(let b=k;b<u.length;b++){const I=u[b]=_?dt(u[b]):Ge(u[b]);x(null,I,d,m,w,v,y,C,_)}},je=(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||le,E=d.props||le;let U;if(m&&It(m,!1),(U=E.onVnodeBeforeUpdate)&&Ze(U,m,d,u),I&&St(d,u,m,"beforeUpdate"),m&&It(m,!0),b?W(u.dynamicChildren,b,_,m,w,nr(d,v),y):C||Ie(u,d,_,null,m,w,nr(d,v),y,!1),k>0){if(k&16)ae(_,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 oe=0;oe<K.length;oe++){const ce=K[oe],be=z[ce],Be=E[ce];(Be!==be||ce==="value")&&o(_,ce,be,Be,v,u.children,m,w,Ve)}}k&1&&u.children!==d.children&&f(_,d.children)}else!C&&b==null&&ae(_,d,z,E,m,w,v);((U=E.onVnodeUpdated)||I)&&Ae(()=>{U&&Ze(U,m,d,u),I&&St(d,u,m,"updated")},w)},W=(u,d,m,w,v,y,C)=>{for(let _=0;_<d.length;_++){const k=u[_],b=d[_],I=k.el&&(k.type===se||!fn(k,b)||k.shapeFlag&70)?h(k.el):m;x(k,b,I,null,w,v,y,C,!0)}},ae=(u,d,m,w,v,y,C)=>{if(m!==w){if(m!==le)for(const _ in m)!Gt(_)&&!(_ in w)&&o(u,_,m[_],null,C,d.children,v,y,Ve);for(const _ in w){if(Gt(_))continue;const k=w[_],b=m[_];k!==b&&_!=="value"&&o(u,_,b,k,C,d.children,v,y,Ve)}"value"in w&&o(u,"value",m.value,w.value,C)}},pe=(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:U}=d;U&&(_=_?_.concat(U):U),u==null?(n(b,m,w),n(I,m,w),B(d.children||[],m,I,v,y,C,_,k)):z>0&&z&64&&E&&u.dynamicChildren?(W(u.dynamicChildren,E,m,v,y,C,_),(d.key!=null||v&&d===v.subTree)&&ns(u,d,!0)):Ie(u,d,m,I,v,y,C,_,k)},mt=(u,d,m,w,v,y,C,_,k)=>{d.slotScopeIds=_,u==null?d.shapeFlag&512?v.ctx.activate(d,m,w,C,k):De(d,m,w,v,y,C,k):q(u,d,k)},De=(u,d,m,w,v,y,C)=>{const _=u.component=_c(u,w,v);if(qa(u)&&(_.ctx.renderer=vt),xc(_),_.asyncDep){if(v&&v.registerDep(_,re),!u.el){const k=_.subTree=ne(Rt);$(null,k,d,m)}}else re(_,u,d,m,v,y,C)},q=(u,d,m)=>{const w=d.component=u.component;if(za(u,d,m))if(w.asyncDep&&!w.asyncResolved){me(w,d,m);return}else w.next=d,Ra(w.update),w.effect.dirty=!0,w.update();else d.el=u.el,w.vnode=d},re=(u,d,m,w,v,y,C)=>{const _=()=>{if(u.isMounted){let{next:I,bu:z,u:E,parent:U,vnode:K}=u;{const Wt=is(u);if(Wt){I&&(I.el=K.el,me(u,I,C)),Wt.asyncDep.then(()=>{u.isUnmounted||_()});return}}let oe=I,ce;It(u,!1),I?(I.el=K.el,me(u,I,C)):I=K,z&&Mn(z),(ce=I.props&&I.props.onVnodeBeforeUpdate)&&Ze(ce,U,I,K),It(u,!0);const be=Gi(u),Be=u.subTree;u.subTree=be,x(Be,be,h(Be.el),At(Be),u,v,y),I.el=be.el,oe===null&&Pa(u,be.el),E&&Ae(E,v),(ce=I.props&&I.props.onVnodeUpdated)&&Ae(()=>Ze(ce,U,I,K),v)}else{let I;const{el:z,props:E}=d,{bm:U,m:K,parent:oe}=u,ce=Kn(d);if(It(u,!1),U&&Mn(U),!ce&&(I=E&&E.onVnodeBeforeMount)&&Ze(I,oe,d),It(u,!0),z&&j){const be=()=>{u.subTree=Gi(u),j(z,u.subTree,u,v,null)};ce?d.type.__asyncLoader().then(()=>!u.isUnmounted&&be()):be()}else{const be=u.subTree=Gi(u);x(null,be,m,w,u,v,y),d.el=be.el}if(K&&Ae(K,v),!ce&&(I=E&&E.onVnodeMounted)){const be=d;Ae(()=>Ze(I,oe,be),v)}(d.shapeFlag&256||oe&&Kn(oe.vnode)&&oe.vnode.shapeFlag&256)&&u.a&&Ae(u.a,v),u.isMounted=!0,d=m=w=null}},k=u.effect=new Oi(_,Ye,()=>Ki(b),u.scope),b=u.update=()=>{k.dirty&&k.run()};b.id=u.uid,It(u,!0),b()},me=(u,d,m)=>{d.component=u;const w=u.vnode.props;u.vnode=d,u.next=null,rc(u,d.props,w,m),ac(u,d.children,m),_t(),Mo(u),kt()},Ie=(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:U}=d;if(E>0){if(E&128){Re(b,z,m,w,v,y,C,_,k);return}else if(E&256){ve(b,z,m,w,v,y,C,_,k);return}}U&8?(I&16&&Ve(b,v,y),z!==b&&f(m,z)):I&16?U&16?Re(b,z,m,w,v,y,C,_,k):Ve(b,v,y,!0):(I&8&&f(m,""),U&16&&B(z,m,w,v,y,C,_,k))},ve=(u,d,m,w,v,y,C,_,k)=>{u=u||$t,d=d||$t;const b=u.length,I=d.length,z=Math.min(b,I);let E;for(E=0;E<z;E++){const U=d[E]=k?dt(d[E]):Ge(d[E]);x(u[E],U,m,null,v,y,C,_,k)}b>I?Ve(u,v,y,!0,!1,z):B(d,m,w,v,y,C,_,k,z)},Re=(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 U=u[b],K=d[b]=k?dt(d[b]):Ge(d[b]);if(fn(U,K))x(U,K,m,null,v,y,C,_,k);else break;b++}for(;b<=z&&b<=E;){const U=u[z],K=d[E]=k?dt(d[E]):Ge(d[E]);if(fn(U,K))x(U,K,m,null,v,y,C,_,k);else break;z--,E--}if(b>z){if(b<=E){const U=E+1,K=U<I?d[U].el:w;for(;b<=E;)x(null,d[b]=k?dt(d[b]):Ge(d[b]),m,K,v,y,C,_,k),b++}}else if(b>E)for(;b<=z;)Me(u[b],v,y,!0),b++;else{const U=b,K=b,oe=new Map;for(b=K;b<=E;b++){const ze=d[b]=k?dt(d[b]):Ge(d[b]);ze.key!=null&&oe.set(ze.key,b)}let ce,be=0;const Be=E-K+1;let Wt=!1,ml=0;const En=new Array(Be);for(b=0;b<Be;b++)En[b]=0;for(b=U;b<=z;b++){const ze=u[b];if(be>=Be){Me(ze,v,y,!0);continue}let Qe;if(ze.key!=null)Qe=oe.get(ze.key);else for(ce=K;ce<=E;ce++)if(En[ce-K]===0&&fn(ze,d[ce])){Qe=ce;break}Qe===void 0?Me(ze,v,y,!0):(En[Qe-K]=b+1,Qe>=ml?ml=Qe:Wt=!0,x(ze,d[Qe],m,null,v,y,C,_,k),be++)}const vl=Wt?hc(En):$t;for(ce=vl.length-1,b=Be-1;b>=0;b--){const ze=K+b,Qe=d[ze],wl=ze+1<I?d[ze+1].el:w;En[b]===0?x(null,Qe,m,wl,v,y,C,_,k):Wt&&(ce<0||b!==vl[ce]?we(Qe,m,wl,2):ce--)}}},we=(u,d,m,w,v=null)=>{const{el:y,type:C,transition:_,children:k,shapeFlag:b}=u;if(b&6){we(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,vt);return}if(C===se){n(y,d,m);for(let z=0;z<k.length;z++)we(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),Ae(()=>_.enter(y),v);else{const{leave:z,delayLeave:E,afterLeave:U}=_,K=()=>n(y,d,m),oe=()=>{z(y,()=>{K(),U&&U()})};E?E(y,K,oe):oe()}else n(y,d,m)},Me=(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 U=I&1&&E,K=!Kn(u);let oe;if(K&&(oe=C&&C.onVnodeBeforeUnmount)&&Ze(oe,d,u),I&6)kr(u.component,m,w);else{if(I&128){u.suspense.unmount(m,w);return}U&&St(u,null,d,"beforeUnmount"),I&64?u.type.remove(u,d,m,v,vt,w):b&&(y!==se||z>0&&z&64)?Ve(b,d,m,!1,!0):(y===se&&z&384||!v&&I&16)&&Ve(k,d,m),w&&Vt(u)}(K&&(oe=C&&C.onVnodeUnmounted)||U)&&Ae(()=>{oe&&Ze(oe,d,u),U&&St(u,null,d,"unmounted")},m)},Vt=u=>{const{type:d,el:m,anchor:w,transition:v}=u;if(d===se){Cn(m,w);return}if(d===ir){N(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()},Cn=(u,d)=>{let m;for(;u!==d;)m=g(u),r(u),u=m;r(d)},kr=(u,d,m)=>{const{bum:w,scope:v,update:y,subTree:C,um:_}=u;w&&Mn(w),v.stop(),y&&(y.active=!1,Me(C,u,d,m)),_&&Ae(_,d),Ae(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ve=(u,d,m,w=!1,v=!1,y=0)=>{for(let C=y;C<u.length;C++)Me(u[C],d,m,w,v)},At=u=>u.shapeFlag&6?At(u.component.subTree):u.shapeFlag&128?u.suspense.next():g(u.anchor||u.el);let Bt=!1;const yi=(u,d,m)=>{u==null?d._vnode&&Me(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,m),Bt||(Bt=!0,Mo(),$o(),Bt=!1),d._vnode=u},vt={p:x,um:Me,m:we,r:Vt,mt:De,mc:B,pc:Ie,pbc:W,n:At,o:e};let O,j;return{render:yi,hydrate:O,createApp:tc(yi,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 It({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function dc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ns(e,t,i=!1){const n=e.children,r=t.children;if(F(n)&&F(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||ns(s,l)),l.type===Qn&&(l.el=s.el)}}function hc(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 is(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:is(t)}const gc=e=>e.__isTeleport,se=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),cn=[];let He=null;function S(e=!1){cn.push(He=e?null:[])}function pc(){cn.pop(),He=cn[cn.length-1]||null}let un=1;function rs(e){un+=e}function os(e){return e.dynamicChildren=un>0?He||$t:null,pc(),un>0&&He&&He.push(e),e}function L(e,t,i,n,r,o){return os(M(e,t,i,n,r,o,!0))}function tt(e,t,i,n,r){return os(ne(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 ss=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Le(e)||ee(e)?{i:Ce,r:e,k:t,f:!!i}:e:null);function M(e,t=null,i=null,n=0,r=null,o=e===se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ss(t),ref:t&&Jn(t),scopeId:jo,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:Ce};return l?(or(a,i),o&128&&e.normalize(a)):i&&(a.shapeFlag|=ye(i)?8:16),un>0&&!s&&He&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&He.push(a),a}const ne=mc;function mc(e,t=null,i=null,n=0,r=null,o=!1){if((!e||e===Na)&&(e=Rt),rr(e)){const l=Ft(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(Rc(e)&&(e=e.__vccOpts),t){t=vc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=ge(l)),fe(a)&&(Co(a)&&!F(a)&&(a=ke({},a)),t.style=Zt(a))}const s=ye(e)?1:Da(e)?128:gc(e)?64:fe(e)?4:ee(e)?2:0;return M(e,t,i,n,r,s,o,!0)}function vc(e){return e?Co(e)||Ko(e)?ke({},e):e:null}function Ft(e,t,i=!1,n=!1){const{props:r,ref:o,patchFlag:s,children:l,transition:a}=e,c=t?wc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ss(c),ref:t&&t.ref?i&&o?F(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!==se?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&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&(f.transition=a.clone(f)),f}function nt(e=" ",t=0){return ne(Qn,null,e,t)}function Q(e="",t=!1){return t?(S(),tt(Rt,null,e)):ne(Rt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?ne(Rt):F(e)?ne(se,null,e.slice()):typeof e=="object"?dt(e):ne(Qn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function or(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(F(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&&!Ko(t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ce},i=32):(t=String(t),n&64?(i=16,t=[nt(t)]):i=8);e.children=t,e.shapeFlag|=i}function wc(...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=ge([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&&!(F(o)&&o.includes(s))&&(t[r]=o?[].concat(o,s):s)}else r!==""&&(t[r]=n[r])}return t}function Ze(e,t,i,n=null){qe(e,t,7,[i,n])}const bc=Bo();let yc=0;function _c(e,t,i){const n=e.type,r=(t?t.appContext:e.appContext)||bc,o={uid:yc++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xl(!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:oc(n,r),emitsOptions:Ma(n,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:n.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,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=Aa.bind(null,o),e.ce&&e.ce(o),o}let Se=null;const kc=()=>Se||Ce;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=>Se=i),sr=t("__VUE_SSR_SETTERS__",i=>Xn=i)}const lr=e=>{const t=Se;return Yn(e),e.scope.on(),()=>{e.scope.off(),Yn(t)}},ls=()=>{Se&&Se.scope.off(),Yn(null)};function as(e){return e.vnode.shapeFlag&4}let Xn=!1;function xc(e,t=!1){t&&sr(t);const{props:i,children:n}=e.vnode,r=as(e);ic(e,i,r,t),lc(e,n);const o=r?Cc(e,t):void 0;return t&&sr(!1),o}function Cc(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Za);const{setup:n}=i;if(n){const r=e.setupContext=n.length>1?Sc(e):null,o=lr(e);_t();const s=ut(n,e,0,[e.props,r]);if(kt(),o(),Jr(s)){if(s.then(ls,ls),t)return s.then(l=>{cs(e,l,t)}).catch(l=>{Dn(l,e,0)});e.asyncDep=s}else cs(e,s,t)}else fs(e,t)}function cs(e,t,i){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=To(t)),fs(e,i)}let us;function fs(e,t,i){const n=e.type;if(!e.render){if(!t&&us&&!n.render){const r=n.template||Qa(e).template;if(r){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=n,c=ke(ke({isCustomElement:o,delimiters:l},s),a);n.render=us(r,c)}}e.render=n.render||Ye}}const Ec={get(e,t){return Te(e,"get",""),e[t]}};function Sc(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,Ec),slots:e.slots,emit:e.emit,expose:t}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(_a(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 Ic(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Rc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>ka(e,t,Xn);function X(e,t,i){const n=arguments.length;return n===2?fe(t)&&!F(t)?rr(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&rr(i)&&(i=[i]),ne(e,t,i))}const Tc="3.4.27";/**
|
|
22
|
-
* @vue/runtime-dom v3.
|
|
22
|
+
**/function hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Xn(i,t,n)}}function ct(e,t,n,r){if(ee(e)){const i=hn(e,t,n,r);return i&&as(i)&&i.catch(s=>{Xn(s,t,n)}),i}if(N(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ct(e[s],t,n,r));return i}}function Xn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;if(t){let o=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,a,u)===!1)return}o=o.parent}if(s){St(),hn(s,null,10,[e,a,u]),Et();return}}Na(e,n,i,r,l)}function Na(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let dn=!1,ei=!1;const Re=[];let nt=0;const Wt=[];let vt=null,qt=0;const Fs=Promise.resolve();let ti=null;function Kt(e){const t=ti||Fs;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=dn?nt+1:0,n=Re.length;for(;t<n;){const r=t+n>>>1,i=Re[r],s=pn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function ni(e){if(!(e.flags&1)){const t=pn(e),n=Re[Re.length-1];!n||!(e.flags&2)&&t>=pn(n)?Re.push(e):Re.splice(Va(t),0,e),e.flags|=1,Ds()}}function Ds(){!dn&&!ei&&(ei=!0,ti=Fs.then(Ns))}function Ba(e){N(e)?Wt.push(...e):vt&&e.id===-1?vt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ds()}function Us(e,t,n=dn?nt+1:0){for(;n<Re.length;n++){const r=Re[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Re.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Hs(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>pn(n)-pn(r));if(Wt.length=0,vt){vt.push(...t);return}for(vt=t,qt=0;qt<vt.length;qt++){const n=vt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,qt=0}}const pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ns(e){ei=!1,dn=!0;try{for(nt=0;nt<Re.length;nt++){const t=Re[nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hn(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;nt<Re.length;nt++){const t=Re[nt];t&&(t.flags&=-2)}nt=0,Re.length=0,Hs(),dn=!1,ti=null,(Re.length||Wt.length)&&Ns()}}let ze=null,Vs=null;function er(e){const t=ze;return ze=e,Vs=e&&e.type.__scopeId||null,t}function Wa(e,t=ze,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&hl(-1);const s=er(t);let l;try{l=e(...i)}finally{er(s),r._d&&hl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tr(e,t){if(ze===null)return e;const n=cr(ze),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ue]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&at(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function It(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(St(),ct(a,n,8,[e.el,o,e,t]),Et())}}const qa=Symbol("_vte"),Ka=e=>e.__isTeleport;function ri(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ri(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?Te({name:e.name},t,{setup:e}):e}function Ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ii(e,t,n,r,i=!1){if(N(e)){e.forEach((w,x)=>ii(w,t&&(N(t)?t[x]:t),n,r,i));return}if(mn(r)&&!i)return;const s=r.shapeFlag&4?cr(r.component):r.el,l=i?null:s,{i:o,r:a}=e,u=t&&t.r,c=o.refs===ue?o.refs={}:o.refs,h=o.setupState,p=te(h),m=h===ue?()=>!1:w=>ie(p,w);if(u!=null&&u!==a&&(ye(u)?(c[u]=null,m(u)&&(h[u]=null)):xe(u)&&(u.value=null)),ee(a))hn(a,o,12,[l,c]);else{const w=ye(a),x=xe(a);if(w||x){const C=()=>{if(e.f){const v=w?m(a)?h[a]:c[a]:a.value;i?N(v)&&ls(v,s):N(v)?v.includes(s)||v.push(s):w?(c[a]=[s],m(a)&&(h[a]=c[a])):(a.value=[s],e.k&&(c[e.k]=a.value))}else w?(c[a]=l,m(a)&&(h[a]=l)):x&&(a.value=l,e.k&&(c[e.k]=l))};l?(C.id=-1,Fe(C,n)):C()}}}const mn=e=>!!e.type.__asyncLoader,Za=e=>e.type.__isKeepAlive;function Qa(e,t,n=Le,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=vi(n),a=ct(t,n,e,l);return o(),Et(),a});return r?i.unshift(s):i.push(s),s}}const si=e=>(t,n=Le)=>{(!ar||e==="sp")&&Qa(e,(...r)=>t(...r),n)},vn=si("m"),Ja=si("bum"),li=si("um"),Ya="components";function Xa(e,t){return tc(Ya,e,!0,t)||e}const ec=Symbol.for("v-ndc");function tc(e,t,n=!0,r=!1){const i=ze||Le;if(i){const s=i.type;{const o=Vc(s,!1);if(o&&(o===t||o===Ge(t)||o===Hn(Ge(t))))return s}const l=Bs(i[e]||s[e],t)||Bs(i.appContext[e],t);return!l&&r?s:l}}function Bs(e,t){return e&&(e[t]||e[Ge(t)]||e[Hn(Ge(t))])}function We(e,t,n,r){let i;const s=n,l=N(e);if(l||ye(e)){const o=l&&Bt(e);o&&(e=Bn(e)),i=new Array(e.length);for(let a=0,u=e.length;a<u;a++)i[a]=t(o?Se(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a<u;a++){const c=o[a];i[a]=t(e[c],c,a,s)}}else i=[];return i}const oi=e=>e?ml(e)?cr(e):oi(e.parent):null,bn=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{ni(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),ai=(e,t)=>e!==ue&&!e.__isScriptSetup&&ie(e,t),nc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ai(r,t))return l[t]=1,r[t];if(i!==ue&&ie(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&ie(u,t))return l[t]=3,s[t];if(n!==ue&&ie(n,t))return l[t]=4,n[t];l[t]=0}}const c=bn[t];let h,p;if(c)return t==="$attrs"&&Ce(e.attrs,"get",""),c(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ue&&ie(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,ie(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ai(i,t)?(i[t]=n,!0):r!==ue&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&ie(e,l)||ai(t,l)||(o=s[0])&&ie(o,l)||ie(r,l)||ie(bn,l)||ie(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ws(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(u=>nr(a,u,l,!0)),nr(a,t,l)),ge(t)&&s.set(t,a),a}function nr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&nr(e,s,n,!0),i&&i.forEach(l=>nr(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const o=ic[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ic={data:qs,props:Gs,emits:Gs,methods:yn,computed:yn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:yn,directives:yn,watch:lc,provide:qs,inject:sc};function qs(e,t){return t?e?function(){return Te(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function sc(e,t){return yn(Ks(e),Ks(t))}function Ks(e){if(N(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function yn(e,t){return e?Te(Object.create(null),e,t):t}function Gs(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:Te(Object.create(null),Ws(e),Ws(t??{})):t}function lc(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const r in t)n[r]=Ie(e[r],t[r]);return n}function Zs(){return{app:null,config:{isNativeTag:ea,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let oc=0;function ac(e,t){return function(r,i=null){ee(r)||(r=Te({},r)),i!=null&&!ge(i)&&(i=null);const s=Zs(),l=new WeakSet,o=[];let a=!1;const u=s.app={_uid:oc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Wc,get config(){return s.config},set config(c){},use(c,...h){return l.has(c)||(c&&ee(c.install)?(l.add(c),c.install(u,...h)):ee(c)&&(l.add(c),c(u,...h))),u},mixin(c){return u},component(c,h){return h?(s.components[c]=h,u):s.components[c]},directive(c,h){return h?(s.directives[c]=h,u):s.directives[c]},mount(c,h,p){if(!a){const m=u._ceVNode||oe(r,i);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),h&&t?t(m,c):e(m,c,p),a=!0,u._container=c,c.__vue_app__=u,cr(m.component)}},onUnmount(c){o.push(c)},unmount(){a&&(ct(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,h){return s.provides[c]=h,u},runWithContext(c){const h=Gt;Gt=u;try{return c()}finally{Gt=h}}};return u}}let Gt=null;function cc(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function rr(e,t,n=!1){const r=Le||ze;if(r||Gt){const i=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Qs={},Js=()=>Object.create(Qs),Ys=e=>Object.getPrototypeOf(e)===Qs;function uc(e,t,n,r=!1){const i={},s=Js();e.propsDefaults=Object.create(null),Xs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:Ma(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function fc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let u=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(ir(e.emitsOptions,p))continue;const m=t[p];if(a)if(ie(s,p))m!==s[p]&&(s[p]=m,u=!0);else{const w=Ge(p);i[w]=ci(a,o,w,m,e,!1)}else m!==s[p]&&(s[p]=m,u=!0)}}}else{Xs(e,t,i,s)&&(u=!0);let c;for(const h in o)(!t||!ie(t,h)&&((c=$t(h))===h||!ie(t,c)))&&(a?n&&(n[h]!==void 0||n[c]!==void 0)&&(i[h]=ci(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!ie(t,h))&&(delete s[h],u=!0)}u&<(e.attrs,"set","")}function Xs(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const u=t[a];let c;i&&ie(i,c=Ge(a))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:ir(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,l=!0)}if(s){const a=te(n),u=o||ue;for(let c=0;c<s.length;c++){const h=s[c];n[h]=ci(i,a,h,u[h],e,!ie(u,h))}}return l}function ci(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=ie(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=vi(i);r=u[n]=a.call(null,t),c()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===$t(n))&&(r=!0))}return r}function hc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return ge(e)&&r.set(e,Ut),Ut;if(N(s))for(let c=0;c<s.length;c++){const h=Ge(s[c]);el(h)&&(l[h]=ue)}else if(s)for(const c in s){const h=Ge(c);if(el(h)){const p=s[c],m=l[h]=N(p)||ee(p)?{type:p}:Te({},p),w=m.type;let x=!1,C=!0;if(N(w))for(let v=0;v<w.length;++v){const $=w[v],H=ee($)&&$.name;if(H==="Boolean"){x=!0;break}else H==="String"&&(C=!1)}else x=ee(w)&&w.name==="Boolean";m[0]=x,m[1]=C,(x||ie(m,"default"))&&o.push(h)}}const u=[l,o];return ge(e)&&r.set(e,u),u}function el(e){return e[0]!=="$"&&!rn(e)}const tl=e=>e[0]==="_"||e==="$stable",ui=e=>N(e)?e.map(rt):[rt(e)],dc=(e,t,n)=>{if(t._n)return t;const r=Wa((...i)=>ui(t(...i)),n);return r._c=!1,r},nl=(e,t,n)=>{const r=e._ctx;for(const i in e){if(tl(i))continue;const s=e[i];if(ee(s))t[i]=dc(i,s,r);else if(s!=null){const l=ui(s);t[i]=()=>l}}},rl=(e,t)=>{const n=ui(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},pc=(e,t,n)=>{const r=e.slots=Js();if(e.vnode.shapeFlag&32){const i=t._;i?(il(r,t,n),n&&fs(r,"_",i,!0)):nl(t,r)}else t&&rl(e,t)},gc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:il(i,t,n):(s=!t.$stable,nl(t,i)),l=t}else t&&(rl(e,t),l={default:1});if(s)for(const o in i)!tl(o)&&l[o]==null&&delete i[o]};function mc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(zr().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=Rc;function vc(e){return bc(e)}function bc(e,t){mc();const n=zr();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=_t,insertStaticContent:w}=e,x=(f,d,g,y=null,b=null,k=null,R=void 0,E=null,S=!!d.dynamicChildren)=>{if(f===d)return;f&&!xn(f,d)&&(y=Ft(f),He(f,b,k,!0),f=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:_,ref:M,shapeFlag:I}=d;switch(_){case sr:C(f,d,g,y);break;case Mt:v(f,d,g,y);break;case di:f==null&&$(d,g,y,R);break;case he:be(f,d,g,y,b,k,R,E,S);break;default:I&1?z(f,d,g,y,b,k,R,E,S):I&6?P(f,d,g,y,b,k,R,E,S):(I&64||I&128)&&_.process(f,d,g,y,b,k,R,E,S,T)}M!=null&&b&&ii(M,f&&f.ref,k,d||f,!d)},C=(f,d,g,y)=>{if(f==null)r(d.el=o(d.children),g,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},v=(f,d,g,y)=>{f==null?r(d.el=a(d.children||""),g,y):d.el=f.el},$=(f,d,g,y)=>{[f.el,f.anchor]=w(f.children,d,g,y,f.el,f.anchor)},H=({el:f,anchor:d},g,y)=>{let b;for(;f&&f!==d;)b=p(f),r(f,g,y),f=b;r(d,g,y)},A=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),i(f),f=g;i(d)},z=(f,d,g,y,b,k,R,E,S)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),f==null?W(d,g,y,b,k,R,E,S):Pe(f,d,b,k,R,E,S)},W=(f,d,g,y,b,k,R,E)=>{let S,_;const{props:M,shapeFlag:I,transition:F,dirs:B}=f;if(S=f.el=l(f.type,k,M&&M.is,M),I&8?c(S,f.children):I&16&&X(f.children,S,null,y,b,fi(f,k),R,E),B&&It(f,null,y,"created"),U(S,f,f.scopeId,R,y),M){for(const de in M)de!=="value"&&!rn(de)&&s(S,de,null,M[de],k,y);"value"in M&&s(S,"value",null,M.value,k),(_=M.onVnodeBeforeMount)&&it(_,y,f)}B&&It(f,null,y,"beforeMount");const Z=yc(b,F);Z&&F.beforeEnter(S),r(S,d,g),((_=M&&M.onVnodeMounted)||Z||B)&&Fe(()=>{_&&it(_,y,f),Z&&F.enter(S),B&&It(f,null,y,"mounted")},b)},U=(f,d,g,y,b)=>{if(g&&m(f,g),y)for(let k=0;k<y.length;k++)m(f,y[k]);if(b){let k=b.subTree;if(d===k||fl(k.type)&&(k.ssContent===d||k.ssFallback===d)){const R=b.vnode;U(f,R,R.scopeId,R.slotScopeIds,b.parent)}}},X=(f,d,g,y,b,k,R,E,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=E?bt(f[_]):rt(f[_]);x(null,M,d,g,y,b,k,R,E)}},Pe=(f,d,g,y,b,k,R)=>{const E=d.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=d;S|=f.patchFlag&16;const I=f.props||ue,F=d.props||ue;let B;if(g&&Lt(g,!1),(B=F.onVnodeBeforeUpdate)&&it(B,g,d,f),M&&It(d,f,g,"beforeUpdate"),g&&Lt(g,!0),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&c(E,""),_?G(f.dynamicChildren,_,E,g,y,fi(d,b),k):R||ke(f,d,E,null,g,y,fi(d,b),k,!1),S>0){if(S&16)se(E,I,F,g,b);else if(S&2&&I.class!==F.class&&s(E,"class",null,F.class,b),S&4&&s(E,"style",I.style,F.style,b),S&8){const Z=d.dynamicProps;for(let de=0;de<Z.length;de++){const le=Z[de],Ne=I[le],Ee=F[le];(Ee!==Ne||le==="value")&&s(E,le,Ne,Ee,b,g)}}S&1&&f.children!==d.children&&c(E,d.children)}else!R&&_==null&&se(E,I,F,g,b);((B=F.onVnodeUpdated)||M)&&Fe(()=>{B&&it(B,g,d,f),M&&It(d,f,g,"updated")},y)},G=(f,d,g,y,b,k,R)=>{for(let E=0;E<d.length;E++){const S=f[E],_=d[E],M=S.el&&(S.type===he||!xn(S,_)||S.shapeFlag&70)?h(S.el):g;x(S,_,M,null,y,b,k,R,!0)}},se=(f,d,g,y,b)=>{if(d!==g){if(d!==ue)for(const k in d)!rn(k)&&!(k in g)&&s(f,k,d[k],null,b,y);for(const k in g){if(rn(k))continue;const R=g[k],E=d[k];R!==E&&k!=="value"&&s(f,k,E,R,b,y)}"value"in g&&s(f,"value",d.value,g.value,b)}},be=(f,d,g,y,b,k,R,E,S)=>{const _=d.el=f?f.el:o(""),M=d.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:B}=d;B&&(E=E?E.concat(B):B),f==null?(r(_,g,y),r(M,g,y),X(d.children||[],g,M,b,k,R,E,S)):I>0&&I&64&&F&&f.dynamicChildren?(G(f.dynamicChildren,F,g,b,k,R,E),(d.key!=null||b&&d===b.subTree)&&sl(f,d,!0)):ke(f,d,g,M,b,k,R,E,S)},P=(f,d,g,y,b,k,R,E,S)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?b.ctx.activate(d,g,y,R,S):J(d,g,y,b,k,R,S):ce(f,d,S)},J=(f,d,g,y,b,k,R)=>{const E=f.component=Pc(f,y,b);if(Za(f)&&(E.ctx.renderer=T),Dc(E,!1,R),E.asyncDep){if(b&&b.registerDep(E,$e,R),!f.el){const S=E.subTree=oe(Mt);v(null,S,d,g)}}else $e(E,f,d,g,b,k,R)},ce=(f,d,g)=>{const y=d.component=f.component;if(Tc(f,d,g))if(y.asyncDep&&!y.asyncResolved){we(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},$e=(f,d,g,y,b,k,R)=>{const E=()=>{if(f.isMounted){let{next:I,bu:F,u:B,parent:Z,vnode:de}=f;{const Ve=ll(f);if(Ve){I&&(I.el=de.el,we(f,I,R)),Ve.asyncDep.then(()=>{f.isUnmounted||E()});return}}let le=I,Ne;Lt(f,!1),I?(I.el=de.el,we(f,I,R)):I=de,F&&Nn(F),(Ne=I.props&&I.props.onVnodeBeforeUpdate)&&it(Ne,Z,I,de),Lt(f,!0);const Ee=hi(f),Xe=f.subTree;f.subTree=Ee,x(Xe,Ee,h(Xe.el),Ft(Xe),f,b,k),I.el=Ee.el,le===null&&Ac(f,Ee.el),B&&Fe(B,b),(Ne=I.props&&I.props.onVnodeUpdated)&&Fe(()=>it(Ne,Z,I,de),b)}else{let I;const{el:F,props:B}=d,{bm:Z,m:de,parent:le,root:Ne,type:Ee}=f,Xe=mn(d);if(Lt(f,!1),Z&&Nn(Z),!Xe&&(I=B&&B.onVnodeBeforeMount)&&it(I,le,d),Lt(f,!0),F&&pe){const Ve=()=>{f.subTree=hi(f),pe(F,f.subTree,f,b,null)};Xe&&Ee.__asyncHydrate?Ee.__asyncHydrate(F,f,Ve):Ve()}else{Ne.ce&&Ne.ce._injectChildStyle(Ee);const Ve=f.subTree=hi(f);x(null,Ve,g,y,f,b,k),d.el=Ve.el}if(de&&Fe(de,b),!Xe&&(I=B&&B.onVnodeMounted)){const Ve=d;Fe(()=>it(I,le,Ve),b)}(d.shapeFlag&256||le&&mn(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Fe(f.a,b),f.isMounted=!0,d=g=y=null}};f.scope.on();const S=f.effect=new vs(E);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>ni(M),Lt(f,!0),_()},we=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,fc(f,d.props,y,g),gc(f,d.children,g),St(),Us(f),Et()},ke=(f,d,g,y,b,k,R,E,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,I=d.children,{patchFlag:F,shapeFlag:B}=d;if(F>0){if(F&128){kt(_,I,g,y,b,k,R,E,S);return}else if(F&256){Me(_,I,g,y,b,k,R,E,S);return}}B&8?(M&16&&Pt(_,b,k),I!==_&&c(g,I)):M&16?B&16?kt(_,I,g,y,b,k,R,E,S):Pt(_,b,k,!0):(M&8&&c(g,""),B&16&&X(I,g,y,b,k,R,E,S))},Me=(f,d,g,y,b,k,R,E,S)=>{f=f||Ut,d=d||Ut;const _=f.length,M=d.length,I=Math.min(_,M);let F;for(F=0;F<I;F++){const B=d[F]=S?bt(d[F]):rt(d[F]);x(f[F],B,g,null,b,k,R,E,S)}_>M?Pt(f,b,k,!0,!1,I):X(d,g,y,b,k,R,E,S,I)},kt=(f,d,g,y,b,k,R,E,S)=>{let _=0;const M=d.length;let I=f.length-1,F=M-1;for(;_<=I&&_<=F;){const B=f[_],Z=d[_]=S?bt(d[_]):rt(d[_]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;_++}for(;_<=I&&_<=F;){const B=f[I],Z=d[F]=S?bt(d[F]):rt(d[F]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;I--,F--}if(_>I){if(_<=F){const B=F+1,Z=B<M?d[B].el:y;for(;_<=F;)x(null,d[_]=S?bt(d[_]):rt(d[_]),g,Z,b,k,R,E,S),_++}}else if(_>F)for(;_<=I;)He(f[_],b,k,!0),_++;else{const B=_,Z=_,de=new Map;for(_=Z;_<=F;_++){const Be=d[_]=S?bt(d[_]):rt(d[_]);Be.key!=null&&de.set(Be.key,_)}let le,Ne=0;const Ee=F-Z+1;let Xe=!1,Ve=0;const jn=new Array(Ee);for(_=0;_<Ee;_++)jn[_]=0;for(_=B;_<=I;_++){const Be=f[_];if(Ne>=Ee){He(Be,b,k,!0);continue}let st;if(Be.key!=null)st=de.get(Be.key);else for(le=Z;le<=F;le++)if(jn[le-Z]===0&&xn(Be,d[le])){st=le;break}st===void 0?He(Be,b,k,!0):(jn[st-Z]=_+1,st>=Ve?Ve=st:Xe=!0,x(Be,d[st],g,null,b,k,R,E,S),Ne++)}const Ao=Xe?wc(jn):Ut;for(le=Ao.length-1,_=Ee-1;_>=0;_--){const Be=Z+_,st=d[Be],Ro=Be+1<M?d[Be+1].el:y;jn[_]===0?x(null,st,g,Ro,b,k,R,E,S):Xe&&(le<0||_!==Ao[le]?zt(st,g,Ro,2):le--)}}},zt=(f,d,g,y,b=null)=>{const{el:k,type:R,transition:E,children:S,shapeFlag:_}=f;if(_&6){zt(f.component.subTree,d,g,y);return}if(_&128){f.suspense.move(d,g,y);return}if(_&64){R.move(f,d,g,T);return}if(R===he){r(k,d,g);for(let I=0;I<S.length;I++)zt(S[I],d,g,y);r(f.anchor,d,g);return}if(R===di){H(f,d,g);return}if(y!==2&&_&1&&E)if(y===0)E.beforeEnter(k),r(k,d,g),Fe(()=>E.enter(k),b);else{const{leave:I,delayLeave:F,afterLeave:B}=E,Z=()=>r(k,d,g),de=()=>{I(k,()=>{Z(),B&&B()})};F?F(k,Z,de):de()}else r(k,d,g)},He=(f,d,g,y=!1,b=!1)=>{const{type:k,props:R,ref:E,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:I,dirs:F,cacheIndex:B}=f;if(I===-2&&(b=!1),E!=null&&ii(E,null,g,f,!0),B!=null&&(d.renderCache[B]=void 0),M&256){d.ctx.deactivate(f);return}const Z=M&1&&F,de=!mn(f);let le;if(de&&(le=R&&R.onVnodeBeforeUnmount)&&it(le,d,f),M&6)Sr(f.component,g,y);else{if(M&128){f.suspense.unmount(g,y);return}Z&&It(f,null,d,"beforeUnmount"),M&64?f.type.remove(f,d,g,T,y):_&&!_.hasOnce&&(k!==he||I>0&&I&64)?Pt(_,d,g,!1,!0):(k===he&&I&384||!b&&M&16)&&Pt(S,d,g),y&&Cr(f)}(de&&(le=R&&R.onVnodeUnmounted)||Z)&&Fe(()=>{le&&it(le,d,f),Z&&It(f,null,d,"unmounted")},g)},Cr=f=>{const{type:d,el:g,anchor:y,transition:b}=f;if(d===he){Oi(g,y);return}if(d===di){A(f);return}const k=()=>{i(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:E}=b,S=()=>R(g,k);E?E(f.el,k,S):S()}else k()},Oi=(f,d)=>{let g;for(;f!==d;)g=p(f),i(f),f=g;i(d)},Sr=(f,d,g)=>{const{bum:y,scope:b,job:k,subTree:R,um:E,m:S,a:_}=f;ol(S),ol(_),y&&Nn(y),b.stop(),k&&(k.flags|=8,He(R,f,d,g)),E&&Fe(E,d),Fe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Pt=(f,d,g,y=!1,b=!1,k=0)=>{for(let R=k;R<f.length;R++)He(f[R],d,g,y,b)},Ft=f=>{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[qa];return g?p(g):d};let en=!1;const O=(f,d,g)=>{f==null?d._vnode&&He(d._vnode,null,null,!0):x(d._vnode||null,f,d,null,null,null,g),d._vnode=f,en||(en=!0,Us(),Hs(),en=!1)},T={p:x,um:He,m:zt,r:Cr,mt:J,mc:X,pc:ke,pbc:G,n:Ft,o:e};let V,pe;return{render:O,hydrate:V,createApp:ac(O,V)}}function fi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const r=e.children,i=t.children;if(N(r)&&N(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=bt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&sl(l,o)),o.type===sr&&(o.el=l.el)}}function wc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<u?s=o+1:l=o;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function ll(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ll(t)}function ol(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const kc=Symbol.for("v-scx"),xc=()=>rr(kc);function al(e,t){return cl(e,null,t)}function qe(e,t,n){return cl(e,t,n)}function cl(e,t,n=ue){const{immediate:r,deep:i,flush:s,once:l}=n,o=Te({},n);let a;if(ar)if(s==="sync"){const p=xc();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||r)o.once=!0;else return{stop:_t,resume:_t,pause:_t};const u=Le;o.call=(p,m,w)=>ct(p,u,m,w);let c=!1;s==="post"?o.scheduler=p=>{Fe(p,u&&u.suspense)}:s!=="sync"&&(c=!0,o.scheduler=(p,m)=>{m?p():ni(p)}),o.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=Ha(e,t,o);return a&&a.push(h),h}const _c=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function $c(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const s=t.startsWith("update:"),l=s&&_c(r,t.slice(7));l&&(l.trim&&(i=n.map(c=>ye(c)?c.trim():c)),l.number&&(i=n.map(Vn)));let o,a=r[o=jr(t)]||r[o=jr(Ge(t))];!a&&s&&(a=r[o=jr($t(t))]),a&&ct(a,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ct(u,e,6,i)}}function Cc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(N(s)?s.forEach(a=>l[a]=null):Te(l,s),ge(e)&&r.set(e,l),l)}function ir(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,$t(t))||ie(e,t))}function hi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:u,renderCache:c,props:h,data:p,setupState:m,ctx:w,inheritAttrs:x}=e,C=er(e);let v,$;try{if(n.shapeFlag&4){const A=i||r,z=A;v=rt(u.call(z,A,c,h,m,p,w)),$=o}else{const A=t;v=rt(A.length>1?A(h,{attrs:o,slots:l,emit:a}):A(h,null)),$=t.props?o:Sc(o)}}catch(A){wn.length=0,Xn(A,e,1),v=oe(Mt)}let H=v;if($&&x!==!1){const A=Object.keys($),{shapeFlag:z}=H;A.length&&z&7&&(s&&A.some(Mr)&&($=Ec($,s)),H=Zt(H,$,!1,!0))}return n.dirs&&(H=Zt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&ri(H,n.transition),v=H,er(C),v}const Sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dn(n))&&((t||(t={}))[n]=e[n]);return t},Ec=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Tc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ul(r,l,u):!!l;if(a&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(l[p]!==r[p]&&!ir(u,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?ul(r,l,u):!0:!!l;return!1}function ul(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ir(n,s))return!0}return!1}function Ac({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const fl=e=>e.__isSuspense;function Rc(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Ba(e)}const he=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),di=Symbol.for("v-stc"),wn=[];let De=null;function L(e=!1){wn.push(De=e?null:[])}function Ic(){wn.pop(),De=wn[wn.length-1]||null}let kn=1;function hl(e){kn+=e,e<0&&De&&(De.hasOnce=!0)}function dl(e){return e.dynamicChildren=kn>0?De||Ut:null,Ic(),kn>0&&De&&De.push(e),e}function j(e,t,n,r,i,s){return dl(D(e,t,n,r,i,s,!0))}function ut(e,t,n,r,i){return dl(oe(e,t,n,r,i,!0))}function pi(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const pl=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||ee(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pl(t),ref:t&&lr(t),scopeId:Vs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return o?(gi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),kn>0&&!l&&De&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&De.push(a),a}const oe=Lc;function Lc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===ec)&&(e=Mt),pi(e)){const o=Zt(e,t,!0);return n&&gi(o,n),kn>0&&!s&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag=-2,o}if(Bc(e)&&(e=e.__vccOpts),t){t=Mc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),ge(a)&&(Yr(a)&&!N(a)&&(a=Te({},a)),t.style=sn(a))}const l=ye(e)?1:fl(e)?128:Ka(e)?64:ge(e)?4:ee(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function Mc(e){return e?Yr(e)||Ys(e)?Te({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,u=t?Oc(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&pl(u),ref:t&&t.ref?n&&s?N(s)?s.concat(lr(t)):[s,lr(t)]:lr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ri(c,a.clone(c)),c}function ft(e=" ",t=0){return oe(sr,null,e,t)}function Q(e="",t=!1){return t?(L(),ut(Mt,null,e)):oe(Mt,null,e)}function rt(e){return e==null||typeof e=="boolean"?oe(Mt):N(e)?oe(he,null,e.slice()):typeof e=="object"?bt(e):oe(sr,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),gi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ys(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=sn([t.style,r.style]);else if(Dn(i)){const s=t[i],l=r[i];l&&s!==l&&!(N(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function it(e,t,n,r=null){ct(e,t,7,[n,r])}const jc=Zs();let zc=0;function Pc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||jc,s={uid:zc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hc(r,i),emitsOptions:Cc(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=$c.bind(null,s),e.ce&&e.ce(s),s}let Le=null;const Fc=()=>Le||ze;let or,mi;{const e=zr(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};or=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),mi=t("__VUE_SSR_SETTERS__",n=>ar=n)}const vi=e=>{const t=Le;return or(e),e.scope.on(),()=>{e.scope.off(),or(t)}},gl=()=>{Le&&Le.scope.off(),or(null)};function ml(e){return e.vnode.shapeFlag&4}let ar=!1;function Dc(e,t=!1,n=!1){t&&mi(t);const{props:r,children:i}=e.vnode,s=ml(e);uc(e,r,s,t),pc(e,i,n);const l=s?Uc(e,t):void 0;return t&&mi(!1),l}function Uc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nc);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Nc(e):null,s=vi(e);St();const l=hn(r,e,0,[e.props,i]);if(Et(),s(),as(l)){if(mn(e)||Ga(e),l.then(gl,gl),t)return l.then(o=>{vl(e,o,t)}).catch(o=>{Xn(o,e,0)});e.asyncDep=l}else vl(e,l,t)}else yl(e,t)}function vl(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ps(t)),yl(e,n)}let bl;function yl(e,t,n){const r=e.type;if(!e.render){if(!t&&bl&&!r.render){const i=r.template||rc(e).template;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,u=Te(Te({isCustomElement:s,delimiters:o},l),a);r.render=bl(i,u)}}e.render=r.render||_t}}const Hc={get(e,t){return Ce(e,"get",""),e[t]}};function Nc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hc),slots:e.slots,emit:e.emit,expose:t}}function cr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ps(Oa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function Vc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Bc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>Da(e,t,ar);function ne(e,t,n){const r=arguments.length;return r===2?ge(t)&&!N(t)?pi(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pi(n)&&(n=[n]),oe(e,t,n))}const Wc="3.5.3";/**
|
|
23
|
+
* @vue/runtime-dom v3.5.3
|
|
23
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
25
|
* @license MIT
|
|
25
|
-
**/const Lc="http://www.w3.org/2000/svg",Ac="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,ds=ht&&ht.createElement("template"),Mc={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(Lc,e):t==="mathml"?ht.createElementNS(Ac,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{ds.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const l=ds.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]}},$c=Symbol("_vtc");function Oc(e,t,i){const n=e[$c];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),hs=Symbol("_vsh"),gs={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[hs]=!t}const jc=Symbol(""),zc=/(^|;)\s*display\s*:/;function Pc(e,t,i){const n=e.style,r=ye(i);let o=!1;if(i&&!r){if(t)if(ye(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[jc];s&&(i+=";"+s),n.cssText=i,o=zc.test(i)}}else t&&e.removeAttribute("style");ti in e&&(e[ti]=o?n.display:"",e[hs]&&(n.display="none"))}const ps=/\s*!important$/;function ni(e,t,i){if(F(i))i.forEach(n=>ni(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=Uc(e,t);ps.test(i)?e.setProperty(zt(n),i.replace(ps,""),"important"):e[n]=i}}const ms=["Webkit","Moz","ms"],ar={};function Uc(e,t){const i=ar[t];if(i)return i;let n=We(t);if(n!=="filter"&&n in e)return ar[t]=n;n=An(n);for(let r=0;r<ms.length;r++){const o=ms[r]+n;if(o in e)return ar[t]=o}return t}const vs="http://www.w3.org/1999/xlink";function Fc(e,t,i,n,r){if(n&&t.startsWith("xlink:"))i==null?e.removeAttributeNS(vs,t.slice(6,t.length)):e.setAttributeNS(vs,t,i);else{const o=Jl(t);i==null||o&&!no(i)?e.removeAttribute(t):e.setAttribute(t,o?"":i)}}function Nc(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=no(i):i==null&&c==="string"?(i="",a=!0):c==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(t)}function it(e,t,i,n){e.addEventListener(t,i,n)}function Hc(e,t,i,n){e.removeEventListener(t,i,n)}const ws=Symbol("_vei");function Dc(e,t,i,n,r=null){const o=e[ws]||(e[ws]={}),s=o[t];if(n&&s)s.value=n;else{const[l,a]=Vc(t);if(n){const c=o[t]=qc(n,r);it(e,l,c,a)}else s&&(Hc(e,l,s,a),o[t]=void 0)}}const bs=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(bs.test(e)){t={};let n;for(;n=e.match(bs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):zt(e.slice(2)),t]}let cr=0;const Bc=Promise.resolve(),Wc=()=>cr||(Bc.then(()=>cr=0),cr=Date.now());function qc(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;qe(Kc(n,i.value),t,5,[n])};return i.value=e,i.attached=Wc(),i}function Kc(e,t){if(F(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 ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,i,n,r,o,s,l,a)=>{const c=r==="svg";t==="class"?Oc(e,n,c):t==="style"?Pc(e,i,n):Tn(t)?Ri(t)||Dc(e,t,i,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,n,c))?Nc(e,t,n,o,s,l,a):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Fc(e,t,n,c))};function Zc(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ys(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 ys(t)&&ye(i)?!1:t in e}const gt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?i=>Mn(t,i):t};function Qc(e){e.target.composing=!0}function _s(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign"),ur={created(e,{modifiers:{lazy:t,trim:i,number:n}},r){e[Fe]=gt(r);const o=n||r.props&&r.props.type==="number";it(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;i&&(l=l.trim()),o&&(l=$n(l)),e[Fe](l)}),i&&it(e,"change",()=>{e.value=e.value.trim()}),t||(it(e,"compositionstart",Qc),it(e,"compositionend",_s),it(e,"change",_s))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:i,trim:n,number:r}},o){if(e[Fe]=gt(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))}},Jc={deep:!0,created(e,t,i){e[Fe]=gt(i),it(e,"change",()=>{const n=e._modelValue,r=Nt(e),o=e.checked,s=e[Fe];if(F(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(jt(n)){const l=new Set(n);o?l.add(r):l.delete(r),s(l)}else s(Cs(e,o))})},mounted:ks,beforeUpdate(e,t,i){e[Fe]=gt(i),ks(e,t,i)}};function ks(e,{value:t,oldValue:i},n){e._modelValue=t,F(t)?e.checked=Mi(t,n.props.value)>-1:jt(t)?e.checked=t.has(n.props.value):t!==i&&(e.checked=bt(t,Cs(e,!0)))}const Yc={created(e,{value:t},i){e.checked=bt(t,i.props.value),e[Fe]=gt(i),it(e,"change",()=>{e[Fe](Nt(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Fe]=gt(n),t!==i&&(e.checked=bt(t,n.props.value))}},Xc={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const r=jt(t);it(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>i?$n(Nt(s)):Nt(s));e[Fe](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Ut(()=>{e._assigning=!1})}),e[Fe]=gt(n)},mounted(e,{value:t,modifiers:{number:i}}){xs(e,t)},beforeUpdate(e,t,i){e[Fe]=gt(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||xs(e,t)}};function xs(e,t,i){const n=e.multiple,r=F(t);if(!(n&&!r&&!jt(t))){for(let o=0,s=e.options.length;o<s;o++){const l=e.options[o],a=Nt(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(bt(Nt(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nt(e){return"_value"in e?e._value:e.value}function Cs(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const eu={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 tu(e,t){switch(e){case"SELECT":return Xc;case"TEXTAREA":return ur;default:switch(t){case"checkbox":return Jc;case"radio":return Yc;default:return ur}}}function ii(e,t,i,n,r){const s=tu(e.tagName,i.props&&i.props.type)[r];s&&s(e,t,i,n)}const nu=ke({patchProp:Gc},Mc);let Es;function iu(){return Es||(Es=uc(nu))}const ru=(...e)=>{const t=iu().createApp(...e),{mount:i}=t;return t.mount=n=>{const r=su(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,ou(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function ou(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function su(e){return ye(e)?document.querySelector(e):e}function hn(e){return ro()?(ta(e),!0):!1}function rt(e){return typeof e=="function"?e():Ro(e)}const ri=typeof window<"u"&&typeof document<"u",lu=Object.prototype.toString,au=e=>lu.call(e)==="[object Object]",oi=()=>{};function Ss(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 Is=e=>e();function cu(e,t={}){let i,n,r=oi;const o=l=>{clearTimeout(l),r(),r=oi};return l=>{const a=rt(e),c=rt(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 uu(e=Is){const t=V(!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 Rs(e){return kc()}function fu(e,t=200,i={}){return Ss(cu(t,i),e)}function du(e,t,i={}){const{eventFilter:n=Is,...r}=i;return Pe(e,Ss(n,t),r)}function hu(e,t,i={}){const{eventFilter:n,...r}=i,{eventFilter:o,pause:s,resume:l,isActive:a}=uu(n);return{stop:du(e,t,{...r,eventFilter:o}),pause:s,resume:l,isActive:a}}function fr(e,t=!0,i){Rs()?on(e,i):t?e():Ut(e)}function gu(e,t){Rs()&&Qi(e,t)}function pu(e,t=1e3,i={}){const{immediate:n=!0,immediateCallback:r=!1}=i;let o=null;const s=V(!1);function l(){o&&(clearInterval(o),o=null)}function a(){s.value=!1,l()}function c(){const f=rt(t);f<=0||(s.value=!0,r&&e(),l(),o=setInterval(e,f))}if(n&&ri&&c(),Le(t)||typeof t=="function"){const f=Pe(t,()=>{s.value&&ri&&c()});hn(f)}return hn(a),{isActive:s,pause:a,resume:c}}function mu(e){var t;const i=rt(e);return(t=i==null?void 0:i.$el)!=null?t:i}const si=ri?window:void 0,Ts=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,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),a=Pe(()=>[mu(t),rt(r)],([f,h])=>{if(s(),!f)return;const g=au(h)?{...h}:h;o.push(...i.flatMap(p=>n.map(R=>l(f,p,R,g))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return hn(c),c}function vu(e,t={}){const{immediate:i=!0,fpsLimit:n=void 0,window:r=si}=t,o=V(!1),s=n?1e3/n:null;let l=0,a=null;function c(g){if(!o.value||!r)return;l||(l=g);const p=g-l;if(s&&p<s){a=r.requestAnimationFrame(c);return}l=g,e({delta:p,timestamp:g}),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__",wu=bu();function bu(){return ci in ai||(ai[ci]=ai[ci]||{}),ai[ci]}function yu(e,t){return wu[e]||t}function _u(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 ku={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()}},Ls="vueuse-storage";function Ht(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:g,onError:p=W=>{console.error(W)},initOnMounted:R}=n,x=(f?xa:V)(typeof t=="function"?t():t);if(!i)try{i=yu("getDefaultStorage",()=>{var W;return(W=si)==null?void 0:W.localStorage})()}catch(W){p(W)}if(!i)return x;const T=rt(t),$=_u(T),P=(r=n.serializer)!=null?r:ku[$],{pause:A,resume:N}=hu(x,()=>H(x.value),{flush:o,deep:s,eventFilter:g});h&&l&&fr(()=>{li(h,"storage",B),li(h,Ls,je),R&&B()}),R||B();function te(W,ae){h&&h.dispatchEvent(new CustomEvent(Ls,{detail:{key:e,oldValue:W,newValue:ae,storageArea:i}}))}function H(W){try{const ae=i.getItem(e);if(W==null)te(ae,null),i.removeItem(e);else{const pe=P.write(W);ae!==pe&&(i.setItem(e,pe),te(ae,pe))}}catch(ae){p(ae)}}function D(W){const ae=W?W.newValue:i.getItem(e);if(ae==null)return a&&T!=null&&i.setItem(e,P.write(T)),T;if(!W&&c){const pe=P.read(ae);return typeof c=="function"?c(pe,T):$==="object"&&!Array.isArray(pe)?{...T,...pe}:pe}else return typeof ae!="string"?ae:P.read(ae)}function B(W){if(!(W&&W.storageArea!==i)){if(W&&W.key==null){x.value=T;return}if(!(W&&W.key!==e)){A();try{(W==null?void 0:W.newValue)!==P.write(x.value)&&(x.value=D(W))}catch(ae){p(ae)}finally{W?Ut(N):N()}}}}function je(W){B(W.detail)}return x}function xu(e={}){const{controls:t=!1,interval:i="requestAnimationFrame"}=e,n=V(new Date),r=()=>n.value=new Date,o=i==="requestAnimationFrame"?vu(r,{immediate:!0}):pu(r,i,{immediate:!0});return t?{now:n,...o}:n}function Cu(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=Ts,attrs:g={}}=i,p=V(null);let R=null;const x=P=>new Promise((A,N)=>{const te=B=>(p.value=B,A(B),B);if(!h){A(!1);return}let H=!1,D=h.querySelector(`script[src="${rt(e)}"]`);D?D.hasAttribute("data-loaded")&&te(D):(D=h.createElement("script"),D.type=o,D.async=s,D.src=rt(e),f&&(D.defer=f),l&&(D.crossOrigin=l),c&&(D.noModule=c),a&&(D.referrerPolicy=a),Object.entries(g).forEach(([B,je])=>D==null?void 0:D.setAttribute(B,je)),H=!0),D.addEventListener("error",B=>N(B)),D.addEventListener("abort",B=>N(B)),D.addEventListener("load",()=>{D.setAttribute("data-loaded","true"),t(D),te(D)}),H&&(D=h.head.appendChild(D)),P||te(D)}),T=(P=!0)=>(R||(R=x(P)),R),$=()=>{if(!h)return;R=null,p.value&&(p.value=null);const P=h.querySelector(`script[src="${rt(e)}"]`);P&&h.head.removeChild(P)};return n&&!r&&fr(T),r||gu($),{scriptTag:p,load:T,unload:$}}let Eu=0;function Su(e,t={}){const i=V(!1),{document:n=Ts,immediate:r=!0,manual:o=!1,id:s=`vueuse_styletag_${++Eu}`}=t,l=V(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=Pe(l,g=>{h.textContent=g},{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 Iu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Ru=e=>{const t=Ht("WALINE_EMOJI",{}),i=Iu(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})},As=(e,t="",i="",n="")=>`${t?`${t}/`:""}${i}${e}${n?`.${n}`:""}`,Tu=e=>Promise.all(e.map(t=>Mt(t)?Ru(Kr(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:As(s,o,l,a),items:c.map(f=>{const h=`${l}${f}`;return i.map[h]=As(f,o,l,a),h})})}),i}),Ms=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:Mt(e)?document.querySelector(e):null,Lu=e=>e.type.includes("image"),$s=e=>{const t=Array.from(e).find(Lu);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 Tt=hr();function Os(e){Tt=e}const js=/[&<>"']/,Au=new RegExp(js.source,"g"),zs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mu=new RegExp(zs.source,"g"),$u={"&":"&","<":"<",">":">",'"':""","'":"'"},Ps=e=>$u[e];function Oe(e,t){if(t){if(js.test(e))return e.replace(Au,Ps)}else if(zs.test(e))return e.replace(Mu,Ps);return e}const Ou=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ju(e){return e.replace(Ou,(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 zu=/(^|[^\[])\^/g;function ie(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(zu,"$1"),i=i.replace(r,s),n},getRegex:()=>new RegExp(i,t)};return n}function Us(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gn={exec:()=>null};function Fs(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 Pu(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 Ns(e,t,i,n){const r=t.href,o=t.title?Oe(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:Oe(s)}}function Uu(e,t){const i=e.match(/^(\s+)(?:```)/);if(i===null)return t;const n=i[1];return t.split(`
|
|
26
|
-
`).map(
|
|
27
|
-
`)}class
|
|
28
|
-
`)}}}fences(t){const
|
|
29
|
-
|
|
30
|
-
`)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
`+
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`+
|
|
46
|
-
`+
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
`+t
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
26
|
+
**/let bi;const wl=typeof window<"u"&&window.trustedTypes;if(wl)try{bi=wl.createPolicy("vue",{createHTML:e=>e})}catch{}const kl=bi?e=>bi.createHTML(e):e=>e,qc="http://www.w3.org/2000/svg",Kc="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,xl=ht&&ht.createElement("template"),Gc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ht.createElementNS(qc,e):t==="mathml"?ht.createElementNS(Kc,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{xl.innerHTML=kl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=xl.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Zc=Symbol("_vtc");function Qc(e,t,n){const r=e[Zc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),_l=Symbol("_vsh"),$l={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_n(e,!0),r.enter(e)):r.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e[ur]:"none",e[_l]=!t}const Jc=Symbol(""),Yc=/(^|;)\s*display\s*:/;function Xc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fr(r,o,"")}else for(const l in t)n[l]==null&&fr(r,l,"");for(const l in n)l==="display"&&(s=!0),fr(r,l,n[l])}else if(i){if(t!==n){const l=r[Jc];l&&(n+=";"+l),r.cssText=n,s=Yc.test(n)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=s?r.display:"",e[_l]&&(r.display="none"))}const Cl=/\s*!important$/;function fr(e,t,n){if(N(n))n.forEach(r=>fr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=eu(e,t);Cl.test(n)?e.setProperty($t(r),n.replace(Cl,""),"important"):e[r]=n}}const Sl=["Webkit","Moz","ms"],yi={};function eu(e,t){const n=yi[t];if(n)return n;let r=Ge(t);if(r!=="filter"&&r in e)return yi[t]=r;r=Hn(r);for(let i=0;i<Sl.length;i++){const s=Sl[i]+r;if(s in e)return yi[t]=s}return t}const El="http://www.w3.org/1999/xlink";function Tl(e,t,n,r,i,s=ca(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(El,t.slice(6,t.length)):e.setAttributeNS(El,t,n):n==null||s&&!ds(n)?e.removeAttribute(t):e.setAttribute(t,s?"":tt(n)?String(n):n)}function tu(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?kl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?e.type==="checkbox"?"on":"":String(n);(l!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ds(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function dt(e,t,n,r){e.addEventListener(t,n,r)}function nu(e,t,n,r){e.removeEventListener(t,n,r)}const Al=Symbol("_vei");function ru(e,t,n,r,i=null){const s=e[Al]||(e[Al]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=iu(t);if(r){const u=s[t]=ou(r,i);dt(e,o,u,a)}else l&&(nu(e,o,l,a),s[t]=void 0)}}const Rl=/(?:Once|Passive|Capture)$/;function iu(e){let t;if(Rl.test(e)){t={};let r;for(;r=e.match(Rl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let wi=0;const su=Promise.resolve(),lu=()=>wi||(su.then(()=>wi=0),wi=Date.now());function ou(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(au(r,n.value),t,5,[r])};return n.value=e,n.attached=lu(),n}function au(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Il=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cu=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Qc(e,r,l):t==="style"?Xc(e,n,r):Dn(t)?Mr(t)||ru(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uu(e,t,r,l))?(tu(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Tl(e,t,r,l,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Tl(e,t,r,l))};function uu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Il(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Il(t)&&ye(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ye(n)))}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>Nn(t,n):t};function fu(e){e.target.composing=!0}function Ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign"),ki={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ke]=yt(i);const s=r||i.props&&i.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[Ke](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",fu),dt(e,"compositionend",Ll),dt(e,"change",Ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ke]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},hu={deep:!0,created(e,t,n){e[Ke]=yt(n),dt(e,"change",()=>{const r=e._modelValue,i=Qt(e),s=e.checked,l=e[Ke];if(N(r)){const o=Pr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const u=[...r];u.splice(o,1),l(u)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(jl(e,s))})},mounted:Ml,beforeUpdate(e,t,n){e[Ke]=yt(n),Ml(e,t,n)}};function Ml(e,{value:t,oldValue:n},r){e._modelValue=t;let i;N(t)?i=Pr(t,r.props.value)>-1:Nt(t)?i=t.has(r.props.value):i=Ct(t,jl(e,!0)),e.checked!==i&&(e.checked=i)}const du={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ke]=yt(n),dt(e,"change",()=>{e[Ke](Qt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ke]=yt(r),t!==n&&(e.checked=Ct(t,r.props.value))}},pu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Qt(l)):Qt(l));e[Ke](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ke]=yt(r)},mounted(e,{value:t,modifiers:{number:n}}){Ol(e,t)},beforeUpdate(e,t,n){e[Ke]=yt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ol(e,t)}};function Ol(e,t,n){const r=e.multiple,i=N(t);if(!(r&&!i&&!Nt(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],a=Qt(o);if(r)if(i){const u=typeof a;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Pr(t,a)>-1}else o.selected=t.has(a);else if(Ct(Qt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qt(e){return"_value"in e?e._value:e.value}function jl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gu={created(e,t,n){hr(e,t,n,null,"created")},mounted(e,t,n){hr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hr(e,t,n,r,"updated")}};function mu(e,t){switch(e){case"SELECT":return pu;case"TEXTAREA":return ki;default:switch(t){case"checkbox":return hu;case"radio":return du;default:return ki}}}function hr(e,t,n,r,i){const l=mu(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const vu=Te({patchProp:cu},Gc);let zl;function bu(){return zl||(zl=vc(vu))}const yu=(...e)=>{const t=bu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=ku(r);if(!i)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,wu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ku(e){return ye(e)?document.querySelector(e):e}function $n(e){return ms()?(ha(e),!0):!1}function pt(e){return typeof e=="function"?e():K(e)}const dr=typeof window<"u"&&typeof document<"u",xu=Object.prototype.toString,_u=e=>xu.call(e)==="[object Object]",pr=()=>{};function Pl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Fl=e=>e();function $u(e,t={}){let n,r,i=pr;const s=o=>{clearTimeout(o),i(),i=pr};return o=>{const a=pt(e),u=pt(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((c,h)=>{i=t.rejectOnCancel?h:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(o())},u)),n=setTimeout(()=>{r&&s(r),r=null,c(o())},a)})}}function Cu(e=Fl){const t=q(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:r,eventFilter:i}}function Dl(e){return Fc()}function Su(e,t=200,n={}){return Pl($u(t,n),e)}function Eu(e,t,n={}){const{eventFilter:r=Fl,...i}=n;return qe(e,Pl(r,t),i)}function Tu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=Cu(r);return{stop:Eu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function xi(e,t=!0,n){Dl()?vn(e,n):t?e():Kt(e)}function Au(e,t){Dl()&&li(e,t)}function Ru(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function u(){const c=pt(t);c<=0||(l.value=!0,i&&e(),o(),s=setInterval(e,c))}if(r&&dr&&u(),xe(t)||typeof t=="function"){const c=qe(t,()=>{l.value&&dr&&u()});$n(c)}return $n(a),{isActive:l,pause:a,resume:u}}function Iu(e){var t;const n=pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gr=dr?window:void 0,Ul=dr?window.document:void 0;function mr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=gr):[t,n,r,i]=e,!t)return pr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},o=(c,h,p,m)=>(c.addEventListener(h,p,m),()=>c.removeEventListener(h,p,m)),a=qe(()=>[Iu(t),pt(i)],([c,h])=>{if(l(),!c)return;const p=_u(h)?{...h}:h;s.push(...n.flatMap(m=>r.map(w=>o(c,m,w,p))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return $n(u),u}function Lu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=gr}=t,s=q(!1),l=r?1e3/r:null;let o=0,a=null;function u(p){if(!s.value||!i)return;o||(o=p);const m=p-o;if(l&&m<l){a=i.requestAnimationFrame(u);return}o=p,e({delta:m,timestamp:p}),a=i.requestAnimationFrame(u)}function c(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(u))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&c(),$n(h),{isActive:fn(s),pause:h,resume:c}}const vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},br="__vueuse_ssr_handlers__",Mu=Ou();function Ou(){return br in vr||(vr[br]=vr[br]||{}),vr[br]}function ju(e,t){return Mu[e]||t}function zu(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 Pu={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()}},Hl="vueuse-storage";function Jt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:h=gr,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:w}=r,x=(c?ja:q)(typeof t=="function"?t():t);if(!n)try{n=ju("getDefaultStorage",()=>{var G;return(G=gr)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return x;const C=pt(t),v=zu(C),$=(i=r.serializer)!=null?i:Pu[v],{pause:H,resume:A}=Tu(x,()=>W(x.value),{flush:s,deep:l,eventFilter:p});h&&o&&xi(()=>{n instanceof Storage?mr(h,"storage",X):mr(h,Hl,Pe),w&&X()}),w||X();function z(G,se){if(h){const be={key:e,oldValue:G,newValue:se,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent(Hl,{detail:be}))}}function W(G){try{const se=n.getItem(e);if(G==null)z(se,null),n.removeItem(e);else{const be=$.write(G);se!==be&&(n.setItem(e,be),z(se,be))}}catch(se){m(se)}}function U(G){const se=G?G.newValue:n.getItem(e);if(se==null)return a&&C!=null&&n.setItem(e,$.write(C)),C;if(!G&&u){const be=$.read(se);return typeof u=="function"?u(be,C):v==="object"&&!Array.isArray(be)?{...C,...be}:be}else return typeof se!="string"?se:$.read(se)}function X(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){x.value=C;return}if(!(G&&G.key!==e)){H();try{(G==null?void 0:G.newValue)!==$.write(x.value)&&(x.value=U(G))}catch(se){m(se)}finally{G?Kt(A):A()}}}}function Pe(G){X(G.detail)}return x}function Fu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=q(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?Lu(i,{immediate:!0}):Ru(i,n,{immediate:!0});return t?{now:r,...s}:r}function Du(e,t=pr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:u,defer:c,document:h=Ul,attrs:p={}}=n,m=q(null);let w=null;const x=$=>new Promise((H,A)=>{const z=X=>(m.value=X,H(X),X);if(!h){H(!1);return}let W=!1,U=h.querySelector(`script[src="${pt(e)}"]`);U?U.hasAttribute("data-loaded")&&z(U):(U=h.createElement("script"),U.type=s,U.async=l,U.src=pt(e),c&&(U.defer=c),o&&(U.crossOrigin=o),u&&(U.noModule=u),a&&(U.referrerPolicy=a),Object.entries(p).forEach(([X,Pe])=>U==null?void 0:U.setAttribute(X,Pe)),W=!0),U.addEventListener("error",X=>A(X)),U.addEventListener("abort",X=>A(X)),U.addEventListener("load",()=>{U.setAttribute("data-loaded","true"),t(U),z(U)}),W&&(U=h.head.appendChild(U)),$||z(U)}),C=($=!0)=>(w||(w=x($)),w),v=()=>{if(!h)return;w=null,m.value&&(m.value=null);const $=h.querySelector(`script[src="${pt(e)}"]`);$&&h.head.removeChild($)};return r&&!i&&xi(C),i||Au(v),{scriptTag:m,load:C,unload:v}}let Uu=0;function Hu(e,t={}){const n=q(!1),{document:r=Ul,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Uu}`}=t,o=q(e);let a=()=>{};const u=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=qe(o,p=>{h.textContent=p},{immediate:!0}),n.value=!0)},c=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&xi(u),s||$n(c),{id:l,css:o,unload:c,load:u,isLoaded:fn(n)}}const Nu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Vu=e=>{const t=Jt("WALINE_EMOJI",{}),n=Nu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Nl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bu=e=>Promise.all(e.map(t=>Dt(t)?Vu(is(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:u}=r;n.tabs.push({name:i,icon:Nl(l,s,o,a),items:u.map(c=>{const h=`${o}${c}`;return n.map[h]=Nl(c,s,o,a),h})})}),n}),Vl=e=>{e.name!=="AbortError"&&console.error(e.message)},_i=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,Wu=e=>e.type.includes("image"),Bl=e=>{const t=Array.from(e).find(Wu);return t?t.getAsFile():null};function $i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=$i();function Wl(e){Ot=e}const ql=/[&<>"']/,qu=new RegExp(ql.source,"g"),Kl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ku=new RegExp(Kl.source,"g"),Gu={"&":"&","<":"<",">":">",'"':""","'":"'"},Gl=e=>Gu[e];function Ue(e,t){if(t){if(ql.test(e))return e.replace(qu,Gl)}else if(Kl.test(e))return e.replace(Ku,Gl);return e}const Zu=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Zu,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}function Zl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Cn={exec:()=>null};function Ql(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Sn(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Qu(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Jl(e,t,n,r){const i=t.href,s=t.title?Ue(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:s,text:Ue(l)}}function Ju(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
27
|
+
`).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[l]=s;return l.length>=r.length?i.slice(r.length):i}).join(`
|
|
28
|
+
`)}class yr{options;rules;lexer;constructor(t){this.options=t||Ot}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Sn(r,`
|
|
29
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Ju(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=Sn(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Sn(n[0],`
|
|
30
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Sn(n[0],`
|
|
31
|
+
`).split(`
|
|
32
|
+
`),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let u;for(u=0;u<r.length;u++)if(/^ {0,3}>/.test(r[u]))a.push(r[u]),o=!0;else if(!o)a.push(r[u]);else break;r=r.slice(u);const c=a.join(`
|
|
33
|
+
`),h=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
34
|
+
$1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}
|
|
35
|
+
${c}`:c,s=s?`${s}
|
|
36
|
+
${h}`:h;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=p,r.length===0)break;const m=l[l.length-1];if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const w=m,x=w.raw+`
|
|
37
|
+
`+r.join(`
|
|
38
|
+
`),C=this.blockquote(x);l[l.length-1]=C,i=i.substring(0,i.length-w.raw.length)+C.raw,s=s.substring(0,s.length-w.text.length)+C.text;break}else if((m==null?void 0:m.type)==="list"){const w=m,x=w.raw+`
|
|
39
|
+
`+r.join(`
|
|
40
|
+
`),C=this.list(x);l[l.length-1]=C,i=i.substring(0,i.length-m.raw.length)+C.raw,s=s.substring(0,s.length-w.raw.length)+C.raw,r=x.substring(l[l.length-1].raw.length).split(`
|
|
41
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;t;){let a=!1,u="",c="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let h=n[2].split(`
|
|
42
|
+
`,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),p=t.split(`
|
|
43
|
+
`,1)[0],m=!h.trim(),w=0;if(this.options.pedantic?(w=2,c=h.trimStart()):m?w=n[1].length+1:(w=n[2].search(/[^ ]/),w=w>4?1:w,c=h.slice(w),w+=n[1].length),m&&/^[ \t]*$/.test(p)&&(u+=p+`
|
|
44
|
+
`,t=t.substring(p.length+1),a=!0),!a){const v=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),$=new RegExp(`^ {0,${Math.min(3,w-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,w-1)}}#`);for(;t;){const z=t.split(`
|
|
45
|
+
`,1)[0];let W;if(p=z,this.options.pedantic?(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),W=p):W=p.replace(/\t/g," "),H.test(p)||A.test(p)||v.test(p)||$.test(p))break;if(W.search(/[^ ]/)>=w||!p.trim())c+=`
|
|
46
|
+
`+W.slice(w);else{if(m||h.replace(/\t/g," ").search(/[^ ]/)>=4||H.test(h)||A.test(h)||$.test(h))break;c+=`
|
|
47
|
+
`+p}!m&&!p.trim()&&(m=!0),u+=z+`
|
|
48
|
+
`,t=t.substring(z.length+1),h=W.slice(w)}}s.loose||(o?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(o=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(c),x&&(C=x[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!x,checked:C,loose:!1,text:c,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let a=0;a<s.items.length;a++)if(this.lexer.state.top=!1,s.items[a].tokens=this.lexer.blockTokens(s.items[a].text,[]),!s.loose){const u=s.items[a].tokens.filter(h=>h.type==="space"),c=u.length>0&&u.some(h=>/\n.*\n/.test(h.raw));s.loose=c}if(s.loose)for(let a=0;a<s.items.length;a++)s.items[a].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Ql(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
49
|
+
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const o of i)/^ *-+: *$/.test(o)?l.align.push("right"):/^ *:-+: *$/.test(o)?l.align.push("center"):/^ *:-+ *$/.test(o)?l.align.push("left"):l.align.push(null);for(let o=0;o<r.length;o++)l.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:l.align[o]});for(const o of s)l.rows.push(Ql(o,l.header.length).map((a,u)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
50
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ue(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const l=Sn(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Qu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),Jl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Jl(r,s,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,u=l,c=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){u+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const p=[...i[0]][0].length,m=t.slice(0,l+i.index+p+a);if(Math.min(l,a)%2){const x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}const w=m.slice(2,-2);return{type:"strong",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Ue(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Ue(n[1]),i="mailto:"+r):(r=Ue(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=Ue(n[0]),s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=Ue(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ue(n[0]),{type:"text",raw:n[0],text:r}}}}const Yu=/^(?:[ \t]*(?:\n|$))+/,Xu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ef=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,En=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Yl=/(?:[*+-]|\d{1,9}[.)])/,Xl=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Yl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ci=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nf=/^[^\n]+/,Si=/(?!\s*\])(?:\\.|[^\[\]\\])+/,rf=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sf=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Yl).getRegex(),wr="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",Ei=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lf=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ei).replace("tag",wr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eo=ae(Ci).replace("hr",En).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",wr).getRegex(),Ti={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eo).getRegex(),code:Xu,def:rf,fences:ef,heading:tf,hr:En,html:lf,lheading:Xl,list:sf,newline:Yu,paragraph:eo,table:Cn,text:nf},to=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",En).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wr).getRegex(),of={...Ti,table:to,paragraph:ae(Ci).replace("hr",En).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",to).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",wr).getRegex()},af={...Ti,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ei).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:Cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(Ci).replace("hr",En).replace("heading",` *#{1,6} *[^
|
|
51
|
+
]`).replace("lheading",Xl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},no=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ro=/^( {2,}|\\)\n(?!\s*$)/,uf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Tn="\\p{P}\\p{S}",ff=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Tn).getRegex(),hf=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,df=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Tn).getRegex(),pf=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Tn).getRegex(),gf=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Tn).getRegex(),mf=ae(/\\([punct])/,"gu").replace(/punct/g,Tn).getRegex(),vf=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bf=ae(Ei).replace("(?:-->|$)","-->").getRegex(),yf=ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wf=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",kr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),io=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",kr).replace("ref",Si).getRegex(),so=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Si).getRegex(),kf=ae("reflink|nolink(?!\\()","g").replace("reflink",io).replace("nolink",so).getRegex(),Ai={_backpedal:Cn,anyPunctuation:mf,autolink:vf,blockSkip:hf,br:ro,code:cf,del:Cn,emStrongLDelim:df,emStrongRDelimAst:pf,emStrongRDelimUnd:gf,escape:no,link:wf,nolink:so,punctuation:ff,reflink:io,reflinkSearch:kf,tag:yf,text:uf,url:Cn},xf={...Ai,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",kr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kr).getRegex()},Ri={...Ai,escape:ae(no).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},_f={...Ri,br:ae(ro).replace("{2,}","*").getRegex(),text:ae(Ri.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xr={normal:Ti,gfm:of,pedantic:af},An={normal:Ai,gfm:Ri,breaks:_f,pedantic:xf};class Je{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ot,this.options.tokenizer=this.options.tokenizer||new yr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:xr.normal,inline:An.normal};this.options.pedantic?(n.block=xr.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=xr.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:xr,inline:An}}static lex(t,n){return new Je(n).lex(t)}static lexInline(t,n){return new Je(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
52
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let i,s,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(i=o.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
53
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
|
|
54
|
+
`+i.raw,s.text+=`
|
|
55
|
+
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
|
|
56
|
+
`+i.raw,s.text+=`
|
|
57
|
+
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},a),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(l))){s=n[n.length-1],r&&(s==null?void 0:s.type)==="paragraph"?(s.raw+=`
|
|
58
|
+
`+i.raw,s.text+=`
|
|
59
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i),r=l.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
|
|
60
|
+
`+i.raw,s.text+=`
|
|
61
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,s,l=t,o,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,l,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const h=t.slice(1);let p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},h),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(s)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class _r{options;parser;constructor(t){this.options=t||Ot}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(/^\S*/))==null?void 0:l[0],s=t.replace(/\n$/,"")+`
|
|
62
|
+
`;return i?'<pre><code class="language-'+Ue(i)+'">'+(r?s:Ue(s,!0))+`</code></pre>
|
|
63
|
+
`:"<pre><code>"+(r?s:Ue(s,!0))+`</code></pre>
|
|
64
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
65
|
+
${this.parser.parse(t)}</blockquote>
|
|
66
|
+
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
67
|
+
`}hr(t){return`<hr>
|
|
68
|
+
`}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o<t.items.length;o++){const a=t.items[o];i+=this.listitem(a)}const s=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+s+l+`>
|
|
69
|
+
`+i+"</"+s+`>
|
|
70
|
+
`}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
71
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
72
|
+
`}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<t.rows.length;s++){const l=t.rows[s];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
62
73
|
<thead>
|
|
63
|
-
`+
|
|
74
|
+
`+n+`</thead>
|
|
64
75
|
`+i+`</table>
|
|
65
|
-
`}tablerow(t){return`<tr>
|
|
76
|
+
`}tablerow({text:t}){return`<tr>
|
|
66
77
|
${t}</tr>
|
|
67
|
-
`}tablecell(t
|
|
68
|
-
`}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,
|
|
69
|
-
`+
|
|
70
|
-
Please report this to https://github.com/markedjs/marked.`,t){const
|
|
71
|
-
</code></pre>`}}}}function Qs(e){return(e||"").match(/\S*/)[0]}function Js(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Ys=/[&<>"']/,df=new RegExp(Ys.source,"g"),Xs=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hf=new RegExp(Xs.source,"g"),gf={"&":"&","<":"<",">":">",'"':""","'":"'"},el=e=>gf[e];function tl(e,t){if(t){if(Ys.test(e))return e.replace(df,el)}else if(Xs.test(e))return e.replace(hf,el);return e}const pf=/\$.*?\$/,mf=/^\$(.*?)\$/,vf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,wf=e=>[{name:"blockMath",level:"block",tokenizer(t){const i=vf.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(pf);return i!==-1?i:t.length},tokenizer(t){const i=mf.exec(t);if(i!==null)return{type:"html",raw:i[0],text:e(!1,i[1])}}}],nl=(e="",t={})=>e.replace(/:(.+?):/g,(i,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:i),bf=(e,{emojiMap:t,highlighter:i,texRenderer:n})=>{const r=new Zs;if(r.setOptions({breaks:!0}),i&&r.use(ff({highlight:i})),n){const o=wf(n);r.use({extensions:o})}return r.parse(nl(e,t))},_r=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},yf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),_f=e=>e.match(/[\u4E00-\u9FD5]/gu),kf=e=>{var t,i;return(((t=yf(e))==null?void 0:t.reduce((n,r)=>n+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((i=_f(e))==null?void 0:i.length)??0)},xf=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},il=({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&&Rr({serverURL:Rn(e),paths:Array.from(o).map(s=>qr(_r(s)??t)),lang:n,signal:r.signal}).then(s=>{o.forEach((l,a)=>{l.innerText=s[a].toString()})}).catch(Ms),r.abort.bind(r)},Cf=({size:e})=>X("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[X("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"}),X("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"})]),Ef=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),Sf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),If=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"}),X("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"})]),Rf=({active:e=!1})=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"})]),Tf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[X("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"}),X("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"})]),Lf=()=>X("svg",{width:"16",height:"16",ariaHidden:"true"},X("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"})),Af=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),Mf=()=>X("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},X("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"})),$f=()=>X("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},X("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})=>X("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},X("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},X("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Of=()=>X("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[X("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"}),X("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"})]),jf=()=>Ht("WALINE_USER_META",{nick:"",mail:"",link:""}),zf=()=>Ht("WALINE_COMMENT_BOX_EDITOR",""),Pf="WALINE_LIKE";let rl=null;const ol=()=>rl??(rl=Ht(Pf,[])),Uf="WALINE_REACTION";let sl=null;const Ff=()=>sl??(sl=Ht(Uf,{}));var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ll={},Dt={},bn={},Nf=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())})},Hf=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 Df=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 Nf(this,void 0,void 0,function(){return Hf(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=Df,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getInstance=Dt.load=void 0;var Vf=bn,pt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(pt||(pt={}));var al=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()===pt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===pt.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(pt.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(pt.LOADED);var s=n.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),l=new Vf.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?pt.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(g){e.setLoadingState(pt.NOT_LOADED),h(g)},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}();Dt.load=al.load,Dt.getInstance=al.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Dt;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}})}(ll);const cl={},Bf=e=>{const t=cl[e]??(cl[e]=ll.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:i=>t.then(n=>n.execute(i))}},Wf=e=>({execute:async t=>{const{load:i}=Cu("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 ul=null;const wi=()=>ul??(ul=Ht(qf,{}));var Kf=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const i=Ff(),n=Zn("config"),r=V(-1),o=V([]),s=_e(()=>n.value.locale),l=_e(()=>n.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:R}=n.value;return p.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:p,lang:R,path:x,reaction:T}=n.value,$=new AbortController;c=$.abort.bind($);const P=await ki({serverURL:p,lang:R,paths:[x],type:T.map((A,N)=>`reaction${N}`),signal:$.signal});o.value=T.map((A,N)=>P[0][`reaction${N}`])},h=async p=>{if(r.value===-1){const{serverURL:R,lang:x,path:T}=n.value,$=i.value[T];r.value=p,$!==void 0&&(await Sn({serverURL:R,lang:x,path:T,type:`reaction${$}`,action:"desc"}),o.value[$]=Math.max(o.value[$]-1,0)),$!==p&&(await Sn({serverURL:R,lang:x,path:T,type:`reaction${p}`}),o.value[p]=(o.value[p]||0)+1),$===p?delete i.value[T]:i.value[T]=p,r.value=-1}};on(()=>{Pe(()=>[n.value.serverURL,n.value.path],()=>{f()},{immediate:!0})}),Qi(()=>c==null?void 0:c());const g={reactionStorage:i,config:n,votingIndex:r,voteNumbers:o,locale:s,isReactionEnabled:l,reactionsInfo:a,get abort(){return c},set abort(p){c=p},fetchReaction:f,vote:h,get LoadingIcon(){return mi}};return Object.defineProperty(g,"__isScriptSetup",{enumerable:!1,value:!0}),g}}),yn=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};const Gf={key:0,class:"wl-reaction"},Zf=["textContent"],Qf={class:"wl-reaction-list"},Jf=["onClick"],Yf={class:"wl-reaction-img"},Xf=["src","alt"],ed=["textContent"],td=["textContent"];function nd(e,t,i,n,r,o){return n.reactionsInfo.length?(S(),L("div",Gf,[M("div",{class:"wl-reaction-title",textContent:J(n.locale.reactionTitle)},null,8,Zf),M("ul",Qf,[(S(!0),L(se,null,Ue(n.reactionsInfo,({active:s,icon:l,desc:a},c)=>(S(),L("li",{key:c,class:ge(["wl-reaction-item",{active:s}]),onClick:f=>n.vote(c)},[M("div",Yf,[M("img",{src:l,alt:a},null,8,Xf),n.votingIndex===c?(S(),tt(n.LoadingIcon,{key:0,class:"wl-reaction-loading"})):(S(),L("div",{key:1,class:"wl-reaction-votes",textContent:J(n.voteNumbers[c]||0)},null,8,ed))]),M("div",{class:"wl-reaction-text",textContent:J(a)},null,8,td)],10,Jf))),128))])])):Q("v-if",!0)}var id=yn(Kf,[["render",nd],["__file","ArticleReaction.vue"]]),_n=new Map;function rd(e){var t=_n.get(e);t&&t.destroy()}function od(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(g){return n.style[g]=h[g]}),_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 g,p,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"),$&&(g=function(N){for(var te=[];N&&N.parentNode&&N.parentNode instanceof Element;)N.parentNode.scrollTop&&te.push([N.parentNode,N.parentNode.scrollTop]),N=N.parentNode;return function(){return te.forEach(function(H){var D=H[0],B=H[1];D.style.scrollBehavior="auto",D.scrollTop=B,D.style.scrollBehavior=null})}}(n),n.style.height=""),p=s.boxSizing==="content-box"?n.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):n.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&p>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(n.style.overflow="scroll"),p=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(n.style.overflow="hidden"),n.style.height=p+"px",x&&(n.style.textAlign=x),g&&g(),o!==p&&(n.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=p),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],rd),e},kn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],od),e});var fl=kn,sd=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=V(null),o=V({}),s=V([]),l=()=>{const p=Math.floor((r.value.getBoundingClientRect().width+i.gap)/(i.columnWidth+i.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),c=async p=>{var R;if(p>=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(p),await c(p+1)},f=async(p=!1)=>{if(s.value.length===l()&&!p)return;s.value=a(l());const R=window.scrollY;await c(0),window.scrollTo({top:R})},h=p=>{o.value[p.target.src]=!0};on(()=>{f(!0),n=new ResizeObserver(()=>{f()}),n.observe(r.value),Pe(()=>[i.items],()=>{o.value={},f(!0)}),Pe(()=>[i.columnWidth,i.gap],()=>{f()})}),Ga(()=>n.unobserve(r.value));const g={props:i,get resizeObserver(){return n},set resizeObserver(p){n=p},wall:r,state:o,columns:s,getColumnCount:l,createColumns:a,fillColumns:c,redraw:f,imageLoad:h,get LoadingIcon(){return mi}};return Object.defineProperty(g,"__isScriptSetup",{enumerable:!1,value:!0}),g}});const ld=["data-index"],ad=["src","title","onClick"];function cd(e,t,i,n,r,o){return S(),L("div",{ref:"wall",class:"wl-gallery",style:Zt({gap:`${i.gap}px`})},[(S(!0),L(se,null,Ue(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(se,null,Ue(s,a=>(S(),L(se,{key:a},[n.state[i.items[a].src]?Q("v-if",!0):(S(),tt(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",``)},null,40,ad)],64))),128))],12,ld))),128))],4)}var ud=yn(sd,[["render",cd],["__file","ImageWall.vue"]]),fd=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=zf(),l=jf(),a=wi(),c=V({}),f=V(null),h=V(null),g=V(null),p=V(null),R=V(null),x=V(null),T=V(null),$=V({tabs:[],map:{}}),P=V(0),A=V(!1),N=V(!1),te=V(!1),H=V(""),D=V(0),B=Qt({loading:!0,list:[]}),je=V(0),W=V(!1),ae=V(""),pe=V(!1),mt=V(!1),De=_e(()=>o.value.locale),q=_e(()=>{var O;return!!((O=a.value)!=null&&O.token)}),re=_e(()=>o.value.imageUploader!==!1),me=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},Ie=O=>{const j=O.key;(O.ctrlKey||O.metaKey)&&j==="Enter"&&Vt()},ve=O=>{const j=`![${o.value.locale.uploading} ${O.name}]()`;return me(j),pe.value=!0,Promise.resolve().then(()=>o.value.imageUploader(O)).then(u=>{s.value=s.value.replace(j,`\r
|
|
72
|
-
`)}).catch(u=>{alert(u.message),s.value=s.value.replace(j,"")}).then(()=>{pe.value=!1})},Re=O=>{var j;if((j=O.dataTransfer)!=null&&j.items){const u=$s(O.dataTransfer.items);u&&re.value&&(ve(u),O.preventDefault())}},we=O=>{if(O.clipboardData){const j=$s(O.clipboardData.items);j&&re.value&&ve(j)}},Me=()=>{const O=h.value;O.files&&re.value&&ve(O.files[0]).then(()=>{O.value=""})},Vt=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 xf(),E={comment:ae.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(De.value.nickError);if(k.indexOf("mail")>-1&&!E.mail||E.mail&&!Hl(E.mail))return(u=c.value.mail)==null||u.focus(),alert(De.value.mailError);E.nick||(E.nick=De.value.anonymous)}if(!E.comment){(d=f.value)==null||d.focus();return}if(!W.value)return alert(De.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",D.value.toString()));E.comment=nl(E.comment,$.value.map),n.replyId&&n.rootId&&(E.pid=n.replyId,E.rid=n.rootId,E.at=n.replyUser),pe.value=!0;try{b&&(E.recaptchaV3=await Bf(b).execute("social")),I&&(E.turnstile=await Wf(I).execute("social"));const U={serverURL:v,lang:y,token:(m=a.value)==null?void 0:m.token,comment:E},K=await(n.edit?qt({objectId:n.edit.objectId,...U}):Sr(U));if(pe.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(U){pe.value=!1,alert(U.message)}},Cn=O=>{O.preventDefault();const{lang:j,serverURL:u}=o.value;Tr({serverURL:u,lang:j}).then(d=>{a.value=d,(d.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(d)),r("log")})},kr=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ve=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},"*")},At=O=>{var j,u,d,m;!((j=g.value)!=null&&j.contains(O.target))&&!((u=p.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))&&(N.value=!1)},Bt=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||B.loading||mt.value||(B.loading=!0,(v.more&&B.list.length?await v.more(y,B.list.length):await v.search(y)).length?B.list=[...B.list,...v.more&&B.list.length?await v.more(y,B.list.length):await v.search(y)]:mt.value=!0,B.loading=!1,setTimeout(()=>{O.target.scrollTop=u},50))},yi=fu(O=>{B.list=[],mt.value=!1,Bt(O)},300);Pe([o,D],([O,j])=>{const{wordLimit:u}=O;u?j<u[0]&&u[0]!==0?(je.value=u[0],W.value=!1):j>u[1]?(je.value=u[1],W.value=!1):(je.value=u[1],W.value=!0):(je.value=0,W.value=!0)},{immediate:!0}),li("click",At),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))))}),Pe(N,async O=>{var j;if(!O)return;const u=o.value.search;T.value&&(T.value.value=""),B.loading=!0,B.list=await(((j=u.default)==null?void 0:j.call(u))??u.search("")),B.loading=!1}),on(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Pe(()=>s.value,j=>{const{highlighter:u,texRenderer:d}=o.value;ae.value=j,H.value=bf(j,{emojiMap:$.value.map,highlighter:u,texRenderer:d}),D.value=kf(j),j?fl(f.value):fl.destroy(f.value)},{immediate:!0}),Pe(()=>o.value.emoji,j=>Tu(j).then(u=>{$.value=u}),{immediate:!0})});const vt={props:n,emit:r,config:o,editor:s,userMeta:l,userInfo:a,inputRefs:c,editorRef:f,imageUploadRef:h,emojiButtonRef:g,emojiPopupRef:p,gifButtonRef:R,gifPopupRef:x,gifSearchInputRef:T,emoji:$,emojiTabIndex:P,showEmoji:A,showGif:N,showPreview:te,previewText:H,wordNumber:D,searchResults:B,wordLimit:je,isWordNumberLegal:W,content:ae,isSubmitting:pe,isImageListEnd:mt,locale:De,isLogin:q,canUploadImage:re,insert:me,onKeyDown:Ie,uploadImage:ve,onDrop:Re,onPaste:we,onChange:Me,submitComment:Vt,onLogin:Cn,onLogout:kr,onProfile:Ve,popupHandler:At,onImageWallScroll:Bt,onGifSearch:yi,get CloseIcon(){return Cf},get EmojiIcon(){return Sf},get GifIcon(){return Of},get ImageIcon(){return If},get LoadingIcon(){return mi},get MarkdownIcon(){return Lf},get PreviewIcon(){return Tf},ImageWall:ud};return Object.defineProperty(vt,"__isScriptSetup",{enumerable:!1,value:!0}),vt}});const dd={key:0,class:"wl-login-info"},hd={class:"wl-avatar"},gd=["title"],pd=["title"],md=["src"],vd=["title","textContent"],wd={class:"wl-panel"},bd=["for","textContent"],yd=["id","onUpdate:modelValue","name","type"],_d=["placeholder"],kd={class:"wl-preview"},xd=M("hr",null,null,-1),Cd=["innerHTML"],Ed={class:"wl-footer"},Sd={class:"wl-actions"},Id={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Rd=["title"],Td=["title"],Ld=["title"],Ad=["title"],Md={class:"wl-info"},$d=M("div",{class:"wl-captcha-container"},null,-1),Od={class:"wl-text-number"},jd={key:0},zd=["textContent"],Pd=["textContent"],Ud=["disabled"],Fd=["placeholder"],Nd={key:1,class:"wl-loading"},Hd={key:0,class:"wl-tab-wrapper"},Dd=["title","onClick"],Vd=["src","alt"],Bd={key:0,class:"wl-tabs"},Wd=["onClick"],qd=["src","alt","title"],Kd=["title"];function Gd(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",dd,[M("div",hd,[M("button",{type:"submit",class:"wl-logout-btn",title:n.locale.logout,onClick:n.onLogout},[ne(n.CloseIcon,{size:14})],8,gd),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,md)],8,pd)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:n.locale.profile,onClick:n.onProfile,textContent:J(n.userInfo.display_name)},null,8,vd)])):Q("v-if",!0),M("div",wd,[n.config.login!=="force"&&n.config.meta.length&&!n.isLogin?(S(),L("div",{key:0,class:ge(["wl-header",`item${n.config.meta.length}`])},[(S(!0),L(se,null,Ue(n.config.meta,a=>(S(),L("div",{key:a,class:"wl-header-item"},[M("label",{for:`wl-${a}`,textContent:J(n.locale[a]+(n.config.requiredMeta.includes(a)||!n.config.requiredMeta.length?"":`(${n.locale.optional})`))},null,8,bd),qn(M("input",{id:`wl-${a}`,ref_for:!0,ref:c=>{c&&(n.inputRefs[a]=c)},"onUpdate:modelValue":c=>n.userMeta[a]=c,class:ge(["wl-input",`wl-${a}`]),name:a,type:a==="mail"?"email":"text"},null,10,yd),[[eu,n.userMeta[a]]])]))),128))],2)):Q("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,_d),[[ur,n.editor]]),qn(M("div",kd,[xd,M("h4",null,J(n.locale.preview)+":",1),M("div",{class:"wl-content",innerHTML:n.previewText},null,8,Cd)],512),[[gs,n.showPreview]]),M("div",Ed,[M("div",Sd,[M("a",Id,[ne(n.MarkdownIcon)]),qn(M("button",{ref:"emojiButtonRef",type:"button",class:ge(["wl-action",{active:n.showEmoji}]),title:n.locale.emoji,onClick:t[1]||(t[1]=a=>n.showEmoji=!n.showEmoji)},[ne(n.EmojiIcon)],10,Rd),[[gs,n.emoji.tabs.length]]),n.config.search?(S(),L("button",{key:0,ref:"gifButtonRef",type:"button",class:ge(["wl-action",{active:n.showGif}]),title:n.locale.gif,onClick:t[2]||(t[2]=a=>n.showGif=!n.showGif)},[ne(n.GifIcon)],10,Td)):Q("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},[ne(n.ImageIcon)],8,Ld)):Q("v-if",!0),M("button",{type:"button",class:ge(["wl-action",{active:n.showPreview}]),title:n.locale.preview,onClick:t[3]||(t[3]=a=>n.showPreview=!n.showPreview)},[ne(n.PreviewIcon)],10,Ad)]),M("div",Md,[$d,M("div",Od,[nt(J(n.wordNumber)+" ",1),n.config.wordLimit?(S(),L("span",jd,[nt(" / "),M("span",{class:ge({illegal:!n.isWordNumberLegal}),textContent:J(n.wordLimit)},null,10,zd)])):Q("v-if",!0),nt(" "+J(n.locale.word),1)]),n.config.login!=="disable"&&!n.isLogin?(S(),L("button",{key:0,type:"button",class:"wl-btn",onClick:n.onLogin,textContent:J(n.locale.login)},null,8,Pd)):Q("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(),tt(n.LoadingIcon,{key:0,size:16})):(S(),L(se,{key:1},[nt(J(n.locale.submit),1)],64))],8,Ud)):Q("v-if",!0)]),M("div",{ref:"gifPopupRef",class:ge(["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,Fd),n.searchResults.list.length?(S(),tt(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"])):Q("v-if",!0),n.searchResults.loading?(S(),L("div",Nd,[ne(n.LoadingIcon,{size:30})])):Q("v-if",!0)],2),M("div",{ref:"emojiPopupRef",class:ge(["wl-emoji-popup",{display:n.showEmoji}])},[(S(!0),L(se,null,Ue(n.emoji.tabs,(a,c)=>(S(),L(se,{key:a.name},[c===n.emojiTabIndex?(S(),L("div",Hd,[(S(!0),L(se,null,Ue(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,Vd)):Q("v-if",!0)],8,Dd))),128))])):Q("v-if",!0)],64))),128)),n.emoji.tabs.length>1?(S(),L("div",Bd,[(S(!0),L(se,null,Ue(n.emoji.tabs,(a,c)=>(S(),L("button",{key:a.name,type:"button",class:ge(["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,Wd))),128))])):Q("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"))},[ne(n.CloseIcon,{size:24})],8,Kd)):Q("v-if",!0)])}var dl=yn(fd,[["render",Gd],["__file","CommentBox.vue"]]),Zd=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=ol(),a=xu(),c=wi(),f=_e(()=>s.value.locale),h=_e(()=>{const{link:A}=n.comment;return A?Gr(A)?A:`https://${A}`:""}),g=_e(()=>l.value.includes(n.comment.objectId)),p=_e(()=>Fl(new Date(n.comment.time),a.value,f.value)),R=_e(()=>c.value.type==="administrator"),x=_e(()=>n.comment.user_id&&c.value.objectId===n.comment.user_id),T=_e(()=>{var A;return n.comment.objectId===((A=n.reply)==null?void 0:A.objectId)}),$=_e(()=>{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:g,time:p,isAdmin:R,isOwner:x,isReplyingCurrent:T,isEditingCurrent:$,CommentBox:dl,get DeleteIcon(){return Ef},get EditIcon(){return Mf},get LikeIcon(){return Rf},get ReplyIcon(){return Af},get VerifiedIcon(){return $f}};return Object.defineProperty(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}});const Qd=["id"],Jd={class:"wl-user","aria-hidden":"true"},Yd=["src"],Xd={class:"wl-card"},eh={class:"wl-head"},th=["href"],nh={key:1,class:"wl-nick"},ih=["textContent"],rh=["textContent"],oh=["textContent"],sh=["textContent"],lh=["textContent"],ah={class:"wl-comment-actions"},ch=["title"],uh=["title"],fh={class:"wl-meta","aria-hidden":"true"},dh=["data-value","textContent"],hh={key:0,class:"wl-content"},gh={key:0},ph=["href"],mh=M("span",null,": ",-1),vh=["innerHTML"],wh={key:1,class:"wl-admin-actions"},bh={class:"wl-comment-status"},yh=["disabled","onClick","textContent"],_h={key:3,class:"wl-quote"};function kh(e,t,i,n,r,o){var l;const s=Fa("CommentCard",!0);return S(),L("div",{id:i.comment.objectId,class:"wl-card-item"},[M("div",Jd,[i.comment.avatar?(S(),L("img",{key:0,class:"wl-user-avatar",src:i.comment.avatar},null,8,Yd)):Q("v-if",!0),i.comment.type?(S(),tt(n.VerifiedIcon,{key:1})):Q("v-if",!0)]),M("div",Xd,[M("div",eh,[n.link?(S(),L("a",{key:0,class:"wl-nick",href:n.link,target:"_blank",rel:"nofollow noopener noreferrer"},J(i.comment.nick),9,th)):(S(),L("span",nh,J(i.comment.nick),1)),i.comment.type==="administrator"?(S(),L("span",{key:2,class:"wl-badge",textContent:J(n.locale.admin)},null,8,ih)):Q("v-if",!0),i.comment.label?(S(),L("span",{key:3,class:"wl-badge",textContent:J(i.comment.label)},null,8,rh)):Q("v-if",!0),i.comment.sticky?(S(),L("span",{key:4,class:"wl-badge",textContent:J(n.locale.sticky)},null,8,oh)):Q("v-if",!0),typeof i.comment.level=="number"?(S(),L("span",{key:5,class:ge(`wl-badge level${i.comment.level}`),textContent:J(n.locale[`level${i.comment.level}`]||`Level ${i.comment.level}`)},null,10,sh)):Q("v-if",!0),M("span",{class:"wl-time",textContent:J(n.time)},null,8,lh),M("div",ah,[n.isAdmin||n.isOwner?(S(),L(se,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:t[0]||(t[0]=a=>n.emit("edit",i.comment))},[ne(n.EditIcon)]),M("button",{type:"button",class:"wl-delete",onClick:t[1]||(t[1]=a=>n.emit("delete",i.comment))},[ne(n.DeleteIcon)])],64)):Q("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))},[ne(n.LikeIcon,{active:n.like},null,8,["active"]),nt(" "+J("like"in i.comment?i.comment.like:""),1)],8,ch),M("button",{type:"button",class:ge(["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))},[ne(n.ReplyIcon)],10,uh)])]),M("div",fh,[(S(),L(se,null,Ue(["addr","browser","os"],a=>(S(),L(se,null,[i.comment[a]?(S(),L("span",{key:a,class:ge(`wl-${a}`),"data-value":i.comment[a],textContent:J(i.comment[a])},null,10,dh)):Q("v-if",!0)],64))),64))]),n.isEditingCurrent?Q("v-if",!0):(S(),L("div",hh,[i.comment.reply_user?(S(),L("p",gh,[M("a",{href:"#"+i.comment.pid},"@"+J(i.comment.reply_user.nick),9,ph),mh])):Q("v-if",!0),M("div",{innerHTML:i.comment.comment},null,8,vh)])),n.isAdmin&&!n.isEditingCurrent?(S(),L("div",wh,[M("span",bh,[(S(),L(se,null,Ue(n.commentStatus,a=>M("button",{key:a,type:"submit",class:ge(`wl-btn wl-${a}`),disabled:i.comment.status===a,onClick:c=>n.emit("status",{status:a,comment:i.comment}),textContent:J(n.locale[a])},null,10,yh)),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))},J(i.comment.sticky?n.locale.unsticky:n.locale.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),n.isReplyingCurrent||n.isEditingCurrent?(S(),L("div",{key:2,class:ge({"wl-reply-wrapper":n.isReplyingCurrent,"wl-edit-wrapper":n.isEditingCurrent})},[ne(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)):Q("v-if",!0),"children"in i.comment?(S(),L("div",_h,[(S(!0),L(se,null,Ue(i.comment.children,a=>(S(),tt(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))])):Q("v-if",!0)])],8,Qd)}var xh=yn(Zd,[["render",kh],["__file","CommentCard.vue"]]);const hl="3.3.0";var Ch=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=ol(),l=V("loading"),a=V(0),c=V(1),f=V(0),h=_e(()=>zl(i)),g=V(h.value.commentSorting),p=V([]),R=V(null),x=V(null),T=_e(()=>Pl(h.value.dark)),$=_e(()=>h.value.locale);Su(T,{id:"waline-darkmode"});let P;const A=q=>{var re;const{serverURL:me,path:Ie,pageSize:ve}=h.value,Re=new AbortController;l.value="loading",P==null||P(),Er({serverURL:me,lang:h.value.lang,path:Ie,pageSize:ve,sortBy:n[g.value],page:q,signal:Re.signal,token:(re=o.value)==null?void 0:re.token}).then(we=>{l.value="success",a.value=we.count,p.value.push(...we.data),c.value=q,f.value=we.totalPages}).catch(we=>{we.name!=="AbortError"&&(console.error(we.message),l.value="error")}),P=Re.abort.bind(Re)},N=()=>A(c.value+1),te=()=>{a.value=0,p.value=[],A(1)},H=q=>{g.value!==q&&(g.value=q,te())},D=q=>{R.value=q},B=q=>{x.value=q},je=q=>{if(x.value)x.value.comment=q.comment,x.value.orig=q.orig;else if("rid"in q){const re=p.value.find(({objectId:me})=>me===q.rid);if(!re)return;Array.isArray(re.children)||(re.children=[]),re.children.push(q)}else p.value.unshift(q),a.value+=1},W=async({comment:q,status:re})=>{var me;if(q.status===re)return;const{serverURL:Ie,lang:ve}=h.value;await qt({serverURL:Ie,lang:ve,token:(me=o.value)==null?void 0:me.token,objectId:q.objectId,comment:{status:re}}),q.status=re},ae=async q=>{var re;if("rid"in q)return;const{serverURL:me,lang:Ie}=h.value;await qt({serverURL:me,lang:Ie,token:(re=o.value)==null?void 0:re.token,objectId:q.objectId,comment:{sticky:q.sticky?0:1}}),q.sticky=!q.sticky},pe=async({objectId:q})=>{var re;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:me,lang:Ie}=h.value;await Ir({serverURL:me,lang:Ie,token:(re=o.value)==null?void 0:re.token,objectId:q}),p.value.some((ve,Re)=>ve.objectId===q?(p.value=p.value.filter((we,Me)=>Me!==Re),!0):ve.children.some((we,Me)=>we.objectId===q?(p.value[Re].children=ve.children.filter((Vt,Cn)=>Cn!==Me),!0):!1))},mt=async q=>{var re;const{serverURL:me,lang:Ie}=h.value,{objectId:ve}=q,Re=s.value.includes(ve);await qt({serverURL:me,lang:Ie,objectId:ve,token:(re=o.value)==null?void 0:re.token,comment:{like:!Re}}),Re?s.value=s.value.filter(we=>we!==ve):(s.value=[...s.value,ve],s.value.length>50&&(s.value=s.value.slice(-50))),q.like=(q.like||0)+(Re?-1:1)};nc("config",h),on(()=>{Pe(()=>[i.serverURL,i.path],()=>te(),{immediate:!0})}),Qi(()=>P==null?void 0:P());const De={props:i,sortKeyMap:n,sortingMethods:r,userInfo:o,likeStorage:s,status:l,count:a,page:c,totalPages:f,config:h,commentSortingRef:g,data:p,reply:R,edit:x,darkmodeStyle:T,i18n:$,get abort(){return P},set abort(q){P=q},getCommentData:A,loadMore:N,refresh:te,onSortByChange:H,onReply:D,onEdit:B,onSubmit:je,onStatusChange:W,onSticky:ae,onDelete:pe,onLike:mt,Reaction:id,CommentBox:dl,CommentCard:xh,get LoadingIcon(){return mi},get version(){return hl}};return Object.defineProperty(De,"__isScriptSetup",{enumerable:!1,value:!0}),De}});const Eh={"data-waline":""},Sh={class:"wl-meta-head"},Ih={class:"wl-count"},Rh=["textContent"],Th={class:"wl-sort"},Lh=["onClick"],Ah={class:"wl-cards"},Mh={key:1,class:"wl-operation"},$h=["textContent"],Oh={key:2,class:"wl-loading"},jh=["textContent"],zh={key:4,class:"wl-operation"},Ph=["textContent"],Uh={key:5,class:"wl-power"},Fh=M("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);function Nh(e,t,i,n,r,o){return S(),L("div",Eh,[ne(n.Reaction),!n.reply&&!n.edit?(S(),tt(n.CommentBox,{key:0,onLog:n.refresh,onSubmit:n.onSubmit})):Q("v-if",!0),M("div",Sh,[M("div",Ih,[n.count?(S(),L("span",{key:0,class:"wl-num",textContent:J(n.count)},null,8,Rh)):Q("v-if",!0),nt(" "+J(n.i18n.comment),1)]),M("ul",Th,[(S(!0),L(se,null,Ue(n.sortingMethods,s=>(S(),L("li",{key:s,class:ge([s===n.commentSortingRef?"active":""]),onClick:l=>n.onSortByChange(s)},J(n.i18n[s]),11,Lh))),128))])]),M("div",Ah,[(S(!0),L(se,null,Ue(n.data,s=>(S(),tt(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",Mh,[M("button",{type:"button",class:"wl-btn",onClick:n.refresh,textContent:J(n.i18n.refresh)},null,8,$h)])):n.status==="loading"?(S(),L("div",Oh,[ne(n.LoadingIcon,{size:30})])):n.data.length?n.page<n.totalPages?(S(),L("div",zh,[M("button",{type:"button",class:"wl-btn",onClick:n.loadMore,textContent:J(n.i18n.more)},null,8,Ph)])):Q("v-if",!0):(S(),L("div",{key:3,class:"wl-empty",textContent:J(n.i18n.sofa)},null,8,jh)),n.config.copyright?(S(),L("div",Uh,[nt(" Powered by "),Fh,nt(" v"+J(n.version),1)])):Q("v-if",!0)])}var Hh=yn(Ch,[["render",Nh],["__file","WalineComment.vue"]]);const gl=(e,t)=>{t.forEach((i,n)=>{const r=e[n].time;typeof r=="number"&&(i.innerText=r.toString())})},pl=({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=>Lr({serverURL:Rn(e),paths:c.map(f=>_r(f)??t),lang:r,signal:o.signal}).then(f=>gl(f,c)).catch(Ms);if(n){const c=s.filter(h=>!l(h)),f=s.filter(l);Ar({serverURL:Rn(e),path:t,lang:r}).then(h=>gl(h,c)),f.length&&a(f)}else a(s);return o.abort.bind(o)},Dh=({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&&il({serverURL:s.serverURL,path:l.path,...Mt(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&pl({serverURL:s.serverURL,path:l.path,...Mt(l.pageview)?{selector:l.pageview}:{}})},f=o?ru(()=>X(Hh,{path:l.path,...s})):null;f&&f.mount(o);const h=Uo(a),g=Uo(c);return{el:o,update:({comment:p,pageview:R,path:x=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([$,P])=>{s[$]=P}),l.path=x,p!==void 0&&(l.comment=p),R!==void 0&&(l.pageview=R)},destroy:()=>{f==null||f.unmount(),h(),g()}}},Vh=({el:e,serverURL:t,count:i,lang:n=navigator.language})=>{var r;const o=wi(),s=dr(e),l=new AbortController;return Mr({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()})},Bh=({el:e,serverURL:t,count:i,locale:n,lang:r=navigator.language,mode:o="list"})=>{const s=dr(e),l=new AbortController;return $r({serverURL:t,pageSize:i,lang:r,signal:l.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>l.abort()}:(n={...Br(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=""}}))};G.RecentComments=Vh,G.UserList=Bh,G.addComment=Sr,G.commentCount=il,G.defaultLocales=In,G.deleteComment=Ir,G.fetchCommentCount=Rr,G.getArticleCounter=ki,G.getComment=Er,G.getPageview=Lr,G.getRecentComment=Mr,G.getUserList=$r,G.init=Dh,G.login=Tr,G.pageviewCount=pl,G.updateArticleCounter=Sn,G.updateComment=qt,G.updatePageview=Ar,G.version=hl});
|
|
78
|
+
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
79
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Zl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Zl(t);if(i===null)return r;t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Ii{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ye{options;renderer;textRenderer;constructor(t){this.options=t||Ot,this.options.renderer=this.options.renderer||new _r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ii}static parse(t,n){return new Ye(n).parse(t)}static parseInline(t,n){return new Ye(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=a||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let o=l,a=this.renderer.text(o);for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
|
|
80
|
+
`+this.renderer.text(o);n?r+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a}]}):r+=a;continue}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}const l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class Rn{options;block;constructor(t){this.options=t||Ot}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Je.lex:Je.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}}Io(Rn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class lo{defaults=$i();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=_r;TextRenderer=Ii;Lexer=Je;Tokenizer=yr;Hooks=Rn;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const u=o[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new _r(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new yr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Rn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],u=s[o];Rn.passThroughHooks.has(l)?s[o]=c=>{if(this.defaults.async)return Promise.resolve(a.call(s,c)).then(p=>u.call(s,p));const h=a.call(s,c);return u.call(s,h)}:s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Je.lex(t,n??this.defaults)}parser(t,n){return Ye.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Je.lex:Je.lexInline,u=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(c=>a(c,l)).then(c=>l.hooks?l.hooks.processAllTokens(c):c).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>u(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let c=a(r,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let h=u(c,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(c){return o(c)}}}onError(t,n){return r=>{if(r.message+=`
|
|
81
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ue(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const jt=new lo;function me(e,t){return jt.parse(e,t)}me.options=me.setOptions=function(e){return jt.setOptions(e),me.defaults=jt.defaults,Wl(me.defaults),me},me.getDefaults=$i,me.defaults=Ot,me.use=function(...e){return jt.use(...e),me.defaults=jt.defaults,Wl(me.defaults),me},me.walkTokens=function(e,t){return jt.walkTokens(e,t)},me.parseInline=jt.parseInline,me.Parser=Ye,me.parser=Ye.parse,me.Renderer=_r,me.TextRenderer=Ii,me.Lexer=Je,me.lexer=Je.lex,me.Tokenizer=yr,me.Hooks=Rn,me.parse=me;function $f(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 n=oo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(ao(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");ao(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=oo(n),s=i?` class="${e.langPrefix}${ho(i)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${s}>${r?t:ho(t,!0)}
|
|
82
|
+
</code></pre>`}}}}function oo(e){return(e||"").match(/\S*/)[0]}function ao(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const co=/[&<>"']/,Cf=new RegExp(co.source,"g"),uo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Sf=new RegExp(uo.source,"g"),Ef={"&":"&","<":"<",">":">",'"':""","'":"'"},fo=e=>Ef[e];function ho(e,t){if(t){if(co.test(e))return e.replace(Cf,fo)}else if(uo.test(e))return e.replace(Sf,fo);return e}const Tf=/\$.*?\$/,Af=/^\$(.*?)\$/,Rf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,If=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Rf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(Tf);return n!==-1?n:t.length},tokenizer(t){const n=Af.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],po=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Lf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new lo;if(i.setOptions({breaks:!0}),n&&i.use($f({highlight:n})),r){const s=If(r);i.use({extensions:s})}return i.parse(po(e,t))},Li=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Mf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Of=e=>e.match(/[\u4E00-\u9FD5]/gu),jf=e=>{var t,n;return(((t=Mf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=Of(e))==null?void 0:n.length)??0)},zf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},go=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Fi({serverURL:Fn(e),paths:Array.from(s).map(l=>rs(Li(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Vl),i.abort.bind(i)},mo=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Pf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Ff=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Df=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Uf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Hf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Nf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Vf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Wf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),In=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),qf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Kf=()=>Jt("WALINE_USER_META",{nick:"",mail:"",link:""}),Gf=()=>Jt("WALINE_COMMENT_BOX_EDITOR",""),Zf="WALINE_LIKE";let vo=null;const bo=()=>vo??(vo=Jt(Zf,[])),Qf="WALINE_REACTION";let yo=null;const Jf=()=>yo??(yo=Jt(Qf,{}));var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wo={},Xt={},Ln={},Yf=Yt&&Yt.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(c){try{u(r.next(c))}catch(h){l(h)}}function a(c){try{u(r.throw(c))}catch(h){l(h)}}function u(c){c.done?s(c.value):i(c.value).then(o,a)}u((r=r.apply(e,t||[])).next())})},Xf=Yt&&Yt.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ReCaptchaInstance=void 0;var eh=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Yf(this,void 0,void 0,function(){var n;return Xf(this,function(r){switch(r.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:t})]:[3,2];case 1:return n=r.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:t})];case 3:n=r.sent(),r.label=4;case 4:return[2,n]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Ln.ReCaptchaInstance=eh;var Mi=Yt&&Yt.__assign||function(){return Mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mi.apply(this,arguments)};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getInstance=Xt.load=void 0;var th=Ln,wt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(wt||(wt={}));var ko=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===wt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===wt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,s){e.successfulLoadingConsumers.push(function(l){return i(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(wt.LOADING);var r=new e;return new Promise(function(i,s){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(wt.LOADED);var l=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new th.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,i(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?wt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,s){var l=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),s===void 0&&(s="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script",""),o.setAttribute("async",""),o.setAttribute("defer","");var a="https://www.google.com/recaptcha/api.js";n?r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js":r&&(a="https://www.google.com/recaptcha/enterprise.js"),s&&(a=s),i.render&&(i.render=void 0);var u=this.buildQueryString(i);return o.src=a+"?render=explicit"+u,new Promise(function(c,h){o.addEventListener("load",l.waitForScriptToLoad(function(){c(o)},r),!1),o.onerror=function(p){e.setLoadingState(wt.NOT_LOADED),h(p)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,i){var s=Mi({sitekey:n},r);return r.container?i?t.enterprise.render(r.container,s):t.render(r.container,s):i?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Xt.load=ko.load,Xt.getInstance=ko.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Xt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Ln;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(wo);const xo={},nh=e=>{const t=xo[e]??(xo[e]=wo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},rh=e=>({execute:async t=>{const{load:n}=Du("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),ih="WALINE_USER";let _o=null;const $r=()=>_o??(_o=Jt(ih,{})),sh={key:0,class:"wl-reaction"},lh=["textContent"],oh={class:"wl-reaction-list"},ah=["onClick"],ch={class:"wl-reaction-img"},uh=["src","alt"],fh=["textContent"],hh=["textContent"];var dh=gn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Jf(),r=rr("config"),i=q(-1),s=q([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=r.value;return p.map((w,x)=>({icon:w,desc:l.value[`reaction${x}`],active:n.value[m]===x}))});let u;const c=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:w,reaction:x}=r.value,C=new AbortController;u=C.abort.bind(C);const v=await Er({serverURL:p,lang:m,paths:[w],type:x.map(($,H)=>`reaction${H}`),signal:C.signal});s.value=x.map(($,H)=>v[0][`reaction${H}`])},h=async p=>{if(i.value===-1){const{serverURL:m,lang:w,path:x}=r.value,C=n.value[x];i.value=p,C!==void 0&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${C}`,action:"desc"}),s.value[C]=Math.max(s.value[C]-1,0)),C!==p&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),C===p?delete n.value[x]:n.value[x]=p,i.value=-1}};return vn(()=>{qe(()=>[r.value.serverURL,r.value.path],()=>{c()},{immediate:!0})}),li(()=>u==null?void 0:u()),(p,m)=>a.value.length?(L(),j("div",sh,[D("div",{class:"wl-reaction-title",textContent:Y(l.value.reactionTitle)},null,8,lh),D("ul",oh,[(L(!0),j(he,null,We(a.value,({active:w,icon:x,desc:C},v)=>(L(),j("li",{key:v,class:ve(["wl-reaction-item",{active:w}]),onClick:$=>h(v)},[D("div",ch,[D("img",{src:x,alt:C},null,8,uh),i.value===v?(L(),ut(K(In),{key:0,class:"wl-reaction-loading"})):(L(),j("div",{key:1,class:"wl-reaction-votes",textContent:Y(s.value[v]||0)},null,8,fh))]),D("div",{class:"wl-reaction-text",textContent:Y(C)},null,8,hh)],10,ah))),128))])])):Q("v-if",!0)}}),Mn=new Map;function ph(e){var t=Mn.get(e);t&&t.destroy()}function gh(e){var t=Mn.get(e);t&&t.update()}var On=null;typeof window>"u"?((On=function(e){return e}).destroy=function(e){return e},On.update=function(e){return e}):((On=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Mn.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){u({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",c),r.removeEventListener("input",o),window.removeEventListener("resize",c),Object.keys(h).forEach(function(p){return r.style[p]=h[p]}),Mn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",c),r.addEventListener("input",o),window.addEventListener("resize",c),r.style.overflowX="hidden",r.style.wordWrap="break-word",Mn.set(r,{destroy:a,update:c}),c()}function u(h){var p,m,w=h.restoreTextAlign,x=w===void 0?null:w,C=h.testForHeightReduction,v=C===void 0||C,$=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),v&&(p=function(A){for(var z=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&z.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return z.forEach(function(W){var U=W[0],X=W[1];U.style.scrollBehavior="auto",U.scrollTop=X,U.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",x&&(r.style.textAlign=x),p&&p(),s!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!x)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),u({restoreTextAlign:H,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ph),e},On.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],gh),e});var $o=On;const mh=["data-index"],vh=["src","title","onClick"];var bh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=q(null),s=q({}),l=q([]),o=()=>{const p=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),u=async p=>{var m;if(p>=n.items.length)return;await Kt();const w=Array.from(((m=i.value)==null?void 0:m.children)??[]).reduce((x,C)=>C.getBoundingClientRect().height<x.getBoundingClientRect().height?C:x);l.value[Number(w.dataset.index)].push(p),await u(p+1)},c=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await u(0),window.scrollTo({top:m})},h=p=>{s.value[p.target.src]=!0};return vn(()=>{c(!0),r=new ResizeObserver(()=>{c()}),r.observe(i.value),qe(()=>[n.items],()=>{s.value={},c(!0)}),qe(()=>[n.columnWidth,n.gap],()=>{c()})}),Ja(()=>r.unobserve(i.value)),(p,m)=>(L(),j("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(l.value,(w,x)=>(L(),j("div",{key:x,class:"wl-gallery-column","data-index":x,style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(w,C=>(L(),j(he,{key:C},[s.value[p.items[C].src]?Q("v-if",!0):(L(),ut(K(In),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:p.items[C].src,title:p.items[C].title,loading:"lazy",onLoad:h,onClick:v=>p.$emit("insert",``)},null,40,vh)],64))),128))],12,mh))),128))],4))}});const yh={key:0,class:"wl-login-info"},wh={class:"wl-avatar"},kh=["title"],xh=["title"],_h=["src"],$h=["title","textContent"],Ch={class:"wl-panel"},Sh=["for","textContent"],Eh=["id","onUpdate:modelValue","name","type"],Th=["placeholder"],Ah={class:"wl-preview"},Rh=["innerHTML"],Ih={class:"wl-footer"},Lh={class:"wl-actions"},Mh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Oh=["title"],jh=["title"],zh=["title","aria-label"],Ph=["title"],Fh={class:"wl-info"},Dh={class:"wl-text-number"},Uh={key:0},Hh=["textContent"],Nh=["textContent"],Vh=["disabled"],Bh=["placeholder"],Wh={key:1,class:"wl-loading"},qh={key:0,class:"wl-tab-wrapper"},Kh=["title","onClick"],Gh=["src","alt"],Zh={key:0,class:"wl-tabs"},Qh=["onClick"],Jh=["src","alt","title"],Yh=["title"];var Co=gn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=rr("config"),s=Gf(),l=Kf(),o=$r(),a=q({}),u=q(null),c=q(null),h=q(null),p=q(null),m=q(null),w=q(null),x=q(null),C=q({tabs:[],map:{}}),v=q(0),$=q(!1),H=q(!1),A=q(!1),z=q(""),W=q(0),U=un({loading:!0,list:[]}),X=q(0),Pe=q(!1),G=q(""),se=q(!1),be=q(!1),P=_e(()=>i.value.locale),J=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>i.value.imageUploader!==!1),$e=O=>{const T=u.value,V=T.selectionStart,pe=T.selectionEnd||0,f=T.scrollTop;s.value=T.value.substring(0,V)+O+T.value.substring(pe,T.value.length),T.focus(),T.selectionStart=V+O.length,T.selectionEnd=V+O.length,T.scrollTop=f},we=O=>{if(se.value)return;const T=O.key;(O.ctrlKey||O.metaKey)&&T==="Enter"&&He()},ke=O=>{const T=`![${i.value.locale.uploading} ${O.name}]()`;return $e(T),se.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(V=>{s.value=s.value.replace(T,`\r
|
|
83
|
+
`)}).catch(V=>{alert(V.message),s.value=s.value.replace(T,"")}).then(()=>{se.value=!1})},Me=O=>{var T;if((T=O.dataTransfer)!=null&&T.items){const V=Bl(O.dataTransfer.items);V&&ce.value&&(ke(V),O.preventDefault())}},kt=O=>{if(O.clipboardData){const T=Bl(O.clipboardData.items);T&&ce.value&&ke(T)}},zt=()=>{const O=c.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},He=async()=>{var O,T,V,pe,f,d;const{serverURL:g,lang:y,login:b,wordLimit:k,requiredMeta:R,recaptchaV3Key:E,turnstileKey:S}=i.value,_=await zf(),M={comment:G.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(b==="force")return;if(R.includes("nick")&&!M.nick)return(T=a.value.nick)==null||T.focus(),alert(P.value.nickError);if(R.includes("mail")&&!M.mail||M.mail&&!Xo(M.mail))return(V=a.value.mail)==null||V.focus(),alert(P.value.mailError);M.nick||(M.nick=P.value.anonymous)}if(!M.comment){(pe=u.value)==null||pe.focus();return}if(!Pe.value)return alert(P.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",W.value.toString()));M.comment=po(M.comment,C.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),se.value=!0;try{E&&(M.recaptchaV3=await nh(E).execute("social")),S&&(M.turnstile=await rh(S).execute("social"));const I={serverURL:g,lang:y,token:(f=o.value)==null?void 0:f.token,comment:M},F=await(n.edit?tn({objectId:n.edit.objectId,...I}):zi(I));if(se.value=!1,F.errmsg)return alert(F.errmsg);r("submit",F.data),s.value="",z.value="",await Kt(),n.replyId&&r("cancelReply"),(d=n.edit)!=null&&d.objectId&&r("cancelEdit")}catch(I){se.value=!1,alert(I.message)}},Cr=O=>{O.preventDefault();const{lang:T,serverURL:V}=i.value;Di({serverURL:V,lang:T}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Oi=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Sr=O=>{O.preventDefault();const{lang:T,serverURL:V}=i.value,pe=800,f=800,d=(window.innerWidth-pe)/2,g=(window.innerHeight-f)/2,y=new URLSearchParams({lng:T,token:o.value.token}),b=window.open(`${V}/ui/profile?${y.toString()}`,"_blank",`width=${pe},height=${f},left=${d},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);b==null||b.postMessage({type:"TOKEN",data:o.value.token},"*")},Pt=O=>{var T,V,pe,f;!((T=h.value)!=null&&T.contains(O.target))&&!((V=p.value)!=null&&V.contains(O.target))&&($.value=!1),!((pe=m.value)!=null&&pe.contains(O.target))&&!((f=w.value)!=null&&f.contains(O.target))&&(H.value=!1)},Ft=async O=>{var T;const{scrollTop:V,clientHeight:pe,scrollHeight:f}=O.target,d=(pe+V)/f,g=i.value.search,y=((T=x.value)==null?void 0:T.value)??"";d<.9||U.loading||be.value||(U.loading=!0,(g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)).length?U.list=[...U.list,...g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)]:be.value=!0,U.loading=!1,setTimeout(()=>{O.target.scrollTop=V},50))},en=Su(O=>{U.list=[],be.value=!1,Ft(O)},300);return qe([i,W],([O,T])=>{const{wordLimit:V}=O;V?T<V[0]&&V[0]!==0?(X.value=V[0],Pe.value=!1):T>V[1]?(X.value=V[1],Pe.value=!1):(X.value=V[1],Pe.value=!0):(X.value=0,Pe.value=!0)},{immediate:!0}),mr("click",Pt),mr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(T=>T.getItem("WALINE_USER")).forEach(T=>T.setItem("WALINE_USER",JSON.stringify(o))))}),qe(H,async O=>{var T;if(!O)return;const V=i.value.search;x.value&&(x.value.value=""),U.loading=!0,U.list=await(((T=V.default)==null?void 0:T.call(V))??V.search("")),U.loading=!1}),vn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),qe(()=>s.value,T=>{const{highlighter:V,texRenderer:pe}=i.value;G.value=T,z.value=Lf(T,{emojiMap:C.value.map,highlighter:V,texRenderer:pe}),W.value=jf(T),T?$o(u.value):$o.destroy(u.value)},{immediate:!0}),qe(()=>i.value.emoji,T=>Bu(T).then(V=>{C.value=V}),{immediate:!0})}),(O,T)=>{var V,pe;return L(),j("div",{key:K(o).token,class:"wl-comment"},[K(i).login!=="disable"&&J.value&&!((V=O.edit)!=null&&V.objectId)?(L(),j("div",yh,[D("div",wh,[D("button",{type:"submit",class:"wl-logout-btn",title:P.value.logout,onClick:Oi},[oe(K(mo),{size:14})],8,kh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Sr},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,_h)],8,xh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Sr,textContent:Y(K(o).display_name)},null,8,$h)])):Q("v-if",!0),D("div",Ch,[K(i).login!=="force"&&K(i).meta.length&&!J.value?(L(),j("div",{key:0,class:ve(["wl-header",`item${K(i).meta.length}`])},[(L(!0),j(he,null,We(K(i).meta,f=>(L(),j("div",{key:f,class:"wl-header-item"},[D("label",{for:`wl-${f}`,textContent:Y(P.value[f]+(K(i).requiredMeta.includes(f)||!K(i).requiredMeta.length?"":`(${P.value.optional})`))},null,8,Sh),tr(D("input",{id:`wl-${f}`,ref_for:!0,ref:d=>{d&&(a.value[f]=d)},"onUpdate:modelValue":d=>K(l)[f]=d,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,Eh),[[gu,K(l)[f]]])]))),128))],2)):Q("v-if",!0),tr(D("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":T[0]||(T[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:P.value.placeholder,onKeydown:we,onDrop:Me,onPaste:kt},null,40,Th),[[ki,K(s)]]),tr(D("div",Ah,[T[7]||(T[7]=D("hr",null,null,-1)),D("h4",null,Y(P.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:z.value},null,8,Rh)],512),[[$l,A.value]]),D("div",Ih,[D("div",Lh,[D("a",Mh,[oe(K(Nf))]),tr(D("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:$.value}]),title:P.value.emoji,onClick:T[1]||(T[1]=f=>$.value=!$.value)},[oe(K(Ff))],10,Oh),[[$l,C.value.tabs.length]]),K(i).search?(L(),j("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ve(["wl-action",{active:H.value}]),title:P.value.gif,onClick:T[2]||(T[2]=f=>H.value=!H.value)},[oe(K(qf))],10,jh)):Q("v-if",!0),D("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:c,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:zt},null,544),ce.value?(L(),j("label",{key:1,for:"wl-image-upload",class:"wl-action",title:P.value.uploadImage,"aria-label":P.value.uploadImage},[oe(K(Df))],8,zh)):Q("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:A.value}]),title:P.value.preview,onClick:T[3]||(T[3]=f=>A.value=!A.value)},[oe(K(Hf))],10,Ph)]),D("div",Fh,[T[9]||(T[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Dh,[ft(Y(W.value)+" ",1),K(i).wordLimit?(L(),j("span",Uh,[T[8]||(T[8]=ft(" / ")),D("span",{class:ve({illegal:!Pe.value}),textContent:Y(X.value)},null,10,Hh)])):Q("v-if",!0),ft(" "+Y(P.value.word),1)]),K(i).login!=="disable"&&!J.value?(L(),j("button",{key:0,type:"button",class:"wl-btn",onClick:Cr,textContent:Y(P.value.login)},null,8,Nh)):Q("v-if",!0),K(i).login!=="force"||J.value?(L(),j("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:se.value,onClick:He},[se.value?(L(),ut(K(In),{key:0,size:16})):(L(),j(he,{key:1},[ft(Y(P.value.submit),1)],64))],8,Vh)):Q("v-if",!0)]),D("div",{ref_key:"gifPopupRef",ref:w,class:ve(["wl-gif-popup",{display:H.value}])},[D("input",{ref_key:"gifSearchInputRef",ref:x,type:"text",placeholder:P.value.gifSearchPlaceholder,onInput:T[4]||(T[4]=(...f)=>K(en)&&K(en)(...f))},null,40,Bh),U.list.length?(L(),ut(bh,{key:0,items:U.list,"column-width":200,gap:6,onInsert:T[5]||(T[5]=f=>$e(f)),onScroll:Ft},null,8,["items"])):Q("v-if",!0),U.loading?(L(),j("div",Wh,[oe(K(In),{size:30})])):Q("v-if",!0)],2),D("div",{ref_key:"emojiPopupRef",ref:p,class:ve(["wl-emoji-popup",{display:$.value}])},[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j(he,{key:f.name},[d===v.value?(L(),j("div",qh,[(L(!0),j(he,null,We(f.items,g=>(L(),j("button",{key:g,type:"button",title:g,onClick:y=>$e(`:${g}:`)},[$.value?(L(),j("img",{key:0,class:"wl-emoji",src:C.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Gh)):Q("v-if",!0)],8,Kh))),128))])):Q("v-if",!0)],64))),128)),C.value.tabs.length>1?(L(),j("div",Zh,[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:v.value===d}]),onClick:g=>v.value=d},[D("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Jh)],10,Qh))),128))])):Q("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.objectId?(L(),j("button",{key:1,type:"button",class:"wl-close",title:P.value.cancelReply,onClick:T[6]||(T[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(K(mo),{size:24})],8,Yh)):Q("v-if",!0)])}}});const Xh=["id"],ed={class:"wl-user","aria-hidden":"true"},td=["src"],nd={class:"wl-card"},rd={class:"wl-head"},id=["href"],sd={key:1,class:"wl-nick"},ld=["textContent"],od=["textContent"],ad=["textContent"],cd=["textContent"],ud=["textContent"],fd={class:"wl-comment-actions"},hd=["title"],dd=["title"],pd={class:"wl-meta","aria-hidden":"true"},gd=["data-value","textContent"],md={key:0,class:"wl-content"},vd={key:0},bd=["href"],yd=["innerHTML"],wd={key:1,class:"wl-admin-actions"},kd={class:"wl-comment-status"},xd=["disabled","onClick","textContent"],_d={key:3,class:"wl-quote"};var $d=gn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=rr("config"),l=bo(),o=Fu(),a=$r(),u=_e(()=>s.value.locale),c=_e(()=>{const{link:v}=n.comment;return v?ss(v)?v:`https://${v}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),p=_e(()=>Jo(new Date(n.comment.time),o.value,u.value)),m=_e(()=>a.value.type==="administrator"),w=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=_e(()=>{var v;return n.comment.objectId===((v=n.reply)==null?void 0:v.objectId)}),C=_e(()=>{var v;return n.comment.objectId===((v=n.edit)==null?void 0:v.objectId)});return(v,$)=>{var H;const A=Xa("CommentCard",!0);return L(),j("div",{id:v.comment.objectId,class:"wl-card-item"},[D("div",ed,[v.comment.avatar?(L(),j("img",{key:0,class:"wl-user-avatar",src:v.comment.avatar,alt:""},null,8,td)):Q("v-if",!0),v.comment.type?(L(),ut(K(Wf),{key:1})):Q("v-if",!0)]),D("div",nd,[D("div",rd,[c.value?(L(),j("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Y(v.comment.nick),9,id)):(L(),j("span",sd,Y(v.comment.nick),1)),v.comment.type==="administrator"?(L(),j("span",{key:2,class:"wl-badge",textContent:Y(u.value.admin)},null,8,ld)):Q("v-if",!0),v.comment.label?(L(),j("span",{key:3,class:"wl-badge",textContent:Y(v.comment.label)},null,8,od)):Q("v-if",!0),v.comment.sticky?(L(),j("span",{key:4,class:"wl-badge",textContent:Y(u.value.sticky)},null,8,ad)):Q("v-if",!0),typeof v.comment.level=="number"?(L(),j("span",{key:5,class:ve(`wl-badge level${v.comment.level}`),textContent:Y(u.value[`level${v.comment.level}`]||`Level ${v.comment.level}`)},null,10,cd)):Q("v-if",!0),D("span",{class:"wl-time",textContent:Y(p.value)},null,8,ud),D("div",fd,[m.value||w.value?(L(),j(he,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=z=>r("edit",v.comment))},[oe(K(Bf))]),D("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=z=>r("delete",v.comment))},[oe(K(Pf))])],64)):Q("v-if",!0),D("button",{type:"button",class:"wl-like",title:h.value?u.value.cancelLike:u.value.like,onClick:$[2]||($[2]=z=>r("like",v.comment))},[oe(K(Uf),{active:h.value},null,8,["active"]),ft(" "+Y("like"in v.comment?v.comment.like:""),1)],8,hd),D("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?u.value.cancelReply:u.value.reply,onClick:$[3]||($[3]=z=>r("reply",x.value?null:v.comment))},[oe(K(Vf))],10,dd)])]),D("div",pd,[(L(),j(he,null,We(["addr","browser","os"],z=>(L(),j(he,null,[v.comment[z]?(L(),j("span",{key:z,class:ve(`wl-${z}`),"data-value":v.comment[z],textContent:Y(v.comment[z])},null,10,gd)):Q("v-if",!0)],64))),64))]),C.value?Q("v-if",!0):(L(),j("div",md,[v.comment.reply_user?(L(),j("p",vd,[D("a",{href:"#"+v.comment.pid},"@"+Y(v.comment.reply_user.nick),9,bd),$[17]||($[17]=D("span",null,": ",-1))])):Q("v-if",!0),D("div",{innerHTML:v.comment.comment},null,8,yd)])),m.value&&!C.value?(L(),j("div",wd,[D("span",kd,[(L(),j(he,null,We(i,z=>D("button",{key:z,type:"submit",class:ve(`wl-btn wl-${z}`),disabled:v.comment.status===z,onClick:W=>r("status",{status:z,comment:v.comment}),textContent:Y(u.value[z])},null,10,xd)),64))]),m.value&&!("rid"in v.comment)?(L(),j("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=z=>r("sticky",v.comment))},Y(v.comment.sticky?u.value.unsticky:u.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),x.value||C.value?(L(),j("div",{key:2,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":C.value})},[oe(Co,{edit:v.edit,"reply-id":(H=v.reply)==null?void 0:H.objectId,"reply-user":v.comment.nick,"root-id":v.rootId,onLog:$[5]||($[5]=z=>r("log")),onCancelReply:$[6]||($[6]=z=>r("reply",null)),onCancelEdit:$[7]||($[7]=z=>r("edit",null)),onSubmit:$[8]||($[8]=z=>r("submit",z))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in v.comment?(L(),j("div",_d,[(L(!0),j(he,null,We(v.comment.children,z=>(L(),ut(A,{key:z.objectId,comment:z,reply:v.reply,edit:v.edit,"root-id":v.rootId,onLog:$[9]||($[9]=W=>r("log")),onDelete:$[10]||($[10]=W=>r("delete",W)),onEdit:$[11]||($[11]=W=>r("edit",W)),onLike:$[12]||($[12]=W=>r("like",W)),onReply:$[13]||($[13]=W=>r("reply",W)),onStatus:$[14]||($[14]=W=>r("status",W)),onSticky:$[15]||($[15]=W=>r("sticky",W)),onSubmit:$[16]||($[16]=W=>r("submit",W))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Xh)}}});const So="3.3.2",Cd={"data-waline":""},Sd={class:"wl-meta-head"},Ed={class:"wl-count"},Td=["textContent"],Ad={class:"wl-sort"},Rd=["onClick"],Id={class:"wl-cards"},Ld={key:1,class:"wl-operation"},Md=["textContent"],Od={key:2,class:"wl-loading"},jd=["textContent"],zd={key:4,class:"wl-operation"},Pd=["textContent"],Fd={key:5,class:"wl-power"};var Dd=gn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=$r(),s=bo(),l=q("loading"),o=q(0),a=q(1),u=q(0),c=_e(()=>Go(t)),h=q(c.value.commentSorting),p=q([]),m=q(null),w=q(null),x=_e(()=>Zo(c.value.dark)),C=_e(()=>c.value.locale);Hu(x,{id:"waline-darkmode"});let v;const $=P=>{var J;const{serverURL:ce,path:$e,pageSize:we}=c.value,ke=new AbortController;l.value="loading",v==null||v(),ji({serverURL:ce,lang:c.value.lang,path:$e,pageSize:we,sortBy:n[h.value],page:P,signal:ke.signal,token:(J=i.value)==null?void 0:J.token}).then(Me=>{l.value="success",o.value=Me.count,p.value.push(...Me.data),a.value=P,u.value=Me.totalPages}).catch(Me=>{Me.name!=="AbortError"&&(console.error(Me.message),l.value="error")}),v=ke.abort.bind(ke)},H=()=>$(a.value+1),A=()=>{o.value=0,p.value=[],$(1)},z=P=>{h.value!==P&&(h.value=P,A())},W=P=>{m.value=P},U=P=>{w.value=P},X=P=>{if(w.value)w.value.comment=P.comment,w.value.orig=P.orig;else if("rid"in P){const J=p.value.find(({objectId:ce})=>ce===P.rid);if(!J)return;Array.isArray(J.children)||(J.children=[]),J.children.push(P)}else p.value.unshift(P),o.value+=1},Pe=async({comment:P,status:J})=>{var ce;if(P.status===J)return;const{serverURL:$e,lang:we}=c.value;await tn({serverURL:$e,lang:we,token:(ce=i.value)==null?void 0:ce.token,objectId:P.objectId,comment:{status:J}}),P.status=J},G=async P=>{var J;if("rid"in P)return;const{serverURL:ce,lang:$e}=c.value;await tn({serverURL:ce,lang:$e,token:(J=i.value)==null?void 0:J.token,objectId:P.objectId,comment:{sticky:P.sticky?0:1}}),P.sticky=!P.sticky},se=async({objectId:P})=>{var J;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:$e}=c.value;await Pi({serverURL:ce,lang:$e,token:(J=i.value)==null?void 0:J.token,objectId:P}),p.value.some((we,ke)=>we.objectId===P?(p.value=p.value.filter((Me,kt)=>kt!==ke),!0):we.children.some((Me,kt)=>Me.objectId===P?(p.value[ke].children=we.children.filter((zt,He)=>He!==kt),!0):!1))},be=async P=>{var J;const{serverURL:ce,lang:$e}=c.value,{objectId:we}=P,ke=s.value.includes(we);await tn({serverURL:ce,lang:$e,objectId:we,token:(J=i.value)==null?void 0:J.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Me=>Me!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),P.like=(P.like||0)+(ke?-1:1)};return cc("config",c),vn(()=>{qe(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),li(()=>v==null?void 0:v()),(P,J)=>(L(),j("div",Cd,[oe(dh),!m.value&&!w.value?(L(),ut(Co,{key:0,onLog:A,onSubmit:X})):Q("v-if",!0),D("div",Sd,[D("div",Ed,[o.value?(L(),j("span",{key:0,class:"wl-num",textContent:Y(o.value)},null,8,Td)):Q("v-if",!0),ft(" "+Y(C.value.comment),1)]),D("ul",Ad,[(L(!0),j(he,null,We(K(r),ce=>(L(),j("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:$e=>z(ce)},Y(C.value[ce]),11,Rd))),128))])]),D("div",Id,[(L(!0),j(he,null,We(p.value,ce=>(L(),ut($d,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:m.value,edit:w.value,onLog:A,onReply:W,onEdit:U,onSubmit:X,onStatus:Pe,onDelete:se,onSticky:G,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(L(),j("div",Ld,[D("button",{type:"button",class:"wl-btn",onClick:A,textContent:Y(C.value.refresh)},null,8,Md)])):l.value==="loading"?(L(),j("div",Od,[oe(K(In),{size:30})])):p.value.length?a.value<u.value?(L(),j("div",zd,[D("button",{type:"button",class:"wl-btn",onClick:H,textContent:Y(C.value.more)},null,8,Pd)])):Q("v-if",!0):(L(),j("div",{key:3,class:"wl-empty",textContent:Y(C.value.sofa)},null,8,jd)),c.value.copyright?(L(),j("div",Fd,[J[0]||(J[0]=ft(" Powered by ")),J[1]||(J[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ft(" v"+Y(K(So)),1)])):Q("v-if",!0)]))}});const Eo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},To=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=u=>{const c=Li(u);return c!==null&&t!==c},a=u=>Ui({serverURL:Fn(e),paths:u.map(c=>Li(c)??t),lang:i,signal:s.signal}).then(c=>Eo(c,u)).catch(Vl);if(r){const u=l.filter(h=>!o(h)),c=l.filter(o);Hi({serverURL:Fn(e),path:t,lang:i}).then(h=>Eo(h,u)),c.length&&a(c)}else a(l);return s.abort.bind(s)},Ud=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?_i(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=un({...i}),o=un({comment:n,pageview:r,path:t}),a=()=>{o.comment&&go({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},u=()=>{o.pageview&&To({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},c=s?yu(()=>ne(Dd,{path:o.path,...l})):null;c&&c.mount(s);const h=al(a),p=al(u);return{el:s,update:({comment:m,pageview:w,path:x=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([v,$])=>{l[v]=$}),o.path=x,m!==void 0&&(o.comment=m),w!==void 0&&(o.pageview=w)},destroy:()=>{c==null||c.unmount(),h(),p()}}},Hd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=$r(),l=_i(e),o=new AbortController;return Ni({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(u=>`<li class="wl-recent-item"><a href="${u.url}">${u.nick}</a>:${u.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Nd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=_i(e),o=new AbortController;return Vi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...ts(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((u,c)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link&&`<a href="${u.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${c+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,u.level&&`<span class="wl-badge">${r?r[`level${u.level}`]:`Level ${u.level}`}</span>`,u.label&&`<span class="wl-badge">${u.label}</span>`,"</div>",u.link&&u.link,"</div>",u.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=Hd,re.UserList=Nd,re.addComment=zi,re.commentCount=go,re.defaultLocales=Pn,re.deleteComment=Pi,re.fetchCommentCount=Fi,re.getArticleCounter=Er,re.getComment=ji,re.getPageview=Ui,re.getRecentComment=Ni,re.getUserList=Vi,re.init=Ud,re.login=Di,re.pageviewCount=To,re.updateArticleCounter=zn,re.updateComment=tn,re.updatePageview=Hi,re.version=So});
|
|
73
84
|
//# sourceMappingURL=waline.umd.js.map
|