@waline/client 2.3.2 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.esm.js +1 -1
- package/dist/component.esm.js.map +1 -1
- package/dist/component.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/legacy.d.ts +4 -9
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/pageview.cjs.d.ts +47 -0
- package/dist/pageview.cjs.js +1 -1
- package/dist/pageview.cjs.js.map +1 -1
- package/dist/pageview.esm.d.ts +47 -0
- package/dist/pageview.esm.js +1 -1
- package/dist/pageview.esm.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/shim.d.ts +46 -11
- package/dist/shim.esm.d.ts +46 -11
- package/dist/shim.esm.js +1 -1
- package/dist/shim.esm.js.map +1 -1
- package/dist/shim.js +1 -1
- package/dist/shim.js.map +1 -1
- package/dist/waline.cjs.d.ts +46 -11
- package/dist/waline.cjs.js +1 -1
- package/dist/waline.cjs.js.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.d.ts +46 -11
- package/dist/waline.esm.d.ts +46 -11
- package/dist/waline.esm.js +1 -1
- package/dist/waline.esm.js.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/package.json +19 -5
- package/src/components/CommentCard.vue +80 -14
- package/src/components/Icons.ts +28 -2
- package/src/components/Waline.vue +115 -2
- package/src/composables/index.ts +1 -0
- package/src/composables/like.ts +14 -0
- package/src/composables/userInfo.ts +9 -1
- package/src/config/i18n/en.ts +2 -0
- package/src/config/i18n/generate.ts +2 -0
- package/src/config/i18n/jp.ts +2 -0
- package/src/config/i18n/pt-BR.ts +2 -0
- package/src/config/i18n/ru.ts +2 -0
- package/src/config/i18n/vi-VN.ts +2 -0
- package/src/config/i18n/zh-CN.ts +2 -0
- package/src/config/i18n/zh-TW.ts +2 -0
- package/src/styles/card.scss +55 -27
- package/src/styles/nomalize.scss +0 -1
- package/src/styles/panel.scss +0 -1
- package/src/typings/comment.ts +56 -1
- package/src/typings/locale.ts +3 -8
- package/src/typings/waline.ts +1 -1
- package/src/utils/config.ts +1 -1
- package/src/utils/fetch.ts +77 -4
package/dist/waline.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var e;return t((null===(e=r.result)||void 0===e?void 0:e.toString())||"")},r.onerror=n})),r=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>',o=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"),i=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],l={},s=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let o;l[n]?o=l[n]:(o=i[t],l[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%i.length,s}))},a=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","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"],c=e=>Object.fromEntries(e.map(((e,t)=>[a[t],e])));var u=c(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","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"]),p=c(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),d=c(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说"]),f=c(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說"]),h=c(["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","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"]),g=c(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const m={zh:d,"zh-cn":d,"zh-CN":d,"zh-tw":f,"zh-TW":f,en:u,"en-US":u,"en-us":u,jp:p,"jp-jp":p,"jp-JP":p,"pt-br":h,"pt-BR":h,ru:g,"ru-ru":g,"ru-RU":g};function v(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]}const y=v("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function b(e){return!!e||""===e}function w(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=W(r)?x(r):w(r);if(o)for(const e in o)t[e]=o[e]}return t}return W(e)||Z(e)?e:void 0}const _=/;(?![^(]*\))/g,k=/:(.+)/;function x(e){const t={};return e.split(_).forEach((e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function S(e){let t="";if(W(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=S(e[n]);r&&(t+=r+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $(e,t){if(e===t)return!0;let n=B(e),r=B(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=V(e),r=V(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=$(e[r],t[r]);return n}(e,t);if(n=Z(e),r=Z(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),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!$(e[n],t[n]))return!1}}return String(e)===String(t)}function E(e,t){return e.findIndex((e=>$(e,t)))}const C=e=>W(e)?e:null==e?"":V(e)||Z(e)&&(e.toString===J||!q(e.toString))?JSON.stringify(e,O,2):String(e),O=(e,t)=>t&&t.__v_isRef?O(e,t.value):F(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!Z(t)||V(t)||Y(t)?t:String(t),R={},z=[],I=()=>{},A=()=>!1,T=/^on[^a-z]/,L=e=>T.test(e),j=e=>e.startsWith("onUpdate:"),P=Object.assign,U=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},M=Object.prototype.hasOwnProperty,N=(e,t)=>M.call(e,t),V=Array.isArray,F=e=>"[object Map]"===Q(e),D=e=>"[object Set]"===Q(e),B=e=>e instanceof Date,q=e=>"function"==typeof e,W=e=>"string"==typeof e,H=e=>"symbol"==typeof e,Z=e=>null!==e&&"object"==typeof e,K=e=>Z(e)&&q(e.then)&&q(e.catch),J=Object.prototype.toString,Q=e=>J.call(e),Y=e=>"[object Object]"===Q(e),X=e=>W(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=v(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ee=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},te=/-(\w)/g,ne=ee((e=>e.replace(te,((e,t)=>t?t.toUpperCase():"")))),re=/\B([A-Z])/g,oe=ee((e=>e.replace(re,"-$1").toLowerCase())),ie=ee((e=>e.charAt(0).toUpperCase()+e.slice(1))),le=ee((e=>e?`on${ie(e)}`:"")),se=(e,t)=>!Object.is(e,t),ae=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ce=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ue=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pe;const de=()=>pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let fe;class he{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&fe&&(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=fe;try{return fe=this,e()}finally{fe=t}}}on(){fe=this}off(){fe=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.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const ge=e=>{const t=new Set(e);return t.w=0,t.n=0,t},me=e=>(e.w&we)>0,ve=e=>(e.n&we)>0,ye=new WeakMap;let be=0,we=1;let _e;const ke=Symbol(""),xe=Symbol("");class Se{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=fe){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Ee=!0,we=1<<++be,be<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=we})(this):$e(this),this.fn()}finally{be<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];me(o)&&!ve(o)?o.delete(e):t[n++]=o,o.w&=~we,o.n&=~we}t.length=n}})(this),we=1<<--be,_e=this.parent,Ee=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_e===this?this.deferStop=!0:this.active&&($e(this),this.onStop&&this.onStop(),this.active=!1)}}function $e(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ee=!0;const Ce=[];function Oe(){Ce.push(Ee),Ee=!1}function Re(){const e=Ce.pop();Ee=void 0===e||e}function ze(e,t,n){if(Ee&&_e){let t=ye.get(e);t||ye.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ge()),Ie(r)}}function Ie(e,t){let n=!1;be<=30?ve(e)||(e.n|=we,n=!me(e)):n=!e.has(_e),n&&(e.add(_e),_e.deps.push(e))}function Ae(e,t,n,r,o,i){const l=ye.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&V(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":V(e)?X(n)&&s.push(l.get("length")):(s.push(l.get(ke)),F(e)&&s.push(l.get(xe)));break;case"delete":V(e)||(s.push(l.get(ke)),F(e)&&s.push(l.get(xe)));break;case"set":F(e)&&s.push(l.get(ke))}if(1===s.length)s[0]&&Te(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Te(ge(e))}}function Te(e,t){for(const t of V(e)?e:[...e])(t!==_e||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Le=v("__proto__,__v_isRef,__isVue"),je=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(H)),Pe=Fe(),Ue=Fe(!1,!0),Me=Fe(!0),Ne=Ve();function Ve(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e<t;e++)ze(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map($t)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Oe();const n=$t(this)[t].apply(this,e);return Re(),n}})),e}function Fe(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?mt:gt:t?ht:ft).get(n))return n;const i=V(n);if(!e&&i&&N(Ne,r))return Reflect.get(Ne,r,o);const l=Reflect.get(n,r,o);if(H(r)?je.has(r):Le(r))return l;if(e||ze(n,0,r),t)return l;if(It(l)){return!i||!X(r)?l.value:l}return Z(l)?e?bt(l):yt(l):l}}function De(e=!1){return function(t,n,r,o){let i=t[n];if(kt(i)&&It(i)&&!It(r))return!1;if(!e&&!kt(r)&&(xt(r)||(r=$t(r),i=$t(i)),!V(t)&&It(i)&&!It(r)))return i.value=r,!0;const l=V(t)&&X(n)?Number(n)<t.length:N(t,n),s=Reflect.set(t,n,r,o);return t===$t(o)&&(l?se(r,i)&&Ae(t,"set",n,r):Ae(t,"add",n,r)),s}}const Be={get:Pe,set:De(),deleteProperty:function(e,t){const n=N(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ae(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return H(t)&&je.has(t)||ze(e,0,t),n},ownKeys:function(e){return ze(e,0,V(e)?"length":ke),Reflect.ownKeys(e)}},qe={get:Me,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},We=P({},Be,{get:Ue,set:De(!0)}),He=e=>e,Ze=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),i=$t(t);t!==i&&!n&&ze(o,0,t),!n&&ze(o,0,i);const{has:l}=Ze(o),s=r?He:n?Ot:Ct;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Je(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return e!==o&&!t&&ze(r,0,e),!t&&ze(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Qe(e,t=!1){return e=e.__v_raw,!t&&ze($t(e),0,ke),Reflect.get(e,"size",e)}function Ye(e){e=$t(e);const t=$t(this);return Ze(t).has.call(t,e)||(t.add(e),Ae(t,"add",e,e)),this}function Xe(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=Ze(n);let i=r.call(n,e);i||(e=$t(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?se(t,l)&&Ae(n,"set",e,t):Ae(n,"add",e,t),this}function Ge(e){const t=$t(this),{has:n,get:r}=Ze(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ae(t,"delete",e,void 0),i}function et(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}function tt(e,t){return function(n,r){const o=this,i=o.__v_raw,l=$t(i),s=t?He:e?Ot:Ct;return!e&&ze(l,0,ke),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function nt(e,t,n){return function(...r){const o=this.__v_raw,i=$t(o),l=F(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=o[e](...r),u=n?He:t?Ot:Ct;return!t&&ze(i,0,a?xe:ke),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function rt(e){return function(...t){return"delete"!==e&&this}}function ot(){const e={get(e){return Ke(this,e)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Qe(this)},has:Je,add:Ye,set:Xe,delete:Ge,clear:et,forEach:tt(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!1)},r={get(e){return Ke(this,e,!0,!0)},get size(){return Qe(this,!0)},has(e){return Je.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:tt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=nt(o,!1,!1),n[o]=nt(o,!0,!1),t[o]=nt(o,!1,!0),r[o]=nt(o,!0,!0)})),[e,n,t,r]}const[it,lt,st,at]=ot();function ct(e,t){const n=t?e?at:st:e?lt:it;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(N(n,r)&&r in t?n:t,r,o)}const ut={get:ct(!1,!1)},pt={get:ct(!1,!0)},dt={get:ct(!0,!1)},ft=new WeakMap,ht=new WeakMap,gt=new WeakMap,mt=new WeakMap;function vt(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=>Q(e).slice(8,-1))(e))}function yt(e){return kt(e)?e:wt(e,!1,Be,ut,ft)}function bt(e){return wt(e,!0,qe,dt,gt)}function wt(e,t,n,r,o){if(!Z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=vt(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return o.set(e,s),s}function _t(e){return kt(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function kt(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function St(e){return _t(e)||kt(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function Et(e){return ce(e,"__v_skip",!0),e}const Ct=e=>Z(e)?yt(e):e,Ot=e=>Z(e)?bt(e):e;function Rt(e){Ee&&_e&&Ie((e=$t(e)).dep||(e.dep=ge()))}function zt(e,t){(e=$t(e)).dep&&Te(e.dep)}function It(e){return!(!e||!0!==e.__v_isRef)}function At(e){return Lt(e,!1)}function Tt(e){return Lt(e,!0)}function Lt(e,t){return It(e)?e:new jt(e,t)}class jt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Ct(e)}get value(){return Rt(this),this._value}set value(e){e=this.__v_isShallow?e:$t(e),se(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ct(e),zt(this))}}function Pt(e){return It(e)?e.value:e}const Ut={get:(e,t,n)=>Pt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return It(o)&&!It(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Mt(e){return _t(e)?e:new Proxy(e,Ut)}class Nt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Se(e,(()=>{this._dirty||(this._dirty=!0,zt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return Rt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Dt(e,t,n)}return o}function Ft(e,t,n,r){if(q(e)){const o=Vt(e,t,n,r);return o&&K(o)&&o.catch((e=>{Dt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Ft(e[i],t,n,r));return o}function Dt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const o=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,o,i))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void Vt(l,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Bt=!1,qt=!1;const Wt=[];let Ht=0;const Zt=[];let Kt=null,Jt=0;const Qt=[];let Yt=null,Xt=0;const Gt=Promise.resolve();let en=null,tn=null;function nn(e){const t=en||Gt;return e?t.then(this?e.bind(this):e):t}function rn(e){Wt.length&&Wt.includes(e,Bt&&e.allowRecurse?Ht+1:Ht)||e===tn||(null==e.id?Wt.push(e):Wt.splice(function(e){let t=Ht+1,n=Wt.length;for(;t<n;){const r=t+n>>>1;cn(Wt[r])<e?t=r+1:n=r}return t}(e.id),0,e),on())}function on(){Bt||qt||(qt=!0,en=Gt.then(un))}function ln(e,t,n,r){V(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),on()}function sn(e,t=null){if(Zt.length){for(tn=t,Kt=[...new Set(Zt)],Zt.length=0,Jt=0;Jt<Kt.length;Jt++)Kt[Jt]();Kt=null,Jt=0,tn=null,sn(e,t)}}function an(e){if(Qt.length){const e=[...new Set(Qt)];if(Qt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Yt.sort(((e,t)=>cn(e)-cn(t))),Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const cn=e=>null==e.id?1/0:e.id;function un(e){qt=!1,Bt=!0,sn(e),Wt.sort(((e,t)=>cn(e)-cn(t)));try{for(Ht=0;Ht<Wt.length;Ht++){const e=Wt[Ht];e&&!1!==e.active&&Vt(e,null,14)}}finally{Ht=0,Wt.length=0,an(),Bt=!1,en=null,(Wt.length||Zt.length||Qt.length)&&un(e)}}let pn,dn=[],fn=!1;function hn(e,...t){pn?pn.emit(e,...t):fn||dn.push({event:e,args:t})}function gn(e,t){var n,r;if(pn=e,pn)pn.enabled=!0,dn.forEach((({event:e,args:t})=>pn.emit(e,...t))),dn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{gn(e,t)})),setTimeout((()=>{pn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,fn=!0,dn=[])}),3e3)}else fn=!0,dn=[]}const mn=bn("component:added"),vn=bn("component:updated"),yn=bn("component:removed");function bn(e){return t=>{hn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function wn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||R;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=r[e]||R;i?o=n.map((e=>e.trim())):t&&(o=n.map(ue))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){hn("component:emit",e.appContext.app,e,t,n)}(e,t,o);let a=r[s=le(t)]||r[s=le(ne(t))];!a&&i&&(a=r[s=le(oe(t))]),a&&Ft(a,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Ft(c,e,6,o)}}function _n(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let l={},s=!1;if(__VUE_OPTIONS_API__&&!q(e)){const r=e=>{const n=_n(e,t,!0);n&&(s=!0,P(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(V(i)?i.forEach((e=>l[e]=null)):P(l,i),r.set(e,l),l):(r.set(e,null),null)}function kn(e,t){return!(!e||!L(t))&&(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,oe(t))||N(e,t))}let xn=null,Sn=null;function $n(e){const t=xn;return xn=e,Sn=e&&e.type.__scopeId||null,t}function En(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:f,ctx:h,inheritAttrs:g}=e;let m,v;const y=$n(e);try{if(4&n.shapeFlag){const e=o||r;m=co(u.call(e,e,p,i,f,d,h)),v=a}else{const e=t;m=co(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Cn(a)}}catch(t){Wr.length=0,Dt(t,e,1),m=io(Br)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(j)&&(v=On(v,l)),b=lo(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,$n(y),m}const Cn=e=>{let t;for(const n in e)("class"===n||"style"===n||L(n))&&((t||(t={}))[n]=e[n]);return t},On=(e,t)=>{const n={};for(const r in e)j(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Rn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!kn(n,i))return!0}return!1}function zn(e,t){if(wo){let n=wo.provides;const r=wo.parent&&wo.parent.provides;r===n&&(n=wo.provides=Object.create(r)),n[e]=t}else;}function In(e,t,n=!1){const r=wo||xn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&q(t)?t.call(r.proxy):t}}function An(e,t){return jn(e,null,t)}const Tn={};function Ln(e,t,n){return jn(e,t,n)}function jn(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=R){const s=wo;let a,c,u=!1,p=!1;if(It(e)?(a=()=>e.value,u=xt(e)):_t(e)?(a=()=>e,r=!0):V(e)?(p=!0,u=e.some(_t),a=()=>e.map((e=>It(e)?e.value:_t(e)?Mn(e):q(e)?Vt(e,s,2):void 0))):a=q(e)?t?()=>Vt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Ft(e,s,3,[d])}:I,t&&r){const e=a;a=()=>Mn(e())}let d=e=>{c=m.onStop=()=>{Vt(e,s,4)}};if(So)return d=I,t?n&&Ft(t,s,3,[a(),p?[]:void 0,d]):a(),I;let f=p?[]:Tn;const h=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>se(e,f[t]))):se(e,f)))&&(c&&c(),Ft(t,s,3,[e,f===Tn?void 0:f,d]),f=e)}else m.run()};let g;h.allowRecurse=!!t,g="sync"===o?h:"post"===o?()=>Lr(h,s&&s.suspense):()=>{!s||s.isMounted?function(e){ln(e,Kt,Zt,Jt)}(h):h()};const m=new Se(a,g);return t?n?h():f=m.run():"post"===o?Lr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&U(s.scope.effects,m)}}function Pn(e,t,n){const r=this.proxy,o=W(e)?e.includes(".")?Un(r,e):()=>r[e]:e.bind(r,r);let i;q(t)?i=t:(i=t.handler,n=t);const l=wo;_o(this);const s=jn(o,i.bind(r),n);return l?_o(l):ko(),s}function Un(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Mn(e,t){if(!Z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),It(e))Mn(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Mn(e[n],t);else if(D(e)||F(e))e.forEach((e=>{Mn(e,t)}));else if(Y(e))for(const n in e)Mn(e[n],t);return e}function Nn(e){return q(e)?{setup:e,name:e.name}:e}const Vn=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function Dn(e,t){qn(e,"a",t)}function Bn(e,t){qn(e,"da",t)}function qn(e,t,n=wo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Hn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Fn(e.parent.vnode)&&Wn(r,t,n,e),e=e.parent}}function Wn(e,t,n,r){const o=Hn(t,e,r,!0);Gn((()=>{U(r[t],o)}),n)}function Hn(e,t,n=wo,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Oe(),_o(n);const o=Ft(t,n,e,r);return ko(),Re(),o});return r?o.unshift(i):o.push(i),i}}const Zn=e=>(t,n=wo)=>(!So||"sp"===e)&&Hn(e,t,n),Kn=Zn("bm"),Jn=Zn("m"),Qn=Zn("bu"),Yn=Zn("u"),Xn=Zn("bum"),Gn=Zn("um"),er=Zn("sp"),tr=Zn("rtg"),nr=Zn("rtc");function rr(e,t=wo){Hn("ec",e,t)}let or=!0;function ir(e){const t=ar(e),n=e.proxy,r=e.ctx;or=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:l,watch:s,provide:a,inject:c,created:u,beforeMount:p,mounted:d,beforeUpdate:f,updated:h,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:_,renderTracked:k,renderTriggered:x,errorCaptured:S,serverPrefetch:$,expose:E,inheritAttrs:C,components:O,directives:R,filters:z}=t;if(c&&function(e,t,n=I,r=!1){V(e)&&(e=dr(e));for(const n in e){const o=e[n];let i;i=Z(o)?"default"in o?In(o.from||n,o.default,!0):In(o.from||n):In(o),It(i)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,r,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];q(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);Z(t)&&(e.data=yt(t))}if(or=!0,i)for(const e in i){const t=i[e],o=q(t)?t.bind(n,n):q(t.get)?t.get.bind(n,n):I,l=!q(t)&&q(t.set)?t.set.bind(n):I,s=Oo({get:o,set:l});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)sr(s[e],r,n,e);if(a){const e=q(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{zn(t,e[t])}))}function A(e,t){V(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&lr(u,e,"c"),A(Kn,p),A(Jn,d),A(Qn,f),A(Yn,h),A(Dn,g),A(Bn,m),A(rr,S),A(nr,k),A(tr,x),A(Xn,y),A(Gn,w),A(er,$),V(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===I&&(e.render=_),null!=C&&(e.inheritAttrs=C),O&&(e.components=O),R&&(e.directives=R)}function lr(e,t,n){Ft(V(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function sr(e,t,n,r){const o=r.includes(".")?Un(n,r):()=>n[r];if(W(e)){const n=t[e];q(n)&&Ln(o,n)}else if(q(e))Ln(o,e.bind(n));else if(Z(e))if(V(e))e.forEach((e=>sr(e,t,n,r)));else{const r=q(e.handler)?e.handler.bind(n):t[e.handler];q(r)&&Ln(o,r,e)}}function ar(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,s=i.get(t);let a;return s?a=s:o.length||n||r?(a={},o.length&&o.forEach((e=>cr(a,e,l,!0))),cr(a,t,l)):a=t,i.set(t,a),a}function cr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&cr(e,i,n,!0),o&&o.forEach((t=>cr(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=ur[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const ur={data:pr,props:hr,emits:hr,methods:hr,computed:hr,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:hr,directives:hr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=P(Object.create(null),e);for(const r in t)n[r]=fr(e[r],t[r]);return n},provide:pr,inject:function(e,t){return hr(dr(e),dr(t))}};function pr(e,t){return t?e?function(){return P(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function dr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fr(e,t){return e?[...new Set([].concat(e,t))]:t}function hr(e,t){return e?P(P(Object.create(null),e),t):t}function gr(e,t,n,r=!1){const o={},i={};ce(i,to,1),e.propsDefaults=Object.create(null),mr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:wt(o,!1,We,pt,ht):e.type.props?e.props=o:e.props=i,e.attrs=i}function mr(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(G(a))continue;const c=t[a];let u;o&&N(o,u=ne(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:kn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=$t(n),r=l||R;for(let l=0;l<i.length;l++){const s=i[l];n[s]=vr(o,t,s,r[s],e,!N(r,s))}}return s}function vr(e,t,n,r,o,i){const l=e[n];if(null!=l){const e=N(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&q(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(_o(o),r=i[n]=e.call(null,t),ko())}else r=e}l[0]&&(i&&!e?r=!1:!l[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function yr(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},s=[];let a=!1;if(__VUE_OPTIONS_API__&&!q(e)){const r=e=>{a=!0;const[n,r]=yr(e,t,!0);P(l,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!a)return r.set(e,z),z;if(V(i))for(let e=0;e<i.length;e++){const t=ne(i[e]);br(t)&&(l[t]=R)}else if(i)for(const e in i){const t=ne(e);if(br(t)){const n=i[e],r=l[t]=V(n)||q(n)?{type:n}:n;if(r){const e=kr(Boolean,r.type),n=kr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||N(r,"default"))&&s.push(t)}}}const c=[l,s];return r.set(e,c),c}function br(e){return"$"!==e[0]}function wr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function _r(e,t){return wr(e)===wr(t)}function kr(e,t){return V(t)?t.findIndex((t=>_r(t,e))):q(t)&&_r(t,e)?0:-1}const xr=e=>"_"===e[0]||"$stable"===e,Sr=e=>V(e)?e.map(co):[co(e)],$r=(e,t,n)=>{const r=function(e,t=xn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Jr(-1);const o=$n(t),i=e(...n);return $n(o),r._d&&Jr(1),__VUE_PROD_DEVTOOLS__&&vn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Sr(t(...e))),n);return r._c=!1,r},Er=(e,t,n)=>{const r=e._ctx;for(const n in e){if(xr(n))continue;const o=e[n];if(q(o))t[n]=$r(0,o,r);else if(null!=o){const e=Sr(o);t[n]=()=>e}}},Cr=(e,t)=>{const n=Sr(t);e.slots.default=()=>n};function Or(e,t){const n=xn;if(null===n)return e;const r=Co(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,l,s=R]=t[e];q(n)&&(n={mounted:n,updated:n}),n.deep&&Mn(i),o.push({dir:n,instance:r,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function Rr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const s=o[l];i&&(s.oldValue=i[l].value);let a=s.dir[r];a&&(Oe(),Ft(a,n,8,[e.el,s,e,t]),Re())}}function zr(){return{app:null,config:{isNativeTag:A,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 Ir=0;function Ar(e,t){return function(n,r=null){q(n)||(n=Object.assign({},n)),null==r||Z(r)||(r=null);const o=zr(),i=new Set;let l=!1;const s=o.app={_uid:Ir++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:zo,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&q(e.install)?(i.add(e),e.install(s,...t)):q(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,a,c){if(!l){const u=io(n,r);return u.appContext=o,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){hn("app:init",e,t,{Fragment:Fr,Text:Dr,Comment:Br,Static:qr})}(s,zo)),Co(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){hn("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function Tr(e,t,n,r,o=!1){if(V(e))return void e.forEach(((e,i)=>Tr(e,t&&(V(t)?t[i]:t),n,r,o)));if(Vn(r)&&!o)return;const i=4&r.shapeFlag?Co(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===R?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(W(c)?(u[c]=null,N(p,c)&&(p[c]=null)):It(c)&&(c.value=null)),q(a))Vt(a,s,12,[l,u]);else{const t=W(a),r=It(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?V(n)&&U(n,i):V(n)?n.includes(i)||n.push(i):t?(u[a]=[i],N(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,N(p,a)&&(p[a]=l)):It(a)&&(a.value=l,e.k&&(u[e.k]=l))};l?(r.id=-1,Lr(r,n)):r()}}}const Lr=function(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ln(e,Yt,Qt,Xt)};function jr(e){return function(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(de().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(de().__VUE_PROD_DEVTOOLS__=!1);const n=de();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&gn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:f=I,cloneNode:h,insertStaticContent:g}=e,m=(e,t,n,r=null,o=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(r=Q(e),q(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Dr:v(e,t,n,r);break;case Br:y(e,t,n,r);break;case qr:null==e&&b(t,n,r,l);break;case Fr:A(e,t,n,r,o,i,l,s,a);break;default:1&p?k(e,t,n,r,o,i,l,s,a):6&p?T(e,t,n,r,o,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,o,i,l,s,a,X)}null!=u&&o&&Tr(u,e&&e.ref,i,t||e,!t)},v=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},y=(e,t,n,o)=>{null==e?r(t.el=a(t.children||""),n,o):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=d(e),r(e,n,o),e=i;r(t,n,o)},_=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)},k=(e,t,n,r,o,i,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,o,i,l,s,a):E(e,t,o,i,l,s,a)},x=(e,t,n,o,s,a,c,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:b,dirs:w}=e;if(e.el&&void 0!==h&&-1===b)d=e.el=h(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&v?u(d,e.children):16&v&&$(e.children,d,null,o,s,a&&"foreignObject"!==g,c,p),w&&Rr(e,null,o,"created"),m){for(const t in m)"value"===t||G(t)||i(d,t,null,m[t],a,e.children,o,s,J);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&fo(f,o,e)}S(d,e,e.scopeId,c,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:o,enumerable:!1})),w&&Rr(e,null,o,"beforeMount");const _=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;_&&y.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||_||w)&&Lr((()=>{f&&fo(f,o,e),_&&y.enter(d),w&&Rr(e,null,o,"mounted")}),s)},S=(e,t,n,r,o)=>{if(n&&f(e,n),r)for(let t=0;t<r.length;t++)f(e,r[t]);if(o){if(t===o.subTree){const t=o.vnode;S(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},$=(e,t,n,r,o,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?uo(e[c]):co(e[c]);m(null,a,t,n,r,o,i,l,s)}},E=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const f=e.props||R,h=t.props||R;let g;n&&Pr(n,!1),(g=h.onVnodeBeforeUpdate)&&fo(g,n,t,e),d&&Rr(t,e,n,"beforeUpdate"),n&&Pr(n,!0);const m=o&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,l):s||V(e,t,a,null,n,r,m,l,!1),c>0){if(16&c)O(a,t,f,h,n,r,o);else if(2&c&&f.class!==h.class&&i(a,"class",null,h.class,o),4&c&&i(a,"style",f.style,h.style,o),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=f[s],u=h[s];u===c&&"value"!==s||i(a,s,c,u,o,e.children,n,r,J)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||O(a,t,f,h,n,r,o);((g=h.onVnodeUpdated)||d)&&Lr((()=>{g&&fo(g,n,t,e),d&&Rr(t,e,n,"updated")}),r)},C=(e,t,n,r,o,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Fr||!eo(a,c)||70&a.shapeFlag)?p(a.el):n;m(a,c,u,null,r,o,i,l,!0)}},O=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(G(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,J)}if(n!==R)for(const a in n)G(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,J);"value"in r&&i(e,"value",n.value,r.value)}},A=(e,t,n,o,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(r(p,n,o),r(d,n,o),$(t.children,n,d,i,l,a,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(C(e.dynamicChildren,h,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&Ur(e,t,!0)):V(e,t,n,d,i,l,a,c,u)},T=(e,t,n,r,o,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,l,a):L(t,n,r,o,i,l,a):j(e,t,a)},L=(e,t,n,r,o,i,l)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||yo,i={uid:bo++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new he(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yr(r,o),emitsOptions:_n(r,o),emit:null,emitted:null,propsDefaults:R,inheritAttrs:r.inheritAttrs,ctx:R,data:R,props:R,attrs:R,slots:R,refs:R,setupState:R,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=wn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(Fn(e)&&(s.ctx.renderer=X),function(e,t=!1){So=t;const{props:n,children:r}=e.vnode,o=xo(e);gr(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ce(t,"_",n)):Er(t,e.slots={})}else e.slots={},t&&Cr(e,t);ce(e.slots,to,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Et(new Proxy(e.ctx,vo));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)=>(ze(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;_o(e),Oe();const o=Vt(r,e,0,[e.props,n]);if(Re(),ko(),K(o)){if(o.then(ko,ko),t)return o.then((n=>{$o(e,n,t)})).catch((t=>{Dt(t,e,0)}));e.asyncDep=o}else $o(e,o,t)}else Eo(e,t)}(e,t):void 0;So=!1}(s),s.asyncDep){if(o&&o.registerDep(s,U),!e.el){const e=s.subTree=io(Br);y(null,e,t,n)}}else U(s,e,t,n,o,i,l)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!s||s&&s.$stable)||r!==l&&(r?!l||Rn(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?Rn(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!kn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=Wt.indexOf(e);t>Ht&&Wt.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},U=(e,t,n,r,o,i,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,u=n;Pr(e,!1),n?(n.el=c.el,M(e,n,l)):n=c,r&&ae(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&fo(t,a,n,c),Pr(e,!0);const d=En(e),f=e.subTree;e.subTree=d,m(f,d,p(f.el),Q(f),e,o,i),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&Lr(s,o),(t=n.props&&n.props.onVnodeUpdated)&&Lr((()=>fo(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&vn(e)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Vn(t);if(Pr(e,!1),c&&ae(c),!d&&(l=a&&a.onVnodeBeforeMount)&&fo(l,p,t),Pr(e,!0),s&&te){const n=()=>{e.subTree=En(e),te(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=En(e);m(null,l,n,r,e,o,i),t.el=l.el}if(u&&Lr(u,o),!d&&(l=a&&a.onVnodeMounted)){const e=t;Lr((()=>fo(l,p,e)),o)}256&t.shapeFlag&&e.a&&Lr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&mn(e),t=n=r=null}},a=e.effect=new Se(s,(()=>rn(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Pr(e,!0),c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,s=$t(o),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;mr(e,t,o,i)&&(c=!0);for(const i in s)t&&(N(t,i)||(r=oe(i))!==i&&N(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=vr(a,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&N(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];if(kn(e.emitsOptions,l))continue;const u=t[l];if(a)if(N(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=ne(l);o[t]=vr(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&Ae(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=R;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(P(o,t),n||1!==e||delete o._):(i=!t.$stable,Er(t,o)),l=t}else t&&(Cr(e,t),l={default:1});if(i)for(const e in o)xr(e)||e in l||delete o[e]})(e,t.children,n),Oe(),sn(void 0,e.update),Re()},V=(e,t,n,r,o,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void D(c,d,n,r,o,i,l,s,a);if(256&f)return void F(c,d,n,r,o,i,l,s,a)}8&h?(16&p&&J(c,o,i),d!==c&&u(n,d)):16&p?16&h?D(c,d,n,r,o,i,l,s,a):J(c,o,i,!0):(8&p&&u(n,""),16&h&&$(d,n,r,o,i,l,s,a))},F=(e,t,n,r,o,i,l,s,a)=>{t=t||z;const c=(e=e||z).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?uo(t[d]):co(t[d]);m(e[d],r,n,null,o,i,l,s,a)}c>u?J(e,o,i,!0,!1,p):$(t,n,r,o,i,l,s,a,p)},D=(e,t,n,r,o,i,l,s,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?uo(t[c]):co(t[c]);if(!eo(r,u))break;m(r,u,n,null,o,i,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?uo(t[d]):co(t[d]);if(!eo(r,c))break;m(r,c,n,null,o,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)m(null,t[c]=a?uo(t[c]):co(t[c]),n,p,o,i,l,s,a),c++}}else if(c>d)for(;c<=p;)q(e[c],o,i,!0),c++;else{const f=c,h=c,g=new Map;for(c=h;c<=d;c++){const e=t[c]=a?uo(t[c]):co(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=d-h+1;let w=!1,_=0;const k=new Array(b);for(c=0;c<b;c++)k[c]=0;for(c=f;c<=p;c++){const r=e[c];if(y>=b){q(r,o,i,!0);continue}let u;if(null!=r.key)u=g.get(r.key);else for(v=h;v<=d;v++)if(0===k[v-h]&&eo(r,t[v])){u=v;break}void 0===u?q(r,o,i,!0):(k[u-h]=c+1,u>=_?_=u:w=!0,m(r,t[u],n,null,o,i,l,s,a),y++)}const x=w?function(e){const t=e.slice(),n=[0];let r,o,i,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(o=n[n.length-1],e[o]<a){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,l=n[i-1];for(;i-- >0;)n[i]=l,l=t[l];return n}(k):z;for(v=x.length-1,c=b-1;c>=0;c--){const e=h+c,p=t[e],d=e+1<u?t[e+1].el:r;0===k[c]?m(null,p,n,d,o,i,l,s,a):w&&(v<0||c!==x[v]?B(p,n,d,2):v--)}}},B=(e,t,n,o,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void s.move(e,t,n,X);if(s===Fr){r(l,t,n);for(let e=0;e<c.length;e++)B(c[e],t,n,o);return void r(e.anchor,t,n)}if(s===qr)return void w(e,t,n);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(l),r(l,t,n),Lr((()=>a.enter(l)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,s=()=>r(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};o?o(l,s,c):c()}else r(l,t,n)},q=(e,t,n,r=!1,o=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Tr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,h=!Vn(e);let g;if(h&&(g=l&&l.onVnodeBeforeUnmount)&&fo(g,t,e),6&u)Z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&Rr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,X,r):c&&(i!==Fr||p>0&&64&p)?J(c,t,n,!1,!0):(i===Fr&&384&p||!o&&16&u)&&J(a,t,n),r&&W(e)}(h&&(g=l&&l.onVnodeUnmounted)||f)&&Lr((()=>{g&&fo(g,t,e),f&&Rr(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Fr)return void H(n,r);if(t===qr)return void _(e);const l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,l);r?r(e.el,l,o):o()}else l()},H=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&ae(r),o.stop(),i&&(i.active=!1,q(l,e,t,n)),s&&Lr(s,t),Lr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&yn(e)},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let l=i;l<e.length;l++)q(e[l],t,n,r,o)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),an(),t._vnode=e},X={p:m,um:q,m:B,r:W,mt:L,mc:$,pc:V,pbc:C,n:Q,o:e};let ee,te;t&&([ee,te]=t(X));return{render:Y,hydrate:ee,createApp:Ar(Y,ee)}}(e)}function Pr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ur(e,t,n=!1){const r=e.children,o=t.children;if(V(r)&&V(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=uo(o[e]),i.el=t.el),n||Ur(t,i))}}function Mr(e,t){return function(e,t,n=!0,r=!1){const o=xn||wo;if(o){const n=o.type;if("components"===e){const e=function(e){return q(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===ne(t)||e===ie(ne(t))))return n}const i=Vr(o[e]||n[e],t)||Vr(o.appContext[e],t);return!i&&r?n:i}}("components",e,!0,t)||e}const Nr=Symbol();function Vr(e,t){return e&&(e[t]||e[ne(t)]||e[ie(ne(t))])}const Fr=Symbol(void 0),Dr=Symbol(void 0),Br=Symbol(void 0),qr=Symbol(void 0),Wr=[];let Hr=null;function Zr(e=!1){Wr.push(Hr=e?null:[])}let Kr=1;function Jr(e){Kr+=e}function Qr(e){return e.dynamicChildren=Kr>0?Hr||z:null,Wr.pop(),Hr=Wr[Wr.length-1]||null,Kr>0&&Hr&&Hr.push(e),e}function Yr(e,t,n,r,o,i){return Qr(oo(e,t,n,r,o,i,!0))}function Xr(e,t,n,r,o){return Qr(io(e,t,n,r,o,!0))}function Gr(e){return!!e&&!0===e.__v_isVNode}function eo(e,t){return e.type===t.type&&e.key===t.key}const to="__vInternal",no=({key:e})=>null!=e?e:null,ro=({ref:e,ref_key:t,ref_for:n})=>null!=e?W(e)||It(e)||q(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=(e===Fr?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&ro(t),scopeId:Sn,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:o,dynamicChildren:null,appContext:null};return s?(po(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=W(n)?8:16),Kr>0&&!l&&Hr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Hr.push(a),a}const io=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Nr||(e=Br);if(Gr(e)){const r=lo(e,t,!0);return n&&po(r,n),r}l=e,q(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?St(e)||to in e?P({},e):e:null}(t);let{class:e,style:n}=t;e&&!W(e)&&(t.class=S(e)),Z(n)&&(St(n)&&!V(n)&&(n=P({},n)),t.style=w(n))}const s=W(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Z(e)?4:q(e)?2:0;return oo(e,t,n,r,o,s,i,!0)};function lo(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,s=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=S([t.class,r.class]));else if("style"===e)t.style=w([t.style,r.style]);else if(L(e)){const n=t[e],o=r[e];!o||n===o||V(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&no(s),ref:t&&t.ref?n&&o?V(o)?o.concat(ro(t)):[o,ro(t)]:ro(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fr?-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&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),el:e.el,anchor:e.anchor}}function so(e=" ",t=0){return io(Dr,null,e,t)}function ao(e="",t=!1){return t?(Zr(),Xr(Br,null,e)):io(Br,null,e)}function co(e){return null==e||"boolean"==typeof e?io(Br):V(e)?io(Fr,null,e.slice()):"object"==typeof e?uo(e):io(Dr,null,String(e))}function uo(e){return null===e.el||e.memo?e:lo(e)}function po(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(V(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||to in t?3===r&&xn&&(1===xn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xn}}else q(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),64&r?(n=16,t=[so(t)]):n=8);e.children=t,e.shapeFlag|=n}function fo(e,t,n,r=null){Ft(e,t,7,[n,r])}function ho(e,t,n,r){let o;const i=n&&n[r];if(V(e)||W(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(Z(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];o[r]=t(e[l],l,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}const go=e=>e?xo(e)?Co(e)||e.proxy:go(e.parent):null,mo=P(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=>go(e.parent),$root:e=>go(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ar(e):e.type,$forceUpdate:e=>()=>rn(e.update),$nextTick:e=>nn.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?Pn.bind(e):I}),vo={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==R&&N(r,t))return l[t]=1,r[t];if(o!==R&&N(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&N(c,t))return l[t]=3,i[t];if(n!==R&&N(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!or||(l[t]=0)}}const u=mo[t];let p,d;return u?("$attrs"===t&&ze(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==R&&N(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,N(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==R&&N(o,t)?(o[t]=n,!0):r!==R&&N(r,t)?(r[t]=n,!0):!N(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let s;return!!n[l]||e!==R&&N(e,l)||t!==R&&N(t,l)||(s=i[0])&&N(s,l)||N(r,l)||N(mo,l)||N(o.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},yo=zr();let bo=0;let wo=null;const _o=e=>{wo=e,e.scope.on()},ko=()=>{wo&&wo.scope.off(),wo=null};function xo(e){return 4&e.vnode.shapeFlag}let So=!1;function $o(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Mt(t)),Eo(e,n)}function Eo(e,t,n){const r=e.type;e.render||(e.render=r.render||I),__VUE_OPTIONS_API__&&(_o(e),Oe(),ir(e),Re(),ko())}function Co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Mt(Et(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mo?mo[n](e):void 0}))}const Oo=(e,t)=>function(e,t,n=!1){let r,o;const i=q(e);return i?(r=e,o=I):(r=e.get,o=e.set),new Nt(r,o,i||!o,n)}(e,0,So);function Ro(e,t,n){const r=arguments.length;return 2===r?Z(t)&&!V(t)?Gr(t)?io(e,null,[t]):io(e,t):io(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Gr(n)&&(n=[n]),io(e,t,n))}const zo="3.2.33",Io="undefined"!=typeof document?document:null,Ao=Io&&Io.createElement("template"),To={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 o=t?Io.createElementNS("http://www.w3.org/2000/svg",e):Io.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Io.createTextNode(e),createComment:e=>Io.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Io.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Ao.innerHTML=r?`<svg>${e}</svg>`:e;const o=Ao.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Lo=/\s*!important$/;function jo(e,t,n){if(V(n))n.forEach((n=>jo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Uo[t];if(n)return n;let r=ne(t);if("filter"!==r&&r in e)return Uo[t]=r;r=ie(r);for(let n=0;n<Po.length;n++){const o=Po[n]+r;if(o in e)return Uo[t]=o}return t}(e,t);Lo.test(n)?e.setProperty(oe(r),n.replace(Lo,""),"important"):e[r]=n}}const Po=["Webkit","Moz","ms"],Uo={};const Mo="http://www.w3.org/1999/xlink";const[No,Vo]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Fo=0;const Do=Promise.resolve(),Bo=()=>{Fo=0};function qo(e,t,n,r){e.addEventListener(t,n,r)}function Wo(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(Ho.test(e)){let n;for(t={};n=e.match(Ho);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const l=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||No();(Vo||r>=n.attached-1)&&Ft(function(e,t){if(V(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=(()=>Fo||(Do.then(Bo),Fo=No()))(),n}(r,o);qo(e,n,l,s)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),i[t]=void 0)}}const Ho=/(?:Once|Passive|Capture)$/;const Zo=/^on[a-z]/;const Ko=e=>{const t=e.props["onUpdate:modelValue"];return V(t)?e=>ae(t,e):t};function Jo(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const Yo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Ko(o);const i=r||o.props&&"number"===o.props.type;qo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=ue(r)),e._assign(r)})),n&&qo(e,"change",(()=>{e.value=e.value.trim()})),t||(qo(e,"compositionstart",Jo),qo(e,"compositionend",Qo),qo(e,"change",Qo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Ko(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ue(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Xo={deep:!0,created(e,t,n){e._assign=Ko(n),qo(e,"change",(()=>{const t=e._modelValue,n=ri(e),r=e.checked,o=e._assign;if(V(t)){const e=E(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(D(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(oi(e,r))}))},mounted:Go,beforeUpdate(e,t,n){e._assign=Ko(n),Go(e,t,n)}};function Go(e,{value:t,oldValue:n},r){e._modelValue=t,V(t)?e.checked=E(t,r.props.value)>-1:D(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=$(t,oi(e,!0)))}const ei={created(e,{value:t},n){e.checked=$(t,n.props.value),e._assign=Ko(n),qo(e,"change",(()=>{e._assign(ri(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ko(r),t!==n&&(e.checked=$(t,r.props.value))}},ti={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=D(t);qo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ue(ri(e)):ri(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=Ko(r)},mounted(e,{value:t}){ni(e,t)},beforeUpdate(e,t,n){e._assign=Ko(n)},updated(e,{value:t}){ni(e,t)}};function ni(e,t){const n=e.multiple;if(!n||V(t)||D(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=ri(o);if(n)V(t)?o.selected=E(t,i)>-1:o.selected=t.has(i);else if($(ri(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function oi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ii={created(e,t,n){li(e,t,n,null,"created")},mounted(e,t,n){li(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){li(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){li(e,t,n,r,"updated")}};function li(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=ti;break;case"TEXTAREA":i=Yo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Xo;break;case"radio":i=ei;break;default:i=Yo}}const l=i[o];l&&l(e,t,n,r)}const si={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ai(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),ai(e,!0),r.enter(e)):r.leave(e,(()=>{ai(e,!1)})):ai(e,t))},beforeUnmount(e,{value:t}){ai(e,t)}};function ai(e,t){e.style.display=t?e._vod:"none"}const ci=P({patchProp:(e,t,n,r,o=!1,i,l,s,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,o):"style"===t?function(e,t,n){const r=e.style,o=W(n);if(n&&!o){for(const e in n)jo(r,e,n[e]);if(t&&!W(t))for(const e in t)null==n[e]&&jo(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):L(t)?j(t)||Wo(e,t,0,r,l):("."===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&&Zo.test(t)&&q(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(Zo.test(t)&&W(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,i,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,o,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 s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=b(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,i,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Mo,t.slice(6,t.length)):e.setAttributeNS(Mo,t,n);else{const r=y(t);null==n||r&&!b(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},To);let ui;const pi=(...e)=>{const t=(ui||(ui=jr(ci))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(W(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;q(o)||o.render||o.template||(o.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};function di(e){return!!fe&&(function(e){fe&&fe.cleanups.push(e)}(e),!0)}const fi="undefined"!=typeof window,hi=()=>{};const gi=e=>e();var mi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable;function bi(e,t,n={}){const r=n,{eventFilter:o=gi}=r,i=((e,t)=>{var n={};for(var r in e)vi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mi)for(var r of mi(e))t.indexOf(r)<0&&yi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Ln(e,(l=o,s=t,function(...e){l((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})}),i);var l,s}var wi=Object.defineProperty,_i=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ei=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ci(e,t,n={}){const r=n,{eventFilter:o}=r,i=((e,t)=>{var n={};for(var r in e)Si.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xi)for(var r of xi(e))t.indexOf(r)<0&&$i.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=function(e=gi){const t=At(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=bi(e,t,(p=((e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ei(e,n,t[n]);if(xi)for(var n of xi(t))$i.call(t,n)&&Ei(e,n,t[n]);return e})({},i),_i(p,ki({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Oi=fi?window:void 0,Ri=fi?window.document:void 0;function zi(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=Oi):[t,n,r,o]=e,!t)return hi;let i=hi;const l=Ln((()=>function(e){var t;const n=Pt(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{i(),e&&(e.addEventListener(n,r,o),i=()=>{e.removeEventListener(n,r,o),i=hi})}),{immediate:!0,flush:"post"}),s=()=>{l(),i()};return di(s),s}fi&&window.navigator,fi&&window.location;const Ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ai="__vueuse_ssr_handlers__";Ii[Ai]=Ii[Ai]||{};const Ti=Ii[Ai];const Li={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 ji(e,t,n,r={}){var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Oi,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,f=(c?Tt:At)(t);if(!n)try{n=function(e,t){return Ti[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Oi)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return f;const h=Pt(t),g=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||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(h),m=null!=(o=r.serializer)?o:Li[g],{pause:v,resume:y}=Ci(f,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}(f.value)),{flush:i,deep:l,eventFilter:p});return u&&s&&zi(u,"storage",b),b(),f;function b(t){t&&t.key!==e||(f.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==h&&n.setItem(e,m.write(h)),h):"string"!=typeof r?r:m.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var Pi,Ui,Mi=Object.defineProperty,Ni=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Di=(e,t,n)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Bi(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=At(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Oi}=t,o=At(!1);let i=null;function l(){o.value&&r&&(e(),i=r.requestAnimationFrame(l))}function s(){!o.value&&r&&(o.value=!0,l())}function a(){o.value=!1,null!=i&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&s(),di(a),{isActive:o,pause:a,resume:s}}(o,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const l=At(!1);function s(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,s()}function c(){t<=0||(l.value=!0,o&&e(),s(),i=setInterval(e,Pt(t)))}r&&fi&&c(),It(t)&&di(Ln(t,(()=>{r&&fi&&c()})));return di(a),{isActive:l,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Vi.call(t,n)&&Di(e,n,t[n]);if(Ni)for(var n of Ni(t))Fi.call(t,n)&&Di(e,n,t[n]);return e})({now:r},i):r}fi&&(null==window?void 0:window.navigator)&&(null==(Pi=null==window?void 0:window.navigator)?void 0:Pi.platform)&&/iP(ad|hone|od)/.test(null==(Ui=null==window?void 0:window.navigator)?void 0:Ui.platform);let qi=0;const Wi=e=>{try{e=decodeURI(e)}catch(e){}return e},Hi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),Ki=e=>{const t=Hi(e);return Zi(t)?t:`https://${t}`},Ji=e=>Array.isArray(e)?e:!!e&&[0,e],Qi=(e,t)=>"function"==typeof e?e:!1!==e&&t,Yi="{--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}",Xi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Gi=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=t.getTime()-r.getTime(),i=Math.floor(o/864e5);if(0===i){const e=o%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=Xi(e.getDate(),2),n=Xi(e.getMonth()+1,2);return`${Xi(e.getFullYear(),2)}-${n}-${t}`})(r)},el=e=>{const t=ji("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 o={folder:e,...r};return n&&(t.value[e]=o),o}))},tl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,nl=e=>{"AbortError"!==e.name&&console.error(e.message)},rl=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},ol=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>rl(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),il=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>rl(e,"visit count"))),ll=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,sl=e=>e.type.includes("image"),al=e=>{const t=Array.from(e).find(sl);return t?t.getAsFile():null};function cl(){return{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,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ul={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,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const pl=/[&<>"']/,dl=/[&<>"']/g,fl=/[<>"']|&(?!#?\w+;)/,hl=/[<>"']|&(?!#?\w+;)/g,gl={"&":"&","<":"<",">":">",'"':""","'":"'"},ml=e=>gl[e];function vl(e,t){if(t){if(pl.test(e))return e.replace(dl,ml)}else if(fl.test(e))return e.replace(hl,ml);return e}const yl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function bl(e){return e.replace(yl,((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 wl=/(^|[^\[])\^/g;function _l(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(wl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const kl=/[^\w:]/g,xl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Sl(e,t,n){if(e){let e;try{e=decodeURIComponent(bl(n)).replace(kl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!xl.test(n)&&(n=function(e,t){$l[" "+e]||(El.test(e)?$l[" "+e]=e+"/":$l[" "+e]=Al(e,"/",!0));const n=-1===(e=$l[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Cl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Ol,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const $l={},El=/^[^:]+:\/*[^/]*$/,Cl=/^([^:]+:)[\s\S]*$/,Ol=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Rl={exec:function(){}};function zl(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 Il(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)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 Al(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Tl(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 Ll(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function jl(e,t,n,r){const o=t.href,i=t.title?vl(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:vl(l)}}class Pl{constructor(e){this.options=e||ul}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:Al(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():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=Al(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}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,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,l,s,a,c,u,p,d,f,h=t[1].trim();const g=h.length>1,m={type:"list",raw:"",ordered:g,start:g?+h.slice(0,-1):"",loose:!1,items:[]};h=g?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=g?h:"[*+-]");const v=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!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],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),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,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(l=0;l<y;l++){this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]);const e=m.items[l].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[l].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]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):vl(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Il(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,o,i,l=e.align.length;for(n=0;n<l;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(l=e.rows.length,n=0;n<l;n++)e.rows[n]=Il(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,r=0;r<l;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(l=e.rows.length,r=0;r<l;r++)for(i=e.rows[r],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inlineTokens(i[o].text,i[o].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:vl(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]):vl(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=Al(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,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;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)),jl(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||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return jl(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 o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,l=n,s=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(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){l+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}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=vl(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=vl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=vl(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=vl(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=vl(n[0]),r="www."===n[1]?"http://"+e:e}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]):vl(n[0]):n[0]:vl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Ul={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Rl,lheading:/^([^\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?'|\([^()]*\))/};Ul.def=_l(Ul.def).replace("label",Ul._label).replace("title",Ul._title).getRegex(),Ul.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ul.listItemStart=_l(/^( *)(bull) */).replace("bull",Ul.bullet).getRegex(),Ul.list=_l(Ul.list).replace(/bull/g,Ul.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ul.def.source+")").getRegex(),Ul._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",Ul._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ul.html=_l(Ul.html,"i").replace("comment",Ul._comment).replace("tag",Ul._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ul.paragraph=_l(Ul._paragraph).replace("hr",Ul.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",Ul._tag).getRegex(),Ul.blockquote=_l(Ul.blockquote).replace("paragraph",Ul.paragraph).getRegex(),Ul.normal=zl({},Ul),Ul.gfm=zl({},Ul.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ul.gfm.table=_l(Ul.gfm.table).replace("hr",Ul.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",Ul._tag).getRegex(),Ul.gfm.paragraph=_l(Ul._paragraph).replace("hr",Ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ul.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",Ul._tag).getRegex(),Ul.pedantic=zl({},Ul.normal,{html:_l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ul._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:Rl,paragraph:_l(Ul.normal._paragraph).replace("hr",Ul.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ul.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ml={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Rl,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:Rl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Nl(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 Vl(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ml._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ml.punctuation=_l(Ml.punctuation).replace(/punctuation/g,Ml._punctuation).getRegex(),Ml.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ml.escapedEmSt=/\\\*|\\_/g,Ml._comment=_l(Ul._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ml.emStrong.lDelim=_l(Ml.emStrong.lDelim).replace(/punct/g,Ml._punctuation).getRegex(),Ml.emStrong.rDelimAst=_l(Ml.emStrong.rDelimAst,"g").replace(/punct/g,Ml._punctuation).getRegex(),Ml.emStrong.rDelimUnd=_l(Ml.emStrong.rDelimUnd,"g").replace(/punct/g,Ml._punctuation).getRegex(),Ml._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ml._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ml._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])?)+(?![-_])/,Ml.autolink=_l(Ml.autolink).replace("scheme",Ml._scheme).replace("email",Ml._email).getRegex(),Ml._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ml.tag=_l(Ml.tag).replace("comment",Ml._comment).replace("attribute",Ml._attribute).getRegex(),Ml._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ml._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ml._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ml.link=_l(Ml.link).replace("label",Ml._label).replace("href",Ml._href).replace("title",Ml._title).getRegex(),Ml.reflink=_l(Ml.reflink).replace("label",Ml._label).replace("ref",Ul._label).getRegex(),Ml.nolink=_l(Ml.nolink).replace("ref",Ul._label).getRegex(),Ml.reflinkSearch=_l(Ml.reflinkSearch,"g").replace("reflink",Ml.reflink).replace("nolink",Ml.nolink).getRegex(),Ml.normal=zl({},Ml),Ml.pedantic=zl({},Ml.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:_l(/^!?\[(label)\]\((.*?)\)/).replace("label",Ml._label).getRegex(),reflink:_l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ml._label).getRegex()}),Ml.gfm=zl({},Ml.normal,{escape:_l(Ml.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ml.gfm.url=_l(Ml.gfm.url,"i").replace("email",Ml.gfm._extended_email).getRegex(),Ml.breaks=zl({},Ml.gfm,{br:_l(Ml.br).replace("{2,}","*").getRegex(),text:_l(Ml.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Fl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ul,this.options.tokenizer=this.options.tokenizer||new Pl,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:Ul.normal,inline:Ml.normal};this.options.pedantic?(t.block=Ul.pedantic,t.inline=Ml.pedantic):this.options.gfm&&(t.block=Ul.gfm,this.options.breaks?t.inline=Ml.breaks:t.inline=Ml.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ul,inline:Ml}}static lex(e,t){return new Fl(t).lex(e)}static lexInline(e,t){return new Fl(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,o,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(o=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&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))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=o.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){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,l,s,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)+"["+Ll("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)+"["+Ll("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)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!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,s))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,Vl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Vl))){if(o=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&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,Nl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!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 Dl{constructor(e){this.options=e||ul}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+vl(r,!0)+'">'+(n?e:vl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:vl(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=Sl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+vl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Sl(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 Bl{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 ql{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 Wl{constructor(e){this.options=e||ul,this.options.renderer=this.options.renderer||new Dl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Bl,this.slugger=new ql}static parse(e,t){return new Wl(t).parse(e)}static parseInline(e,t){return new Wl(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,l,s,a,c,u,p,d,f,h,g,m,v,y,b,w,_="";const k=e.length;for(n=0;n<k;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)))_+=w||"";else switch(p.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(p.tokens),p.depth,bl(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=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(s=p.rows[r],a="",l=s.length,o=0;o<l;o++)a+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(a)}_+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),_+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,f=p.start,h=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),h?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,h),u+=this.renderer.listitem(g,y,v);_+=this.renderer.list(u,d,f);continue;case"html":_+=this.renderer.html(p.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<k&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);_+=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 _}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const l=e.length;for(n=0;n<l;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";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 Hl(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),Tl(t=zl({},Hl.defaults,t||{})),n){const r=t.highlight;let o;try{o=Fl.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Hl.walkTokens(o,t.walkTokens),i=Wl.parse(o,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,!o.length)return i();let l=0;return Hl.walkTokens(o,(function(e){"code"===e.type&&(l++,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),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Fl.lex(e,t);return t.walkTokens&&Hl.walkTokens(n,t.walkTokens),Wl.parse(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>"+vl(e.message+"",!0)+"</pre>";throw e}}Hl.options=Hl.setOptions=function(e){var t;return zl(Hl.defaults,e),t=Hl.defaults,ul=t,Hl},Hl.getDefaults=cl,Hl.defaults=ul,Hl.use=function(...e){const t=zl({},...e),n=Hl.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),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'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Hl.defaults.renderer||new Dl;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=Hl.defaults.tokenizer||new Pl;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=Hl.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),Hl.setOptions(t)}))},Hl.walkTokens=function(e,t){for(const n of e)switch(t.call(Hl,n),n.type){case"table":for(const e of n.header)Hl.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Hl.walkTokens(n.tokens,t);break;case"list":Hl.walkTokens(n.items,t);break;default:Hl.defaults.extensions&&Hl.defaults.extensions.childTokens&&Hl.defaults.extensions.childTokens[n.type]?Hl.defaults.extensions.childTokens[n.type].forEach((function(e){Hl.walkTokens(n[e],t)})):n.tokens&&Hl.walkTokens(n.tokens,t)}},Hl.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");Tl(t=zl({},Hl.defaults,t||{}));try{const n=Fl.lexInline(e,t);return t.walkTokens&&Hl.walkTokens(n,t.walkTokens),Wl.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>"+vl(e.message+"",!0)+"</pre>";throw e}},Hl.Parser=Wl,Hl.parser=Wl.parse,Hl.Renderer=Dl,Hl.TextRenderer=Bl,Hl.Lexer=Fl,Hl.lexer=Fl.lex,Hl.Tokenizer=Pl,Hl.Slugger=ql,Hl.parse=Hl;const Zl=/\$.*?\$/,Kl=/^\$(.*?)\$/,Jl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Ql=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Yl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Hl.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Jl.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(Zl);return-1!==t?t:e.length},tokenizer(t){const n=Kl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Hl.use({extensions:e})}return Hl.parse(Ql(e,t))},Xl=e=>e.dataset.path||e.getAttribute("id"),Gl=()=>ji("USER_KEY",{}),es=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{var o;const i=new AbortController,l=document.querySelectorAll(n),s=Gl();return l.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>rl(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(l).map((e=>Wi(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((e=>{l.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(nl),i.abort.bind(i)};var ts,ns,rs="function"==typeof Map?new Map:(ts=[],ns=[],{has:function(e){return ts.indexOf(e)>-1},get:function(e){return ns[ts.indexOf(e)]},set:function(e,t){-1===ts.indexOf(e)&&(ts.push(e),ns.push(t))},delete:function(e){var t=ts.indexOf(e);t>-1&&(ts.splice(t,1),ns.splice(t,1))}}),os=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ts){os=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function is(e){var t=rs.get(e);t&&t.destroy()}function ls(e){var t=rs.get(e);t&&t.update()}var ss=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ss=function(e){return e}).destroy=function(e){return e},ss.update=function(e){return e}):((ss=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&&!rs.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),rs.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",l,!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",rs.set(e,{destroy:l,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 s(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&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}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&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=os("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],is),e},ss.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ls),e});var as=ss;const cs=({size:e})=>Ro("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Ro("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Ro("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var us=Nn({name:"CommentBox",components:{CloseIcon:({size:e})=>Ro("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Ro("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"}),Ro("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"})]),EmojiIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Ro("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"})),ImageIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("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"})]),MarkdownIcon:()=>Ro("svg",{width:"16",height:"16",ariaHidden:"true"},Ro("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"})),PreviewIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Ro("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"}),Ro("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"})]),LoadingIcon:cs},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=In("config"),r=ji("WALINE_COMMENT_BOX_EDITOR",""),o=ji("WALINE_USER_META",{nick:"",mail:"",link:""}),i=Gl(),l=At({}),s=At(null),a=At(null),c=At(null),u=At(null),p=At({tabs:[],map:{}}),d=At(0),f=At(!1),h=At(!1),g=At(""),m=At(0),v=At(0),y=At(!1),b=At(""),w=At(!1),_=Oo((()=>n.value.locale)),k=Oo((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),x=Oo((()=>!1!==n.value.imageUploader)),S=e=>{const t=s.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},$=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return S(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)}))},E=()=>{var a,c,u,d,f;const{serverURL:h,lang:v,login:k,wordLimit:x,requiredMeta:S}=n.value,$={comment:b.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,ua:navigator.userAgent,url:n.value.path};if(null===(a=i.value)||void 0===a?void 0:a.token)$.nick=i.value.display_name,$.mail=i.value.email,$.link=i.value.url;else{if("force"===k)return;if(S.indexOf("nick")>-1&&!$.nick)return null===(c=l.value.nick)||void 0===c||c.focus(),alert(_.value.nickError);if(S.indexOf("mail")>-1&&!$.mail||$.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec($.mail))return null===(u=l.value.mail)||void 0===u||u.focus(),alert(_.value.mailError);if(!$.comment)return void(null===(d=s.value)||void 0===d||d.focus());$.nick||($.nick=_.value.anonymous)}if(!y.value)return alert(_.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",m.value.toString()));$.comment=Ql($.comment,p.value.map),e.replyId&&e.rootId&&($.pid=e.replyId,$.rid=e.rootId,$.at=e.replyUser),w.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const o={"Content-Type":"application/json"};return n&&(o.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:o,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:h,lang:v,token:null===(f=i.value)||void 0===f?void 0:f.token,comment:$}).then((n=>{if(w.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",g.value="",e.replyId&&t("cancel-reply")})).catch((e=>{w.value=!1,alert(e.message)}))},C=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(f.value=!1)};return Ln([n,m],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(v.value=n[0],y.value=!1):t>n[1]?(v.value=n[1],y.value=!1):(v.value=n[1],y.value=!0):(v.value=0,y.value=!0)}),{immediate:!0}),Jn((()=>{document.body.addEventListener("click",C),Ln((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;b.value=e,g.value=Yl(e,{emojiMap:p.value.map,highlighter:t,texRenderer:r}),m.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?as(s.value):as.destroy(s.value)}),{immediate:!0}),Ln((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?el(Hi(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:tl(o,r,i,l),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=tl(e,r,i,l),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),Gn((()=>{document.body.removeEventListener("click",C)})),{config:n,locale:_,insert:S,onChange:()=>{const e=a.value;e.files&&x.value&&$(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null===(t=e.dataTransfer)||void 0===t?void 0:t.items){const t=al(e.dataTransfer.items);t&&x.value&&($(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&E()},onPaste:e=>{if(e.clipboardData){const t=al(e.clipboardData.items);t&&x.value&&$(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(null==s||s.close(),i.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const a=({data:e})=>{e&&"profile"===e.type&&(i.value={...i.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",a))};window.addEventListener("message",a)},submitComment:E,isLogin:k,userInfo:i,isSubmitting:w,wordNumber:m,wordLimit:v,isWordNumberLegal:y,editor:r,userMeta:o,emoji:p,emojiTabIndex:d,showEmoji:f,canUploadImage:x,previewText:g,showPreview:h,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,imageUploadRef:a}}});const ps={class:"wl-comment"},ds={key:0,class:"wl-login-info"},fs={class:"wl-avatar"},hs=["title"],gs=["src"],ms=["textContent"],vs={class:"wl-panel"},ys=["for","textContent"],bs=["id","name","type","onUpdate:modelValue"],ws=["placeholder"],_s={class:"wl-preview"},ks=oo("hr",null,null,-1),xs=["innerHTML"],Ss={class:"wl-footer"},$s={class:"wl-actions"},Es={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Cs=["title"],Os=["title"],Rs=["title"],zs={class:"wl-info"},Is={class:"wl-text-number"},As={key:0},Ts=so(" / "),Ls=["textContent"],js=["textContent"],Ps=["disabled"],Us={key:0,class:"wl-tab-wrapper"},Ms=["title","onClick"],Ns=["src","alt"],Vs={key:0,class:"wl-tabs"},Fs=["onClick"],Ds=["src","alt","title"],Bs=["title"];us.render=function(e,t,n,r,o,i){const l=Mr("CloseIcon"),s=Mr("MarkdownIcon"),a=Mr("EmojiIcon"),c=Mr("ImageIcon"),u=Mr("PreviewIcon"),p=Mr("LoadingIcon");return Zr(),Yr("div",ps,["disable"!==e.config.login&&e.isLogin?(Zr(),Yr("div",ds,[oo("div",fs,[oo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[io(l,{size:14})],8,hs),oo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,gs)]),oo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:C(e.userInfo.display_name)},null,8,ms)])):ao("v-if",!0),oo("div",vs,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Zr(),Yr("div",{key:0,class:S(["wl-header",`item${e.config.meta.length}`])},[(Zr(!0),Yr(Fr,null,ho(e.config.meta,(t=>(Zr(),Yr("div",{class:"wl-header-item",key:t},[oo("label",{for:t,textContent:C(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,ys),Or(oo("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:S(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,bs),[[ii,e.userMeta[t]]])])))),128))],2)):ao("v-if",!0),Or(oo("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,ws),[[Yo,e.editor]]),Or(oo("div",_s,[ks,oo("h4",null,C(e.locale.preview)+":",1),oo("div",{class:"wl-content",innerHTML:e.previewText},null,8,xs)],512),[[si,e.showPreview]]),oo("div",Ss,[oo("div",$s,[oo("a",Es,[io(s)]),Or(oo("button",{ref:"emojiButtonRef",class:S(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[io(a)],10,Cs),[[si,e.emoji.tabs.length]]),oo("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(Zr(),Yr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[io(c)],8,Os)):ao("v-if",!0),oo("button",{class:S(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[io(u)],10,Rs)]),oo("div",zs,[oo("div",Is,[so(C(e.wordNumber)+" ",1),e.config.wordLimit?(Zr(),Yr("span",As,[Ts,oo("span",{class:S({illegal:!e.isWordNumberLegal}),textContent:C(e.wordLimit)},null,10,Ls)])):ao("v-if",!0),so(" "+C(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?ao("v-if",!0):(Zr(),Yr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:C(e.locale.login)},null,8,js)),"force"!==e.config.login||e.isLogin?(Zr(),Yr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Zr(),Xr(p,{key:0,size:16})):(Zr(),Yr(Fr,{key:1},[so(C(e.locale.submit),1)],2112))],8,Ps)):ao("v-if",!0)]),oo("div",{ref:"emojiPopupRef",class:S(["wl-emoji-popup",{display:e.showEmoji}])},[(Zr(!0),Yr(Fr,null,ho(e.emoji.tabs,((t,n)=>(Zr(),Yr(Fr,{key:t.name},[n===e.emojiTabIndex?(Zr(),Yr("div",Us,[(Zr(!0),Yr(Fr,null,ho(t.items,(t=>(Zr(),Yr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Zr(),Yr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ns)):ao("v-if",!0)],8,Ms)))),128))])):ao("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zr(),Yr("div",Vs,[(Zr(!0),Yr(Fr,null,ho(e.emoji.tabs,((t,n)=>(Zr(),Yr("button",{key:t.name,class:S(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[oo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ds)],10,Fs)))),128))])):ao("v-if",!0)],2)])]),e.replyId?(Zr(),Yr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[io(l,{size:24})],8,Bs)):ao("v-if",!0)])},us.__file="src/components/CommentBox.vue";var qs=Nn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:us,ReplyIcon:()=>Ro("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Ro("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>Ro("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Ro("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"}))},emits:["submit","reply"],setup(e){const t=In("config"),n=Oo((()=>t.value.locale)),r=Oo((()=>{let{link:t}=e.comment;return t?Zi(t)?t:`https://${t}`:""})),o=((e,t)=>{const n=Bi();return Oo((()=>Gi(e,n.value,t)))})(e.comment.insertedAt,n.value),i=Oo((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,isReplyingCurrent:i,link:r,time:o}}});const Ws=["id"],Hs={class:"wl-user","aria-hidden":"true"},Zs=["src"],Ks={class:"wl-card"},Js={class:"wl-head"},Qs=["href"],Ys={key:1,class:"wl-nick"},Xs=["textContent"],Gs=["textContent"],ea=["textContent"],ta=["textContent"],na=["textContent"],ra=["title"],oa={class:"wl-meta","aria-hidden":"true"},ia=["textContent"],la=["textContent"],sa=["textContent"],aa=["innerHTML"],ca={key:0,class:"wl-reply-wrapper"},ua={key:1,class:"wl-quote"};qs.render=function(e,t,n,r,o,i){const l=Mr("VerifiedIcon"),s=Mr("ReplyIcon"),a=Mr("CommentBox"),c=Mr("CommentCard",!0);return Zr(),Yr("div",{class:"wl-item",id:e.comment.objectId},[oo("div",Hs,[e.comment.avatar?(Zr(),Yr("img",{key:0,src:e.comment.avatar},null,8,Zs)):ao("v-if",!0),e.comment.type?(Zr(),Xr(l,{key:1})):ao("v-if",!0)]),oo("div",Ks,[oo("div",Js,[e.link?(Zr(),Yr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},C(e.comment.nick),9,Qs)):(Zr(),Yr("span",Ys,C(e.comment.nick),1)),"administrator"===e.comment.type?(Zr(),Yr("span",{key:2,class:"wl-badge",textContent:C(e.locale.admin)},null,8,Xs)):ao("v-if",!0),e.comment.label?(Zr(),Yr("span",{key:3,class:"wl-badge",textContent:C(e.comment.label)},null,8,Gs)):ao("v-if",!0),e.comment.sticky?(Zr(),Yr("span",{key:4,class:"wl-badge",textContent:C(e.locale.sticky)},null,8,ea)):ao("v-if",!0),e.comment.level>=0?(Zr(),Yr("span",{key:5,class:S(`wl-badge level${e.comment.level}`),textContent:C(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,ta)):ao("v-if",!0),oo("span",{class:"wl-time",textContent:C(e.time)},null,8,na),oo("button",{class:S(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[io(s)],10,ra)]),oo("div",oa,[e.comment.addr?(Zr(),Yr("span",{key:0,textContent:C(e.comment.addr)},null,8,ia)):ao("v-if",!0),e.comment.browser?(Zr(),Yr("span",{key:1,textContent:C(e.comment.browser)},null,8,la)):ao("v-if",!0),e.comment.os?(Zr(),Yr("span",{key:2,textContent:C(e.comment.os)},null,8,sa)):ao("v-if",!0)]),oo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,aa),e.isReplyingCurrent?(Zr(),Yr("div",ca,[io(a,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):ao("v-if",!0),e.comment.children?(Zr(),Yr("div",ua,[(Zr(!0),Yr(Fr,null,ho(e.comment.children,(n=>(Zr(),Xr(c,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):ao("v-if",!0)])],8,Ws)},qs.__file="src/components/CommentCard.vue";var pa=Nn({name:"WalineRoot",components:{CommentBox:us,CommentCard:qs,LoadingIcon:cs},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const o=Oo((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:l,emoji:a=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:c=["nick","mail","link"],requiredMeta:u=[],dark:p=!1,pageSize:d=10,wordLimit:f,imageUploader:h,highlighter:g,texRenderer:v,copyright:y=!0,login:b="enable",...w})=>({serverURL:Ki(e),path:Wi(o),locale:{...m[i]||m["zh-CN"],..."object"==typeof l?l:{}},wordLimit:Ji(f),meta:t(c),requiredMeta:t(u),imageUploader:Qi(h,n),highlighter:Qi(g,s),texRenderer:Qi(v,r),lang:i,dark:p,emoji:a,pageSize:d,login:b,copyright:y,...w}))(e))),i=Gl(),l=At("loading"),a=At(0),c=At(1),u=At(0),p=At([]),d=At(null),f=Oo((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Yi}}`:`${e}${Yi}`:!0===e?`:root${Yi}`:"";var e}));let h;!function(e,t={}){const n=At(!1),{document:r=Ri,immediate:o=!0,manual:i=!1,id:l="vueuse_styletag_"+ ++qi}=t,s=At(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};o&&!i&&c(),i||di(u),bt(n)}(f);const g=e=>{var t;const{serverURL:n,path:r,pageSize:s}=o.value,d=new AbortController;l.value="loading",null==h||h(),(({serverURL:e,lang:t,path:n,page:r,pageSize:o,signal:i,token:l})=>{const s={};return l&&(s.Authorization=`Bearer ${l}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${o}&page=${r}&lang=${t}`,{signal:i,headers:s}).then((e=>e.json())).then((e=>rl(e,"comment list")))})({serverURL:n,lang:o.value.lang,path:r,pageSize:s,page:e,signal:d.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((t=>{l.value="success",a.value=t.count,p.value.push(...t.data),c.value=e,u.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),l.value="error")})),h=d.abort.bind(d)},v=()=>{a.value=0,p.value=[],g(1)};return zn("config",o),Ln((()=>e.path),v),Jn((()=>v())),{config:o,darkmodeStyle:f,i18n:Oo((()=>o.value.locale)),status:l,count:a,page:c,totalPages:u,data:p,reply:d,loadMore:()=>g(c.value+1),refresh:v,onReply:e=>{d.value=e},onSubmit:e=>{if(e.rid){const t=p.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else p.value.unshift(e)},version:"2.3.2"}}});const da={"data-waline":""},fa={class:"wl-count"},ha=["textContent"],ga={class:"wl-cards"},ma={key:1,class:"wl-operation"},va=["textContent"],ya={key:0,class:"wl-loading"},ba=["textContent"],wa={class:"wl-operation"},_a=["textContent"],ka={key:3,class:"wl-power"},xa=so(" Powered by "),Sa=oo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);pa.render=function(e,t,n,r,o,i){const l=Mr("CommentBox"),s=Mr("CommentCard"),a=Mr("LoadingIcon");return Zr(),Yr("div",da,[e.reply?ao("v-if",!0):(Zr(),Xr(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),oo("div",fa,[e.count?(Zr(),Yr("span",{key:0,class:"wl-num",textContent:C(e.count)},null,8,ha)):ao("v-if",!0),so(" "+C(e.i18n.comment),1)]),oo("div",ga,[(Zr(!0),Yr(Fr,null,ho(e.data,(t=>(Zr(),Xr(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),"error"===e.status?(Zr(),Yr("div",ma,[oo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:C(e.i18n.refresh)},null,8,va)])):(Zr(),Yr(Fr,{key:2},["loading"===e.status?(Zr(),Yr("div",ya,[io(a,{size:30})])):e.data.length?e.page<e.totalPages?(Zr(),Yr(Fr,{key:2},[ao(" Load more button "),oo("div",wa,[oo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:C(e.i18n.more)},null,8,_a)])],2112)):ao("v-if",!0):(Zr(),Yr("div",{key:1,class:"wl-empty",textContent:C(e.i18n.sofa)},null,8,ba))],2112)),ao(" Copyright Information "),e.config.copyright?(Zr(),Yr("div",ka,[xa,Sa,so(" v"+C(e.version),1)])):ao("v-if",!0)])},pa.__file="src/components/Waline.vue";const $a=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ea=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:o="zh-CN"})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Xl(e);return null!==n&&t!==n},a=n=>ol({serverURL:e,paths:n.map((e=>Xl(e)||t)),lang:o,signal:i.signal}).then((e=>$a(e,n))).catch(nl);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);il({serverURL:e,path:t,lang:o}).then((e=>$a(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);return i.abort.bind(i)},Ca=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const i=e?ll(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!o.serverURL)throw new Error("Option 'serverURL' is missing!");const l=yt({...o}),s=yt({comment:n,pageview:r,path:t}),a=()=>{s.comment&&es({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})},c=()=>{s.pageview&&Ea({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})},u=i?pi((()=>Ro(pa,{path:s.path,...l}))):null;u&&u.mount(i),a(),c();const p=An(a),d=An(c);return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{null==u||u.unmount(),p(),d()}}},Oa="2.3.2",Ra=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{var o;const i=Gl(),l=ll(e),s=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:o})=>{const i={};return o&&(i.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json())).then((e=>rl(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:s.signal,token:null===(o=i.value)||void 0===o?void 0:o.token}).then((e=>l&&e.length?(l.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{s.abort(),l.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))};export{Ra as RecentComments,es as commentCount,m as defaultLocales,Ca as init,Ea as pageviewCount,Oa as version};
|
|
1
|
+
const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=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>',o=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"),l=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],i={},s=e=>{let t=0;return e.replace(o,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let o;i[n]?o=i[n]:(o=l[t],i[n]=o);const s=`<span style="color: #${o}">${n}</span>`;return t=++t%l.length,s}))},a=["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"],c=e=>Object.fromEntries(e.map(((e,t)=>[a[t],e])));var u=c(["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"]),p=c(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),d=c(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说"]),h=c(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說"]),f=c(["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"]),m=c(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const g={zh:d,"zh-cn":d,"zh-CN":d,"zh-tw":h,"zh-TW":h,en:u,"en-US":u,"en-us":u,jp:p,"jp-jp":p,"jp-JP":p,"pt-br":f,"pt-BR":f,ru:m,"ru-ru":m,"ru-RU":m};function v(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]}const y=v("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function w(e){return!!e||""===e}function k(e){if(F(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=W(r)?_(r):k(r);if(o)for(const e in o)t[e]=o[e]}return t}return W(e)||Z(e)?e:void 0}const b=/;(?![^(]*\))/g,x=/:(.+)/;function _(e){const t={};return e.split(b).forEach((e=>{if(e){const n=e.split(x);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function $(e){let t="";if(W(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const r=$(e[n]);r&&(t+=r+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function S(e,t){if(e===t)return!0;let n=D(e),r=D(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=F(e),r=F(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=S(e[r],t[r]);return n}(e,t);if(n=Z(e),r=Z(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),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!S(e[n],t[n]))return!1}}return String(e)===String(t)}function C(e,t){return e.findIndex((e=>S(e,t)))}const z=e=>W(e)?e:null==e?"":F(e)||Z(e)&&(e.toString===K||!q(e.toString))?JSON.stringify(e,E,2):String(e),E=(e,t)=>t&&t.__v_isRef?E(e,t.value):B(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:V(t)?{[`Set(${t.size})`]:[...t.values()]}:!Z(t)||F(t)||X(t)?t:String(t),R={},I=[],A=()=>{},L=()=>!1,j=/^on[^a-z]/,T=e=>j.test(e),O=e=>e.startsWith("onUpdate:"),U=Object.assign,M=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},P=Object.prototype.hasOwnProperty,N=(e,t)=>P.call(e,t),F=Array.isArray,B=e=>"[object Map]"===Q(e),V=e=>"[object Set]"===Q(e),D=e=>e instanceof Date,q=e=>"function"==typeof e,W=e=>"string"==typeof e,H=e=>"symbol"==typeof e,Z=e=>null!==e&&"object"==typeof e,J=e=>Z(e)&&q(e.then)&&q(e.catch),K=Object.prototype.toString,Q=e=>K.call(e),X=e=>"[object Object]"===Q(e),Y=e=>W(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=v(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ee=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},te=/-(\w)/g,ne=ee((e=>e.replace(te,((e,t)=>t?t.toUpperCase():"")))),re=/\B([A-Z])/g,oe=ee((e=>e.replace(re,"-$1").toLowerCase())),le=ee((e=>e.charAt(0).toUpperCase()+e.slice(1))),ie=ee((e=>e?`on${le(e)}`:"")),se=(e,t)=>!Object.is(e,t),ae=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ce=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ue=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let pe;let de;class he{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&de&&(this.parent=de,this.index=(de.scopes||(de.scopes=[])).push(this)-1)}run(e){if(this.active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=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.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const fe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},me=e=>(e.w&we)>0,ge=e=>(e.n&we)>0,ve=new WeakMap;let ye=0,we=1;let ke;const be=Symbol(""),xe=Symbol("");class _e{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=de){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ke,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ke,ke=this,Se=!0,we=1<<++ye,ye<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=we})(this):$e(this),this.fn()}finally{ye<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];me(o)&&!ge(o)?o.delete(e):t[n++]=o,o.w&=~we,o.n&=~we}t.length=n}})(this),we=1<<--ye,ke=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ke===this?this.deferStop=!0:this.active&&($e(this),this.onStop&&this.onStop(),this.active=!1)}}function $e(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ce=[];function ze(){Ce.push(Se),Se=!1}function Ee(){const e=Ce.pop();Se=void 0===e||e}function Re(e,t,n){if(Se&&ke){let t=ve.get(e);t||ve.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=fe()),Ie(r)}}function Ie(e,t){let n=!1;ye<=30?ge(e)||(e.n|=we,n=!me(e)):n=!e.has(ke),n&&(e.add(ke),ke.deps.push(e))}function Ae(e,t,n,r,o,l){const i=ve.get(e);if(!i)return;let s=[];if("clear"===t)s=[...i.values()];else if("length"===n&&F(e))i.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":F(e)?Y(n)&&s.push(i.get("length")):(s.push(i.get(be)),B(e)&&s.push(i.get(xe)));break;case"delete":F(e)||(s.push(i.get(be)),B(e)&&s.push(i.get(xe)));break;case"set":B(e)&&s.push(i.get(be))}if(1===s.length)s[0]&&Le(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Le(fe(e))}}function Le(e,t){for(const t of F(e)?e:[...e])(t!==ke||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const je=v("__proto__,__v_isRef,__isVue"),Te=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(H)),Oe=Fe(),Ue=Fe(!1,!0),Me=Fe(!0),Pe=Ne();function Ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e<t;e++)Re(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map($t)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ze();const n=$t(this)[t].apply(this,e);return Ee(),n}})),e}function Fe(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?mt:ft:t?ht:dt).get(n))return n;const l=F(n);if(!e&&l&&N(Pe,r))return Reflect.get(Pe,r,o);const i=Reflect.get(n,r,o);if(H(r)?Te.has(r):je(r))return i;if(e||Re(n,0,r),t)return i;if(It(i)){return!l||!Y(r)?i.value:i}return Z(i)?e?yt(i):vt(i):i}}function Be(e=!1){return function(t,n,r,o){let l=t[n];if(bt(l)&&It(l)&&!It(r))return!1;if(!e&&!bt(r)&&(xt(r)||(r=$t(r),l=$t(l)),!F(t)&&It(l)&&!It(r)))return l.value=r,!0;const i=F(t)&&Y(n)?Number(n)<t.length:N(t,n),s=Reflect.set(t,n,r,o);return t===$t(o)&&(i?se(r,l)&&Ae(t,"set",n,r):Ae(t,"add",n,r)),s}}const Ve={get:Oe,set:Be(),deleteProperty:function(e,t){const n=N(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ae(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return H(t)&&Te.has(t)||Re(e,0,t),n},ownKeys:function(e){return Re(e,0,F(e)?"length":be),Reflect.ownKeys(e)}},De={get:Me,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},qe=U({},Ve,{get:Ue,set:Be(!0)}),We=e=>e,He=e=>Reflect.getPrototypeOf(e);function Ze(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),l=$t(t);t!==l&&!n&&Re(o,0,t),!n&&Re(o,0,l);const{has:i}=He(o),s=r?We:n?zt:Ct;return i.call(o,t)?s(e.get(t)):i.call(o,l)?s(e.get(l)):void(e!==o&&e.get(t))}function Je(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return e!==o&&!t&&Re(r,0,e),!t&&Re(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Ke(e,t=!1){return e=e.__v_raw,!t&&Re($t(e),0,be),Reflect.get(e,"size",e)}function Qe(e){e=$t(e);const t=$t(this);return He(t).has.call(t,e)||(t.add(e),Ae(t,"add",e,e)),this}function Xe(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=He(n);let l=r.call(n,e);l||(e=$t(e),l=r.call(n,e));const i=o.call(n,e);return n.set(e,t),l?se(t,i)&&Ae(n,"set",e,t):Ae(n,"add",e,t),this}function Ye(e){const t=$t(this),{has:n,get:r}=He(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return o&&Ae(t,"delete",e,void 0),l}function Ge(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}function et(e,t){return function(n,r){const o=this,l=o.__v_raw,i=$t(l),s=t?We:e?zt:Ct;return!e&&Re(i,0,be),l.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function tt(e,t,n){return function(...r){const o=this.__v_raw,l=$t(o),i=B(l),s="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,c=o[e](...r),u=n?We:t?zt:Ct;return!t&&Re(l,0,a?xe:be),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function nt(e){return function(...t){return"delete"!==e&&this}}function rt(){const e={get(e){return Ze(this,e)},get size(){return Ke(this)},has:Je,add:Qe,set:Xe,delete:Ye,clear:Ge,forEach:et(!1,!1)},t={get(e){return Ze(this,e,!1,!0)},get size(){return Ke(this)},has:Je,add:Qe,set:Xe,delete:Ye,clear:Ge,forEach:et(!1,!0)},n={get(e){return Ze(this,e,!0)},get size(){return Ke(this,!0)},has(e){return Je.call(this,e,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!1)},r={get(e){return Ze(this,e,!0,!0)},get size(){return Ke(this,!0)},has(e){return Je.call(this,e,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=tt(o,!1,!1),n[o]=tt(o,!0,!1),t[o]=tt(o,!1,!0),r[o]=tt(o,!0,!0)})),[e,n,t,r]}const[ot,lt,it,st]=rt();function at(e,t){const n=t?e?st:it:e?lt:ot;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(N(n,r)&&r in t?n:t,r,o)}const ct={get:at(!1,!1)},ut={get:at(!1,!0)},pt={get:at(!0,!1)},dt=new WeakMap,ht=new WeakMap,ft=new WeakMap,mt=new WeakMap;function gt(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=>Q(e).slice(8,-1))(e))}function vt(e){return bt(e)?e:wt(e,!1,Ve,ct,dt)}function yt(e){return wt(e,!0,De,pt,ft)}function wt(e,t,n,r,o){if(!Z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const i=gt(e);if(0===i)return e;const s=new Proxy(e,2===i?r:n);return o.set(e,s),s}function kt(e){return bt(e)?kt(e.__v_raw):!(!e||!e.__v_isReactive)}function bt(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function _t(e){return kt(e)||bt(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function St(e){return ce(e,"__v_skip",!0),e}const Ct=e=>Z(e)?vt(e):e,zt=e=>Z(e)?yt(e):e;function Et(e){Se&&ke&&Ie((e=$t(e)).dep||(e.dep=fe()))}function Rt(e,t){(e=$t(e)).dep&&Le(e.dep)}function It(e){return!(!e||!0!==e.__v_isRef)}function At(e){return jt(e,!1)}function Lt(e){return jt(e,!0)}function jt(e,t){return It(e)?e:new Tt(e,t)}class Tt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Ct(e)}get value(){return Et(this),this._value}set value(e){e=this.__v_isShallow?e:$t(e),se(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ct(e),Rt(this))}}function Ot(e){return It(e)?e.value:e}const Ut={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return It(o)&&!It(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Mt(e){return kt(e)?e:new Proxy(e,Ut)}class Pt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new _e(e,(()=>{this._dirty||(this._dirty=!0,Rt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return Et(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Nt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Bt(e,t,n)}return o}function Ft(e,t,n,r){if(q(e)){const o=Nt(e,t,n,r);return o&&J(o)&&o.catch((e=>{Bt(e,t,n)})),o}const o=[];for(let l=0;l<e.length;l++)o.push(Ft(e[l],t,n,r));return o}function Bt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const o=t.proxy,l=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,l))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void Nt(i,null,10,[e,o,l])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Vt=!1,Dt=!1;const qt=[];let Wt=0;const Ht=[];let Zt=null,Jt=0;const Kt=[];let Qt=null,Xt=0;const Yt=Promise.resolve();let Gt=null,en=null;function tn(e){const t=Gt||Yt;return e?t.then(this?e.bind(this):e):t}function nn(e){qt.length&&qt.includes(e,Vt&&e.allowRecurse?Wt+1:Wt)||e===en||(null==e.id?qt.push(e):qt.splice(function(e){let t=Wt+1,n=qt.length;for(;t<n;){const r=t+n>>>1;an(qt[r])<e?t=r+1:n=r}return t}(e.id),0,e),rn())}function rn(){Vt||Dt||(Dt=!0,Gt=Yt.then(cn))}function on(e,t,n,r){F(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),rn()}function ln(e,t=null){if(Ht.length){for(en=t,Zt=[...new Set(Ht)],Ht.length=0,Jt=0;Jt<Zt.length;Jt++)Zt[Jt]();Zt=null,Jt=0,en=null,ln(e,t)}}function sn(e){if(Kt.length){const e=[...new Set(Kt)];if(Kt.length=0,Qt)return void Qt.push(...e);for(Qt=e,Qt.sort(((e,t)=>an(e)-an(t))),Xt=0;Xt<Qt.length;Xt++)Qt[Xt]();Qt=null,Xt=0}}const an=e=>null==e.id?1/0:e.id;function cn(e){Dt=!1,Vt=!0,ln(e),qt.sort(((e,t)=>an(e)-an(t)));try{for(Wt=0;Wt<qt.length;Wt++){const e=qt[Wt];e&&!1!==e.active&&Nt(e,null,14)}}finally{Wt=0,qt.length=0,sn(),Vt=!1,Gt=null,(qt.length||Ht.length||Kt.length)&&cn(e)}}function un(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||R;let o=n;const l=t.startsWith("update:"),i=l&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:l}=r[e]||R;l?o=n.map((e=>e.trim())):t&&(o=n.map(ue))}let s,a=r[s=ie(t)]||r[s=ie(ne(t))];!a&&l&&(a=r[s=ie(oe(t))]),a&&Ft(a,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Ft(c,e,6,o)}}function pn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const l=e.emits;let i={};return l?(F(l)?l.forEach((e=>i[e]=null)):U(i,l),r.set(e,i),i):(r.set(e,null),null)}function dn(e,t){return!(!e||!T(t))&&(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,oe(t))||N(e,t))}let hn=null,fn=null;function mn(e){const t=hn;return hn=e,fn=e&&e.type.__scopeId||null,t}function gn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:l,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const y=mn(e);try{if(4&n.shapeFlag){const e=o||r;g=Sr(u.call(e,e,p,l,h,d,f)),v=a}else{const e=t;g=Sr(e.length>1?e(l,{attrs:a,slots:s,emit:c}):e(l,null)),v=t.props?a:vn(a)}}catch(t){sr.length=0,Bt(t,e,1),g=br(lr)}let w=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(O)&&(v=yn(v,i)),w=xr(w,v))}return n.dirs&&(w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),g=w,mn(y),g}const vn=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},yn=(e,t)=>{const n={};for(const r in e)O(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function wn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const l=r[o];if(t[l]!==e[l]&&!dn(n,l))return!0}return!1}function kn(e,t,n=!1){const r=Or||hn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&q(t)?t.call(r.proxy):t}}function bn(e,t){return $n(e,null,t)}const xn={};function _n(e,t,n){return $n(e,t,n)}function $n(e,t,{immediate:n,deep:r,flush:o,onTrack:l,onTrigger:i}=R){const s=Or;let a,c,u=!1,p=!1;if(It(e)?(a=()=>e.value,u=xt(e)):kt(e)?(a=()=>e,r=!0):F(e)?(p=!0,u=e.some(kt),a=()=>e.map((e=>It(e)?e.value:kt(e)?Sn(e):q(e)?Nt(e,s,2):void 0))):a=q(e)?t?()=>Nt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Ft(e,s,3,[d])}:A,t&&r){const e=a;a=()=>Sn(e())}let d=e=>{c=g.onStop=()=>{Nt(e,s,4)}};if(Nr)return d=A,t?n&&Ft(t,s,3,[a(),p?[]:void 0,d]):a(),A;let h=p?[]:xn;const f=()=>{if(g.active)if(t){const e=g.run();(r||u||(p?e.some(((e,t)=>se(e,h[t]))):se(e,h)))&&(c&&c(),Ft(t,s,3,[e,h===xn?void 0:h,d]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===o?f:"post"===o?()=>Qn(f,s&&s.suspense):()=>{!s||s.isMounted?function(e){on(e,Zt,Ht,Jt)}(f):f()};const g=new _e(a,m);return t?n?f():h=g.run():"post"===o?Qn(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&M(s.scope.effects,g)}}function Sn(e,t){if(!Z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),It(e))Sn(e.value,t);else if(F(e))for(let n=0;n<e.length;n++)Sn(e[n],t);else if(V(e)||B(e))e.forEach((e=>{Sn(e,t)}));else if(X(e))for(const n in e)Sn(e[n],t);return e}function Cn(e){return q(e)?{setup:e,name:e.name}:e}const zn=e=>!!e.type.__asyncLoader;const En=e=>(t,n=Or)=>(!Nr||"sp"===e)&&function(e,t,n=Or,r=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ze(),Ur(n);const o=Ft(t,n,e,r);return Mr(),Ee(),o});return r?o.unshift(l):o.push(l),l}}(e,t,n),Rn=En("m"),In=En("um");function An(e,t,n,r=!1){const o={},l={};ce(l,vr,1),e.propsDefaults=Object.create(null),Ln(e,t,o,l);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:wt(o,!1,qe,ut,ht):e.type.props?e.props=o:e.props=l,e.attrs=l}function Ln(e,t,n,r){const[o,l]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(G(a))continue;const c=t[a];let u;o&&N(o,u=ne(a))?l&&l.includes(u)?(i||(i={}))[u]=c:n[u]=c:dn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(l){const t=$t(n),r=i||R;for(let i=0;i<l.length;i++){const s=l[i];n[s]=jn(o,t,s,r[s],e,!N(r,s))}}return s}function jn(e,t,n,r,o,l){const i=e[n];if(null!=i){const e=N(i,"default");if(e&&void 0===r){const e=i.default;if(i.type!==Function&&q(e)){const{propsDefaults:l}=o;n in l?r=l[n]:(Ur(o),r=l[n]=e.call(null,t),Mr())}else r=e}i[0]&&(l&&!e?r=!1:!i[1]||""!==r&&r!==oe(n)||(r=!0))}return r}function Tn(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const l=e.props,i={},s=[];if(!l)return r.set(e,I),I;if(F(l))for(let e=0;e<l.length;e++){const t=ne(l[e]);On(t)&&(i[t]=R)}else if(l)for(const e in l){const t=ne(e);if(On(t)){const n=l[e],r=i[t]=F(n)||q(n)?{type:n}:n;if(r){const e=Pn(Boolean,r.type),n=Pn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||N(r,"default"))&&s.push(t)}}}const a=[i,s];return r.set(e,a),a}function On(e){return"$"!==e[0]}function Un(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Mn(e,t){return Un(e)===Un(t)}function Pn(e,t){return F(t)?t.findIndex((t=>Mn(t,e))):q(t)&&Mn(t,e)?0:-1}const Nn=e=>"_"===e[0]||"$stable"===e,Fn=e=>F(e)?e.map(Sr):[Sr(e)],Bn=(e,t,n)=>{const r=function(e,t=hn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&pr(-1);const o=mn(t),l=e(...n);return mn(o),r._d&&pr(1),l};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Fn(t(...e))),n);return r._c=!1,r},Vn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Nn(n))continue;const o=e[n];if(q(o))t[n]=Bn(0,o,r);else if(null!=o){const e=Fn(o);t[n]=()=>e}}},Dn=(e,t)=>{const n=Fn(t);e.slots.default=()=>n};function qn(e,t){const n=hn;if(null===n)return e;const r=Vr(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,l,i,s=R]=t[e];q(n)&&(n={mounted:n,updated:n}),n.deep&&Sn(l),o.push({dir:n,instance:r,value:l,oldValue:void 0,arg:i,modifiers:s})}return e}function Wn(e,t,n,r){const o=e.dirs,l=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];l&&(s.oldValue=l[i].value);let a=s.dir[r];a&&(ze(),Ft(a,n,8,[e.el,s,e,t]),Ee())}}function Hn(){return{app:null,config:{isNativeTag:L,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 Zn=0;function Jn(e,t){return function(n,r=null){q(n)||(n=Object.assign({},n)),null==r||Z(r)||(r=null);const o=Hn(),l=new Set;let i=!1;const s=o.app={_uid:Zn++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Wr,get config(){return o.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&q(e.install)?(l.add(e),e.install(s,...t)):q(e)&&(l.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(l,a,c){if(!i){const u=br(n,r);return u.appContext=o,a&&t?t(u,l):e(u,l,c),i=!0,s._container=l,l.__vue_app__=s,Vr(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function Kn(e,t,n,r,o=!1){if(F(e))return void e.forEach(((e,l)=>Kn(e,t&&(F(t)?t[l]:t),n,r,o)));if(zn(r)&&!o)return;const l=4&r.shapeFlag?Vr(r.component)||r.component.proxy:r.el,i=o?null:l,{i:s,r:a}=e,c=t&&t.r,u=s.refs===R?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(W(c)?(u[c]=null,N(p,c)&&(p[c]=null)):It(c)&&(c.value=null)),q(a))Nt(a,s,12,[i,u]);else{const t=W(a),r=It(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?F(n)&&M(n,l):F(n)?n.includes(l)||n.push(l):t?(u[a]=[l],N(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,N(p,a)&&(p[a]=i)):It(a)&&(a.value=i,e.k&&(u[e.k]=i))};i?(r.id=-1,Qn(r,n)):r()}}}const Qn=function(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):on(e,Qt,Kt,Xt)};function Xn(e){return function(e,t){(pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:l,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=A,cloneNode:h,insertStaticContent:f}=e,m=(e,t,n,r=null,o=null,l=null,i=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!gr(e,t)&&(r=K(e),D(e,o,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case or:g(e,t,n,r);break;case lr:v(e,t,n,r);break;case ir:null==e&&y(t,n,r,i);break;case rr:E(e,t,n,r,o,l,i,s,a);break;default:1&p?b(e,t,n,r,o,l,i,s,a):6&p?L(e,t,n,r,o,l,i,s,a):(64&p||128&p)&&c.process(e,t,n,r,o,l,i,s,a,X)}null!=u&&o&&Kn(u,e&&e.ref,l,t||e,!t)},g=(e,t,r,o)=>{if(null==e)n(t.el=i(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,o)=>{null==e?n(t.el=s(t.children||""),r,o):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},r,o)=>{let l;for(;e&&e!==t;)l=p(e),n(e,r,o),e=l;n(t,r,o)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},b=(e,t,n,r,o,l,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,r,o,l,i,s,a):S(e,t,o,l,i,s,a)},x=(e,t,r,i,s,a,u,p)=>{let d,f;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=l(e.type,a,g&&g.is,g),8&v?c(d,e.children):16&v&&$(e.children,d,null,i,s,a&&"foreignObject"!==m,u,p),k&&Wn(e,null,i,"created"),g){for(const t in g)"value"===t||G(t)||o(d,t,null,g[t],a,e.children,i,s,Z);"value"in g&&o(d,"value",null,g.value),(f=g.onVnodeBeforeMount)&&Er(f,i,e)}_(d,e,e.scopeId,u,i)}k&&Wn(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,r),((f=g&&g.onVnodeMounted)||b||k)&&Qn((()=>{f&&Er(f,i,e),b&&y.enter(d),k&&Wn(e,null,i,"mounted")}),s)},_=(e,t,n,r,o)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(o){if(t===o.subTree){const t=o.vnode;_(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},$=(e,t,n,r,o,l,i,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?Cr(e[c]):Sr(e[c]);m(null,a,t,n,r,o,l,i,s)}},S=(e,t,n,r,l,i,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||R,f=t.props||R;let m;n&&Yn(n,!1),(m=f.onVnodeBeforeUpdate)&&Er(m,n,t,e),d&&Wn(t,e,n,"beforeUpdate"),n&&Yn(n,!0);const g=l&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,g,i):s||P(e,t,a,null,n,r,g,i,!1),u>0){if(16&u)z(a,t,h,f,n,r,l);else if(2&u&&h.class!==f.class&&o(a,"class",null,f.class,l),4&u&&o(a,"style",h.style,f.style,l),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],c=h[s],u=f[s];u===c&&"value"!==s||o(a,s,c,u,l,e.children,n,r,Z)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||z(a,t,h,f,n,r,l);((m=f.onVnodeUpdated)||d)&&Qn((()=>{m&&Er(m,n,t,e),d&&Wn(t,e,n,"updated")}),r)},C=(e,t,n,r,o,l,i)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===rr||!gr(a,c)||70&a.shapeFlag)?u(a.el):n;m(a,c,p,null,r,o,l,i,!0)}},z=(e,t,n,r,l,i,s)=>{if(n!==r){for(const a in r){if(G(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&o(e,a,u,c,s,t.children,l,i,Z)}if(n!==R)for(const a in n)G(a)||a in r||o(e,a,n[a],null,s,t.children,l,i,Z);"value"in r&&o(e,"value",n.value,r.value)}},E=(e,t,r,o,l,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(p,r,o),n(d,r,o),$(t.children,r,d,l,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(C(e.dynamicChildren,f,r,l,s,a,c),(null!=t.key||l&&t===l.subTree)&&Gn(e,t,!0)):P(e,t,r,d,l,s,a,c,u)},L=(e,t,n,r,o,l,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,a):j(t,n,r,o,l,i,a):T(e,t,a)},j=(e,t,n,r,o,l,i)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||jr,l={uid:Tr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new he(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tn(r,o),emitsOptions:pn(r,o),emit:null,emitted:null,propsDefaults:R,inheritAttrs:r.inheritAttrs,ctx:R,data:R,props:R,attrs:R,slots:R,refs:R,setupState:R,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};l.ctx={_:l},l.root=t?t.root:l,l.emit=un.bind(null,l),e.ce&&e.ce(l);return l}(e,r,o);if(e.type.__isKeepAlive&&(s.ctx.renderer=X),function(e,t=!1){Nr=t;const{props:n,children:r}=e.vnode,o=Pr(e);An(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ce(t,"_",n)):Vn(t,e.slots={})}else e.slots={},t&&Dn(e,t);ce(e.slots,vr,1)})(e,r);const l=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=St(new Proxy(e.ctx,Lr));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)=>(Re(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Ur(e),ze();const o=Nt(r,e,0,[e.props,n]);if(Ee(),Mr(),J(o)){if(o.then(Mr,Mr),t)return o.then((n=>{Fr(e,n,t)})).catch((t=>{Bt(t,e,0)}));e.asyncDep=o}else Fr(e,o,t)}else Br(e,t)}(e,t):void 0;Nr=!1}(s),s.asyncDep){if(o&&o.registerDep(s,O),!e.el){const e=s.subTree=br(lr);v(null,e,t,n)}}else O(s,e,t,n,o,l,i)},T=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:l}=e,{props:i,children:s,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!s||s&&s.$stable)||r!==i&&(r?!i||wn(r,i,c):!!i);if(1024&a)return!0;if(16&a)return r?wn(r,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==r[n]&&!dn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=qt.indexOf(e);t>Wt&&qt.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},O=(e,t,n,r,o,l,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;Yn(e,!1),n?(n.el=c.el,M(e,n,i)):n=c,r&&ae(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Er(t,a,n,c),Yn(e,!0);const d=gn(e),h=e.subTree;e.subTree=d,m(h,d,u(h.el),K(h),e,o,l),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),s&&Qn(s,o),(t=n.props&&n.props.onVnodeUpdated)&&Qn((()=>Er(t,a,n,c)),o)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=zn(t);if(Yn(e,!1),c&&ae(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Er(i,p,t),Yn(e,!0),s&&ee){const n=()=>{e.subTree=gn(e),ee(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=gn(e);m(null,i,n,r,e,o,l),t.el=i.el}if(u&&Qn(u,o),!d&&(i=a&&a.onVnodeMounted)){const e=t;Qn((()=>Er(i,p,e)),o)}256&t.shapeFlag&&e.a&&Qn(e.a,o),e.isMounted=!0,t=n=r=null}},a=e.effect=new _e(s,(()=>nn(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Yn(e,!0),c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:l,vnode:{patchFlag:i}}=e,s=$t(o),[a]=e.propsOptions;let c=!1;if(!(r||i>0)||16&i){let r;Ln(e,t,o,l)&&(c=!0);for(const l in s)t&&(N(t,l)||(r=oe(l))!==l&&N(t,r))||(a?!n||void 0===n[l]&&void 0===n[r]||(o[l]=jn(a,s,l,void 0,e,!0)):delete o[l]);if(l!==s)for(const e in l)t&&N(t,e)||(delete l[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(dn(e.emitsOptions,i))continue;const u=t[i];if(a)if(N(l,i))u!==l[i]&&(l[i]=u,c=!0);else{const t=ne(i);o[t]=jn(a,s,t,u,e,!1)}else u!==l[i]&&(l[i]=u,c=!0)}}c&&Ae(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let l=!0,i=R;if(32&r.shapeFlag){const e=t._;e?n&&1===e?l=!1:(U(o,t),n||1!==e||delete o._):(l=!t.$stable,Vn(t,o)),i=t}else t&&(Dn(e,t),i={default:1});if(l)for(const e in o)Nn(e)||e in i||delete o[e]})(e,t.children,n),ze(),ln(void 0,e.update),Ee()},P=(e,t,n,r,o,l,i,s,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 B(u,d,n,r,o,l,i,s,a);if(256&h)return void F(u,d,n,r,o,l,i,s,a)}8&f?(16&p&&Z(u,o,l),d!==u&&c(n,d)):16&p?16&f?B(u,d,n,r,o,l,i,s,a):Z(u,o,l,!0):(8&p&&c(n,""),16&f&&$(d,n,r,o,l,i,s,a))},F=(e,t,n,r,o,l,i,s,a)=>{t=t||I;const c=(e=e||I).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Cr(t[d]):Sr(t[d]);m(e[d],r,n,null,o,l,i,s,a)}c>u?Z(e,o,l,!0,!1,p):$(t,n,r,o,l,i,s,a,p)},B=(e,t,n,r,o,l,i,s,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?Cr(t[c]):Sr(t[c]);if(!gr(r,u))break;m(r,u,n,null,o,l,i,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Cr(t[d]):Sr(t[d]);if(!gr(r,c))break;m(r,c,n,null,o,l,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)m(null,t[c]=a?Cr(t[c]):Sr(t[c]),n,p,o,l,i,s,a),c++}}else if(c>d)for(;c<=p;)D(e[c],o,l,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Cr(t[c]):Sr(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const w=d-f+1;let k=!1,b=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){D(r,o,l,!0);continue}let u;if(null!=r.key)u=g.get(r.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&gr(r,t[v])){u=v;break}void 0===u?D(r,o,l,!0):(x[u-f]=c+1,u>=b?b=u:k=!0,m(r,t[u],n,null,o,l,i,s,a),y++)}const _=k?function(e){const t=e.slice(),n=[0];let r,o,l,i,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(o=n[n.length-1],e[o]<a){t[r]=o,n.push(r);continue}for(l=0,i=n.length-1;l<i;)s=l+i>>1,e[n[s]]<a?l=s+1:i=s;a<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}l=n.length,i=n[l-1];for(;l-- >0;)n[l]=i,i=t[i];return n}(x):I;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?m(null,p,n,d,o,l,i,s,a):k&&(v<0||c!==_[v]?V(p,n,d,2):v--)}}},V=(e,t,r,o,l=null)=>{const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,X);if(s===rr){n(i,t,r);for(let e=0;e<c.length;e++)V(c[e],t,r,o);return void n(e.anchor,t,r)}if(s===ir)return void w(e,t,r);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(i),n(i,t,r),Qn((()=>a.enter(i)),l);else{const{leave:e,delayLeave:o,afterLeave:l}=a,s=()=>n(i,t,r),c=()=>{e(i,(()=>{s(),l&&l()}))};o?o(i,s,c):c()}else n(i,t,r)},D=(e,t,n,r=!1,o=!1)=>{const{type:l,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Kn(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!zn(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&Er(m,t,e),6&u)H(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Wn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,X,r):c&&(l!==rr||p>0&&64&p)?Z(c,t,n,!1,!0):(l===rr&&384&p||!o&&16&u)&&Z(a,t,n),r&&q(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&Qn((()=>{m&&Er(m,t,e),h&&Wn(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:l}=e;if(t===rr)return void W(n,o);if(t===ir)return void k(e);const i=()=>{r(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:r}=l,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:r,scope:o,update:l,subTree:i,um:s}=e;r&&ae(r),o.stop(),l&&(l.active=!1,D(i,e,t,n)),s&&Qn(s,t),Qn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=(e,t,n,r=!1,o=!1,l=0)=>{for(let i=l;i<e.length;i++)D(e[i],t,n,r,o)},K=e=>6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Q=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),sn(),t._vnode=e},X={p:m,um:D,m:V,r:q,mt:j,mc:$,pc:P,pbc:C,n:K,o:e};let Y,ee;t&&([Y,ee]=t(X));return{render:Q,hydrate:Y,createApp:Jn(Q,Y)}}(e)}function Yn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Gn(e,t,n=!1){const r=e.children,o=t.children;if(F(r)&&F(o))for(let e=0;e<r.length;e++){const t=r[e];let l=o[e];1&l.shapeFlag&&!l.dynamicChildren&&((l.patchFlag<=0||32===l.patchFlag)&&(l=o[e]=Cr(o[e]),l.el=t.el),n||Gn(t,l))}}function er(e,t){return function(e,t,n=!0,r=!1){const o=hn||Or;if(o){const n=o.type;if("components"===e){const e=function(e){return q(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===ne(t)||e===le(ne(t))))return n}const l=nr(o[e]||n[e],t)||nr(o.appContext[e],t);return!l&&r?n:l}}("components",e,!0,t)||e}const tr=Symbol();function nr(e,t){return e&&(e[t]||e[ne(t)]||e[le(ne(t))])}const rr=Symbol(void 0),or=Symbol(void 0),lr=Symbol(void 0),ir=Symbol(void 0),sr=[];let ar=null;function cr(e=!1){sr.push(ar=e?null:[])}let ur=1;function pr(e){ur+=e}function dr(e){return e.dynamicChildren=ur>0?ar||I:null,sr.pop(),ar=sr[sr.length-1]||null,ur>0&&ar&&ar.push(e),e}function hr(e,t,n,r,o,l){return dr(kr(e,t,n,r,o,l,!0))}function fr(e,t,n,r,o){return dr(br(e,t,n,r,o,!0))}function mr(e){return!!e&&!0===e.__v_isVNode}function gr(e,t){return e.type===t.type&&e.key===t.key}const vr="__vInternal",yr=({key:e})=>null!=e?e:null,wr=({ref:e,ref_key:t,ref_for:n})=>null!=e?W(e)||It(e)||q(e)?{i:hn,r:e,k:t,f:!!n}:e:null;function kr(e,t=null,n=null,r=0,o=null,l=(e===rr?0:1),i=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yr(t),ref:t&&wr(t),scopeId:fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(zr(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=W(n)?8:16),ur>0&&!i&&ar&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&ar.push(a),a}const br=function(e,t=null,n=null,r=0,o=null,l=!1){e&&e!==tr||(e=lr);if(mr(e)){const r=xr(e,t,!0);return n&&zr(r,n),r}i=e,q(i)&&"__vccOpts"in i&&(e=e.__vccOpts);var i;if(t){t=function(e){return e?_t(e)||vr in e?U({},e):e:null}(t);let{class:e,style:n}=t;e&&!W(e)&&(t.class=$(e)),Z(n)&&(_t(n)&&!F(n)&&(n=U({},n)),t.style=k(n))}const s=W(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Z(e)?4:q(e)?2:0;return kr(e,t,n,r,o,s,l,!0)};function xr(e,t,n=!1){const{props:r,ref:o,patchFlag:l,children:i}=e,s=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=$([t.class,r.class]));else if("style"===e)t.style=k([t.style,r.style]);else if(T(e)){const n=t[e],o=r[e];!o||n===o||F(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&yr(s),ref:t&&t.ref?n&&o?F(o)?o.concat(wr(t)):[o,wr(t)]:wr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rr?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xr(e.ssContent),ssFallback:e.ssFallback&&xr(e.ssFallback),el:e.el,anchor:e.anchor}}function _r(e=" ",t=0){return br(or,null,e,t)}function $r(e="",t=!1){return t?(cr(),fr(lr,null,e)):br(lr,null,e)}function Sr(e){return null==e||"boolean"==typeof e?br(lr):F(e)?br(rr,null,e.slice()):"object"==typeof e?Cr(e):br(or,null,String(e))}function Cr(e){return null===e.el||e.memo?e:xr(e)}function zr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(F(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),zr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||vr in t?3===r&&hn&&(1===hn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=hn}}else q(t)?(t={default:t,_ctx:hn},n=32):(t=String(t),64&r?(n=16,t=[_r(t)]):n=8);e.children=t,e.shapeFlag|=n}function Er(e,t,n,r=null){Ft(e,t,7,[n,r])}function Rr(e,t,n,r){let o;const l=n&&n[r];if(F(e)||W(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,l&&l[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,l&&l[n])}else if(Z(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,l&&l[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=t(e[i],i,r,l&&l[r])}}else o=[];return n&&(n[r]=o),o}const Ir=e=>e?Pr(e)?Vr(e)||e.proxy:Ir(e.parent):null,Ar=U(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=>Ir(e.parent),$root:e=>Ir(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>nn(e.update),$nextTick:e=>tn.bind(e.proxy),$watch:e=>A}),Lr={get({_:e},t){const{ctx:n,setupState:r,data:o,props:l,accessCache:i,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=i[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(r!==R&&N(r,t))return i[t]=1,r[t];if(o!==R&&N(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&N(c,t))return i[t]=3,l[t];if(n!==R&&N(n,t))return i[t]=4,n[t];i[t]=0}}const u=Ar[t];let p,d;return u?("$attrs"===t&&Re(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==R&&N(n,t)?(i[t]=4,n[t]):(d=a.config.globalProperties,N(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:l}=e;return o!==R&&N(o,t)?(o[t]=n,!0):r!==R&&N(r,t)?(r[t]=n,!0):!N(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(l[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:l}},i){let s;return!!n[i]||e!==R&&N(e,i)||t!==R&&N(t,i)||(s=l[0])&&N(s,i)||N(r,i)||N(Ar,i)||N(o.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},jr=Hn();let Tr=0;let Or=null;const Ur=e=>{Or=e,e.scope.on()},Mr=()=>{Or&&Or.scope.off(),Or=null};function Pr(e){return 4&e.vnode.shapeFlag}let Nr=!1;function Fr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Mt(t)),Br(e,n)}function Br(e,t,n){const r=e.type;e.render||(e.render=r.render||A)}function Vr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Mt(St(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ar?Ar[n](e):void 0}))}const Dr=(e,t)=>function(e,t,n=!1){let r,o;const l=q(e);return l?(r=e,o=A):(r=e.get,o=e.set),new Pt(r,o,l||!o,n)}(e,0,Nr);function qr(e,t,n){const r=arguments.length;return 2===r?Z(t)&&!F(t)?mr(t)?br(e,null,[t]):br(e,t):br(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&mr(n)&&(n=[n]),br(e,t,n))}const Wr="3.2.33",Hr="undefined"!=typeof document?document:null,Zr=Hr&&Hr.createElement("template"),Jr={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 o=t?Hr.createElementNS("http://www.w3.org/2000/svg",e):Hr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Hr.createTextNode(e),createComment:e=>Hr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Hr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,l){const i=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==l&&(o=o.nextSibling););else{Zr.innerHTML=r?`<svg>${e}</svg>`:e;const o=Zr.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Kr=/\s*!important$/;function Qr(e,t,n){if(F(n))n.forEach((n=>Qr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Yr[t];if(n)return n;let r=ne(t);if("filter"!==r&&r in e)return Yr[t]=r;r=le(r);for(let n=0;n<Xr.length;n++){const o=Xr[n]+r;if(o in e)return Yr[t]=o}return t}(e,t);Kr.test(n)?e.setProperty(oe(r),n.replace(Kr,""),"important"):e[r]=n}}const Xr=["Webkit","Moz","ms"],Yr={};const Gr="http://www.w3.org/1999/xlink";const[eo,to]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let no=0;const ro=Promise.resolve(),oo=()=>{no=0};function lo(e,t,n,r){e.addEventListener(t,n,r)}function io(e,t,n,r,o=null){const l=e._vei||(e._vei={}),i=l[t];if(r&&i)i.value=r;else{const[n,s]=function(e){let t;if(so.test(e)){let n;for(t={};n=e.match(so);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[oe(e.slice(2)),t]}(t);if(r){const i=l[t]=function(e,t){const n=e=>{const r=e.timeStamp||eo();(to||r>=n.attached-1)&&Ft(function(e,t){if(F(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=(()=>no||(ro.then(oo),no=eo()))(),n}(r,o);lo(e,n,i,s)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,s),l[t]=void 0)}}const so=/(?:Once|Passive|Capture)$/;const ao=/^on[a-z]/;const co=e=>{const t=e.props["onUpdate:modelValue"];return F(t)?e=>ae(t,e):t};function uo(e){e.target.composing=!0}function po(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const ho={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=co(o);const l=r||o.props&&"number"===o.props.type;lo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():l&&(r=ue(r)),e._assign(r)})),n&&lo(e,"change",(()=>{e.value=e.value.trim()})),t||(lo(e,"compositionstart",uo),lo(e,"compositionend",po),lo(e,"change",po))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},l){if(e._assign=co(l),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ue(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},fo={deep:!0,created(e,t,n){e._assign=co(n),lo(e,"change",(()=>{const t=e._modelValue,n=wo(e),r=e.checked,o=e._assign;if(F(t)){const e=C(t,n),l=-1!==e;if(r&&!l)o(t.concat(n));else if(!r&&l){const n=[...t];n.splice(e,1),o(n)}}else if(V(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ko(e,r))}))},mounted:mo,beforeUpdate(e,t,n){e._assign=co(n),mo(e,t,n)}};function mo(e,{value:t,oldValue:n},r){e._modelValue=t,F(t)?e.checked=C(t,r.props.value)>-1:V(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=S(t,ko(e,!0)))}const go={created(e,{value:t},n){e.checked=S(t,n.props.value),e._assign=co(n),lo(e,"change",(()=>{e._assign(wo(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=co(r),t!==n&&(e.checked=S(t,r.props.value))}},vo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=V(t);lo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ue(wo(e)):wo(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=co(r)},mounted(e,{value:t}){yo(e,t)},beforeUpdate(e,t,n){e._assign=co(n)},updated(e,{value:t}){yo(e,t)}};function yo(e,t){const n=e.multiple;if(!n||F(t)||V(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],l=wo(o);if(n)F(t)?o.selected=C(t,l)>-1:o.selected=t.has(l);else if(S(wo(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function wo(e){return"_value"in e?e._value:e.value}function ko(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const bo={created(e,t,n){xo(e,t,n,null,"created")},mounted(e,t,n){xo(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){xo(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){xo(e,t,n,r,"updated")}};function xo(e,t,n,r,o){let l;switch(e.tagName){case"SELECT":l=vo;break;case"TEXTAREA":l=ho;break;default:switch(n.props&&n.props.type){case"checkbox":l=fo;break;case"radio":l=go;break;default:l=ho}}const i=l[o];i&&i(e,t,n,r)}const _o={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):$o(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),$o(e,!0),r.enter(e)):r.leave(e,(()=>{$o(e,!1)})):$o(e,t))},beforeUnmount(e,{value:t}){$o(e,t)}};function $o(e,t){e.style.display=t?e._vod:"none"}const So=U({patchProp:(e,t,n,r,o=!1,l,i,s,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,o):"style"===t?function(e,t,n){const r=e.style,o=W(n);if(n&&!o){for(const e in n)Qr(r,e,n[e]);if(t&&!W(t))for(const e in t)null==n[e]&&Qr(r,e,"")}else{const l=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=l)}}(e,n,r):T(t)?O(t)||io(e,t,0,r,i):("."===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&&ao.test(t)&&q(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(ao.test(t)&&W(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,l,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,o,l),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 s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=w(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,l,i,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Gr,t.slice(6,t.length)):e.setAttributeNS(Gr,t,n);else{const r=y(t);null==n||r&&!w(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Jr);let Co;const zo=(...e)=>{const t=(Co||(Co=Xn(So))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(W(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;q(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Eo(e){return!!de&&(function(e){de&&de.cleanups.push(e)}(e),!0)}const Ro="undefined"!=typeof window,Io=()=>{};const Ao=e=>e();var Lo=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable;function Oo(e,t,n={}){const r=n,{eventFilter:o=Ao}=r,l=((e,t)=>{var n={};for(var r in e)jo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Lo)for(var r of Lo(e))t.indexOf(r)<0&&To.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return _n(e,(i=o,s=t,function(...e){i((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})}),l);var i,s}var Uo=Object.defineProperty,Mo=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,No=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,Bo=Object.prototype.propertyIsEnumerable,Vo=(e,t,n)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Do(e,t,n={}){const r=n,{eventFilter:o}=r,l=((e,t)=>{var n={};for(var r in e)Fo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&No)for(var r of No(e))t.indexOf(r)<0&&Bo.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=function(e=Ao){const t=At(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=Oo(e,t,(p=((e,t)=>{for(var n in t||(t={}))Fo.call(t,n)&&Vo(e,n,t[n]);if(No)for(var n of No(t))Bo.call(t,n)&&Vo(e,n,t[n]);return e})({},l),Mo(p,Po({eventFilter:i}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const qo=Ro?window:void 0,Wo=Ro?window.document:void 0;function Ho(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=qo):[t,n,r,o]=e,!t)return Io;let l=Io;const i=_n((()=>function(e){var t;const n=Ot(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{l(),e&&(e.addEventListener(n,r,o),l=()=>{e.removeEventListener(n,r,o),l=Io})}),{immediate:!0,flush:"post"}),s=()=>{i(),l()};return Eo(s),s}Ro&&window.navigator,Ro&&window.location;const Zo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Jo="__vueuse_ssr_handlers__";Zo[Jo]=Zo[Jo]||{};const Ko=Zo[Jo];const Qo={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 Xo(e,t,n,r={}){var o;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=qo,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,h=(c?Lt:At)(t);if(!n)try{n=function(e,t){return Ko[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=qo)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Ot(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||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(f),g=null!=(o=r.serializer)?o:Qo[m],{pause:v,resume:y}=Do(h,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,g.write(t))}catch(e){d(e)}}(h.value)),{flush:l,deep:i,eventFilter:p});return u&&s&&Ho(u,"storage",w),w(),h;function w(t){t&&t.key!==e||(h.value=function(t){if(!t||t.key===e){v();try{const r=t?t.newValue:n.getItem(e);return null==r?(a&&null!==f&&n.setItem(e,g.write(f)),f):"string"!=typeof r?r:g.read(r)}catch(e){d(e)}finally{y()}}}(t))}}var Yo,Go,el=Object.defineProperty,tl=Object.getOwnPropertySymbols,nl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable,ol=(e,t,n)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ll(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=At(new Date),o=()=>r.value=new Date,l="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=qo}=t,o=At(!1);let l=null;function i(){o.value&&r&&(e(),l=r.requestAnimationFrame(i))}function s(){!o.value&&r&&(o.value=!0,i())}function a(){o.value=!1,null!=l&&r&&(r.cancelAnimationFrame(l),l=null)}return n&&s(),Eo(a),{isActive:o,pause:a,resume:s}}(o,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let l=null;const i=At(!1);function s(){l&&(clearInterval(l),l=null)}function a(){i.value=!1,s()}function c(){t<=0||(i.value=!0,o&&e(),s(),l=setInterval(e,Ot(t)))}r&&Ro&&c(),It(t)&&Eo(_n(t,(()=>{r&&Ro&&c()})));return Eo(a),{isActive:i,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))nl.call(t,n)&&ol(e,n,t[n]);if(tl)for(var n of tl(t))rl.call(t,n)&&ol(e,n,t[n]);return e})({now:r},l):r}Ro&&(null==window?void 0:window.navigator)&&(null==(Yo=null==window?void 0:window.navigator)?void 0:Yo.platform)&&/iP(ad|hone|od)/.test(null==(Go=null==window?void 0:window.navigator)?void 0:Go.platform);let il=0;const sl=e=>{try{e=decodeURI(e)}catch(e){}return e},al=(e="")=>e.replace(/\/$/u,""),cl=e=>/^(https?:)?\/\//.test(e),ul=e=>{const t=al(e);return cl(t)?t:`https://${t}`},pl=e=>Array.isArray(e)?e:!!e&&[0,e],dl=(e,t)=>"function"==typeof e?e:!1!==e&&t,hl="{--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}",fl=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ml=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=t.getTime()-r.getTime(),l=Math.floor(o/864e5);if(0===l){const e=o%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 l<0?n.now:l<8?`${l} ${n.days}`:(e=>{const t=fl(e.getDate(),2),n=fl(e.getMonth()+1,2);return`${fl(e.getFullYear(),2)}-${n}-${t}`})(r)},gl=e=>{const t=Xo("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 o={folder:e,...r};return n&&(t.value[e]=o),o}))},vl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,yl=e=>{"AbortError"!==e.name&&console.error(e.message)},wl={"Content-Type":"application/json"},kl=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},bl=({serverURL:e,lang:t,token:n,objectId:r,...o})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)}).then((e=>e.json())),xl=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>kl(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),_l=({serverURL:e,lang:t,path:n})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:wl,body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>kl(e,"visit count"))),$l=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Sl=e=>e.type.includes("image"),Cl=e=>{const t=Array.from(e).find(Sl);return t?t.getAsFile():null};function zl(){return{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,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let El={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,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Rl=/[&<>"']/,Il=/[&<>"']/g,Al=/[<>"']|&(?!#?\w+;)/,Ll=/[<>"']|&(?!#?\w+;)/g,jl={"&":"&","<":"<",">":">",'"':""","'":"'"},Tl=e=>jl[e];function Ol(e,t){if(t){if(Rl.test(e))return e.replace(Il,Tl)}else if(Al.test(e))return e.replace(Ll,Tl);return e}const Ul=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Ml(e){return e.replace(Ul,((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 Pl=/(^|[^\[])\^/g;function Nl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Pl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Fl=/[^\w:]/g,Bl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Vl(e,t,n){if(e){let e;try{e=decodeURIComponent(Ml(n)).replace(Fl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Bl.test(n)&&(n=function(e,t){Dl[" "+e]||(ql.test(e)?Dl[" "+e]=e+"/":Dl[" "+e]=Ql(e,"/",!0));const n=-1===(e=Dl[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Wl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Hl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Dl={},ql=/^[^:]+:\/*[^/]*$/,Wl=/^([^:]+:)[\s\S]*$/,Hl=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Zl={exec:function(){}};function Jl(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 Kl(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)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 Ql(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const l=e.charAt(r-o-1);if(l!==t||n){if(l===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Xl(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 Yl(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Gl(e,t,n,r){const o=t.href,l=t.title?Ol(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:l,text:i,tokens:r.inlineTokens(i,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:l,text:Ol(i)}}class ei{constructor(e){this.options=e||El}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:Ql(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():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=Ql(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}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,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,l,i,s,a,c,u,p,d,h,f=t[1].trim();const m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?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],u=e.split("\n",1)[0],this.options.pedantic?(l=2,d=c.trimLeft()):(l=t[2].search(/[^ ]/),l=l>4?1:l,d=c.slice(l),l+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=l||!c.trim())d+="\n"+c.slice(l);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}g.loose||(a?g.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();const y=g.items.length;for(i=0;i<y;i++){this.lexer.state.top=!1,g.items[i].tokens=this.lexer.blockTokens(g.items[i].text,[]);const e=g.items[i].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[i].loose=!0)}return g}}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]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Ol(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Kl(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,o,l,i=e.align.length;for(n=0;n<i;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(i=e.rows.length,n=0;n<i;n++)e.rows[n]=Kl(e.rows[n],e.header.length).map((e=>({text:e})));for(i=e.header.length,r=0;r<i;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(i=e.rows.length,r=0;r<i;r++)for(l=e.rows[r],o=0;o<l.length;o++)l[o].tokens=[],this.lexer.inlineTokens(l[o].text,l[o].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ol(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]):Ol(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=Ql(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,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;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)),Gl(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||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Gl(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 o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,l,i=n,s=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(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(l=o.length,r[3]||r[4]){i+=l;continue}if((r[5]||r[6])&&n%3&&!((n+l)%3)){s+=l;continue}if(i-=l,i>0)continue;if(l=Math.min(l,l+i+s),Math.min(n,l)%2){const t=e.slice(1,n+r.index+l);return{type:"em",raw:e.slice(0,n+r.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+l-1);return{type:"strong",raw:e.slice(0,n+r.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}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=Ol(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=Ol(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Ol(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=Ol(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=Ol(n[0]),r="www."===n[1]?"http://"+e:e}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]):Ol(n[0]):n[0]:Ol(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ti={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Zl,lheading:/^([^\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?'|\([^()]*\))/};ti.def=Nl(ti.def).replace("label",ti._label).replace("title",ti._title).getRegex(),ti.bullet=/(?:[*+-]|\d{1,9}[.)])/,ti.listItemStart=Nl(/^( *)(bull) */).replace("bull",ti.bullet).getRegex(),ti.list=Nl(ti.list).replace(/bull/g,ti.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ti.def.source+")").getRegex(),ti._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",ti._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ti.html=Nl(ti.html,"i").replace("comment",ti._comment).replace("tag",ti._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ti.paragraph=Nl(ti._paragraph).replace("hr",ti.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",ti._tag).getRegex(),ti.blockquote=Nl(ti.blockquote).replace("paragraph",ti.paragraph).getRegex(),ti.normal=Jl({},ti),ti.gfm=Jl({},ti.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ti.gfm.table=Nl(ti.gfm.table).replace("hr",ti.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",ti._tag).getRegex(),ti.gfm.paragraph=Nl(ti._paragraph).replace("hr",ti.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ti.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",ti._tag).getRegex(),ti.pedantic=Jl({},ti.normal,{html:Nl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ti._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:Zl,paragraph:Nl(ti.normal._paragraph).replace("hr",ti.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ti.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const ni={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Zl,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:Zl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function ri(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 oi(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ni._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ni.punctuation=Nl(ni.punctuation).replace(/punctuation/g,ni._punctuation).getRegex(),ni.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ni.escapedEmSt=/\\\*|\\_/g,ni._comment=Nl(ti._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ni.emStrong.lDelim=Nl(ni.emStrong.lDelim).replace(/punct/g,ni._punctuation).getRegex(),ni.emStrong.rDelimAst=Nl(ni.emStrong.rDelimAst,"g").replace(/punct/g,ni._punctuation).getRegex(),ni.emStrong.rDelimUnd=Nl(ni.emStrong.rDelimUnd,"g").replace(/punct/g,ni._punctuation).getRegex(),ni._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ni._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ni._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])?)+(?![-_])/,ni.autolink=Nl(ni.autolink).replace("scheme",ni._scheme).replace("email",ni._email).getRegex(),ni._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ni.tag=Nl(ni.tag).replace("comment",ni._comment).replace("attribute",ni._attribute).getRegex(),ni._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ni._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ni._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ni.link=Nl(ni.link).replace("label",ni._label).replace("href",ni._href).replace("title",ni._title).getRegex(),ni.reflink=Nl(ni.reflink).replace("label",ni._label).replace("ref",ti._label).getRegex(),ni.nolink=Nl(ni.nolink).replace("ref",ti._label).getRegex(),ni.reflinkSearch=Nl(ni.reflinkSearch,"g").replace("reflink",ni.reflink).replace("nolink",ni.nolink).getRegex(),ni.normal=Jl({},ni),ni.pedantic=Jl({},ni.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:Nl(/^!?\[(label)\]\((.*?)\)/).replace("label",ni._label).getRegex(),reflink:Nl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ni._label).getRegex()}),ni.gfm=Jl({},ni.normal,{escape:Nl(ni.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ni.gfm.url=Nl(ni.gfm.url,"i").replace("email",ni.gfm._extended_email).getRegex(),ni.breaks=Jl({},ni.gfm,{br:Nl(ni.br).replace("{2,}","*").getRegex(),text:Nl(ni.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class li{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||El,this.options.tokenizer=this.options.tokenizer||new ei,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:ti.normal,inline:ni.normal};this.options.pedantic?(t.block=ti.pedantic,t.inline=ni.pedantic):this.options.gfm&&(t.block=ti.gfm,this.options.breaks?t.inline=ni.breaks:t.inline=ni.gfm),this.tokenizer.rules=t}static get rules(){return{block:ti,inline:ni}}static lex(e,t){return new li(t).lex(e)}static lexInline(e,t){return new li(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,o,l;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(o=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&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],l&&"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),l=o.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){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,l,i,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+Yl("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+Yl("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(s=""),i=!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,s))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,oi))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,oi))){if(o=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&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,ri))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),i=!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 ii{constructor(e){this.options=e||El}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+Ol(r,!0)+'">'+(n?e:Ol(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Ol(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=Vl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Ol(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Vl(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 si{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 ai{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 ci{constructor(e){this.options=e||El,this.options.renderer=this.options.renderer||new ii,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new si,this.slugger=new ai}static parse(e,t){return new ci(t).parse(e)}static parseInline(e,t){return new ci(t).parseInline(e)}parse(e,t=!0){let n,r,o,l,i,s,a,c,u,p,d,h,f,m,g,v,y,w,k,b="";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]&&(k=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==k||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))b+=k||"";else switch(p.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Ml(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",l=p.header.length,r=0;r<l;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",l=p.rows.length,r=0;r<l;r++){for(s=p.rows[r],a="",i=s.length,o=0;o<i;o++)a+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(a)}b+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),b+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,l=p.items.length,u="",r=0;r<l;r++)g=p.items[r],v=g.checked,y=g.task,m="",g.task&&(w=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=w+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=w+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:w}):m+=w),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,y,v);b+=this.renderer.list(u,d,h);continue;case"html":b+=this.renderer.html(p.text);continue;case"paragraph":b+=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);b+=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 b}parseInline(e,t){t=t||this.renderer;let n,r,o,l="";const i=e.length;for(n=0;n<i;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))l+=o||"";else switch(r.type){case"escape":case"text":l+=t.text(r.text);break;case"html":l+=t.html(r.text);break;case"link":l+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":l+=t.image(r.href,r.title,r.text);break;case"strong":l+=t.strong(this.parseInline(r.tokens,t));break;case"em":l+=t.em(this.parseInline(r.tokens,t));break;case"codespan":l+=t.codespan(r.text);break;case"br":l+=t.br();break;case"del":l+=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 l}}function ui(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),Xl(t=Jl({},ui.defaults,t||{})),n){const r=t.highlight;let o;try{o=li.lex(e,t)}catch(e){return n(e)}const l=function(e){let l;if(!e)try{t.walkTokens&&ui.walkTokens(o,t.walkTokens),l=ci.parse(o,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,l)};if(!r||r.length<3)return l();if(delete t.highlight,!o.length)return l();let i=0;return ui.walkTokens(o,(function(e){"code"===e.type&&(i++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&l()}))}),0))})),void(0===i&&l())}try{const n=li.lex(e,t);return t.walkTokens&&ui.walkTokens(n,t.walkTokens),ci.parse(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>"+Ol(e.message+"",!0)+"</pre>";throw e}}ui.options=ui.setOptions=function(e){var t;return Jl(ui.defaults,e),t=ui.defaults,El=t,ui},ui.getDefaults=zl,ui.defaults=El,ui.use=function(...e){const t=Jl({},...e),n=ui.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),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'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=ui.defaults.renderer||new ii;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let l=e.renderer[t].apply(n,o);return!1===l&&(l=r.apply(n,o)),l}}t.renderer=n}if(e.tokenizer){const n=ui.defaults.tokenizer||new ei;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let l=e.tokenizer[t].apply(n,o);return!1===l&&(l=r.apply(n,o)),l}}t.tokenizer=n}if(e.walkTokens){const n=ui.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),ui.setOptions(t)}))},ui.walkTokens=function(e,t){for(const n of e)switch(t.call(ui,n),n.type){case"table":for(const e of n.header)ui.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)ui.walkTokens(n.tokens,t);break;case"list":ui.walkTokens(n.items,t);break;default:ui.defaults.extensions&&ui.defaults.extensions.childTokens&&ui.defaults.extensions.childTokens[n.type]?ui.defaults.extensions.childTokens[n.type].forEach((function(e){ui.walkTokens(n[e],t)})):n.tokens&&ui.walkTokens(n.tokens,t)}},ui.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");Xl(t=Jl({},ui.defaults,t||{}));try{const n=li.lexInline(e,t);return t.walkTokens&&ui.walkTokens(n,t.walkTokens),ci.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>"+Ol(e.message+"",!0)+"</pre>";throw e}},ui.Parser=ci,ui.parser=ci.parse,ui.Renderer=ii,ui.TextRenderer=si,ui.Lexer=li,ui.lexer=li.lex,ui.Tokenizer=ei,ui.Slugger=ai,ui.parse=ui;const pi=/\$.*?\$/,di=/^\$(.*?)\$/,hi=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,fi=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),mi=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(ui.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=hi.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(pi);return-1!==t?t:e.length},tokenizer(t){const n=di.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);ui.use({extensions:e})}return ui.parse(fi(e,t))},gi=e=>e.dataset.path||e.getAttribute("id");let vi=null;const yi=()=>vi||(vi=Xo("USER_KEY",{}));let wi=null;const ki=()=>wi||(wi=Xo("WALIKE_LIKE",[])),bi=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const o=new AbortController,l=document.querySelectorAll(n),i=yi();return l.length&&(({serverURL:e,lang:t,paths:n,signal:r,token:o})=>{const l={};return o&&(l.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:l}).then((e=>e.json())).then((e=>kl(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(l).map((e=>sl(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:o.signal,token:i.value?.token}).then((e=>{l.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(yl),o.abort.bind(o)};var xi,_i,$i="function"==typeof Map?new Map:(xi=[],_i=[],{has:function(e){return xi.indexOf(e)>-1},get:function(e){return _i[xi.indexOf(e)]},set:function(e,t){-1===xi.indexOf(e)&&(xi.push(e),_i.push(t))},delete:function(e){var t=xi.indexOf(e);t>-1&&(xi.splice(t,1),_i.splice(t,1))}}),Si=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(xi){Si=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Ci(e){var t=$i.get(e);t&&t.destroy()}function zi(e){var t=$i.get(e);t&&t.update()}var Ei=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Ei=function(e){return e}).destroy=function(e){return e},Ei.update=function(e){return e}):((Ei=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&&!$i.has(e)){var t,n=null,r=null,o=null,l=function(){e.clientWidth!==r&&c()},i=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),$i.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",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",$i.set(e,{destroy:i,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 s(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&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}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&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var l=Si("autosize:resized");try{e.dispatchEvent(l)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ci),e},Ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],zi),e});var Ri=Ei;const Ii=({size:e})=>qr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},qr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},qr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var Ai=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Li=Cn({name:"CommentBox",components:{CloseIcon:({size:e})=>qr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[qr("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"}),qr("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"})]),EmojiIcon:()=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},qr("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"})),ImageIcon:()=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[qr("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"}),qr("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"})]),MarkdownIcon:()=>qr("svg",{width:"16",height:"16",ariaHidden:"true"},qr("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"})),PreviewIcon:()=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[qr("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"}),qr("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"})]),LoadingIcon:Ii},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=kn("config"),r=Xo("WALINE_COMMENT_BOX_EDITOR",""),o=Xo("WALINE_USER_META",{nick:"",mail:"",link:""}),l=yi(),i=At({}),s=At(null),a=At(null),c=At(null),u=At(null),p=At({tabs:[],map:{}}),d=At(0),h=At(!1),f=At(!1),m=At(""),g=At(0),v=At(0),y=At(!1),w=At(""),k=At(!1),b=Dr((()=>n.value.locale)),x=Dr((()=>Boolean(l.value?.token))),_=Dr((()=>!1!==n.value.imageUploader)),$=e=>{const t=s.value,n=t.selectionStart,o=t.selectionEnd||0,l=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},S=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return $(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)}))},C=()=>{const{serverURL:a,lang:c,login:u,wordLimit:d,requiredMeta:h}=n.value,f={comment:w.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,ua:navigator.userAgent,url:n.value.path};if(l.value?.token)f.nick=l.value.display_name,f.mail=l.value.email,f.link=l.value.url;else{if("force"===u)return;if(h.indexOf("nick")>-1&&!f.nick)return i.value.nick?.focus(),alert(b.value.nickError);if(h.indexOf("mail")>-1&&!f.mail||f.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(f.mail))return i.value.mail?.focus(),alert(b.value.mailError);if(!f.comment)return void s.value?.focus();f.nick||(f.nick=b.value.anonymous)}if(!y.value)return alert(b.value.wordHint.replace("$0",d[0].toString()).replace("$1",d[1].toString()).replace("$2",g.value.toString()));f.comment=fi(f.comment,p.value.map),e.replyId&&e.rootId&&(f.pid=e.replyId,f.rid=e.rootId,f.at=e.replyUser),k.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const o={"Content-Type":"application/json"};return n&&(o.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:o,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:l.value?.token,comment:f}).then((n=>{if(k.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",m.value="",e.replyId&&t("cancel-reply")})).catch((e=>{k.value=!1,alert(e.message)}))},z=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(h.value=!1)};return _n([n,g],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(v.value=n[0],y.value=!1):t>n[1]?(v.value=n[1],y.value=!1):(v.value=n[1],y.value=!0):(v.value=0,y.value=!0)}),{immediate:!0}),Rn((()=>{document.body.addEventListener("click",z),_n((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;w.value=e,m.value=mi(e,{emojiMap:p.value.map,highlighter:t,texRenderer:r}),g.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?Ri(s.value):Ri.destroy(s.value)}),{immediate:!0}),_n((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?gl(al(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:l,type:i,items:s}=e;t.tabs.push({name:n,icon:vl(o,r,l,i),items:s.map((e=>{const n=`${l||""}${e}`;return t.map[n]=vl(e,r,l,i),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),In((()=>{document.body.removeEventListener("click",z)})),{config:n,locale:b,insert:$,onChange:()=>{const e=a.value;e.files&&_.value&&S(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Cl(e.dataTransfer.items);t&&_.value&&(S(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&C()},onPaste:e=>{if(e.clipboardData){const t=Cl(e.clipboardData.items);t&&_.value&&S(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,s=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);s?.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(s?.close(),l.value=e.data,(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{l.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:l.value.token},"*");const s=({data:e})=>{e&&"profile"===e.type&&(l.value={...l.value,...e},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))),window.removeEventListener("message",s))};window.addEventListener("message",s)},submitComment:C,isLogin:x,userInfo:l,isSubmitting:k,wordNumber:g,wordLimit:v,isWordNumberLegal:y,editor:r,userMeta:o,emoji:p,emojiTabIndex:d,showEmoji:h,canUploadImage:_,previewText:m,showPreview:f,inputRefs:i,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,imageUploadRef:a}}}),ji={class:"wl-comment"},Ti={key:0,class:"wl-login-info"},Oi={class:"wl-avatar"},Ui=["title"],Mi=["src"],Pi=["textContent"],Ni={class:"wl-panel"},Fi=["for","textContent"],Bi=["id","name","type","onUpdate:modelValue"],Vi=["placeholder"],Di={class:"wl-preview"},qi=kr("hr",null,null,-1),Wi=["innerHTML"],Hi={class:"wl-footer"},Zi={class:"wl-actions"},Ji={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ki=["title"],Qi=["title"],Xi=["title"],Yi={class:"wl-info"},Gi={class:"wl-text-number"},es={key:0},ts=_r(" / "),ns=["textContent"],rs=["textContent"],os=["disabled"],ls={key:0,class:"wl-tab-wrapper"},is=["title","onClick"],ss=["src","alt"],as={key:0,class:"wl-tabs"},cs=["onClick"],us=["src","alt","title"],ps=["title"];var ds=Ai(Li,[["render",function(e,t,n,r,o,l){const i=er("CloseIcon"),s=er("MarkdownIcon"),a=er("EmojiIcon"),c=er("ImageIcon"),u=er("PreviewIcon"),p=er("LoadingIcon");return cr(),hr("div",ji,["disable"!==e.config.login&&e.isLogin?(cr(),hr("div",Ti,[kr("div",Oi,[kr("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[br(i,{size:14})],8,Ui),kr("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Mi)]),kr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:z(e.userInfo.display_name)},null,8,Pi)])):$r("v-if",!0),kr("div",Ni,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(cr(),hr("div",{key:0,class:$(["wl-header",`item${e.config.meta.length}`])},[(cr(!0),hr(rr,null,Rr(e.config.meta,(t=>(cr(),hr("div",{class:"wl-header-item",key:t},[kr("label",{for:t,textContent:z(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,Fi),qn(kr("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:$(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Bi),[[bo,e.userMeta[t]]])])))),128))],2)):$r("v-if",!0),qn(kr("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[4]||(t[4]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[5]||(t[5]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,Vi),[[ho,e.editor]]),qn(kr("div",Di,[qi,kr("h4",null,z(e.locale.preview)+":",1),kr("div",{class:"wl-content",innerHTML:e.previewText},null,8,Wi)],512),[[_o,e.showPreview]]),kr("div",Hi,[kr("div",Zi,[kr("a",Ji,[br(s)]),qn(kr("button",{ref:"emojiButtonRef",class:$(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[br(a)],10,Ki),[[_o,e.emoji.tabs.length]]),kr("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(cr(),hr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[br(c)],8,Qi)):$r("v-if",!0),kr("button",{class:$(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[br(u)],10,Xi)]),kr("div",Yi,[kr("div",Gi,[_r(z(e.wordNumber)+" ",1),e.config.wordLimit?(cr(),hr("span",es,[ts,kr("span",{class:$({illegal:!e.isWordNumberLegal}),textContent:z(e.wordLimit)},null,10,ns)])):$r("v-if",!0),_r(" "+z(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?$r("v-if",!0):(cr(),hr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:z(e.locale.login)},null,8,rs)),"force"!==e.config.login||e.isLogin?(cr(),hr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(cr(),fr(p,{key:0,size:16})):(cr(),hr(rr,{key:1},[_r(z(e.locale.submit),1)],2112))],8,os)):$r("v-if",!0)]),kr("div",{ref:"emojiPopupRef",class:$(["wl-emoji-popup",{display:e.showEmoji}])},[(cr(!0),hr(rr,null,Rr(e.emoji.tabs,((t,n)=>(cr(),hr(rr,{key:t.name},[n===e.emojiTabIndex?(cr(),hr("div",ls,[(cr(!0),hr(rr,null,Rr(t.items,(t=>(cr(),hr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(cr(),hr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ss)):$r("v-if",!0)],8,is)))),128))])):$r("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(cr(),hr("div",as,[(cr(!0),hr(rr,null,Rr(e.emoji.tabs,((t,n)=>(cr(),hr("button",{key:t.name,class:$(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[kr("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,us)],10,cs)))),128))])):$r("v-if",!0)],2)])]),e.replyId?(cr(),hr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[br(i,{size:24})],8,ps)):$r("v-if",!0)])}],["__file","CommentBox.vue"]]);const hs=["approved","waiting","spam"],fs=Cn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ds,DeleteIcon:()=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},qr("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"})),LikeIcon:({active:e=!1})=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[qr("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"})]),ReplyIcon:()=>qr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},qr("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"})),VerifiedIcon:()=>qr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},qr("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"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=kn("config"),n=ki(),r=yi(),o=Dr((()=>t.value.locale)),l=Dr((()=>{let{link:t}=e.comment;return t?cl(t)?t:`https://${t}`:""})),i=Dr((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=ll();return Dr((()=>ml(e,n.value,t)))})(e.comment.insertedAt,o.value),a=Dr((()=>"administrator"===r.value.type)),c=Dr((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=Dr((()=>e.comment.objectId===e.reply?.objectId));return{config:t,locale:o,isReplyingCurrent:u,link:l,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:hs}}}),ms=["id"],gs={class:"wl-user","aria-hidden":"true"},vs=["src"],ys={class:"wl-card"},ws={class:"wl-head"},ks=["href"],bs={key:1,class:"wl-nick"},xs=["textContent"],_s=["textContent"],$s=["textContent"],Ss=["textContent"],Cs=["textContent"],zs={class:"wl-comment-actions"},Es=["title"],Rs=["textContent"],Is=["title"],As={class:"wl-meta","aria-hidden":"true"},Ls=["textContent"],js=["textContent"],Ts=["textContent"],Os=["innerHTML"],Us={key:0,class:"wl-admin-actions"},Ms={class:"wl-comment-status"},Ps=["disabled","onClick","textContent"],Ns={key:1,class:"wl-reply-wrapper"},Fs={key:2,class:"wl-quote"};const Bs=Cn({name:"WalineRoot",components:{CommentBox:ds,CommentCard:Ai(fs,[["render",function(e,t,n,r,o,l){const i=er("VerifiedIcon"),s=er("DeleteIcon"),a=er("LikeIcon"),c=er("ReplyIcon"),u=er("CommentBox"),p=er("CommentCard",!0);return cr(),hr("div",{class:"wl-item",id:e.comment.objectId},[kr("div",gs,[e.comment.avatar?(cr(),hr("img",{key:0,src:e.comment.avatar},null,8,vs)):$r("v-if",!0),e.comment.type?(cr(),fr(i,{key:1})):$r("v-if",!0)]),kr("div",ys,[kr("div",ws,[e.link?(cr(),hr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},z(e.comment.nick),9,ks)):(cr(),hr("span",bs,z(e.comment.nick),1)),"administrator"===e.comment.type?(cr(),hr("span",{key:2,class:"wl-badge",textContent:z(e.locale.admin)},null,8,xs)):$r("v-if",!0),e.comment.label?(cr(),hr("span",{key:3,class:"wl-badge",textContent:z(e.comment.label)},null,8,_s)):$r("v-if",!0),e.comment.sticky?(cr(),hr("span",{key:4,class:"wl-badge",textContent:z(e.locale.sticky)},null,8,$s)):$r("v-if",!0),e.comment.level&&e.comment.level>=0?(cr(),hr("span",{key:5,class:$(`wl-badge level${e.comment.level}`),textContent:z(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ss)):$r("v-if",!0),kr("span",{class:"wl-time",textContent:z(e.time)},null,8,Cs),kr("div",zs,[e.isAdmin||e.isOwner?(cr(),hr("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[br(s)])):$r("v-if",!0),kr("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[br(a,{active:e.like},null,8,["active"]),"like"in e.comment?(cr(),hr("span",{key:0,textContent:z(e.comment.like)},null,8,Rs)):$r("v-if",!0)],8,Es),kr("button",{class:$(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[br(c)],10,Is)])]),kr("div",As,[e.comment.addr?(cr(),hr("span",{key:0,textContent:z(e.comment.addr)},null,8,Ls)):$r("v-if",!0),e.comment.browser?(cr(),hr("span",{key:1,textContent:z(e.comment.browser)},null,8,js)):$r("v-if",!0),e.comment.os?(cr(),hr("span",{key:2,textContent:z(e.comment.os)},null,8,Ts)):$r("v-if",!0)]),kr("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Os),e.isAdmin?(cr(),hr("div",Us,[kr("span",Ms,[(cr(!0),hr(rr,null,Rr(e.commentStatus,(t=>(cr(),hr("button",{key:t,class:$(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:z(t)},null,10,Ps)))),128))]),e.isAdmin&&!e.comment.rid?(cr(),hr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},z(e.comment.sticky?"unsticky":"sticky"),1)):$r("v-if",!0)])):$r("v-if",!0),e.isReplyingCurrent?(cr(),hr("div",Ns,[br(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):$r("v-if",!0),e.comment.children?(cr(),hr("div",Fs,[(cr(!0),hr(rr,null,Rr(e.comment.children,(n=>(cr(),fr(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):$r("v-if",!0)])],8,ms)}],["__file","CommentCard.vue"]]),LoadingIcon:Ii},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const o=Dr((()=>(({serverURL:e,path:o=location.pathname,lang:l="zh-CN",locale:i,emoji:a=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:c=["nick","mail","link"],requiredMeta:u=[],dark:p=!1,pageSize:d=10,wordLimit:h,imageUploader:f,highlighter:m,texRenderer:v,copyright:y=!0,login:w="enable",...k})=>({serverURL:ul(e),path:sl(o),locale:{...g[l]||g["zh-CN"],..."object"==typeof i?i:{}},wordLimit:pl(h),meta:t(c),requiredMeta:t(u),imageUploader:dl(f,n),highlighter:dl(m,s),texRenderer:dl(v,r),lang:l,dark:p,emoji:a,pageSize:d,login:w,copyright:y,...k}))(e))),l=yi(),i=ki(),a=At("loading"),c=At(0),u=At(1),p=At(0),d=At([]),h=At(null),f=Dr((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${hl}}`:`${e}${hl}`:!0===e?`:root${hl}`:"";var e}));let m;!function(e,t={}){const n=At(!1),{document:r=Wo,immediate:o=!0,manual:l=!1,id:i="vueuse_styletag_"+ ++il}=t,s=At(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(i)||r.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=_n(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(i)),n.value=!1)};o&&!l&&c(),l||Eo(u),yt(n)}(f);const v=e=>{const{serverURL:t,path:n,pageSize:r}=o.value,i=new AbortController;a.value="loading",m?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:o,signal:l,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${o}&page=${r}&lang=${t}`,{signal:l,headers:s}).then((e=>e.json())).then((e=>kl(e,"comment list")))})({serverURL:t,lang:o.value.lang,path:n,pageSize:r,page:e,signal:i.signal,token:l.value?.token}).then((t=>{a.value="success",c.value=t.count,d.value.push(...t.data),u.value=e,p.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),a.value="error")})),m=i.abort.bind(i)},y=()=>{c.value=0,d.value=[],v(1)};return function(e,t){if(Or){let n=Or.provides;const r=Or.parent&&Or.parent.provides;r===n&&(n=Or.provides=Object.create(r)),n[e]=t}}("config",o),_n((()=>e.path),y),Rn((()=>y())),{config:o,darkmodeStyle:f,i18n:Dr((()=>o.value.locale)),status:a,count:c,page:u,totalPages:p,data:d,reply:h,loadMore:()=>v(u.value+1),refresh:y,onReply:e=>{h.value=e},onSubmit:e=>{if(e.rid){const t=d.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else d.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=o.value;await bl({serverURL:n,lang:r,token:l.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=o.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())))({serverURL:t,lang:n,token:l.value?.token,objectId:e}),d.value.some(((t,n)=>t.objectId===e?(d.value=d.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,o)=>r.objectId===e&&(d.value[n].children=t.children.filter(((e,t)=>t!==o)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=o.value;await bl({serverURL:t,lang:n,token:l.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=o.value,{objectId:r}=e,l=i.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:wl,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!l}),l?i.value=i.value.filter((e=>e!==r)):(i.value=[...i.value,r],i.value.length>50&&(i.value=i.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.4.2"}}}),Vs={"data-waline":""},Ds={class:"wl-count"},qs=["textContent"],Ws={class:"wl-cards"},Hs={key:1,class:"wl-operation"},Zs=["textContent"],Js={key:0,class:"wl-loading"},Ks=["textContent"],Qs={class:"wl-operation"},Xs=["textContent"],Ys={key:3,class:"wl-power"},Gs=_r(" Powered by "),ea=kr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var ta=Ai(Bs,[["render",function(e,t,n,r,o,l){const i=er("CommentBox"),s=er("CommentCard"),a=er("LoadingIcon");return cr(),hr("div",Vs,[e.reply?$r("v-if",!0):(cr(),fr(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),kr("div",Ds,[e.count?(cr(),hr("span",{key:0,class:"wl-num",textContent:z(e.count)},null,8,qs)):$r("v-if",!0),_r(" "+z(e.i18n.comment),1)]),kr("div",Ws,[(cr(!0),hr(rr,null,Rr(e.data,(t=>(cr(),fr(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(cr(),hr("div",Hs,[kr("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:z(e.i18n.refresh)},null,8,Zs)])):(cr(),hr(rr,{key:2},["loading"===e.status?(cr(),hr("div",Js,[br(a,{size:30})])):e.data.length?e.page<e.totalPages?(cr(),hr(rr,{key:2},[$r(" Load more button "),kr("div",Qs,[kr("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:z(e.i18n.more)},null,8,Xs)])],2112)):$r("v-if",!0):(cr(),hr("div",{key:1,class:"wl-empty",textContent:z(e.i18n.sofa)},null,8,Ks))],2112)),$r(" Copyright Information "),e.config.copyright?(cr(),hr("div",Ys,[Gs,ea,_r(" v"+z(e.version),1)])):$r("v-if",!0)])}],["__file","Waline.vue"]]);const na=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ra=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:o="zh-CN"})=>{const l=new AbortController,i=Array.from(document.querySelectorAll(n)),s=e=>{const n=gi(e);return null!==n&&t!==n},a=n=>xl({serverURL:e,paths:n.map((e=>gi(e)||t)),lang:o,signal:l.signal}).then((e=>na(e,n))).catch(yl);if(r){const n=i.filter((e=>!s(e))),r=i.filter(s);_l({serverURL:e,path:t,lang:o}).then((e=>na(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(i);return l.abort.bind(l)},oa=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const l=e?$l(e):null;if(e&&!l)throw new Error("Option 'el' do not match any domElement!");if(!o.serverURL)throw new Error("Option 'serverURL' is missing!");const i=vt({...o}),s=vt({comment:n,pageview:r,path:t}),a=()=>{s.comment&&bi({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})},c=()=>{s.pageview&&ra({serverURL:i.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})},u=l?zo((()=>qr(ta,{path:s.path,...i}))):null;u&&u.mount(l),a(),c();const p=bn(a),d=bn(c);return{el:l,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{i[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{u?.unmount(),p(),d()}}},la="2.4.2",ia=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const o=yi(),l=$l(e),i=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:o})=>{const l={};return o&&(l.Authorization=`Bearer ${o}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:l}).then((e=>e.json())).then((e=>kl(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:i.signal,token:o.value?.token}).then((e=>l&&e.length?(l.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{i.abort(),l.innerHTML=""}}):{comments:e,destroy:()=>i.abort()}))};export{ia as RecentComments,bi as commentCount,g as defaultLocales,oa as init,ra as pageviewCount,la as version};
|
|
2
2
|
//# sourceMappingURL=waline.esm.js.map
|