@shinigamidev/comment-client
Version:
client for waline comment system
21 lines • 210 kB
JavaScript
var Ya=Object.defineProperty;var us=e=>{throw TypeError(e)};var ec=(e,t,n)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ke=(e,t,n)=>ec(e,typeof t!="symbol"?t+"":t,n),tc=(e,t,n)=>t.has(e)||us("Cannot "+n);var fs=(e,t,n)=>t.has(e)?us("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);var gn=(e,t,n)=>(tc(e,t,"access private method"),n);var wt,Ja,os,Qa;const ds={"Content-Type":"application/json"},ct=e=>`${e.replace(/\/?$/,"/")}api/`,Mt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Yr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${ct(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>Mt(s,"Get counter").data),Zn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${ct(e)}article?lang=${t}`,{method:"POST",headers:ds,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>Mt(s,"Update counter").data),hs=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:o,token:l})=>{const a={};return l&&(a.Authorization=`Bearer ${l}`),fetch(`${ct(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:o,headers:a}).then(c=>c.json()).then(c=>Mt(c,"Get comment data").data)},ps=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${ct(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},gs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${ct(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>Mt(i,"Delete comment")),mn=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${ct(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...ds,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>Mt(s,"Update comment")),ms=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${ct(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>Mt(i,"Get comment count").data),vs=({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 o=({data:l})=>{!l||typeof l!="object"||l.type!=="userInfo"||l.data.token&&(i==null||i.close(),window.removeEventListener("message",o),s(l.data))};window.addEventListener("message",o)})},ys=({serverURL:e,lang:t,paths:n,signal:r})=>Yr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),bs=e=>Zn({...e,type:"time",action:"inc"}),ws=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${ct(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(o=>o.json())},_s=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${ct(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>Mt(i,"user list")).then(i=>i.data),nc=["nick","mail","link"],ks=e=>e.filter(t=>nc.includes(t)),xs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],rc=["//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"],ic=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}),sc=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>',oc=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()})}},lc=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,ac=/</,cc=/(?:^|\s)\/\/(.+?)$/gm,uc=/\/\*([\S\s]*?)\*\//gm,fc=new RegExp(`(${lc.source}|${ac.source})|((?:${cc.source})|(?:${uc.source}))`,"gmi"),Cs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],ei={},dc=e=>{let t=0;return e.replace(fc,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"<";let s;ei[r]?s=ei[r]:(s=Cs[t],ei[r]=s);const o=`<span style="color: #${s}">${r}</span>`;return t=++t%Cs.length,o})},hc=["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"],ut=e=>Object.fromEntries(e.map((t,n)=>[hc[n],t]));var pc=ut(["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?"]),Ts=ut(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Es=ut(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Ss=ut(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),gc=ut(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Is=ut(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Rs=ut(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),As=ut(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),mc=ut(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ls="en-US",Xn={zh:As,"zh-cn":As,"zh-tw":mc,en:Ts,"en-us":Ts,fr:Es,"fr-fr":Es,jp:Ss,"jp-jp":Ss,"pt-br":gc,ru:Is,"ru-ru":Is,vi:Rs,"vi-vn":Rs,de:pc},$s=e=>Xn[e.toLowerCase()]||Xn[Ls.toLowerCase()],Os=e=>Object.keys(Xn).includes(e.toLowerCase())?e:Ls,Ms=e=>{try{e=decodeURI(e)}catch{}return e},Ps=(e="")=>e.replace(/\/$/u,""),js=e=>/^(https?:)?\/\//.test(e),Jn=e=>{const t=Ps(e);return js(t)?t:`https://${t}`},vc=e=>Array.isArray(e)?e:e?[0,e]:!1,ti=(e,t)=>typeof e=="function"?e:e===!1?!1:t,yc=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=xs,meta:s=["nick","mail","link"],requiredMeta:o=[],dark:l=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:d,texRenderer:m,copyright:y=!0,login:b="enable",search:x,reaction:_,recaptchaV3Key:R="",turnstileKey:M="",commentSorting:P="latest",...z})=>({serverURL:Jn(e),path:Ms(t),lang:Os(n),locale:{...$s(Os(n)),...typeof r=="object"?r:{}},wordLimit:vc(c),meta:ks(s),requiredMeta:ks(o),imageUploader:ti(u,ic),highlighter:ti(d,dc),texRenderer:ti(m,sc),dark:l,emoji:typeof i=="boolean"?i?xs:[]:i,pageSize:a,login:b,copyright:y,search:x===!1?!1:typeof x=="object"?x:oc(n),recaptchaV3Key:R,turnstileKey:M,reaction:Array.isArray(_)?_:_===!0?rc:[],commentSorting:P,...z}),Yt=e=>typeof e=="string",ni="{--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}",bc=e=>Yt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${ni}}`:`${e}${ni}`:e===!0?`:root${ni}`:"",ri=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},wc=e=>{const t=ri(e.getDate(),2),n=ri(e.getMonth()+1,2);return`${ri(e.getFullYear(),2)}-${n}-${t}`},_c=(e,t,n)=>{if(!e)return"";const r=Yt(e)?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const o=i%864e5,l=Math.floor(o/(3600*1e3));if(l===0){const a=o%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${l} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:wc(r)},kc=/^[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])?)*$/,xc=e=>kc.test(e);/**
* @vue/shared v3.4.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function ii(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ve={},en=[],ft=()=>{},Cc=()=>!1,Qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),si=e=>e.startsWith("onUpdate:"),Se=Object.assign,zs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Tc=Object.prototype.hasOwnProperty,ie=(e,t)=>Tc.call(e,t),G=Array.isArray,tn=e=>Yn(e)==="[object Map]",Bs=e=>Yn(e)==="[object Set]",ue=e=>typeof e=="function",xe=e=>typeof e=="string",kt=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",Ns=e=>(we(e)||ue(e))&&ue(e.then)&&ue(e.catch),Ds=Object.prototype.toString,Yn=e=>Ds.call(e),Ec=e=>Yn(e).slice(8,-1),Hs=e=>Yn(e)==="[object Object]",oi=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vn=ii(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sc=/-(\w)/g,Je=er(e=>e.replace(Sc,(t,n)=>n?n.toUpperCase():"")),Ic=/\B([A-Z])/g,Pt=er(e=>e.replace(Ic,"-$1").toLowerCase()),tr=er(e=>e.charAt(0).toUpperCase()+e.slice(1)),nr=er(e=>e?`on${tr(e)}`:""),xt=(e,t)=>!Object.is(e,t),rr=(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})},li=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rc=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Vs;const ai=()=>Vs||(Vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ct(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=xe(r)?Oc(r):Ct(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(xe(e)||we(e))return e}const Ac=/;(?![^(]*\))/g,Lc=/:([^]+)/,$c=/\/\*[^]*?\*\//g;function Oc(e){const t={};return e.replace($c,"").split(Ac).forEach(n=>{if(n){const r=n.split(Lc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ge(e){let t="";if(xe(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=ge(e[n]);r&&(t+=r+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Mc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pc=ii(Mc);function Us(e){return!!e||e===""}const Ws=e=>!!(e&&e.__v_isRef===!0),re=e=>xe(e)?e:e==null?"":G(e)||we(e)&&(e.toString===Ds||!ue(e.toString))?Ws(e)?re(e.value):JSON.stringify(e,qs,2):String(e),qs=(e,t)=>Ws(t)?qs(e,t.value):tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[ci(r,s)+" =>"]=i,n),{})}:Bs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ci(n))}:kt(t)?ci(t):we(t)&&!G(t)&&!Hs(t)?String(t):t,ci=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let He;class jc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=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 zc(e,t=He){t&&t.active&&t.effects.push(e)}function Ks(){return He}function Bc(e){He&&He.cleanups.push(e)}let jt;class ui{constructor(t,n,r,i){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,zc(this,i)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,zt(),this._dirtyLevel===1&&(this._dirtyLevel=0),Bt()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tt,n=jt;try{return Tt=!0,jt=this,this._runnings++,Gs(this),this.fn()}finally{Zs(this),this._runnings--,jt=n,Tt=t}}stop(){this.active&&(Gs(this),Zs(this),this.onStop&&this.onStop(),this.active=!1)}}function Gs(e){e._trackId++,e._depsLength=0}function Zs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Xs(e.deps[t],e);e.deps.length=e._depsLength}}function Xs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tt=!0,fi=0;const Js=[];function zt(){Js.push(Tt),Tt=!1}function Bt(){const e=Js.pop();Tt=e===void 0?!0:e}function di(){fi++}function hi(){for(fi--;!fi&&pi.length;)pi.shift()()}function Qs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Xs(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const pi=[];function Ys(e,t,n){di();for(const r of e.keys()){let i;r._dirtyLevel<t&&(i??(i=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(i??(i=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&pi.push(r.scheduler)))}hi()}const eo=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},gi=new WeakMap,Nt=Symbol(""),mi=Symbol("");function Me(e,t,n){if(Tt&&jt){let r=gi.get(e);r||gi.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=eo(()=>r.delete(n))),Qs(jt,i)}}function dt(e,t,n,r,i,s){const o=gi.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&G(e)){const a=Number(r);o.forEach((c,u)=>{(u==="length"||!kt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":G(e)?oi(n)&&l.push(o.get("length")):(l.push(o.get(Nt)),tn(e)&&l.push(o.get(mi)));break;case"delete":G(e)||(l.push(o.get(Nt)),tn(e)&&l.push(o.get(mi)));break;case"set":tn(e)&&l.push(o.get(Nt));break}di();for(const a of l)a&&Ys(a,4);hi()}const Nc=ii("__proto__,__v_isRef,__isVue"),to=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt)),no=Dc();function Dc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=oe(this);for(let s=0,o=this.length;s<o;s++)Me(r,"get",s+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(oe)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){zt(),di();const r=oe(this)[t].apply(this,n);return hi(),Bt(),r}}),e}function Hc(e){kt(e)||(e=String(e));const t=oe(this);return Me(t,"has",e),t.hasOwnProperty(e)}class ro{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?eu:fo:s?uo:co).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=G(t);if(!i){if(o&&ie(no,n))return Reflect.get(no,n,r);if(n==="hasOwnProperty")return Hc}const l=Reflect.get(t,n,r);return(kt(n)?to.has(n):Nc(n))||(i||Me(t,"get",n),s)?l:Pe(l)?o&&oi(n)?l:l.value:we(l)?i?bn(l):yn(l):l}}class io extends ro{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Dt(s);if(!nn(r)&&!Dt(r)&&(s=oe(s),r=oe(r)),!G(t)&&Pe(s)&&!Pe(r))return a?!1:(s.value=r,!0)}const o=G(t)&&oi(n)?Number(n)<t.length:ie(t,n),l=Reflect.set(t,n,r,i);return t===oe(i)&&(o?xt(r,s)&&dt(t,"set",n,r):dt(t,"add",n,r)),l}deleteProperty(t,n){const r=ie(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&dt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!kt(n)||!to.has(n))&&Me(t,"has",n),r}ownKeys(t){return Me(t,"iterate",G(t)?"length":Nt),Reflect.ownKeys(t)}}class Fc extends ro{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vc=new io,Uc=new Fc,Wc=new io(!0),vi=e=>e,ir=e=>Reflect.getPrototypeOf(e);function sr(e,t,n=!1,r=!1){e=e.__v_raw;const i=oe(e),s=oe(t);n||(xt(t,s)&&Me(i,"get",t),Me(i,"get",s));const{has:o}=ir(i),l=r?vi:n?wi:_n;if(o.call(i,t))return l(e.get(t));if(o.call(i,s))return l(e.get(s));e!==i&&e.get(t)}function or(e,t=!1){const n=this.__v_raw,r=oe(n),i=oe(e);return t||(xt(e,i)&&Me(r,"has",e),Me(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function lr(e,t=!1){return e=e.__v_raw,!t&&Me(oe(e),"iterate",Nt),Reflect.get(e,"size",e)}function so(e,t=!1){!t&&!nn(e)&&!Dt(e)&&(e=oe(e));const n=oe(this);return ir(n).has.call(n,e)||(n.add(e),dt(n,"add",e,e)),this}function oo(e,t,n=!1){!n&&!nn(t)&&!Dt(t)&&(t=oe(t));const r=oe(this),{has:i,get:s}=ir(r);let o=i.call(r,e);o||(e=oe(e),o=i.call(r,e));const l=s.call(r,e);return r.set(e,t),o?xt(t,l)&&dt(r,"set",e,t):dt(r,"add",e,t),this}function lo(e){const t=oe(this),{has:n,get:r}=ir(t);let i=n.call(t,e);i||(e=oe(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&dt(t,"delete",e,void 0),s}function ao(){const e=oe(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function ar(e,t){return function(r,i){const s=this,o=s.__v_raw,l=oe(o),a=t?vi:e?wi:_n;return!e&&Me(l,"iterate",Nt),o.forEach((c,u)=>r.call(i,a(c),a(u),s))}}function cr(e,t,n){return function(...r){const i=this.__v_raw,s=oe(i),o=tn(s),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=i[e](...r),u=n?vi:t?wi:_n;return!t&&Me(s,"iterate",a?mi:Nt),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:l?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function Et(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qc(){const e={get(s){return sr(this,s)},get size(){return lr(this)},has:or,add:so,set:oo,delete:lo,clear:ao,forEach:ar(!1,!1)},t={get(s){return sr(this,s,!1,!0)},get size(){return lr(this)},has:or,add(s){return so.call(this,s,!0)},set(s,o){return oo.call(this,s,o,!0)},delete:lo,clear:ao,forEach:ar(!1,!0)},n={get(s){return sr(this,s,!0)},get size(){return lr(this,!0)},has(s){return or.call(this,s,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:ar(!0,!1)},r={get(s){return sr(this,s,!0,!0)},get size(){return lr(this,!0)},has(s){return or.call(this,s,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:ar(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=cr(s,!1,!1),n[s]=cr(s,!0,!1),t[s]=cr(s,!1,!0),r[s]=cr(s,!0,!0)}),[e,n,t,r]}const[Kc,Gc,Zc,Xc]=qc();function yi(e,t){const n=t?e?Xc:Zc:e?Gc:Kc;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 Jc={get:yi(!1,!1)},Qc={get:yi(!1,!0)},Yc={get:yi(!0,!1)},co=new WeakMap,uo=new WeakMap,fo=new WeakMap,eu=new WeakMap;function tu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nu(e){return e.__v_skip||!Object.isExtensible(e)?0:tu(Ec(e))}function yn(e){return Dt(e)?e:bi(e,!1,Vc,Jc,co)}function ru(e){return bi(e,!1,Wc,Qc,uo)}function bn(e){return bi(e,!0,Uc,Yc,fo)}function bi(e,t,n,r,i){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=nu(e);if(o===0)return e;const l=new Proxy(e,o===2?r:n);return i.set(e,l),l}function wn(e){return Dt(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function Dt(e){return!!(e&&e.__v_isReadonly)}function nn(e){return!!(e&&e.__v_isShallow)}function ho(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function iu(e){return Object.isExtensible(e)&&Fs(e,"__v_skip",!0),e}const _n=e=>we(e)?yn(e):e,wi=e=>we(e)?bn(e):e;class po{constructor(t,n,r,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ui(()=>t(this._value),()=>ur(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=oe(this);return(!t._cacheable||t.effect.dirty)&&xt(t._value,t._value=t.effect.run())&&ur(t,4),go(t),t.effect._dirtyLevel>=2&&ur(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function su(e,t,n=!1){let r,i;const s=ue(e);return s?(r=e,i=ft):(r=e.get,i=e.set),new po(r,i,s||!i,n)}function go(e){var t;Tt&&jt&&(e=oe(e),Qs(jt,(t=e.dep)!=null?t:e.dep=eo(()=>e.dep=void 0,e instanceof po?e:void 0)))}function ur(e,t=4,n,r){e=oe(e);const i=e.dep;i&&Ys(i,t)}function Pe(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return mo(e,!1)}function ou(e){return mo(e,!0)}function mo(e,t){return Pe(e)?e:new lu(e,t)}class lu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:oe(t),this._value=n?t:_n(t)}get value(){return go(this),this._value}set value(t){const n=this.__v_isShallow||nn(t)||Dt(t);t=n?t:oe(t),xt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_n(t),ur(this,4))}}function _i(e){return Pe(e)?e.value:e}const au={get:(e,t,n)=>_i(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Pe(i)&&!Pe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function vo(e){return wn(e)?e:new Proxy(e,au)}/**
* @vue/runtime-core v3.4.35
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function St(e,t,n,r){try{return r?e(...r):e()}catch(i){fr(i,t,n)}}function Qe(e,t,n,r){if(ue(e)){const i=St(e,t,n,r);return i&&Ns(i)&&i.catch(s=>{fr(s,t,n)}),i}if(G(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Qe(e[s],t,n,r));return i}}function fr(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,o,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){zt(),St(a,null,10,[e,o,l]),Bt();return}}cu(e,n,i,r)}function cu(e,t,n,r=!0){console.error(e)}let kn=!1,ki=!1;const Re=[];let rt=0;const rn=[];let It=null,Ht=0;const yo=Promise.resolve();let xi=null;function sn(e){const t=xi||yo;return e?t.then(this?e.bind(this):e):t}function uu(e){let t=rt+1,n=Re.length;for(;t<n;){const r=t+n>>>1,i=Re[r],s=xn(i);s<e||s===e&&i.pre?t=r+1:n=r}return t}function Ci(e){(!Re.length||!Re.includes(e,kn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Re.push(e):Re.splice(uu(e.id),0,e),bo())}function bo(){!kn&&!ki&&(ki=!0,xi=yo.then(ko))}function fu(e){const t=Re.indexOf(e);t>rt&&Re.splice(t,1)}function du(e){G(e)?rn.push(...e):(!It||!It.includes(e,e.allowRecurse?Ht+1:Ht))&&rn.push(e),bo()}function wo(e,t,n=kn?rt+1:0){for(;n<Re.length;n++){const r=Re[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;Re.splice(n,1),n--,r()}}}function _o(e){if(rn.length){const t=[...new Set(rn)].sort((n,r)=>xn(n)-xn(r));if(rn.length=0,It){It.push(...t);return}for(It=t,Ht=0;Ht<It.length;Ht++){const n=It[Ht];n.active!==!1&&n()}It=null,Ht=0}}const xn=e=>e.id==null?1/0:e.id,hu=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ko(e){ki=!1,kn=!0,Re.sort(hu);try{for(rt=0;rt<Re.length;rt++){const t=Re[rt];t&&t.active!==!1&&St(t,t.i,t.i?15:14)}}finally{rt=0,Re.length=0,_o(),kn=!1,xi=null,(Re.length||rn.length)&&ko()}}let Te=null,dr=null;function hr(e){const t=Te;return Te=e,dr=e&&e.type.__scopeId||null,t}function pu(e){dr=e}function gu(){dr=null}function on(e,t=Te,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Qo(-1);const s=hr(t);let o;try{o=e(...i)}finally{hr(s),r._d&&Qo(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function pr(e,t){if(Te===null)return e;const n=Ir(Te),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,l,a=ve]=t[i];s&&(ue(s)&&(s={mounted:s,updated:s}),s.deep&&Rt(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ft(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];s&&(l.oldValue=s[o].value);let a=l.dir[r];a&&(zt(),Qe(a,n,8,[e.el,l,e,t]),Bt())}}const ln=Symbol("_leaveCb"),gr=Symbol("_enterCb");function mu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vt(()=>{e.isMounted=!0}),Co(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],vu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge};function yu(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ti(e,t,n,r,i){const{appear:s,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:y,onAfterLeave:b,onLeaveCancelled:x,onBeforeAppear:_,onAppear:R,onAfterAppear:M,onAppearCancelled:P}=t,z=String(e.key),K=yu(n,e),B=(W,$)=>{W&&Qe(W,r,9,$)},D=(W,$)=>{const V=$[1];B(W,$),G(W)?W.every(A=>A.length<=1)&&V():W.length<=1&&V()},j={mode:o,persisted:l,beforeEnter(W){let $=a;if(!n.isMounted)if(s)$=_||a;else return;W[ln]&&W[ln](!0);const V=K[z];V&&an(e,V)&&V.el[ln]&&V.el[ln](),B($,[W])},enter(W){let $=c,V=u,A=d;if(!n.isMounted)if(s)$=R||c,V=M||u,A=P||d;else return;let ce=!1;const pe=W[gr]=Ae=>{ce||(ce=!0,Ae?B(A,[W]):B(V,[W]),j.delayedLeave&&j.delayedLeave(),W[gr]=void 0)};$?D($,[W,pe]):pe()},leave(W,$){const V=String(e.key);if(W[gr]&&W[gr](!0),n.isUnmounting)return $();B(m,[W]);let A=!1;const ce=W[ln]=pe=>{A||(A=!0,$(),pe?B(x,[W]):B(b,[W]),W[ln]=void 0,K[V]===e&&delete K[V])};K[V]=e,y?D(y,[W,ce]):ce()},clone(W){return Ti(W,t,n,r)}};return j}function mr(e,t){e.shapeFlag&6&&e.component?mr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xo(e,t=!1,n){let r=[],i=0;for(let s=0;s<e.length;s++){let o=e[s];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===le?(o.patchFlag&128&&i++,r=r.concat(xo(o.children,t,l))):(t||o.type!==ht)&&r.push(l!=null?qt(o,{key:l}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Ze(e,t){return ue(e)?Se({name:e.name},t,{setup:e}):e}const Cn=e=>!!e.type.__asyncLoader,bu=e=>e.type.__isKeepAlive;function wu(e,t,n=Oe,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{zt();const l=Bi(n),a=Qe(t,n,e,o);return l(),Bt(),a});return r?i.unshift(s):i.push(s),s}}const vr=e=>(t,n=Oe)=>{(!Sr||e==="sp")&&wu(e,(...r)=>t(...r),n)},Vt=vr("m"),_u=vr("u"),Co=vr("bum"),Ei=vr("um"),To="components";function Ut(e,t){return So(To,e,!0,t)||e}const Eo=Symbol.for("v-ndc");function Si(e){return xe(e)?So(To,e,!1)||e:e||Eo}function So(e,t,n=!0,r=!1){const i=Te||Oe;if(i){const s=i.type;{const l=ff(s,!1);if(l&&(l===t||l===Je(t)||l===tr(Je(t))))return s}const o=Io(i[e]||s[e],t)||Io(i.appContext[e],t);return!o&&r?s:o}}function Io(e,t){return e&&(e[t]||e[Je(t)]||e[tr(Je(t))])}function Fe(e,t,n,r){let i;const s=n;if(G(e)||xe(e)){i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(e[o],o,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(we(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=t(e[c],c,l,s)}}else i=[];return i}function Ro(e,t,n={},r,i){if(Te.isCE||Te.parent&&Cn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),ae("slot",n,r);let s=e[t];s&&s._c&&(s._d=!1),C();const o=s&&Ao(s(n)),l=ke(le,{key:(n.key||o&&o.key||`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Ao(e){return e.some(t=>kr(t)?!(t.type===ht||t.type===le&&!Ao(t.children)):!0)?e:null}function ku(e,t){const n={};for(const r in e)n[nr(r)]=e[r];return n}const Ii=e=>e?nl(e)?Ir(e):Ii(e.parent):null,Tn=Se(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=>Ii(e.parent),$root:e=>Ii(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ci(e.update)}),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>ft}),Ri=(e,t)=>e!==ve&&!e.__isScriptSetup&&ie(e,t),xu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Ri(r,t))return o[t]=1,r[t];if(i!==ve&&ie(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&ie(c,t))return o[t]=3,s[t];if(n!==ve&&ie(n,t))return o[t]=4,n[t];o[t]=0}}const u=Tn[t];let d,m;if(u)return t==="$attrs"&&Me(e.attrs,"get",""),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ve&&ie(n,t))return o[t]=4,n[t];if(m=a.config.globalProperties,ie(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Ri(i,t)?(i[t]=n,!0):r!==ve&&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}},o){let l;return!!n[o]||e!==ve&&ie(e,o)||Ri(t,o)||(l=s[0])&&ie(l,o)||ie(r,o)||ie(Tn,o)||ie(i.config.globalProperties,o)},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 Lo(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Cu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,l=s.get(t);let a;return l?a=l:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(c=>yr(a,c,o,!0)),yr(a,t,o)),we(t)&&s.set(t,a),a}function yr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&yr(e,s,n,!0),i&&i.forEach(o=>yr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=Tu[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Tu={data:$o,props:Mo,emits:Mo,methods:En,computed:En,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:En,directives:En,watch:Su,provide:$o,inject:Eu};function $o(e,t){return t?e?function(){return Se(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Eu(e,t){return En(Oo(e),Oo(t))}function Oo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Se(Object.create(null),e,t):t}function Mo(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Se(Object.create(null),Lo(e),Lo(t??{})):t}function Su(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const r in t)n[r]=Le(e[r],t[r]);return n}function Po(){return{app:null,config:{isNativeTag:Cc,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 Iu=0;function Ru(e,t){return function(r,i=null){ue(r)||(r=Se({},r)),i!=null&&!we(i)&&(i=null);const s=Po(),o=new WeakSet;let l=!1;const a=s.app={_uid:Iu++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:hf,get config(){return s.config},set config(c){},use(c,...u){return o.has(c)||(c&&ue(c.install)?(o.add(c),c.install(a,...u)):ue(c)&&(o.add(c),c(a,...u))),a},mixin(c){return a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,d){if(!l){const m=ae(r,i);return m.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(m,c):e(m,c,d),l=!0,a._container=c,c.__vue_app__=a,Ir(m.component)}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){const u=Sn;Sn=a;try{return c()}finally{Sn=u}}};return a}}let Sn=null;function jo(e,t){if(Oe){let n=Oe.provides;const r=Oe.parent&&Oe.parent.provides;r===n&&(n=Oe.provides=Object.create(r)),n[e]=t}}function In(e,t,n=!1){const r=Oe||Te;if(r||Sn){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Sn._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ue(t)?t.call(r&&r.proxy):t}}const zo={},Bo=()=>Object.create(zo),No=e=>Object.getPrototypeOf(e)===zo;function Au(e,t,n,r=!1){const i={},s=Bo();e.propsDefaults=Object.create(null),Do(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:ru(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Lu(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,l=oe(i),[a]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(wr(e.emitsOptions,m))continue;const y=t[m];if(a)if(ie(s,m))y!==s[m]&&(s[m]=y,c=!0);else{const b=Je(m);i[b]=Ai(a,l,b,y,e,!1)}else y!==s[m]&&(s[m]=y,c=!0)}}}else{Do(e,t,i,s)&&(c=!0);let u;for(const d in l)(!t||!ie(t,d)&&((u=Pt(d))===d||!ie(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Ai(a,l,d,void 0,e,!0)):delete i[d]);if(s!==l)for(const d in s)(!t||!ie(t,d))&&(delete s[d],c=!0)}c&&dt(e.attrs,"set","")}function Do(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(vn(a))continue;const c=t[a];let u;i&&ie(i,u=Je(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:wr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,o=!0)}if(s){const a=oe(n),c=l||ve;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ai(i,a,d,c[d],e,!ie(c,d))}}return o}function Ai(e,t,n,r,i,s){const o=e[n];if(o!=null){const l=ie(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&ue(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=Bi(i);r=c[n]=a.call(null,t),u()}}else r=a}o[0]&&(s&&!l?r=!1:o[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function $u(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},l=[];if(!s&&!!1)return we(e)&&r.set(e,en),en;if(G(s))for(let u=0;u<s.length;u++){const d=Je(s[u]);Ho(d)&&(o[d]=ve)}else if(s)for(const u in s){const d=Je(u);if(Ho(d)){const m=s[u],y=o[d]=G(m)||ue(m)?{type:m}:Se({},m),b=y.type;let x=!1,_=!0;if(G(b))for(let R=0;R<b.length;++R){const M=b[R],P=ue(M)&&M.name;if(P==="Boolean"){x=!0;break}else P==="String"&&(_=!1)}else x=ue(b)&&b.name==="Boolean";y[0]=x,y[1]=_,(x||ie(y,"default"))&&l.push(d)}}const c=[o,l];return we(e)&&r.set(e,c),c}function Ho(e){return e[0]!=="$"&&!vn(e)}const Fo=e=>e[0]==="_"||e==="$stable",Li=e=>G(e)?e.map(it):[it(e)],Ou=(e,t,n)=>{if(t._n)return t;const r=on((...i)=>Li(t(...i)),n);return r._c=!1,r},Vo=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fo(i))continue;const s=e[i];if(ue(s))t[i]=Ou(i,s,r);else if(s!=null){const o=Li(s);t[i]=()=>o}}},Uo=(e,t)=>{const n=Li(t);e.slots.default=()=>n},Wo=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Mu=(e,t,n)=>{const r=e.slots=Bo();if(e.vnode.shapeFlag&32){const i=t._;i?(Wo(r,t,n),n&&Fs(r,"_",i,!0)):Vo(t,r)}else t&&Uo(e,t)},Pu=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=ve;if(r.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:Wo(i,t,n):(s=!t.$stable,Vo(t,i)),o=t}else t&&(Uo(e,t),o={default:1});if(s)for(const l in i)!Fo(l)&&o[l]==null&&delete i[l]};function $i(e,t,n,r,i=!1){if(G(e)){e.forEach((m,y)=>$i(m,t&&(G(t)?t[y]:t),n,r,i));return}if(Cn(r)&&!i)return;const s=r.shapeFlag&4?Ir(r.component):r.el,o=i?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ve?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(xe(c)?(u[c]=null,ie(d,c)&&(d[c]=null)):Pe(c)&&(c.value=null)),ue(a))St(a,l,12,[o,u]);else{const m=xe(a),y=Pe(a);if(m||y){const b=()=>{if(e.f){const x=m?ie(d,a)?d[a]:u[a]:a.value;i?G(x)&&zs(x,s):G(x)?x.includes(s)||x.push(s):m?(u[a]=[s],ie(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else m?(u[a]=o,ie(d,a)&&(d[a]=o)):y&&(a.value=o,e.k&&(u[e.k]=o))};o?(b.id=-1,je(b,n)):b()}}}const ju=Symbol("_vte"),zu=e=>e.__isTeleport;function Bu(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ai().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const je=Yu;function Nu(e){return Du(e)}function Du(e,t){Bu();const n=ai();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:y=ft,insertStaticContent:b}=e,x=(f,h,p,g=null,v=null,w=null,E=void 0,S=null,T=!!h.dynamicChildren)=>{if(f===h)return;f&&!an(f,h)&&(g=lt(f),te(f,v,w,!0),f=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:k,ref:O,shapeFlag:H}=h;switch(k){case _r:_(f,h,p,g);break;case ht:R(f,h,p,g);break;case Pi:f==null&&M(h,p,g,E);break;case le:A(f,h,p,g,v,w,E,S,T);break;default:H&1?K(f,h,p,g,v,w,E,S,T):H&6?ce(f,h,p,g,v,w,E,S,T):(H&64||H&128)&&k.process(f,h,p,g,v,w,E,S,T,Be)}O!=null&&v&&$i(O,f&&f.ref,w,h||f,!h)},_=(f,h,p,g)=>{if(f==null)r(h.el=l(h.children),p,g);else{const v=h.el=f.el;h.children!==f.children&&c(v,h.children)}},R=(f,h,p,g)=>{f==null?r(h.el=a(h.children||""),p,g):h.el=f.el},M=(f,h,p,g)=>{[f.el,f.anchor]=b(f.children,h,p,g,f.el,f.anchor)},P=({el:f,anchor:h},p,g)=>{let v;for(;f&&f!==h;)v=m(f),r(f,p,g),f=v;r(h,p,g)},z=({el:f,anchor:h})=>{let p;for(;f&&f!==h;)p=m(f),i(f),f=p;i(h)},K=(f,h,p,g,v,w,E,S,T)=>{h.type==="svg"?E="svg":h.type==="math"&&(E="mathml"),f==null?B(h,p,g,v,w,E,S,T):W(f,h,v,w,E,S,T)},B=(f,h,p,g,v,w,E,S)=>{let T,k;const{props:O,shapeFlag:H,transition:N,dirs:q}=f;if(T=f.el=o(f.type,w,O&&O.is,O),H&8?u(T,f.children):H&16&&j(f.children,T,null,g,v,Oi(f,w),E,S),q&&Ft(f,null,g,"created"),D(T,f,f.scopeId,E,g),O){for(const he in O)he!=="value"&&!vn(he)&&s(T,he,null,O[he],w,g);"value"in O&&s(T,"value",null,O.value,w),(k=O.onVnodeBeforeMount)&&st(k,g,f)}q&&Ft(f,null,g,"beforeMount");const Q=Hu(v,N);Q&&N.beforeEnter(T),r(T,h,p),((k=O&&O.onVnodeMounted)||Q||q)&&je(()=>{k&&st(k,g,f),Q&&N.enter(T),q&&Ft(f,null,g,"mounted")},v)},D=(f,h,p,g,v)=>{if(p&&y(f,p),g)for(let w=0;w<g.length;w++)y(f,g[w]);if(v){let w=v.subTree;if(h===w){const E=v.vnode;D(f,E,E.scopeId,E.slotScopeIds,v.parent)}}},j=(f,h,p,g,v,w,E,S,T=0)=>{for(let k=T;k<f.length;k++){const O=f[k]=S?At(f[k]):it(f[k]);x(null,O,h,p,g,v,w,E,S)}},W=(f,h,p,g,v,w,E)=>{const S=h.el=f.el;let{patchFlag:T,dynamicChildren:k,dirs:O}=h;T|=f.patchFlag&16;const H=f.props||ve,N=h.props||ve;let q;if(p&&Wt(p,!1),(q=N.onVnodeBeforeUpdate)&&st(q,p,h,f),O&&Ft(h,f,p,"beforeUpdate"),p&&Wt(p,!0),(H.innerHTML&&N.innerHTML==null||H.textContent&&N.textContent==null)&&u(S,""),k?$(f.dynamicChildren,k,S,p,g,Oi(h,v),w):E||fe(f,h,S,null,p,g,Oi(h,v),w,!1),T>0){if(T&16)V(S,H,N,p,v);else if(T&2&&H.class!==N.class&&s(S,"class",null,N.class,v),T&4&&s(S,"style",H.style,N.style,v),T&8){const Q=h.dynamicProps;for(let he=0;he<Q.length;he++){const U=Q[he],be=H[U],_e=N[U];(_e!==be||U==="value")&&s(S,U,be,_e,v,p)}}T&1&&f.children!==h.children&&u(S,h.children)}else!E&&k==null&&V(S,H,N,p,v);((q=N.onVnodeUpdated)||O)&&je(()=>{q&&st(q,p,h,f),O&&Ft(h,f,p,"updated")},g)},$=(f,h,p,g,v,w,E)=>{for(let S=0;S<h.length;S++){const T=f[S],k=h[S],O=T.el&&(T.type===le||!an(T,k)||T.shapeFlag&70)?d(T.el):p;x(T,k,O,null,g,v,w,E,!0)}},V=(f,h,p,g,v)=>{if(h!==p){if(h!==ve)for(const w in h)!vn(w)&&!(w in p)&&s(f,w,h[w],null,v,g);for(const w in p){if(vn(w))continue;const E=p[w],S=h[w];E!==S&&w!=="value"&&s(f,w,S,E,v,g)}"value"in p&&s(f,"value",h.value,p.value,v)}},A=(f,h,p,g,v,w,E,S,T)=>{const k=h.el=f?f.el:l(""),O=h.anchor=f?f.anchor:l("");let{patchFlag:H,dynamicChildren:N,slotScopeIds:q}=h;q&&(S=S?S.concat(q):q),f==null?(r(k,p,g),r(O,p,g),j(h.children||[],p,O,v,w,E,S,T)):H>0&&H&64&&N&&f.dynamicChildren?($(f.dynamicChildren,N,p,v,w,E,S),(h.key!=null||v&&h===v.subTree)&&qo(f,h,!0)):fe(f,h,p,O,v,w,E,S,T)},ce=(f,h,p,g,v,w,E,S,T)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?v.ctx.activate(h,p,g,E,T):pe(h,p,g,v,w,E,T):Ae(f,h,T)},pe=(f,h,p,g,v,w,E)=>{const S=f.component=of(f,g,v);if(bu(f)&&(S.ctx.renderer=Be),lf(S,!1,E),S.asyncDep){if(v&&v.registerDep(S,Ee,E),!f.el){const T=S.subTree=ae(ht);R(null,T,h,p)}}else Ee(S,f,h,p,v,w,E)},Ae=(f,h,p)=>{const g=h.component=f.component;if(Xu(f,h,p))if(g.asyncDep&&!g.asyncResolved){qe(g,h,p);return}else g.next=h,fu(g.update),g.effect.dirty=!0,g.update();else h.el=f.el,g.vnode=h},Ee=(f,h,p,g,v,w,E)=>{const S=()=>{if(f.isMounted){let{next:O,bu:H,u:N,parent:q,vnode:Q}=f;{const Qt=Ko(f);if(Qt){O&&(O.el=Q.el,qe(f,O,E)),Qt.asyncDep.then(()=>{f.isUnmounted||S()});return}}let he=O,U;Wt(f,!1),O?(O.el=Q.el,qe(f,O,E)):O=Q,H&&rr(H),(U=O.props&&O.props.onVnodeBeforeUpdate)&&st(U,q,O,Q),Wt(f,!0);const be=Mi(f),_e=f.subTree;f.subTree=be,x(_e,be,d(_e.el),lt(_e),f,v,w),O.el=be.el,he===null&&Ju(f,be.el),N&&je(N,v),(U=O.props&&O.props.onVnodeUpdated)&&je(()=>st(U,q,O,Q),v)}else{let O;const{el:H,props:N}=h,{bm:q,m:Q,parent:he}=f,U=Cn(h);if(Wt(f,!1),q&&rr(q),!U&&(O=N&&N.onVnodeBeforeMount)&&st(O,he,h),Wt(f,!0),H&&_t){const be=()=>{f.subTree=Mi(f),_t(H,f.subTree,f,v,null)};U?h.type.__asyncLoader().then(()=>!f.isUnmounted&&be()):be()}else{const be=f.subTree=Mi(f);x(null,be,p,g,f,v,w),h.el=be.el}if(Q&&je(Q,v),!U&&(O=N&&N.onVnodeMounted)){const be=h;je(()=>st(O,he,be),v)}(h.shapeFlag&256||he&&Cn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&je(f.a,v),f.isMounted=!0,h=p=g=null}},T=f.effect=new ui(S,ft,()=>Ci(k),f.scope),k=f.update=()=>{T.dirty&&T.run()};k.i=f,k.id=f.uid,Wt(f,!0),k()},qe=(f,h,p)=>{h.component=f;const g=f.vnode.props;f.vnode=h,f.next=null,Lu(f,h.props,g,p),Pu(f,h.children,p),zt(),wo(f),Bt()},fe=(f,h,p,g,v,w,E,S,T=!1)=>{const k=f&&f.children,O=f?f.shapeFlag:0,H=h.children,{patchFlag:N,shapeFlag:q}=h;if(N>0){if(N&128){X(k,H,p,g,v,w,E,S,T);return}else if(N&256){F(k,H,p,g,v,w,E,S,T);return}}q&8?(O&16&&Ce(k,v,w),H!==k&&u(p,H)):O&16?q&16?X(k,H,p,g,v,w,E,S,T):Ce(k,v,w,!0):(O&8&&u(p,""),q&16&&j(H,p,g,v,w,E,S,T))},F=(f,h,p,g,v,w,E,S,T)=>{f=f||en,h=h||en;const k=f.length,O=h.length,H=Math.min(k,O);let N;for(N=0;N<H;N++){const q=h[N]=T?At(h[N]):it(h[N]);x(f[N],q,p,null,v,w,E,S,T)}k>O?Ce(f,v,w,!0,!1,H):j(h,p,g,v,w,E,S,T,H)},X=(f,h,p,g,v,w,E,S,T)=>{let k=0;const O=h.length;let H=f.length-1,N=O-1;for(;k<=H&&k<=N;){const q=f[k],Q=h[k]=T?At(h[k]):it(h[k]);if(an(q,Q))x(q,Q,p,null,v,w,E,S,T);else break;k++}for(;k<=H&&k<=N;){const q=f[H],Q=h[N]=T?At(h[N]):it(h[N]);if(an(q,Q))x(q,Q,p,null,v,w,E,S,T);else break;H--,N--}if(k>H){if(k<=N){const q=N+1,Q=q<O?h[q].el:g;for(;k<=N;)x(null,h[k]=T?At(h[k]):it(h[k]),p,Q,v,w,E,S,T),k++}}else if(k>N)for(;k<=H;)te(f[k],v,w,!0),k++;else{const q=k,Q=k,he=new Map;for(k=Q;k<=N;k++){const De=h[k]=T?At(h[k]):it(h[k]);De.key!=null&&he.set(De.key,k)}let U,be=0;const _e=N-Q+1;let Qt=!1,ls=0;const pn=new Array(_e);for(k=0;k<_e;k++)pn[k]=0;for(k=q;k<=H;k++){const De=f[k];if(be>=_e){te(De,v,w,!0);continue}let nt;if(De.key!=null)nt=he.get(De.key);else for(U=Q;U<=N;U++)if(pn[U-Q]===0&&an(De,h[U])){nt=U;break}nt===void 0?te(De,v,w,!0):(pn[nt-Q]=k+1,nt>=ls?ls=nt:Qt=!0,x(De,h[nt],p,null,v,w,E,S,T),be++)}const as=Qt?Fu(pn):en;for(U=as.length-1,k=_e-1;k>=0;k--){const De=Q+k,nt=h[De],cs=De+1<O?h[De+1].el:g;pn[k]===0?x(null,nt,p,cs,v,w,E,S,T):Qt&&(U<0||k!==as[U]?se(nt,p,cs,2):U--)}}},se=(f,h,p,g,v=null)=>{const{el:w,type:E,transition:S,children:T,shapeFlag:k}=f;if(k&6){se(f.component.subTree,h,p,g);return}if(k&128){f.suspense.move(h,p,g);return}if(k&64){E.move(f,h,p,Be);return}if(E===le){r(w,h,p);for(let H=0;H<T.length;H++)se(T[H],h,p,g);r(f.anchor,h,p);return}if(E===Pi){P(f,h,p);return}if(g!==2&&k&1&&S)if(g===0)S.beforeEnter(w),r(w,h,p),je(()=>S.enter(w),v);else{const{leave:H,delayLeave:N,afterLeave:q}=S,Q=()=>r(w,h,p),he=()=>{H(w,()=>{Q(),q&&q()})};N?N(w,Q,he):he()}else r(w,h,p)},te=(f,h,p,g=!1,v=!1)=>{const{type:w,props:E,ref:S,children:T,dynamicChildren:k,shapeFlag:O,patchFlag:H,dirs:N,cacheIndex:q}=f;if(H===-2&&(v=!1),S!=null&&$i(S,null,p,f,!0),q!=null&&(h.renderCache[q]=void 0),O&256){h.ctx.deactivate(f);return}const Q=O&1&&N,he=!Cn(f);let U;if(he&&(U=E&&E.onVnodeBeforeUnmount)&&st(U,h,f),O&6)ee(f.component,p,g);else{if(O&128){f.suspense.unmount(p,g);return}Q&&Ft(f,null,h,"beforeUnmount"),O&64?f.type.remove(f,h,p,Be,g):k&&!k.hasOnce&&(w!==le||H>0&&H&64)?Ce(k,h,p,!1,!0):(w===le&&H&384||!v&&O&16)&&Ce(T,h,p),g&&me(