hexo/themes/oranges/source/plugins/waline.mjs

3 lines
151 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

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

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

const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=["//unpkg.com/@waline/emojis@1.1.0/weibo"],r="en-US",l=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),i=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',s=e=>{const t=async(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then((e=>e.json())).then((({data:e})=>e.map((e=>({title:e.title,src:e.images.downsized_medium.url})))));return{search:e=>t("search",{q:e,offset:"0"}),default:()=>t("trending",{}),more:(e,n=0)=>t("search",{q:e,offset:n.toString()})}},o=["//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"],a=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],u={},p=e=>{let t=0;return e.replace(a,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let l;u[n]?l=u[n]:(l=c[t],u[n]=l);const i=`<span style="color: #${l}">${n}</span>`;return t=++t%c.length,i}))},d=["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"],h=e=>Object.fromEntries(e.map(((e,t)=>[d[t],e])));var f=h(["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!\n 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?"]),g=h(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),m=h(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),v=h(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),y=h(["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 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?"]),b=h(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const w={zh:m,"zh-cn":m,"zh-CN":m,"zh-tw":v,"zh-TW":v,en:f,"en-US":f,"en-us":f,jp:g,ja:g,"jp-jp":g,"jp-JP":g,"pt-br":y,"pt-BR":y,ru:b,"ru-ru":b,"ru-RU":b},k={"Content-Type":"application/json"},x=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then((e=>e.json())),$=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:k,body:JSON.stringify({path:n,type:r,action:l})}).then((e=>e.json())),C=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...k,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())).then((e=>x(e,"Update comment"))),S=e=>{try{e=decodeURI(e)}catch(e){}return e},E=(e="")=>e.replace(/\/$/u,""),R=e=>/^(https?:)?\/\//.test(e),I=e=>{const t=E(e);return R(t)?t:`https://${t}`},A=e=>Array.isArray(e)?e:!!e&&[0,e],L=(e,t)=>"function"==typeof e?e:!1!==e&&t,z="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",O=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},j=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);if(0===i){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=O(e.getDate(),2),n=O(e.getMonth()+1,2);return`${O(e.getFullYear(),2)}-${n}-${t}`})(r)};function T(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function U(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ue(r)?N(r):U(r);if(l)for(const e in l)t[e]=l[e]}return t}return ue(e)||de(e)?e:void 0}const P=/;(?![^(]*\))/g,M=/:([^]+)/,F=/\/\*.*?\*\//gs;function N(e){const t={};return e.replace(F,"").split(P).forEach((e=>{if(e){const n=e.split(M);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function V(e){let t="";if(ue(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const D=T("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function B(e){return!!e||""===e}function H(e,t){if(e===t)return!0;let n=ae(e),r=ae(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=pe(e),r=pe(t),n||r)return e===t;if(n=ie(e),r=ie(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=H(e[r],t[r]);return n}(e,t);if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!H(e[n],t[n]))return!1}}return String(e)===String(t)}function W(e,t){return e.findIndex((e=>H(e,t)))}const q=e=>ue(e)?e:null==e?"":ie(e)||de(e)&&(e.toString===fe||!ce(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):se(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:oe(t)?{[`Set(${t.size})`]:[...t.values()]}:!de(t)||ie(t)||me(t)?t:String(t),Q={},K=[],G=()=>{},J=()=>!1,X=/^on[^a-z]/,Y=e=>X.test(e),ee=e=>e.startsWith("onUpdate:"),te=Object.assign,ne=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},re=Object.prototype.hasOwnProperty,le=(e,t)=>re.call(e,t),ie=Array.isArray,se=e=>"[object Map]"===ge(e),oe=e=>"[object Set]"===ge(e),ae=e=>"[object Date]"===ge(e),ce=e=>"function"==typeof e,ue=e=>"string"==typeof e,pe=e=>"symbol"==typeof e,de=e=>null!==e&&"object"==typeof e,he=e=>de(e)&&ce(e.then)&&ce(e.catch),fe=Object.prototype.toString,ge=e=>fe.call(e),me=e=>"[object Object]"===ge(e),ve=e=>ue(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ye=T(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),be=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},we=/-(\w)/g,ke=be((e=>e.replace(we,((e,t)=>t?t.toUpperCase():"")))),xe=/\B([A-Z])/g,_e=be((e=>e.replace(xe,"-$1").toLowerCase())),$e=be((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ce=be((e=>e?`on${$e(e)}`:"")),Se=(e,t)=>!Object.is(e,t),Ee=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Re=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ie=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ae;let Le;class ze{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!e&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Le;try{return Le=this,e()}finally{Le=t}}}on(){Le=this}off(){Le=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this.active=!1}}}const Oe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},je=e=>(e.w&Me)>0,Te=e=>(e.n&Me)>0,Ue=new WeakMap;let Pe=0,Me=1;let Fe;const Ne=Symbol(""),Ve=Symbol("");class De{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Le){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Fe,t=He;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Fe,Fe=this,He=!0,Me=1<<++Pe,Pe<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Me})(this):Be(this),this.fn()}finally{Pe<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];je(l)&&!Te(l)?l.delete(e):t[n++]=l,l.w&=~Me,l.n&=~Me}t.length=n}})(this),Me=1<<--Pe,Fe=this.parent,He=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fe===this?this.deferStop=!0:this.active&&(Be(this),this.onStop&&this.onStop(),this.active=!1)}}function Be(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let He=!0;const We=[];function qe(){We.push(He),He=!1}function Ze(){const e=We.pop();He=void 0===e||e}function Qe(e,t,n){if(He&&Fe){let t=Ue.get(e);t||Ue.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Oe()),Ke(r)}}function Ke(e,t){let n=!1;Pe<=30?Te(e)||(e.n|=Me,n=!je(e)):n=!e.has(Fe),n&&(e.add(Fe),Fe.deps.push(e))}function Ge(e,t,n,r,l,i){const s=Ue.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&ie(e)){const e=Ie(r);s.forEach(((t,n)=>{("length"===n||n>=e)&&o.push(t)}))}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":ie(e)?ve(n)&&o.push(s.get("length")):(o.push(s.get(Ne)),se(e)&&o.push(s.get(Ve)));break;case"delete":ie(e)||(o.push(s.get(Ne)),se(e)&&o.push(s.get(Ve)));break;case"set":se(e)&&o.push(s.get(Ne))}if(1===o.length)o[0]&&Je(o[0]);else{const e=[];for(const t of o)t&&e.push(...t);Je(Oe(e))}}function Je(e,t){const n=ie(e)?e:[...e];for(const e of n)e.computed&&Xe(e);for(const e of n)e.computed||Xe(e)}function Xe(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ye=T("__proto__,__v_isRef,__isVue"),et=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(pe)),tt=st(),nt=st(!1,!0),rt=st(!0),lt=it();function it(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ht(this);for(let e=0,t=this.length;e<t;e++)Qe(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ht)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){qe();const n=Ht(this)[t].apply(this,e);return Ze(),n}})),e}function st(e=!1,t=!1){return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?Tt:jt:t?Ot:zt).get(n))return n;const i=ie(n);if(!e&&i&&le(lt,r))return Reflect.get(lt,r,l);const s=Reflect.get(n,r,l);return(pe(r)?et.has(r):Ye(r))?s:(e||Qe(n,0,r),t?s:Gt(s)?i&&ve(r)?s:s.value:de(s)?e?Mt(s):Pt(s):s)}}function ot(e=!1){return function(t,n,r,l){let i=t[n];if(Vt(i)&&Gt(i)&&!Gt(r))return!1;if(!e&&(Dt(r)||Vt(r)||(i=Ht(i),r=Ht(r)),!ie(t)&&Gt(i)&&!Gt(r)))return i.value=r,!0;const s=ie(t)&&ve(n)?Number(n)<t.length:le(t,n),o=Reflect.set(t,n,r,l);return t===Ht(l)&&(s?Se(r,i)&&Ge(t,"set",n,r):Ge(t,"add",n,r)),o}}const at={get:tt,set:ot(),deleteProperty:function(e,t){const n=le(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ge(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return pe(t)&&et.has(t)||Qe(e,0,t),n},ownKeys:function(e){return Qe(e,0,ie(e)?"length":Ne),Reflect.ownKeys(e)}},ct={get:rt,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},ut=te({},at,{get:nt,set:ot(!0)}),pt=e=>e,dt=e=>Reflect.getPrototypeOf(e);function ht(e,t,n=!1,r=!1){const l=Ht(e=e.__v_raw),i=Ht(t);n||(t!==i&&Qe(l,0,t),Qe(l,0,i));const{has:s}=dt(l),o=r?pt:n?Zt:qt;return s.call(l,t)?o(e.get(t)):s.call(l,i)?o(e.get(i)):void(e!==l&&e.get(t))}function ft(e,t=!1){const n=this.__v_raw,r=Ht(n),l=Ht(e);return t||(e!==l&&Qe(r,0,e),Qe(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function gt(e,t=!1){return e=e.__v_raw,!t&&Qe(Ht(e),0,Ne),Reflect.get(e,"size",e)}function mt(e){e=Ht(e);const t=Ht(this);return dt(t).has.call(t,e)||(t.add(e),Ge(t,"add",e,e)),this}function vt(e,t){t=Ht(t);const n=Ht(this),{has:r,get:l}=dt(n);let i=r.call(n,e);i||(e=Ht(e),i=r.call(n,e));const s=l.call(n,e);return n.set(e,t),i?Se(t,s)&&Ge(n,"set",e,t):Ge(n,"add",e,t),this}function yt(e){const t=Ht(this),{has:n,get:r}=dt(t);let l=n.call(t,e);l||(e=Ht(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&Ge(t,"delete",e,void 0),i}function bt(){const e=Ht(this),t=0!==e.size,n=e.clear();return t&&Ge(e,"clear",void 0,void 0),n}function wt(e,t){return function(n,r){const l=this,i=l.__v_raw,s=Ht(i),o=t?pt:e?Zt:qt;return!e&&Qe(s,0,Ne),i.forEach(((e,t)=>n.call(r,o(e),o(t),l)))}}function kt(e,t,n){return function(...r){const l=this.__v_raw,i=Ht(l),s=se(i),o="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,c=l[e](...r),u=n?pt:t?Zt:qt;return!t&&Qe(i,0,a?Ve:Ne),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return"delete"!==e&&this}}function _t(){const e={get(e){return ht(this,e)},get size(){return gt(this)},has:ft,add:mt,set:vt,delete:yt,clear:bt,forEach:wt(!1,!1)},t={get(e){return ht(this,e,!1,!0)},get size(){return gt(this)},has:ft,add:mt,set:vt,delete:yt,clear:bt,forEach:wt(!1,!0)},n={get(e){return ht(this,e,!0)},get size(){return gt(this,!0)},has(e){return ft.call(this,e,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:wt(!0,!1)},r={get(e){return ht(this,e,!0,!0)},get size(){return gt(this,!0)},has(e){return ft.call(this,e,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:wt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=kt(l,!1,!1),n[l]=kt(l,!0,!1),t[l]=kt(l,!1,!0),r[l]=kt(l,!0,!0)})),[e,n,t,r]}const[$t,Ct,St,Et]=_t();function Rt(e,t){const n=t?e?Et:St:e?Ct:$t;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(le(n,r)&&r in t?n:t,r,l)}const It={get:Rt(!1,!1)},At={get:Rt(!1,!0)},Lt={get:Rt(!0,!1)},zt=new WeakMap,Ot=new WeakMap,jt=new WeakMap,Tt=new WeakMap;function Ut(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>ge(e).slice(8,-1))(e))}function Pt(e){return Vt(e)?e:Ft(e,!1,at,It,zt)}function Mt(e){return Ft(e,!0,ct,Lt,jt)}function Ft(e,t,n,r,l){if(!de(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const s=Ut(e);if(0===s)return e;const o=new Proxy(e,2===s?r:n);return l.set(e,o),o}function Nt(e){return Vt(e)?Nt(e.__v_raw):!(!e||!e.__v_isReactive)}function Vt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Bt(e){return Nt(e)||Vt(e)}function Ht(e){const t=e&&e.__v_raw;return t?Ht(t):e}function Wt(e){return Re(e,"__v_skip",!0),e}const qt=e=>de(e)?Pt(e):e,Zt=e=>de(e)?Mt(e):e;function Qt(e){He&&Fe&&Ke((e=Ht(e)).dep||(e.dep=Oe()))}function Kt(e,t){(e=Ht(e)).dep&&Je(e.dep)}function Gt(e){return!(!e||!0!==e.__v_isRef)}function Jt(e){return Yt(e,!1)}function Xt(e){return Yt(e,!0)}function Yt(e,t){return Gt(e)?e:new en(e,t)}class en{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ht(e),this._value=t?e:qt(e)}get value(){return Qt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Vt(e);e=t?e:Ht(e),Se(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:qt(e),Kt(this))}}function tn(e){return Gt(e)?e.value:e}const nn={get:(e,t,n)=>tn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return Gt(l)&&!Gt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function rn(e){return Nt(e)?e:new Proxy(e,nn)}var ln;class sn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[ln]=!1,this._dirty=!0,this.effect=new De(e,(()=>{this._dirty||(this._dirty=!0,Kt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ht(this);return Qt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function on(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){cn(e,t,n)}return l}function an(e,t,n,r){if(ce(e)){const l=on(e,t,n,r);return l&&he(l)&&l.catch((e=>{cn(e,t,n)})),l}const l=[];for(let i=0;i<e.length;i++)l.push(an(e[i],t,n,r));return l}function cn(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const l=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,i))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void on(s,null,10,[e,l,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}ln="__v_isReadonly";let un=!1,pn=!1;const dn=[];let hn=0;const fn=[];let gn=null,mn=0;const vn=Promise.resolve();let yn=null;function bn(e){const t=yn||vn;return e?t.then(this?e.bind(this):e):t}function wn(e){dn.length&&dn.includes(e,un&&e.allowRecurse?hn+1:hn)||(null==e.id?dn.push(e):dn.splice(function(e){let t=hn+1,n=dn.length;for(;t<n;){const r=t+n>>>1;$n(dn[r])<e?t=r+1:n=r}return t}(e.id),0,e),kn())}function kn(){un||pn||(pn=!0,yn=vn.then(Sn))}function xn(e,t=(un?hn+1:0)){for(;t<dn.length;t++){const e=dn[t];e&&e.pre&&(dn.splice(t,1),t--,e())}}function _n(e){if(fn.length){const e=[...new Set(fn)];if(fn.length=0,gn)return void gn.push(...e);for(gn=e,gn.sort(((e,t)=>$n(e)-$n(t))),mn=0;mn<gn.length;mn++)gn[mn]();gn=null,mn=0}}const $n=e=>null==e.id?1/0:e.id,Cn=(e,t)=>{const n=$n(e)-$n(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sn(e){pn=!1,un=!0,dn.sort(Cn);try{for(hn=0;hn<dn.length;hn++){const e=dn[hn];e&&!1!==e.active&&on(e,null,14)}}finally{hn=0,dn.length=0,_n(),un=!1,yn=null,(dn.length||fn.length)&&Sn()}}function En(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Q;let l=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=r[e]||Q;i&&(l=n.map((e=>ue(e)?e.trim():e))),t&&(l=n.map(Ie))}let o,a=r[o=Ce(t)]||r[o=Ce(ke(t))];!a&&i&&(a=r[o=Ce(_e(t))]),a&&an(a,e,6,l);const c=r[o+"Once"];if(c){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,an(c,e,6,l)}}function Rn(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(void 0!==l)return l;const i=e.emits;let s={};return i?(ie(i)?i.forEach((e=>s[e]=null)):te(s,i),de(e)&&r.set(e,s),s):(de(e)&&r.set(e,null),null)}function In(e,t){return!(!e||!Y(t))&&(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,_e(t))||le(e,t))}let An=null,Ln=null;function zn(e){const t=An;return An=e,Ln=e&&e.type.__scopeId||null,t}function On(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=zn(e);try{if(4&n.shapeFlag){const e=l||r;m=Kr(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;m=Kr(e.length>1?e(i,{attrs:a,slots:o,emit:c}):e(i,null)),v=t.props?a:jn(a)}}catch(t){Lr.length=0,cn(t,e,1),m=Wr(Ir)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(ee)&&(v=Tn(v,s)),b=qr(b,v))}return n.dirs&&(b=qr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,zn(y),m}const jn=e=>{let t;for(const n in e)("class"===n||"style"===n||Y(n))&&((t||(t={}))[n]=e[n]);return t},Tn=(e,t)=>{const n={};for(const r in e)ee(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Un(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!In(n,i))return!0}return!1}function Pn(e,t,n=!1){const r=tl||An;if(r){const l=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ce(t)?t.call(r.proxy):t}}function Mn(e,t){return Vn(e,null,t)}const Fn={};function Nn(e,t,n){return Vn(e,t,n)}function Vn(e,t,{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:s}=Q){const o=tl;let a,c,u=!1,p=!1;if(Gt(e)?(a=()=>e.value,u=Dt(e)):Nt(e)?(a=()=>e,r=!0):ie(e)?(p=!0,u=e.some((e=>Nt(e)||Dt(e))),a=()=>e.map((e=>Gt(e)?e.value:Nt(e)?Dn(e):ce(e)?on(e,o,2):void 0))):a=ce(e)?t?()=>on(e,o,2):()=>{if(!o||!o.isUnmounted)return c&&c(),an(e,o,3,[h])}:G,t&&r){const e=a;a=()=>Dn(e())}let d,h=e=>{c=v.onStop=()=>{on(e,o,4)}};if(il){if(h=G,t?n&&an(t,o,3,[a(),p?[]:void 0,h]):a(),"sync"!==l)return G;{const e=dl();d=e.__watcherHandles||(e.__watcherHandles=[])}}let f=p?new Array(e.length).fill(Fn):Fn;const g=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>Se(e,f[t]))):Se(e,f)))&&(c&&c(),an(t,o,3,[e,f===Fn?void 0:p&&f[0]===Fn?[]:f,h]),f=e)}else v.run()};let m;g.allowRecurse=!!t,"sync"===l?m=g:"post"===l?m=()=>_r(g,o&&o.suspense):(g.pre=!0,o&&(g.id=o.uid),m=()=>wn(g));const v=new De(a,m);t?n?g():f=v.run():"post"===l?_r(v.run.bind(v),o&&o.suspense):v.run();const y=()=>{v.stop(),o&&o.scope&&ne(o.scope.effects,v)};return d&&d.push(y),y}function Dn(e,t){if(!de(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Gt(e))Dn(e.value,t);else if(ie(e))for(let n=0;n<e.length;n++)Dn(e[n],t);else if(oe(e)||se(e))e.forEach((e=>{Dn(e,t)}));else if(me(e))for(const n in e)Dn(e[n],t);return e}function Bn(e){return ce(e)?{setup:e,name:e.name}:e}const Hn=e=>!!e.type.__asyncLoader;const Wn=e=>(t,n=tl)=>(!il||"sp"===e)&&function(e,t,n=tl,r=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;qe(),nl(n);const l=an(t,n,e,r);return rl(),Ze(),l});return r?l.unshift(i):l.push(i),i}}(e,((...e)=>t(...e)),n),qn=Wn("m"),Zn=Wn("bum"),Qn=Wn("um");function Kn(e,t){const n=An;if(null===n)return e;const r=al(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,s,o=Q]=t[e];n&&(ce(n)&&(n={mounted:n,updated:n}),n.deep&&Dn(i),l.push({dir:n,instance:r,value:i,oldValue:void 0,arg:s,modifiers:o}))}return e}function Gn(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let s=0;s<l.length;s++){const o=l[s];i&&(o.oldValue=i[s].value);let a=o.dir[r];a&&(qe(),an(a,n,8,[e.el,o,e,t]),Ze())}}const Jn="components";function Xn(e,t){return function(e,t,n=!0,r=!1){const l=An||tl;if(l){const n=l.type;if(e===Jn){const e=function(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===ke(t)||e===$e(ke(t))))return n}const i=er(l[e]||n[e],t)||er(l.appContext[e],t);return!i&&r?n:i}}(Jn,e,!0,t)||e}const Yn=Symbol();function er(e,t){return e&&(e[t]||e[ke(t)]||e[$e(ke(t))])}function tr(e,t,n,r){let l;const i=n&&n[r];if(ie(e)||ue(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,i&&i[n])}else if(de(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,s=n.length;r<s;r++){const s=n[r];l[r]=t(e[s],s,r,i&&i[r])}}else l=[];return n&&(n[r]=l),l}const nr=e=>e?ll(e)?al(e)||e.proxy:nr(e.parent):null,rr=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=>nr(e.parent),$root:e=>nr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>wn(e.update)),$nextTick:e=>e.n||(e.n=bn.bind(e.proxy)),$watch:e=>G}),lr=(e,t)=>e!==Q&&!e.__isScriptSetup&&le(e,t),ir={get({_:e},t){const{ctx:n,setupState:r,data:l,props:i,accessCache:s,type:o,appContext:a}=e;let c;if("$"!==t[0]){const o=s[t];if(void 0!==o)switch(o){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(lr(r,t))return s[t]=1,r[t];if(l!==Q&&le(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&le(c,t))return s[t]=3,i[t];if(n!==Q&&le(n,t))return s[t]=4,n[t];s[t]=0}}const u=rr[t];let p,d;return u?("$attrs"===t&&Qe(e,0,t),u(e)):(p=o.__cssModules)&&(p=p[t])?p:n!==Q&&le(n,t)?(s[t]=4,n[t]):(d=a.config.globalProperties,le(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return lr(l,t)?(l[t]=n,!0):r!==Q&&le(r,t)?(r[t]=n,!0):!le(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},s){let o;return!!n[s]||e!==Q&&le(e,s)||lr(t,s)||(o=i[0])&&le(o,s)||le(r,s)||le(rr,s)||le(l.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sr(e,t,n,r=!1){const l={},i={};Re(i,Vr,1),e.propsDefaults=Object.create(null),or(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:Ft(l,!1,ut,At,Ot):e.type.props?e.props=l:e.props=i,e.attrs=i}function or(e,t,n,r){const[l,i]=e.propsOptions;let s,o=!1;if(t)for(let a in t){if(ye(a))continue;const c=t[a];let u;l&&le(l,u=ke(a))?i&&i.includes(u)?(s||(s={}))[u]=c:n[u]=c:In(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,o=!0)}if(i){const t=Ht(n),r=s||Q;for(let s=0;s<i.length;s++){const o=i[s];n[o]=ar(l,t,o,r[o],e,!le(r,o))}}return o}function ar(e,t,n,r,l,i){const s=e[n];if(null!=s){const e=le(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&ce(e)){const{propsDefaults:i}=l;n in i?r=i[n]:(nl(l),r=i[n]=e.call(null,t),rl())}else r=e}s[0]&&(i&&!e?r=!1:!s[1]||""!==r&&r!==_e(n)||(r=!0))}return r}function cr(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const i=e.props,s={},o=[];if(!i)return de(e)&&r.set(e,K),K;if(ie(i))for(let e=0;e<i.length;e++){const t=ke(i[e]);ur(t)&&(s[t]=Q)}else if(i)for(const e in i){const t=ke(e);if(ur(t)){const n=i[e],r=s[t]=ie(n)||ce(n)?{type:n}:Object.assign({},n);if(r){const e=hr(Boolean,r.type),n=hr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||le(r,"default"))&&o.push(t)}}}const a=[s,o];return de(e)&&r.set(e,a),a}function ur(e){return"$"!==e[0]}function pr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function dr(e,t){return pr(e)===pr(t)}function hr(e,t){return ie(t)?t.findIndex((t=>dr(t,e))):ce(t)&&dr(t,e)?0:-1}const fr=e=>"_"===e[0]||"$stable"===e,gr=e=>ie(e)?e.map(Kr):[Kr(e)],mr=(e,t,n)=>{if(t._n)return t;const r=function(e,t=An,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Tr(-1);const l=zn(t);let i;try{i=e(...n)}finally{zn(l),r._d&&Tr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>gr(t(...e))),n);return r._c=!1,r},vr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(fr(n))continue;const l=e[n];if(ce(l))t[n]=mr(0,l,r);else if(null!=l){const e=gr(l);t[n]=()=>e}}},yr=(e,t)=>{const n=gr(t);e.slots.default=()=>n};function br(){return{app:null,config:{isNativeTag:J,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 wr=0;function kr(e,t){return function(n,r=null){ce(n)||(n=Object.assign({},n)),null==r||de(r)||(r=null);const l=br(),i=new Set;let s=!1;const o=l.app={_uid:wr++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:hl,get config(){return l.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&ce(e.install)?(i.add(e),e.install(o,...t)):ce(e)&&(i.add(e),e(o,...t))),o),mixin:e=>o,component:(e,t)=>t?(l.components[e]=t,o):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,o):l.directives[e],mount(i,a,c){if(!s){const u=Wr(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),s=!0,o._container=i,i.__vue_app__=o,al(u.component)||u.component.proxy}},unmount(){s&&(e(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,o)};return o}}function xr(e,t,n,r,l=!1){if(ie(e))return void e.forEach(((e,i)=>xr(e,t&&(ie(t)?t[i]:t),n,r,l)));if(Hn(r)&&!l)return;const i=4&r.shapeFlag?al(r.component)||r.component.proxy:r.el,s=l?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===Q?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(ue(c)?(u[c]=null,le(p,c)&&(p[c]=null)):Gt(c)&&(c.value=null)),ce(a))on(a,o,12,[s,u]);else{const t=ue(a),r=Gt(a);if(t||r){const o=()=>{if(e.f){const n=t?le(p,a)?p[a]:u[a]:a.value;l?ie(n)&&ne(n,i):ie(n)?n.includes(i)||n.push(i):t?(u[a]=[i],le(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,le(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,_r(o,n)):o()}}}const _r=function(e,t){var n;t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):(ie(n=e)?fn.push(...n):gn&&gn.includes(n,n.allowRecurse?mn+1:mn)||fn.push(n),kn())};function $r(e){return function(e,t){(Ae||(Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:i,createText:s,createComment:o,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=G,insertStaticContent:h}=e,f=(e,t,n,r=null,l=null,i=null,s=!1,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Nr(e,t)&&(r=D(e),P(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Rr:g(e,t,n,r);break;case Ir:m(e,t,n,r);break;case Ar:null==e&&v(t,n,r,s);break;case Er:E(e,t,n,r,l,i,s,o,a);break;default:1&p?w(e,t,n,r,l,i,s,o,a):6&p?R(e,t,n,r,l,i,s,o,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,s,o,a,H)}null!=u&&l&&xr(u,e&&e.ref,i,t||e,!t)},g=(e,t,r,l)=>{if(null==e)n(t.el=s(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},m=(e,t,r,l)=>{null==e?n(t.el=o(t.children||""),r,l):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=h(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},r,l)=>{let i;for(;e&&e!==t;)i=p(e),n(e,r,l),e=i;n(t,r,l)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},w=(e,t,n,r,l,i,s,o,a)=>{s=s||"svg"===t.type,null==e?k(t,n,r,l,i,s,o,a):$(e,t,l,i,s,o,a)},k=(e,t,r,s,o,a,u,p)=>{let d,h;const{type:f,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(d=e.el=i(e.type,a,g&&g.is,g),8&m?c(d,e.children):16&m&&_(e.children,d,null,s,o,a&&"foreignObject"!==f,u,p),y&&Gn(e,null,s,"created"),g){for(const t in g)"value"===t||ye(t)||l(d,t,null,g[t],a,e.children,s,o,V);"value"in g&&l(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&Xr(h,s,e)}x(d,e,e.scopeId,u,s),y&&Gn(e,null,s,"beforeMount");const b=(!o||o&&!o.pendingBranch)&&v&&!v.persisted;b&&v.beforeEnter(d),n(d,t,r),((h=g&&g.onVnodeMounted)||b||y)&&_r((()=>{h&&Xr(h,s,e),b&&v.enter(d),y&&Gn(e,null,s,"mounted")}),o)},x=(e,t,n,r,l)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;x(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},_=(e,t,n,r,l,i,s,o,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=o?Gr(e[c]):Kr(e[c]);f(null,a,t,n,r,l,i,s,o)}},$=(e,t,n,r,i,s,o)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||Q,f=t.props||Q;let g;n&&Cr(n,!1),(g=f.onVnodeBeforeUpdate)&&Xr(g,n,t,e),d&&Gn(t,e,n,"beforeUpdate"),n&&Cr(n,!0);const m=i&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,s):o||O(e,t,a,null,n,r,m,s,!1),u>0){if(16&u)S(a,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,i),4&u&&l(a,"style",h.style,f.style,i),8&u){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const o=s[t],c=h[o],u=f[o];u===c&&"value"!==o||l(a,o,c,u,i,e.children,n,r,V)}}1&u&&e.children!==t.children&&c(a,t.children)}else o||null!=p||S(a,t,h,f,n,r,i);((g=f.onVnodeUpdated)||d)&&_r((()=>{g&&Xr(g,n,t,e),d&&Gn(t,e,n,"updated")}),r)},C=(e,t,n,r,l,i,s)=>{for(let o=0;o<t.length;o++){const a=e[o],c=t[o],p=a.el&&(a.type===Er||!Nr(a,c)||70&a.shapeFlag)?u(a.el):n;f(a,c,p,null,r,l,i,s,!0)}},S=(e,t,n,r,i,s,o)=>{if(n!==r){if(n!==Q)for(const a in n)ye(a)||a in r||l(e,a,n[a],null,o,t.children,i,s,V);for(const a in r){if(ye(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,o,t.children,i,s,V)}"value"in r&&l(e,"value",n.value,r.value)}},E=(e,t,r,l,i,o,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,l),n(d,r,l),_(t.children,r,d,i,o,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(C(e.dynamicChildren,f,r,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&Sr(e,t,!0)):O(e,t,r,d,i,o,a,c,u)},R=(e,t,n,r,l,i,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,s,a):I(t,n,r,l,i,s,a):A(e,t,a)},I=(e,t,n,r,l,i,s)=>{const o=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Yr,i={uid:el++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new ze(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:cr(r,l),emitsOptions:Rn(r,l),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:r.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,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};i.ctx={_:i},i.root=t?t.root:i,i.emit=En.bind(null,i),e.ce&&e.ce(i);return i}(e,r,l);if(e.type.__isKeepAlive&&(o.ctx.renderer=H),function(e,t=!1){il=t;const{props:n,children:r}=e.vnode,l=ll(e);sr(e,n,l,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ht(t),Re(t,"_",n)):vr(t,e.slots={})}else e.slots={},t&&yr(e,t);Re(e.slots,Vr,1)})(e,r);const i=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wt(new Proxy(e.ctx,ir));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Qe(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;nl(e),qe();const l=on(r,e,0,[e.props,n]);if(Ze(),rl(),he(l)){if(l.then(rl,rl),t)return l.then((n=>{sl(e,n,t)})).catch((t=>{cn(t,e,0)}));e.asyncDep=l}else sl(e,l,t)}else ol(e,t)}(e,t):void 0;il=!1}(o),o.asyncDep){if(l&&l.registerDep(o,L),!e.el){const e=o.subTree=Wr(Ir);m(null,e,t,n)}}else L(o,e,t,n,l,i,s)},A=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:i}=e,{props:s,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!o||o&&o.$stable)||r!==s&&(r?!s||Un(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?Un(r,s,c):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!In(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void z(r,t,n);r.next=t,function(e){const t=dn.indexOf(e);t>hn&&dn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},L=(e,t,n,r,l,i,s)=>{const o=()=>{if(e.isMounted){let t,{next:n,bu:r,u:o,parent:a,vnode:c}=e,p=n;Cr(e,!1),n?(n.el=c.el,z(e,n,s)):n=c,r&&Ee(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Xr(t,a,n,c),Cr(e,!0);const d=On(e),h=e.subTree;e.subTree=d,f(h,d,u(h.el),D(h),e,l,i),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),o&&_r(o,l),(t=n.props&&n.props.onVnodeUpdated)&&_r((()=>Xr(t,a,n,c)),l)}else{let s;const{el:o,props:a}=t,{bm:c,m:u,parent:p}=e,d=Hn(t);if(Cr(e,!1),c&&Ee(c),!d&&(s=a&&a.onVnodeBeforeMount)&&Xr(s,p,t),Cr(e,!0),o&&q){const n=()=>{e.subTree=On(e),q(o,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=On(e);f(null,s,n,r,e,l,i),t.el=s.el}if(u&&_r(u,l),!d&&(s=a&&a.onVnodeMounted)){const e=t;_r((()=>Xr(s,p,e)),l)}(256&t.shapeFlag||p&&Hn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&_r(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new De(o,(()=>wn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,Cr(e,!0),c()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:s}}=e,o=Ht(l),[a]=e.propsOptions;let c=!1;if(!(r||s>0)||16&s){let r;or(e,t,l,i)&&(c=!0);for(const i in o)t&&(le(t,i)||(r=_e(i))!==i&&le(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=ar(a,o,i,void 0,e,!0)):delete l[i]);if(i!==o)for(const e in i)t&&le(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(In(e.emitsOptions,s))continue;const u=t[s];if(a)if(le(i,s))u!==i[s]&&(i[s]=u,c=!0);else{const t=ke(s);l[t]=ar(a,o,t,u,e,!1)}else u!==i[s]&&(i[s]=u,c=!0)}}c&&Ge(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,s=Q;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(te(l,t),n||1!==e||delete l._):(i=!t.$stable,vr(t,l)),s=t}else t&&(yr(e,t),s={default:1});if(i)for(const e in l)fr(e)||e in s||delete l[e]})(e,t.children,n),qe(),xn(),Ze()},O=(e,t,n,r,l,i,s,o,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void T(u,d,n,r,l,i,s,o,a);if(256&h)return void j(u,d,n,r,l,i,s,o,a)}8&f?(16&p&&V(u,l,i),d!==u&&c(n,d)):16&p?16&f?T(u,d,n,r,l,i,s,o,a):V(u,l,i,!0):(8&p&&c(n,""),16&f&&_(d,n,r,l,i,s,o,a))},j=(e,t,n,r,l,i,s,o,a)=>{t=t||K;const c=(e=e||K).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Gr(t[d]):Kr(t[d]);f(e[d],r,n,null,l,i,s,o,a)}c>u?V(e,l,i,!0,!1,p):_(t,n,r,l,i,s,o,a,p)},T=(e,t,n,r,l,i,s,o,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Gr(t[c]):Kr(t[c]);if(!Nr(r,u))break;f(r,u,n,null,l,i,s,o,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Gr(t[d]):Kr(t[d]);if(!Nr(r,c))break;f(r,c,n,null,l,i,s,o,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)f(null,t[c]=a?Gr(t[c]):Kr(t[c]),n,p,l,i,s,o,a),c++}}else if(c>d)for(;c<=p;)P(e[c],l,i,!0),c++;else{const h=c,g=c,m=new Map;for(c=g;c<=d;c++){const e=t[c]=a?Gr(t[c]):Kr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const b=d-g+1;let w=!1,k=0;const x=new Array(b);for(c=0;c<b;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=b){P(r,l,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=g;v<=d;v++)if(0===x[v-g]&&Nr(r,t[v])){u=v;break}void 0===u?P(r,l,i,!0):(x[u-g]=c+1,u>=k?k=u:w=!0,f(r,t[u],n,null,l,i,s,o,a),y++)}const _=w?function(e){const t=e.slice(),n=[0];let r,l,i,s,o;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(i=0,s=n.length-1;i<s;)o=i+s>>1,e[n[o]]<a?i=o+1:s=o;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(x):K;for(v=_.length-1,c=b-1;c>=0;c--){const e=g+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?f(null,p,n,d,l,i,s,o,a):w&&(v<0||c!==_[v]?U(p,n,d,2):v--)}}},U=(e,t,r,l,i=null)=>{const{el:s,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void o.move(e,t,r,H);if(o===Er){n(s,t,r);for(let e=0;e<c.length;e++)U(c[e],t,r,l);return void n(e.anchor,t,r)}if(o===Ar)return void y(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(s),n(s,t,r),_r((()=>a.enter(s)),i);else{const{leave:e,delayLeave:l,afterLeave:i}=a,o=()=>n(s,t,r),c=()=>{e(s,(()=>{o(),i&&i()}))};l?l(s,o,c):c()}else n(s,t,r)},P=(e,t,n,r=!1,l=!1)=>{const{type:i,props:s,ref:o,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=o&&xr(o,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Hn(e);let g;if(f&&(g=s&&s.onVnodeBeforeUnmount)&&Xr(g,t,e),6&u)N(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Gn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,H,r):c&&(i!==Er||p>0&&64&p)?V(c,t,n,!1,!0):(i===Er&&384&p||!l&&16&u)&&V(a,t,n),r&&M(e)}(f&&(g=s&&s.onVnodeUnmounted)||h)&&_r((()=>{g&&Xr(g,t,e),h&&Gn(e,null,t,"unmounted")}),n)},M=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===Er)return void F(n,l);if(t===Ar)return void b(e);const s=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,l=()=>t(n,s);r?r(e.el,s,l):l()}else s()},F=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},N=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:s,um:o}=e;r&&Ee(r),l.stop(),i&&(i.active=!1,P(s,e,t,n)),o&&_r(o,t),_r((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,n,r=!1,l=!1,i=0)=>{for(let s=i;s<e.length;s++)P(e[s],t,n,r,l)},D=e=>6&e.shapeFlag?D(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),B=(e,t,n)=>{null==e?t._vnode&&P(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),xn(),_n(),t._vnode=e},H={p:f,um:P,m:U,r:M,mt:I,mc:_,pc:O,pbc:C,n:D,o:e};let W,q;t&&([W,q]=t(H));return{render:B,hydrate:W,createApp:kr(B,W)}}(e)}function Cr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sr(e,t,n=!1){const r=e.children,l=t.children;if(ie(r)&&ie(l))for(let e=0;e<r.length;e++){const t=r[e];let i=l[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=l[e]=Gr(l[e]),i.el=t.el),n||Sr(t,i)),i.type===Rr&&(i.el=t.el)}}const Er=Symbol(void 0),Rr=Symbol(void 0),Ir=Symbol(void 0),Ar=Symbol(void 0),Lr=[];let zr=null;function Or(e=!1){Lr.push(zr=e?null:[])}let jr=1;function Tr(e){jr+=e}function Ur(e){return e.dynamicChildren=jr>0?zr||K:null,Lr.pop(),zr=Lr[Lr.length-1]||null,jr>0&&zr&&zr.push(e),e}function Pr(e,t,n,r,l,i){return Ur(Hr(e,t,n,r,l,i,!0))}function Mr(e,t,n,r,l){return Ur(Wr(e,t,n,r,l,!0))}function Fr(e){return!!e&&!0===e.__v_isVNode}function Nr(e,t){return e.type===t.type&&e.key===t.key}const Vr="__vInternal",Dr=({key:e})=>null!=e?e:null,Br=({ref:e,ref_key:t,ref_for:n})=>null!=e?ue(e)||Gt(e)||ce(e)?{i:An,r:e,k:t,f:!!n}:e:null;function Hr(e,t=null,n=null,r=0,l=null,i=(e===Er?0:1),s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&Br(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:An};return o?(Jr(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=ue(n)?8:16),jr>0&&!s&&zr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&zr.push(a),a}const Wr=function(e,t=null,n=null,r=0,l=null,i=!1){e&&e!==Yn||(e=Ir);if(Fr(e)){const r=qr(e,t,!0);return n&&Jr(r,n),jr>0&&!i&&zr&&(6&r.shapeFlag?zr[zr.indexOf(e)]=r:zr.push(r)),r.patchFlag|=-2,r}s=e,ce(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Bt(e)||Vr in e?te({},e):e:null}(t);let{class:e,style:n}=t;e&&!ue(e)&&(t.class=V(e)),de(n)&&(Bt(n)&&!ie(n)&&(n=te({},n)),t.style=U(n))}const o=ue(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:de(e)?4:ce(e)?2:0;return Hr(e,t,n,r,l,o,i,!0)};function qr(e,t,n=!1){const{props:r,ref:l,patchFlag:i,children:s}=e,o=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=V([t.class,r.class]));else if("style"===e)t.style=U([t.style,r.style]);else if(Y(e)){const n=t[e],l=r[e];!l||n===l||ie(n)&&n.includes(l)||(t[e]=n?[].concat(n,l):l)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Dr(o),ref:t&&t.ref?n&&l?ie(l)?l.concat(Br(t)):[l,Br(t)]:Br(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Er?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qr(e.ssContent),ssFallback:e.ssFallback&&qr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Zr(e=" ",t=0){return Wr(Rr,null,e,t)}function Qr(e="",t=!1){return t?(Or(),Mr(Ir,null,e)):Wr(Ir,null,e)}function Kr(e){return null==e||"boolean"==typeof e?Wr(Ir):ie(e)?Wr(Er,null,e.slice()):"object"==typeof e?Gr(e):Wr(Rr,null,String(e))}function Gr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:qr(e)}function Jr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(ie(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Jr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Vr in t?3===r&&An&&(1===An.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=An}}else ce(t)?(t={default:t,_ctx:An},n=32):(t=String(t),64&r?(n=16,t=[Zr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xr(e,t,n,r=null){an(e,t,7,[n,r])}const Yr=br();let el=0;let tl=null;const nl=e=>{tl=e,e.scope.on()},rl=()=>{tl&&tl.scope.off(),tl=null};function ll(e){return 4&e.vnode.shapeFlag}let il=!1;function sl(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=rn(t)),ol(e,n)}function ol(e,t,n){const r=e.type;e.render||(e.render=r.render||G)}function al(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(rn(Wt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in rr?rr[n](e):void 0,has:(e,t)=>t in e||t in rr}))}const cl=(e,t)=>function(e,t,n=!1){let r,l;const i=ce(e);return i?(r=e,l=G):(r=e.get,l=e.set),new sn(r,l,i||!l,n)}(e,0,il);function ul(e,t,n){const r=arguments.length;return 2===r?de(t)&&!ie(t)?Fr(t)?Wr(e,null,[t]):Wr(e,t):Wr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Fr(n)&&(n=[n]),Wr(e,t,n))}const pl=Symbol(""),dl=()=>Pn(pl),hl="3.2.45",fl="undefined"!=typeof document?document:null,gl=fl&&fl.createElement("template"),ml={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 l=t?fl.createElementNS("http://www.w3.org/2000/svg",e):fl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>fl.createTextNode(e),createComment:e=>fl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const s=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{gl.innerHTML=r?`<svg>${e}</svg>`:e;const l=gl.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const vl=/\s*!important$/;function yl(e,t,n){if(ie(n))n.forEach((n=>yl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=wl[t];if(n)return n;let r=ke(t);if("filter"!==r&&r in e)return wl[t]=r;r=$e(r);for(let n=0;n<bl.length;n++){const l=bl[n]+r;if(l in e)return wl[t]=l}return t}(e,t);vl.test(n)?e.setProperty(_e(r),n.replace(vl,""),"important"):e[r]=n}}const bl=["Webkit","Moz","ms"],wl={};const kl="http://www.w3.org/1999/xlink";function xl(e,t,n,r){e.addEventListener(t,n,r)}function _l(e,t,n,r,l=null){const i=e._vei||(e._vei={}),s=i[t];if(r&&s)s.value=r;else{const[n,o]=function(e){let t;if($l.test(e)){let n;for(t={};n=e.match($l);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):_e(e.slice(2));return[n,t]}(t);if(r){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();an(function(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Cl||(Sl.then((()=>Cl=0)),Cl=Date.now()))(),n}(r,l);xl(e,n,s,o)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),i[t]=void 0)}}const $l=/(?:Once|Passive|Capture)$/;let Cl=0;const Sl=Promise.resolve();const El=/^on[a-z]/;const Rl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?e=>Ee(t,e):t};function Il(e){e.target.composing=!0}function Al(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ll={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e._assign=Rl(l);const i=r||l.props&&"number"===l.props.type;xl(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=Ie(r)),e._assign(r)})),n&&xl(e,"change",(()=>{e.value=e.value.trim()})),t||(xl(e,"compositionstart",Il),xl(e,"compositionend",Al),xl(e,"change",Al))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){if(e._assign=Rl(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((l||"number"===e.type)&&Ie(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},zl={deep:!0,created(e,t,n){e._assign=Rl(n),xl(e,"change",(()=>{const t=e._modelValue,n=Pl(e),r=e.checked,l=e._assign;if(ie(t)){const e=W(t,n),i=-1!==e;if(r&&!i)l(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),l(n)}}else if(oe(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(Ml(e,r))}))},mounted:Ol,beforeUpdate(e,t,n){e._assign=Rl(n),Ol(e,t,n)}};function Ol(e,{value:t,oldValue:n},r){e._modelValue=t,ie(t)?e.checked=W(t,r.props.value)>-1:oe(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=H(t,Ml(e,!0)))}const jl={created(e,{value:t},n){e.checked=H(t,n.props.value),e._assign=Rl(n),xl(e,"change",(()=>{e._assign(Pl(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Rl(r),t!==n&&(e.checked=H(t,r.props.value))}},Tl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=oe(t);xl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?Ie(Pl(e)):Pl(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=Rl(r)},mounted(e,{value:t}){Ul(e,t)},beforeUpdate(e,t,n){e._assign=Rl(n)},updated(e,{value:t}){Ul(e,t)}};function Ul(e,t){const n=e.multiple;if(!n||ie(t)||oe(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],i=Pl(l);if(n)ie(t)?l.selected=W(t,i)>-1:l.selected=t.has(i);else if(H(Pl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Pl(e){return"_value"in e?e._value:e.value}function Ml(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Fl={created(e,t,n){Nl(e,t,n,null,"created")},mounted(e,t,n){Nl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Nl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Nl(e,t,n,r,"updated")}};function Nl(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Tl;case"TEXTAREA":return Ll;default:switch(t){case"checkbox":return zl;case"radio":return jl;default:return Ll}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Vl={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Dl(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),Dl(e,!0),r.enter(e)):r.leave(e,(()=>{Dl(e,!1)})):Dl(e,t))},beforeUnmount(e,{value:t}){Dl(e,t)}};function Dl(e,t){e.style.display=t?e._vod:"none"}const Bl=te({patchProp:(e,t,n,r,l=!1,i,s,o,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=ue(n);if(n&&!l){for(const e in n)yl(r,e,n[e]);if(t&&!ue(t))for(const e in t)null==n[e]&&yl(r,e,"")}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):Y(t)?ee(t)||_l(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&El.test(t)&&ce(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(El.test(t)&&ue(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,i,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,l,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let o=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=B(n):null==n&&"string"===r?(n="",o=!0):"number"===r&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(t)}(e,t,r,i,s,o,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(kl,t.slice(6,t.length)):e.setAttributeNS(kl,t,n);else{const r=D(t);null==n||r&&!B(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},ml);let Hl;const Wl=(...e)=>{const t=(Hl||(Hl=$r(Bl))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(ue(e)){return document.querySelector(e)}return e}(e);if(!r)return;const l=t._component;ce(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};const ql="undefined"!=typeof window,Zl=e=>"function"==typeof e,Ql=()=>{};function Kl(e){return"function"==typeof e?e():tn(e)}function Gl(e,t){return function(...n){return new Promise(((r,l)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(l)}))}}const Jl=e=>e();function Xl(e){return!!Le&&(function(e){Le&&Le.cleanups.push(e)}(e),!0)}function Yl(e,t=200,n={}){return Gl(function(e,t={}){let n,r,l=Ql;const i=e=>{clearTimeout(e),l(),l=Ql};return s=>{const o=Kl(e),a=Kl(t.maxWait);return n&&i(n),o<=0||void 0!==a&&a<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise(((e,c)=>{l=t.rejectOnCancel?c:e,a&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(s())}),a)),n=setTimeout((()=>{r&&i(r),r=null,e(s())}),o)}))}}(t,n),e)}function ei(e,t=!0){tl||An?qn(e):t?e():bn(e)}var ti=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;function li(e,t,n={}){const r=n,{eventFilter:l=Jl}=r,i=((e,t)=>{var n={};for(var r in e)ni.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ti)for(var r of ti(e))t.indexOf(r)<0&&ri.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Nn(e,Gl(l,t),i)}var ii=Object.defineProperty,si=Object.defineProperties,oi=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,ci=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function di(e,t,n={}){const r=n,{eventFilter:l}=r,i=((e,t)=>{var n={};for(var r in e)ci.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ai)for(var r of ai(e))t.indexOf(r)<0&&ui.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:s,pause:o,resume:a,isActive:c}=function(e=Jl){const t=Jt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(l),u=li(e,t,((e,t)=>si(e,oi(t)))(((e,t)=>{for(var n in t||(t={}))ci.call(t,n)&&pi(e,n,t[n]);if(ai)for(var n of ai(t))ui.call(t,n)&&pi(e,n,t[n]);return e})({},i),{eventFilter:s}));return{stop:u,pause:o,resume:a,isActive:c}}const hi=ql?window:void 0,fi=ql?window.document:void 0;function gi(...e){let t,n,r,l;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,l]=e,t=hi):[t,n,r,l]=e,!t)return Ql;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach((e=>e())),i.length=0},o=Nn((()=>function(e){var t;const n=Kl(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{s(),e&&i.push(...n.flatMap((t=>r.map((n=>((e,t,n)=>(e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)))(e,t,n))))))}),{immediate:!0,flush:"post"}),a=()=>{o(),s()};return Xl(a),a}ql&&window.navigator,ql&&window.location;const mi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},vi="__vueuse_ssr_handlers__";mi[vi]=mi[vi]||{};const yi=mi[vi];var bi=Object.defineProperty,wi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,_i=(e,t,n)=>t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$i=(e,t)=>{for(var n in t||(t={}))ki.call(t,n)&&_i(e,n,t[n]);if(wi)for(var n of wi(t))xi.call(t,n)&&_i(e,n,t[n]);return e};const Ci={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Si(e,t,n,r={}){var l;const{flush:i="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=hi,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?Xt:Jt)(t);if(!n)try{n=function(e,t){return yi[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=hi)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Kl(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(l=r.serializer)?l:Ci[m],{pause:y,resume:b}=di(f,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=v.write(t),l=n.getItem(e);l!==r&&(n.setItem(e,r),p&&(null==p||p.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:l,newValue:r,storageArea:n}))))}}catch(e){h(e)}}(f.value)),{flush:i,deep:s,eventFilter:d});return p&&o&&gi(p,"storage",w),w(),f;function w(t){if(!t||t.storageArea===n)if(t&&null==t.key)f.value=g;else if(!t||t.key===e){y();try{f.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return Zl(c)?c(e,g):"object"!==m||Array.isArray(e)?e:$i($i({},g),e)}return"string"!=typeof r?r:v.read(r)}(t)}catch(e){h(e)}finally{t?bn(b):b()}}}}var Ei,Ri,Ii=Object.defineProperty,Ai=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Oi=(e,t,n)=>t in e?Ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ji(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Jt(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=hi}=t,l=Jt(!1);let i=0,s=null;function o(t){l.value&&r&&(e({delta:t-i,timestamp:t}),i=t,s=r.requestAnimationFrame(o))}function a(){!l.value&&r&&(l.value=!0,s=r.requestAnimationFrame(o))}function c(){l.value=!1,null!=s&&r&&(r.cancelAnimationFrame(s),s=null)}return n&&a(),Xl(c),{isActive:l,pause:c,resume:a}}(l,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const s=Jt(!1);function o(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,o()}function c(){tn(t)<=0||(s.value=!0,l&&e(),o(),i=setInterval(e,Kl(t)))}r&&ql&&c(),(Gt(t)||Zl(t))&&Xl(Nn(t,(()=>{s.value&&ql&&c()})));return Xl(a),{isActive:s,pause:a,resume:c}}(l,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Li.call(t,n)&&Oi(e,n,t[n]);if(Ai)for(var n of Ai(t))zi.call(t,n)&&Oi(e,n,t[n]);return e})({now:r},i):r}(Ri=Ei||(Ei={})).UP="UP",Ri.RIGHT="RIGHT",Ri.DOWN="DOWN",Ri.LEFT="LEFT",Ri.NONE="NONE";let Ti=0;var Ui=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Ni=(e,t,n)=>t in e?Ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))Mi.call(t,n)&&Ni(e,n,t[n]);if(Pi)for(var n of Pi(t))Fi.call(t,n)&&Ni(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Vi=e=>{const t=Si("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},Di=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bi=e=>{"AbortError"!==e.name&&console.error(e.message)},Hi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Wi=e=>e.type.includes("image"),qi=e=>{const t=Array.from(e).find(Wi);return t?t.getAsFile():null};function Zi(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Qi={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ki=/[&<>"']/,Gi=new RegExp(Ki.source,"g"),Ji=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xi=new RegExp(Ji.source,"g"),Yi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},es=e=>Yi[e];function ts(e,t){if(t){if(Ki.test(e))return e.replace(Gi,es)}else if(Ji.test(e))return e.replace(Xi,es);return e}const ns=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function rs(e){return e.replace(ns,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const ls=/(^|[^\[])\^/g;function is(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(ls,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const ss=/[^\w:]/g,os=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function as(e,t,n){if(e){let e;try{e=decodeURIComponent(rs(n)).replace(ss,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!os.test(n)&&(n=function(e,t){cs[" "+e]||(us.test(e)?cs[" "+e]=e+"/":cs[" "+e]=ms(e,"/",!0));e=cs[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(ps,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ds,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const cs={},us=/^[^:]+:\/*[^/]*$/,ps=/^([^:]+:)[\s\S]*$/,ds=/^([^:]+:\/*[^/]*)[\s\S]*$/;const hs={exec:function(){}};function fs(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function gs(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),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 ms(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function vs(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ys(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function bs(e,t,n,r){const l=t.href,i=t.title?ts(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:i,text:ts(s)}}class ws{constructor(e){this.options=e||Qi}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ms(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=ms(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,i,s,o,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),o=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(u))&&!s.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(o)break;if(c.search(/[^ ]/)>=4)break;if(l.test(c))break;if(s.test(c))break;if(r.test(c))break;d+="\n"+u}o||u.trim()||(o=!0),n+=p+"\n",e=e.substring(p.length+1),c=u.slice(i)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(s=0;s<y;s++)if(this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]),!m.loose){const e=m.items[s].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(s=0;s<y;s++)m.items[s].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):ts(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:gs(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,i,s=e.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(s=e.rows.length,n=0;n<s;n++)e.rows[n]=gs(e.rows[n],e.header.length).map((e=>({text:e})));for(s=e.header.length,r=0;r<s;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(s=e.rows.length,r=0;r<s;r++)for(i=e.rows[r],l=0;l<i.length;l++)i[l].tokens=this.lexer.inline(i[l].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ts(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ts(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=ms(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),bs(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return bs(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,i,s=n,o=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(i=l.length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+o);const t=e.slice(0,n+r.index+(r[0].length-l.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=ts(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=ts(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=ts(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=ts(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=ts(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ts(n[0]):n[0]:ts(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ks={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:hs,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ks.def=is(ks.def).replace("label",ks._label).replace("title",ks._title).getRegex(),ks.bullet=/(?:[*+-]|\d{1,9}[.)])/,ks.listItemStart=is(/^( *)(bull) */).replace("bull",ks.bullet).getRegex(),ks.list=is(ks.list).replace(/bull/g,ks.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ks.def.source+")").getRegex(),ks._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ks._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ks.html=is(ks.html,"i").replace("comment",ks._comment).replace("tag",ks._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ks.paragraph=is(ks._paragraph).replace("hr",ks.hr).replace("heading"," {0,3}#{1,6} ").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",ks._tag).getRegex(),ks.blockquote=is(ks.blockquote).replace("paragraph",ks.paragraph).getRegex(),ks.normal=fs({},ks),ks.gfm=fs({},ks.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ks.gfm.table=is(ks.gfm.table).replace("hr",ks.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ks._tag).getRegex(),ks.gfm.paragraph=is(ks._paragraph).replace("hr",ks.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ks.gfm.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",ks._tag).getRegex(),ks.pedantic=fs({},ks.normal,{html:is("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ks._comment).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:hs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:is(ks.normal._paragraph).replace("hr",ks.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ks.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const xs={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hs,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:hs,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function _s(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function $s(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}xs._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",xs.punctuation=is(xs.punctuation).replace(/punctuation/g,xs._punctuation).getRegex(),xs.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,xs.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,xs._comment=is(ks._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),xs.emStrong.lDelim=is(xs.emStrong.lDelim).replace(/punct/g,xs._punctuation).getRegex(),xs.emStrong.rDelimAst=is(xs.emStrong.rDelimAst,"g").replace(/punct/g,xs._punctuation).getRegex(),xs.emStrong.rDelimUnd=is(xs.emStrong.rDelimUnd,"g").replace(/punct/g,xs._punctuation).getRegex(),xs._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,xs._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,xs._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])?)+(?![-_])/,xs.autolink=is(xs.autolink).replace("scheme",xs._scheme).replace("email",xs._email).getRegex(),xs._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,xs.tag=is(xs.tag).replace("comment",xs._comment).replace("attribute",xs._attribute).getRegex(),xs._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xs._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,xs._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,xs.link=is(xs.link).replace("label",xs._label).replace("href",xs._href).replace("title",xs._title).getRegex(),xs.reflink=is(xs.reflink).replace("label",xs._label).replace("ref",ks._label).getRegex(),xs.nolink=is(xs.nolink).replace("ref",ks._label).getRegex(),xs.reflinkSearch=is(xs.reflinkSearch,"g").replace("reflink",xs.reflink).replace("nolink",xs.nolink).getRegex(),xs.normal=fs({},xs),xs.pedantic=fs({},xs.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:is(/^!?\[(label)\]\((.*?)\)/).replace("label",xs._label).getRegex(),reflink:is(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xs._label).getRegex()}),xs.gfm=fs({},xs.normal,{escape:is(xs.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),xs.gfm.url=is(xs.gfm.url,"i").replace("email",xs.gfm._extended_email).getRegex(),xs.breaks=fs({},xs.gfm,{br:is(xs.br).replace("{2,}","*").getRegex(),text:is(xs.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Cs{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Qi,this.options.tokenizer=this.options.tokenizer||new ws,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 t={block:ks.normal,inline:xs.normal};this.options.pedantic?(t.block=ks.pedantic,t.inline=xs.pedantic):this.options.gfm&&(t.block=ks.gfm,this.options.breaks?t.inline=xs.breaks:t.inline=xs.gfm),this.tokenizer.rules=t}static get rules(){return{block:ks,inline:xs}}static lex(e,t){return new Cs(t).lex(e)}static lexInline(e,t){return new Cs(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,l,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(l=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=l.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,l,i,s,o,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+ys("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+ys("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index+i[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(o=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,o))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,$s))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,$s))){if(l=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l,_s))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Ss{constructor(e){this.options=e||Qi}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ts(r)+'">'+(n?e:ts(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ts(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=as(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=as(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Es{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Rs{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Is{constructor(e){this.options=e||Qi,this.options.renderer=this.options.renderer||new Ss,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Es,this.slugger=new Rs}static parse(e,t){return new Is(t).parse(e)}static parseInline(e,t){return new Is(t).parseInline(e)}parse(e,t=!0){let n,r,l,i,s,o,a,c,u,p,d,h,f,g,m,v,y,b,w,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,rs(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,r=0;r<i;r++){for(o=p.rows[r],a="",s=o.length,l=0;l<s;l++)a+=this.renderer.tablecell(this.parseInline(o[l].tokens),{header:!1,align:p.align[l]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",r=0;r<i;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(b=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,l,i="";const s=e.length;for(n=0;n<s;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=l||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function As(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),vs(t=fs({},As.defaults,t||{})),n){const r=t.highlight;let l;try{l=Cs.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&As.walkTokens(l,t.walkTokens),i=Is.parse(l,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!l.length)return i();let s=0;return As.walkTokens(l,(function(e){"code"===e.type&&(s++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),s--,0===s&&i()}))}),0))})),void(0===s&&i())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ts(e.message+"",!0)+"</pre>";throw e}try{const n=Cs.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(As.walkTokens(n,t.walkTokens)).then((()=>Is.parse(n,t))).catch(r);As.walkTokens(n,t.walkTokens)}return Is.parse(n,t)}catch(e){r(e)}}As.options=As.setOptions=function(e){var t;return fs(As.defaults,e),t=As.defaults,Qi=t,As},As.getDefaults=Zi,As.defaults=Qi,As.use=function(...e){const t=As.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const n=fs({},e);if(n.async=As.defaults.async||n.async,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=As.defaults.renderer||new Ss;for(const n in e.renderer){const r=t[n];t[n]=(...l)=>{let i=e.renderer[n].apply(t,l);return!1===i&&(i=r.apply(t,l)),i}}n.renderer=t}if(e.tokenizer){const t=As.defaults.tokenizer||new ws;for(const n in e.tokenizer){const r=t[n];t[n]=(...l)=>{let i=e.tokenizer[n].apply(t,l);return!1===i&&(i=r.apply(t,l)),i}}n.tokenizer=t}if(e.walkTokens){const t=As.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}As.setOptions(n)}))},As.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(As,r)),r.type){case"table":for(const e of r.header)n=n.concat(As.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(As.walkTokens(r.tokens,t));break;case"list":n=n.concat(As.walkTokens(r.items,t));break;default:As.defaults.extensions&&As.defaults.extensions.childTokens&&As.defaults.extensions.childTokens[r.type]?As.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(As.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(As.walkTokens(r.tokens,t)))}return n},As.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");vs(t=fs({},As.defaults,t||{}));try{const n=Cs.lexInline(e,t);return t.walkTokens&&As.walkTokens(n,t.walkTokens),Is.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ts(e.message+"",!0)+"</pre>";throw e}},As.Parser=Is,As.parser=Is.parse,As.Renderer=Ss,As.TextRenderer=Es,As.Lexer=Cs,As.lexer=Cs.lex,As.Tokenizer=ws,As.Slugger=Rs,As.parse=As;const Ls=/\$.*?\$/,zs=/^\$(.*?)\$/,Os=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,js=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Ts=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(As.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Os.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(Ls);return-1!==t?t:e.length},tokenizer(t){const n=zs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);As.use({extensions:e})}return As.parse(js(e,t))},Us=e=>e.dataset.path||e.getAttribute("id"),Ps=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:Array.from(i).map((e=>S(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Bi),l.abort.bind(l)},Ms=({size:e})=>ul("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ul("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"}),ul("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"})]),Fs=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("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"})),Ns=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("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"})),Vs=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("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"}),ul("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"})]),Ds=({active:e=!1})=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("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"})]),Bs=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("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"}),ul("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"})]),Hs=()=>ul("svg",{width:"16",height:"16",ariaHidden:"true"},ul("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"})),Ws=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("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"})),qs=()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("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"})),Zs=()=>ul("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ul("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"})),Qs=({size:e})=>ul("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ul("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ul("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Ks=()=>ul("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ul("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"}),ul("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"})]);let Gs=null;const Js=()=>Gs||(Gs=Si("WALINE_LIKE",[]));let Xs=null;const Ys=()=>Xs??(Xs=Si("WALINE_REACTION",{}));var eo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},to={},no={},ro={},lo=eo&&eo.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(l,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function o(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}a((r=r.apply(e,t||[])).next())}))},io=eo&&eo.__generator||function(e,t){var n,r,l,i,s={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(l=2&i[0]?r.return:i[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,i[1])).done)return l;switch(r=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(l=s.trys,(l=l.length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]<l[3])){s.label=i[1];break}if(6===i[0]&&s.label<l[1]){s.label=l[1],l=i;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(i);break}l[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=l=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}};Object.defineProperty(ro,"__esModule",{value:!0}),ro.ReCaptchaInstance=void 0;var so=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return lo(this,void 0,void 0,(function(){return io(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();ro.ReCaptchaInstance=so,Object.defineProperty(no,"__esModule",{value:!0}),no.getInstance=no.load=void 0;var oo,ao=ro;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(oo||(oo={}));var co=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===oo.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===oo.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(oo.LOADING);var r=new e;return new Promise((function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(oo.LOADED);var i=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),s=new ao.ReCaptchaInstance(t,i,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(s)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&s.hideBadge(),e.instance=s,l(s)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],i(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?oo.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var s=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===l&&(l={}),void 0===i&&(i="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return o.src=a+"?render=explicit"+c,new Promise((function(t,n){o.addEventListener("load",s.waitForScriptToLoad((function(){t(o)}),r),!1),o.onerror=function(t){e.setLoadingState(oo.NOT_LOADED),n(t)},document.head.appendChild(o)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?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(e,t,n,r){var l={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,l):e.render(n.container,l):r?e.enterprise.render(l):e.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();no.load=co.load,no.getInstance=co.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=no;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=ro;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(to);const uo={};let po=null;const ho=()=>po??(po=Si("WALINE_USER",{})),fo={key:0,class:"wl-reaction"},go=["textContent"],mo={class:"wl-reaction-list"},vo=["onClick"],yo={class:"wl-reaction-img"},bo=["src","alt"],wo=["textContent"],ko=["textContent"];var xo,_o,$o=Bn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Ys(),r=Pn("config"),l=Jt(-1),i=Jt([]),s=cl((()=>r.value.locale)),o=cl((()=>r.value.reaction.length>0)),a=cl((()=>{const{reaction:e,path:t}=r.value;return e.map(((e,r)=>({icon:e,desc:s.value[`reaction${r}`],active:n.value[t]===r})))}));let c;return qn((()=>{Nn((()=>[r.value.serverURL,r.value.path]),(()=>{(async()=>{if(o.value){const{serverURL:e,lang:t,path:n,reaction:l}=r.value,s=new AbortController;c=s.abort.bind(s);const o=await _({serverURL:e,lang:t,paths:[n],type:l.map(((e,t)=>`reaction${t}`)),signal:s.signal});if(Array.isArray(o)||"number"==typeof o)return;i.value=l.map(((e,t)=>o[`reaction${t}`]))}})()}),{immediate:!0})})),Qn((()=>c?.())),(e,t)=>tn(a).length?(Or(),Pr("div",fo,[Hr("div",{class:"wl-reaction-title",textContent:q(tn(s).reactionTitle)},null,8,go),Hr("ul",mo,[(Or(!0),Pr(Er,null,tr(tn(a),(({active:e,icon:t,desc:s},o)=>(Or(),Pr("li",{key:o,class:V(["wl-reaction-item",{active:e}]),onClick:e=>(async e=>{if(-1===l.value){const{serverURL:t,lang:s,path:o}=r.value,a=n.value[o];l.value=e,void 0!==a&&(await $({serverURL:t,lang:s,path:o,type:`reaction${a}`,action:"desc"}),i.value[a]=Math.max(i.value[a]-1,0)),a!==e&&(await $({serverURL:t,lang:s,path:o,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),a===e?delete n.value[o]:n.value[o]=e,l.value=-1}})(o)},[Hr("div",yo,[Hr("img",{src:t,alt:s},null,8,bo),l.value===o?(Or(),Mr(tn(Qs),{key:0,class:"wl-reaction-loading"})):(Or(),Pr("div",{key:1,class:"wl-reaction-votes",textContent:q(i.value[o]||0)},null,8,wo))]),Hr("div",{class:"wl-reaction-text",textContent:q(s)},null,8,ko)],10,vo)))),128))])])):Qr("v-if",!0)}}),Co=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},So=Co($o,[["__file","ArticleReaction.vue"]]),Eo="function"==typeof Map?new Map:(xo=[],_o=[],{has:function(e){return xo.indexOf(e)>-1},get:function(e){return _o[xo.indexOf(e)]},set:function(e,t){-1===xo.indexOf(e)&&(xo.push(e),_o.push(t))},delete:function(e){var t=xo.indexOf(e);t>-1&&(xo.splice(t,1),_o.splice(t,1))}}),Ro=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(xo){Ro=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Io(e){var t=Eo.get(e);t&&t.destroy()}function Ao(e){var t=Eo.get(e);t&&t.update()}var Lo=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Lo=function(e){return e}).destroy=function(e){return e},Lo.update=function(e){return e}):((Lo=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Eo.has(e)){var t,n=null,r=null,l=null,i=function(){e.clientWidth!==r&&c()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Eo.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Eo.set(e,{destroy:s,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function o(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&(e.parentNode.style.scrollBehavior="auto",t.push([e.parentNode,e.parentNode.scrollTop])),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0];t.scrollTop=e[1],t.style.scrollBehavior=null}))}}(e);e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t()}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(o("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(o("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==r){l=r;var i=Ro("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Io),e},Lo.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ao),e});var zo=Lo;const Oo=["data-index"],jo=["src","title","onClick"];var To=Bn({__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 l=Jt(null),i=Jt({}),s=Jt([]),o=()=>{const e=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return e>0?e:1},a=async e=>{if(e>=n.items.length)return;await bn();const t=Array.from(l.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));s.value[Number(t.dataset.index)].push(e),await a(e+1)},c=async(e=!1)=>{if(s.value.length===o()&&!e)return;var t;s.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await a(0),window.scrollTo({top:n})},u=e=>{i.value[e.target.src]=!0};return qn((()=>{c(!0),r=new ResizeObserver((()=>{c()})),r.observe(l.value),Nn((()=>[n.items]),(()=>{i.value={},c(!0)})),Nn((()=>[n.columnWidth,n.gap]),(()=>{c()}))})),Zn((()=>r.unobserve(l.value))),(t,n)=>(Or(),Pr("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:U({gap:`${e.gap}px`})},[(Or(!0),Pr(Er,null,tr(s.value,((n,r)=>(Or(),Pr("div",{key:r,class:"wl-gallery-column","data-index":r,style:U({gap:`${e.gap}px`})},[(Or(!0),Pr(Er,null,tr(n,(n=>(Or(),Pr(Er,{key:n},[i.value[e.items[n].src]?Qr("v-if",!0):(Or(),Mr(tn(Qs),{key:0,size:36,style:{margin:"20px auto"}})),Hr("img",{class:"wl-gallery-item",src:e.items[n].src,title:e.items[n].title,loading:"lazy",onLoad:u,onClick:r=>t.$emit("insert",`![](${e.items[n].src})`)},null,40,jo)],64)))),128))],12,Oo)))),128))],4))}}),Uo=Co(To,[["__file","ImageWall.vue"]]);const Po={class:"wl-comment"},Mo={key:0,class:"wl-login-info"},Fo={class:"wl-avatar"},No=["title"],Vo=["title"],Do=["src"],Bo=["title","textContent"],Ho={class:"wl-panel"},Wo=["for","textContent"],qo=["id","onUpdate:modelValue","name","type"],Zo=["placeholder"],Qo={class:"wl-preview"},Ko=Hr("hr",null,null,-1),Go=["innerHTML"],Jo={class:"wl-footer"},Xo={class:"wl-actions"},Yo={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},ea=["title"],ta=["title"],na=["title"],ra=["title"],la={class:"wl-info"},ia={class:"wl-text-number"},sa={key:0},oa=["textContent"],aa=["textContent"],ca=["disabled"],ua=["placeholder"],pa={key:0,class:"wl-loading"},da={key:0,class:"wl-tab-wrapper"},ha=["title","onClick"],fa=["src","alt"],ga={key:0,class:"wl-tabs"},ma=["onClick"],va=["src","alt","title"],ya=["title"];var ba=Bn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e;t();const l=Pn("config"),i=Si("WALINE_COMMENT_BOX_EDITOR",""),s=Si("WALINE_USER_META",{nick:"",mail:"",link:""}),o=ho(),a=Jt({}),c=Jt(null),u=Jt(null),p=Jt(null),d=Jt(null),h=Jt(null),f=Jt(null),g=Jt(null),m=Jt({tabs:[],map:{}}),v=Jt(0),y=Jt(!1),b=Jt(!1),w=Jt(!1),k=Jt(""),x=Jt(0),_=Pt({loading:!0,list:[]}),$=Jt(0),S=Jt(!1),R=Jt(""),I=Jt(!1),A=Jt(!1),L=cl((()=>l.value.locale)),z=cl((()=>Boolean(o.value?.token))),O=cl((()=>!1!==l.value.imageUploader)),j=e=>{const t=c.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;i.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},T=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&N()},U=e=>{const t=`![${l.value.locale.uploading} ${e.name}]()`;return j(t),Promise.resolve().then((()=>l.value.imageUploader(e))).then((n=>{i.value=i.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),i.value=i.value.replace(t,"")}))},P=e=>{if(e.dataTransfer?.items){const t=qi(e.dataTransfer.items);t&&O.value&&(U(t),e.preventDefault())}},M=e=>{if(e.clipboardData){const t=qi(e.clipboardData.items);t&&O.value&&U(t)}},F=()=>{const e=u.value;e.files&&O.value&&U(e.files[0]).then((()=>{e.value=""}))},N=async()=>{const{serverURL:e,lang:t,login:u,wordLimit:p,requiredMeta:d}=l.value;let h="";l.value.recaptchaV3Key&&(h=await(e=>{const t=uo[e]??(uo[e]=to.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(l.value.recaptchaV3Key).execute("social"));const f={comment:R.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,ua:navigator.userAgent,url:l.value.path,recaptchaV3:h};if(o.value?.token)f.nick=o.value.display_name,f.mail=o.value.email,f.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!f.nick)return a.value.nick?.focus(),alert(L.value.nickError);if(d.indexOf("mail")>-1&&!f.mail||f.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(f.mail))return a.value.mail?.focus(),alert(L.value.mailError);if(!f.comment)return void c.value?.focus();f.nick||(f.nick=L.value.anonymous)}if(!S.value)return alert(L.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",x.value.toString()));f.comment=js(f.comment,m.value.map),r.replyId&&r.rootId&&(f.pid=r.replyId,f.rid=r.rootId,f.at=r.replyUser),I.value=!0;const g={serverURL:e,lang:t,token:o.value?.token,comment:f};(r.edit?C({objectId:r.edit.objectId,...g}):(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})(g)).then((e=>{if(I.value=!1,e.errmsg)return alert(e.errmsg);n("submit",e.data),i.value="",k.value="",r.replyId&&n("cancelReply"),r.edit?.objectId&&n("cancelEdit")})).catch((e=>{I.value=!1,alert(e.message)}))},D=e=>{e.preventDefault();const{lang:t,serverURL:r}=l.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t}/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 l?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(l?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),n("log")}))},B=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),n("log")},H=e=>{e.preventDefault();const{lang:t,serverURL:n}=l.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,s=new URLSearchParams({lng:t,token:o.value.token});window.open(`${n}/ui/profile?${s.toString()}`,"_blank",`width=800,height=800,left=${r},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*")},W=e=>{p.value?.contains(e.target)||d.value?.contains(e.target)||(y.value=!1),h.value?.contains(e.target)||f.value?.contains(e.target)||(b.value=!1)},Z=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,i=(n+t)/r,s=l.value.search,o=g.value?.value||"";if(i<.9||_.loading||A.value)return;_.loading=!0;(s.more&&_.list.length?await s.more(o,_.list.length):await s.search(o)).length?_.list=[..._.list,...s.more&&_.list.length?await s.more(o,_.list.length):await s.search(o)]:A.value=!0,_.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50)},Q=Yl((e=>{_.list=[],A.value=!1,Z(e)}),300);Nn([l,x],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?($.value=n[0],S.value=!1):t>n[1]?($.value=n[1],S.value=!1):($.value=n[1],S.value=!0):($.value=0,S.value=!0)}),{immediate:!0});const K=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return qn((()=>{document.body.addEventListener("click",W),window.addEventListener("message",K),r.edit?.objectId&&(i.value=r.edit.orig),Nn(b,(async e=>{if(!e)return;const t=l.value.search;g.value&&(g.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1})),Nn((()=>i.value),(e=>{const{highlighter:t,texRenderer:n}=l.value;R.value=e,k.value=Ts(e,{emojiMap:m.value.map,highlighter:t,texRenderer:n}),x.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?zo(c.value):zo.destroy(c.value)}),{immediate:!0}),Nn((()=>l.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?Vi(E(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:i,type:s,items:o}=e;t.tabs.push({name:n,icon:Di(l,r,i,s),items:o.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Di(e,r,i,s),n}))})})),t}))).then((e=>{m.value=e}));var t}),{immediate:!0})})),Qn((()=>{document.body.removeEventListener("click",W),window.removeEventListener("message",K)})),(t,n)=>(Or(),Pr("div",Po,["disable"!==tn(l).login&&tn(z)&&!e.edit?.objectId?(Or(),Pr("div",Mo,[Hr("div",Fo,[Hr("button",{type:"submit",class:"wl-logout-btn",title:tn(L).logout,onClick:B},[Wr(tn(Ms),{size:14})],8,No),Hr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:tn(L).profile,onClick:H},[Hr("img",{src:tn(o).avatar,alt:"avatar"},null,8,Do)],8,Vo)]),Hr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:tn(L).profile,onClick:H,textContent:q(tn(o).display_name)},null,8,Bo)])):Qr("v-if",!0),Hr("div",Ho,["force"!==tn(l).login&&tn(l).meta.length&&!tn(z)?(Or(),Pr("div",{key:0,class:V(["wl-header",`item${tn(l).meta.length}`])},[(Or(!0),Pr(Er,null,tr(tn(l).meta,(e=>(Or(),Pr("div",{key:e,class:"wl-header-item"},[Hr("label",{for:`wl-${e}`,textContent:q(tn(L)[e]+(tn(l).requiredMeta.includes(e)||!tn(l).requiredMeta.length?"":`(${tn(L).optional})`))},null,8,Wo),Kn(Hr("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(a.value[e]=t)},"onUpdate:modelValue":t=>tn(s)[e]=t,class:V(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,qo),[[Fl,tn(s)[e]]])])))),128))],2)):Qr("v-if",!0),Kn(Hr("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":n[0]||(n[0]=e=>Gt(i)?i.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:tn(L).placeholder,onKeydown:T,onDrop:P,onPaste:M},null,40,Zo),[[Ll,tn(i)]]),Kn(Hr("div",Qo,[Ko,Hr("h4",null,q(tn(L).preview)+":",1),Hr("div",{class:"wl-content",innerHTML:k.value},null,8,Go)],512),[[Vl,w.value]]),Hr("div",Jo,[Hr("div",Xo,[Hr("a",Yo,[Wr(tn(Hs))]),Kn(Hr("button",{ref_key:"emojiButtonRef",ref:p,type:"button",class:V(["wl-action",{active:y.value}]),title:tn(L).emoji,onClick:n[1]||(n[1]=e=>y.value=!y.value)},[Wr(tn(Ns))],10,ea),[[Vl,m.value.tabs.length]]),tn(l).search?(Or(),Pr("button",{key:0,ref_key:"gifButtonRef",ref:h,type:"button",class:V(["wl-action",{active:b.value}]),title:tn(L).gif,onClick:n[2]||(n[2]=e=>b.value=!b.value)},[Wr(tn(Ks))],10,ta)):Qr("v-if",!0),Hr("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:F},null,544),tn(O)?(Or(),Pr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:tn(L).uploadImage},[Wr(tn(Vs))],8,na)):Qr("v-if",!0),Hr("button",{type:"button",class:V(["wl-action",{active:w.value}]),title:tn(L).preview,onClick:n[3]||(n[3]=e=>w.value=!w.value)},[Wr(tn(Bs))],10,ra)]),Hr("div",la,[Hr("div",ia,[Zr(q(x.value)+" ",1),tn(l).wordLimit?(Or(),Pr("span",sa,[Zr("  /  "),Hr("span",{class:V({illegal:!S.value}),textContent:q($.value)},null,10,oa)])):Qr("v-if",!0),Zr("  "+q(tn(L).word),1)]),"disable"===tn(l).login||tn(z)?Qr("v-if",!0):(Or(),Pr("button",{key:0,type:"button",class:"wl-btn",onClick:D,textContent:q(tn(L).login)},null,8,aa)),"force"!==tn(l).login||tn(z)?(Or(),Pr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:I.value,onClick:N},[I.value?(Or(),Mr(tn(Qs),{key:0,size:16})):(Or(),Pr(Er,{key:1},[Zr(q(tn(L).submit),1)],64))],8,ca)):Qr("v-if",!0)]),Hr("div",{ref_key:"gifPopupRef",ref:f,class:V(["wl-gif-popup",{display:b.value}])},[Hr("input",{ref_key:"gifSearchInputRef",ref:g,type:"text",placeholder:tn(L).gifSearchPlaceholder,onInput:n[4]||(n[4]=(...e)=>tn(Q)&&tn(Q)(...e))},null,40,ua),Wr(Uo,{items:_.list,"column-width":200,gap:6,onInsert:n[5]||(n[5]=e=>j(e)),onScroll:Z},null,8,["items"]),_.loading?(Or(),Pr("div",pa,[Wr(tn(Qs),{size:30})])):Qr("v-if",!0)],2),Hr("div",{ref_key:"emojiPopupRef",ref:d,class:V(["wl-emoji-popup",{display:y.value}])},[(Or(!0),Pr(Er,null,tr(m.value.tabs,((e,t)=>(Or(),Pr(Er,{key:e.name},[t===v.value?(Or(),Pr("div",da,[(Or(!0),Pr(Er,null,tr(e.items,(e=>(Or(),Pr("button",{key:e,type:"button",title:e,onClick:t=>j(`:${e}:`)},[y.value?(Or(),Pr("img",{key:0,class:"wl-emoji",src:m.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,fa)):Qr("v-if",!0)],8,ha)))),128))])):Qr("v-if",!0)],64)))),128)),m.value.tabs.length>1?(Or(),Pr("div",ga,[(Or(!0),Pr(Er,null,tr(m.value.tabs,((e,t)=>(Or(),Pr("button",{key:e.name,type:"button",class:V(["wl-tab",{active:v.value===t}]),onClick:e=>v.value=t},[Hr("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,va)],10,ma)))),128))])):Qr("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(Or(),Pr("button",{key:1,type:"button",class:"wl-close",title:tn(L).cancelReply,onClick:n[6]||(n[6]=n=>t.$emit(e.replyId?"cancelReply":"cancelEdit"))},[Wr(tn(Ms),{size:24})],8,ya)):Qr("v-if",!0)]))}}),wa=Co(ba,[["__file","CommentBox.vue"]]);const ka=["id"],xa={class:"wl-user","aria-hidden":"true"},_a=["src"],$a={class:"wl-card"},Ca={class:"wl-head"},Sa=["href"],Ea={key:1,class:"wl-nick"},Ra=["textContent"],Ia=["textContent"],Aa=["textContent"],La=["textContent"],za=["textContent"],Oa={class:"wl-comment-actions"},ja=["title"],Ta=["textContent"],Ua=["title"],Pa={class:"wl-meta","aria-hidden":"true"},Ma=["data-value","textContent"],Fa=["data-value","textContent"],Na=["data-value","textContent"],Va=["innerHTML"],Da={key:1,class:"wl-admin-actions"},Ba={class:"wl-comment-status"},Ha=["disabled","onClick","textContent"],Wa={key:3,class:"wl-quote"};var qa=Co(Bn({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=Pn("config"),l=Js(),i=ji(),s=ho(),o=cl((()=>r.value.locale)),a=cl((()=>{const{link:e}=t.comment;return e?R(e)?e:`https://${e}`:""})),c=cl((()=>l.value.includes(t.comment.objectId))),u=cl((()=>j(t.comment.insertedAt,i.value,o.value))),p=cl((()=>"administrator"===s.value.type)),d=cl((()=>t.comment.user_id&&s.value.objectId===t.comment.user_id)),h=cl((()=>t.comment.objectId===t.reply?.objectId)),f=cl((()=>t.comment.objectId===t.edit?.objectId));return(t,r)=>{const l=Xn("CommentCard",!0);return Or(),Pr("div",{id:e.comment.objectId,class:"wl-card-item"},[Hr("div",xa,[e.comment.avatar?(Or(),Pr("img",{key:0,src:e.comment.avatar},null,8,_a)):Qr("v-if",!0),e.comment.type?(Or(),Mr(tn(Zs),{key:1})):Qr("v-if",!0)]),Hr("div",$a,[Hr("div",Ca,[tn(a)?(Or(),Pr("a",{key:0,class:"wl-nick",href:tn(a),target:"_blank",rel:"noopener noreferrer"},q(e.comment.nick),9,Sa)):(Or(),Pr("span",Ea,q(e.comment.nick),1)),"administrator"===e.comment.type?(Or(),Pr("span",{key:2,class:"wl-badge",textContent:q(tn(o).admin)},null,8,Ra)):Qr("v-if",!0),e.comment.label?(Or(),Pr("span",{key:3,class:"wl-badge",textContent:q(e.comment.label)},null,8,Ia)):Qr("v-if",!0),e.comment.sticky?(Or(),Pr("span",{key:4,class:"wl-badge",textContent:q(tn(o).sticky)},null,8,Aa)):Qr("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Or(),Pr("span",{key:5,class:V(`wl-badge level${e.comment.level}`),textContent:q(tn(o)[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,La)):Qr("v-if",!0),Hr("span",{class:"wl-time",textContent:q(tn(u))},null,8,za),Hr("div",Oa,[tn(p)||tn(d)?(Or(),Pr("button",{key:0,type:"button",class:"wl-edit",onClick:r[0]||(r[0]=()=>t.$emit("edit",e.comment))},[Wr(tn(qs))])):Qr("v-if",!0),tn(p)||tn(d)?(Or(),Pr("button",{key:1,type:"button",class:"wl-delete",onClick:r[1]||(r[1]=n=>t.$emit("delete",e.comment))},[Wr(tn(Fs))])):Qr("v-if",!0),Hr("button",{type:"button",class:"wl-like",title:tn(c)?tn(o).cancelLike:tn(o).like,onClick:r[2]||(r[2]=n=>t.$emit("like",e.comment))},[Wr(tn(Ds),{active:tn(c)},null,8,["active"]),"like"in e.comment?(Or(),Pr("span",{key:0,textContent:q(e.comment.like)},null,8,Ta)):Qr("v-if",!0)],8,ja),Hr("button",{type:"button",class:V(["wl-reply",{active:tn(h)}]),title:tn(h)?tn(o).cancelReply:tn(o).reply,onClick:r[3]||(r[3]=n=>t.$emit("reply",tn(h)?null:e.comment))},[Wr(tn(Ws))],10,Ua)])]),Hr("div",Pa,[e.comment.addr?(Or(),Pr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:q(e.comment.addr)},null,8,Ma)):Qr("v-if",!0),e.comment.browser?(Or(),Pr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:q(e.comment.browser)},null,8,Fa)):Qr("v-if",!0),e.comment.os?(Or(),Pr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:q(e.comment.os)},null,8,Na)):Qr("v-if",!0)]),tn(f)?Qr("v-if",!0):(Or(),Pr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Va)),tn(p)&&!tn(f)?(Or(),Pr("div",Da,[Hr("span",Ba,[(Or(),Pr(Er,null,tr(n,(n=>Hr("button",{key:n,type:"submit",class:V(`wl-btn wl-${n}`),disabled:e.comment.status===n,onClick:r=>t.$emit("status",{status:n,comment:e.comment}),textContent:q(tn(o)[n])},null,10,Ha))),64))]),tn(p)&&!e.comment.rid?(Or(),Pr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:r[4]||(r[4]=n=>t.$emit("sticky",e.comment))},q(e.comment.sticky?tn(o).unsticky:tn(o).sticky),1)):Qr("v-if",!0)])):Qr("v-if",!0),tn(h)||tn(f)?(Or(),Pr("div",{key:2,class:V({"wl-reply-wrapper":tn(h),"wl-edit-wrapper":tn(f)})},[Wr(wa,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:r[5]||(r[5]=e=>t.$emit("log")),onCancelReply:r[6]||(r[6]=e=>t.$emit("reply",null)),onCancelEdit:r[7]||(r[7]=e=>t.$emit("edit",null)),onSubmit:r[8]||(r[8]=e=>t.$emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Qr("v-if",!0),e.comment.children?(Or(),Pr("div",Wa,[(Or(!0),Pr(Er,null,tr(e.comment.children,(n=>(Or(),Mr(l,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:r[9]||(r[9]=e=>t.$emit("log")),onDelete:r[10]||(r[10]=e=>t.$emit("delete",e)),onEdit:r[11]||(r[11]=e=>t.$emit("edit",e)),onLike:r[12]||(r[12]=e=>t.$emit("like",e)),onReply:r[13]||(r[13]=e=>t.$emit("reply",e)),onStatus:r[14]||(r[14]=e=>t.$emit("status",e)),onSticky:r[15]||(r[15]=e=>t.$emit("sticky",e)),onSubmit:r[16]||(r[16]=e=>t.$emit("submit",e))},null,8,["comment","reply","edit","root-id"])))),128))])):Qr("v-if",!0)])],8,ka)}}}),[["__file","CommentCard.vue"]]);const Za="2.14.7",Qa={"data-waline":""},Ka={class:"wl-meta-head"},Ga={class:"wl-count"},Ja=["textContent"],Xa={class:"wl-sort"},Ya=["onClick"],ec={class:"wl-cards"},tc={key:1,class:"wl-operation"},nc=["textContent"],rc={key:0,class:"wl-loading"},lc=["textContent"],ic={key:2,class:"wl-operation"},sc=["textContent"],oc={key:3,class:"wl-power"},ac=Hr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var cc=Bn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const a=e,c={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},u=Object.keys(c),d=ho(),h=Js(),f=Jt("loading"),g=Jt(0),m=Jt(1),v=Jt(0),y=cl((()=>(({serverURL:e,path:a=location.pathname,lang:c=("undefined"==typeof navigator?"en-US":navigator.language),locale:u,emoji:d=n,meta:h=["nick","mail","link"],requiredMeta:f=[],dark:g=!1,pageSize:m=10,wordLimit:v,imageUploader:y,highlighter:b,texRenderer:k,copyright:x=!0,login:_="enable",search:$,reaction:C,recaptchaV3Key:E="",commentSorting:R="latest",...z})=>({serverURL:I(e),path:S(a),locale:{...w[c]||w[r],..."object"==typeof u?u:{}},wordLimit:A(v),meta:t(h),requiredMeta:t(f),imageUploader:L(y,l),highlighter:L(b,p),texRenderer:L(k,i),lang:Object.keys(w).includes(c)?c:"en-US",dark:g,emoji:"boolean"==typeof d?d?n:[]:d,pageSize:m,login:_,copyright:x,search:!1!==$&&("object"==typeof $?$:s(c)),recaptchaV3Key:E,reaction:Array.isArray(C)?C:!0===C?o:[],commentSorting:R,...z}))(a))),b=Jt(y.value.commentSorting),k=Jt([]),_=Jt(null),$=Jt(null),E=cl((()=>{return"string"==typeof(e=y.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${z}}`:`${e}${z}`:!0===e?`:root${z}`:"";var e})),R=cl((()=>y.value.locale));let O;!function(e,t={}){const n=Jt(!1),{document:r=fi,immediate:l=!0,manual:i=!1,id:s="vueuse_styletag_"+ ++Ti}=t,o=Jt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(s)||r.createElement("style");e.isConnected||(e.type="text/css",e.id=s,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=Nn(o,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(s)),n.value=!1)};l&&!i&&ei(c),i||Xl(u),Mt(n)}(E);const j=e=>{const{serverURL:t,path:n,pageSize:r}=y.value,l=new AbortController;f.value="loading",O?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:s,headers:a}).then((e=>e.json())).then((e=>x(e,"Get comment data")))})({serverURL:t,lang:y.value.lang,path:n,pageSize:r,sortBy:c[b.value],page:e,signal:l.signal,token:d.value?.token}).then((t=>{f.value="success",g.value=t.count,k.value.push(...t.data),m.value=e,v.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),f.value="error")})),O=l.abort.bind(l)},T=()=>j(m.value+1),U=()=>{g.value=0,k.value=[],j(1)},P=e=>{_.value=e},M=e=>{$.value=e},F=e=>{if($.value)$.value.comment=e.comment,$.value.orig=e.orig;else if(e.rid){const t=k.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else k.value.unshift(e)},N=async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=y.value;await C({serverURL:n,lang:r,token:d.value?.token,objectId:e.objectId,comment:{status:t}}),e.status=t},D=async e=>{if(e.rid)return;const{serverURL:t,lang:n}=y.value;await C({serverURL:t,lang:n,token:d.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},B=async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=y.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())).then((e=>x(e,"Delete comment"))))({serverURL:t,lang:n,token:d.value?.token,objectId:e}),k.value.some(((t,n)=>t.objectId===e?(k.value=k.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(k.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},H=async e=>{const{serverURL:t,lang:n}=y.value,{objectId:r}=e,l=h.value.includes(r);await C({serverURL:t,lang:n,objectId:r,token:d.value?.token,comment:{like:!l}}),l?h.value=h.value.filter((e=>e!==r)):(h.value=[...h.value,r],h.value.length>50&&(h.value=h.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)};return function(e,t){if(tl){let n=tl.provides;const r=tl.parent&&tl.parent.provides;r===n&&(n=tl.provides=Object.create(r)),n[e]=t}}("config",y),qn((()=>{Nn((()=>[a.serverURL,a.path]),(()=>U()),{immediate:!0})})),Qn((()=>O?.())),(e,t)=>(Or(),Pr("div",Qa,[Wr(So),_.value?Qr("v-if",!0):(Or(),Mr(wa,{key:0,onLog:U,onSubmit:F})),Hr("div",Ka,[Hr("div",Ga,[g.value?(Or(),Pr("span",{key:0,class:"wl-num",textContent:q(g.value)},null,8,Ja)):Qr("v-if",!0),Zr(" "+q(tn(R).comment),1)]),Hr("ul",Xa,[(Or(!0),Pr(Er,null,tr(tn(u),(e=>(Or(),Pr("li",{key:e,class:V([e===b.value?"active":""]),onClick:t=>(e=>{b.value!==e&&(b.value=e,U())})(e)},q(tn(R)[e]),11,Ya)))),128))])]),Hr("div",ec,[(Or(!0),Pr(Er,null,tr(k.value,(e=>(Or(),Mr(qa,{key:e.objectId,"root-id":e.objectId,comment:e,reply:_.value,edit:$.value,onLog:U,onReply:P,onEdit:M,onSubmit:F,onStatus:N,onDelete:B,onSticky:D,onLike:H},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===f.value?(Or(),Pr("div",tc,[Hr("button",{type:"button",class:"wl-btn",onClick:U,textContent:q(tn(R).refresh)},null,8,nc)])):(Or(),Pr(Er,{key:2},["loading"===f.value?(Or(),Pr("div",rc,[Wr(tn(Qs),{size:30})])):k.value.length?m.value<v.value?(Or(),Pr("div",ic,[Hr("button",{type:"button",class:"wl-btn",onClick:T,textContent:q(tn(R).more)},null,8,sc)])):Qr("v-if",!0):(Or(),Pr("div",{key:1,class:"wl-empty",textContent:q(tn(R).sofa)},null,8,lc))],64)),tn(y).copyright?(Or(),Pr("div",oc,[Zr(" Powered by "),ac,Zr(" v"+q(tn(Za)),1)])):Qr("v-if",!0)]))}}),uc=Co(cc,[["__file","WalineComment.vue"]]);const pc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},dc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,s=Array.from(document.querySelectorAll(n)),o=e=>{const n=Us(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>_({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:n.map((e=>Us(e)||t)),lang:l,signal:i.signal}).then((e=>pc(e,n))).catch(Bi);if(r){const n=s.filter((e=>!o(e))),r=s.filter(o);(c={serverURL:I(e),path:t,lang:l},$({...c,type:"time",action:"inc"})).then((e=>pc(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(s);var c;return i.abort.bind(i)},hc=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?Hi(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Pt({...l}),o=Pt({comment:n,pageview:r,path:t}),a=i?Wl((()=>ul(uc,{path:o.path,...s}))):null;a&&a.mount(i);const c=Mn((()=>{o.comment&&Ps({serverURL:s.serverURL,path:o.path,selector:"string"==typeof o.comment?o.comment:void 0})})),u=Mn((()=>{o.pageview&&dc({serverURL:s.serverURL,path:o.path,selector:"string"==typeof o.pageview?o.pageview:void 0})}));return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{s[e]=t})),o.path=n,void 0!==e&&(o.comment=e),void 0!==t&&(o.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},fc=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const l=ho(),i=Hi(e),s=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json()))})({serverURL:t,count:n,lang:r,signal:s.signal,token:l.value?.token}).then((e=>i&&e.length?(i.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{s.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))},gc=({el:e,serverURL:t,count:n,locale:l,lang:i=navigator.language,mode:s="list"})=>{const o=Hi(e),a=new AbortController;return(({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${e}/user?pageSize=${n}&lang=${r}`,{signal:t}).then((e=>e.json())).then((e=>x(e,"user list"))).then((e=>e.data)))({serverURL:t,pageSize:n,lang:i,signal:a.signal}).then((e=>o&&e.length?(l={...w[i]||w[r],..."object"==typeof l?l:{}},o.innerHTML=`<ul class="wl-user-${s}">${e.map(((e,t)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link&&`<a href="${e.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${t+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',e.nick,e.level&&`<span class="wl-badge">${l?l[`level${e.level}`]:`Level ${e.level}`}</span>`,e.label&&`<span class="wl-badge">${e.label}</span>`,"</div>",e.link&&e.link,"</div>",e.link&&"</a>","</li>"].filter((e=>e)).join(""))).join("")}</ul>`,{users:e,destroy:()=>{a.abort(),o.innerHTML=""}}):{users:e,destroy:()=>a.abort()}))};export{fc as RecentComments,gc as UserList,Ps as commentCount,w as defaultLocales,hc as init,dc as pageviewCount,Za as version};
//# sourceMappingURL=waline.mjs.map