@waline/client 2.0.7 → 2.1.0

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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=["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"],i=e=>Object.fromEntries(e.map(((e,t)=>[o[t],e])));var s=i(["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"]),l=i(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),a=i(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),c=i(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),u=i(["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"]),p=i(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const d={zh:a,"zh-cn":a,"zh-CN":a,"zh-tw":c,"zh-TW":c,en:s,"en-US":s,"en-us":s,jp:l,"jp-jp":l,"jp-JP":l,"pt-br":u,"pt-BR":u,ru:p,"ru-ru":p,"ru-RU":p};function f(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 h=f("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function g(e){return!!e||""===e}function m(e){if(P(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=F(r)?b(r):m(r);if(o)for(const e in o)t[e]=o[e]}return t}return F(e)||B(e)?e:void 0}const v=/;(?![^(]*\))/g,y=/:(.+)/;function b(e){const t={};return e.split(v).forEach((e=>{if(e){const n=e.split(y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function w(e){let t="";if(F(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){const r=w(e[n]);r&&(t+=r+" ")}else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function k(e,t){if(e===t)return!0;let n=N(e),r=N(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=P(e),r=P(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=k(e[r],t[r]);return n}(e,t);if(n=B(e),r=B(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||!k(e[n],t[n]))return!1}}return String(e)===String(t)}function _(e,t){return e.findIndex((e=>k(e,t)))}const x=e=>F(e)?e:null==e?"":P(e)||B(e)&&(e.toString===W||!V(e.toString))?JSON.stringify(e,S,2):String(e),S=(e,t)=>t&&t.__v_isRef?S(e,t.value):U(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:M(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||P(t)||Z(t)?t:String(t),$={},E=[],C=()=>{},O=()=>!1,R=/^on[^a-z]/,z=e=>R.test(e),I=e=>e.startsWith("onUpdate:"),A=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},L=Object.prototype.hasOwnProperty,j=(e,t)=>L.call(e,t),P=Array.isArray,U=e=>"[object Map]"===H(e),M=e=>"[object Set]"===H(e),N=e=>e instanceof Date,V=e=>"function"==typeof e,F=e=>"string"==typeof e,D=e=>"symbol"==typeof e,B=e=>null!==e&&"object"==typeof e,q=e=>B(e)&&V(e.then)&&V(e.catch),W=Object.prototype.toString,H=e=>W.call(e),Z=e=>"[object Object]"===H(e),K=e=>F(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,J=f(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Q=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y=/-(\w)/g,X=Q((e=>e.replace(Y,((e,t)=>t?t.toUpperCase():"")))),G=/\B([A-Z])/g,ee=Q((e=>e.replace(G,"-$1").toLowerCase())),te=Q((e=>e.charAt(0).toUpperCase()+e.slice(1))),ne=Q((e=>e?`on${te(e)}`:"")),re=(e,t)=>!Object.is(e,t),oe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ie=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},se=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let le;const ae=()=>le||(le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let ce;class ue{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&ce&&(this.parent=ce,this.index=(ce.scopes||(ce.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ce;try{return ce=this,e()}finally{ce=t}}}on(){ce=this}off(){ce=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 pe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,he=new WeakMap;let ge=0,me=1;let ve;const ye=Symbol(""),be=Symbol("");class we{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ce){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=_e;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,_e=!0,me=1<<++ge,ge<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):ke(this),this.fn()}finally{ge<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];de(o)&&!fe(o)?o.delete(e):t[n++]=o,o.w&=~me,o.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,_e=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(ke(this),this.onStop&&this.onStop(),this.active=!1)}}function ke(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let _e=!0;const xe=[];function Se(){xe.push(_e),_e=!1}function $e(){const e=xe.pop();_e=void 0===e||e}function Ee(e,t,n){if(_e&&ve){let t=he.get(e);t||he.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=pe()),Ce(r)}}function Ce(e,t){let n=!1;ge<=30?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve),n&&(e.add(ve),ve.deps.push(e))}function Oe(e,t,n,r,o,i){const s=he.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&P(e))s.forEach(((e,t)=>{("length"===t||t>=r)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":P(e)?K(n)&&l.push(s.get("length")):(l.push(s.get(ye)),U(e)&&l.push(s.get(be)));break;case"delete":P(e)||(l.push(s.get(ye)),U(e)&&l.push(s.get(be)));break;case"set":U(e)&&l.push(s.get(ye))}if(1===l.length)l[0]&&Re(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);Re(pe(e))}}function Re(e,t){for(const t of P(e)?e:[...e])(t!==ve||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ze=f("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(D)),Ae=Ue(),Te=Ue(!1,!0),Le=Ue(!0),je=Pe();function Pe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=kt(this);for(let e=0,t=this.length;e<t;e++)Ee(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(kt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Se();const n=kt(this)[t].apply(this,e);return $e(),n}})),e}function Ue(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?dt:pt:t?ut:ct).get(n))return n;const i=P(n);if(!e&&i&&j(je,r))return Reflect.get(je,r,o);const s=Reflect.get(n,r,o);if(D(r)?Ie.has(r):ze(r))return s;if(e||Ee(n,0,r),t)return s;if(Ct(s)){return!i||!K(r)?s.value:s}return B(s)?e?gt(s):ht(s):s}}function Me(e=!1){return function(t,n,r,o){let i=t[n];if(yt(i)&&Ct(i)&&!Ct(r))return!1;if(!e&&!yt(r)&&(bt(r)||(r=kt(r),i=kt(i)),!P(t)&&Ct(i)&&!Ct(r)))return i.value=r,!0;const s=P(t)&&K(n)?Number(n)<t.length:j(t,n),l=Reflect.set(t,n,r,o);return t===kt(o)&&(s?re(r,i)&&Oe(t,"set",n,r):Oe(t,"add",n,r)),l}}const Ne={get:Ae,set:Me(),deleteProperty:function(e,t){const n=j(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Oe(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return D(t)&&Ie.has(t)||Ee(e,0,t),n},ownKeys:function(e){return Ee(e,0,P(e)?"length":ye),Reflect.ownKeys(e)}},Ve={get:Le,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Fe=A({},Ne,{get:Te,set:Me(!0)}),De=e=>e,Be=e=>Reflect.getPrototypeOf(e);function qe(e,t,n=!1,r=!1){const o=kt(e=e.__v_raw),i=kt(t);t!==i&&!n&&Ee(o,0,t),!n&&Ee(o,0,i);const{has:s}=Be(o),l=r?De:n?St:xt;return s.call(o,t)?l(e.get(t)):s.call(o,i)?l(e.get(i)):void(e!==o&&e.get(t))}function We(e,t=!1){const n=this.__v_raw,r=kt(n),o=kt(e);return e!==o&&!t&&Ee(r,0,e),!t&&Ee(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function He(e,t=!1){return e=e.__v_raw,!t&&Ee(kt(e),0,ye),Reflect.get(e,"size",e)}function Ze(e){e=kt(e);const t=kt(this);return Be(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function Ke(e,t){t=kt(t);const n=kt(this),{has:r,get:o}=Be(n);let i=r.call(n,e);i||(e=kt(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?re(t,s)&&Oe(n,"set",e,t):Oe(n,"add",e,t),this}function Je(e){const t=kt(this),{has:n,get:r}=Be(t);let o=n.call(t,e);o||(e=kt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Oe(t,"delete",e,void 0),i}function Qe(){const e=kt(this),t=0!==e.size,n=e.clear();return t&&Oe(e,"clear",void 0,void 0),n}function Ye(e,t){return function(n,r){const o=this,i=o.__v_raw,s=kt(i),l=t?De:e?St:xt;return!e&&Ee(s,0,ye),i.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function Xe(e,t,n){return function(...r){const o=this.__v_raw,i=kt(o),s=U(i),l="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,c=o[e](...r),u=n?De:t?St:xt;return!t&&Ee(i,0,a?be:ye),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){return"delete"!==e&&this}}function et(){const e={get(e){return qe(this,e)},get size(){return He(this)},has:We,add:Ze,set:Ke,delete:Je,clear:Qe,forEach:Ye(!1,!1)},t={get(e){return qe(this,e,!1,!0)},get size(){return He(this)},has:We,add:Ze,set:Ke,delete:Je,clear:Qe,forEach:Ye(!1,!0)},n={get(e){return qe(this,e,!0)},get size(){return He(this,!0)},has(e){return We.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ye(!0,!1)},r={get(e){return qe(this,e,!0,!0)},get size(){return He(this,!0)},has(e){return We.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Xe(o,!1,!1),n[o]=Xe(o,!0,!1),t[o]=Xe(o,!1,!0),r[o]=Xe(o,!0,!0)})),[e,n,t,r]}const[tt,nt,rt,ot]=et();function it(e,t){const n=t?e?ot:rt:e?nt:tt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(j(n,r)&&r in t?n:t,r,o)}const st={get:it(!1,!1)},lt={get:it(!1,!0)},at={get:it(!0,!1)},ct=new WeakMap,ut=new WeakMap,pt=new WeakMap,dt=new WeakMap;function ft(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=>H(e).slice(8,-1))(e))}function ht(e){return yt(e)?e:mt(e,!1,Ne,st,ct)}function gt(e){return mt(e,!0,Ve,at,pt)}function mt(e,t,n,r,o){if(!B(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=ft(e);if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function vt(e){return yt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function yt(e){return!(!e||!e.__v_isReadonly)}function bt(e){return!(!e||!e.__v_isShallow)}function wt(e){return vt(e)||yt(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function _t(e){return ie(e,"__v_skip",!0),e}const xt=e=>B(e)?ht(e):e,St=e=>B(e)?gt(e):e;function $t(e){_e&&ve&&Ce((e=kt(e)).dep||(e.dep=pe()))}function Et(e,t){(e=kt(e)).dep&&Re(e.dep)}function Ct(e){return!(!e||!0!==e.__v_isRef)}function Ot(e){return zt(e,!1)}function Rt(e){return zt(e,!0)}function zt(e,t){return Ct(e)?e:new It(e,t)}class It{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:kt(e),this._value=t?e:xt(e)}get value(){return $t(this),this._value}set value(e){e=this.__v_isShallow?e:kt(e),re(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:xt(e),Et(this))}}function At(e){return Ct(e)?e.value:e}const Tt={get:(e,t,n)=>At(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Lt(e){return vt(e)?e:new Proxy(e,Tt)}class jt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new we(e,(()=>{this._dirty||(this._dirty=!0,Et(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=kt(this);return $t(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Pt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Mt(e,t,n)}return o}function Ut(e,t,n,r){if(V(e)){const o=Pt(e,t,n,r);return o&&q(o)&&o.catch((e=>{Mt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Ut(e[i],t,n,r));return o}function Mt(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 s=t.appContext.config.errorHandler;if(s)return void Pt(s,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Nt=!1,Vt=!1;const Ft=[];let Dt=0;const Bt=[];let qt=null,Wt=0;const Ht=[];let Zt=null,Kt=0;const Jt=Promise.resolve();let Qt=null,Yt=null;function Xt(e){const t=Qt||Jt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Ft.length&&Ft.includes(e,Nt&&e.allowRecurse?Dt+1:Dt)||e===Yt||(null==e.id?Ft.push(e):Ft.splice(function(e){let t=Dt+1,n=Ft.length;for(;t<n;){const r=t+n>>>1;on(Ft[r])<e?t=r+1:n=r}return t}(e.id),0,e),en())}function en(){Nt||Vt||(Vt=!0,Qt=Jt.then(sn))}function tn(e,t,n,r){P(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),en()}function nn(e,t=null){if(Bt.length){for(Yt=t,qt=[...new Set(Bt)],Bt.length=0,Wt=0;Wt<qt.length;Wt++)qt[Wt]();qt=null,Wt=0,Yt=null,nn(e,t)}}function rn(e){if(Ht.length){const e=[...new Set(Ht)];if(Ht.length=0,Zt)return void Zt.push(...e);for(Zt=e,Zt.sort(((e,t)=>on(e)-on(t))),Kt=0;Kt<Zt.length;Kt++)Zt[Kt]();Zt=null,Kt=0}}const on=e=>null==e.id?1/0:e.id;function sn(e){Vt=!1,Nt=!0,nn(e),Ft.sort(((e,t)=>on(e)-on(t)));try{for(Dt=0;Dt<Ft.length;Dt++){const e=Ft[Dt];e&&!1!==e.active&&Pt(e,null,14)}}finally{Dt=0,Ft.length=0,rn(),Nt=!1,Qt=null,(Ft.length||Bt.length||Ht.length)&&sn(e)}}let ln,an=[],cn=!1;function un(e,...t){ln?ln.emit(e,...t):cn||an.push({event:e,args:t})}function pn(e,t){var n,r;if(ln=e,ln)ln.enabled=!0,an.forEach((({event:e,args:t})=>ln.emit(e,...t))),an=[];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=>{pn(e,t)})),setTimeout((()=>{ln||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,cn=!0,an=[])}),3e3)}else cn=!0,an=[]}const dn=gn("component:added"),fn=gn("component:updated"),hn=gn("component:removed");function gn(e){return t=>{un(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function mn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||$;let o=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=r[e]||$;i?o=n.map((e=>e.trim())):t&&(o=n.map(se))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){un("component:emit",e.appContext.app,e,t,n)}(e,t,o);let a=r[l=ne(t)]||r[l=ne(X(t))];!a&&i&&(a=r[l=ne(ee(t))]),a&&Ut(a,e,6,o);const c=r[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Ut(c,e,6,o)}}function vn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let s={},l=!1;if(__VUE_OPTIONS_API__&&!V(e)){const r=e=>{const n=vn(e,t,!0);n&&(l=!0,A(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||l?(P(i)?i.forEach((e=>s[e]=null)):A(s,i),r.set(e,s),s):(r.set(e,null),null)}function yn(e,t){return!(!e||!z(t))&&(t=t.slice(2).replace(/Once$/,""),j(e,t[0].toLowerCase()+t.slice(1))||j(e,ee(t))||j(e,t))}let bn=null,wn=null;function kn(e){const t=bn;return bn=e,wn=e&&e.type.__scopeId||null,t}function _n(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:f,ctx:h,inheritAttrs:g}=e;let m,v;const y=kn(e);try{if(4&n.shapeFlag){const e=o||r;m=io(u.call(e,e,p,i,f,d,h)),v=a}else{const e=t;m=io(e.length>1?e(i,{attrs:a,slots:l,emit:c}):e(i,null)),v=t.props?a:xn(a)}}catch(t){Fr.length=0,Mt(t,e,1),m=to(Nr)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(I)&&(v=Sn(v,s)),b=no(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,kn(y),m}const xn=e=>{let t;for(const n in e)("class"===n||"style"===n||z(n))&&((t||(t={}))[n]=e[n]);return t},Sn=(e,t)=>{const n={};for(const r in e)I(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function $n(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]&&!yn(n,i))return!0}return!1}function En(e,t){if(mo){let n=mo.provides;const r=mo.parent&&mo.parent.provides;r===n&&(n=mo.provides=Object.create(r)),n[e]=t}else;}function Cn(e,t,n=!1){const r=mo||bn;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&&V(t)?t.call(r.proxy):t}}function On(e,t){return In(e,null,t)}const Rn={};function zn(e,t,n){return In(e,t,n)}function In(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=$){const l=mo;let a,c,u=!1,p=!1;if(Ct(e)?(a=()=>e.value,u=bt(e)):vt(e)?(a=()=>e,r=!0):P(e)?(p=!0,u=e.some(vt),a=()=>e.map((e=>Ct(e)?e.value:vt(e)?Ln(e):V(e)?Pt(e,l,2):void 0))):a=V(e)?t?()=>Pt(e,l,2):()=>{if(!l||!l.isUnmounted)return c&&c(),Ut(e,l,3,[d])}:C,t&&r){const e=a;a=()=>Ln(e())}let d=e=>{c=m.onStop=()=>{Pt(e,l,4)}};if(wo)return d=C,t?n&&Ut(t,l,3,[a(),p?[]:void 0,d]):a(),C;let f=p?[]:Rn;const h=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>re(e,f[t]))):re(e,f)))&&(c&&c(),Ut(t,l,3,[e,f===Rn?void 0:f,d]),f=e)}else m.run()};let g;h.allowRecurse=!!t,g="sync"===o?h:"post"===o?()=>zr(h,l&&l.suspense):()=>{!l||l.isMounted?function(e){tn(e,qt,Bt,Wt)}(h):h()};const m=new we(a,g);return t?n?h():f=m.run():"post"===o?zr(m.run.bind(m),l&&l.suspense):m.run(),()=>{m.stop(),l&&l.scope&&T(l.scope.effects,m)}}function An(e,t,n){const r=this.proxy,o=F(e)?e.includes(".")?Tn(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const s=mo;vo(this);const l=In(o,i.bind(r),n);return s?vo(s):yo(),l}function Tn(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 Ln(e,t){if(!B(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Ct(e))Ln(e.value,t);else if(P(e))for(let n=0;n<e.length;n++)Ln(e[n],t);else if(M(e)||U(e))e.forEach((e=>{Ln(e,t)}));else if(Z(e))for(const n in e)Ln(e[n],t);return e}function jn(e){return V(e)?{setup:e,name:e.name}:e}const Pn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function Mn(e,t){Vn(e,"a",t)}function Nn(e,t){Vn(e,"da",t)}function Vn(e,t,n=mo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Dn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Un(e.parent.vnode)&&Fn(r,t,n,e),e=e.parent}}function Fn(e,t,n,r){const o=Dn(t,e,r,!0);Jn((()=>{T(r[t],o)}),n)}function Dn(e,t,n=mo,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Se(),vo(n);const o=Ut(t,n,e,r);return yo(),$e(),o});return r?o.unshift(i):o.push(i),i}}const Bn=e=>(t,n=mo)=>(!wo||"sp"===e)&&Dn(e,t,n),qn=Bn("bm"),Wn=Bn("m"),Hn=Bn("bu"),Zn=Bn("u"),Kn=Bn("bum"),Jn=Bn("um"),Qn=Bn("sp"),Yn=Bn("rtg"),Xn=Bn("rtc");function Gn(e,t=mo){Dn("ec",e,t)}let er=!0;function tr(e){const t=or(e),n=e.proxy,r=e.ctx;er=!1,t.beforeCreate&&nr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,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:k,renderTracked:_,renderTriggered:x,errorCaptured:S,serverPrefetch:$,expose:E,inheritAttrs:O,components:R,directives:z,filters:I}=t;if(c&&function(e,t,n=C,r=!1){P(e)&&(e=ar(e));for(const n in e){const o=e[n];let i;i=B(o)?"default"in o?Cn(o.from||n,o.default,!0):Cn(o.from||n):Cn(o),Ct(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),s)for(const e in s){const t=s[e];V(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);B(t)&&(e.data=ht(t))}if(er=!0,i)for(const e in i){const t=i[e],o=V(t)?t.bind(n,n):V(t.get)?t.get.bind(n,n):C,s=!V(t)&&V(t.set)?t.set.bind(n):C,l=So({get:o,set:s});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)rr(l[e],r,n,e);if(a){const e=V(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{En(t,e[t])}))}function A(e,t){P(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&nr(u,e,"c"),A(qn,p),A(Wn,d),A(Hn,f),A(Zn,h),A(Mn,g),A(Nn,m),A(Gn,S),A(Xn,_),A(Yn,x),A(Kn,y),A(Jn,w),A(Qn,$),P(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={});k&&e.render===C&&(e.render=k),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),z&&(e.directives=z)}function nr(e,t,n){Ut(P(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function rr(e,t,n,r){const o=r.includes(".")?Tn(n,r):()=>n[r];if(F(e)){const n=t[e];V(n)&&zn(o,n)}else if(V(e))zn(o,e.bind(n));else if(B(e))if(P(e))e.forEach((e=>rr(e,t,n,r)));else{const r=V(e.handler)?e.handler.bind(n):t[e.handler];V(r)&&zn(o,r,e)}}function or(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:o.length||n||r?(a={},o.length&&o.forEach((e=>ir(a,e,s,!0))),ir(a,t,s)):a=t,i.set(t,a),a}function ir(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ir(e,i,n,!0),o&&o.forEach((t=>ir(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=sr[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const sr={data:lr,props:ur,emits:ur,methods:ur,computed:ur,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:ur,directives:ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=A(Object.create(null),e);for(const r in t)n[r]=cr(e[r],t[r]);return n},provide:lr,inject:function(e,t){return ur(ar(e),ar(t))}};function lr(e,t){return t?e?function(){return A(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function ar(e){if(P(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cr(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?A(A(Object.create(null),e),t):t}function pr(e,t,n,r=!1){const o={},i={};ie(i,Yr,1),e.propsDefaults=Object.create(null),dr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:mt(o,!1,Fe,lt,ut):e.type.props?e.props=o:e.props=i,e.attrs=i}function dr(e,t,n,r){const[o,i]=e.propsOptions;let s,l=!1;if(t)for(let a in t){if(J(a))continue;const c=t[a];let u;o&&j(o,u=X(a))?i&&i.includes(u)?(s||(s={}))[u]=c:n[u]=c:yn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,l=!0)}if(i){const t=kt(n),r=s||$;for(let s=0;s<i.length;s++){const l=i[s];n[l]=fr(o,t,l,r[l],e,!j(r,l))}}return l}function fr(e,t,n,r,o,i){const s=e[n];if(null!=s){const e=j(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&V(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(vo(o),r=i[n]=e.call(null,t),yo())}else r=e}s[0]&&(i&&!e?r=!1:!s[1]||""!==r&&r!==ee(n)||(r=!0))}return r}function hr(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},l=[];let a=!1;if(__VUE_OPTIONS_API__&&!V(e)){const r=e=>{a=!0;const[n,r]=hr(e,t,!0);A(s,n),r&&l.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,E),E;if(P(i))for(let e=0;e<i.length;e++){const t=X(i[e]);gr(t)&&(s[t]=$)}else if(i)for(const e in i){const t=X(e);if(gr(t)){const n=i[e],r=s[t]=P(n)||V(n)?{type:n}:n;if(r){const e=yr(Boolean,r.type),n=yr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||j(r,"default"))&&l.push(t)}}}const c=[s,l];return r.set(e,c),c}function gr(e){return"$"!==e[0]}function mr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function vr(e,t){return mr(e)===mr(t)}function yr(e,t){return P(t)?t.findIndex((t=>vr(t,e))):V(t)&&vr(t,e)?0:-1}const br=e=>"_"===e[0]||"$stable"===e,wr=e=>P(e)?e.map(io):[io(e)],kr=(e,t,n)=>{const r=function(e,t=bn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Wr(-1);const o=kn(t),i=e(...n);return kn(o),r._d&&Wr(1),__VUE_PROD_DEVTOOLS__&&fn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>wr(t(...e))),n);return r._c=!1,r},_r=(e,t,n)=>{const r=e._ctx;for(const n in e){if(br(n))continue;const o=e[n];if(V(o))t[n]=kr(0,o,r);else if(null!=o){const e=wr(o);t[n]=()=>e}}},xr=(e,t)=>{const n=wr(t);e.slots.default=()=>n};function Sr(e,t){const n=bn;if(null===n)return e;const r=xo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,s,l=$]=t[e];V(n)&&(n={mounted:n,updated:n}),n.deep&&Ln(i),o.push({dir:n,instance:r,value:i,oldValue:void 0,arg:s,modifiers:l})}return e}function $r(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const l=o[s];i&&(l.oldValue=i[s].value);let a=l.dir[r];a&&(Se(),Ut(a,n,8,[e.el,l,e,t]),$e())}}function Er(){return{app:null,config:{isNativeTag:O,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 Cr=0;function Or(e,t){return function(n,r=null){V(n)||(n=Object.assign({},n)),null==r||B(r)||(r=null);const o=Er(),i=new Set;let s=!1;const l=o.app={_uid:Cr++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Eo,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&V(e.install)?(i.add(e),e.install(l,...t)):V(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),l),component:(e,t)=>t?(o.components[e]=t,l):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(i,a,c){if(!s){const u=to(n,r);return u.appContext=o,a&&t?t(u,i):e(u,i,c),s=!0,l._container=i,i.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){un("app:init",e,t,{Fragment:Ur,Text:Mr,Comment:Nr,Static:Vr})}(l,Eo)),xo(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){un("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l)};return l}}function Rr(e,t,n,r,o=!1){if(P(e))return void e.forEach(((e,i)=>Rr(e,t&&(P(t)?t[i]:t),n,r,o)));if(Pn(r)&&!o)return;const i=4&r.shapeFlag?xo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===$?l.refs={}:l.refs,p=l.setupState;if(null!=c&&c!==a&&(F(c)?(u[c]=null,j(p,c)&&(p[c]=null)):Ct(c)&&(c.value=null)),V(a))Pt(a,l,12,[s,u]);else{const t=F(a),r=Ct(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?P(n)&&T(n,i):P(n)?n.includes(i)||n.push(i):t?(u[a]=[i],j(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,j(p,a)&&(p[a]=s)):Ct(a)&&(a.value=s,e.k&&(u[e.k]=s))};s?(r.id=-1,zr(r,n)):r()}}}const zr=function(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):tn(e,Zt,Ht,Kt)};function Ir(e){return function(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(ae().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(ae().__VUE_PROD_DEVTOOLS__=!1);const n=ae();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&pn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:f=C,cloneNode:h,insertStaticContent:g}=e,m=(e,t,n,r=null,o=null,i=null,s=!1,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Qr(e,t)&&(r=Y(e),W(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 Mr:v(e,t,n,r);break;case Nr:y(e,t,n,r);break;case Vr:null==e&&b(t,n,r,s);break;case Ur:T(e,t,n,r,o,i,s,l,a);break;default:1&p?_(e,t,n,r,o,i,s,l,a):6&p?L(e,t,n,r,o,i,s,l,a):(64&p||128&p)&&c.process(e,t,n,r,o,i,s,l,a,te)}null!=u&&o&&Rr(u,e&&e.ref,i,t||e,!t)},v=(e,t,n,o)=>{if(null==e)r(t.el=l(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)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)},_=(e,t,n,r,o,i,s,l,a)=>{s=s||"svg"===t.type,null==e?x(t,n,r,o,i,s,l,a):R(e,t,o,i,s,l,a)},x=(e,t,n,o,l,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=s(e.type,a,m&&m.is,m),8&v?u(d,e.children):16&v&&O(e.children,d,null,o,l,a&&"foreignObject"!==g,c,p),w&&$r(e,null,o,"created"),m){for(const t in m)"value"===t||J(t)||i(d,t,null,m[t],a,e.children,o,l,Q);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&ao(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&&$r(e,null,o,"beforeMount");const k=(!l||l&&!l.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||k||w)&&zr((()=>{f&&ao(f,o,e),k&&y.enter(d),w&&$r(e,null,o,"mounted")}),l)},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)}}},O=(e,t,n,r,o,i,s,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?so(e[c]):io(e[c]);m(null,a,t,n,r,o,i,s,l)}},R=(e,t,n,r,o,s,l)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const f=e.props||$,h=t.props||$;let g;n&&Ar(n,!1),(g=h.onVnodeBeforeUpdate)&&ao(g,n,t,e),d&&$r(t,e,n,"beforeUpdate"),n&&Ar(n,!0);const m=o&&"foreignObject"!==t.type;if(p?z(e.dynamicChildren,p,a,n,r,m,s):l||V(e,t,a,null,n,r,m,s,!1),c>0){if(16&c)I(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 s=t.dynamicProps;for(let t=0;t<s.length;t++){const l=s[t],c=f[l],u=h[l];u===c&&"value"!==l||i(a,l,c,u,o,e.children,n,r,Q)}}1&c&&e.children!==t.children&&u(a,t.children)}else l||null!=p||I(a,t,f,h,n,r,o);((g=h.onVnodeUpdated)||d)&&zr((()=>{g&&ao(g,n,t,e),d&&$r(t,e,n,"updated")}),r)},z=(e,t,n,r,o,i,s)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Ur||!Qr(a,c)||70&a.shapeFlag)?p(a.el):n;m(a,c,u,null,r,o,i,s,!0)}},I=(e,t,n,r,o,s,l)=>{if(n!==r){for(const a in r){if(J(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,l,t.children,o,s,Q)}if(n!==$)for(const a in n)J(a)||a in r||i(e,a,n[a],null,l,t.children,o,s,Q);"value"in r&&i(e,"value",n.value,r.value)}},T=(e,t,n,o,i,s,a,c,u)=>{const p=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");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),O(t.children,n,d,i,s,a,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(z(e.dynamicChildren,h,n,i,s,a,c),(null!=t.key||i&&t===i.subTree)&&Tr(e,t,!0)):V(e,t,n,d,i,s,a,c,u)},L=(e,t,n,r,o,i,s,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,a):P(t,n,r,o,i,s,a):U(e,t,a)},P=(e,t,n,r,o,i,s)=>{const l=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||ho,i={uid:go++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ue(!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:hr(r,o),emitsOptions:vn(r,o),emit:null,emitted:null,propsDefaults:$,inheritAttrs:r.inheritAttrs,ctx:$,data:$,props:$,attrs:$,slots:$,refs:$,setupState:$,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=mn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(Un(e)&&(l.ctx.renderer=te),function(e,t=!1){wo=t;const{props:n,children:r}=e.vnode,o=bo(e);pr(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=kt(t),ie(t,"_",n)):_r(t,e.slots={})}else e.slots={},t&&xr(e,t);ie(e.slots,Yr,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=_t(new Proxy(e.ctx,fo));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)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;vo(e),Se();const o=Pt(r,e,0,[e.props,n]);if($e(),yo(),q(o)){if(o.then(yo,yo),t)return o.then((n=>{ko(e,n,t)})).catch((t=>{Mt(t,e,0)}));e.asyncDep=o}else ko(e,o,t)}else _o(e,t)}(e,t):void 0;wo=!1}(l),l.asyncDep){if(o&&o.registerDep(l,M),!e.el){const e=l.subTree=to(Nr);y(null,e,t,n)}}else M(l,e,t,n,o,i,s)},U=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!l||l&&l.$stable)||r!==s&&(r?!s||$n(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?$n(r,s,c):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!yn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void N(r,t,n);r.next=t,function(e){const t=Ft.indexOf(e);t>Dt&&Ft.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},M=(e,t,n,r,o,i,s)=>{const l=()=>{if(e.isMounted){let t,{next:n,bu:r,u:l,parent:a,vnode:c}=e,u=n;Ar(e,!1),n?(n.el=c.el,N(e,n,s)):n=c,r&&oe(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ao(t,a,n,c),Ar(e,!0);const d=_n(e),f=e.subTree;e.subTree=d,m(f,d,p(f.el),Y(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),l&&zr(l,o),(t=n.props&&n.props.onVnodeUpdated)&&zr((()=>ao(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&fn(e)}else{let s;const{el:l,props:a}=t,{bm:c,m:u,parent:p}=e,d=Pn(t);if(Ar(e,!1),c&&oe(c),!d&&(s=a&&a.onVnodeBeforeMount)&&ao(s,p,t),Ar(e,!0),l&&re){const n=()=>{e.subTree=_n(e),re(l,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=_n(e);m(null,s,n,r,e,o,i),t.el=s.el}if(u&&zr(u,o),!d&&(s=a&&a.onVnodeMounted)){const e=t;zr((()=>ao(s,p,e)),o)}256&t.shapeFlag&&e.a&&zr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&dn(e),t=n=r=null}},a=e.effect=new we(l,(()=>Gt(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Ar(e,!0),c()},N=(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:s}}=e,l=kt(o),[a]=e.propsOptions;let c=!1;if(!(r||s>0)||16&s){let r;dr(e,t,o,i)&&(c=!0);for(const i in l)t&&(j(t,i)||(r=ee(i))!==i&&j(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=fr(a,l,i,void 0,e,!0)):delete o[i]);if(i!==l)for(const e in i)t&&j(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(yn(e.emitsOptions,s))continue;const u=t[s];if(a)if(j(i,s))u!==i[s]&&(i[s]=u,c=!0);else{const t=X(s);o[t]=fr(a,l,t,u,e,!1)}else u!==i[s]&&(i[s]=u,c=!0)}}c&&Oe(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=$;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(A(o,t),n||1!==e||delete o._):(i=!t.$stable,_r(t,o)),s=t}else t&&(xr(e,t),s={default:1});if(i)for(const e in o)br(e)||e in s||delete o[e]})(e,t.children,n),Se(),nn(void 0,e.update),$e()},V=(e,t,n,r,o,i,s,l,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,s,l,a);if(256&f)return void F(c,d,n,r,o,i,s,l,a)}8&h?(16&p&&Q(c,o,i),d!==c&&u(n,d)):16&p?16&h?D(c,d,n,r,o,i,s,l,a):Q(c,o,i,!0):(8&p&&u(n,""),16&h&&O(d,n,r,o,i,s,l,a))},F=(e,t,n,r,o,i,s,l,a)=>{t=t||E;const c=(e=e||E).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?so(t[d]):io(t[d]);m(e[d],r,n,null,o,i,s,l,a)}c>u?Q(e,o,i,!0,!1,p):O(t,n,r,o,i,s,l,a,p)},D=(e,t,n,r,o,i,s,l,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?so(t[c]):io(t[c]);if(!Qr(r,u))break;m(r,u,n,null,o,i,s,l,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?so(t[d]):io(t[d]);if(!Qr(r,c))break;m(r,c,n,null,o,i,s,l,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?so(t[c]):io(t[c]),n,p,o,i,s,l,a),c++}}else if(c>d)for(;c<=p;)W(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?so(t[c]):io(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=d-h+1;let w=!1,k=0;const _=new Array(b);for(c=0;c<b;c++)_[c]=0;for(c=f;c<=p;c++){const r=e[c];if(y>=b){W(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===_[v-h]&&Qr(r,t[v])){u=v;break}void 0===u?W(r,o,i,!0):(_[u-h]=c+1,u>=k?k=u:w=!0,m(r,t[u],n,null,o,i,s,l,a),y++)}const x=w?function(e){const t=e.slice(),n=[0];let r,o,i,s,l;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,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<a?i=l+1:s=l;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(_):E;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===_[c]?m(null,p,n,d,o,i,s,l,a):w&&(v<0||c!==x[v]?B(p,n,d,2):v--)}}},B=(e,t,n,o,i=null)=>{const{el:s,type:l,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 l.move(e,t,n,te);if(l===Ur){r(s,t,n);for(let e=0;e<c.length;e++)B(c[e],t,n,o);return void r(e.anchor,t,n)}if(l===Vr)return void w(e,t,n);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(s),r(s,t,n),zr((()=>a.enter(s)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,l=()=>r(s,t,n),c=()=>{e(s,(()=>{l(),i&&i()}))};o?o(s,l,c):c()}else r(s,t,n)},W=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=l&&Rr(l,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,h=!Pn(e);let g;if(h&&(g=s&&s.onVnodeBeforeUnmount)&&ao(g,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&$r(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,te,r):c&&(i!==Ur||p>0&&64&p)?Q(c,t,n,!1,!0):(i===Ur&&384&p||!o&&16&u)&&Q(a,t,n),r&&H(e)}(h&&(g=s&&s.onVnodeUnmounted)||f)&&zr((()=>{g&&ao(g,t,e),f&&$r(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Ur)return void Z(n,r);if(t===Vr)return void k(e);const s=()=>{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,s);r?r(e.el,s,o):o()}else s()},Z=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},K=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:s,um:l}=e;r&&oe(r),o.stop(),i&&(i.active=!1,W(s,e,t,n)),l&&zr(l,t),zr((()=>{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__&&hn(e)},Q=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s<e.length;s++)W(e[s],t,n,r,o)},Y=e=>6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),G=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),rn(),t._vnode=e},te={p:m,um:W,m:B,r:H,mt:P,mc:O,pc:V,pbc:z,n:Y,o:e};let ne,re;t&&([ne,re]=t(te));return{render:G,hydrate:ne,createApp:Or(G,ne)}}(e)}function Ar({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Tr(e,t,n=!1){const r=e.children,o=t.children;if(P(r)&&P(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]=so(o[e]),i.el=t.el),n||Tr(t,i))}}function Lr(e,t){return function(e,t,n=!0,r=!1){const o=bn||mo;if(o){const n=o.type;if("components"===e){const e=function(e){return V(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===X(t)||e===te(X(t))))return n}const i=Pr(o[e]||n[e],t)||Pr(o.appContext[e],t);return!i&&r?n:i}}("components",e,!0,t)||e}const jr=Symbol();function Pr(e,t){return e&&(e[t]||e[X(t)]||e[te(X(t))])}const Ur=Symbol(void 0),Mr=Symbol(void 0),Nr=Symbol(void 0),Vr=Symbol(void 0),Fr=[];let Dr=null;function Br(e=!1){Fr.push(Dr=e?null:[])}let qr=1;function Wr(e){qr+=e}function Hr(e){return e.dynamicChildren=qr>0?Dr||E:null,Fr.pop(),Dr=Fr[Fr.length-1]||null,qr>0&&Dr&&Dr.push(e),e}function Zr(e,t,n,r,o,i){return Hr(eo(e,t,n,r,o,i,!0))}function Kr(e,t,n,r,o){return Hr(to(e,t,n,r,o,!0))}function Jr(e){return!!e&&!0===e.__v_isVNode}function Qr(e,t){return e.type===t.type&&e.key===t.key}const Yr="__vInternal",Xr=({key:e})=>null!=e?e:null,Gr=({ref:e,ref_key:t,ref_for:n})=>null!=e?F(e)||Ct(e)||V(e)?{i:bn,r:e,k:t,f:!!n}:e:null;function eo(e,t=null,n=null,r=0,o=null,i=(e===Ur?0:1),s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xr(t),ref:t&&Gr(t),scopeId:wn,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 l?(lo(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=F(n)?8:16),qr>0&&!s&&Dr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Dr.push(a),a}const to=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==jr||(e=Nr);if(Jr(e)){const r=no(e,t,!0);return n&&lo(r,n),r}s=e,V(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?wt(e)||Yr in e?A({},e):e:null}(t);let{class:e,style:n}=t;e&&!F(e)&&(t.class=w(e)),B(n)&&(wt(n)&&!P(n)&&(n=A({},n)),t.style=m(n))}const l=F(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:B(e)?4:V(e)?2:0;return eo(e,t,n,r,o,l,i,!0)};function no(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=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=w([t.class,r.class]));else if("style"===e)t.style=m([t.style,r.style]);else if(z(e)){const n=t[e],o=r[e];!o||n===o||P(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:l,key:l&&Xr(l),ref:t&&t.ref?n&&o?P(o)?o.concat(Gr(t)):[o,Gr(t)]:Gr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ur?-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&&no(e.ssContent),ssFallback:e.ssFallback&&no(e.ssFallback),el:e.el,anchor:e.anchor}}function ro(e=" ",t=0){return to(Mr,null,e,t)}function oo(e="",t=!1){return t?(Br(),Kr(Nr,null,e)):to(Nr,null,e)}function io(e){return null==e||"boolean"==typeof e?to(Nr):P(e)?to(Ur,null,e.slice()):"object"==typeof e?so(e):to(Mr,null,String(e))}function so(e){return null===e.el||e.memo?e:no(e)}function lo(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(P(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),lo(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Yr in t?3===r&&bn&&(1===bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=bn}}else V(t)?(t={default:t,_ctx:bn},n=32):(t=String(t),64&r?(n=16,t=[ro(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(e,t,n,r=null){Ut(e,t,7,[n,r])}function co(e,t,n,r){let o;const i=n&&n[r];if(P(e)||F(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(B(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,s=n.length;r<s;r++){const s=n[r];o[r]=t(e[s],s,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}const uo=e=>e?bo(e)?xo(e)||e.proxy:uo(e.parent):null,po=A(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=>uo(e.parent),$root:e=>uo(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?or(e):e.type,$forceUpdate:e=>()=>Gt(e.update),$nextTick:e=>Xt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?An.bind(e):C}),fo={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==$&&j(r,t))return s[t]=1,r[t];if(o!==$&&j(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&j(c,t))return s[t]=3,i[t];if(n!==$&&j(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!er||(s[t]=0)}}const u=po[t];let p,d;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==$&&j(n,t)?(s[t]=4,n[t]):(d=a.config.globalProperties,j(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==$&&j(o,t)?(o[t]=n,!0):r!==$&&j(r,t)?(r[t]=n,!0):!j(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}},s){let l;return!!n[s]||e!==$&&j(e,s)||t!==$&&j(t,s)||(l=i[0])&&j(l,s)||j(r,s)||j(po,s)||j(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:j(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ho=Er();let go=0;let mo=null;const vo=e=>{mo=e,e.scope.on()},yo=()=>{mo&&mo.scope.off(),mo=null};function bo(e){return 4&e.vnode.shapeFlag}let wo=!1;function ko(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Lt(t)),_o(e,n)}function _o(e,t,n){const r=e.type;e.render||(e.render=r.render||C),__VUE_OPTIONS_API__&&(vo(e),Se(),tr(e),$e(),yo())}function xo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Lt(_t(e.exposed)),{get:(t,n)=>n in t?t[n]:n in po?po[n](e):void 0}))}const So=(e,t)=>function(e,t,n=!1){let r,o;const i=V(e);return i?(r=e,o=C):(r=e.get,o=e.set),new jt(r,o,i||!o,n)}(e,0,wo);function $o(e,t,n){const r=arguments.length;return 2===r?B(t)&&!P(t)?Jr(t)?to(e,null,[t]):to(e,t):to(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Jr(n)&&(n=[n]),to(e,t,n))}const Eo="3.2.33",Co="undefined"!=typeof document?document:null,Oo=Co&&Co.createElement("template"),Ro={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?Co.createElementNS("http://www.w3.org/2000/svg",e):Co.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.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 s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Oo.innerHTML=r?`<svg>${e}</svg>`:e;const o=Oo.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const zo=/\s*!important$/;function Io(e,t,n){if(P(n))n.forEach((n=>Io(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=To[t];if(n)return n;let r=X(t);if("filter"!==r&&r in e)return To[t]=r;r=te(r);for(let n=0;n<Ao.length;n++){const o=Ao[n]+r;if(o in e)return To[t]=o}return t}(e,t);zo.test(n)?e.setProperty(ee(r),n.replace(zo,""),"important"):e[r]=n}}const Ao=["Webkit","Moz","ms"],To={};const Lo="http://www.w3.org/1999/xlink";const[jo,Po]=(()=>{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 Uo=0;const Mo=Promise.resolve(),No=()=>{Uo=0};function Vo(e,t,n,r){e.addEventListener(t,n,r)}function Fo(e,t,n,r,o=null){const i=e._vei||(e._vei={}),s=i[t];if(r&&s)s.value=r;else{const[n,l]=function(e){let t;if(Do.test(e)){let n;for(t={};n=e.match(Do);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ee(e.slice(2)),t]}(t);if(r){const s=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||jo();(Po||r>=n.attached-1)&&Ut(function(e,t){if(P(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=(()=>Uo||(Mo.then(No),Uo=jo()))(),n}(r,o);Vo(e,n,s,l)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,l),i[t]=void 0)}}const Do=/(?:Once|Passive|Capture)$/;const Bo=/^on[a-z]/;const qo=e=>{const t=e.props["onUpdate:modelValue"];return P(t)?e=>oe(t,e):t};function Wo(e){e.target.composing=!0}function Ho(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 Zo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=qo(o);const i=r||o.props&&"number"===o.props.type;Vo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=se(r)),e._assign(r)})),n&&Vo(e,"change",(()=>{e.value=e.value.trim()})),t||(Vo(e,"compositionstart",Wo),Vo(e,"compositionend",Ho),Vo(e,"change",Ho))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=qo(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&se(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},Ko={deep:!0,created(e,t,n){e._assign=qo(n),Vo(e,"change",(()=>{const t=e._modelValue,n=Go(e),r=e.checked,o=e._assign;if(P(t)){const 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(M(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ei(e,r))}))},mounted:Jo,beforeUpdate(e,t,n){e._assign=qo(n),Jo(e,t,n)}};function Jo(e,{value:t,oldValue:n},r){e._modelValue=t,P(t)?e.checked=_(t,r.props.value)>-1:M(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=k(t,ei(e,!0)))}const Qo={created(e,{value:t},n){e.checked=k(t,n.props.value),e._assign=qo(n),Vo(e,"change",(()=>{e._assign(Go(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=qo(r),t!==n&&(e.checked=k(t,r.props.value))}},Yo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=M(t);Vo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?se(Go(e)):Go(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=qo(r)},mounted(e,{value:t}){Xo(e,t)},beforeUpdate(e,t,n){e._assign=qo(n)},updated(e,{value:t}){Xo(e,t)}};function Xo(e,t){const n=e.multiple;if(!n||P(t)||M(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=Go(o);if(n)P(t)?o.selected=_(t,i)>-1:o.selected=t.has(i);else if(k(Go(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Go(e){return"_value"in e?e._value:e.value}function ei(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ti={created(e,t,n){ni(e,t,n,null,"created")},mounted(e,t,n){ni(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ni(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ni(e,t,n,r,"updated")}};function ni(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=Yo;break;case"TEXTAREA":i=Zo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Ko;break;case"radio":i=Qo;break;default:i=Zo}}const s=i[o];s&&s(e,t,n,r)}const ri={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):oi(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),oi(e,!0),r.enter(e)):r.leave(e,(()=>{oi(e,!1)})):oi(e,t))},beforeUnmount(e,{value:t}){oi(e,t)}};function oi(e,t){e.style.display=t?e._vod:"none"}const ii=A({patchProp:(e,t,n,r,o=!1,i,s,l,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=F(n);if(n&&!o){for(const e in n)Io(r,e,n[e]);if(t&&!F(t))for(const e in t)null==n[e]&&Io(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):z(t)?I(t)||Fo(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Bo.test(t)&&V(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(Bo.test(t)&&F(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,i,s){if("innerHTML"===t||"textContent"===t)return r&&s(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 l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=g(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r,i,s,l,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(Lo,t.slice(6,t.length)):e.setAttributeNS(Lo,t,n);else{const r=h(t);null==n||r&&!g(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Ro);let si;const li=(...e)=>{const t=(si||(si=Ir(ii))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(F(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;V(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 ai(e){return!!ce&&(function(e){ce&&ce.cleanups.push(e)}(e),!0)}const ci="undefined"!=typeof window,ui=()=>{};const pi=e=>e();var di=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable;function gi(e,t,n={}){const r=n,{eventFilter:o=pi}=r,i=((e,t)=>{var n={};for(var r in e)fi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&di)for(var r of di(e))t.indexOf(r)<0&&hi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return zn(e,(s=o,l=t,function(...e){s((()=>l.apply(this,e)),{fn:l,thisArg:this,args:e})}),i);var s,l}var mi=Object.defineProperty,vi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,_i=(e,t,n)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function xi(e,t,n={}){const r=n,{eventFilter:o}=r,i=((e,t)=>{var n={};for(var r in e)wi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bi)for(var r of bi(e))t.indexOf(r)<0&&ki.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:s,pause:l,resume:a,isActive:c}=function(e=pi){const t=Ot(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=gi(e,t,(p=((e,t)=>{for(var n in t||(t={}))wi.call(t,n)&&_i(e,n,t[n]);if(bi)for(var n of bi(t))ki.call(t,n)&&_i(e,n,t[n]);return e})({},i),vi(p,yi({eventFilter:s}))));var p;return{stop:u,pause:l,resume:a,isActive:c}}const Si=ci?window:void 0;function $i(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=Si):[t,n,r,o]=e,!t)return ui;let i=ui;const s=zn((()=>function(e){var t;const n=At(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=ui})}),{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ai(l),l}ci&&window.document,ci&&window.navigator,ci&&window.location;const Ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ci="__vueuse_ssr_handlers__";Ei[Ci]=Ei[Ci]||{};const Oi=Ei[Ci];const Ri={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 zi(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,shallow:c,window:u=Si,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,f=(c?Rt:Ot)(t);if(!n)try{n=function(e,t){return Oi[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Si)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return f;const h=At(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:Ri[g],{pause:v,resume:y}=xi(f,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}(f.value)),{flush:i,deep:s,eventFilter:p});return u&&l&&$i(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 Ii,Ai,Ti=Object.defineProperty,Li=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Ui=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Mi(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Ot(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Si}=t,o=Ot(!1);let i=null;function s(){o.value&&r&&(e(),i=r.requestAnimationFrame(s))}function l(){!o.value&&r&&(o.value=!0,s())}function a(){o.value=!1,null!=i&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&l(),ai(a),{isActive:o,pause:a,resume:l}}(o,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const s=Ot(!1);function l(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,l()}function c(){t<=0||(s.value=!0,o&&e(),l(),i=setInterval(e,At(t)))}r&&ci&&c(),Ct(t)&&ai(zn(t,(()=>{r&&ci&&c()})));return ai(a),{isActive:s,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))ji.call(t,n)&&Ui(e,n,t[n]);if(Li)for(var n of Li(t))Pi.call(t,n)&&Ui(e,n,t[n]);return e})({now:r},i):r}ci&&(null==window?void 0:window.navigator)&&(null==(Ii=null==window?void 0:window.navigator)?void 0:Ii.platform)&&/iP(ad|hone|od)/.test(null==(Ai=null==window?void 0:window.navigator)?void 0:Ai.platform);const Ni=e=>{try{e=decodeURI(e)}catch(e){}return e},Vi=(e="")=>e.replace(/\/$/u,""),Fi=e=>/^(https?:)?\/\//.test(e);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Di={exports:{}},Bi=Di.exports=function(){function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),n=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],r=function(e,r){void 0===r&&(r={});var i=r.colors;void 0===i&&(i=n);var s=0,l={},a=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+t().source+")","gmi");return e.replace(a,(function(e,t,n){if(n)return o(n);if("<"===t)return"&lt;";var r;l[t]?r=l[t]:(r=i[s],l[t]=r);var a='<span style="color: #'+r+'">'+t+"</span>";return s=++s%i.length,a}))};function o(e){return'<span style="color: slategray">'+e+"</span>"}return r}();const qi=e=>{const t=Vi(e);return Fi(t)?t:`https://${t}`},Wi=e=>Array.isArray(e)?e:!!e&&[0,e],Hi=(e,t)=>"function"==typeof e?e:!1!==e&&t,Zi="{--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}",Ki=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Ji=e=>{const t=zi("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}))},Qi=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Yi=e=>{"AbortError"!==e.name&&console.error(e.message)},Xi=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},Gi=({serverURL:e,paths:t,signal:n})=>fetch(`${e}/article?path=${encodeURIComponent(t.join(","))}`,{signal:n}).then((e=>e.json())).then((e=>Xi(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),es=({serverURL:e,path:t})=>fetch(`${e}/article`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})}).then((e=>e.json())).then((e=>Xi(e,"visit count"))),ts=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,ns=e=>e.type.includes("image"),rs=e=>{const t=Array.from(e).find(ns);return t?t.getAsFile():null};function os(){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 is={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 ss=/[&<>"']/,ls=/[&<>"']/g,as=/[<>"']|&(?!#?\w+;)/,cs=/[<>"']|&(?!#?\w+;)/g,us={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ps=e=>us[e];function ds(e,t){if(t){if(ss.test(e))return e.replace(ls,ps)}else if(as.test(e))return e.replace(cs,ps);return e}const fs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function hs(e){return e.replace(fs,((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 gs=/(^|[^\[])\^/g;function ms(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(gs,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const vs=/[^\w:]/g,ys=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function bs(e,t,n){if(e){let e;try{e=decodeURIComponent(hs(n)).replace(vs,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!ys.test(n)&&(n=function(e,t){ws[" "+e]||(ks.test(e)?ws[" "+e]=e+"/":ws[" "+e]=Cs(e,"/",!0));const n=-1===(e=ws[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_s,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(xs,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ws={},ks=/^[^:]+:\/*[^/]*$/,_s=/^([^:]+:)[\s\S]*$/,xs=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Ss={exec:function(){}};function $s(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 Es(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 Cs(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 Os(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 Rs(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function zs(e,t,n,r){const o=t.href,i=t.title?ds(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:s,tokens:r.inlineTokens(s,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:ds(s)}}class Is{constructor(e){this.options=e||is}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:Cs(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=Cs(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,s,l,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),l=!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}[.)])`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c));){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(l)break;d+="\n"+c}l||c.trim()||(l=!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(s=0;s<y;s++){this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]);const e=m.items[s].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[s].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):ds(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:Es(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,s=e.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(s=e.rows.length,n=0;n<s;n++)e.rows[n]=Es(e.rows[n],e.header.length).map((e=>({text:e})));for(s=e.header.length,r=0;r<s;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(s=e.rows.length,r=0;r<s;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:ds(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]):ds(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=Cs(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)),zs(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 zs(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,s=n,l=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]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){l+=i;continue}if(s-=i,s>0)continue;if(i=Math.min(i,i+s+l),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=ds(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=ds(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=ds(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=ds(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=ds(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]):ds(n[0]):n[0]:ds(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const As={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:Ss,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?'|\([^()]*\))/};As.def=ms(As.def).replace("label",As._label).replace("title",As._title).getRegex(),As.bullet=/(?:[*+-]|\d{1,9}[.)])/,As.listItemStart=ms(/^( *)(bull) */).replace("bull",As.bullet).getRegex(),As.list=ms(As.list).replace(/bull/g,As.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+As.def.source+")").getRegex(),As._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",As._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,As.html=ms(As.html,"i").replace("comment",As._comment).replace("tag",As._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),As.paragraph=ms(As._paragraph).replace("hr",As.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",As._tag).getRegex(),As.blockquote=ms(As.blockquote).replace("paragraph",As.paragraph).getRegex(),As.normal=$s({},As),As.gfm=$s({},As.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),As.gfm.table=ms(As.gfm.table).replace("hr",As.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",As._tag).getRegex(),As.gfm.paragraph=ms(As._paragraph).replace("hr",As.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",As.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",As._tag).getRegex(),As.pedantic=$s({},As.normal,{html:ms("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",As._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:Ss,paragraph:ms(As.normal._paragraph).replace("hr",As.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",As.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ts={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ss,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:Ss,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Ls(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 js(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}Ts._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ts.punctuation=ms(Ts.punctuation).replace(/punctuation/g,Ts._punctuation).getRegex(),Ts.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ts.escapedEmSt=/\\\*|\\_/g,Ts._comment=ms(As._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ts.emStrong.lDelim=ms(Ts.emStrong.lDelim).replace(/punct/g,Ts._punctuation).getRegex(),Ts.emStrong.rDelimAst=ms(Ts.emStrong.rDelimAst,"g").replace(/punct/g,Ts._punctuation).getRegex(),Ts.emStrong.rDelimUnd=ms(Ts.emStrong.rDelimUnd,"g").replace(/punct/g,Ts._punctuation).getRegex(),Ts._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ts._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ts._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])?)+(?![-_])/,Ts.autolink=ms(Ts.autolink).replace("scheme",Ts._scheme).replace("email",Ts._email).getRegex(),Ts._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ts.tag=ms(Ts.tag).replace("comment",Ts._comment).replace("attribute",Ts._attribute).getRegex(),Ts._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ts._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ts._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ts.link=ms(Ts.link).replace("label",Ts._label).replace("href",Ts._href).replace("title",Ts._title).getRegex(),Ts.reflink=ms(Ts.reflink).replace("label",Ts._label).replace("ref",As._label).getRegex(),Ts.nolink=ms(Ts.nolink).replace("ref",As._label).getRegex(),Ts.reflinkSearch=ms(Ts.reflinkSearch,"g").replace("reflink",Ts.reflink).replace("nolink",Ts.nolink).getRegex(),Ts.normal=$s({},Ts),Ts.pedantic=$s({},Ts.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:ms(/^!?\[(label)\]\((.*?)\)/).replace("label",Ts._label).getRegex(),reflink:ms(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ts._label).getRegex()}),Ts.gfm=$s({},Ts.normal,{escape:ms(Ts.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ts.gfm.url=ms(Ts.gfm.url,"i").replace("email",Ts.gfm._extended_email).getRegex(),Ts.breaks=$s({},Ts.gfm,{br:ms(Ts.br).replace("{2,}","*").getRegex(),text:ms(Ts.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Ps{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||is,this.options.tokenizer=this.options.tokenizer||new Is,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:As.normal,inline:Ts.normal};this.options.pedantic?(t.block=As.pedantic,t.inline=Ts.pedantic):this.options.gfm&&(t.block=As.gfm,this.options.breaks?t.inline=Ts.breaks:t.inline=Ts.gfm),this.tokenizer.rules=t}static get rules(){return{block:As,inline:Ts}}static lex(e,t){return new Ps(t).lex(e)}static lexInline(e,t){return new Ps(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,s,l,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)+"["+Rs("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)+"["+Rs("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(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,l))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,js))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,js))){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,Ls))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Us{constructor(e){this.options=e||is}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+ds(r,!0)+'">'+(n?e:ds(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ds(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=bs(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+ds(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=bs(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 Ms{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 Ns{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 Vs{constructor(e){this.options=e||is,this.options.renderer=this.options.renderer||new Us,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ms,this.slugger=new Ns}static parse(e,t){return new Vs(t).parse(e)}static parseInline(e,t){return new Vs(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,s,l,a,c,u,p,d,f,h,g,m,v,y,b,w,k="";const _=e.length;for(n=0;n<_;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,hs(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,r=0;r<i;r++){for(l=p.rows[r],a="",s=l.length,o=0;o<s;o++)a+=this.renderer.tablecell(this.parseInline(l[o].tokens),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,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);k+=this.renderer.list(u,d,f);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<_&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const s=e.length;for(n=0;n<s;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(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 Fs(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),Os(t=$s({},Fs.defaults,t||{})),n){const r=t.highlight;let o;try{o=Ps.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Fs.walkTokens(o,t.walkTokens),i=Vs.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 s=0;return Fs.walkTokens(o,(function(e){"code"===e.type&&(s++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),s--,0===s&&i()}))}),0))})),void(0===s&&i())}try{const n=Ps.lex(e,t);return t.walkTokens&&Fs.walkTokens(n,t.walkTokens),Vs.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>"+ds(e.message+"",!0)+"</pre>";throw e}}Fs.options=Fs.setOptions=function(e){var t;return $s(Fs.defaults,e),t=Fs.defaults,is=t,Fs},Fs.getDefaults=os,Fs.defaults=is,Fs.use=function(...e){const t=$s({},...e),n=Fs.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=Fs.defaults.renderer||new Us;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=Fs.defaults.tokenizer||new Is;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=Fs.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),Fs.setOptions(t)}))},Fs.walkTokens=function(e,t){for(const n of e)switch(t.call(Fs,n),n.type){case"table":for(const e of n.header)Fs.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Fs.walkTokens(n.tokens,t);break;case"list":Fs.walkTokens(n.items,t);break;default:Fs.defaults.extensions&&Fs.defaults.extensions.childTokens&&Fs.defaults.extensions.childTokens[n.type]?Fs.defaults.extensions.childTokens[n.type].forEach((function(e){Fs.walkTokens(n[e],t)})):n.tokens&&Fs.walkTokens(n.tokens,t)}},Fs.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");Os(t=$s({},Fs.defaults,t||{}));try{const n=Ps.lexInline(e,t);return t.walkTokens&&Fs.walkTokens(n,t.walkTokens),Vs.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>"+ds(e.message+"",!0)+"</pre>";throw e}},Fs.Parser=Vs,Fs.parser=Vs.parse,Fs.Renderer=Us,Fs.TextRenderer=Ms,Fs.Lexer=Ps,Fs.lexer=Ps.lex,Fs.Tokenizer=Is,Fs.Slugger=Ns,Fs.parse=Fs;const Ds=/\$.*?\$/,Bs=/^\$(.*?)\$/,qs=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Ws=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Hs=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Fs.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=qs.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(Ds);return-1!==t?t:e.length},tokenizer(t){const n=Bs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Fs.use({extensions:e})}return Fs.parse(Ws(e,t))},Zs=e=>e.dataset.path||e.getAttribute("id"),Ks=(e,t)=>{const n=Mi();return So((()=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=n.value.getTime()-r.getTime(),i=Math.floor(o/864e5);if(0===i){const e=o%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,r=Math.floor(n/6e4);if(0===r){const e=n%6e4;return`${Math.round(e/1e3)} ${t.seconds}`}return`${r} ${t.minutes}`}return`${n} ${t.hours}`}return i<0?t.now:i<8?`${i} ${t.days}`:(e=>{const t=Ki(e.getDate(),2),n=Ki(e.getMonth()+1,2);return`${Ki(e.getFullYear(),2)}-${n}-${t}`})(r)}))},Js=()=>zi("USER_KEY",{}),Qs=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count"})=>{var r;const o=new AbortController,i=document.querySelectorAll(n),s=Js();return i.length&&(({serverURL:e,paths:t,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(t.join(","))}`,{signal:n,headers:o}).then((e=>e.json())).then((e=>Xi(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(i).map((e=>Ni(e.dataset.path||e.getAttribute("id")||t))),signal:o.signal,token:null===(r=s.value)||void 0===r?void 0:r.token}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Yi),o.abort.bind(o)};var Ys,Xs,Gs="function"==typeof Map?new Map:(Ys=[],Xs=[],{has:function(e){return Ys.indexOf(e)>-1},get:function(e){return Xs[Ys.indexOf(e)]},set:function(e,t){-1===Ys.indexOf(e)&&(Ys.push(e),Xs.push(t))},delete:function(e){var t=Ys.indexOf(e);t>-1&&(Ys.splice(t,1),Xs.splice(t,1))}}),el=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Ys){el=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function tl(e){var t=Gs.get(e);t&&t.destroy()}function nl(e){var t=Gs.get(e);t&&t.update()}var rl=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((rl=function(e){return e}).destroy=function(e){return e},rl.update=function(e){return e}):((rl=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&&!Gs.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&c()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Gs.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Gs.set(e,{destroy:s,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function l(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&&(l("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=el("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],tl),e},rl.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],nl),e});var ol=rl;const il=({size:e})=>$o("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},$o("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},$o("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var sl=jn({name:"CommentBox",components:{CloseIcon:({size:e})=>$o("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[$o("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"}),$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[$o("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"}),$o("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:()=>$o("svg",{width:"16",height:"16",ariaHidden:"true"},$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[$o("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"}),$o("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:il},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=Cn("config"),r=zi("WALINE_COMMENT_BOX_EDITOR",""),o=zi("WALINE_USER_META",{nick:"",mail:"",link:""}),i=Js(),s=Ot({}),l=Ot(null),a=Ot(null),c=Ot(null),u=Ot(null),p=Ot({tabs:[],map:{}}),d=Ot(0),f=Ot(!1),h=Ot(!1),g=Ot(""),m=Ot(0),v=Ot(0),y=Ot(!1),b=Ot(""),w=Ot(!1),k=So((()=>n.value.locale)),_=So((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),x=So((()=>!1!==n.value.imageUploader)),S=e=>{const t=l.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.name}](${n})`)}))},E=()=>{var a,c,u,d,f;const{serverURL:h,lang:v,login:_,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"===_)return;if((S.indexOf("nick")>-1||$.nick)&&!$.nick)return null===(c=s.value.nick)||void 0===c||c.focus(),alert(k.value.nickError);if(S.indexOf("mail")>-1&&!$.mail)return null===(u=s.value.mail)||void 0===u||u.focus(),alert(k.value.mailError);if(!$.comment)return void(null===(d=l.value)||void 0===d||d.focus());$.nick||($.nick=k.value.anonymous)}if(!y.value)return alert(k.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",m.value.toString()));$.comment=Ws($.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 zn([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}),Wn((()=>{document.body.addEventListener("click",C),zn((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;b.value=e,g.value=Hs(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?ol(l.value):ol.destroy(l.value)}),{immediate:!0}),zn((()=>n.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?Ji(Vi(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:s,items:l}=e;t.tabs.push({name:n,icon:Qi(o,r,i,s),items:l.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Qi(e,r,i,s),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),Jn((()=>{document.body.removeEventListener("click",C)})),{config:n,locale:k,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=rs(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=rs(e.clipboardData.items);t&&x.value&&$(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,s=(window.innerHeight-450)/2,l=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${s},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==l||l.postMessage({type:"TOKEN",data:null},"*");const a=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(null==l||l.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,s=(window.innerHeight-800)/2,l=window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${s},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==l||l.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:_,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:s,editorRef:l,emojiButtonRef:c,emojiPopupRef:u,imageUploadRef:a}}});const ll={class:"wl-comment"},al={key:0,class:"wl-login-info"},cl={class:"wl-avatar"},ul=["title"],pl=["src"],dl=["textContent"],fl={class:"wl-panel"},hl=["for","textContent"],gl=["id","name","type","onUpdate:modelValue"],ml=["placeholder"],vl={class:"wl-preview"},yl=eo("hr",null,null,-1),bl=["innerHTML"],wl={class:"wl-footer"},kl={class:"wl-actions"},_l={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},xl=["title"],Sl=["title"],$l=["title"],El={class:"wl-info"},Cl={class:"wl-text-number"},Ol={key:0},Rl=ro("  /  "),zl=["textContent"],Il=["textContent"],Al=["disabled"],Tl={key:0,class:"wl-tab-wrapper"},Ll=["title","onClick"],jl=["src","alt"],Pl={key:0,class:"wl-tabs"},Ul=["onClick"],Ml=["src","alt","title"],Nl=["title"];sl.render=function(e,t,n,r,o,i){const s=Lr("CloseIcon"),l=Lr("MarkdownIcon"),a=Lr("EmojiIcon"),c=Lr("ImageIcon"),u=Lr("PreviewIcon"),p=Lr("LoadingIcon");return Br(),Zr("div",ll,["disable"!==e.config.login&&e.isLogin?(Br(),Zr("div",al,[eo("div",cl,[eo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[to(s,{size:14})],8,ul),eo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,pl)]),eo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:x(e.userInfo.display_name)},null,8,dl)])):oo("v-if",!0),eo("div",fl,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Br(),Zr("div",{key:0,class:w(["wl-header",`item${e.config.meta.length}`])},[(Br(!0),Zr(Ur,null,co(e.config.meta,(t=>(Br(),Zr("div",{class:"wl-header-item",key:t},[eo("label",{for:t,textContent:x(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,hl),Sr(eo("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:w(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,gl),[[ti,e.userMeta[t]]])])))),128))],2)):oo("v-if",!0),Sr(eo("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,ml),[[Zo,e.editor]]),Sr(eo("div",vl,[yl,eo("h4",null,x(e.locale.preview)+":",1),eo("div",{class:"wl-content",innerHTML:e.previewText},null,8,bl)],512),[[ri,e.showPreview]]),eo("div",wl,[eo("div",kl,[eo("a",_l,[to(l)]),Sr(eo("button",{ref:"emojiButtonRef",class:w(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[to(a)],10,xl),[[ri,e.config.emoji.length]]),eo("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?(Br(),Zr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[to(c)],8,Sl)):oo("v-if",!0),eo("button",{class:w(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[to(u)],10,$l)]),eo("div",El,[eo("div",Cl,[ro(x(e.wordNumber)+" ",1),e.config.wordLimit?(Br(),Zr("span",Ol,[Rl,eo("span",{class:w({illegal:!e.isWordNumberLegal}),textContent:x(e.wordLimit)},null,10,zl)])):oo("v-if",!0),ro("  "+x(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?oo("v-if",!0):(Br(),Zr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:x(e.locale.login)},null,8,Il)),"force"!==e.config.login||e.isLogin?(Br(),Zr("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?(Br(),Kr(p,{key:0,size:16})):(Br(),Zr(Ur,{key:1},[ro(x(e.locale.submit),1)],2112))],8,Al)):oo("v-if",!0)]),eo("div",{ref:"emojiPopupRef",class:w(["wl-emoji-popup",{display:e.showEmoji}])},[(Br(!0),Zr(Ur,null,co(e.emoji.tabs,((t,n)=>(Br(),Zr(Ur,{key:t.name},[n===e.emojiTabIndex?(Br(),Zr("div",Tl,[(Br(!0),Zr(Ur,null,co(t.items,(t=>(Br(),Zr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Br(),Zr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,jl)):oo("v-if",!0)],8,Ll)))),128))])):oo("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Br(),Zr("div",Pl,[(Br(!0),Zr(Ur,null,co(e.emoji.tabs,((t,n)=>(Br(),Zr("button",{key:t.name,class:w(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[eo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ml)],10,Ul)))),128))])):oo("v-if",!0)],2)])]),e.replyId?(Br(),Zr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[to(s,{size:24})],8,Nl)):oo("v-if",!0)])},sl.__file="src/components/CommentBox.vue";var Vl=jn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:sl,ReplyIcon:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},$o("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:()=>$o("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},$o("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=Cn("config"),n=So((()=>t.value.locale)),r=So((()=>{let{link:t}=e.comment;return t?Fi(t)?t:`https://${t}`:""})),o=Ks(e.comment.insertedAt,n.value),i=So((()=>{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 Fl=["id"],Dl={class:"wl-user","aria-hidden":"true"},Bl=["src"],ql={class:"wl-card"},Wl={class:"wl-head"},Hl=["href"],Zl={key:1,class:"wl-nick"},Kl=["textContent"],Jl=["textContent"],Ql=["textContent"],Yl=["title"],Xl={class:"wl-meta","aria-hidden":"true"},Gl=["textContent"],ea=["textContent"],ta=["innerHTML"],na={key:0,class:"wl-reply-wrapper"},ra={key:1,class:"wl-quote"};Vl.render=function(e,t,n,r,o,i){const s=Lr("VerifiedIcon"),l=Lr("ReplyIcon"),a=Lr("CommentBox"),c=Lr("CommentCard",!0);return Br(),Zr("div",{class:"wl-item",id:e.comment.objectId},[eo("div",Dl,[e.comment.avatar?(Br(),Zr("img",{key:0,src:e.comment.avatar},null,8,Bl)):oo("v-if",!0),e.comment.type?(Br(),Kr(s,{key:1})):oo("v-if",!0)]),eo("div",ql,[eo("div",Wl,[e.link?(Br(),Zr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},x(e.comment.nick),9,Hl)):(Br(),Zr("span",Zl,x(e.comment.nick),1)),"administrator"===e.comment.type?(Br(),Zr("span",{key:2,class:"wl-badge",textContent:x(e.locale.admin)},null,8,Kl)):oo("v-if",!0),e.comment.sticky?(Br(),Zr("span",{key:3,class:"wl-badge",textContent:x(e.locale.sticky)},null,8,Jl)):oo("v-if",!0),eo("span",{class:"wl-time",textContent:x(e.time)},null,8,Ql),eo("button",{class:w(["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))},[to(l)],10,Yl)]),eo("div",Xl,[e.comment.browser?(Br(),Zr("span",{key:0,textContent:x(e.comment.browser)},null,8,Gl)):oo("v-if",!0),e.comment.os?(Br(),Zr("span",{key:1,textContent:x(e.comment.os)},null,8,ea)):oo("v-if",!0)]),eo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,ta),e.isReplyingCurrent?(Br(),Zr("div",na,[to(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"])])):oo("v-if",!0),e.comment.children?(Br(),Zr("div",ra,[(Br(!0),Zr(Ur,null,co(e.comment.children,(n=>(Br(),Kr(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))])):oo("v-if",!0)])],8,Fl)},Vl.__file="src/components/CommentCard.vue";var oa=jn({name:"WalineRoot",components:{CommentBox:sl,CommentCard:Vl,LoadingIcon:il},props:{serverURL:{type:String,required:!0},path:{type:String,required:!0},meta:{type:Array},requiredMeta:{type:Array},dark:{type:[String,Boolean]},lang:{type:String},locale:{type:Object},pageSize:{type:Number},wordLimit:{type:[Number,Array]},emoji:{type:Array},login:{type:String},highlighter:{type:Function},imageUploader:{type:[Function,Boolean]},texRenderer:{type:[Function,Boolean]}},setup(e){const o=So((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:s,emoji:l=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:a=["nick","mail","link"],requiredMeta:c=[],dark:u=!1,pageSize:p=10,wordLimit:f,imageUploader:h,highlighter:g,texRenderer:m,copyright:v=!0,login:y="enable",...b})=>({serverURL:qi(e),path:Ni(o),locale:{...d[i]||d["zh-CN"],..."object"==typeof s?s:{}},wordLimit:Wi(f),meta:t(a),requiredMeta:t(c),imageUploader:Hi(h,n),highlighter:Hi(g,Bi),texRenderer:Hi(m,r),lang:i,dark:u,emoji:l,pageSize:p,login:y,copyright:v,...b}))(e))),i=Js(),s=Ot("loading"),l=Ot(0),a=Ot(1),c=Ot(0),u=Ot([]),p=Ot(null),f=So((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Zi}}`:`${e}${Zi}`:!0===e?`:root${Zi}`:"";var e}));let h,g;const m=e=>{var t;const{serverURL:n,path:r,pageSize:p}=o.value,d=new AbortController;s.value="loading",null==h||h(),(({serverURL:e,path:t,page:n,pageSize:r,signal:o,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${e}/comment?path=${encodeURIComponent(t)}&pageSize=${r}&page=${n}`,{signal:o,headers:s}).then((e=>e.json())).then((e=>Xi(e,"comment list")))})({serverURL:n,path:r,pageSize:p,page:e,signal:d.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((t=>{s.value="success",l.value=t.count,u.value.push(...t.data),a.value=e,c.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),s.value="error")})),h=d.abort.bind(d)},v=()=>{l.value=0,u.value=[],m(1)};return En("config",o),zn((()=>e.path),v),Wn((()=>{var e;v();const t=document.createElement("style");t.innerText=f.value,null===(e=document.querySelector("[data-waline]"))||void 0===e||e.appendChild(t),g=On((()=>{t.innerText=f.value}))})),Kn((()=>g())),{config:o,darkmodeStyle:f,i18n:So((()=>o.value.locale)),status:s,count:l,page:a,totalPages:c,data:u,reply:p,loadMore:()=>m(a.value+1),refresh:v,onReply:e=>{p.value=e},onSubmit:e=>{if(e.rid){const t=u.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else u.value.unshift(e)},version:"2.0.7"}}});const ia={"data-waline":""},sa={class:"wl-count"},la=["textContent"],aa={class:"wl-cards"},ca={key:1,class:"wl-operation"},ua=["textContent"],pa={key:0,class:"wl-loading"},da=["textContent"],fa={class:"wl-operation"},ha=["textContent"],ga={key:3,class:"wl-power"},ma=ro(" Powered by "),va=eo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);oa.render=function(e,t,n,r,o,i){const s=Lr("CommentBox"),l=Lr("CommentCard"),a=Lr("LoadingIcon");return Br(),Zr("div",ia,[e.reply?oo("v-if",!0):(Br(),Kr(s,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),eo("div",sa,[e.count?(Br(),Zr("span",{key:0,class:"wl-num",textContent:x(e.count)},null,8,la)):oo("v-if",!0),ro(" "+x(e.i18n.comment),1)]),eo("div",aa,[(Br(!0),Zr(Ur,null,co(e.data,(t=>(Br(),Kr(l,{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?(Br(),Zr("div",ca,[eo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:x(e.i18n.refresh)},null,8,ua)])):(Br(),Zr(Ur,{key:2},["loading"===e.status?(Br(),Zr("div",pa,[to(a,{size:30})])):e.data.length?e.page<e.totalPages?(Br(),Zr(Ur,{key:2},[oo(" Load more button "),eo("div",fa,[eo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:x(e.i18n.more)},null,8,ha)])],2112)):oo("v-if",!0):(Br(),Zr("div",{key:1,class:"wl-empty",textContent:x(e.i18n.sofa)},null,8,da))],2112)),oo(" Copyright Information "),e.config.copyright?(Br(),Zr("div",ga,[ma,va,ro(" v"+x(e.version),1)])):oo("v-if",!0)])},oa.__file="src/components/Waline.vue";const ya=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ba=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0})=>{const o=new AbortController,i=Array.from(document.querySelectorAll(n)),s=e=>{const n=Zs(e);return null!==n&&t!==n},l=n=>Gi({serverURL:e,paths:n.map((e=>Zs(e)||t)),signal:o.signal}).then((e=>ya(e,n))).catch(Yi);if(r){const n=i.filter((e=>!s(e))),r=i.filter(s);es({serverURL:e,path:t}).then((e=>ya(new Array(n.length).fill(e),n))),r.length&&l(r)}else l(i);return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n})=>{var r;const o=Js(),i=ts(e),s=new AbortController;return(({serverURL:e,count:t,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${e}/comment?type=recent&count=${t}`,{signal:n,headers:o}).then((e=>e.json())).then((e=>Xi(e,"recent comment")))})({serverURL:t,count:n,signal:s.signal,token:null===(r=o.value)||void 0===r?void 0:r.token}).then((e=>i&&e.length?(i.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{s.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))},exports.commentCount=Qs,exports.defaultLang="zh-CN",exports.defaultTexRenderer=r,exports.defaultUploadImage=n,exports.getMeta=t,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const i=e?ts(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 s=ht({...o}),l=ht({comment:n,pageview:r,path:t}),a=()=>{l.comment&&Qs({serverURL:s.serverURL,path:l.path,selector:"string"==typeof l.comment?l.comment:void 0})},c=()=>{l.pageview&&ba({serverURL:s.serverURL,path:l.path,selector:"string"==typeof l.pageview?l.pageview:void 0})},u=i?li((()=>$o(oa,{path:l.path,...s}))):null;u&&u.mount(i),a(),c();const p=On(a),d=On(c);return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r})=>{Object.entries(r).forEach((([e,t])=>{s[e]=t})),l.path=n,void 0!==e&&(l.comment=e),void 0!==t&&(l.pageview=t)},destroy:()=>{null==u||u.unmount(),p(),d()}}},exports.locales=d,exports.pageviewCount=ba,exports.version="2.0.7";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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=["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"],i=e=>Object.fromEntries(e.map(((e,t)=>[o[t],e])));var l=i(["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"]),s=i(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),a=i(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说"]),c=i(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說"]),u=i(["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"]),p=i(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный"]);const d={zh:a,"zh-cn":a,"zh-CN":a,"zh-tw":c,"zh-TW":c,en:l,"en-US":l,"en-us":l,jp:s,"jp-jp":s,"jp-JP":s,"pt-br":u,"pt-BR":u,ru:p,"ru-ru":p,"ru-RU":p};function f(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 h=f("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function g(e){return!!e||""===e}function m(e){if(P(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=F(r)?b(r):m(r);if(o)for(const e in o)t[e]=o[e]}return t}return F(e)||B(e)?e:void 0}const v=/;(?![^(]*\))/g,y=/:(.+)/;function b(e){const t={};return e.split(v).forEach((e=>{if(e){const n=e.split(y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function w(e){let t="";if(F(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){const r=w(e[n]);r&&(t+=r+" ")}else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _(e,t){if(e===t)return!0;let n=N(e),r=N(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=P(e),r=P(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=B(e),r=B(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 k(e,t){return e.findIndex((e=>_(e,t)))}const x=e=>F(e)?e:null==e?"":P(e)||B(e)&&(e.toString===W||!V(e.toString))?JSON.stringify(e,S,2):String(e),S=(e,t)=>t&&t.__v_isRef?S(e,t.value):U(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:M(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||P(t)||Z(t)?t:String(t),$={},E=[],C=()=>{},O=()=>!1,R=/^on[^a-z]/,z=e=>R.test(e),I=e=>e.startsWith("onUpdate:"),A=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},L=Object.prototype.hasOwnProperty,j=(e,t)=>L.call(e,t),P=Array.isArray,U=e=>"[object Map]"===H(e),M=e=>"[object Set]"===H(e),N=e=>e instanceof Date,V=e=>"function"==typeof e,F=e=>"string"==typeof e,D=e=>"symbol"==typeof e,B=e=>null!==e&&"object"==typeof e,q=e=>B(e)&&V(e.then)&&V(e.catch),W=Object.prototype.toString,H=e=>W.call(e),Z=e=>"[object Object]"===H(e),K=e=>F(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,J=f(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Q=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y=/-(\w)/g,X=Q((e=>e.replace(Y,((e,t)=>t?t.toUpperCase():"")))),G=/\B([A-Z])/g,ee=Q((e=>e.replace(G,"-$1").toLowerCase())),te=Q((e=>e.charAt(0).toUpperCase()+e.slice(1))),ne=Q((e=>e?`on${te(e)}`:"")),re=(e,t)=>!Object.is(e,t),oe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ie=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},le=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let se;const ae=()=>se||(se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let ce;class ue{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&ce&&(this.parent=ce,this.index=(ce.scopes||(ce.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ce;try{return ce=this,e()}finally{ce=t}}}on(){ce=this}off(){ce=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 pe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,he=new WeakMap;let ge=0,me=1;let ve;const ye=Symbol(""),be=Symbol("");class we{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ce){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=ke;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,ke=!0,me=1<<++ge,ge<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):_e(this),this.fn()}finally{ge<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];de(o)&&!fe(o)?o.delete(e):t[n++]=o,o.w&=~me,o.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,ke=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===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 ke=!0;const xe=[];function Se(){xe.push(ke),ke=!1}function $e(){const e=xe.pop();ke=void 0===e||e}function Ee(e,t,n){if(ke&&ve){let t=he.get(e);t||he.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=pe()),Ce(r)}}function Ce(e,t){let n=!1;ge<=30?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve),n&&(e.add(ve),ve.deps.push(e))}function Oe(e,t,n,r,o,i){const l=he.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&P(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":P(e)?K(n)&&s.push(l.get("length")):(s.push(l.get(ye)),U(e)&&s.push(l.get(be)));break;case"delete":P(e)||(s.push(l.get(ye)),U(e)&&s.push(l.get(be)));break;case"set":U(e)&&s.push(l.get(ye))}if(1===s.length)s[0]&&Re(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Re(pe(e))}}function Re(e,t){for(const t of P(e)?e:[...e])(t!==ve||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ze=f("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(D)),Ae=Ue(),Te=Ue(!1,!0),Le=Ue(!0),je=Pe();function Pe(){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++)Ee(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){Se();const n=_t(this)[t].apply(this,e);return $e(),n}})),e}function Ue(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?dt:pt:t?ut:ct).get(n))return n;const i=P(n);if(!e&&i&&j(je,r))return Reflect.get(je,r,o);const l=Reflect.get(n,r,o);if(D(r)?Ie.has(r):ze(r))return l;if(e||Ee(n,0,r),t)return l;if(Ct(l)){return!i||!K(r)?l.value:l}return B(l)?e?gt(l):ht(l):l}}function Me(e=!1){return function(t,n,r,o){let i=t[n];if(yt(i)&&Ct(i)&&!Ct(r))return!1;if(!e&&!yt(r)&&(bt(r)||(r=_t(r),i=_t(i)),!P(t)&&Ct(i)&&!Ct(r)))return i.value=r,!0;const l=P(t)&&K(n)?Number(n)<t.length:j(t,n),s=Reflect.set(t,n,r,o);return t===_t(o)&&(l?re(r,i)&&Oe(t,"set",n,r):Oe(t,"add",n,r)),s}}const Ne={get:Ae,set:Me(),deleteProperty:function(e,t){const n=j(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Oe(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return D(t)&&Ie.has(t)||Ee(e,0,t),n},ownKeys:function(e){return Ee(e,0,P(e)?"length":ye),Reflect.ownKeys(e)}},Ve={get:Le,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Fe=A({},Ne,{get:Te,set:Me(!0)}),De=e=>e,Be=e=>Reflect.getPrototypeOf(e);function qe(e,t,n=!1,r=!1){const o=_t(e=e.__v_raw),i=_t(t);t!==i&&!n&&Ee(o,0,t),!n&&Ee(o,0,i);const{has:l}=Be(o),s=r?De:n?St:xt;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function We(e,t=!1){const n=this.__v_raw,r=_t(n),o=_t(e);return e!==o&&!t&&Ee(r,0,e),!t&&Ee(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function He(e,t=!1){return e=e.__v_raw,!t&&Ee(_t(e),0,ye),Reflect.get(e,"size",e)}function Ze(e){e=_t(e);const t=_t(this);return Be(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function Ke(e,t){t=_t(t);const n=_t(this),{has:r,get:o}=Be(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?re(t,l)&&Oe(n,"set",e,t):Oe(n,"add",e,t),this}function Je(e){const t=_t(this),{has:n,get:r}=Be(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&&Oe(t,"delete",e,void 0),i}function Qe(){const e=_t(this),t=0!==e.size,n=e.clear();return t&&Oe(e,"clear",void 0,void 0),n}function Ye(e,t){return function(n,r){const o=this,i=o.__v_raw,l=_t(i),s=t?De:e?St:xt;return!e&&Ee(l,0,ye),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function Xe(e,t,n){return function(...r){const o=this.__v_raw,i=_t(o),l=U(i),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=o[e](...r),u=n?De:t?St:xt;return!t&&Ee(i,0,a?be:ye),{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 Ge(e){return function(...t){return"delete"!==e&&this}}function et(){const e={get(e){return qe(this,e)},get size(){return He(this)},has:We,add:Ze,set:Ke,delete:Je,clear:Qe,forEach:Ye(!1,!1)},t={get(e){return qe(this,e,!1,!0)},get size(){return He(this)},has:We,add:Ze,set:Ke,delete:Je,clear:Qe,forEach:Ye(!1,!0)},n={get(e){return qe(this,e,!0)},get size(){return He(this,!0)},has(e){return We.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ye(!0,!1)},r={get(e){return qe(this,e,!0,!0)},get size(){return He(this,!0)},has(e){return We.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Xe(o,!1,!1),n[o]=Xe(o,!0,!1),t[o]=Xe(o,!1,!0),r[o]=Xe(o,!0,!0)})),[e,n,t,r]}const[tt,nt,rt,ot]=et();function it(e,t){const n=t?e?ot:rt:e?nt:tt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(j(n,r)&&r in t?n:t,r,o)}const lt={get:it(!1,!1)},st={get:it(!1,!0)},at={get:it(!0,!1)},ct=new WeakMap,ut=new WeakMap,pt=new WeakMap,dt=new WeakMap;function ft(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=>H(e).slice(8,-1))(e))}function ht(e){return yt(e)?e:mt(e,!1,Ne,lt,ct)}function gt(e){return mt(e,!0,Ve,at,pt)}function mt(e,t,n,r,o){if(!B(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=ft(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return o.set(e,s),s}function vt(e){return yt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function yt(e){return!(!e||!e.__v_isReadonly)}function bt(e){return!(!e||!e.__v_isShallow)}function wt(e){return vt(e)||yt(e)}function _t(e){const t=e&&e.__v_raw;return t?_t(t):e}function kt(e){return ie(e,"__v_skip",!0),e}const xt=e=>B(e)?ht(e):e,St=e=>B(e)?gt(e):e;function $t(e){ke&&ve&&Ce((e=_t(e)).dep||(e.dep=pe()))}function Et(e,t){(e=_t(e)).dep&&Re(e.dep)}function Ct(e){return!(!e||!0!==e.__v_isRef)}function Ot(e){return zt(e,!1)}function Rt(e){return zt(e,!0)}function zt(e,t){return Ct(e)?e:new It(e,t)}class It{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:xt(e)}get value(){return $t(this),this._value}set value(e){e=this.__v_isShallow?e:_t(e),re(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:xt(e),Et(this))}}function At(e){return Ct(e)?e.value:e}const Tt={get:(e,t,n)=>At(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Lt(e){return vt(e)?e:new Proxy(e,Tt)}class jt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new we(e,(()=>{this._dirty||(this._dirty=!0,Et(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=_t(this);return $t(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Pt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Mt(e,t,n)}return o}function Ut(e,t,n,r){if(V(e)){const o=Pt(e,t,n,r);return o&&q(o)&&o.catch((e=>{Mt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Ut(e[i],t,n,r));return o}function Mt(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 Pt(l,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Nt=!1,Vt=!1;const Ft=[];let Dt=0;const Bt=[];let qt=null,Wt=0;const Ht=[];let Zt=null,Kt=0;const Jt=Promise.resolve();let Qt=null,Yt=null;function Xt(e){const t=Qt||Jt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Ft.length&&Ft.includes(e,Nt&&e.allowRecurse?Dt+1:Dt)||e===Yt||(null==e.id?Ft.push(e):Ft.splice(function(e){let t=Dt+1,n=Ft.length;for(;t<n;){const r=t+n>>>1;on(Ft[r])<e?t=r+1:n=r}return t}(e.id),0,e),en())}function en(){Nt||Vt||(Vt=!0,Qt=Jt.then(ln))}function tn(e,t,n,r){P(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),en()}function nn(e,t=null){if(Bt.length){for(Yt=t,qt=[...new Set(Bt)],Bt.length=0,Wt=0;Wt<qt.length;Wt++)qt[Wt]();qt=null,Wt=0,Yt=null,nn(e,t)}}function rn(e){if(Ht.length){const e=[...new Set(Ht)];if(Ht.length=0,Zt)return void Zt.push(...e);for(Zt=e,Zt.sort(((e,t)=>on(e)-on(t))),Kt=0;Kt<Zt.length;Kt++)Zt[Kt]();Zt=null,Kt=0}}const on=e=>null==e.id?1/0:e.id;function ln(e){Vt=!1,Nt=!0,nn(e),Ft.sort(((e,t)=>on(e)-on(t)));try{for(Dt=0;Dt<Ft.length;Dt++){const e=Ft[Dt];e&&!1!==e.active&&Pt(e,null,14)}}finally{Dt=0,Ft.length=0,rn(),Nt=!1,Qt=null,(Ft.length||Bt.length||Ht.length)&&ln(e)}}let sn,an=[],cn=!1;function un(e,...t){sn?sn.emit(e,...t):cn||an.push({event:e,args:t})}function pn(e,t){var n,r;if(sn=e,sn)sn.enabled=!0,an.forEach((({event:e,args:t})=>sn.emit(e,...t))),an=[];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=>{pn(e,t)})),setTimeout((()=>{sn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,cn=!0,an=[])}),3e3)}else cn=!0,an=[]}const dn=gn("component:added"),fn=gn("component:updated"),hn=gn("component:removed");function gn(e){return t=>{un(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function mn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||$;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]||$;i?o=n.map((e=>e.trim())):t&&(o=n.map(le))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){un("component:emit",e.appContext.app,e,t,n)}(e,t,o);let a=r[s=ne(t)]||r[s=ne(X(t))];!a&&i&&(a=r[s=ne(ee(t))]),a&&Ut(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,Ut(c,e,6,o)}}function vn(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__&&!V(e)){const r=e=>{const n=vn(e,t,!0);n&&(s=!0,A(l,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(P(i)?i.forEach((e=>l[e]=null)):A(l,i),r.set(e,l),l):(r.set(e,null),null)}function yn(e,t){return!(!e||!z(t))&&(t=t.slice(2).replace(/Once$/,""),j(e,t[0].toLowerCase()+t.slice(1))||j(e,ee(t))||j(e,t))}let bn=null,wn=null;function _n(e){const t=bn;return bn=e,wn=e&&e.type.__scopeId||null,t}function kn(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=io(u.call(e,e,p,i,f,d,h)),v=a}else{const e=t;m=io(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:xn(a)}}catch(t){Fr.length=0,Mt(t,e,1),m=to(Nr)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(I)&&(v=Sn(v,l)),b=no(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 xn=e=>{let t;for(const n in e)("class"===n||"style"===n||z(n))&&((t||(t={}))[n]=e[n]);return t},Sn=(e,t)=>{const n={};for(const r in e)I(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function $n(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]&&!yn(n,i))return!0}return!1}function En(e,t){if(mo){let n=mo.provides;const r=mo.parent&&mo.parent.provides;r===n&&(n=mo.provides=Object.create(r)),n[e]=t}else;}function Cn(e,t,n=!1){const r=mo||bn;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&&V(t)?t.call(r.proxy):t}}function On(e,t){return In(e,null,t)}const Rn={};function zn(e,t,n){return In(e,t,n)}function In(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=$){const s=mo;let a,c,u=!1,p=!1;if(Ct(e)?(a=()=>e.value,u=bt(e)):vt(e)?(a=()=>e,r=!0):P(e)?(p=!0,u=e.some(vt),a=()=>e.map((e=>Ct(e)?e.value:vt(e)?Ln(e):V(e)?Pt(e,s,2):void 0))):a=V(e)?t?()=>Pt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Ut(e,s,3,[d])}:C,t&&r){const e=a;a=()=>Ln(e())}let d=e=>{c=m.onStop=()=>{Pt(e,s,4)}};if(wo)return d=C,t?n&&Ut(t,s,3,[a(),p?[]:void 0,d]):a(),C;let f=p?[]:Rn;const h=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>re(e,f[t]))):re(e,f)))&&(c&&c(),Ut(t,s,3,[e,f===Rn?void 0:f,d]),f=e)}else m.run()};let g;h.allowRecurse=!!t,g="sync"===o?h:"post"===o?()=>zr(h,s&&s.suspense):()=>{!s||s.isMounted?function(e){tn(e,qt,Bt,Wt)}(h):h()};const m=new we(a,g);return t?n?h():f=m.run():"post"===o?zr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&T(s.scope.effects,m)}}function An(e,t,n){const r=this.proxy,o=F(e)?e.includes(".")?Tn(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const l=mo;vo(this);const s=In(o,i.bind(r),n);return l?vo(l):yo(),s}function Tn(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 Ln(e,t){if(!B(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Ct(e))Ln(e.value,t);else if(P(e))for(let n=0;n<e.length;n++)Ln(e[n],t);else if(M(e)||U(e))e.forEach((e=>{Ln(e,t)}));else if(Z(e))for(const n in e)Ln(e[n],t);return e}function jn(e){return V(e)?{setup:e,name:e.name}:e}const Pn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function Mn(e,t){Vn(e,"a",t)}function Nn(e,t){Vn(e,"da",t)}function Vn(e,t,n=mo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Dn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Un(e.parent.vnode)&&Fn(r,t,n,e),e=e.parent}}function Fn(e,t,n,r){const o=Dn(t,e,r,!0);Jn((()=>{T(r[t],o)}),n)}function Dn(e,t,n=mo,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Se(),vo(n);const o=Ut(t,n,e,r);return yo(),$e(),o});return r?o.unshift(i):o.push(i),i}}const Bn=e=>(t,n=mo)=>(!wo||"sp"===e)&&Dn(e,t,n),qn=Bn("bm"),Wn=Bn("m"),Hn=Bn("bu"),Zn=Bn("u"),Kn=Bn("bum"),Jn=Bn("um"),Qn=Bn("sp"),Yn=Bn("rtg"),Xn=Bn("rtc");function Gn(e,t=mo){Dn("ec",e,t)}let er=!0;function tr(e){const t=or(e),n=e.proxy,r=e.ctx;er=!1,t.beforeCreate&&nr(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:O,components:R,directives:z,filters:I}=t;if(c&&function(e,t,n=C,r=!1){P(e)&&(e=ar(e));for(const n in e){const o=e[n];let i;i=B(o)?"default"in o?Cn(o.from||n,o.default,!0):Cn(o.from||n):Cn(o),Ct(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];V(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);B(t)&&(e.data=ht(t))}if(er=!0,i)for(const e in i){const t=i[e],o=V(t)?t.bind(n,n):V(t.get)?t.get.bind(n,n):C,l=!V(t)&&V(t.set)?t.set.bind(n):C,s=So({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)rr(s[e],r,n,e);if(a){const e=V(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{En(t,e[t])}))}function A(e,t){P(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&nr(u,e,"c"),A(qn,p),A(Wn,d),A(Hn,f),A(Zn,h),A(Mn,g),A(Nn,m),A(Gn,S),A(Xn,k),A(Yn,x),A(Kn,y),A(Jn,w),A(Qn,$),P(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===C&&(e.render=_),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),z&&(e.directives=z)}function nr(e,t,n){Ut(P(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function rr(e,t,n,r){const o=r.includes(".")?Tn(n,r):()=>n[r];if(F(e)){const n=t[e];V(n)&&zn(o,n)}else if(V(e))zn(o,e.bind(n));else if(B(e))if(P(e))e.forEach((e=>rr(e,t,n,r)));else{const r=V(e.handler)?e.handler.bind(n):t[e.handler];V(r)&&zn(o,r,e)}}function or(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=>ir(a,e,l,!0))),ir(a,t,l)):a=t,i.set(t,a),a}function ir(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ir(e,i,n,!0),o&&o.forEach((t=>ir(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=lr[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const lr={data:sr,props:ur,emits:ur,methods:ur,computed:ur,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:ur,directives:ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=A(Object.create(null),e);for(const r in t)n[r]=cr(e[r],t[r]);return n},provide:sr,inject:function(e,t){return ur(ar(e),ar(t))}};function sr(e,t){return t?e?function(){return A(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function ar(e){if(P(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cr(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?A(A(Object.create(null),e),t):t}function pr(e,t,n,r=!1){const o={},i={};ie(i,Yr,1),e.propsDefaults=Object.create(null),dr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:mt(o,!1,Fe,st,ut):e.type.props?e.props=o:e.props=i,e.attrs=i}function dr(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(J(a))continue;const c=t[a];let u;o&&j(o,u=X(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:yn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=_t(n),r=l||$;for(let l=0;l<i.length;l++){const s=i[l];n[s]=fr(o,t,s,r[s],e,!j(r,s))}}return s}function fr(e,t,n,r,o,i){const l=e[n];if(null!=l){const e=j(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&V(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(vo(o),r=i[n]=e.call(null,t),yo())}else r=e}l[0]&&(i&&!e?r=!1:!l[1]||""!==r&&r!==ee(n)||(r=!0))}return r}function hr(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__&&!V(e)){const r=e=>{a=!0;const[n,r]=hr(e,t,!0);A(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,E),E;if(P(i))for(let e=0;e<i.length;e++){const t=X(i[e]);gr(t)&&(l[t]=$)}else if(i)for(const e in i){const t=X(e);if(gr(t)){const n=i[e],r=l[t]=P(n)||V(n)?{type:n}:n;if(r){const e=yr(Boolean,r.type),n=yr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||j(r,"default"))&&s.push(t)}}}const c=[l,s];return r.set(e,c),c}function gr(e){return"$"!==e[0]}function mr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function vr(e,t){return mr(e)===mr(t)}function yr(e,t){return P(t)?t.findIndex((t=>vr(t,e))):V(t)&&vr(t,e)?0:-1}const br=e=>"_"===e[0]||"$stable"===e,wr=e=>P(e)?e.map(io):[io(e)],_r=(e,t,n)=>{const r=function(e,t=bn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Wr(-1);const o=_n(t),i=e(...n);return _n(o),r._d&&Wr(1),__VUE_PROD_DEVTOOLS__&&fn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>wr(t(...e))),n);return r._c=!1,r},kr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(br(n))continue;const o=e[n];if(V(o))t[n]=_r(0,o,r);else if(null!=o){const e=wr(o);t[n]=()=>e}}},xr=(e,t)=>{const n=wr(t);e.slots.default=()=>n};function Sr(e,t){const n=bn;if(null===n)return e;const r=xo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,l,s=$]=t[e];V(n)&&(n={mounted:n,updated:n}),n.deep&&Ln(i),o.push({dir:n,instance:r,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function $r(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&&(Se(),Ut(a,n,8,[e.el,s,e,t]),$e())}}function Er(){return{app:null,config:{isNativeTag:O,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 Cr=0;function Or(e,t){return function(n,r=null){V(n)||(n=Object.assign({},n)),null==r||B(r)||(r=null);const o=Er(),i=new Set;let l=!1;const s=o.app={_uid:Cr++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Eo,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&V(e.install)?(i.add(e),e.install(s,...t)):V(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=to(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){un("app:init",e,t,{Fragment:Ur,Text:Mr,Comment:Nr,Static:Vr})}(s,Eo)),xo(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){un("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function Rr(e,t,n,r,o=!1){if(P(e))return void e.forEach(((e,i)=>Rr(e,t&&(P(t)?t[i]:t),n,r,o)));if(Pn(r)&&!o)return;const i=4&r.shapeFlag?xo(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===$?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(F(c)?(u[c]=null,j(p,c)&&(p[c]=null)):Ct(c)&&(c.value=null)),V(a))Pt(a,s,12,[l,u]);else{const t=F(a),r=Ct(a);if(t||r){const r=()=>{if(e.f){const n=t?u[a]:a.value;o?P(n)&&T(n,i):P(n)?n.includes(i)||n.push(i):t?(u[a]=[i],j(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,j(p,a)&&(p[a]=l)):Ct(a)&&(a.value=l,e.k&&(u[e.k]=l))};l?(r.id=-1,zr(r,n)):r()}}}const zr=function(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):tn(e,Zt,Ht,Kt)};function Ir(e){return function(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(ae().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(ae().__VUE_PROD_DEVTOOLS__=!1);const n=ae();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&pn(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=C,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&&!Qr(e,t)&&(r=Y(e),W(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 Mr:v(e,t,n,r);break;case Nr:y(e,t,n,r);break;case Vr:null==e&&b(t,n,r,l);break;case Ur:T(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?L(e,t,n,r,o,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,o,i,l,s,a,te)}null!=u&&o&&Rr(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):R(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&&O(e.children,d,null,o,s,a&&"foreignObject"!==g,c,p),w&&$r(e,null,o,"created"),m){for(const t in m)"value"===t||J(t)||i(d,t,null,m[t],a,e.children,o,s,Q);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&ao(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&&$r(e,null,o,"beforeMount");const _=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;_&&y.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||_||w)&&zr((()=>{f&&ao(f,o,e),_&&y.enter(d),w&&$r(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)}}},O=(e,t,n,r,o,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?lo(e[c]):io(e[c]);m(null,a,t,n,r,o,i,l,s)}},R=(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||$,h=t.props||$;let g;n&&Ar(n,!1),(g=h.onVnodeBeforeUpdate)&&ao(g,n,t,e),d&&$r(t,e,n,"beforeUpdate"),n&&Ar(n,!0);const m=o&&"foreignObject"!==t.type;if(p?z(e.dynamicChildren,p,a,n,r,m,l):s||V(e,t,a,null,n,r,m,l,!1),c>0){if(16&c)I(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,Q)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||I(a,t,f,h,n,r,o);((g=h.onVnodeUpdated)||d)&&zr((()=>{g&&ao(g,n,t,e),d&&$r(t,e,n,"updated")}),r)},z=(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===Ur||!Qr(a,c)||70&a.shapeFlag)?p(a.el):n;m(a,c,u,null,r,o,i,l,!0)}},I=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(J(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,Q)}if(n!==$)for(const a in n)J(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,Q);"value"in r&&i(e,"value",n.value,r.value)}},T=(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),O(t.children,n,d,i,l,a,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(z(e.dynamicChildren,h,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&Tr(e,t,!0)):V(e,t,n,d,i,l,a,c,u)},L=(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):P(t,n,r,o,i,l,a):U(e,t,a)},P=(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)||ho,i={uid:go++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ue(!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:hr(r,o),emitsOptions:vn(r,o),emit:null,emitted:null,propsDefaults:$,inheritAttrs:r.inheritAttrs,ctx:$,data:$,props:$,attrs:$,slots:$,refs:$,setupState:$,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=mn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(Un(e)&&(s.ctx.renderer=te),function(e,t=!1){wo=t;const{props:n,children:r}=e.vnode,o=bo(e);pr(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=_t(t),ie(t,"_",n)):kr(t,e.slots={})}else e.slots={},t&&xr(e,t);ie(e.slots,Yr,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kt(new Proxy(e.ctx,fo));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)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;vo(e),Se();const o=Pt(r,e,0,[e.props,n]);if($e(),yo(),q(o)){if(o.then(yo,yo),t)return o.then((n=>{_o(e,n,t)})).catch((t=>{Mt(t,e,0)}));e.asyncDep=o}else _o(e,o,t)}else ko(e,t)}(e,t):void 0;wo=!1}(s),s.asyncDep){if(o&&o.registerDep(s,M),!e.el){const e=s.subTree=to(Nr);y(null,e,t,n)}}else M(s,e,t,n,o,i,l)},U=(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||$n(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?$n(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]&&!yn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void N(r,t,n);r.next=t,function(e){const t=Ft.indexOf(e);t>Dt&&Ft.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},M=(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;Ar(e,!1),n?(n.el=c.el,N(e,n,l)):n=c,r&&oe(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ao(t,a,n,c),Ar(e,!0);const d=kn(e),f=e.subTree;e.subTree=d,m(f,d,p(f.el),Y(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&&zr(s,o),(t=n.props&&n.props.onVnodeUpdated)&&zr((()=>ao(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&fn(e)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Pn(t);if(Ar(e,!1),c&&oe(c),!d&&(l=a&&a.onVnodeBeforeMount)&&ao(l,p,t),Ar(e,!0),s&&re){const n=()=>{e.subTree=kn(e),re(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=kn(e);m(null,l,n,r,e,o,i),t.el=l.el}if(u&&zr(u,o),!d&&(l=a&&a.onVnodeMounted)){const e=t;zr((()=>ao(l,p,e)),o)}256&t.shapeFlag&&e.a&&zr(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&dn(e),t=n=r=null}},a=e.effect=new we(s,(()=>Gt(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,Ar(e,!0),c()},N=(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;dr(e,t,o,i)&&(c=!0);for(const i in s)t&&(j(t,i)||(r=ee(i))!==i&&j(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=fr(a,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&j(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(yn(e.emitsOptions,l))continue;const u=t[l];if(a)if(j(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=X(l);o[t]=fr(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&Oe(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=$;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(A(o,t),n||1!==e||delete o._):(i=!t.$stable,kr(t,o)),l=t}else t&&(xr(e,t),l={default:1});if(i)for(const e in o)br(e)||e in l||delete o[e]})(e,t.children,n),Se(),nn(void 0,e.update),$e()},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&&Q(c,o,i),d!==c&&u(n,d)):16&p?16&h?D(c,d,n,r,o,i,l,s,a):Q(c,o,i,!0):(8&p&&u(n,""),16&h&&O(d,n,r,o,i,l,s,a))},F=(e,t,n,r,o,i,l,s,a)=>{t=t||E;const c=(e=e||E).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?lo(t[d]):io(t[d]);m(e[d],r,n,null,o,i,l,s,a)}c>u?Q(e,o,i,!0,!1,p):O(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?lo(t[c]):io(t[c]);if(!Qr(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?lo(t[d]):io(t[d]);if(!Qr(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?lo(t[c]):io(t[c]),n,p,o,i,l,s,a),c++}}else if(c>d)for(;c<=p;)W(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?lo(t[c]):io(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){W(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]&&Qr(r,t[v])){u=v;break}void 0===u?W(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):E;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,te);if(s===Ur){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===Vr)return void w(e,t,n);if(2!==o&&1&u&&a)if(0===o)a.beforeEnter(l),r(l,t,n),zr((()=>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)},W=(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&&Rr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,h=!Pn(e);let g;if(h&&(g=l&&l.onVnodeBeforeUnmount)&&ao(g,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&$r(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,te,r):c&&(i!==Ur||p>0&&64&p)?Q(c,t,n,!1,!0):(i===Ur&&384&p||!o&&16&u)&&Q(a,t,n),r&&H(e)}(h&&(g=l&&l.onVnodeUnmounted)||f)&&zr((()=>{g&&ao(g,t,e),f&&$r(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Ur)return void Z(n,r);if(t===Vr)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()},Z=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},K=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&oe(r),o.stop(),i&&(i.active=!1,W(l,e,t,n)),s&&zr(s,t),zr((()=>{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__&&hn(e)},Q=(e,t,n,r=!1,o=!1,i=0)=>{for(let l=i;l<e.length;l++)W(e[l],t,n,r,o)},Y=e=>6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),G=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),rn(),t._vnode=e},te={p:m,um:W,m:B,r:H,mt:P,mc:O,pc:V,pbc:z,n:Y,o:e};let ne,re;t&&([ne,re]=t(te));return{render:G,hydrate:ne,createApp:Or(G,ne)}}(e)}function Ar({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Tr(e,t,n=!1){const r=e.children,o=t.children;if(P(r)&&P(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]=lo(o[e]),i.el=t.el),n||Tr(t,i))}}function Lr(e,t){return function(e,t,n=!0,r=!1){const o=bn||mo;if(o){const n=o.type;if("components"===e){const e=function(e){return V(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===X(t)||e===te(X(t))))return n}const i=Pr(o[e]||n[e],t)||Pr(o.appContext[e],t);return!i&&r?n:i}}("components",e,!0,t)||e}const jr=Symbol();function Pr(e,t){return e&&(e[t]||e[X(t)]||e[te(X(t))])}const Ur=Symbol(void 0),Mr=Symbol(void 0),Nr=Symbol(void 0),Vr=Symbol(void 0),Fr=[];let Dr=null;function Br(e=!1){Fr.push(Dr=e?null:[])}let qr=1;function Wr(e){qr+=e}function Hr(e){return e.dynamicChildren=qr>0?Dr||E:null,Fr.pop(),Dr=Fr[Fr.length-1]||null,qr>0&&Dr&&Dr.push(e),e}function Zr(e,t,n,r,o,i){return Hr(eo(e,t,n,r,o,i,!0))}function Kr(e,t,n,r,o){return Hr(to(e,t,n,r,o,!0))}function Jr(e){return!!e&&!0===e.__v_isVNode}function Qr(e,t){return e.type===t.type&&e.key===t.key}const Yr="__vInternal",Xr=({key:e})=>null!=e?e:null,Gr=({ref:e,ref_key:t,ref_for:n})=>null!=e?F(e)||Ct(e)||V(e)?{i:bn,r:e,k:t,f:!!n}:e:null;function eo(e,t=null,n=null,r=0,o=null,i=(e===Ur?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xr(t),ref:t&&Gr(t),scopeId:wn,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?(so(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=F(n)?8:16),qr>0&&!l&&Dr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Dr.push(a),a}const to=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==jr||(e=Nr);if(Jr(e)){const r=no(e,t,!0);return n&&so(r,n),r}l=e,V(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?wt(e)||Yr in e?A({},e):e:null}(t);let{class:e,style:n}=t;e&&!F(e)&&(t.class=w(e)),B(n)&&(wt(n)&&!P(n)&&(n=A({},n)),t.style=m(n))}const s=F(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:B(e)?4:V(e)?2:0;return eo(e,t,n,r,o,s,i,!0)};function no(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=w([t.class,r.class]));else if("style"===e)t.style=m([t.style,r.style]);else if(z(e)){const n=t[e],o=r[e];!o||n===o||P(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&&Xr(s),ref:t&&t.ref?n&&o?P(o)?o.concat(Gr(t)):[o,Gr(t)]:Gr(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!==Ur?-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&&no(e.ssContent),ssFallback:e.ssFallback&&no(e.ssFallback),el:e.el,anchor:e.anchor}}function ro(e=" ",t=0){return to(Mr,null,e,t)}function oo(e="",t=!1){return t?(Br(),Kr(Nr,null,e)):to(Nr,null,e)}function io(e){return null==e||"boolean"==typeof e?to(Nr):P(e)?to(Ur,null,e.slice()):"object"==typeof e?lo(e):to(Mr,null,String(e))}function lo(e){return null===e.el||e.memo?e:no(e)}function so(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(P(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),so(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Yr in t?3===r&&bn&&(1===bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=bn}}else V(t)?(t={default:t,_ctx:bn},n=32):(t=String(t),64&r?(n=16,t=[ro(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(e,t,n,r=null){Ut(e,t,7,[n,r])}function co(e,t,n,r){let o;const i=n&&n[r];if(P(e)||F(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(B(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 uo=e=>e?bo(e)?xo(e)||e.proxy:uo(e.parent):null,po=A(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=>uo(e.parent),$root:e=>uo(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?or(e):e.type,$forceUpdate:e=>()=>Gt(e.update),$nextTick:e=>Xt.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?An.bind(e):C}),fo={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!==$&&j(r,t))return l[t]=1,r[t];if(o!==$&&j(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&j(c,t))return l[t]=3,i[t];if(n!==$&&j(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!er||(l[t]=0)}}const u=po[t];let p,d;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==$&&j(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,j(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==$&&j(o,t)?(o[t]=n,!0):r!==$&&j(r,t)?(r[t]=n,!0):!j(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!==$&&j(e,l)||t!==$&&j(t,l)||(s=i[0])&&j(s,l)||j(r,l)||j(po,l)||j(o.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:j(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ho=Er();let go=0;let mo=null;const vo=e=>{mo=e,e.scope.on()},yo=()=>{mo&&mo.scope.off(),mo=null};function bo(e){return 4&e.vnode.shapeFlag}let wo=!1;function _o(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Lt(t)),ko(e,n)}function ko(e,t,n){const r=e.type;e.render||(e.render=r.render||C),__VUE_OPTIONS_API__&&(vo(e),Se(),tr(e),$e(),yo())}function xo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Lt(kt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in po?po[n](e):void 0}))}const So=(e,t)=>function(e,t,n=!1){let r,o;const i=V(e);return i?(r=e,o=C):(r=e.get,o=e.set),new jt(r,o,i||!o,n)}(e,0,wo);function $o(e,t,n){const r=arguments.length;return 2===r?B(t)&&!P(t)?Jr(t)?to(e,null,[t]):to(e,t):to(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Jr(n)&&(n=[n]),to(e,t,n))}const Eo="3.2.33",Co="undefined"!=typeof document?document:null,Oo=Co&&Co.createElement("template"),Ro={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?Co.createElementNS("http://www.w3.org/2000/svg",e):Co.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.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{Oo.innerHTML=r?`<svg>${e}</svg>`:e;const o=Oo.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 zo=/\s*!important$/;function Io(e,t,n){if(P(n))n.forEach((n=>Io(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=To[t];if(n)return n;let r=X(t);if("filter"!==r&&r in e)return To[t]=r;r=te(r);for(let n=0;n<Ao.length;n++){const o=Ao[n]+r;if(o in e)return To[t]=o}return t}(e,t);zo.test(n)?e.setProperty(ee(r),n.replace(zo,""),"important"):e[r]=n}}const Ao=["Webkit","Moz","ms"],To={};const Lo="http://www.w3.org/1999/xlink";const[jo,Po]=(()=>{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 Uo=0;const Mo=Promise.resolve(),No=()=>{Uo=0};function Vo(e,t,n,r){e.addEventListener(t,n,r)}function Fo(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(Do.test(e)){let n;for(t={};n=e.match(Do);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ee(e.slice(2)),t]}(t);if(r){const l=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||jo();(Po||r>=n.attached-1)&&Ut(function(e,t){if(P(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=(()=>Uo||(Mo.then(No),Uo=jo()))(),n}(r,o);Vo(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 Do=/(?:Once|Passive|Capture)$/;const Bo=/^on[a-z]/;const qo=e=>{const t=e.props["onUpdate:modelValue"];return P(t)?e=>oe(t,e):t};function Wo(e){e.target.composing=!0}function Ho(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 Zo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=qo(o);const i=r||o.props&&"number"===o.props.type;Vo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=le(r)),e._assign(r)})),n&&Vo(e,"change",(()=>{e.value=e.value.trim()})),t||(Vo(e,"compositionstart",Wo),Vo(e,"compositionend",Ho),Vo(e,"change",Ho))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=qo(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&le(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Ko={deep:!0,created(e,t,n){e._assign=qo(n),Vo(e,"change",(()=>{const t=e._modelValue,n=Go(e),r=e.checked,o=e._assign;if(P(t)){const e=k(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(M(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ei(e,r))}))},mounted:Jo,beforeUpdate(e,t,n){e._assign=qo(n),Jo(e,t,n)}};function Jo(e,{value:t,oldValue:n},r){e._modelValue=t,P(t)?e.checked=k(t,r.props.value)>-1:M(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=_(t,ei(e,!0)))}const Qo={created(e,{value:t},n){e.checked=_(t,n.props.value),e._assign=qo(n),Vo(e,"change",(()=>{e._assign(Go(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=qo(r),t!==n&&(e.checked=_(t,r.props.value))}},Yo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=M(t);Vo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?le(Go(e)):Go(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=qo(r)},mounted(e,{value:t}){Xo(e,t)},beforeUpdate(e,t,n){e._assign=qo(n)},updated(e,{value:t}){Xo(e,t)}};function Xo(e,t){const n=e.multiple;if(!n||P(t)||M(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=Go(o);if(n)P(t)?o.selected=k(t,i)>-1:o.selected=t.has(i);else if(_(Go(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Go(e){return"_value"in e?e._value:e.value}function ei(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ti={created(e,t,n){ni(e,t,n,null,"created")},mounted(e,t,n){ni(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ni(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ni(e,t,n,r,"updated")}};function ni(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=Yo;break;case"TEXTAREA":i=Zo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Ko;break;case"radio":i=Qo;break;default:i=Zo}}const l=i[o];l&&l(e,t,n,r)}const ri={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):oi(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),oi(e,!0),r.enter(e)):r.leave(e,(()=>{oi(e,!1)})):oi(e,t))},beforeUnmount(e,{value:t}){oi(e,t)}};function oi(e,t){e.style.display=t?e._vod:"none"}const ii=A({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=F(n);if(n&&!o){for(const e in n)Io(r,e,n[e]);if(t&&!F(t))for(const e in t)null==n[e]&&Io(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):z(t)?I(t)||Fo(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&&Bo.test(t)&&V(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(Bo.test(t)&&F(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=g(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(Lo,t.slice(6,t.length)):e.setAttributeNS(Lo,t,n);else{const r=h(t);null==n||r&&!g(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Ro);let li;const si=(...e)=>{const t=(li||(li=Ir(ii))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(F(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;V(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 ai(e){return!!ce&&(function(e){ce&&ce.cleanups.push(e)}(e),!0)}const ci="undefined"!=typeof window,ui=()=>{};const pi=e=>e();var di=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable;function gi(e,t,n={}){const r=n,{eventFilter:o=pi}=r,i=((e,t)=>{var n={};for(var r in e)fi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&di)for(var r of di(e))t.indexOf(r)<0&&hi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return zn(e,(l=o,s=t,function(...e){l((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})}),i);var l,s}var mi=Object.defineProperty,vi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function xi(e,t,n={}){const r=n,{eventFilter:o}=r,i=((e,t)=>{var n={};for(var r in e)wi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bi)for(var r of bi(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=pi){const t=Ot(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(o),u=gi(e,t,(p=((e,t)=>{for(var n in t||(t={}))wi.call(t,n)&&ki(e,n,t[n]);if(bi)for(var n of bi(t))_i.call(t,n)&&ki(e,n,t[n]);return e})({},i),vi(p,yi({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const Si=ci?window:void 0,$i=ci?window.document:void 0;function Ei(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=Si):[t,n,r,o]=e,!t)return ui;let i=ui;const l=zn((()=>function(e){var t;const n=At(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=ui})}),{immediate:!0,flush:"post"}),s=()=>{l(),i()};return ai(s),s}ci&&window.navigator,ci&&window.location;const Ci="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Oi="__vueuse_ssr_handlers__";Ci[Oi]=Ci[Oi]||{};const Ri=Ci[Oi];const zi={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 Ii(e,t,n,r={}){var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Si,eventFilter:p,onError:d=(e=>{console.error(e)})}=r,f=(c?Rt:Ot)(t);if(!n)try{n=function(e,t){return Ri[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Si)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return f;const h=At(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:zi[g],{pause:v,resume:y}=xi(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&&Ei(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 Ai,Ti,Li=Object.defineProperty,ji=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Mi=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ni(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Ot(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Si}=t,o=Ot(!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(),ai(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=Ot(!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,At(t)))}r&&ci&&c(),Ct(t)&&ai(zn(t,(()=>{r&&ci&&c()})));return ai(a),{isActive:l,pause:a,resume:c}}(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Pi.call(t,n)&&Mi(e,n,t[n]);if(ji)for(var n of ji(t))Ui.call(t,n)&&Mi(e,n,t[n]);return e})({now:r},i):r}ci&&(null==window?void 0:window.navigator)&&(null==(Ai=null==window?void 0:window.navigator)?void 0:Ai.platform)&&/iP(ad|hone|od)/.test(null==(Ti=null==window?void 0:window.navigator)?void 0:Ti.platform);let Vi=0;const Fi=e=>{try{e=decodeURI(e)}catch(e){}return e},Di=(e="")=>e.replace(/\/$/u,""),Bi=e=>/^(https?:)?\/\//.test(e);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var qi={exports:{}},Wi=qi.exports=function(){function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),n=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],r=function(e,r){void 0===r&&(r={});var i=r.colors;void 0===i&&(i=n);var l=0,s={},a=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+t().source+")","gmi");return e.replace(a,(function(e,t,n){if(n)return o(n);if("<"===t)return"&lt;";var r;s[t]?r=s[t]:(r=i[l],s[t]=r);var a='<span style="color: #'+r+'">'+t+"</span>";return l=++l%i.length,a}))};function o(e){return'<span style="color: slategray">'+e+"</span>"}return r}();const Hi=e=>{const t=Di(e);return Bi(t)?t:`https://${t}`},Zi=e=>Array.isArray(e)?e:!!e&&[0,e],Ki=(e,t)=>"function"==typeof e?e:!1!==e&&t,Ji="{--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}",Qi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Yi=(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=Qi(e.getDate(),2),n=Qi(e.getMonth()+1,2);return`${Qi(e.getFullYear(),2)}-${n}-${t}`})(r)},Xi=e=>{const t=Ii("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}))},Gi=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,el=e=>{"AbortError"!==e.name&&console.error(e.message)},tl=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},nl=({serverURL:e,paths:t,signal:n})=>fetch(`${e}/article?path=${encodeURIComponent(t.join(","))}`,{signal:n}).then((e=>e.json())).then((e=>tl(e,"visit count"))).then((e=>Array.isArray(e)?e:[e])),rl=({serverURL:e,path:t})=>fetch(`${e}/article`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})}).then((e=>e.json())).then((e=>tl(e,"visit count"))),ol=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,il=e=>e.type.includes("image"),ll=e=>{const t=Array.from(e).find(il);return t?t.getAsFile():null};function sl(){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 al={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 cl=/[&<>"']/,ul=/[&<>"']/g,pl=/[<>"']|&(?!#?\w+;)/,dl=/[<>"']|&(?!#?\w+;)/g,fl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hl=e=>fl[e];function gl(e,t){if(t){if(cl.test(e))return e.replace(ul,hl)}else if(pl.test(e))return e.replace(dl,hl);return e}const ml=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function vl(e){return e.replace(ml,((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 yl=/(^|[^\[])\^/g;function bl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(yl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const wl=/[^\w:]/g,_l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function kl(e,t,n){if(e){let e;try{e=decodeURIComponent(vl(n)).replace(wl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!_l.test(n)&&(n=function(e,t){xl[" "+e]||(Sl.test(e)?xl[" "+e]=e+"/":xl[" "+e]=zl(e,"/",!0));const n=-1===(e=xl[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace($l,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(El,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const xl={},Sl=/^[^:]+:\/*[^/]*$/,$l=/^([^:]+:)[\s\S]*$/,El=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Cl={exec:function(){}};function Ol(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 Rl(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 zl(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 Il(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 Al(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Tl(e,t,n,r){const o=t.href,i=t.title?gl(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:gl(l)}}class Ll{constructor(e){this.options=e||al}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:zl(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=zl(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]):gl(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:Rl(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]=Rl(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:gl(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]):gl(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=zl(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)),Tl(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 Tl(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=gl(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=gl(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=gl(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=gl(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=gl(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]):gl(n[0]):n[0]:gl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const jl={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:Cl,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?'|\([^()]*\))/};jl.def=bl(jl.def).replace("label",jl._label).replace("title",jl._title).getRegex(),jl.bullet=/(?:[*+-]|\d{1,9}[.)])/,jl.listItemStart=bl(/^( *)(bull) */).replace("bull",jl.bullet).getRegex(),jl.list=bl(jl.list).replace(/bull/g,jl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+jl.def.source+")").getRegex(),jl._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",jl._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,jl.html=bl(jl.html,"i").replace("comment",jl._comment).replace("tag",jl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jl.paragraph=bl(jl._paragraph).replace("hr",jl.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",jl._tag).getRegex(),jl.blockquote=bl(jl.blockquote).replace("paragraph",jl.paragraph).getRegex(),jl.normal=Ol({},jl),jl.gfm=Ol({},jl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),jl.gfm.table=bl(jl.gfm.table).replace("hr",jl.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",jl._tag).getRegex(),jl.gfm.paragraph=bl(jl._paragraph).replace("hr",jl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",jl.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",jl._tag).getRegex(),jl.pedantic=Ol({},jl.normal,{html:bl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",jl._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:Cl,paragraph:bl(jl.normal._paragraph).replace("hr",jl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",jl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Pl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Cl,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:Cl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Ul(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 Ml(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}Pl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Pl.punctuation=bl(Pl.punctuation).replace(/punctuation/g,Pl._punctuation).getRegex(),Pl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Pl.escapedEmSt=/\\\*|\\_/g,Pl._comment=bl(jl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Pl.emStrong.lDelim=bl(Pl.emStrong.lDelim).replace(/punct/g,Pl._punctuation).getRegex(),Pl.emStrong.rDelimAst=bl(Pl.emStrong.rDelimAst,"g").replace(/punct/g,Pl._punctuation).getRegex(),Pl.emStrong.rDelimUnd=bl(Pl.emStrong.rDelimUnd,"g").replace(/punct/g,Pl._punctuation).getRegex(),Pl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Pl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Pl._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])?)+(?![-_])/,Pl.autolink=bl(Pl.autolink).replace("scheme",Pl._scheme).replace("email",Pl._email).getRegex(),Pl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Pl.tag=bl(Pl.tag).replace("comment",Pl._comment).replace("attribute",Pl._attribute).getRegex(),Pl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Pl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Pl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Pl.link=bl(Pl.link).replace("label",Pl._label).replace("href",Pl._href).replace("title",Pl._title).getRegex(),Pl.reflink=bl(Pl.reflink).replace("label",Pl._label).replace("ref",jl._label).getRegex(),Pl.nolink=bl(Pl.nolink).replace("ref",jl._label).getRegex(),Pl.reflinkSearch=bl(Pl.reflinkSearch,"g").replace("reflink",Pl.reflink).replace("nolink",Pl.nolink).getRegex(),Pl.normal=Ol({},Pl),Pl.pedantic=Ol({},Pl.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:bl(/^!?\[(label)\]\((.*?)\)/).replace("label",Pl._label).getRegex(),reflink:bl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pl._label).getRegex()}),Pl.gfm=Ol({},Pl.normal,{escape:bl(Pl.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Pl.gfm.url=bl(Pl.gfm.url,"i").replace("email",Pl.gfm._extended_email).getRegex(),Pl.breaks=Ol({},Pl.gfm,{br:bl(Pl.br).replace("{2,}","*").getRegex(),text:bl(Pl.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Nl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||al,this.options.tokenizer=this.options.tokenizer||new Ll,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:jl.normal,inline:Pl.normal};this.options.pedantic?(t.block=jl.pedantic,t.inline=Pl.pedantic):this.options.gfm&&(t.block=jl.gfm,this.options.breaks?t.inline=Pl.breaks:t.inline=Pl.gfm),this.tokenizer.rules=t}static get rules(){return{block:jl,inline:Pl}}static lex(e,t){return new Nl(t).lex(e)}static lexInline(e,t){return new Nl(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)+"["+Al("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)+"["+Al("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,Ml))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Ml))){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,Ul))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 Vl{constructor(e){this.options=e||al}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+gl(r,!0)+'">'+(n?e:gl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:gl(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=kl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+gl(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=kl(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 Fl{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 Dl{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 Bl{constructor(e){this.options=e||al,this.options.renderer=this.options.renderer||new Vl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fl,this.slugger=new Dl}static parse(e,t){return new Bl(t).parse(e)}static parseInline(e,t){return new Bl(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,vl(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 ql(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),Il(t=Ol({},ql.defaults,t||{})),n){const r=t.highlight;let o;try{o=Nl.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&ql.walkTokens(o,t.walkTokens),i=Bl.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 ql.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=Nl.lex(e,t);return t.walkTokens&&ql.walkTokens(n,t.walkTokens),Bl.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>"+gl(e.message+"",!0)+"</pre>";throw e}}ql.options=ql.setOptions=function(e){var t;return Ol(ql.defaults,e),t=ql.defaults,al=t,ql},ql.getDefaults=sl,ql.defaults=al,ql.use=function(...e){const t=Ol({},...e),n=ql.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=ql.defaults.renderer||new Vl;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=ql.defaults.tokenizer||new Ll;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=ql.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),ql.setOptions(t)}))},ql.walkTokens=function(e,t){for(const n of e)switch(t.call(ql,n),n.type){case"table":for(const e of n.header)ql.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)ql.walkTokens(n.tokens,t);break;case"list":ql.walkTokens(n.items,t);break;default:ql.defaults.extensions&&ql.defaults.extensions.childTokens&&ql.defaults.extensions.childTokens[n.type]?ql.defaults.extensions.childTokens[n.type].forEach((function(e){ql.walkTokens(n[e],t)})):n.tokens&&ql.walkTokens(n.tokens,t)}},ql.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");Il(t=Ol({},ql.defaults,t||{}));try{const n=Nl.lexInline(e,t);return t.walkTokens&&ql.walkTokens(n,t.walkTokens),Bl.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>"+gl(e.message+"",!0)+"</pre>";throw e}},ql.Parser=Bl,ql.parser=Bl.parse,ql.Renderer=Vl,ql.TextRenderer=Fl,ql.Lexer=Nl,ql.lexer=Nl.lex,ql.Tokenizer=Ll,ql.Slugger=Dl,ql.parse=ql;const Wl=/\$.*?\$/,Hl=/^\$(.*?)\$/,Zl=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Kl=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Jl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(ql.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Zl.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(Wl);return-1!==t?t:e.length},tokenizer(t){const n=Hl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);ql.use({extensions:e})}return ql.parse(Kl(e,t))},Ql=e=>e.dataset.path||e.getAttribute("id"),Yl=()=>Ii("USER_KEY",{}),Xl=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count"})=>{var r;const o=new AbortController,i=document.querySelectorAll(n),l=Yl();return i.length&&(({serverURL:e,paths:t,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${e}/comment?type=count&url=${encodeURIComponent(t.join(","))}`,{signal:n,headers:o}).then((e=>e.json())).then((e=>tl(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:Array.from(i).map((e=>Fi(e.dataset.path||e.getAttribute("id")||t))),signal:o.signal,token:null===(r=l.value)||void 0===r?void 0:r.token}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(el),o.abort.bind(o)};var Gl,es,ts="function"==typeof Map?new Map:(Gl=[],es=[],{has:function(e){return Gl.indexOf(e)>-1},get:function(e){return es[Gl.indexOf(e)]},set:function(e,t){-1===Gl.indexOf(e)&&(Gl.push(e),es.push(t))},delete:function(e){var t=Gl.indexOf(e);t>-1&&(Gl.splice(t,1),es.splice(t,1))}}),ns=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Gl){ns=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function rs(e){var t=ts.get(e);t&&t.destroy()}function os(e){var t=ts.get(e);t&&t.update()}var is=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((is=function(e){return e}).destroy=function(e){return e},is.update=function(e){return e}):((is=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&&!ts.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]})),ts.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",ts.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=ns("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],rs),e},is.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],os),e});var ls=is;const ss=({size:e})=>$o("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},$o("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},$o("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var as=jn({name:"CommentBox",components:{CloseIcon:({size:e})=>$o("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[$o("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"}),$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[$o("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"}),$o("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:()=>$o("svg",{width:"16",height:"16",ariaHidden:"true"},$o("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:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[$o("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"}),$o("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:ss},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=Cn("config"),r=Ii("WALINE_COMMENT_BOX_EDITOR",""),o=Ii("WALINE_USER_META",{nick:"",mail:"",link:""}),i=Yl(),l=Ot({}),s=Ot(null),a=Ot(null),c=Ot(null),u=Ot(null),p=Ot({tabs:[],map:{}}),d=Ot(0),f=Ot(!1),h=Ot(!1),g=Ot(""),m=Ot(0),v=Ot(0),y=Ot(!1),b=Ot(""),w=Ot(!1),_=So((()=>n.value.locale)),k=So((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),x=So((()=>!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.name}](${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)?\.){0,2}\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=Kl($.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 zn([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}),Wn((()=>{document.body.addEventListener("click",C),zn((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;b.value=e,g.value=Jl(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?ls(s.value):ls.destroy(s.value)}),{immediate:!0}),zn((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?Xi(Di(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:Gi(o,r,i,l),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Gi(e,r,i,l),n}))})})),t}))).then((e=>{p.value=e}));var t}),{immediate:!0})})),Jn((()=>{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=ll(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=ll(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 cs={class:"wl-comment"},us={key:0,class:"wl-login-info"},ps={class:"wl-avatar"},ds=["title"],fs=["src"],hs=["textContent"],gs={class:"wl-panel"},ms=["for","textContent"],vs=["id","name","type","onUpdate:modelValue"],ys=["placeholder"],bs={class:"wl-preview"},ws=eo("hr",null,null,-1),_s=["innerHTML"],ks={class:"wl-footer"},xs={class:"wl-actions"},Ss={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},$s=["title"],Es=["title"],Cs=["title"],Os={class:"wl-info"},Rs={class:"wl-text-number"},zs={key:0},Is=ro("  /  "),As=["textContent"],Ts=["textContent"],Ls=["disabled"],js={key:0,class:"wl-tab-wrapper"},Ps=["title","onClick"],Us=["src","alt"],Ms={key:0,class:"wl-tabs"},Ns=["onClick"],Vs=["src","alt","title"],Fs=["title"];as.render=function(e,t,n,r,o,i){const l=Lr("CloseIcon"),s=Lr("MarkdownIcon"),a=Lr("EmojiIcon"),c=Lr("ImageIcon"),u=Lr("PreviewIcon"),p=Lr("LoadingIcon");return Br(),Zr("div",cs,["disable"!==e.config.login&&e.isLogin?(Br(),Zr("div",us,[eo("div",ps,[eo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[to(l,{size:14})],8,ds),eo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,fs)]),eo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:x(e.userInfo.display_name)},null,8,hs)])):oo("v-if",!0),eo("div",gs,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Br(),Zr("div",{key:0,class:w(["wl-header",`item${e.config.meta.length}`])},[(Br(!0),Zr(Ur,null,co(e.config.meta,(t=>(Br(),Zr("div",{class:"wl-header-item",key:t},[eo("label",{for:t,textContent:x(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,ms),Sr(eo("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:`wl-${t}`,class:w(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,vs),[[ti,e.userMeta[t]]])])))),128))],2)):oo("v-if",!0),Sr(eo("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,ys),[[Zo,e.editor]]),Sr(eo("div",bs,[ws,eo("h4",null,x(e.locale.preview)+":",1),eo("div",{class:"wl-content",innerHTML:e.previewText},null,8,_s)],512),[[ri,e.showPreview]]),eo("div",ks,[eo("div",xs,[eo("a",Ss,[to(s)]),Sr(eo("button",{ref:"emojiButtonRef",class:w(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[to(a)],10,$s),[[ri,e.emoji.tabs.length]]),eo("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?(Br(),Zr("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[to(c)],8,Es)):oo("v-if",!0),eo("button",{class:w(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[to(u)],10,Cs)]),eo("div",Os,[eo("div",Rs,[ro(x(e.wordNumber)+" ",1),e.config.wordLimit?(Br(),Zr("span",zs,[Is,eo("span",{class:w({illegal:!e.isWordNumberLegal}),textContent:x(e.wordLimit)},null,10,As)])):oo("v-if",!0),ro("  "+x(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?oo("v-if",!0):(Br(),Zr("button",{key:0,class:"wl-btn",onClick:t[9]||(t[9]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:x(e.locale.login)},null,8,Ts)),"force"!==e.config.login||e.isLogin?(Br(),Zr("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?(Br(),Kr(p,{key:0,size:16})):(Br(),Zr(Ur,{key:1},[ro(x(e.locale.submit),1)],2112))],8,Ls)):oo("v-if",!0)]),eo("div",{ref:"emojiPopupRef",class:w(["wl-emoji-popup",{display:e.showEmoji}])},[(Br(!0),Zr(Ur,null,co(e.emoji.tabs,((t,n)=>(Br(),Zr(Ur,{key:t.name},[n===e.emojiTabIndex?(Br(),Zr("div",js,[(Br(!0),Zr(Ur,null,co(t.items,(t=>(Br(),Zr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Br(),Zr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Us)):oo("v-if",!0)],8,Ps)))),128))])):oo("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Br(),Zr("div",Ms,[(Br(!0),Zr(Ur,null,co(e.emoji.tabs,((t,n)=>(Br(),Zr("button",{key:t.name,class:w(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[eo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Vs)],10,Ns)))),128))])):oo("v-if",!0)],2)])]),e.replyId?(Br(),Zr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[to(l,{size:24})],8,Fs)):oo("v-if",!0)])},as.__file="src/components/CommentBox.vue";var Ds=jn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:as,ReplyIcon:()=>$o("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},$o("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:()=>$o("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},$o("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=Cn("config"),n=So((()=>t.value.locale)),r=So((()=>{let{link:t}=e.comment;return t?Bi(t)?t:`https://${t}`:""})),o=((e,t)=>{const n=Ni();return So((()=>Yi(e,n.value,t)))})(e.comment.insertedAt,n.value),i=So((()=>{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 Bs=["id"],qs={class:"wl-user","aria-hidden":"true"},Ws=["src"],Hs={class:"wl-card"},Zs={class:"wl-head"},Ks=["href"],Js={key:1,class:"wl-nick"},Qs=["textContent"],Ys=["textContent"],Xs=["textContent"],Gs=["textContent"],ea=["title"],ta={class:"wl-meta","aria-hidden":"true"},na=["textContent"],ra=["textContent"],oa=["innerHTML"],ia={key:0,class:"wl-reply-wrapper"},la={key:1,class:"wl-quote"};Ds.render=function(e,t,n,r,o,i){const l=Lr("VerifiedIcon"),s=Lr("ReplyIcon"),a=Lr("CommentBox"),c=Lr("CommentCard",!0);return Br(),Zr("div",{class:"wl-item",id:e.comment.objectId},[eo("div",qs,[e.comment.avatar?(Br(),Zr("img",{key:0,src:e.comment.avatar},null,8,Ws)):oo("v-if",!0),e.comment.type?(Br(),Kr(l,{key:1})):oo("v-if",!0)]),eo("div",Hs,[eo("div",Zs,[e.link?(Br(),Zr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},x(e.comment.nick),9,Ks)):(Br(),Zr("span",Js,x(e.comment.nick),1)),"administrator"===e.comment.type?(Br(),Zr("span",{key:2,class:"wl-badge",textContent:x(e.locale.admin)},null,8,Qs)):oo("v-if",!0),e.comment.sticky?(Br(),Zr("span",{key:3,class:"wl-badge",textContent:x(e.locale.sticky)},null,8,Ys)):oo("v-if",!0),e.comment.level>=0?(Br(),Zr("span",{key:4,class:"wl-badge",textContent:x(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,8,Xs)):oo("v-if",!0),eo("span",{class:"wl-time",textContent:x(e.time)},null,8,Gs),eo("button",{class:w(["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))},[to(s)],10,ea)]),eo("div",ta,[e.comment.browser?(Br(),Zr("span",{key:0,textContent:x(e.comment.browser)},null,8,na)):oo("v-if",!0),e.comment.os?(Br(),Zr("span",{key:1,textContent:x(e.comment.os)},null,8,ra)):oo("v-if",!0)]),eo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,oa),e.isReplyingCurrent?(Br(),Zr("div",ia,[to(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"])])):oo("v-if",!0),e.comment.children?(Br(),Zr("div",la,[(Br(!0),Zr(Ur,null,co(e.comment.children,(n=>(Br(),Kr(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))])):oo("v-if",!0)])],8,Bs)},Ds.__file="src/components/CommentCard.vue";var sa=jn({name:"WalineRoot",components:{CommentBox:as,CommentCard:Ds,LoadingIcon:ss},props:{serverURL:{type:String,required:!0},path:{type:String,required:!0},meta:{type:Array},requiredMeta:{type:Array},dark:{type:[String,Boolean]},lang:{type:String},locale:{type:Object},pageSize:{type:Number},wordLimit:{type:[Number,Array]},emoji:{type:[Array,Boolean]},login:{type:String},highlighter:{type:Function},imageUploader:{type:[Function,Boolean]},texRenderer:{type:[Function,Boolean]}},setup(e){const o=So((()=>(({serverURL:e,path:o=location.pathname,lang:i="zh-CN",locale:l,emoji:s=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:a=["nick","mail","link"],requiredMeta:c=[],dark:u=!1,pageSize:p=10,wordLimit:f,imageUploader:h,highlighter:g,texRenderer:m,copyright:v=!0,login:y="enable",...b})=>({serverURL:Hi(e),path:Fi(o),locale:{...d[i]||d["zh-CN"],..."object"==typeof l?l:{}},wordLimit:Zi(f),meta:t(a),requiredMeta:t(c),imageUploader:Ki(h,n),highlighter:Ki(g,Wi),texRenderer:Ki(m,r),lang:i,dark:u,emoji:s,pageSize:p,login:y,copyright:v,...b}))(e))),i=Yl(),l=Ot("loading"),s=Ot(0),a=Ot(1),c=Ot(0),u=Ot([]),p=Ot(null),f=So((()=>{return"string"==typeof(e=o.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${Ji}}`:`${e}${Ji}`:!0===e?`:root${Ji}`:"";var e}));let h;!function(e,t={}){const n=Ot(!1),{document:r=$i,immediate:o=!0,manual:i=!1,id:l="vueuse_styletag_"+ ++Vi}=t,s=Ot(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=zn(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||ai(u),gt(n)}(f);const g=e=>{var t;const{serverURL:n,path:r,pageSize:p}=o.value,d=new AbortController;l.value="loading",null==h||h(),(({serverURL:e,path:t,page:n,pageSize:r,signal:o,token:i})=>{const l={};return i&&(l.Authorization=`Bearer ${i}`),fetch(`${e}/comment?path=${encodeURIComponent(t)}&pageSize=${r}&page=${n}`,{signal:o,headers:l}).then((e=>e.json())).then((e=>tl(e,"comment list")))})({serverURL:n,path:r,pageSize:p,page:e,signal:d.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((t=>{l.value="success",s.value=t.count,u.value.push(...t.data),a.value=e,c.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),l.value="error")})),h=d.abort.bind(d)},m=()=>{s.value=0,u.value=[],g(1)};return En("config",o),zn((()=>e.path),m),Wn((()=>m())),{config:o,darkmodeStyle:f,i18n:So((()=>o.value.locale)),status:l,count:s,page:a,totalPages:c,data:u,reply:p,loadMore:()=>g(a.value+1),refresh:m,onReply:e=>{p.value=e},onSubmit:e=>{if(e.rid){const t=u.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else u.value.unshift(e)},version:"2.1.0"}}});const aa={"data-waline":""},ca={class:"wl-count"},ua=["textContent"],pa={class:"wl-cards"},da={key:1,class:"wl-operation"},fa=["textContent"],ha={key:0,class:"wl-loading"},ga=["textContent"],ma={class:"wl-operation"},va=["textContent"],ya={key:3,class:"wl-power"},ba=ro(" Powered by "),wa=eo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);sa.render=function(e,t,n,r,o,i){const l=Lr("CommentBox"),s=Lr("CommentCard"),a=Lr("LoadingIcon");return Br(),Zr("div",aa,[e.reply?oo("v-if",!0):(Br(),Kr(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),eo("div",ca,[e.count?(Br(),Zr("span",{key:0,class:"wl-num",textContent:x(e.count)},null,8,ua)):oo("v-if",!0),ro(" "+x(e.i18n.comment),1)]),eo("div",pa,[(Br(!0),Zr(Ur,null,co(e.data,(t=>(Br(),Kr(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?(Br(),Zr("div",da,[eo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:x(e.i18n.refresh)},null,8,fa)])):(Br(),Zr(Ur,{key:2},["loading"===e.status?(Br(),Zr("div",ha,[to(a,{size:30})])):e.data.length?e.page<e.totalPages?(Br(),Zr(Ur,{key:2},[oo(" Load more button "),eo("div",ma,[eo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:x(e.i18n.more)},null,8,va)])],2112)):oo("v-if",!0):(Br(),Zr("div",{key:1,class:"wl-empty",textContent:x(e.i18n.sofa)},null,8,ga))],2112)),oo(" Copyright Information "),e.config.copyright?(Br(),Zr("div",ya,[ba,wa,ro(" v"+x(e.version),1)])):oo("v-if",!0)])},sa.__file="src/components/Waline.vue";const _a=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ka=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0})=>{const o=new AbortController,i=Array.from(document.querySelectorAll(n)),l=e=>{const n=Ql(e);return null!==n&&t!==n},s=n=>nl({serverURL:e,paths:n.map((e=>Ql(e)||t)),signal:o.signal}).then((e=>_a(e,n))).catch(el);if(r){const n=i.filter((e=>!l(e))),r=i.filter(l);rl({serverURL:e,path:t}).then((e=>_a(new Array(n.length).fill(e),n))),r.length&&s(r)}else s(i);return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n})=>{var r;const o=Yl(),i=ol(e),l=new AbortController;return(({serverURL:e,count:t,signal:n,token:r})=>{const o={};return r&&(o.Authorization=`Bearer ${r}`),fetch(`${e}/comment?type=recent&count=${t}`,{signal:n,headers:o}).then((e=>e.json())).then((e=>tl(e,"recent comment")))})({serverURL:t,count:n,signal:l.signal,token:null===(r=o.value)||void 0===r?void 0:r.token}).then((e=>i&&e.length?(i.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))},exports.commentCount=Xl,exports.defaultLang="zh-CN",exports.defaultTexRenderer=r,exports.defaultUploadImage=n,exports.getMeta=t,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...o})=>{const i=e?ol(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=ht({...o}),s=ht({comment:n,pageview:r,path:t}),a=()=>{s.comment&&Xl({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})},c=()=>{s.pageview&&ka({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})},u=i?si((()=>$o(sa,{path:s.path,...l}))):null;u&&u.mount(i),a(),c();const p=On(a),d=On(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()}}},exports.locales=d,exports.pageviewCount=ka,exports.version="2.1.0";
2
2
  //# sourceMappingURL=waline.cjs.js.map