@n8n/chat 0.3.0 → 0.4.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.
Files changed (104) hide show
  1. package/README.md +22 -5
  2. package/chat.bundle.es.js +10756 -0
  3. package/chat.bundle.umd.js +18 -0
  4. package/chat.es.js +6866 -0
  5. package/chat.umd.js +18 -0
  6. package/package.json +62 -2
  7. package/style.css +1 -0
  8. package/types/App.vue.d.ts +8 -0
  9. package/types/__stories__/App.stories.d.ts +17 -0
  10. package/types/__tests__/index.spec.d.ts +1 -0
  11. package/types/__tests__/setup.d.ts +0 -0
  12. package/types/__tests__/utils/create.d.ts +5 -0
  13. package/types/__tests__/utils/fetch.d.ts +4 -0
  14. package/types/__tests__/utils/selectors.d.ts +12 -0
  15. package/types/api/generic.d.ts +6 -0
  16. package/types/api/message.d.ts +3 -0
  17. package/types/components/Button.vue.d.ts +9 -0
  18. package/types/components/Chat.vue.d.ts +2 -0
  19. package/types/components/ChatWindow.vue.d.ts +2 -0
  20. package/types/components/GetStarted.vue.d.ts +2 -0
  21. package/types/components/GetStartedFooter.vue.d.ts +2 -0
  22. package/types/components/Input.vue.d.ts +2 -0
  23. package/types/components/Layout.vue.d.ts +11 -0
  24. package/types/components/Message.vue.d.ts +21 -0
  25. package/types/components/MessageTyping.vue.d.ts +15 -0
  26. package/types/components/MessagesList.vue.d.ts +14 -0
  27. package/types/components/PoweredBy.vue.d.ts +2 -0
  28. package/types/composables/useChat.d.ts +2 -0
  29. package/types/composables/useI18n.d.ts +4 -0
  30. package/types/composables/useOptions.d.ts +4 -0
  31. package/types/constants/defaults.d.ts +3 -0
  32. package/types/constants/localStorage.d.ts +2 -0
  33. package/types/constants/symbols.d.ts +4 -0
  34. package/types/event-buses/chatEventBus.d.ts +1 -0
  35. package/types/index.d.ts +2 -0
  36. package/types/plugins/chat.d.ts +3 -0
  37. package/types/types/chat.d.ts +11 -0
  38. package/types/types/messages.d.ts +6 -0
  39. package/types/types/options.d.ts +24 -0
  40. package/types/types/webhook.d.ts +15 -0
  41. package/types/utils/event-bus.d.ts +8 -0
  42. package/types/utils/mount.d.ts +1 -0
  43. package/.eslintignore +0 -2
  44. package/.eslintrc.cjs +0 -52
  45. package/.np-config.json +0 -5
  46. package/.storybook/main.ts +0 -27
  47. package/.storybook/preview.scss +0 -4
  48. package/.storybook/preview.ts +0 -16
  49. package/.vscode/extensions.json +0 -3
  50. package/env.d.ts +0 -1
  51. package/index.html +0 -13
  52. package/resources/workflow.json +0 -293
  53. package/scripts/pack.js +0 -11
  54. package/scripts/postbuild.js +0 -16
  55. package/src/App.vue +0 -23
  56. package/src/__stories__/App.stories.ts +0 -43
  57. package/src/__tests__/index.spec.ts +0 -223
  58. package/src/__tests__/setup.ts +0 -1
  59. package/src/__tests__/utils/create.ts +0 -16
  60. package/src/__tests__/utils/fetch.ts +0 -18
  61. package/src/__tests__/utils/selectors.ts +0 -53
  62. package/src/api/generic.ts +0 -64
  63. package/src/api/message.ts +0 -31
  64. package/src/components/Button.vue +0 -41
  65. package/src/components/Chat.vue +0 -48
  66. package/src/components/ChatWindow.vue +0 -125
  67. package/src/components/GetStarted.vue +0 -24
  68. package/src/components/GetStartedFooter.vue +0 -20
  69. package/src/components/Input.vue +0 -93
  70. package/src/components/Layout.vue +0 -82
  71. package/src/components/Message.vue +0 -97
  72. package/src/components/MessageTyping.vue +0 -109
  73. package/src/components/MessagesList.vue +0 -37
  74. package/src/components/PoweredBy.vue +0 -17
  75. package/src/composables/useChat.ts +0 -7
  76. package/src/composables/useI18n.ts +0 -16
  77. package/src/composables/useOptions.ts +0 -11
  78. package/src/constants/defaults.ts +0 -25
  79. package/src/constants/localStorage.ts +0 -2
  80. package/src/constants/symbols.ts +0 -8
  81. package/src/event-buses/chatEventBus.ts +0 -3
  82. package/src/index.ts +0 -42
  83. package/src/main.scss +0 -40
  84. package/src/plugins/chat.ts +0 -101
  85. package/src/shims.d.ts +0 -6
  86. package/src/types/chat.ts +0 -12
  87. package/src/types/messages.ts +0 -6
  88. package/src/types/options.ts +0 -23
  89. package/src/types/webhook.ts +0 -17
  90. package/src/utils/event-bus.ts +0 -51
  91. package/src/utils/mount.ts +0 -16
  92. package/tsconfig.json +0 -27
  93. package/vite.config.ts +0 -51
  94. package/vitest.config.ts +0 -20
  95. /package/{public/favicon.ico → favicon.ico} +0 -0
  96. /package/{src/__tests__/utils/index.ts → types/__tests__/utils/index.d.ts} +0 -0
  97. /package/{src/api/index.ts → types/api/index.d.ts} +0 -0
  98. /package/{src/components/index.ts → types/components/index.d.ts} +0 -0
  99. /package/{src/composables/index.ts → types/composables/index.d.ts} +0 -0
  100. /package/{src/constants/index.ts → types/constants/index.d.ts} +0 -0
  101. /package/{src/event-buses/index.ts → types/event-buses/index.d.ts} +0 -0
  102. /package/{src/plugins/index.ts → types/plugins/index.d.ts} +0 -0
  103. /package/{src/types/index.ts → types/types/index.d.ts} +0 -0
  104. /package/{src/utils/index.ts → types/utils/index.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ (function(Nt,Ln){typeof exports=="object"&&typeof module<"u"?Ln(exports):typeof define=="function"&&define.amd?define(["exports"],Ln):(Nt=typeof globalThis<"u"?globalThis:Nt||self,Ln(Nt.N8nChat={}))})(this,function(Nt){"use strict";const Ln="";function qr(t,e){const n=Object.create(null),r=t.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return e?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const ue={},Mt=[],Pe=()=>{},yl=()=>!1,wl=/^on[^a-z]/,Nn=t=>wl.test(t),Tr=t=>t.startsWith("onUpdate:"),ge=Object.assign,Rr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},kl=Object.prototype.hasOwnProperty,oe=(t,e)=>kl.call(t,e),G=Array.isArray,It=t=>Mn(t)==="[object Map]",ts=t=>Mn(t)==="[object Set]",X=t=>typeof t=="function",me=t=>typeof t=="string",Lr=t=>typeof t=="symbol",fe=t=>t!==null&&typeof t=="object",ns=t=>fe(t)&&X(t.then)&&X(t.catch),rs=Object.prototype.toString,Mn=t=>rs.call(t),El=t=>Mn(t).slice(8,-1),os=t=>Mn(t)==="[object Object]",Nr=t=>me(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,In=qr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),On=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Cl=/-(\w)/g,Ot=On(t=>t.replace(Cl,(e,n)=>n?n.toUpperCase():"")),Al=/\B([A-Z])/g,ht=On(t=>t.replace(Al,"-$1").toLowerCase()),ss=On(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mr=On(t=>t?`on${ss(t)}`:""),rn=(t,e)=>!Object.is(t,e),Fn=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Bn=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Ir=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Sl=t=>{const e=me(t)?Number(t):NaN;return isNaN(e)?t:e};let cs;const Or=()=>cs||(cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fr(t){if(G(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],o=me(r)?Rl(r):Fr(r);if(o)for(const s in o)e[s]=o[s]}return e}else{if(me(t))return t;if(fe(t))return t}}const Dl=/;(?![^(]*\))/g,ql=/:([^]+)/,Tl=/\/\*[^]*?\*\//g;function Rl(t){const e={};return t.replace(Tl,"").split(Dl).forEach(n=>{if(n){const r=n.split(ql);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function on(t){let e="";if(me(t))e=t;else if(G(t))for(let n=0;n<t.length;n++){const r=on(t[n]);r&&(e+=r+" ")}else if(fe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Ll=qr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function is(t){return!!t||t===""}const Pn=t=>me(t)?t:t==null?"":G(t)||fe(t)&&(t.toString===rs||!X(t.toString))?JSON.stringify(t,ls,2):String(t),ls=(t,e)=>e&&e.__v_isRef?ls(t,e.value):It(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:ts(e)?{[`Set(${e.size})`]:[...e.values()]}:fe(e)&&!G(e)&&!os(e)?String(e):e;let Ue;class Nl{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!e&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ue;try{return Ue=this,e()}finally{Ue=n}}}on(){Ue=this}off(){Ue=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Ml(t,e=Ue){e&&e.active&&e.effects.push(t)}function Il(){return Ue}const Br=t=>{const e=new Set(t);return e.w=0,e.n=0,e},as=t=>(t.w&rt)>0,us=t=>(t.n&rt)>0,Ol=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=rt},Fl=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];as(o)&&!us(o)?o.delete(t):e[n++]=o,o.w&=~rt,o.n&=~rt}e.length=n}},Un=new WeakMap;let sn=0,rt=1;const Pr=30;let ze;const dt=Symbol(""),Ur=Symbol("");class zr{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ml(this,r)}run(){if(!this.active)return this.fn();let e=ze,n=ot;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ze,ze=this,ot=!0,rt=1<<++sn,sn<=Pr?Ol(this):fs(this),this.fn()}finally{sn<=Pr&&Fl(this),rt=1<<--sn,ze=this.parent,ot=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ze===this?this.deferStop=!0:this.active&&(fs(this),this.onStop&&this.onStop(),this.active=!1)}}function fs(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let ot=!0;const ps=[];function Ft(){ps.push(ot),ot=!1}function Bt(){const t=ps.pop();ot=t===void 0?!0:t}function De(t,e,n){if(ot&&ze){let r=Un.get(t);r||Un.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=Br()),hs(o)}}function hs(t,e){let n=!1;sn<=Pr?us(t)||(t.n|=rt,n=!as(t)):n=!t.has(ze),n&&(t.add(ze),ze.deps.push(t))}function Qe(t,e,n,r,o,s){const c=Un.get(t);if(!c)return;let i=[];if(e==="clear")i=[...c.values()];else if(n==="length"&&G(t)){const l=Number(r);c.forEach((a,u)=>{(u==="length"||u>=l)&&i.push(a)})}else switch(n!==void 0&&i.push(c.get(n)),e){case"add":G(t)?Nr(n)&&i.push(c.get("length")):(i.push(c.get(dt)),It(t)&&i.push(c.get(Ur)));break;case"delete":G(t)||(i.push(c.get(dt)),It(t)&&i.push(c.get(Ur)));break;case"set":It(t)&&i.push(c.get(dt));break}if(i.length===1)i[0]&&$r(i[0]);else{const l=[];for(const a of i)a&&l.push(...a);$r(Br(l))}}function $r(t,e){const n=G(t)?t:[...t];for(const r of n)r.computed&&ds(r);for(const r of n)r.computed||ds(r)}function ds(t,e){(t!==ze||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Bl(t,e){var n;return(n=Un.get(t))==null?void 0:n.get(e)}const Pl=qr("__proto__,__v_isRef,__isVue"),gs=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Lr)),Ul=Hr(),zl=Hr(!1,!0),$l=Hr(!0),ms=Hl();function Hl(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=se(this);for(let s=0,c=this.length;s<c;s++)De(r,"get",s+"");const o=r[e](...n);return o===-1||o===!1?r[e](...n.map(se)):o}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Ft();const r=se(this)[e].apply(this,n);return Bt(),r}}),t}function Vl(t){const e=se(this);return De(e,"has",t),e.hasOwnProperty(t)}function Hr(t=!1,e=!1){return function(r,o,s){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&s===(t?e?ca:Cs:e?Es:ks).get(r))return r;const c=G(r);if(!t){if(c&&oe(ms,o))return Reflect.get(ms,o,s);if(o==="hasOwnProperty")return Vl}const i=Reflect.get(r,o,s);return(Lr(o)?gs.has(o):Pl(o))||(t||De(r,"get",o),e)?i:ve(i)?c&&Nr(o)?i:i.value:fe(i)?t?As(i):Gr(i):i}}const jl=bs(),Gl=bs(!0);function bs(t=!1){return function(n,r,o,s){let c=n[r];if(Ut(c)&&ve(c)&&!ve(o))return!1;if(!t&&(!Zn(o)&&!Ut(o)&&(c=se(c),o=se(o)),!G(n)&&ve(c)&&!ve(o)))return c.value=o,!0;const i=G(n)&&Nr(r)?Number(r)<n.length:oe(n,r),l=Reflect.set(n,r,o,s);return n===se(s)&&(i?rn(o,c)&&Qe(n,"set",r,o):Qe(n,"add",r,o)),l}}function Zl(t,e){const n=oe(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Qe(t,"delete",e,void 0),r}function Kl(t,e){const n=Reflect.has(t,e);return(!Lr(e)||!gs.has(e))&&De(t,"has",e),n}function Wl(t){return De(t,"iterate",G(t)?"length":dt),Reflect.ownKeys(t)}const _s={get:Ul,set:jl,deleteProperty:Zl,has:Kl,ownKeys:Wl},Jl={get:$l,set(t,e){return!0},deleteProperty(t,e){return!0}},Yl=ge({},_s,{get:zl,set:Gl}),Vr=t=>t,zn=t=>Reflect.getPrototypeOf(t);function $n(t,e,n=!1,r=!1){t=t.__v_raw;const o=se(t),s=se(e);n||(e!==s&&De(o,"get",e),De(o,"get",s));const{has:c}=zn(o),i=r?Vr:n?Kr:cn;if(c.call(o,e))return i(t.get(e));if(c.call(o,s))return i(t.get(s));t!==o&&t.get(e)}function Hn(t,e=!1){const n=this.__v_raw,r=se(n),o=se(t);return e||(t!==o&&De(r,"has",t),De(r,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function Vn(t,e=!1){return t=t.__v_raw,!e&&De(se(t),"iterate",dt),Reflect.get(t,"size",t)}function vs(t){t=se(t);const e=se(this);return zn(e).has.call(e,t)||(e.add(t),Qe(e,"add",t,t)),this}function xs(t,e){e=se(e);const n=se(this),{has:r,get:o}=zn(n);let s=r.call(n,t);s||(t=se(t),s=r.call(n,t));const c=o.call(n,t);return n.set(t,e),s?rn(e,c)&&Qe(n,"set",t,e):Qe(n,"add",t,e),this}function ys(t){const e=se(this),{has:n,get:r}=zn(e);let o=n.call(e,t);o||(t=se(t),o=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return o&&Qe(e,"delete",t,void 0),s}function ws(){const t=se(this),e=t.size!==0,n=t.clear();return e&&Qe(t,"clear",void 0,void 0),n}function jn(t,e){return function(r,o){const s=this,c=s.__v_raw,i=se(c),l=e?Vr:t?Kr:cn;return!t&&De(i,"iterate",dt),c.forEach((a,u)=>r.call(o,l(a),l(u),s))}}function Gn(t,e,n){return function(...r){const o=this.__v_raw,s=se(o),c=It(s),i=t==="entries"||t===Symbol.iterator&&c,l=t==="keys"&&c,a=o[t](...r),u=n?Vr:e?Kr:cn;return!e&&De(s,"iterate",l?Ur:dt),{next(){const{value:f,done:p}=a.next();return p?{value:f,done:p}:{value:i?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function st(t){return function(...e){return t==="delete"?!1:this}}function Xl(){const t={get(s){return $n(this,s)},get size(){return Vn(this)},has:Hn,add:vs,set:xs,delete:ys,clear:ws,forEach:jn(!1,!1)},e={get(s){return $n(this,s,!1,!0)},get size(){return Vn(this)},has:Hn,add:vs,set:xs,delete:ys,clear:ws,forEach:jn(!1,!0)},n={get(s){return $n(this,s,!0)},get size(){return Vn(this,!0)},has(s){return Hn.call(this,s,!0)},add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear"),forEach:jn(!0,!1)},r={get(s){return $n(this,s,!0,!0)},get size(){return Vn(this,!0)},has(s){return Hn.call(this,s,!0)},add:st("add"),set:st("set"),delete:st("delete"),clear:st("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Gn(s,!1,!1),n[s]=Gn(s,!0,!1),e[s]=Gn(s,!1,!0),r[s]=Gn(s,!0,!0)}),[t,n,e,r]}const[Ql,ea,ta,na]=Xl();function jr(t,e){const n=e?t?na:ta:t?ea:Ql;return(r,o,s)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?r:Reflect.get(oe(n,o)&&o in r?n:r,o,s)}const ra={get:jr(!1,!1)},oa={get:jr(!1,!0)},sa={get:jr(!0,!1)},ks=new WeakMap,Es=new WeakMap,Cs=new WeakMap,ca=new WeakMap;function ia(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function la(t){return t.__v_skip||!Object.isExtensible(t)?0:ia(El(t))}function Gr(t){return Ut(t)?t:Zr(t,!1,_s,ra,ks)}function aa(t){return Zr(t,!1,Yl,oa,Es)}function As(t){return Zr(t,!0,Jl,sa,Cs)}function Zr(t,e,n,r,o){if(!fe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=o.get(t);if(s)return s;const c=la(t);if(c===0)return t;const i=new Proxy(t,c===2?r:n);return o.set(t,i),i}function Pt(t){return Ut(t)?Pt(t.__v_raw):!!(t&&t.__v_isReactive)}function Ut(t){return!!(t&&t.__v_isReadonly)}function Zn(t){return!!(t&&t.__v_isShallow)}function Ss(t){return Pt(t)||Ut(t)}function se(t){const e=t&&t.__v_raw;return e?se(e):t}function Ds(t){return Bn(t,"__v_skip",!0),t}const cn=t=>fe(t)?Gr(t):t,Kr=t=>fe(t)?As(t):t;function qs(t){ot&&ze&&(t=se(t),hs(t.dep||(t.dep=Br())))}function Ts(t,e){t=se(t);const n=t.dep;n&&$r(n)}function ve(t){return!!(t&&t.__v_isRef===!0)}function zt(t){return ua(t,!1)}function ua(t,e){return ve(t)?t:new fa(t,e)}class fa{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:se(e),this._value=n?e:cn(e)}get value(){return qs(this),this._value}set value(e){const n=this.__v_isShallow||Zn(e)||Ut(e);e=n?e:se(e),rn(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:cn(e),Ts(this))}}function he(t){return ve(t)?t.value:t}const pa={get:(t,e,n)=>he(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return ve(o)&&!ve(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Rs(t){return Pt(t)?t:new Proxy(t,pa)}function ha(t){const e=G(t)?new Array(t.length):{};for(const n in t)e[n]=ga(t,n);return e}class da{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Bl(se(this._object),this._key)}}function ga(t,e,n){const r=t[e];return ve(r)?r:new da(t,e,n)}class ma{constructor(e,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new zr(e,()=>{this._dirty||(this._dirty=!0,Ts(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=se(this);return qs(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ba(t,e,n=!1){let r,o;const s=X(t);return s?(r=t,o=Pe):(r=t.get,o=t.set),new ma(r,o,s||!o,n)}function zg(t,...e){}function ct(t,e,n,r){let o;try{o=r?t(...r):t()}catch(s){Kn(s,e,n)}return o}function Ne(t,e,n,r){if(X(t)){const s=ct(t,e,n,r);return s&&ns(s)&&s.catch(c=>{Kn(c,e,n)}),s}const o=[];for(let s=0;s<t.length;s++)o.push(Ne(t[s],e,n,r));return o}function Kn(t,e,n,r=!0){const o=e?e.vnode:null;if(e){let s=e.parent;const c=e.proxy,i=n;for(;s;){const a=s.ec;if(a){for(let u=0;u<a.length;u++)if(a[u](t,c,i)===!1)return}s=s.parent}const l=e.appContext.config.errorHandler;if(l){ct(l,null,10,[t,c,i]);return}}_a(t,n,o,r)}function _a(t,e,n,r=!0){console.error(t)}let ln=!1,Wr=!1;const we=[];let je=0;const $t=[];let et=null,gt=0;const Ls=Promise.resolve();let Jr=null;function Ht(t){const e=Jr||Ls;return t?e.then(this?t.bind(this):t):e}function va(t){let e=je+1,n=we.length;for(;e<n;){const r=e+n>>>1;an(we[r])<t?e=r+1:n=r}return e}function Yr(t){(!we.length||!we.includes(t,ln&&t.allowRecurse?je+1:je))&&(t.id==null?we.push(t):we.splice(va(t.id),0,t),Ns())}function Ns(){!ln&&!Wr&&(Wr=!0,Jr=Ls.then(Os))}function xa(t){const e=we.indexOf(t);e>je&&we.splice(e,1)}function ya(t){G(t)?$t.push(...t):(!et||!et.includes(t,t.allowRecurse?gt+1:gt))&&$t.push(t),Ns()}function Ms(t,e=ln?je+1:0){for(;e<we.length;e++){const n=we[e];n&&n.pre&&(we.splice(e,1),e--,n())}}function Is(t){if($t.length){const e=[...new Set($t)];if($t.length=0,et){et.push(...e);return}for(et=e,et.sort((n,r)=>an(n)-an(r)),gt=0;gt<et.length;gt++)et[gt]();et=null,gt=0}}const an=t=>t.id==null?1/0:t.id,wa=(t,e)=>{const n=an(t)-an(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Os(t){Wr=!1,ln=!0,we.sort(wa);const e=Pe;try{for(je=0;je<we.length;je++){const n=we[je];n&&n.active!==!1&&ct(n,null,14)}}finally{je=0,we.length=0,Is(),ln=!1,Jr=null,(we.length||$t.length)&&Os()}}function ka(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ue;let o=n;const s=e.startsWith("update:"),c=s&&e.slice(7);if(c&&c in r){const u=`${c==="modelValue"?"model":c}Modifiers`,{number:f,trim:p}=r[u]||ue;p&&(o=n.map(d=>me(d)?d.trim():d)),f&&(o=n.map(Ir))}let i,l=r[i=Mr(e)]||r[i=Mr(Ot(e))];!l&&s&&(l=r[i=Mr(ht(e))]),l&&Ne(l,t,6,o);const a=r[i+"Once"];if(a){if(!t.emitted)t.emitted={};else if(t.emitted[i])return;t.emitted[i]=!0,Ne(a,t,6,o)}}function Fs(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(o!==void 0)return o;const s=t.emits;let c={},i=!1;if(!X(t)){const l=a=>{const u=Fs(a,e,!0);u&&(i=!0,ge(c,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!i?(fe(t)&&r.set(t,null),null):(G(s)?s.forEach(l=>c[l]=null):ge(c,s),fe(t)&&r.set(t,c),c)}function Wn(t,e){return!t||!Nn(e)?!1:(e=e.slice(2).replace(/Once$/,""),oe(t,e[0].toLowerCase()+e.slice(1))||oe(t,ht(e))||oe(t,e))}let ke=null,Bs=null;function Jn(t){const e=ke;return ke=t,Bs=t&&t.type.__scopeId||null,e}function it(t,e=ke,n){if(!e||t._n)return t;const r=(...o)=>{r._d&&hc(-1);const s=Jn(e);let c;try{c=t(...o)}finally{Jn(s),r._d&&hc(1)}return c};return r._n=!0,r._c=!0,r._d=!0,r}function $g(){}function Xr(t){const{type:e,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[c],slots:i,attrs:l,emit:a,render:u,renderCache:f,data:p,setupState:d,ctx:w,inheritAttrs:_}=t;let M,q;const C=Jn(t);try{if(n.shapeFlag&4){const A=o||r;M=Ge(u.call(A,A,f,s,d,p,w)),q=l}else{const A=e;M=Ge(A.length>1?A(s,{attrs:l,slots:i,emit:a}):A(s,null)),q=e.props?l:Ea(l)}}catch(A){gn.length=0,Kn(A,t,1),M=de(Ie)}let N=M;if(q&&_!==!1){const A=Object.keys(q),{shapeFlag:V}=N;A.length&&V&7&&(c&&A.some(Tr)&&(q=Ca(q,c)),N=lt(N,q))}return n.dirs&&(N=lt(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),M=N,Jn(C),M}const Ea=t=>{let e;for(const n in t)(n==="class"||n==="style"||Nn(n))&&((e||(e={}))[n]=t[n]);return e},Ca=(t,e)=>{const n={};for(const r in t)(!Tr(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Aa(t,e,n){const{props:r,children:o,component:s}=t,{props:c,children:i,patchFlag:l}=e,a=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ps(r,c,a):!!c;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(c[p]!==r[p]&&!Wn(a,p))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:r===c?!1:r?c?Ps(r,c,a):!0:!!c;return!1}function Ps(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(e[s]!==t[s]&&!Wn(n,s))return!0}return!1}function Sa({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const Da=t=>t.__isSuspense;function qa(t,e){e&&e.pendingBranch?G(t)?e.effects.push(...t):e.effects.push(t):ya(t)}const Yn={};function Qr(t,e,n){return Us(t,e,n)}function Us(t,e,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:c}=ue){var i;const l=Il()===((i=xe)==null?void 0:i.scope)?xe:null;let a,u=!1,f=!1;if(ve(t)?(a=()=>t.value,u=Zn(t)):Pt(t)?(a=()=>t,r=!0):G(t)?(f=!0,u=t.some(A=>Pt(A)||Zn(A)),a=()=>t.map(A=>{if(ve(A))return A.value;if(Pt(A))return mt(A);if(X(A))return ct(A,l,2)})):X(t)?e?a=()=>ct(t,l,2):a=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ne(t,l,3,[d])}:a=Pe,e&&r){const A=a;a=()=>mt(A())}let p,d=A=>{p=C.onStop=()=>{ct(A,l,4)}},w;if(_n)if(d=Pe,e?n&&Ne(e,l,3,[a(),f?[]:void 0,d]):a(),o==="sync"){const A=wu();w=A.__watcherHandles||(A.__watcherHandles=[])}else return Pe;let _=f?new Array(t.length).fill(Yn):Yn;const M=()=>{if(C.active)if(e){const A=C.run();(r||u||(f?A.some((V,R)=>rn(V,_[R])):rn(A,_)))&&(p&&p(),Ne(e,l,3,[A,_===Yn?void 0:f&&_[0]===Yn?[]:_,d]),_=A)}else C.run()};M.allowRecurse=!!e;let q;o==="sync"?q=M:o==="post"?q=()=>qe(M,l&&l.suspense):(M.pre=!0,l&&(M.id=l.uid),q=()=>Yr(M));const C=new zr(a,q);e?n?M():_=C.run():o==="post"?qe(C.run.bind(C),l&&l.suspense):C.run();const N=()=>{C.stop(),l&&l.scope&&Rr(l.scope.effects,C)};return w&&w.push(N),N}function Ta(t,e,n){const r=this.proxy,o=me(t)?t.includes(".")?zs(r,t):()=>r[t]:t.bind(r,r);let s;X(e)?s=e:(s=e.handler,n=e);const c=xe;Gt(this);const i=Us(o,s.bind(r),n);return c?Gt(c):xt(),i}function zs(t,e){const n=e.split(".");return()=>{let r=t;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function mt(t,e){if(!fe(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),ve(t))mt(t.value,e);else if(G(t))for(let n=0;n<t.length;n++)mt(t[n],e);else if(ts(t)||It(t))t.forEach(n=>{mt(n,e)});else if(os(t))for(const n in t)mt(t[n],e);return t}function $s(t,e){const n=ke;if(n===null)return t;const r=cr(n)||n.proxy,o=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[c,i,l,a=ue]=e[s];c&&(X(c)&&(c={mounted:c,updated:c}),c.deep&&mt(i),o.push({dir:c,instance:r,value:i,oldValue:void 0,arg:l,modifiers:a}))}return t}function bt(t,e,n,r){const o=t.dirs,s=e&&e.dirs;for(let c=0;c<o.length;c++){const i=o[c];s&&(i.oldValue=s[c].value);let l=i.dir[r];l&&(Ft(),Ne(l,n,8,[t.el,i,t,e]),Bt())}}function Ra(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fn(()=>{t.isMounted=!0}),ro(()=>{t.isUnmounting=!0}),t}const Me=[Function,Array],Hs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},La={name:"BaseTransition",props:Hs,setup(t,{slots:e}){const n=gu(),r=Ra();let o;return()=>{const s=e.default&&Gs(e.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const _ of s)if(_.type!==Ie){c=_;break}}const i=se(t),{mode:l}=i;if(r.isLeaving)return to(c);const a=js(c);if(!a)return to(c);const u=eo(a,i,r,n);no(a,u);const f=n.subTree,p=f&&js(f);let d=!1;const{getTransitionKey:w}=a.type;if(w){const _=w();o===void 0?o=_:_!==o&&(o=_,d=!0)}if(p&&p.type!==Ie&&(!vt(a,p)||d)){const _=eo(p,i,r,n);if(no(p,_),l==="out-in")return r.isLeaving=!0,_.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},to(c);l==="in-out"&&a.type!==Ie&&(_.delayLeave=(M,q,C)=>{const N=Vs(r,p);N[String(p.key)]=p,M._leaveCb=()=>{q(),M._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=C})}return c}}};function Vs(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function eo(t,e,n,r){const{appear:o,mode:s,persisted:c=!1,onBeforeEnter:i,onEnter:l,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:f,onLeave:p,onAfterLeave:d,onLeaveCancelled:w,onBeforeAppear:_,onAppear:M,onAfterAppear:q,onAppearCancelled:C}=e,N=String(t.key),A=Vs(n,t),V=(U,Q)=>{U&&Ne(U,r,9,Q)},R=(U,Q)=>{const z=Q[1];V(U,Q),G(U)?U.every(J=>J.length<=1)&&z():U.length<=1&&z()},W={mode:s,persisted:c,beforeEnter(U){let Q=i;if(!n.isMounted)if(o)Q=_||i;else return;U._leaveCb&&U._leaveCb(!0);const z=A[N];z&&vt(t,z)&&z.el._leaveCb&&z.el._leaveCb(),V(Q,[U])},enter(U){let Q=l,z=a,J=u;if(!n.isMounted)if(o)Q=M||l,z=q||a,J=C||u;else return;let P=!1;const re=U._enterCb=D=>{P||(P=!0,D?V(J,[U]):V(z,[U]),W.delayedLeave&&W.delayedLeave(),U._enterCb=void 0)};Q?R(Q,[U,re]):re()},leave(U,Q){const z=String(t.key);if(U._enterCb&&U._enterCb(!0),n.isUnmounting)return Q();V(f,[U]);let J=!1;const P=U._leaveCb=re=>{J||(J=!0,Q(),re?V(w,[U]):V(d,[U]),U._leaveCb=void 0,A[z]===t&&delete A[z])};A[z]=t,p?R(p,[U,P]):P()},clone(U){return eo(U,e,n,r)}};return W}function to(t){if(Xn(t))return t=lt(t),t.children=null,t}function js(t){return Xn(t)?t.children?t.children[0]:void 0:t}function no(t,e){t.shapeFlag&6&&t.component?no(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Gs(t,e=!1,n){let r=[],o=0;for(let s=0;s<t.length;s++){let c=t[s];const i=n==null?c.key:String(n)+String(c.key!=null?c.key:s);c.type===Te?(c.patchFlag&128&&o++,r=r.concat(Gs(c.children,e,i))):(e||c.type!==Ie)&&r.push(i!=null?lt(c,{key:i}):c)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function $e(t,e){return X(t)?(()=>ge({name:t.name},e,{setup:t}))():t}const un=t=>!!t.type.__asyncLoader,Xn=t=>t.type.__isKeepAlive;function Na(t,e){Zs(t,"a",e)}function Ma(t,e){Zs(t,"da",e)}function Zs(t,e,n=xe){const r=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Qn(e,r,n),n){let o=n.parent;for(;o&&o.parent;)Xn(o.parent.vnode)&&Ia(r,e,n,o),o=o.parent}}function Ia(t,e,n,r){const o=Qn(e,t,r,!0);Ks(()=>{Rr(r[e],o)},n)}function Qn(t,e,n=xe,r=!1){if(n){const o=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...c)=>{if(n.isUnmounted)return;Ft(),Gt(n);const i=Ne(e,n,t,c);return xt(),Bt(),i});return r?o.unshift(s):o.push(s),s}}const tt=t=>(e,n=xe)=>(!_n||t==="sp")&&Qn(t,(...r)=>e(...r),n),Oa=tt("bm"),fn=tt("m"),Fa=tt("bu"),Ba=tt("u"),ro=tt("bum"),Ks=tt("um"),Pa=tt("sp"),Ua=tt("rtg"),za=tt("rtc");function $a(t,e=xe){Qn("ec",t,e)}const Ha=Symbol.for("v-ndc");function Ws(t,e,n,r){let o;const s=n&&n[r];if(G(t)||me(t)){o=new Array(t.length);for(let c=0,i=t.length;c<i;c++)o[c]=e(t[c],c,void 0,s&&s[c])}else if(typeof t=="number"){o=new Array(t);for(let c=0;c<t;c++)o[c]=e(c+1,c,void 0,s&&s[c])}else if(fe(t))if(t[Symbol.iterator])o=Array.from(t,(c,i)=>e(c,i,void 0,s&&s[i]));else{const c=Object.keys(t);o=new Array(c.length);for(let i=0,l=c.length;i<l;i++){const a=c[i];o[i]=e(t[a],a,i,s&&s[i])}}else o=[];return n&&(n[r]=o),o}function pn(t,e,n={},r,o){if(ke.isCE||ke.parent&&un(ke.parent)&&ke.parent.isCE)return e!=="default"&&(n.name=e),de("slot",n,r&&r());let s=t[e];s&&s._c&&(s._d=!1),ce();const c=s&&Js(s(n)),i=Ae(Te,{key:n.key||c&&c.key||`_${e}`},c||(r?r():[]),c&&t._===1?64:-2);return!o&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),s&&s._c&&(s._d=!0),i}function Js(t){return t.some(e=>rr(e)?!(e.type===Ie||e.type===Te&&!Js(e.children)):!0)?t:null}const oo=t=>t?bc(t)?cr(t)||t.proxy:oo(t.parent):null,hn=ge(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>oo(t.parent),$root:t=>oo(t.root),$emit:t=>t.emit,$options:t=>io(t),$forceUpdate:t=>t.f||(t.f=()=>Yr(t.update)),$nextTick:t=>t.n||(t.n=Ht.bind(t.proxy)),$watch:t=>Ta.bind(t)}),so=(t,e)=>t!==ue&&!t.__isScriptSetup&&oe(t,e),Va={get({_:t},e){const{ctx:n,setupState:r,data:o,props:s,accessCache:c,type:i,appContext:l}=t;let a;if(e[0]!=="$"){const d=c[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return o[e];case 4:return n[e];case 3:return s[e]}else{if(so(r,e))return c[e]=1,r[e];if(o!==ue&&oe(o,e))return c[e]=2,o[e];if((a=t.propsOptions[0])&&oe(a,e))return c[e]=3,s[e];if(n!==ue&&oe(n,e))return c[e]=4,n[e];co&&(c[e]=0)}}const u=hn[e];let f,p;if(u)return e==="$attrs"&&De(t,"get",e),u(t);if((f=i.__cssModules)&&(f=f[e]))return f;if(n!==ue&&oe(n,e))return c[e]=4,n[e];if(p=l.config.globalProperties,oe(p,e))return p[e]},set({_:t},e,n){const{data:r,setupState:o,ctx:s}=t;return so(o,e)?(o[e]=n,!0):r!==ue&&oe(r,e)?(r[e]=n,!0):oe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:s}},c){let i;return!!n[c]||t!==ue&&oe(t,c)||so(e,c)||(i=s[0])&&oe(i,c)||oe(r,c)||oe(hn,c)||oe(o.config.globalProperties,c)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:oe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ys(t){return G(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let co=!0;function ja(t){const e=io(t),n=t.proxy,r=t.ctx;co=!1,e.beforeCreate&&Xs(e.beforeCreate,t,"bc");const{data:o,computed:s,methods:c,watch:i,provide:l,inject:a,created:u,beforeMount:f,mounted:p,beforeUpdate:d,updated:w,activated:_,deactivated:M,beforeDestroy:q,beforeUnmount:C,destroyed:N,unmounted:A,render:V,renderTracked:R,renderTriggered:W,errorCaptured:U,serverPrefetch:Q,expose:z,inheritAttrs:J,components:P,directives:re,filters:D}=e;if(a&&Ga(a,r,null),c)for(const v in c){const S=c[v];X(S)&&(r[v]=S.bind(n))}if(o){const v=o.call(n,n);fe(v)&&(t.data=Gr(v))}if(co=!0,s)for(const v in s){const S=s[v],Z=X(S)?S.bind(n,n):X(S.get)?S.get.bind(n,n):Pe,te=!X(S)&&X(S.set)?S.set.bind(n):Pe,ie=Zt({get:Z,set:te});Object.defineProperty(r,v,{enumerable:!0,configurable:!0,get:()=>ie.value,set:ae=>ie.value=ae})}if(i)for(const v in i)Qs(i[v],r,n,v);if(l){const v=X(l)?l.call(n):l;Reflect.ownKeys(v).forEach(S=>{Xa(S,v[S])})}u&&Xs(u,t,"c");function j(v,S){G(S)?S.forEach(Z=>v(Z.bind(n))):S&&v(S.bind(n))}if(j(Oa,f),j(fn,p),j(Fa,d),j(Ba,w),j(Na,_),j(Ma,M),j($a,U),j(za,R),j(Ua,W),j(ro,C),j(Ks,A),j(Pa,Q),G(z))if(z.length){const v=t.exposed||(t.exposed={});z.forEach(S=>{Object.defineProperty(v,S,{get:()=>n[S],set:Z=>n[S]=Z})})}else t.exposed||(t.exposed={});V&&t.render===Pe&&(t.render=V),J!=null&&(t.inheritAttrs=J),P&&(t.components=P),re&&(t.directives=re)}function Ga(t,e,n=Pe){G(t)&&(t=lo(t));for(const r in t){const o=t[r];let s;fe(o)?"default"in o?s=Vt(o.from||r,o.default,!0):s=Vt(o.from||r):s=Vt(o),ve(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:c=>s.value=c}):e[r]=s}}function Xs(t,e,n){Ne(G(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Qs(t,e,n,r){const o=r.includes(".")?zs(n,r):()=>n[r];if(me(t)){const s=e[t];X(s)&&Qr(o,s)}else if(X(t))Qr(o,t.bind(n));else if(fe(t))if(G(t))t.forEach(s=>Qs(s,e,n,r));else{const s=X(t.handler)?t.handler.bind(n):e[t.handler];X(s)&&Qr(o,s,t)}}function io(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:s,config:{optionMergeStrategies:c}}=t.appContext,i=s.get(e);let l;return i?l=i:!o.length&&!n&&!r?l=e:(l={},o.length&&o.forEach(a=>er(l,a,c,!0)),er(l,e,c)),fe(e)&&s.set(e,l),l}function er(t,e,n,r=!1){const{mixins:o,extends:s}=e;s&&er(t,s,n,!0),o&&o.forEach(c=>er(t,c,n,!0));for(const c in e)if(!(r&&c==="expose")){const i=Za[c]||n&&n[c];t[c]=i?i(t[c],e[c]):e[c]}return t}const Za={data:ec,props:tc,emits:tc,methods:dn,computed:dn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:dn,directives:dn,watch:Wa,provide:ec,inject:Ka};function ec(t,e){return e?t?function(){return ge(X(t)?t.call(this,this):t,X(e)?e.call(this,this):e)}:e:t}function Ka(t,e){return dn(lo(t),lo(e))}function lo(t){if(G(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ce(t,e){return t?[...new Set([].concat(t,e))]:e}function dn(t,e){return t?ge(Object.create(null),t,e):e}function tc(t,e){return t?G(t)&&G(e)?[...new Set([...t,...e])]:ge(Object.create(null),Ys(t),Ys(e??{})):e}function Wa(t,e){if(!t)return e;if(!e)return t;const n=ge(Object.create(null),t);for(const r in e)n[r]=Ce(t[r],e[r]);return n}function nc(){return{app:null,config:{isNativeTag:yl,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 Ja=0;function Ya(t,e){return function(r,o=null){X(r)||(r=ge({},r)),o!=null&&!fe(o)&&(o=null);const s=nc(),c=new Set;let i=!1;const l=s.app={_uid:Ja++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:ku,get config(){return s.config},set config(a){},use(a,...u){return c.has(a)||(a&&X(a.install)?(c.add(a),a.install(l,...u)):X(a)&&(c.add(a),a(l,...u))),l},mixin(a){return s.mixins.includes(a)||s.mixins.push(a),l},component(a,u){return u?(s.components[a]=u,l):s.components[a]},directive(a,u){return u?(s.directives[a]=u,l):s.directives[a]},mount(a,u,f){if(!i){const p=de(r,o);return p.appContext=s,u&&e?e(p,a):t(p,a,f),i=!0,l._container=a,a.__vue_app__=l,cr(p.component)||p.component.proxy}},unmount(){i&&(t(null,l._container),delete l._container.__vue_app__)},provide(a,u){return s.provides[a]=u,l},runWithContext(a){tr=l;try{return a()}finally{tr=null}}};return l}}let tr=null;function Xa(t,e){if(xe){let n=xe.provides;const r=xe.parent&&xe.parent.provides;r===n&&(n=xe.provides=Object.create(r)),n[t]=e}}function Vt(t,e,n=!1){const r=xe||ke;if(r||tr){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tr._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&X(e)?e.call(r&&r.proxy):e}}function Qa(t,e,n,r=!1){const o={},s={};Bn(s,or,1),t.propsDefaults=Object.create(null),rc(t,e,o,s);for(const c in t.propsOptions[0])c in o||(o[c]=void 0);n?t.props=r?o:aa(o):t.type.props?t.props=o:t.props=s,t.attrs=s}function eu(t,e,n,r){const{props:o,attrs:s,vnode:{patchFlag:c}}=t,i=se(o),[l]=t.propsOptions;let a=!1;if((r||c>0)&&!(c&16)){if(c&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(Wn(t.emitsOptions,p))continue;const d=e[p];if(l)if(oe(s,p))d!==s[p]&&(s[p]=d,a=!0);else{const w=Ot(p);o[w]=ao(l,i,w,d,t,!1)}else d!==s[p]&&(s[p]=d,a=!0)}}}else{rc(t,e,o,s)&&(a=!0);let u;for(const f in i)(!e||!oe(e,f)&&((u=ht(f))===f||!oe(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=ao(l,i,f,void 0,t,!0)):delete o[f]);if(s!==i)for(const f in s)(!e||!oe(e,f))&&(delete s[f],a=!0)}a&&Qe(t,"set","$attrs")}function rc(t,e,n,r){const[o,s]=t.propsOptions;let c=!1,i;if(e)for(let l in e){if(In(l))continue;const a=e[l];let u;o&&oe(o,u=Ot(l))?!s||!s.includes(u)?n[u]=a:(i||(i={}))[u]=a:Wn(t.emitsOptions,l)||(!(l in r)||a!==r[l])&&(r[l]=a,c=!0)}if(s){const l=se(n),a=i||ue;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ao(o,l,f,a[f],t,!oe(a,f))}}return c}function ao(t,e,n,r,o,s){const c=t[n];if(c!=null){const i=oe(c,"default");if(i&&r===void 0){const l=c.default;if(c.type!==Function&&!c.skipFactory&&X(l)){const{propsDefaults:a}=o;n in a?r=a[n]:(Gt(o),r=a[n]=l.call(null,e),xt())}else r=l}c[0]&&(s&&!i?r=!1:c[1]&&(r===""||r===ht(n))&&(r=!0))}return r}function oc(t,e,n=!1){const r=e.propsCache,o=r.get(t);if(o)return o;const s=t.props,c={},i=[];let l=!1;if(!X(t)){const u=f=>{l=!0;const[p,d]=oc(f,e,!0);ge(c,p),d&&i.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return fe(t)&&r.set(t,Mt),Mt;if(G(s))for(let u=0;u<s.length;u++){const f=Ot(s[u]);sc(f)&&(c[f]=ue)}else if(s)for(const u in s){const f=Ot(u);if(sc(f)){const p=s[u],d=c[f]=G(p)||X(p)?{type:p}:ge({},p);if(d){const w=lc(Boolean,d.type),_=lc(String,d.type);d[0]=w>-1,d[1]=_<0||w<_,(w>-1||oe(d,"default"))&&i.push(f)}}}const a=[c,i];return fe(t)&&r.set(t,a),a}function sc(t){return t[0]!=="$"}function cc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function ic(t,e){return cc(t)===cc(e)}function lc(t,e){return G(e)?e.findIndex(n=>ic(n,t)):X(e)&&ic(e,t)?0:-1}const ac=t=>t[0]==="_"||t==="$stable",uo=t=>G(t)?t.map(Ge):[Ge(t)],tu=(t,e,n)=>{if(e._n)return e;const r=it((...o)=>uo(e(...o)),n);return r._c=!1,r},uc=(t,e,n)=>{const r=t._ctx;for(const o in t){if(ac(o))continue;const s=t[o];if(X(s))e[o]=tu(o,s,r);else if(s!=null){const c=uo(s);e[o]=()=>c}}},fc=(t,e)=>{const n=uo(e);t.slots.default=()=>n},nu=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=se(e),Bn(e,"_",n)):uc(e,t.slots={})}else t.slots={},e&&fc(t,e);Bn(t.slots,or,1)},ru=(t,e,n)=>{const{vnode:r,slots:o}=t;let s=!0,c=ue;if(r.shapeFlag&32){const i=e._;i?n&&i===1?s=!1:(ge(o,e),!n&&i===1&&delete o._):(s=!e.$stable,uc(e,o)),c=e}else e&&(fc(t,e),c={default:1});if(s)for(const i in o)!ac(i)&&!(i in c)&&delete o[i]};function fo(t,e,n,r,o=!1){if(G(t)){t.forEach((p,d)=>fo(p,e&&(G(e)?e[d]:e),n,r,o));return}if(un(r)&&!o)return;const s=r.shapeFlag&4?cr(r.component)||r.component.proxy:r.el,c=o?null:s,{i,r:l}=t,a=e&&e.r,u=i.refs===ue?i.refs={}:i.refs,f=i.setupState;if(a!=null&&a!==l&&(me(a)?(u[a]=null,oe(f,a)&&(f[a]=null)):ve(a)&&(a.value=null)),X(l))ct(l,i,12,[c,u]);else{const p=me(l),d=ve(l);if(p||d){const w=()=>{if(t.f){const _=p?oe(f,l)?f[l]:u[l]:l.value;o?G(_)&&Rr(_,s):G(_)?_.includes(s)||_.push(s):p?(u[l]=[s],oe(f,l)&&(f[l]=u[l])):(l.value=[s],t.k&&(u[t.k]=l.value))}else p?(u[l]=c,oe(f,l)&&(f[l]=c)):d&&(l.value=c,t.k&&(u[t.k]=c))};c?(w.id=-1,qe(w,n)):w()}}}const qe=qa;function ou(t){return su(t)}function su(t,e){const n=Or();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:c,createText:i,createComment:l,setText:a,setElementText:u,parentNode:f,nextSibling:p,setScopeId:d=Pe,insertStaticContent:w}=t,_=(h,g,b,k=null,x=null,L=null,F=!1,m=null,I=!!g.dynamicChildren)=>{if(h===g)return;h&&!vt(h,g)&&(k=Rt(h),ae(h,x,L,!0),h=null),g.patchFlag===-2&&(I=!1,g.dynamicChildren=null);const{type:y,ref:O,shapeFlag:B}=g;switch(y){case nr:M(h,g,b,k);break;case Ie:q(h,g,b,k);break;case po:h==null&&C(g,b,k,F);break;case Te:P(h,g,b,k,x,L,F,m,I);break;default:B&1?V(h,g,b,k,x,L,F,m,I):B&6?re(h,g,b,k,x,L,F,m,I):(B&64||B&128)&&y.process(h,g,b,k,x,L,F,m,I,nt)}O!=null&&x&&fo(O,h&&h.ref,L,g||h,!g)},M=(h,g,b,k)=>{if(h==null)r(g.el=i(g.children),b,k);else{const x=g.el=h.el;g.children!==h.children&&a(x,g.children)}},q=(h,g,b,k)=>{h==null?r(g.el=l(g.children||""),b,k):g.el=h.el},C=(h,g,b,k)=>{[h.el,h.anchor]=w(h.children,g,b,k,h.el,h.anchor)},N=({el:h,anchor:g},b,k)=>{let x;for(;h&&h!==g;)x=p(h),r(h,b,k),h=x;r(g,b,k)},A=({el:h,anchor:g})=>{let b;for(;h&&h!==g;)b=p(h),o(h),h=b;o(g)},V=(h,g,b,k,x,L,F,m,I)=>{F=F||g.type==="svg",h==null?R(g,b,k,x,L,F,m,I):Q(h,g,x,L,F,m,I)},R=(h,g,b,k,x,L,F,m)=>{let I,y;const{type:O,props:B,shapeFlag:$,transition:K,dirs:ee}=h;if(I=h.el=c(h.type,L,B&&B.is,B),$&8?u(I,h.children):$&16&&U(h.children,I,null,k,x,L&&O!=="foreignObject",F,m),ee&&bt(h,null,k,"created"),W(I,h,h.scopeId,F,k),B){for(const T in B)T!=="value"&&!In(T)&&s(I,T,null,B[T],L,h.children,k,x,be);"value"in B&&s(I,"value",null,B.value),(y=B.onVnodeBeforeMount)&&Ze(y,k,h)}ee&&bt(h,null,k,"beforeMount");const E=(!x||x&&!x.pendingBranch)&&K&&!K.persisted;E&&K.beforeEnter(I),r(I,g,b),((y=B&&B.onVnodeMounted)||E||ee)&&qe(()=>{y&&Ze(y,k,h),E&&K.enter(I),ee&&bt(h,null,k,"mounted")},x)},W=(h,g,b,k,x)=>{if(b&&d(h,b),k)for(let L=0;L<k.length;L++)d(h,k[L]);if(x){let L=x.subTree;if(g===L){const F=x.vnode;W(h,F,F.scopeId,F.slotScopeIds,x.parent)}}},U=(h,g,b,k,x,L,F,m,I=0)=>{for(let y=I;y<h.length;y++){const O=h[y]=m?at(h[y]):Ge(h[y]);_(null,O,g,b,k,x,L,F,m)}},Q=(h,g,b,k,x,L,F)=>{const m=g.el=h.el;let{patchFlag:I,dynamicChildren:y,dirs:O}=g;I|=h.patchFlag&16;const B=h.props||ue,$=g.props||ue;let K;b&&_t(b,!1),(K=$.onVnodeBeforeUpdate)&&Ze(K,b,g,h),O&&bt(g,h,b,"beforeUpdate"),b&&_t(b,!0);const ee=x&&g.type!=="foreignObject";if(y?z(h.dynamicChildren,y,m,b,k,ee,L):F||S(h,g,m,null,b,k,ee,L,!1),I>0){if(I&16)J(m,g,B,$,b,k,x);else if(I&2&&B.class!==$.class&&s(m,"class",null,$.class,x),I&4&&s(m,"style",B.style,$.style,x),I&8){const E=g.dynamicProps;for(let T=0;T<E.length;T++){const H=E[T],Y=B[H],pe=$[H];(pe!==Y||H==="value")&&s(m,H,Y,pe,x,h.children,b,k,be)}}I&1&&h.children!==g.children&&u(m,g.children)}else!F&&y==null&&J(m,g,B,$,b,k,x);((K=$.onVnodeUpdated)||O)&&qe(()=>{K&&Ze(K,b,g,h),O&&bt(g,h,b,"updated")},k)},z=(h,g,b,k,x,L,F)=>{for(let m=0;m<g.length;m++){const I=h[m],y=g[m],O=I.el&&(I.type===Te||!vt(I,y)||I.shapeFlag&70)?f(I.el):b;_(I,y,O,null,k,x,L,F,!0)}},J=(h,g,b,k,x,L,F)=>{if(b!==k){if(b!==ue)for(const m in b)!In(m)&&!(m in k)&&s(h,m,b[m],null,F,g.children,x,L,be);for(const m in k){if(In(m))continue;const I=k[m],y=b[m];I!==y&&m!=="value"&&s(h,m,y,I,F,g.children,x,L,be)}"value"in k&&s(h,"value",b.value,k.value)}},P=(h,g,b,k,x,L,F,m,I)=>{const y=g.el=h?h.el:i(""),O=g.anchor=h?h.anchor:i("");let{patchFlag:B,dynamicChildren:$,slotScopeIds:K}=g;K&&(m=m?m.concat(K):K),h==null?(r(y,b,k),r(O,b,k),U(g.children,b,O,x,L,F,m,I)):B>0&&B&64&&$&&h.dynamicChildren?(z(h.dynamicChildren,$,b,x,L,F,m),(g.key!=null||x&&g===x.subTree)&&pc(h,g,!0)):S(h,g,b,O,x,L,F,m,I)},re=(h,g,b,k,x,L,F,m,I)=>{g.slotScopeIds=m,h==null?g.shapeFlag&512?x.ctx.activate(g,b,k,F,I):D(g,b,k,x,L,F,I):ne(h,g,I)},D=(h,g,b,k,x,L,F)=>{const m=h.component=du(h,k,x);if(Xn(h)&&(m.ctx.renderer=nt),mu(m),m.asyncDep){if(x&&x.registerDep(m,j),!h.el){const I=m.subTree=de(Ie);q(null,I,g,b)}return}j(m,h,g,b,x,L,F)},ne=(h,g,b)=>{const k=g.component=h.component;if(Aa(h,g,b))if(k.asyncDep&&!k.asyncResolved){v(k,g,b);return}else k.next=g,xa(k.update),k.update();else g.el=h.el,k.vnode=g},j=(h,g,b,k,x,L,F)=>{const m=()=>{if(h.isMounted){let{next:O,bu:B,u:$,parent:K,vnode:ee}=h,E=O,T;_t(h,!1),O?(O.el=ee.el,v(h,O,F)):O=ee,B&&Fn(B),(T=O.props&&O.props.onVnodeBeforeUpdate)&&Ze(T,K,O,ee),_t(h,!0);const H=Xr(h),Y=h.subTree;h.subTree=H,_(Y,H,f(Y.el),Rt(Y),h,x,L),O.el=H.el,E===null&&Sa(h,H.el),$&&qe($,x),(T=O.props&&O.props.onVnodeUpdated)&&qe(()=>Ze(T,K,O,ee),x)}else{let O;const{el:B,props:$}=g,{bm:K,m:ee,parent:E}=h,T=un(g);if(_t(h,!1),K&&Fn(K),!T&&(O=$&&$.onVnodeBeforeMount)&&Ze(O,E,g),_t(h,!0),B&&Rn){const H=()=>{h.subTree=Xr(h),Rn(B,h.subTree,h,x,null)};T?g.type.__asyncLoader().then(()=>!h.isUnmounted&&H()):H()}else{const H=h.subTree=Xr(h);_(null,H,b,k,h,x,L),g.el=H.el}if(ee&&qe(ee,x),!T&&(O=$&&$.onVnodeMounted)){const H=g;qe(()=>Ze(O,E,H),x)}(g.shapeFlag&256||E&&un(E.vnode)&&E.vnode.shapeFlag&256)&&h.a&&qe(h.a,x),h.isMounted=!0,g=b=k=null}},I=h.effect=new zr(m,()=>Yr(y),h.scope),y=h.update=()=>I.run();y.id=h.uid,_t(h,!0),y()},v=(h,g,b)=>{g.component=h;const k=h.vnode.props;h.vnode=g,h.next=null,eu(h,g.props,k,b),ru(h,g.children,b),Ft(),Ms(),Bt()},S=(h,g,b,k,x,L,F,m,I=!1)=>{const y=h&&h.children,O=h?h.shapeFlag:0,B=g.children,{patchFlag:$,shapeFlag:K}=g;if($>0){if($&128){te(y,B,b,k,x,L,F,m,I);return}else if($&256){Z(y,B,b,k,x,L,F,m,I);return}}K&8?(O&16&&be(y,x,L),B!==y&&u(b,B)):O&16?K&16?te(y,B,b,k,x,L,F,m,I):be(y,x,L,!0):(O&8&&u(b,""),K&16&&U(B,b,k,x,L,F,m,I))},Z=(h,g,b,k,x,L,F,m,I)=>{h=h||Mt,g=g||Mt;const y=h.length,O=g.length,B=Math.min(y,O);let $;for($=0;$<B;$++){const K=g[$]=I?at(g[$]):Ge(g[$]);_(h[$],K,b,null,x,L,F,m,I)}y>O?be(h,x,L,!0,!1,B):U(g,b,k,x,L,F,m,I,B)},te=(h,g,b,k,x,L,F,m,I)=>{let y=0;const O=g.length;let B=h.length-1,$=O-1;for(;y<=B&&y<=$;){const K=h[y],ee=g[y]=I?at(g[y]):Ge(g[y]);if(vt(K,ee))_(K,ee,b,null,x,L,F,m,I);else break;y++}for(;y<=B&&y<=$;){const K=h[B],ee=g[$]=I?at(g[$]):Ge(g[$]);if(vt(K,ee))_(K,ee,b,null,x,L,F,m,I);else break;B--,$--}if(y>B){if(y<=$){const K=$+1,ee=K<O?g[K].el:k;for(;y<=$;)_(null,g[y]=I?at(g[y]):Ge(g[y]),b,ee,x,L,F,m,I),y++}}else if(y>$)for(;y<=B;)ae(h[y],x,L,!0),y++;else{const K=y,ee=y,E=new Map;for(y=ee;y<=$;y++){const Le=g[y]=I?at(g[y]):Ge(g[y]);Le.key!=null&&E.set(Le.key,y)}let T,H=0;const Y=$-ee+1;let pe=!1,Be=0;const Lt=new Array(Y);for(y=0;y<Y;y++)Lt[y]=0;for(y=K;y<=B;y++){const Le=h[y];if(H>=Y){ae(Le,x,L,!0);continue}let Xe;if(Le.key!=null)Xe=E.get(Le.key);else for(T=ee;T<=$;T++)if(Lt[T-ee]===0&&vt(Le,g[T])){Xe=T;break}Xe===void 0?ae(Le,x,L,!0):(Lt[Xe-ee]=y+1,Xe>=Be?Be=Xe:pe=!0,_(Le,g[Xe],b,null,x,L,F,m,I),H++)}const Dr=pe?cu(Lt):Mt;for(T=Dr.length-1,y=Y-1;y>=0;y--){const Le=ee+y,Xe=g[Le],xl=Le+1<O?g[Le+1].el:k;Lt[y]===0?_(null,Xe,b,xl,x,L,F,m,I):pe&&(T<0||y!==Dr[T]?ie(Xe,b,xl,2):T--)}}},ie=(h,g,b,k,x=null)=>{const{el:L,type:F,transition:m,children:I,shapeFlag:y}=h;if(y&6){ie(h.component.subTree,g,b,k);return}if(y&128){h.suspense.move(g,b,k);return}if(y&64){F.move(h,g,b,nt);return}if(F===Te){r(L,g,b);for(let B=0;B<I.length;B++)ie(I[B],g,b,k);r(h.anchor,g,b);return}if(F===po){N(h,g,b);return}if(k!==2&&y&1&&m)if(k===0)m.beforeEnter(L),r(L,g,b),qe(()=>m.enter(L),x);else{const{leave:B,delayLeave:$,afterLeave:K}=m,ee=()=>r(L,g,b),E=()=>{B(L,()=>{ee(),K&&K()})};$?$(L,ee,E):E()}else r(L,g,b)},ae=(h,g,b,k=!1,x=!1)=>{const{type:L,props:F,ref:m,children:I,dynamicChildren:y,shapeFlag:O,patchFlag:B,dirs:$}=h;if(m!=null&&fo(m,null,b,h,!0),O&256){g.ctx.deactivate(h);return}const K=O&1&&$,ee=!un(h);let E;if(ee&&(E=F&&F.onVnodeBeforeUnmount)&&Ze(E,g,h),O&6)Se(h.component,b,k);else{if(O&128){h.suspense.unmount(b,k);return}K&&bt(h,null,g,"beforeUnmount"),O&64?h.type.remove(h,g,b,x,nt,k):y&&(L!==Te||B>0&&B&64)?be(y,g,b,!1,!0):(L===Te&&B&384||!x&&O&16)&&be(I,g,b),k&&Re(h)}(ee&&(E=F&&F.onVnodeUnmounted)||K)&&qe(()=>{E&&Ze(E,g,h),K&&bt(h,null,g,"unmounted")},b)},Re=h=>{const{type:g,el:b,anchor:k,transition:x}=h;if(g===Te){nn(b,k);return}if(g===po){A(h);return}const L=()=>{o(b),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(h.shapeFlag&1&&x&&!x.persisted){const{leave:F,delayLeave:m}=x,I=()=>F(b,L);m?m(h.el,L,I):I()}else L()},nn=(h,g)=>{let b;for(;h!==g;)b=p(h),o(h),h=b;o(g)},Se=(h,g,b)=>{const{bum:k,scope:x,update:L,subTree:F,um:m}=h;k&&Fn(k),x.stop(),L&&(L.active=!1,ae(F,h,g,b)),m&&qe(m,g),qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},be=(h,g,b,k=!1,x=!1,L=0)=>{for(let F=L;F<h.length;F++)ae(h[F],g,b,k,x)},Rt=h=>h.shapeFlag&6?Rt(h.component.subTree):h.shapeFlag&128?h.suspense.next():p(h.anchor||h.el),qn=(h,g,b)=>{h==null?g._vnode&&ae(g._vnode,null,null,!0):_(g._vnode||null,h,g,null,null,null,b),Ms(),Is(),g._vnode=h},nt={p:_,um:ae,m:ie,r:Re,mt:D,mc:U,pc:S,pbc:z,n:Rt,o:t};let Tn,Rn;return e&&([Tn,Rn]=e(nt)),{render:qn,hydrate:Tn,createApp:Ya(qn,Tn)}}function _t({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function pc(t,e,n=!1){const r=t.children,o=e.children;if(G(r)&&G(o))for(let s=0;s<r.length;s++){const c=r[s];let i=o[s];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[s]=at(o[s]),i.el=c.el),n||pc(c,i)),i.type===nr&&(i.el=c.el)}}function cu(t){const e=t.slice(),n=[0];let r,o,s,c,i;const l=t.length;for(r=0;r<l;r++){const a=t[r];if(a!==0){if(o=n[n.length-1],t[o]<a){e[r]=o,n.push(r);continue}for(s=0,c=n.length-1;s<c;)i=s+c>>1,t[n[i]]<a?s=i+1:c=i;a<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,c=n[s-1];s-- >0;)n[s]=c,c=e[c];return n}const iu=t=>t.__isTeleport,Te=Symbol.for("v-fgt"),nr=Symbol.for("v-txt"),Ie=Symbol.for("v-cmt"),po=Symbol.for("v-stc"),gn=[];let He=null;function ce(t=!1){gn.push(He=t?null:[])}function lu(){gn.pop(),He=gn[gn.length-1]||null}let mn=1;function hc(t){mn+=t}function dc(t){return t.dynamicChildren=mn>0?He||Mt:null,lu(),mn>0&&He&&He.push(t),t}function _e(t,e,n,r,o,s){return dc(Ee(t,e,n,r,o,s,!0))}function Ae(t,e,n,r,o){return dc(de(t,e,n,r,o,!0))}function rr(t){return t?t.__v_isVNode===!0:!1}function vt(t,e){return t.type===e.type&&t.key===e.key}const or="__vInternal",gc=({key:t})=>t??null,sr=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?me(t)||ve(t)||X(t)?{i:ke,r:t,k:e,f:!!n}:t:null);function Ee(t,e=null,n=null,r=0,o=null,s=t===Te?0:1,c=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&gc(e),ref:e&&sr(e),scopeId:Bs,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ke};return i?(go(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=me(n)?8:16),mn>0&&!c&&He&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&He.push(l),l}const de=au;function au(t,e=null,n=null,r=0,o=null,s=!1){if((!t||t===Ha)&&(t=Ie),rr(t)){const i=lt(t,e,!0);return n&&go(i,n),mn>0&&!s&&He&&(i.shapeFlag&6?He[He.indexOf(t)]=i:He.push(i)),i.patchFlag|=-2,i}if(xu(t)&&(t=t.__vccOpts),e){e=uu(e);let{class:i,style:l}=e;i&&!me(i)&&(e.class=on(i)),fe(l)&&(Ss(l)&&!G(l)&&(l=ge({},l)),e.style=Fr(l))}const c=me(t)?1:Da(t)?128:iu(t)?64:fe(t)?4:X(t)?2:0;return Ee(t,e,n,r,o,c,s,!0)}function uu(t){return t?Ss(t)||or in t?ge({},t):t:null}function lt(t,e,n=!1){const{props:r,ref:o,patchFlag:s,children:c}=t,i=e?fu(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:i,key:i&&gc(i),ref:e&&e.ref?n&&o?G(o)?o.concat(sr(e)):[o,sr(e)]:sr(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Te?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&lt(t.ssContent),ssFallback:t.ssFallback&&lt(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function ho(t=" ",e=0){return de(nr,null,t,e)}function bn(t="",e=!1){return e?(ce(),Ae(Ie,null,t)):de(Ie,null,t)}function Ge(t){return t==null||typeof t=="boolean"?de(Ie):G(t)?de(Te,null,t.slice()):typeof t=="object"?at(t):de(nr,null,String(t))}function at(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:lt(t)}function go(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(G(e))n=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),go(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!(or in e)?e._ctx=ke:o===3&&ke&&(ke.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else X(e)?(e={default:e,_ctx:ke},n=32):(e=String(e),r&64?(n=16,e=[ho(e)]):n=8);t.children=e,t.shapeFlag|=n}function fu(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const o in r)if(o==="class")e.class!==r.class&&(e.class=on([e.class,r.class]));else if(o==="style")e.style=Fr([e.style,r.style]);else if(Nn(o)){const s=e[o],c=r[o];c&&s!==c&&!(G(s)&&s.includes(c))&&(e[o]=s?[].concat(s,c):c)}else o!==""&&(e[o]=r[o])}return e}function Ze(t,e,n,r=null){Ne(t,e,7,[n,r])}const pu=nc();let hu=0;function du(t,e,n){const r=t.type,o=(e?e.appContext:t.appContext)||pu,s={uid:hu++,vnode:t,type:r,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Nl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oc(r,o),emitsOptions:Fs(r,o),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=ka.bind(null,s),t.ce&&t.ce(s),s}let xe=null;const gu=()=>xe||ke;let mo,jt,mc="__VUE_INSTANCE_SETTERS__";(jt=Or()[mc])||(jt=Or()[mc]=[]),jt.push(t=>xe=t),mo=t=>{jt.length>1?jt.forEach(e=>e(t)):jt[0](t)};const Gt=t=>{mo(t),t.scope.on()},xt=()=>{xe&&xe.scope.off(),mo(null)};function bc(t){return t.vnode.shapeFlag&4}let _n=!1;function mu(t,e=!1){_n=e;const{props:n,children:r}=t.vnode,o=bc(t);Qa(t,n,o,e),nu(t,r);const s=o?bu(t,e):void 0;return _n=!1,s}function bu(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Ds(new Proxy(t.ctx,Va));const{setup:r}=n;if(r){const o=t.setupContext=r.length>1?vu(t):null;Gt(t),Ft();const s=ct(r,t,0,[t.props,o]);if(Bt(),xt(),ns(s)){if(s.then(xt,xt),e)return s.then(c=>{_c(t,c,e)}).catch(c=>{Kn(c,t,0)});t.asyncDep=s}else _c(t,s,e)}else xc(t,e)}function _c(t,e,n){X(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:fe(e)&&(t.setupState=Rs(e)),xc(t,n)}let vc;function xc(t,e,n){const r=t.type;if(!t.render){if(!e&&vc&&!r.render){const o=r.template||io(t).template;if(o){const{isCustomElement:s,compilerOptions:c}=t.appContext.config,{delimiters:i,compilerOptions:l}=r,a=ge(ge({isCustomElement:s,delimiters:i},c),l);r.render=vc(o,a)}}t.render=r.render||Pe}Gt(t),Ft(),ja(t),Bt(),xt()}function _u(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return De(t,"get","$attrs"),e[n]}}))}function vu(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return _u(t)},slots:t.slots,emit:t.emit,expose:e}}function cr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Rs(Ds(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in hn)return hn[n](t)},has(e,n){return n in e||n in hn}}))}function xu(t){return X(t)&&"__vccOpts"in t}const Zt=(t,e)=>ba(t,e,_n);function yc(t,e,n){const r=arguments.length;return r===2?fe(e)&&!G(e)?rr(e)?de(t,null,[e]):de(t,e):de(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&rr(n)&&(n=[n]),de(t,e,n))}const yu=Symbol.for("v-scx"),wu=()=>Vt(yu),ku="3.3.4",Eu="http://www.w3.org/2000/svg",yt=typeof document<"u"?document:null,wc=yt&&yt.createElement("template"),Cu={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const o=e?yt.createElementNS(Eu,t):yt.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:t=>yt.createTextNode(t),createComment:t=>yt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>yt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,s){const c=n?n.previousSibling:e.lastChild;if(o&&(o===s||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{wc.innerHTML=r?`<svg>${t}</svg>`:t;const i=wc.content;if(r){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}e.insertBefore(i,n)}return[c?c.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function Au(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function Su(t,e,n){const r=t.style,o=me(n);if(n&&!o){if(e&&!me(e))for(const s in e)n[s]==null&&bo(r,s,"");for(const s in n)bo(r,s,n[s])}else{const s=r.display;o?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=s)}}const kc=/\s*!important$/;function bo(t,e,n){if(G(n))n.forEach(r=>bo(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Du(t,e);kc.test(n)?t.setProperty(ht(r),n.replace(kc,""),"important"):t[r]=n}}const Ec=["Webkit","Moz","ms"],_o={};function Du(t,e){const n=_o[e];if(n)return n;let r=Ot(e);if(r!=="filter"&&r in t)return _o[e]=r;r=ss(r);for(let o=0;o<Ec.length;o++){const s=Ec[o]+r;if(s in t)return _o[e]=s}return e}const Cc="http://www.w3.org/1999/xlink";function qu(t,e,n,r,o){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Cc,e.slice(6,e.length)):t.setAttributeNS(Cc,e,n);else{const s=Ll(e);n==null||s&&!is(n)?t.removeAttribute(e):t.setAttribute(e,s?"":n)}}function Tu(t,e,n,r,o,s,c){if(e==="innerHTML"||e==="textContent"){r&&c(r,o,s),t[e]=n??"";return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){t._value=n;const a=i==="OPTION"?t.getAttribute("value"):t.value,u=n??"";a!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=is(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Kt(t,e,n,r){t.addEventListener(e,n,r)}function Ru(t,e,n,r){t.removeEventListener(e,n,r)}function Lu(t,e,n,r,o=null){const s=t._vei||(t._vei={}),c=s[e];if(r&&c)c.value=r;else{const[i,l]=Nu(e);if(r){const a=s[e]=Ou(r,o);Kt(t,i,a,l)}else c&&(Ru(t,i,c,l),s[e]=void 0)}}const Ac=/(?:Once|Passive|Capture)$/;function Nu(t){let e;if(Ac.test(t)){e={};let r;for(;r=t.match(Ac);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ht(t.slice(2)),e]}let vo=0;const Mu=Promise.resolve(),Iu=()=>vo||(Mu.then(()=>vo=0),vo=Date.now());function Ou(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ne(Fu(r,n.value),e,5,[r])};return n.value=t,n.attached=Iu(),n}function Fu(t,e){if(G(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const Sc=/^on[a-z]/,Bu=(t,e,n,r,o=!1,s,c,i,l)=>{e==="class"?Au(t,r,o):e==="style"?Su(t,n,r):Nn(e)?Tr(e)||Lu(t,e,n,r,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Pu(t,e,r,o))?Tu(t,e,r,s,c,i,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),qu(t,e,r,o))};function Pu(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Sc.test(e)&&X(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Sc.test(e)&&me(n)?!1:e in t}const ut="transition",vn="animation",ir=(t,{slots:e})=>yc(La,Uu(t),e);ir.displayName="Transition";const Dc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ir.props=ge({},Hs,Dc);const wt=(t,e=[])=>{G(t)?t.forEach(n=>n(...e)):t&&t(...e)},qc=t=>t?G(t)?t.some(e=>e.length>1):t.length>1:!1;function Uu(t){const e={};for(const P in t)P in Dc||(e[P]=t[P]);if(t.css===!1)return e;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:c=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=c,appearToClass:u=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,w=zu(o),_=w&&w[0],M=w&&w[1],{onBeforeEnter:q,onEnter:C,onEnterCancelled:N,onLeave:A,onLeaveCancelled:V,onBeforeAppear:R=q,onAppear:W=C,onAppearCancelled:U=N}=e,Q=(P,re,D)=>{kt(P,re?u:i),kt(P,re?a:c),D&&D()},z=(P,re)=>{P._isLeaving=!1,kt(P,f),kt(P,d),kt(P,p),re&&re()},J=P=>(re,D)=>{const ne=P?W:C,j=()=>Q(re,P,D);wt(ne,[re,j]),Tc(()=>{kt(re,P?l:s),ft(re,P?u:i),qc(ne)||Rc(re,r,_,j)})};return ge(e,{onBeforeEnter(P){wt(q,[P]),ft(P,s),ft(P,c)},onBeforeAppear(P){wt(R,[P]),ft(P,l),ft(P,a)},onEnter:J(!1),onAppear:J(!0),onLeave(P,re){P._isLeaving=!0;const D=()=>z(P,re);ft(P,f),Vu(),ft(P,p),Tc(()=>{P._isLeaving&&(kt(P,f),ft(P,d),qc(A)||Rc(P,r,M,D))}),wt(A,[P,D])},onEnterCancelled(P){Q(P,!1),wt(N,[P])},onAppearCancelled(P){Q(P,!0),wt(U,[P])},onLeaveCancelled(P){z(P),wt(V,[P])}})}function zu(t){if(t==null)return null;if(fe(t))return[xo(t.enter),xo(t.leave)];{const e=xo(t);return[e,e]}}function xo(t){return Sl(t)}function ft(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function kt(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Tc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let $u=0;function Rc(t,e,n,r){const o=t._endId=++$u,s=()=>{o===t._endId&&r()};if(n)return setTimeout(s,n);const{type:c,timeout:i,propCount:l}=Hu(t,e);if(!c)return r();const a=c+"end";let u=0;const f=()=>{t.removeEventListener(a,p),s()},p=d=>{d.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},i+1),t.addEventListener(a,p)}function Hu(t,e){const n=window.getComputedStyle(t),r=w=>(n[w]||"").split(", "),o=r(`${ut}Delay`),s=r(`${ut}Duration`),c=Lc(o,s),i=r(`${vn}Delay`),l=r(`${vn}Duration`),a=Lc(i,l);let u=null,f=0,p=0;e===ut?c>0&&(u=ut,f=c,p=s.length):e===vn?a>0&&(u=vn,f=a,p=l.length):(f=Math.max(c,a),u=f>0?c>a?ut:vn:null,p=u?u===ut?s.length:l.length:0);const d=u===ut&&/\b(transform|all)(,|$)/.test(r(`${ut}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:d}}function Lc(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Nc(n)+Nc(t[r])))}function Nc(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Vu(){return document.body.offsetHeight}const Mc=t=>{const e=t.props["onUpdate:modelValue"]||!1;return G(e)?n=>Fn(e,n):e};function ju(t){t.target.composing=!0}function Ic(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Gu={created(t,{modifiers:{lazy:e,trim:n,number:r}},o){t._assign=Mc(o);const s=r||o.props&&o.props.type==="number";Kt(t,e?"change":"input",c=>{if(c.target.composing)return;let i=t.value;n&&(i=i.trim()),s&&(i=Ir(i)),t._assign(i)}),n&&Kt(t,"change",()=>{t.value=t.value.trim()}),e||(Kt(t,"compositionstart",ju),Kt(t,"compositionend",Ic),Kt(t,"change",Ic))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:o}},s){if(t._assign=Mc(s),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(o||t.type==="number")&&Ir(t.value)===e))return;const c=e??"";t.value!==c&&(t.value=c)}},Zu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ku=(t,e)=>n=>{if(!("key"in n))return;const r=ht(n.key);if(e.some(o=>o===r||Zu[o]===r))return t(n)},Wu={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):xn(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),xn(t,!0),r.enter(t)):r.leave(t,()=>{xn(t,!1)}):xn(t,e))},beforeUnmount(t,{value:e}){xn(t,e)}};function xn(t,e){t.style.display=e?t._vod:"none"}const Ju=ge({patchProp:Bu},Cu);let Oc;function Yu(){return Oc||(Oc=ou(Ju))}const Xu=(...t)=>{const e=Yu().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=Qu(r);if(!o)return;const s=e._component;!X(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const c=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),c},e};function Qu(t){return me(t)?document.querySelector(t):t}const Vg="",Fc=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ef={},tf={class:"chat-button"};function nf(t,e){return ce(),_e("button",tf,[pn(t.$slots,"default")])}const rf=Fc(ef,[["render",nf]]);function of(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function sf(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const Et=of(),cf={class:"chat-layout"},lf={key:0,class:"chat-header"},af={key:2,class:"chat-footer"},uf=$e({__name:"Layout",setup(t){const e=zt(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return fn(()=>{Et.on("scrollToBottom",n),window.addEventListener("resize",n)}),ro(()=>{Et.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(ce(),_e("main",cf,[r.$slots.header?(ce(),_e("div",lf,[pn(r.$slots,"header")])):bn("",!0),r.$slots.default?(ce(),_e("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[pn(r.$slots,"default")],512)):bn("",!0),r.$slots.footer?(ce(),_e("div",af,[pn(r.$slots,"footer")])):bn("",!0)]))}}),jg="",yn={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",chatInputKey:"chat_input",chatHistoryKey:"chat_history",defaultLanguage:"en",showWelcomeScreen:!1,initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question.."}},theme:{}},ff="#n8n-chat",Bc="n8n-chat/sessionId",Pc="Chat",Uc="ChatOptions";function yo(){return Vt(Pc)}function wo(){return{options:Vt(Uc)}}function lr(){const{options:t}=wo(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const pf={class:"chat-get-started"},hf=$e({__name:"GetStarted",setup(t){const{t:e}=lr();return(n,r)=>(ce(),_e("div",pf,[de(rf,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:it(()=>[ho(Pn(he(e)("getStarted")),1)]),_:1})]))}}),Zg="",Kg="",df={},gf={class:"chat-powered-by"},mf=Ee("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function bf(t,e){return ce(),_e("div",gf,[ho(" Powered by "),mf])}const _f=Fc(df,[["render",bf]]),vf={class:"chat-get-started-footer"},xf={key:0},yf=$e({__name:"GetStartedFooter",setup(t){const{t:e,te:n}=lr();return(r,o)=>(ce(),_e("div",vf,[he(n)("footer")?(ce(),_e("div",xf,Pn(he(e)("footer")),1)):bn("",!0),de(_f)]))}}),Wg="";function zc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var le={},$c={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
2
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ko=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Wt={},Hc={};function kf(t){var e,n,r=Hc[t];if(r)return r;for(r=Hc[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function ar(t,e,n){var r,o,s,c,i,l="";for(typeof e!="string"&&(n=e,e=ar.defaultChars),typeof n>"u"&&(n=!0),i=kf(e),r=0,o=t.length;r<o;r++){if(s=t.charCodeAt(r),n&&s===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){l+=t.slice(r,r+3),r+=2;continue}if(s<128){l+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(c=t.charCodeAt(r+1),c>=56320&&c<=57343)){l+=encodeURIComponent(t[r]+t[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[r])}return l}ar.defaultChars=";/?:@&=+$,-_.!~*'()#",ar.componentChars="-_.!~*'()";var Ef=ar,Vc={};function Cf(t){var e,n,r=Vc[t];if(r)return r;for(r=Vc[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function ur(t,e){var n;return typeof e!="string"&&(e=ur.defaultChars),n=Cf(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,l,a,u,f="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){f+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){u=c<<6&1984|i&63,u<128?f+="��":f+=String.fromCharCode(u),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16),(i&192)===128&&(l&192)===128)){u=c<<12&61440|i<<6&4032|l&63,u<2048||u>=55296&&u<=57343?f+="���":f+=String.fromCharCode(u),o+=6;continue}if((c&248)===240&&o+9<s&&(i=parseInt(r.slice(o+4,o+6),16),l=parseInt(r.slice(o+7,o+9),16),a=parseInt(r.slice(o+10,o+12),16),(i&192)===128&&(l&192)===128&&(a&192)===128)){u=c<<18&1835008|i<<12&258048|l<<6&4032|a&63,u<65536||u>1114111?f+="����":(u-=65536,f+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),o+=9;continue}f+="�"}return f})}ur.defaultChars=";/?:@&=+$,#",ur.componentChars="";var Af=ur,Sf=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function fr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Df=/^([a-z0-9.+-]+:)/i,qf=/:[0-9]*$/,Tf=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Rf=["<",">",'"',"`"," ","\r",`
3
+ `," "],Lf=["{","}","|","\\","^","`"].concat(Rf),Nf=["'"].concat(Lf),jc=["%","/","?",";","#"].concat(Nf),Gc=["/","?","#"],Mf=255,Zc=/^[+a-z0-9A-Z_-]{0,63}$/,If=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Kc={javascript:!0,"javascript:":!0},Wc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Of(t,e){if(t&&t instanceof fr)return t;var n=new fr;return n.parse(t,e),n}fr.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var l=Tf.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var a=Df.exec(i);if(a&&(a=a[0],o=a.toLowerCase(),this.protocol=a,i=i.substr(a.length)),(e||a||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=i.substr(0,2)==="//",c&&!(a&&Kc[a])&&(i=i.substr(2),this.slashes=!0)),!Kc[a]&&(c||a&&!Wc[a])){var u=-1;for(n=0;n<Gc.length;n++)s=i.indexOf(Gc[n]),s!==-1&&(u===-1||s<u)&&(u=s);var f,p;for(u===-1?p=i.lastIndexOf("@"):p=i.lastIndexOf("@",u),p!==-1&&(f=i.slice(0,p),i=i.slice(p+1),this.auth=f),u=-1,n=0;n<jc.length;n++)s=i.indexOf(jc[n]),s!==-1&&(u===-1||s<u)&&(u=s);u===-1&&(u=i.length),i[u-1]===":"&&u--;var d=i.slice(0,u);i=i.slice(u),this.parseHost(d),this.hostname=this.hostname||"";var w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w){var _=this.hostname.split(/\./);for(n=0,r=_.length;n<r;n++){var M=_[n];if(M&&!M.match(Zc)){for(var q="",C=0,N=M.length;C<N;C++)M.charCodeAt(C)>127?q+="x":q+=M[C];if(!q.match(Zc)){var A=_.slice(0,n),V=_.slice(n+1),R=M.match(If);R&&(A.push(R[1]),V.unshift(R[2])),V.length&&(i=V.join(".")+i),this.hostname=A.join(".");break}}}}this.hostname.length>Mf&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var W=i.indexOf("#");W!==-1&&(this.hash=i.substr(W),i=i.slice(0,W));var U=i.indexOf("?");return U!==-1&&(this.search=i.substr(U),i=i.slice(0,U)),i&&(this.pathname=i),Wc[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},fr.prototype.parseHost=function(t){var e=qf.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Ff=Of;Wt.encode=Ef,Wt.decode=Af,Wt.format=Sf,Wt.parse=Ff;var Ct={},Eo,Jc;function Yc(){return Jc||(Jc=1,Eo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Eo}var Co,Xc;function Qc(){return Xc||(Xc=1,Co=/[\0-\x1F\x7F-\x9F]/),Co}var Ao,ei;function Bf(){return ei||(ei=1,Ao=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ao}var So,ti;function ni(){return ti||(ti=1,So=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),So}var ri;function Pf(){return ri||(ri=1,Ct.Any=Yc(),Ct.Cc=Qc(),Ct.Cf=Bf(),Ct.P=ko,Ct.Z=ni()),Ct}(function(t){function e(D){return Object.prototype.toString.call(D)}function n(D){return e(D)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(D,ne){return r.call(D,ne)}function s(D){var ne=Array.prototype.slice.call(arguments,1);return ne.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(v){D[v]=j[v]})}}),D}function c(D,ne,j){return[].concat(D.slice(0,ne),j,D.slice(ne+1))}function i(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var ne=55296+(D>>10),j=56320+(D&1023);return String.fromCharCode(ne,j)}return String.fromCharCode(D)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(a.source+"|"+u.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=$c;function w(D,ne){var j=0;return o(d,ne)?d[ne]:ne.charCodeAt(0)===35&&p.test(ne)&&(j=ne[1].toLowerCase()==="x"?parseInt(ne.slice(2),16):parseInt(ne.slice(1),10),i(j))?l(j):D}function _(D){return D.indexOf("\\")<0?D:D.replace(a,"$1")}function M(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(f,function(ne,j,v){return j||w(ne,v)})}var q=/[&<>"]/,C=/[&<>"]/g,N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function A(D){return N[D]}function V(D){return q.test(D)?D.replace(C,A):D}var R=/[.?*+^$[\]\\(){}|-]/g;function W(D){return D.replace(R,"\\$&")}function U(D){switch(D){case 9:case 32:return!0}return!1}function Q(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var z=ko;function J(D){return z.test(D)}function P(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function re(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Wt,t.lib.ucmicro=Pf(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=_,t.unescapeAll=M,t.isValidEntityCode=i,t.fromCodePoint=l,t.escapeHtml=V,t.arrayReplaceAt=c,t.isSpace=U,t.isWhiteSpace=Q,t.isMdAsciiPunct=P,t.isPunctChar=J,t.escapeRE=W,t.normalizeReference=re})(le);var pr={},Uf=function(e,n,r){var o,s,c,i,l=-1,a=e.posMax,u=e.pos;for(e.pos=n+1,o=1;e.pos<a;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(i=e.pos,e.md.inline.skipToken(e),c===91){if(i===e.pos-1)o++;else if(r)return e.pos=u,-1}}return s&&(l=e.pos),e.pos=u,l},oi=le.unescapeAll,zf=function(e,n,r){var o,s,c=0,i=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(o=e.charCodeAt(n),o===10||o===60)return l;if(o===62)return l.pos=n+1,l.str=oi(e.slice(i+1,n)),l.ok=!0,l;if(o===92&&n+1<r){n+=2;continue}n++}return l}for(s=0;n<r&&(o=e.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return l;if(o===41){if(s===0)break;s--}n++}return i===n||s!==0||(l.str=oi(e.slice(i,n)),l.lines=c,l.pos=n,l.ok=!0),l},$f=le.unescapeAll,Hf=function(e,n,r){var o,s,c=0,i=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=r||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return l;for(n++,s===40&&(s=41);n<r;){if(o=e.charCodeAt(n),o===s)return l.pos=n+1,l.lines=c,l.str=$f(e.slice(i+1,n)),l.ok=!0,l;if(o===40&&s===41)return l;o===10?c++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&c++),n++}return l};pr.parseLinkLabel=Uf,pr.parseLinkDestination=zf,pr.parseLinkTitle=Hf;var Vf=le.assign,jf=le.unescapeAll,At=le.escapeHtml,Ke={};Ke.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+At(t[e].content)+"</code>"},Ke.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+At(t[e].content)+`</code></pre>
4
+ `},Ke.fence=function(t,e,n,r,o){var s=t[e],c=s.info?jf(s.info).trim():"",i="",l="",a,u,f,p,d;return c&&(f=c.split(/(\s+)/g),i=f[0],l=f.slice(2).join("")),n.highlight?a=n.highlight(s.content,i,l)||At(s.content):a=At(s.content),a.indexOf("<pre")===0?a+`
5
+ `:c?(u=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[],u<0?p.push(["class",n.langPrefix+i]):(p[u]=p[u].slice(),p[u][1]+=" "+n.langPrefix+i),d={attrs:p},"<pre><code"+o.renderAttrs(d)+">"+a+`</code></pre>
6
+ `):"<pre><code"+o.renderAttrs(s)+">"+a+`</code></pre>
7
+ `},Ke.image=function(t,e,n,r,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(t,e,n)},Ke.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
8
+ `:`<br>
9
+ `},Ke.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
10
+ `:`<br>
11
+ `:`
12
+ `},Ke.text=function(t,e){return At(t[e].content)},Ke.html_block=function(t,e){return t[e].content},Ke.html_inline=function(t,e){return t[e].content};function Jt(){this.rules=Vf({},Ke)}Jt.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+At(e.attrs[n][0])+'="'+At(e.attrs[n][1])+'"';return o},Jt.prototype.renderToken=function(e,n,r){var o,s="",c=!1,i=e[n];return i.hidden?"":(i.block&&i.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
13
+ `),s+=(i.nesting===-1?"</":"<")+i.tag,s+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(s+=" /"),i.block&&(c=!0,i.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===i.tag)&&(c=!1))),s+=c?`>
14
+ `:">",s)},Jt.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,c=0,i=t.length;c<i;c++)r=t[c].type,typeof s[r]<"u"?o+=s[r](t,c,e,n,this):o+=this.renderToken(t,c,e);return o},Jt.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,s=t.length;o<s;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
15
+ `);return r},Jt.prototype.render=function(t,e,n){var r,o,s,c="",i=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?c+=this.renderInline(t[r].children,e,n):typeof i[s]<"u"?c+=i[t[r].type](t,r,e,n,this):c+=this.renderToken(t,r,e,n);return c};var Gf=Jt;function Ve(){this.__rules__=[],this.__cache__=null}Ve.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Ve.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},Ve.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Ve.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Ve.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Ve.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},Ve.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},Ve.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Ve.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},Ve.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Do=Ve,Zf=/\r\n?|\n/g,Kf=/\0/g,Wf=function(e){var n;n=e.src.replace(Zf,`
16
+ `),n=n.replace(Kf,"�"),e.src=n},Jf=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Yf=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Xf=le.arrayReplaceAt;function Qf(t){return/^<a[>\s]/i.test(t)}function ep(t){return/^<\/a\s*>/i.test(t)}var tp=function(e){var n,r,o,s,c,i,l,a,u,f,p,d,w,_,M,q,C=e.tokens,N;if(e.md.options.linkify){for(r=0,o=C.length;r<o;r++)if(!(C[r].type!=="inline"||!e.md.linkify.pretest(C[r].content)))for(s=C[r].children,w=0,n=s.length-1;n>=0;n--){if(i=s[n],i.type==="link_close"){for(n--;s[n].level!==i.level&&s[n].type!=="link_open";)n--;continue}if(i.type==="html_inline"&&(Qf(i.content)&&w>0&&w--,ep(i.content)&&w++),!(w>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(u=i.content,N=e.md.linkify.match(u),l=[],d=i.level,p=0,a=0;a<N.length;a++)_=N[a].url,M=e.md.normalizeLink(_),e.md.validateLink(M)&&(q=N[a].text,N[a].schema?N[a].schema==="mailto:"&&!/^mailto:/i.test(q)?q=e.md.normalizeLinkText("mailto:"+q).replace(/^mailto:/,""):q=e.md.normalizeLinkText(q):q=e.md.normalizeLinkText("http://"+q).replace(/^http:\/\//,""),f=N[a].index,f>p&&(c=new e.Token("text","",0),c.content=u.slice(p,f),c.level=d,l.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",M]],c.level=d++,c.markup="linkify",c.info="auto",l.push(c),c=new e.Token("text","",0),c.content=q,c.level=d,l.push(c),c=new e.Token("link_close","a",-1),c.level=--d,c.markup="linkify",c.info="auto",l.push(c),p=N[a].lastIndex);p<u.length&&(c=new e.Token("text","",0),c.content=u.slice(p),c.level=d,l.push(c)),C[r].children=s=Xf(s,n,l)}}}},si=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,np=/\((c|tm|r|p)\)/i,rp=/\((c|tm|r|p)\)/ig,op={c:"©",r:"®",p:"§",tm:"™"};function sp(t,e){return op[e.toLowerCase()]}function cp(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(rp,sp)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function ip(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&si.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var lp=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(np.test(e.tokens[n].content)&&cp(e.tokens[n].children),si.test(e.tokens[n].content)&&ip(e.tokens[n].children))},ci=le.isWhiteSpace,ii=le.isPunctChar,li=le.isMdAsciiPunct,ap=/['"]/,ai=/['"]/g,ui="’";function hr(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function up(t,e){var n,r,o,s,c,i,l,a,u,f,p,d,w,_,M,q,C,N,A,V,R;for(A=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,C=A.length-1;C>=0&&!(A[C].level<=l);C--);if(A.length=C+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(ai.lastIndex=c,s=ai.exec(o),!!s);){if(M=q=!0,c=s.index+1,N=s[0]==="'",u=32,s.index-1>=0)u=o.charCodeAt(s.index-1);else for(C=n-1;C>=0&&!(t[C].type==="softbreak"||t[C].type==="hardbreak");C--)if(t[C].content){u=t[C].content.charCodeAt(t[C].content.length-1);break}if(f=32,c<i)f=o.charCodeAt(c);else for(C=n+1;C<t.length&&!(t[C].type==="softbreak"||t[C].type==="hardbreak");C++)if(t[C].content){f=t[C].content.charCodeAt(0);break}if(p=li(u)||ii(String.fromCharCode(u)),d=li(f)||ii(String.fromCharCode(f)),w=ci(u),_=ci(f),_?M=!1:d&&(w||p||(M=!1)),w?q=!1:p&&(_||d||(q=!1)),f===34&&s[0]==='"'&&u>=48&&u<=57&&(q=M=!1),M&&q&&(M=p,q=d),!M&&!q){N&&(r.content=hr(r.content,s.index,ui));continue}if(q){for(C=A.length-1;C>=0&&(a=A[C],!(A[C].level<l));C--)if(a.single===N&&A[C].level===l){a=A[C],N?(V=e.md.options.quotes[2],R=e.md.options.quotes[3]):(V=e.md.options.quotes[0],R=e.md.options.quotes[1]),r.content=hr(r.content,s.index,R),t[a.token].content=hr(t[a.token].content,a.pos,V),c+=R.length-1,a.token===n&&(c+=V.length-1),o=r.content,i=o.length,A.length=C;continue e}}M?A.push({token:n,pos:s.index,single:N,level:l}):q&&N&&(r.content=hr(r.content,s.index,ui))}}}}var fp=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!ap.test(e.tokens[n].content)||up(e.tokens[n].children,e)};function Yt(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Yt.prototype.attrIndex=function(e){var n,r,o;if(!this.attrs)return-1;for(n=this.attrs,r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1},Yt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Yt.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},Yt.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},Yt.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var qo=Yt,pp=qo;function fi(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}fi.prototype.Token=pp;var hp=fi,dp=Do,To=[["normalize",Wf],["block",Jf],["inline",Yf],["linkify",tp],["replacements",lp],["smartquotes",fp]];function Ro(){this.ruler=new dp;for(var t=0;t<To.length;t++)this.ruler.push(To[t][0],To[t][1])}Ro.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},Ro.prototype.State=hp;var gp=Ro,Lo=le.isSpace;function No(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function pi(t){var e=[],n=0,r=t.length,o,s=!1,c=0,i="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(i+=t.substring(c,n-1),c=n):(e.push(i+t.substring(c,n)),i="",c=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(i+t.substring(c)),e}var mp=function(e,n,r,o){var s,c,i,l,a,u,f,p,d,w,_,M,q,C,N,A,V,R;if(n+2>r||(u=n+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(i=e.bMarks[u]+e.tShift[u],i>=e.eMarks[u])||(V=e.src.charCodeAt(i++),V!==124&&V!==45&&V!==58)||i>=e.eMarks[u]||(R=e.src.charCodeAt(i++),R!==124&&R!==45&&R!==58&&!Lo(R))||V===45&&Lo(R))return!1;for(;i<e.eMarks[u];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!Lo(s))return!1;i++}for(c=No(e,n+1),f=c.split("|"),w=[],l=0;l<f.length;l++){if(_=f[l].trim(),!_){if(l===0||l===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?w.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?w.push("left"):w.push("")}if(c=No(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=pi(c),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==w.length))return!1;if(o)return!0;for(C=e.parentType,e.parentType="table",A=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=M=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],l=0;l<f.length;l++)d=e.push("th_open","th",1),w[l]&&(d.attrs=[["style","text-align:"+w[l]]]),d=e.push("inline","",0),d.content=f[l].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),u=n+2;u<r&&!(e.sCount[u]<e.blkIndent);u++){for(N=!1,l=0,a=A.length;l<a;l++)if(A[l](e,u,r,!0)){N=!0;break}if(N||(c=No(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4)break;for(f=pi(c),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),u===n+2&&(d=e.push("tbody_open","tbody",1),d.map=q=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[u,u+1],l=0;l<p;l++)d=e.push("td_open","td",1),w[l]&&(d.attrs=[["style","text-align:"+w[l]]]),d=e.push("inline","",0),d.content=f[l]?f[l].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return q&&(d=e.push("tbody_close","tbody",-1),q[1]=u),d=e.push("table_close","table",-1),M[1]=u,e.parentType=C,e.line=u,!0},bp=function(e,n,r){var o,s,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,c=e.push("code_block","code",0),c.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
+ `,c.map=[n,e.line],!0},_p=function(e,n,r,o){var s,c,i,l,a,u,f,p=!1,d=e.bMarks[n]+e.tShift[n],w=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>w||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(a=d,d=e.skipChars(d,s),c=d-a,c<3)||(f=e.src.slice(a,d),i=e.src.slice(d,w),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=r||(d=a=e.bMarks[l]+e.tShift[l],w=e.eMarks[l],d<w&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-a<c)&&(d=e.skipSpaces(d),!(d<w)))){p=!0;break}return c=e.sCount[n],e.line=l+(p?1:0),u=e.push("fence","code",0),u.info=i,u.content=e.getLines(n+1,l,c,!0),u.markup=f,u.map=[n,e.line],!0},hi=le.isSpace,vp=function(e,n,r,o){var s,c,i,l,a,u,f,p,d,w,_,M,q,C,N,A,V,R,W,U,Q=e.lineMax,z=e.bMarks[n]+e.tShift[n],J=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(z++)!==62)return!1;if(o)return!0;for(l=d=e.sCount[n]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,s=!1,A=!0):e.src.charCodeAt(z)===9?(A=!0,(e.bsCount[n]+d)%4===3?(z++,l++,d++,s=!1):s=!0):A=!1,w=[e.bMarks[n]],e.bMarks[n]=z;z<J&&(c=e.src.charCodeAt(z),hi(c));){c===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;z++}for(_=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(A?1:0),u=z>=J,C=[e.sCount[n]],e.sCount[n]=d-l,N=[e.tShift[n]],e.tShift[n]=z-e.bMarks[n],R=e.md.block.ruler.getRules("blockquote"),q=e.parentType,e.parentType="blockquote",p=n+1;p<r&&(U=e.sCount[p]<e.blkIndent,z=e.bMarks[p]+e.tShift[p],J=e.eMarks[p],!(z>=J));p++){if(e.src.charCodeAt(z++)===62&&!U){for(l=d=e.sCount[p]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,s=!1,A=!0):e.src.charCodeAt(z)===9?(A=!0,(e.bsCount[p]+d)%4===3?(z++,l++,d++,s=!1):s=!0):A=!1,w.push(e.bMarks[p]),e.bMarks[p]=z;z<J&&(c=e.src.charCodeAt(z),hi(c));){c===9?d+=4-(d+e.bsCount[p]+(s?1:0))%4:d++;z++}u=z>=J,_.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(A?1:0),C.push(e.sCount[p]),e.sCount[p]=d-l,N.push(e.tShift[p]),e.tShift[p]=z-e.bMarks[p];continue}if(u)break;for(V=!1,i=0,a=R.length;i<a;i++)if(R[i](e,p,r,!0)){V=!0;break}if(V){e.lineMax=p,e.blkIndent!==0&&(w.push(e.bMarks[p]),_.push(e.bsCount[p]),N.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}w.push(e.bMarks[p]),_.push(e.bsCount[p]),N.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]=-1}for(M=e.blkIndent,e.blkIndent=0,W=e.push("blockquote_open","blockquote",1),W.markup=">",W.map=f=[n,0],e.md.block.tokenize(e,n,p),W=e.push("blockquote_close","blockquote",-1),W.markup=">",e.lineMax=Q,e.parentType=q,f[1]=e.line,i=0;i<N.length;i++)e.bMarks[i+n]=w[i],e.tShift[i+n]=N[i],e.sCount[i+n]=C[i],e.bsCount[i+n]=_[i];return e.blkIndent=M,!0},xp=le.isSpace,yp=function(e,n,r,o){var s,c,i,l,a=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(a++),s!==42&&s!==45&&s!==95))return!1;for(c=1;a<u;){if(i=e.src.charCodeAt(a++),i!==s&&!xp(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(c+1).join(String.fromCharCode(s))),!0)},di=le.isSpace;function gi(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!di(s))?-1:r}function mi(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!di(n))?-1:o}function wp(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var kp=function(e,n,r,o){var s,c,i,l,a,u,f,p,d,w,_,M,q,C,N,A,V,R,W,U,Q,z,J,P,re,D,ne,j,v=!1,S=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(v=!0),(J=mi(e,n))>=0){if(f=!0,re=e.bMarks[n]+e.tShift[n],q=Number(e.src.slice(re,J-1)),v&&q!==1)return!1}else if((J=gi(e,n))>=0)f=!1;else return!1;if(v&&e.skipSpaces(J)>=e.eMarks[n])return!1;if(M=e.src.charCodeAt(J-1),o)return!0;for(_=e.tokens.length,f?(j=e.push("ordered_list_open","ol",1),q!==1&&(j.attrs=[["start",q]])):j=e.push("bullet_list_open","ul",1),j.map=w=[n,0],j.markup=String.fromCharCode(M),N=n,P=!1,ne=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";N<r;){for(z=J,C=e.eMarks[N],u=A=e.sCount[N]+J-(e.bMarks[n]+e.tShift[n]);z<C;){if(s=e.src.charCodeAt(z),s===9)A+=4-(A+e.bsCount[N])%4;else if(s===32)A++;else break;z++}if(c=z,c>=C?a=1:a=A-u,a>4&&(a=1),l=u+a,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(M),j.map=p=[n,0],f&&(j.info=e.src.slice(re,J-1)),Q=e.tight,U=e.tShift[n],W=e.sCount[n],V=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=A,c>=C&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||P)&&(S=!1),P=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=V,e.tShift[n]=U,e.sCount[n]=W,e.tight=Q,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(M),N=n=e.line,p[1]=N,c=e.bMarks[n],N>=r||e.sCount[N]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(D=!1,i=0,d=ne.length;i<d;i++)if(ne[i](e,N,r,!0)){D=!0;break}if(D)break;if(f){if(J=mi(e,N),J<0)break;re=e.bMarks[N]+e.tShift[N]}else if(J=gi(e,N),J<0)break;if(M!==e.src.charCodeAt(J-1))break}return f?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(M),w[1]=N,e.line=N,e.parentType=R,S&&wp(e,_),!0},Ep=le.normalizeReference,dr=le.isSpace,Cp=function(e,n,r,o){var s,c,i,l,a,u,f,p,d,w,_,M,q,C,N,A,V=0,R=e.bMarks[n]+e.tShift[n],W=e.eMarks[n],U=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(R)!==91)return!1;for(;++R<W;)if(e.src.charCodeAt(R)===93&&e.src.charCodeAt(R-1)!==92){if(R+1===W||e.src.charCodeAt(R+1)!==58)return!1;break}for(l=e.lineMax,N=e.md.block.ruler.getRules("reference"),w=e.parentType,e.parentType="reference";U<l&&!e.isEmpty(U);U++)if(!(e.sCount[U]-e.blkIndent>3)&&!(e.sCount[U]<0)){for(C=!1,u=0,f=N.length;u<f;u++)if(N[u](e,U,l,!0)){C=!0;break}if(C)break}for(q=e.getLines(n,U,e.blkIndent,!1).trim(),W=q.length,R=1;R<W;R++){if(s=q.charCodeAt(R),s===91)return!1;if(s===93){d=R;break}else s===10?V++:s===92&&(R++,R<W&&q.charCodeAt(R)===10&&V++)}if(d<0||q.charCodeAt(d+1)!==58)return!1;for(R=d+2;R<W;R++)if(s=q.charCodeAt(R),s===10)V++;else if(!dr(s))break;if(_=e.md.helpers.parseLinkDestination(q,R,W),!_.ok||(a=e.md.normalizeLink(_.str),!e.md.validateLink(a)))return!1;for(R=_.pos,V+=_.lines,c=R,i=V,M=R;R<W;R++)if(s=q.charCodeAt(R),s===10)V++;else if(!dr(s))break;for(_=e.md.helpers.parseLinkTitle(q,R,W),R<W&&M!==R&&_.ok?(A=_.str,R=_.pos,V+=_.lines):(A="",R=c,V=i);R<W&&(s=q.charCodeAt(R),!!dr(s));)R++;if(R<W&&q.charCodeAt(R)!==10&&A)for(A="",R=c,V=i;R<W&&(s=q.charCodeAt(R),!!dr(s));)R++;return R<W&&q.charCodeAt(R)!==10||(p=Ep(q.slice(1,d)),!p)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:A,href:a}),e.parentType=w,e.line=n+V+1),!0)},Ap=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gr={},Sp="[a-zA-Z_:][a-zA-Z0-9:._-]*",Dp="[^\"'=<>`\\x00-\\x20]+",qp="'[^']*'",Tp='"[^"]*"',Rp="(?:"+Dp+"|"+qp+"|"+Tp+")",Lp="(?:\\s+"+Sp+"(?:\\s*=\\s*"+Rp+")?)",bi="<[A-Za-z][A-Za-z0-9\\-]*"+Lp+"*\\s*\\/?>",_i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Np="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Mp="<[?][\\s\\S]*?[?]>",Ip="<![A-Z]+\\s+[^>]*>",Op="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Fp=new RegExp("^(?:"+bi+"|"+_i+"|"+Np+"|"+Mp+"|"+Ip+"|"+Op+")"),Bp=new RegExp("^(?:"+bi+"|"+_i+")");gr.HTML_TAG_RE=Fp,gr.HTML_OPEN_CLOSE_TAG_RE=Bp;var Pp=Ap,Up=gr.HTML_OPEN_CLOSE_TAG_RE,Xt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Pp.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Up.source+"\\s*$"),/^$/,!1]],zp=function(e,n,r,o){var s,c,i,l,a=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;for(l=e.src.slice(a,u),s=0;s<Xt.length&&!Xt[s][0].test(l);s++);if(s===Xt.length)return!1;if(o)return Xt[s][2];if(c=n+1,!Xt[s][1].test(l)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(a=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],l=e.src.slice(a,u),Xt[s][1].test(l)){l.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[n,c],i.content=e.getLines(n,c,e.blkIndent,!0),!0},vi=le.isSpace,$p=function(e,n,r,o){var s,c,i,l,a=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(a),s!==35||a>=u))return!1;for(c=1,s=e.src.charCodeAt(++a);s===35&&a<u&&c<=6;)c++,s=e.src.charCodeAt(++a);return c>6||a<u&&!vi(s)?!1:(o||(u=e.skipSpacesBack(u,a),i=e.skipCharsBack(u,35,a),i>a&&vi(e.src.charCodeAt(i-1))&&(u=i),e.line=n+1,l=e.push("heading_open","h"+String(c),1),l.markup="########".slice(0,c),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(a,u).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(c),-1),l.markup="########".slice(0,c)),!0)},Hp=function(e,n,r){var o,s,c,i,l,a,u,f,p,d=n+1,w,_=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(w=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(a=e.bMarks[d]+e.tShift[d],u=e.eMarks[d],a<u&&(p=e.src.charCodeAt(a),(p===45||p===61)&&(a=e.skipChars(a,p),a=e.skipSpaces(a),a>=u)))){f=p===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,c=0,i=_.length;c<i;c++)if(_[c](e,d,r,!0)){s=!0;break}if(s)break}}return f?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,l=e.push("heading_open","h"+String(f),1),l.markup=String.fromCharCode(p),l.map=[n,e.line],l=e.push("inline","",0),l.content=o,l.map=[n,e.line-1],l.children=[],l=e.push("heading_close","h"+String(f),-1),l.markup=String.fromCharCode(p),e.parentType=w,!0):!1},Vp=function(e,n){var r,o,s,c,i,l,a=n+1,u=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(l=e.parentType,e.parentType="paragraph";a<f&&!e.isEmpty(a);a++)if(!(e.sCount[a]-e.blkIndent>3)&&!(e.sCount[a]<0)){for(o=!1,s=0,c=u.length;s<c;s++)if(u[s](e,a,f,!0)){o=!0;break}if(o)break}return r=e.getLines(n,a,e.blkIndent,!1).trim(),e.line=a,i=e.push("paragraph_open","p",1),i.map=[n,e.line],i=e.push("inline","",0),i.content=r,i.map=[n,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=l,!0},xi=qo,mr=le.isSpace;function We(t,e,n,r){var o,s,c,i,l,a,u,f;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,c=i=a=u=0,l=s.length;i<l;i++){if(o=s.charCodeAt(i),!f)if(mr(o)){a++,o===9?u+=4-u%4:u++;continue}else f=!0;(o===10||i===l-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),f=!1,a=0,u=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}We.prototype.push=function(t,e,n){var r=new xi(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},We.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},We.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},We.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!mr(n));e++);return e},We.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!mr(this.src.charCodeAt(--e)))return e+1;return e},We.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},We.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},We.prototype.getLines=function(e,n,r,o){var s,c,i,l,a,u,f,p=e;if(e>=n)return"";for(u=new Array(n-e),s=0;p<n;p++,s++){for(c=0,f=l=this.bMarks[p],p+1<n||o?a=this.eMarks[p]+1:a=this.eMarks[p];l<a&&c<r;){if(i=this.src.charCodeAt(l),mr(i))i===9?c+=4-(c+this.bsCount[p])%4:c++;else if(l-f<this.tShift[p])c++;else break;l++}c>r?u[s]=new Array(c-r+1).join(" ")+this.src.slice(l,a):u[s]=this.src.slice(l,a)}return u.join("")},We.prototype.Token=xi;var jp=We,Gp=Do,br=[["table",mp,["paragraph","reference"]],["code",bp],["fence",_p,["paragraph","reference","blockquote","list"]],["blockquote",vp,["paragraph","reference","blockquote","list"]],["hr",yp,["paragraph","reference","blockquote","list"]],["list",kp,["paragraph","reference","blockquote"]],["reference",Cp],["html_block",zp,["paragraph","reference","blockquote"]],["heading",$p,["paragraph","reference","blockquote"]],["lheading",Hp],["paragraph",Vp]];function _r(){this.ruler=new Gp;for(var t=0;t<br.length;t++)this.ruler.push(br[t][0],br[t][1],{alt:(br[t][2]||[]).slice()})}_r.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),c=s.length,i=e,l=!1,a=t.md.options.maxNesting;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=a){t.line=n;break}for(o=0;o<c&&(r=s[o](t,i,n,!1),!r);o++);t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),i=t.line,i<n&&t.isEmpty(i)&&(l=!0,i++,t.line=i)}},_r.prototype.parse=function(t,e,n,r){var o;t&&(o=new this.State(t,e,n,r),this.tokenize(o,o.line,o.lineMax))},_r.prototype.State=jp;var Zp=_r;function Kp(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Wp=function(e,n){for(var r=e.pos;r<e.posMax&&!Kp(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Jp=le.isSpace,Yp=function(e,n){var r,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(c++;c<o&&Jp(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Xp=le.isSpace,Mo=[],yi=0;yi<256;yi++)Mo.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Mo[t.charCodeAt(0)]=1});var Qp=function(e,n){var r,o=e.pos,s=e.posMax;if(e.src.charCodeAt(o)!==92)return!1;if(o++,o<s){if(r=e.src.charCodeAt(o),r<256&&Mo[r]!==0)return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),!!Xp(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},eh=function(e,n){var r,o,s,c,i,l,a,u,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(r=f,f++,o=e.posMax;f<o&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(r,f),a=s.length,e.backticksScanned&&(e.backticks[a]||0)<=r)return n||(e.pending+=s),e.pos+=a,!0;for(i=l=f;(i=e.src.indexOf("`",l))!==-1;){for(l=i+1;l<o&&e.src.charCodeAt(l)===96;)l++;if(u=l-i,u===a)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(f,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[u]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=a,!0},vr={};vr.tokenize=function(e,n){var r,o,s,c,i,l=e.pos,a=e.src.charCodeAt(l);if(n||a!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(a),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),r=0;r<c;r+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:a,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function wi(t,e){var n,r,o,s,c,i=[],l=e.length;for(n=0;n<l;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(n=i.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(c=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=c)}}vr.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(wi(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&wi(e,r[n].delimiters)};var xr={};xr.tokenize=function(e,n){var r,o,s,c=e.pos,i=e.src.charCodeAt(c);if(n||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function ki(t,e){var n,r,o,s,c,i,l=e.length;for(n=l-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}xr.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(ki(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&ki(e,r[n].delimiters)};var th=le.normalizeReference,Io=le.isSpace,nh=function(e,n){var r,o,s,c,i,l,a,u,f,p="",d="",w=e.pos,_=e.posMax,M=e.pos,q=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(l=c+1,l<_&&e.src.charCodeAt(l)===40){for(q=!1,l++;l<_&&(o=e.src.charCodeAt(l),!(!Io(o)&&o!==10));l++);if(l>=_)return!1;if(M=l,a=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),a.ok){for(p=e.md.normalizeLink(a.str),e.md.validateLink(p)?l=a.pos:p="",M=l;l<_&&(o=e.src.charCodeAt(l),!(!Io(o)&&o!==10));l++);if(a=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<_&&M!==l&&a.ok)for(d=a.str,l=a.pos;l<_&&(o=e.src.charCodeAt(l),!(!Io(o)&&o!==10));l++);}(l>=_||e.src.charCodeAt(l)!==41)&&(q=!0),l++}if(q){if(typeof e.env.references>"u")return!1;if(l<_&&e.src.charCodeAt(l)===91?(M=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?s=e.src.slice(M,l++):l=c+1):l=c+1,s||(s=e.src.slice(i,c)),u=e.env.references[th(s)],!u)return e.pos=w,!1;p=u.href,d=u.title}return n||(e.pos=i,e.posMax=c,f=e.push("link_open","a",1),f.attrs=r=[["href",p]],d&&r.push(["title",d]),e.md.inline.tokenize(e),f=e.push("link_close","a",-1)),e.pos=l,e.posMax=_,!0},rh=le.normalizeReference,Oo=le.isSpace,oh=function(e,n){var r,o,s,c,i,l,a,u,f,p,d,w,_,M="",q=e.pos,C=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(a=i+1,a<C&&e.src.charCodeAt(a)===40){for(a++;a<C&&(o=e.src.charCodeAt(a),!(!Oo(o)&&o!==10));a++);if(a>=C)return!1;for(_=a,f=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),f.ok&&(M=e.md.normalizeLink(f.str),e.md.validateLink(M)?a=f.pos:M=""),_=a;a<C&&(o=e.src.charCodeAt(a),!(!Oo(o)&&o!==10));a++);if(f=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<C&&_!==a&&f.ok)for(p=f.str,a=f.pos;a<C&&(o=e.src.charCodeAt(a),!(!Oo(o)&&o!==10));a++);else p="";if(a>=C||e.src.charCodeAt(a)!==41)return e.pos=q,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<C&&e.src.charCodeAt(a)===91?(_=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?c=e.src.slice(_,a++):a=i+1):a=i+1,c||(c=e.src.slice(l,i)),u=e.env.references[rh(c)],!u)return e.pos=q,!1;M=u.href,p=u.title}return n||(s=e.src.slice(l,i),e.md.inline.parse(s,e.md,e.env,w=[]),d=e.push("image","img",0),d.attrs=r=[["src",M],["alt",""]],d.children=w,d.content=s,p&&r.push(["title",p])),e.pos=a,e.posMax=C,!0},sh=/^([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])?)*)$/,ch=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ih=function(e,n){var r,o,s,c,i,l,a=e.pos;if(e.src.charCodeAt(a)!==60)return!1;for(i=e.pos,l=e.posMax;;){if(++a>=l||(c=e.src.charCodeAt(a),c===60))return!1;if(c===62)break}return r=e.src.slice(i+1,a),ch.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):sh.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},lh=gr.HTML_TAG_RE;function ah(t){var e=t|32;return e>=97&&e<=122}var uh=function(e,n){var r,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(r=e.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!ah(r))||(o=e.src.slice(i).match(lh),!o)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(i,i+o[0].length)),e.pos+=o[0].length,!0)},Ei=$c,fh=le.has,ph=le.isValidEntityCode,Ci=le.fromCodePoint,hh=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dh=/^&([a-z][a-z0-9]{1,31});/i,gh=function(e,n){var r,o,s,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<i){if(r=e.src.charCodeAt(c+1),r===35){if(s=e.src.slice(c).match(hh),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=ph(o)?Ci(o):Ci(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(dh),s&&fh(Ei,s[1]))return n||(e.pending+=Ei[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Ai(t,e){var n,r,o,s,c,i,l,a,u={},f=e.length;if(f){var p=0,d=-2,w=[];for(n=0;n<f;n++)if(o=e[n],w.push(0),(e[p].marker!==o.marker||d!==o.token-1)&&(p=n),d=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),c=u[o.marker][(o.open?3:0)+o.length%3],r=p-w[p]-1,i=r;r>c;r-=w[r]+1)if(s=e[r],s.marker===o.marker&&s.open&&s.end<0&&(l=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(l=!0),!l)){a=r>0&&!e[r-1].open?w[r-1]+1:0,w[n]=n-r+a,w[r]=a,o.open=!1,s.end=n,s.close=!1,i=-1,d=-2;break}i!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var mh=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Ai(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Ai(e,r[n].delimiters)},bh=function(e){var n,r,o=0,s=e.tokens,c=e.tokens.length;for(n=r=0;n<c;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<c&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)},Fo=qo,Si=le.isWhiteSpace,Di=le.isPunctChar,qi=le.isMdAsciiPunct;function wn(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}wn.prototype.pushPending=function(){var t=new Fo("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},wn.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Fo(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},wn.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,l,a,u,f,p=!0,d=!0,w=this.posMax,_=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<w&&this.src.charCodeAt(n)===_;)n++;return s=n-t,o=n<w?this.src.charCodeAt(n):32,a=qi(r)||Di(String.fromCharCode(r)),f=qi(o)||Di(String.fromCharCode(o)),l=Si(r),u=Si(o),u?p=!1:f&&(l||a||(p=!1)),l?d=!1:a&&(u||f||(d=!1)),e?(c=p,i=d):(c=p&&(!d||a),i=d&&(!p||f)),{can_open:c,can_close:i,length:s}},wn.prototype.Token=Fo;var _h=wn,Ti=Do,Bo=[["text",Wp],["newline",Yp],["escape",Qp],["backticks",eh],["strikethrough",vr.tokenize],["emphasis",xr.tokenize],["link",nh],["image",oh],["autolink",ih],["html_inline",uh],["entity",gh]],Po=[["balance_pairs",mh],["strikethrough",vr.postProcess],["emphasis",xr.postProcess],["text_collapse",bh]];function kn(){var t;for(this.ruler=new Ti,t=0;t<Bo.length;t++)this.ruler.push(Bo[t][0],Bo[t][1]);for(this.ruler2=new Ti,t=0;t<Po.length;t++)this.ruler2.push(Po[t][0],Po[t][1])}kn.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[r]<"u"){t.pos=i[r];return}if(t.level<c)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,i[r]=t.pos},kn.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,c=t.md.options.maxNesting;t.pos<s;){if(t.level<c)for(n=0;n<o&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},kn.prototype.parse=function(t,e,n,r){var o,s,c,i=new this.State(t,e,n,r);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},kn.prototype.State=_h;var vh=kn,Uo,Ri;function xh(){return Ri||(Ri=1,Uo=function(t){var e={};e.src_Any=Yc().source,e.src_Cc=Qc().source,e.src_Z=ni().source,e.src_P=ko.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Uo}function zo(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function yr(t){return Object.prototype.toString.call(t)}function yh(t){return yr(t)==="[object String]"}function wh(t){return yr(t)==="[object Object]"}function kh(t){return yr(t)==="[object RegExp]"}function Li(t){return yr(t)==="[object Function]"}function Eh(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Ni={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ch(t){return Object.keys(t||{}).reduce(function(e,n){return e||Ni.hasOwnProperty(n)},!1)}var Ah={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Sh="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Dh="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function qh(t){t.__index__=-1,t.__text_cache__=""}function Th(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Mi(){return function(t,e){e.normalize(t)}}function wr(t){var e=t.re=xh()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Sh),n.push(e.src_xn),e.src_tlds=n.join("|");function r(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(i,l){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+l)}Object.keys(t.__schemas__).forEach(function(i){var l=t.__schemas__[i];if(l!==null){var a={validate:null,link:null};if(t.__compiled__[i]=a,wh(l)){kh(l.validate)?a.validate=Th(l.validate):Li(l.validate)?a.validate=l.validate:s(i,l),Li(l.normalize)?a.normalize=l.normalize:l.normalize?s(i,l):a.normalize=Mi();return}if(yh(l)){o.push(i);return}s(i,l)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Mi()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(Eh).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),qh(t)}function Rh(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function Ii(t,e){var n=new Rh(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Oe(t,e){if(!(this instanceof Oe))return new Oe(t,e);e||Ch(t)&&(e=t,t={}),this.__opts__=zo({},Ni,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=zo({},Ah,t),this.__compiled__={},this.__tlds__=Dh,this.__tlds_replaced__=!1,this.re={},wr(this)}Oe.prototype.add=function(e,n){return this.__schemas__[e]=n,wr(this),this},Oe.prototype.set=function(e){return this.__opts__=zo(this.__opts__,e),this},Oe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,o,s,c,i,l,a,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],l.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=e.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=r.index+r[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},Oe.prototype.pretest=function(e){return this.re.pretest.test(e)},Oe.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},Oe.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Ii(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(Ii(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},Oe.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),wr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,wr(this),this)},Oe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Oe.prototype.onCompile=function(){};var Lh=Oe;const Qt=2147483647,Je=36,$o=1,En=26,Nh=38,Mh=700,Oi=72,Fi=128,Bi="-",Ih=/^xn--/,Oh=/[^\0-\x7E]/,Fh=/[\x2E\u3002\uFF0E\uFF61]/g,Bh={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ho=Je-$o,Ye=Math.floor,Vo=String.fromCharCode;function St(t){throw new RangeError(Bh[t])}function Ph(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Pi(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(Fh,".");const o=t.split("."),s=Ph(o,e).join(".");return r+s}function jo(t){const e=[];let n=0;const r=t.length;for(;n<r;){const o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}const Ui=t=>String.fromCodePoint(...t),Uh=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:Je},zi=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},$i=function(t,e,n){let r=0;for(t=n?Ye(t/Mh):t>>1,t+=Ye(t/e);t>Ho*En>>1;r+=Je)t=Ye(t/Ho);return Ye(r+(Ho+1)*t/(t+Nh))},Go=function(t){const e=[],n=t.length;let r=0,o=Fi,s=Oi,c=t.lastIndexOf(Bi);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&St("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let l=r;for(let u=1,f=Je;;f+=Je){i>=n&&St("invalid-input");const p=Uh(t.charCodeAt(i++));(p>=Je||p>Ye((Qt-r)/u))&&St("overflow"),r+=p*u;const d=f<=s?$o:f>=s+En?En:f-s;if(p<d)break;const w=Je-d;u>Ye(Qt/w)&&St("overflow"),u*=w}const a=e.length+1;s=$i(r-l,a,l==0),Ye(r/a)>Qt-o&&St("overflow"),o+=Ye(r/a),r%=a,e.splice(r++,0,o)}return String.fromCodePoint(...e)},Zo=function(t){const e=[];t=jo(t);let n=t.length,r=Fi,o=0,s=Oi;for(const l of t)l<128&&e.push(Vo(l));let c=e.length,i=c;for(c&&e.push(Bi);i<n;){let l=Qt;for(const u of t)u>=r&&u<l&&(l=u);const a=i+1;l-r>Ye((Qt-o)/a)&&St("overflow"),o+=(l-r)*a,r=l;for(const u of t)if(u<r&&++o>Qt&&St("overflow"),u===r){let f=o;for(let p=Je;;p+=Je){const d=p<=s?$o:p>=s+En?En:p-s;if(f<d)break;const w=f-d,_=Je-d;e.push(Vo(zi(d+w%_,0))),f=Ye(w/_)}e.push(Vo(zi(f,0))),s=$i(o,a,i===c),o=0,++i}++o,++r}return e.join("")},Hi=function(t){return Pi(t,function(e){return Ih.test(e)?Go(e.slice(4).toLowerCase()):e})},Vi=function(t){return Pi(t,function(e){return Oh.test(e)?"xn--"+Zo(e):e})},zh=wf(Object.freeze(Object.defineProperty({__proto__:null,decode:Go,default:{version:"2.1.0",ucs2:{decode:jo,encode:Ui},decode:Go,encode:Zo,toASCII:Vi,toUnicode:Hi},encode:Zo,toASCII:Vi,toUnicode:Hi,ucs2decode:jo,ucs2encode:Ui},Symbol.toStringTag,{value:"Module"})));var $h={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Hh={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},Vh={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},Cn=le,jh=pr,Gh=Gf,Zh=gp,Kh=Zp,Wh=vh,Jh=Lh,Dt=Wt,ji=zh,Yh={default:$h,zero:Hh,commonmark:Vh},Xh=/^(vbscript|javascript|file|data):/,Qh=/^data:image\/(gif|png|jpeg|webp);/;function ed(t){var e=t.trim().toLowerCase();return Xh.test(e)?!!Qh.test(e):!0}var Gi=["http:","https:","mailto:"];function td(t){var e=Dt.parse(t,!0);if(e.hostname&&(!e.protocol||Gi.indexOf(e.protocol)>=0))try{e.hostname=ji.toASCII(e.hostname)}catch{}return Dt.encode(Dt.format(e))}function nd(t){var e=Dt.parse(t,!0);if(e.hostname&&(!e.protocol||Gi.indexOf(e.protocol)>=0))try{e.hostname=ji.toUnicode(e.hostname)}catch{}return Dt.decode(Dt.format(e),Dt.decode.defaultChars+"%")}function Fe(t,e){if(!(this instanceof Fe))return new Fe(t,e);e||Cn.isString(t)||(e=t||{},t="default"),this.inline=new Wh,this.block=new Kh,this.core=new Zh,this.renderer=new Gh,this.linkify=new Jh,this.validateLink=ed,this.normalizeLink=td,this.normalizeLinkText=nd,this.utils=Cn,this.helpers=Cn.assign({},jh),this.options={},this.configure(t),e&&this.set(e)}Fe.prototype.set=function(t){return Cn.assign(this.options,t),this},Fe.prototype.configure=function(t){var e=this,n;if(Cn.isString(t)&&(n=t,t=Yh[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},Fe.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Fe.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Fe.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Fe.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Fe.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Fe.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Fe.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var rd=Fe,od=rd;const sd=zc(od);var cd=$e({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1}},data:function(){return{md:null}},computed:{content:function(){var t,e=this.source;return(t=this.md)===null||t===void 0?void 0:t.render(e)}},created:function(){var t;this.md=new sd((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return yc("div",{innerHTML:this.content})}});const id=cd;function Zi(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Zi(n)}),t}class Ki{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Wi(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function pt(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const ld="</span>",Ji=t=>!!t.scope,ad=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class ud{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Wi(e)}openNode(e){if(!Ji(e))return;const n=ad(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Ji(e)&&(this.buffer+=ld)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Yi=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Ko{constructor(){this.rootNode=Yi(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Yi({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{Ko._collapse(n)}))}}class fd extends Ko{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new ud(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function An(t){return t?typeof t=="string"?t:t.source:null}function Xi(t){return qt("(?=",t,")")}function pd(t){return qt("(?:",t,")*")}function hd(t){return qt("(?:",t,")?")}function qt(...t){return t.map(n=>An(n)).join("")}function dd(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Wo(...t){return"("+(dd(t).capture?"":"?:")+t.map(r=>An(r)).join("|")+")"}function Qi(t){return new RegExp(t.toString()+"|").exec("").length-1}function gd(t,e){const n=t&&t.exec(e);return n&&n.index===0}const md=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Jo(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=An(r),c="";for(;s.length>0;){const i=md.exec(s);if(!i){c+=s;break}c+=s.substring(0,i.index),s=s.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?c+="\\"+String(Number(i[1])+o):(c+=i[0],i[0]==="("&&n++)}return c}).map(r=>`(${r})`).join(e)}const bd=/\b\B/,el="[a-zA-Z]\\w*",Yo="[a-zA-Z_]\\w*",tl="\\b\\d+(\\.\\d+)?",nl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",rl="\\b(0b[01]+)",_d="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",vd=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=qt(e,/.*\b/,t.binary,/\b.*/)),pt({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Sn={begin:"\\\\[\\s\\S]",relevance:0},xd={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Sn]},yd={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Sn]},wd={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},kr=function(t,e,n={}){const r=pt({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=Wo("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:qt(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},kd=kr("//","$"),Ed=kr("/\\*","\\*/"),Cd=kr("#","$"),Ad={scope:"number",begin:tl,relevance:0},Sd={scope:"number",begin:nl,relevance:0},Dd={scope:"number",begin:rl,relevance:0},qd={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Sn,{begin:/\[/,end:/\]/,relevance:0,contains:[Sn]}]},Td={scope:"title",begin:el,relevance:0},Rd={scope:"title",begin:Yo,relevance:0},Ld={begin:"\\.\\s*"+Yo,relevance:0};var Er=Object.freeze({__proto__:null,APOS_STRING_MODE:xd,BACKSLASH_ESCAPE:Sn,BINARY_NUMBER_MODE:Dd,BINARY_NUMBER_RE:rl,COMMENT:kr,C_BLOCK_COMMENT_MODE:Ed,C_LINE_COMMENT_MODE:kd,C_NUMBER_MODE:Sd,C_NUMBER_RE:nl,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:Cd,IDENT_RE:el,MATCH_NOTHING_RE:bd,METHOD_GUARD:Ld,NUMBER_MODE:Ad,NUMBER_RE:tl,PHRASAL_WORDS_MODE:wd,QUOTE_STRING_MODE:yd,REGEXP_MODE:qd,RE_STARTERS_RE:_d,SHEBANG:vd,TITLE_MODE:Td,UNDERSCORE_IDENT_RE:Yo,UNDERSCORE_TITLE_MODE:Rd});function Nd(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Md(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Id(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Nd,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Od(t,e){Array.isArray(t.illegal)&&(t.illegal=Wo(...t.illegal))}function Fd(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Bd(t,e){t.relevance===void 0&&(t.relevance=1)}const Pd=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=qt(n.beforeMatch,Xi(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},Ud=["of","and","for","in","not","or","if","then","parent","list","value"],zd="keyword";function ol(t,e,n=zd){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,ol(t[s],e,s))}),r;function o(s,c){e&&(c=c.map(i=>i.toLowerCase())),c.forEach(function(i){const l=i.split("|");r[l[0]]=[s,$d(l[0],l[1])]})}}function $d(t,e){return e?Number(e):Hd(t)?0:1}function Hd(t){return Ud.includes(t.toLowerCase())}const sl={},Tt=t=>{console.error(t)},cl=(t,...e)=>{console.log(`WARN: ${t}`,...e)},en=(t,e)=>{sl[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),sl[`${t}/${e}`]=!0)},Cr=new Error;function il(t,e,{key:n}){let r=0;const o=t[n],s={},c={};for(let i=1;i<=e.length;i++)c[i+r]=o[i],s[i+r]=!0,r+=Qi(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function Vd(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Tt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Cr;if(typeof t.beginScope!="object"||t.beginScope===null)throw Tt("beginScope must be object"),Cr;il(t,t.begin,{key:"beginScope"}),t.begin=Jo(t.begin,{joinWith:""})}}function jd(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Tt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Cr;if(typeof t.endScope!="object"||t.endScope===null)throw Tt("endScope must be object"),Cr;il(t,t.end,{key:"endScope"}),t.end=Jo(t.end,{joinWith:""})}}function Gd(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function Zd(t){Gd(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Vd(t),jd(t)}function Kd(t){function e(c,i){return new RegExp(An(c),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(i?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,i]),this.matchAt+=Qi(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(l=>l[1]);this.matcherRe=e(Jo(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(i);if(!l)return null;const a=l.findIndex((f,p)=>p>0&&f!==void 0),u=this.matchIndexes[a];return l.splice(0,a),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const l=new n;return this.rules.slice(i).forEach(([a,u])=>l.addRule(a,u)),l.compile(),this.multiRegexes[i]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,l){this.rules.push([i,l]),l.type==="begin"&&this.count++}exec(i){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let a=l.exec(i);if(this.resumingScanAtSamePosition()&&!(a&&a.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,a=u.exec(i)}return a&&(this.regexIndex+=a.position+1,this.regexIndex===this.count&&this.considerAll()),a}}function o(c){const i=new r;return c.contains.forEach(l=>i.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&i.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&i.addRule(c.illegal,{type:"illegal"}),i}function s(c,i){const l=c;if(c.isCompiled)return l;[Md,Fd,Zd,Pd].forEach(u=>u(c,i)),t.compilerExtensions.forEach(u=>u(c,i)),c.__beforeBegin=null,[Id,Od,Bd].forEach(u=>u(c,i)),c.isCompiled=!0;let a=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),a=c.keywords.$pattern,delete c.keywords.$pattern),a=a||/\w+/,c.keywords&&(c.keywords=ol(c.keywords,t.case_insensitive)),l.keywordPatternRe=e(a,!0),i&&(c.begin||(c.begin=/\B|\b/),l.beginRe=e(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=e(l.end)),l.terminatorEnd=An(l.end)||"",c.endsWithParent&&i.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+i.terminatorEnd)),c.illegal&&(l.illegalRe=e(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(u){return Wd(u==="self"?c:u)})),c.contains.forEach(function(u){s(u,l)}),c.starts&&s(c.starts,i),l.matcher=o(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=pt(t.classNameAliases||{}),s(t)}function ll(t){return t?t.endsWithParent||ll(t.starts):!1}function Wd(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return pt(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:ll(t)?pt(t,{starts:t.starts?pt(t.starts):null}):Object.isFrozen(t)?pt(t):t}var Jd="11.9.0";class Yd extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Xo=Wi,al=pt,ul=Symbol("nomatch"),Xd=7,fl=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:fd};function l(v){return i.noHighlightRe.test(v)}function a(v){let S=v.className+" ";S+=v.parentNode?v.parentNode.className:"";const Z=i.languageDetectRe.exec(S);if(Z){const te=Q(Z[1]);return te||(cl(s.replace("{}",Z[1])),cl("Falling back to no-highlight mode for this block.",v)),te?Z[1]:"no-highlight"}return S.split(/\s+/).find(te=>l(te)||Q(te))}function u(v,S,Z){let te="",ie="";typeof S=="object"?(te=v,Z=S.ignoreIllegals,ie=S.language):(en("10.7.0","highlight(lang, code, ...args) has been deprecated."),en("10.7.0",`Please use highlight(code, options) instead.
18
+ https://github.com/highlightjs/highlight.js/issues/2277`),ie=v,te=S),Z===void 0&&(Z=!0);const ae={code:te,language:ie};ne("before:highlight",ae);const Re=ae.result?ae.result:f(ae.language,ae.code,Z);return Re.code=ae.code,ne("after:highlight",Re),Re}function f(v,S,Z,te){const ie=Object.create(null);function ae(E,T){return E.keywords[T]}function Re(){if(!m.keywords){y.addText(O);return}let E=0;m.keywordPatternRe.lastIndex=0;let T=m.keywordPatternRe.exec(O),H="";for(;T;){H+=O.substring(E,T.index);const Y=x.case_insensitive?T[0].toLowerCase():T[0],pe=ae(m,Y);if(pe){const[Be,Lt]=pe;if(y.addText(H),H="",ie[Y]=(ie[Y]||0)+1,ie[Y]<=Xd&&(B+=Lt),Be.startsWith("_"))H+=T[0];else{const Dr=x.classNameAliases[Be]||Be;be(T[0],Dr)}}else H+=T[0];E=m.keywordPatternRe.lastIndex,T=m.keywordPatternRe.exec(O)}H+=O.substring(E),y.addText(H)}function nn(){if(O==="")return;let E=null;if(typeof m.subLanguage=="string"){if(!e[m.subLanguage]){y.addText(O);return}E=f(m.subLanguage,O,!0,I[m.subLanguage]),I[m.subLanguage]=E._top}else E=d(O,m.subLanguage.length?m.subLanguage:null);m.relevance>0&&(B+=E.relevance),y.__addSublanguage(E._emitter,E.language)}function Se(){m.subLanguage!=null?nn():Re(),O=""}function be(E,T){E!==""&&(y.startScope(T),y.addText(E),y.endScope())}function Rt(E,T){let H=1;const Y=T.length-1;for(;H<=Y;){if(!E._emit[H]){H++;continue}const pe=x.classNameAliases[E[H]]||E[H],Be=T[H];pe?be(Be,pe):(O=Be,Re(),O=""),H++}}function qn(E,T){return E.scope&&typeof E.scope=="string"&&y.openNode(x.classNameAliases[E.scope]||E.scope),E.beginScope&&(E.beginScope._wrap?(be(O,x.classNameAliases[E.beginScope._wrap]||E.beginScope._wrap),O=""):E.beginScope._multi&&(Rt(E.beginScope,T),O="")),m=Object.create(E,{parent:{value:m}}),m}function nt(E,T,H){let Y=gd(E.endRe,H);if(Y){if(E["on:end"]){const pe=new Ki(E);E["on:end"](T,pe),pe.isMatchIgnored&&(Y=!1)}if(Y){for(;E.endsParent&&E.parent;)E=E.parent;return E}}if(E.endsWithParent)return nt(E.parent,T,H)}function Tn(E){return m.matcher.regexIndex===0?(O+=E[0],1):(ee=!0,0)}function Rn(E){const T=E[0],H=E.rule,Y=new Ki(H),pe=[H.__beforeBegin,H["on:begin"]];for(const Be of pe)if(Be&&(Be(E,Y),Y.isMatchIgnored))return Tn(T);return H.skip?O+=T:(H.excludeBegin&&(O+=T),Se(),!H.returnBegin&&!H.excludeBegin&&(O=T)),qn(H,E),H.returnBegin?0:T.length}function h(E){const T=E[0],H=S.substring(E.index),Y=nt(m,E,H);if(!Y)return ul;const pe=m;m.endScope&&m.endScope._wrap?(Se(),be(T,m.endScope._wrap)):m.endScope&&m.endScope._multi?(Se(),Rt(m.endScope,E)):pe.skip?O+=T:(pe.returnEnd||pe.excludeEnd||(O+=T),Se(),pe.excludeEnd&&(O=T));do m.scope&&y.closeNode(),!m.skip&&!m.subLanguage&&(B+=m.relevance),m=m.parent;while(m!==Y.parent);return Y.starts&&qn(Y.starts,E),pe.returnEnd?0:T.length}function g(){const E=[];for(let T=m;T!==x;T=T.parent)T.scope&&E.unshift(T.scope);E.forEach(T=>y.openNode(T))}let b={};function k(E,T){const H=T&&T[0];if(O+=E,H==null)return Se(),0;if(b.type==="begin"&&T.type==="end"&&b.index===T.index&&H===""){if(O+=S.slice(T.index,T.index+1),!o){const Y=new Error(`0 width match regex (${v})`);throw Y.languageName=v,Y.badRule=b.rule,Y}return 1}if(b=T,T.type==="begin")return Rn(T);if(T.type==="illegal"&&!Z){const Y=new Error('Illegal lexeme "'+H+'" for mode "'+(m.scope||"<unnamed>")+'"');throw Y.mode=m,Y}else if(T.type==="end"){const Y=h(T);if(Y!==ul)return Y}if(T.type==="illegal"&&H==="")return 1;if(K>1e5&&K>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return O+=H,H.length}const x=Q(v);if(!x)throw Tt(s.replace("{}",v)),new Error('Unknown language: "'+v+'"');const L=Kd(x);let F="",m=te||L;const I={},y=new i.__emitter(i);g();let O="",B=0,$=0,K=0,ee=!1;try{if(x.__emitTokens)x.__emitTokens(S,y);else{for(m.matcher.considerAll();;){K++,ee?ee=!1:m.matcher.considerAll(),m.matcher.lastIndex=$;const E=m.matcher.exec(S);if(!E)break;const T=S.substring($,E.index),H=k(T,E);$=E.index+H}k(S.substring($))}return y.finalize(),F=y.toHTML(),{language:v,value:F,relevance:B,illegal:!1,_emitter:y,_top:m}}catch(E){if(E.message&&E.message.includes("Illegal"))return{language:v,value:Xo(S),illegal:!0,relevance:0,_illegalBy:{message:E.message,index:$,context:S.slice($-100,$+100),mode:E.mode,resultSoFar:F},_emitter:y};if(o)return{language:v,value:Xo(S),illegal:!1,relevance:0,errorRaised:E,_emitter:y,_top:m};throw E}}function p(v){const S={value:Xo(v),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return S._emitter.addText(v),S}function d(v,S){S=S||i.languages||Object.keys(e);const Z=p(v),te=S.filter(Q).filter(J).map(Se=>f(Se,v,!1));te.unshift(Z);const ie=te.sort((Se,be)=>{if(Se.relevance!==be.relevance)return be.relevance-Se.relevance;if(Se.language&&be.language){if(Q(Se.language).supersetOf===be.language)return 1;if(Q(be.language).supersetOf===Se.language)return-1}return 0}),[ae,Re]=ie,nn=ae;return nn.secondBest=Re,nn}function w(v,S,Z){const te=S&&n[S]||Z;v.classList.add("hljs"),v.classList.add(`language-${te}`)}function _(v){let S=null;const Z=a(v);if(l(Z))return;if(ne("before:highlightElement",{el:v,language:Z}),v.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",v);return}if(v.children.length>0&&(i.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(v)),i.throwUnescapedHTML))throw new Yd("One of your code blocks includes unescaped HTML.",v.innerHTML);S=v;const te=S.textContent,ie=Z?u(te,{language:Z,ignoreIllegals:!0}):d(te);v.innerHTML=ie.value,v.dataset.highlighted="yes",w(v,Z,ie.language),v.result={language:ie.language,re:ie.relevance,relevance:ie.relevance},ie.secondBest&&(v.secondBest={language:ie.secondBest.language,relevance:ie.secondBest.relevance}),ne("after:highlightElement",{el:v,result:ie,text:te})}function M(v){i=al(i,v)}const q=()=>{A(),en("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function C(){A(),en("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let N=!1;function A(){if(document.readyState==="loading"){N=!0;return}document.querySelectorAll(i.cssSelector).forEach(_)}function V(){N&&A()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",V,!1);function R(v,S){let Z=null;try{Z=S(t)}catch(te){if(Tt("Language definition for '{}' could not be registered.".replace("{}",v)),o)Tt(te);else throw te;Z=c}Z.name||(Z.name=v),e[v]=Z,Z.rawDefinition=S.bind(null,t),Z.aliases&&z(Z.aliases,{languageName:v})}function W(v){delete e[v];for(const S of Object.keys(n))n[S]===v&&delete n[S]}function U(){return Object.keys(e)}function Q(v){return v=(v||"").toLowerCase(),e[v]||e[n[v]]}function z(v,{languageName:S}){typeof v=="string"&&(v=[v]),v.forEach(Z=>{n[Z.toLowerCase()]=S})}function J(v){const S=Q(v);return S&&!S.disableAutodetect}function P(v){v["before:highlightBlock"]&&!v["before:highlightElement"]&&(v["before:highlightElement"]=S=>{v["before:highlightBlock"](Object.assign({block:S.el},S))}),v["after:highlightBlock"]&&!v["after:highlightElement"]&&(v["after:highlightElement"]=S=>{v["after:highlightBlock"](Object.assign({block:S.el},S))})}function re(v){P(v),r.push(v)}function D(v){const S=r.indexOf(v);S!==-1&&r.splice(S,1)}function ne(v,S){const Z=v;r.forEach(function(te){te[Z]&&te[Z](S)})}function j(v){return en("10.7.0","highlightBlock will be removed entirely in v12.0"),en("10.7.0","Please use highlightElement now."),_(v)}Object.assign(t,{highlight:u,highlightAuto:d,highlightAll:A,highlightElement:_,highlightBlock:j,configure:M,initHighlighting:q,initHighlightingOnLoad:C,registerLanguage:R,unregisterLanguage:W,listLanguages:U,getLanguage:Q,registerAliases:z,autoDetection:J,inherit:al,addPlugin:re,removePlugin:D}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=Jd,t.regex={concat:qt,lookahead:Xi,either:Wo,optional:hd,anyNumberOfTimes:pd};for(const v in Er)typeof Er[v]=="object"&&Zi(Er[v]);return Object.assign(t,Er),t},tn=fl({});tn.newInstance=()=>fl({});var Qd=tn;tn.HighlightJS=tn,tn.default=tn;const Ar=zc(Qd),Qo=$e({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=ha(e),r=Zt(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&Ar.getLanguage(c))try{return Ar.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(ce(),_e("div",{class:on(["chat-message",r.value])},[pn(s.$slots,"default",{},()=>[de(he(id),{class:"chat-message-markdown",source:he(n).text,options:o},null,8,["source"])])],2))}}),b9="",eg=Ee("div",{class:"chat-message-typing-body"},[Ee("span",{class:"chat-message-typing-circle"}),Ee("span",{class:"chat-message-typing-circle"}),Ee("span",{class:"chat-message-typing-circle"})],-1),tg=$e({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=Zt(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(ce(),Ae(he(Qo),{class:on(r.value),message:n},{default:it(()=>[eg]),_:1},8,["class"]))}}),_9="",ng={class:"chat-messages-list"},rg=$e({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=yo(),{initialMessages:n,waitingForResponse:r}=e;return(o,s)=>(ce(),_e("div",ng,[(ce(!0),_e(Te,null,Ws(he(n),c=>(ce(),Ae(Qo,{key:c.id,message:c},null,8,["message"]))),128)),(ce(!0),_e(Te,null,Ws(t.messages,c=>(ce(),Ae(Qo,{key:c.id,message:c},null,8,["message"]))),128)),he(r)?(ce(),Ae(tg,{key:0})):bn("",!0)]))}}),v9="",og={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},sg=[Ee("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function cg(t,e){return ce(),_e("svg",og,sg)}const ig={name:"mdi-send",render:cg},lg={class:"chat-input"},ag=["placeholder","onKeydown"],ug=["disabled"],fg=$e({__name:"Input",setup(t){const e=yo(),{waitingForResponse:n}=e,{t:r}=lr(),o=zt(""),s=Zt(()=>o.value===""||n.value);async function c(l){if(l.preventDefault(),s.value)return;const a=o.value;o.value="",await e.sendMessage(a)}async function i(l){l.shiftKey||await c(l)}return(l,a)=>(ce(),_e("div",lg,[$s(Ee("textarea",{"onUpdate:modelValue":a[0]||(a[0]=u=>o.value=u),rows:"1",placeholder:he(r)("inputPlaceholder"),onKeydown:Ku(i,["enter"])},null,40,ag),[[Gu,o.value]]),Ee("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[de(he(ig),{height:"32",width:"32"})],8,ug)]))}}),y9="",pl=$e({__name:"Chat",setup(t){const{t:e}=lr(),n=yo(),{messages:r,currentSessionId:o}=n,{options:s}=wo();async function c(){n.startNewSession(),Ht(()=>{Et.emit("scrollToBottom")})}async function i(){await n.loadPreviousSession(),Ht(()=>{Et.emit("scrollToBottom")})}return fn(async()=>{await i(),!s.showWelcomeScreen&&!o.value&&await c()}),(l,a)=>(ce(),Ae(uf,{class:"chat-wrapper"},{header:it(()=>[Ee("h1",null,Pn(he(e)("title")),1),Ee("p",null,Pn(he(e)("subtitle")),1)]),footer:it(()=>[he(o)?(ce(),Ae(fg,{key:0})):(ce(),Ae(yf,{key:1}))]),default:it(()=>[!he(o)&&he(s).showWelcomeScreen?(ce(),Ae(hf,{key:0,"onClick:button":c})):(ce(),Ae(rg,{key:1,messages:he(r)},null,8,["messages"]))]),_:1}))}}),pg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},hg=[Ee("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function dg(t,e){return ce(),_e("svg",pg,hg)}const gg={name:"mdi-chat",render:dg},mg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bg=[Ee("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function _g(t,e){return ce(),_e("svg",mg,bg)}const vg={name:"mdi-chevron-down",render:_g},xg={class:"chat-window-wrapper"},yg={class:"chat-window"},wg=$e({__name:"ChatWindow",setup(t){const e=zt(!1);function n(){e.value=!e.value,e.value&&Ht(()=>{Et.emit("scrollToBottom")})}return(r,o)=>(ce(),_e("div",xg,[de(ir,{name:"chat-window-transition"},{default:it(()=>[$s(Ee("div",yg,[de(pl)],512),[[Wu,e.value]])]),_:1}),Ee("div",{class:"chat-window-toggle",onClick:n},[de(ir,{name:"chat-window-toggle-transition",mode:"out-in"},{default:it(()=>[e.value?(ce(),Ae(he(vg),{key:1,height:"32",width:"32"})):(ce(),Ae(he(gg),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),E9="";function kg(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=t.inherit(t.APOS_STRING_MODE,{className:"string"}),l=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),a={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,l,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,l,i]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[a],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[a],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:a}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const hl="[A-Za-z$_][0-9A-Za-z$_]*",Eg=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Cg=["true","false","null","undefined","NaN","Infinity"],dl=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],gl=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ml=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ag=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Sg=[].concat(ml,dl,gl);function Dg(t){const e=t.regex,n=(S,{after:Z})=>{const te="</"+S[0].slice(1);return S.input.indexOf(te,Z)!==-1},r=hl,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(S,Z)=>{const te=S[0].length+S.index,ie=S.input[te];if(ie==="<"||ie===","){Z.ignoreMatch();return}ie===">"&&(n(S,{after:te})||Z.ignoreMatch());let ae;const Re=S.input.substring(te);if(ae=Re.match(/^\s*=/)){Z.ignoreMatch();return}if((ae=Re.match(/^\s+extends\s+/))&&ae.index===0){Z.ignoreMatch();return}}},i={$pattern:hl,keyword:Eg,literal:Cg,built_in:Sg,"variable.language":Ag},l="[0-9](_?[0-9])*",a=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${u})((${a})|\\.)?|(${a}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"css"}},_={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,p]},C={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},N=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,w,_,M,{match:/\$\d+/},f];p.contains=N.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(N)});const A=[].concat(C,p.contains),V=A.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(A)}]),R={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:V},W={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...dl,...gl]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(S){return e.concat("(?!",S.join("|"),")")}const re={match:e.concat(/\b/,P([...ml,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},D={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},j="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",v={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(j)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:V,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,w,_,M,C,{match:/\$\d+/},f,U,{className:"attr",begin:r+e.lookahead(":"),relevance:0},v,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,t.REGEXP_MODE,{className:"function",begin:j,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:V}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},re,J,W,ne,{match:/\$[(.]/}]}}const qg=$e({__name:"App",props:{},setup(t){const{options:e}=wo(),n=Zt(()=>e.mode==="fullscreen");return fn(()=>{Ar.registerLanguage("xml",kg),Ar.registerLanguage("javascript",Dg)}),(r,o)=>n.value?(ce(),Ae(he(pl),{key:0,class:"n8n-chat"})):(ce(),Ae(he(wg),{key:1,class:"n8n-chat"}))}});var Sr,Tg=new Uint8Array(16);function Rg(){if(!Sr&&(Sr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Sr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sr(Tg)}const Lg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ng(t){return typeof t=="string"&&Lg.test(t)}for(var ye=[],es=0;es<256;++es)ye.push((es+256).toString(16).substr(1));function Mg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ye[t[e+0]]+ye[t[e+1]]+ye[t[e+2]]+ye[t[e+3]]+"-"+ye[t[e+4]]+ye[t[e+5]]+"-"+ye[t[e+6]]+ye[t[e+7]]+"-"+ye[t[e+8]]+ye[t[e+9]]+"-"+ye[t[e+10]]+ye[t[e+11]]+ye[t[e+12]]+ye[t[e+13]]+ye[t[e+14]]+ye[t[e+15]]).toLowerCase();if(!Ng(n))throw TypeError("Stringified UUID is invalid");return n}function Dn(t,e,n){t=t||{};var r=t.random||(t.rng||Rg)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return Mg(r)}async function Ig(){return""}async function bl(...t){var r;const e=await Ig();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json",...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function _l(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),bl(r,{...n,method:"GET"})}async function vl(t,e={},n={}){return bl(t,{...n,method:"POST",body:JSON.stringify(e)})}async function Og(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?vl:_l)(`${e.webhookUrl}`,{action:"loadPreviousSession",[e.chatHistoryKey]:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function Fg(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?vl:_l)(`${n.webhookUrl}`,{action:"sendMessage",[n.chatHistoryKey]:e,[n.chatInputKey]:t,...n.metadata?{metadata:n.metadata}:{}},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const Bg={install(t,e){t.provide(Uc,e);const n=zt([]),r=zt(null),o=zt(!1),s=Zt(()=>(e.initialMessages??[]).map(u=>({id:Dn(),text:u,sender:"bot",createdAt:new Date().toISOString()})));async function c(u){const f={id:Dn(),text:u,sender:"user",createdAt:new Date().toISOString()};n.value.push(f),o.value=!0,Ht(()=>{Et.emit("scrollToBottom")});const p=await Fg(u,r.value,e),d={id:Dn(),text:p.output,sender:"bot",createdAt:new Date().toISOString()};n.value.push(d),o.value=!1,Ht(()=>{Et.emit("scrollToBottom")})}async function i(){const u=localStorage.getItem(Bc)??Dn(),f=await Og(u,e),p=new Date().toISOString();return n.value=((f==null?void 0:f.data)||[]).map((d,w)=>({id:`${w}`,text:d.kwargs.content,sender:d.id.includes("HumanMessage")?"user":"bot",createdAt:p})),n.value.length&&(r.value=u),u}async function l(){r.value=Dn(),localStorage.setItem(Bc,r.value)}const a={initialMessages:s,messages:n,currentSessionId:r,waitingForResponse:o,loadPreviousSession:i,startNewSession:l,sendMessage:c};t.provide(Pc,a),t.config.globalProperties.$chat=a}};function Pg(t){var o,s;const e={...yn,...t,webhookConfig:{...yn.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...yn.i18n,...t==null?void 0:t.i18n,en:{...(o=yn.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...yn.theme,...t==null?void 0:t.theme}},n=e.target??ff;typeof n=="string"&&sf(n);const r=Xu(qg);return r.use(Bg,e),r.mount(n),r}Nt.createChat=Pg,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})});