/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/vue-renderer-markdown@0.0.63-beta.4/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var Sl=Object.defineProperty,Al=Object.defineProperties,Dl=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,co=(e,t,n)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||(t={}))Go.call(t,n)&&co(e,n,t[n]);if(Cr)for(var n of Cr(t))Jo.call(t,n)&&co(e,n,t[n]);return e},nt=(e,t)=>Al(e,Dl(t)),uo=(e,t)=>{var n={};for(var o in e)Go.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Cr)for(var o of Cr(e))t.indexOf(o)<0&&Jo.call(e,o)&&(n[o]=e[o]);return n},X=(e,t,n)=>co(e,"symbol"!=typeof t?t+"":t,n),se=(e,t,n)=>new Promise(((o,r)=>{var l=e=>{try{s(n.next(e))}catch(e){r(e)}},i=e=>{try{s(n.throw(e))}catch(e){r(e)}},s=e=>e.done?o(e.value):Promise.resolve(e.value).then(l,i);s((n=n.apply(e,t)).next())}));import{defineComponent as De,createElementBlock as j,openBlock as R,withMemo as Jn,createVNode as Mt,unref as ee,createElementVNode as E,Fragment as Ke,renderList as ct,toDisplayString as ze,computed as ue,ref as V,watch as Ae,nextTick as Ye,onBeforeUnmount as Mn,createBlock as Je,Teleport as fs,Transition as Wn,withCtx as pn,withDirectives as _n,normalizeClass as Ce,normalizeStyle as pt,vShow as Cn,createApp as Tl,h as Or,shallowRef as hs,readonly as $l,defineAsyncComponent as $o,resolveDynamicComponent as bt,useAttrs as Il,mergeProps as Yn,provide as Fl,inject as Bl,createCommentVNode as Ue,renderSlot as Kt,isMemoSame as ps,onMounted as Xr,onUnmounted as ms,withModifiers as Rl,createTextVNode as Qo,markRaw as Ll,reactive as Er}from"vue";var Nl=Object.create,Io=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,gs=Object.getOwnPropertyNames,Pl=Object.getPrototypeOf,zl=Object.prototype.hasOwnProperty,vs=(e,t)=>function(){return t||(0,e[gs(e)[0]])((t={exports:{}}).exports,t),t.exports},ws=e=>{let t={};for(var n in e)Io(t,n,{get:e[n],enumerable:!0});return t},Hl=(e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,l=gs(t),i=0,s=l.length;i<s;i++)r=l[i],!zl.call(e,r)&&r!==n&&Io(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(o=Ol(t,r))||o.enumerable});return e},ks=(e,t,n)=>(n=null!=e?Nl(Pl(e)):{},Hl(Io(n,"default",{value:e,enumerable:!0}),e));function jl(e,t,n,o){const r=Number(e[t].meta.id+1).toString();let l="";return"string"==typeof o.docId&&(l=`-${o.docId}-`),l+r}function ql(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function Wl(e,t,n,o,r){const l=r.rules.footnote_anchor_name(e,t,n,o,r),i=r.rules.footnote_caption(e,t,n,o,r);let s=l;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${l}" id="fnref${s}">${i}</a></sup>`}function Vl(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function Ul(){return"</ol>\n</section>\n"}function Kl(e,t,n,o,r){let l=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(l+=`:${e[t].meta.subId}`),`<li id="fn${l}" class="footnote-item">`}function Zl(){return"</li>\n"}function Xl(e,t,n,o,r){let l=r.rules.footnote_anchor_name(e,t,n,o,r);return e[t].meta.subId>0&&(l+=`:${e[t].meta.subId}`),` <a href="#fnref${l}" class="footnote-backref">↩︎</a>`}function Yl(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=Wl,e.renderer.rules.footnote_block_open=Vl,e.renderer.rules.footnote_block_close=Ul,e.renderer.rules.footnote_open=Kl,e.renderer.rules.footnote_close=Zl,e.renderer.rules.footnote_anchor=Xl,e.renderer.rules.footnote_caption=ql,e.renderer.rules.footnote_anchor_name=jl,e.block.ruler.before("reference","footnote_def",(function(e,t,o,r){const l=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(l+4>i||91!==e.src.charCodeAt(l)||94!==e.src.charCodeAt(l+1))return!1;let s;for(s=l+2;s<i;s++){if(32===e.src.charCodeAt(s))return!1;if(93===e.src.charCodeAt(s))break}if(s===l+2||s+1>=i||58!==e.src.charCodeAt(++s))return!1;if(r)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});const a=e.src.slice(l+2,s-2);e.env.footnotes.refs[`:${a}`]=-1;const c=new e.Token("footnote_reference_open","",1);c.meta={label:a},c.level=e.level++,e.tokens.push(c);const u=e.bMarks[t],d=e.tShift[t],h=e.sCount[t],p=e.parentType,f=s,m=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]);let g=m;for(;s<i;){const t=e.src.charCodeAt(s);if(!n(t))break;9===t?g+=4-g%4:g++,s++}e.tShift[t]=s-f,e.sCount[t]=g-m,e.bMarks[t]=f,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,o,!0),e.parentType=p,e.blkIndent-=4,e.tShift[t]=d,e.sCount[t]=h,e.bMarks[t]=u;const v=new e.Token("footnote_reference_close","",-1);return v.level=--e.level,e.tokens.push(v),!0}),{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",(function(e,n){const o=e.posMax,r=e.pos;if(r+2>=o||94!==e.src.charCodeAt(r)||91!==e.src.charCodeAt(r+1))return!1;const l=r+2,i=t(e,r+1);if(i<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);const t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(l,i),e.md,e.env,n);e.push("footnote_ref","",0).meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(l,i),tokens:n}}return e.pos=i+1,e.posMax=o,!0})),e.inline.ruler.after("footnote_inline","footnote_ref",(function(e,t){const n=e.posMax,o=e.pos;if(o+3>n||!e.env.footnotes||!e.env.footnotes.refs||91!==e.src.charCodeAt(o)||94!==e.src.charCodeAt(o+1))return!1;let r;for(r=o+2;r<n;r++){if(32===e.src.charCodeAt(r)||10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}if(r===o+2||r>=n)return!1;r++;const l=e.src.slice(o+2,r-1);if(void 0===e.env.footnotes.refs[`:${l}`])return!1;if(!t){let t;e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[`:${l}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:l,count:0},e.env.footnotes.refs[`:${l}`]=t):t=e.env.footnotes.refs[`:${l}`];const n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;e.push("footnote_ref","",0).meta={id:t,subId:n,label:l}}return e.pos=r,e.posMax=n,!0})),e.core.ruler.after("inline","footnote_tail",(function(e){let t,n,o,r=!1;const l={};if(!e.env.footnotes||(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(r=!0,n=[],o=e.meta.label,!1):"footnote_reference_close"===e.type?(r=!1,l[":"+o]=n,!1):(r&&n.push(e),!r)})),!e.env.footnotes.list))return;const i=e.env.footnotes.list;e.tokens.push(new e.Token("footnote_block_open","",1));for(let n=0,o=i.length;n<o;n++){const o=new e.Token("footnote_open","",1);if(o.meta={id:n,label:i[n].label},e.tokens.push(o),i[n].tokens){t=[];const o=new e.Token("paragraph_open","p",1);o.block=!0,t.push(o);const r=new e.Token("inline","",0);r.children=i[n].tokens,r.content=i[n].content,t.push(r);const l=new e.Token("paragraph_close","p",-1);l.block=!0,t.push(l)}else i[n].label&&(t=l[`:${i[n].label}`]);let r;t&&(e.tokens=e.tokens.concat(t)),r="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null;const s=i[n].count>0?i[n].count:1;for(let t=0;t<s;t++){const o=new e.Token("footnote_anchor","",0);o.meta={id:n,subId:t,label:i[n].label},e.tokens.push(o)}r&&e.tokens.push(r),e.tokens.push(new e.Token("footnote_close","",-1))}e.tokens.push(new e.Token("footnote_block_close","",-1))}))}function Gl(e){function t(e,t){let n;const o=[],r=t.length;for(let l=0;l<r;l++){const r=t[l];if(43!==r.marker||-1===r.end)continue;const i=t[r.end];n=e.tokens[r.token],n.type="ins_open",n.tag="ins",n.nesting=1,n.markup="++",n.content="",n=e.tokens[i.token],n.type="ins_close",n.tag="ins",n.nesting=-1,n.markup="++",n.content="","text"===e.tokens[i.token-1].type&&"+"===e.tokens[i.token-1].content&&o.push(i.token-1)}for(;o.length;){const t=o.pop();let r=t+1;for(;r<e.tokens.length&&"ins_close"===e.tokens[r].type;)r++;r--,t!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=n)}}e.inline.ruler.before("emphasis","ins",(function(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||43!==o)return!1;const r=e.scanDelims(e.pos,!0);let l=r.length;const i=String.fromCharCode(o);if(l<2)return!1;if(l%2){e.push("text","",0).content=i,l--}for(let t=0;t<l;t+=2){e.push("text","",0).content=i+i,(r.can_open||r.can_close)&&e.delimiters.push({marker:o,length:0,jump:t/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0})),e.inline.ruler2.before("emphasis","ins",(function(e){const n=e.tokens_meta,o=(e.tokens_meta||[]).length;t(e,e.delimiters);for(let r=0;r<o;r++)n[r]&&n[r].delimiters&&t(e,n[r].delimiters)}))}function Jl(e){function t(e,t){const n=[],o=t.length;for(let r=0;r<o;r++){const o=t[r];if(61!==o.marker||-1===o.end)continue;const l=t[o.end],i=e.tokens[o.token];i.type="mark_open",i.tag="mark",i.nesting=1,i.markup="==",i.content="";const s=e.tokens[l.token];s.type="mark_close",s.tag="mark",s.nesting=-1,s.markup="==",s.content="","text"===e.tokens[l.token-1].type&&"="===e.tokens[l.token-1].content&&n.push(l.token-1)}for(;n.length;){const t=n.pop();let o=t+1;for(;o<e.tokens.length&&"mark_close"===e.tokens[o].type;)o++;if(o--,t!==o){const n=e.tokens[o];e.tokens[o]=e.tokens[t],e.tokens[t]=n}}}e.inline.ruler.before("emphasis","mark",(function(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||61!==o)return!1;const r=e.scanDelims(e.pos,!0);let l=r.length;const i=String.fromCharCode(o);if(l<2)return!1;if(l%2){e.push("text","",0).content=i,l--}for(let t=0;t<l;t+=2){e.push("text","",0).content=i+i,(r.can_open||r.can_close)&&e.delimiters.push({marker:o,length:0,jump:t/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0})),e.inline.ruler2.before("emphasis","mark",(function(e){let n;const o=e.tokens_meta,r=(e.tokens_meta||[]).length;for(t(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&t(e,o[n].delimiters)}))}const Ql=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function ea(e,t){const n=e.posMax,o=e.pos;if(126!==e.src.charCodeAt(o)||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(126===e.src.charCodeAt(e.pos)){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const l=e.src.slice(o+1,e.pos);if(l.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;e.push("sub_open","sub",1).markup="~";e.push("text","",0).content=l.replace(Ql,"$1");return e.push("sub_close","sub",-1).markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function ta(e){e.inline.ruler.after("emphasis","sub",ea)}const na=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function ra(e,t){const n=e.posMax,o=e.pos;if(94!==e.src.charCodeAt(o)||t||o+2>=n)return!1;e.pos=o+1;let r=!1;for(;e.pos<n;){if(94===e.src.charCodeAt(e.pos)){r=!0;break}e.md.inline.skipToken(e)}if(!r||o+1===e.pos)return e.pos=o,!1;const l=e.src.slice(o+1,e.pos);if(l.match(/(^|[^\\])(\\\\)*\s/))return e.pos=o,!1;e.posMax=e.pos,e.pos=o+1;e.push("sup_open","sup",1).markup="^";e.push("text","",0).content=l.replace(na,"$1");return e.push("sup_close","sup",-1).markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function oa(e){e.inline.ruler.after("emphasis","sup",ra)}var ia=vs({"../../node_modules/.pnpm/markdown-it-task-checkbox@1.0.6/node_modules/markdown-it-task-checkbox/index.js":(e,t)=>{function n(e,t,n){var o=e.attrIndex(t),r=[t,n];o<0?e.attrPush(r):e.attrs[o]=r}function o(e,t){for(var n=e[t].level-1,o=t-1;o>=0;o--)if(e[o].level===n)return o;return-1}function r(e,t){return function(e){return"inline"===e.type}(e[t])&&function(e){return"paragraph_open"===e.type}(e[t-1])&&function(e){return"list_item_open"===e.type}(e[t-2])&&function(e){return/^\[[xX \u00A0]\][ \u00A0]/.test(e.content)}(e[t])}function l(e,t,n,o){var r=n.idPrefix+t;e.children[0].content=e.children[0].content.slice(3),e.children.unshift(function(e,t){var n=new t("label_open","label",1);return n.attrs=[["for",e]],n}(r,o)),e.children.push(function(e){return new e("label_close","label",-1)}(o)),e.children.unshift(function(e,t,n,o){var r=new o("checkbox_input","input",0);return r.attrs=[["type","checkbox"],["id",t]],!0===/^\[[xX]\][ \u00A0]/.test(e.content)&&r.attrs.push(["checked","true"]),!0===n.disabled&&r.attrs.push(["disabled","true"]),r}(e,r,n,o)),n.divWrap&&(e.children.unshift(function(e,t){var n=new t("checkbox_open","div",0);return n.attrs=[["class",e.divClass]],n}(n,o)),e.children.push(function(e){return new e("checkbox_close","div",-1)}(o)))}t.exports=function(e,t){t=Object.assign({},{disabled:!0,divWrap:!1,divClass:"checkbox",idPrefix:"cbx_",ulClass:"task-list",liClass:"task-list-item"},t),e.core.ruler.after("inline","github-task-lists",(function(e){for(var i=e.tokens,s=0,a=2;a<i.length;a++)r(i,a)&&(l(i[a],s,t,e.Token),s+=1,n(i[a-2],"class",t.liClass),n(i[o(i,a-2)],"class",t.ulClass))}))}}}),ei=ks(ia()),sa=Object.defineProperty,ys=e=>{let t={};for(var n in e)sa(t,n,{get:e[n],enumerable:!0});return t},xs=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bs=/[\0-\x1F\x7F-\x9F]/,la=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Fo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,_s=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Cs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Es=ws({Any:()=>xs,Cc:()=>bs,Cf:()=>la,P:()=>Fo,S:()=>_s,Z:()=>Cs});function aa(e){const t={};e=e||{},t.src_Any=xs.source,t.src_Cc=bs.source,t.src_Z=Cs.source,t.src_P=Fo.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ko(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Yr(e){return Object.prototype.toString.call(e)}function ca(e){return"[object String]"===Yr(e)}function ua(e){return"[object Object]"===Yr(e)}function da(e){return"[object RegExp]"===Yr(e)}function ti(e){return"[object Function]"===Yr(e)}function fa(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ms={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ha(e){return Object.keys(e||{}).reduce((function(e,t){return e||Ms.hasOwnProperty(t)}),!1)}const pa={"http:":{validate:function(e,t,n){const o=e.slice(t);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(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const o=e.slice(t);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(o)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},ma="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]",ga="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function va(e){e.__index__=-1,e.__text_cache__=""}function wa(e){return function(t,n){const o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function ni(){return function(e,t){t.normalize(e)}}function Pr(e){const t=e.re=aa(e.__opts__),n=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(ma),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");const r=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const o={validate:null,link:null};if(e.__compiled__[t]=o,ua(n))return da(n.validate)?o.validate=wa(n.validate):ti(n.validate)?o.validate=n.validate:l(t,n),void(ti(n.normalize)?o.normalize=n.normalize:n.normalize?l(t,n):o.normalize=ni());ca(n)?r.push(t):l(t,n)})),r.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:ni()};const i=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(fa).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),va(e)}function ka(e,t){const n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function yo(e,t){const n=new ka(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Bt(e,t){if(!(this instanceof Bt))return new Bt(e,t);t||ha(e)&&(t=e,e={}),this.__opts__=ko({},Ms,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ko({},pa,e),this.__compiled__={},this.__tlds__=ga,this.__tlds_replaced__=!1,this.re={},Pr(this)}Bt.prototype.add=function(e,t){return this.__schemas__[e]=t,Pr(this),this},Bt.prototype.set=function(e){return this.__opts__=ko(this.__opts__,e),this},Bt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,o,r,l,i,s,a,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=e.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(l=n.index+n[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(o=e.match(this.re.email_fuzzy))&&(l=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=i))),this.__index__>=0},Bt.prototype.pretest=function(e){return this.re.pretest.test(e)},Bt.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Bt.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(yo(this,n)),n=this.__last_index__);let o=n?e.slice(n):e;for(;this.test(o);)t.push(yo(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Bt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,yo(this,0)):null},Bt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Pr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Pr(this),this)},Bt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"===e.schema&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Bt.prototype.onCompile=function(){};var fo,Ss=Bt,ya=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),xa=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));const ba=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),_a=null!==(fo=String.fromCodePoint)&&void 0!==fo?fo:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function Ca(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=ba.get(e))&&void 0!==t?t:e}var st;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(st||(st={}));const Ea=32;var kn,ot,wn;function xo(e){return e>=st.ZERO&&e<=st.NINE}function Ma(e){return e>=st.UPPER_A&&e<=st.UPPER_F||e>=st.LOWER_A&&e<=st.LOWER_F}function Sa(e){return e>=st.UPPER_A&&e<=st.UPPER_Z||e>=st.LOWER_A&&e<=st.LOWER_Z||xo(e)}function Aa(e){return e===st.EQUALS||Sa(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(kn||(kn={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(ot||(ot={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(wn||(wn={}));var Da=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ot.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=wn.Strict}startEntity(e){this.decodeMode=e,this.state=ot.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ot.EntityStart:return e.charCodeAt(t)===st.NUM?(this.state=ot.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ot.NamedEntity,this.stateNamedEntity(e,t));case ot.NumericStart:return this.stateNumericStart(e,t);case ot.NumericDecimal:return this.stateNumericDecimal(e,t);case ot.NumericHex:return this.stateNumericHex(e,t);case ot.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===st.LOWER_X?(this.state=ot.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ot.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,o){if(t!==n){const r=n-t;this.result=this.result*Math.pow(o,r)+parseInt(e.substr(t,r),o),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(!xo(o)&&!Ma(o))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(o,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const o=e.charCodeAt(t);if(!xo(o))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(o,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===st.SEMI)this.consumed+=1;else if(this.decodeMode===wn.Strict)return 0;return this.emitCodePoint(Ca(this.result),this.consumed),this.errors&&(e!==st.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let o=n[this.treeIndex],r=(o&kn.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const l=e.charCodeAt(t);if(this.treeIndex=Ta(n,o,this.treeIndex+Math.max(1,r),l),this.treeIndex<0)return 0===this.result||this.decodeMode===wn.Attribute&&(0===r||Aa(l))?0:this.emitNotTerminatedNamedEntity();if(o=n[this.treeIndex],r=(o&kn.VALUE_LENGTH)>>14,0!==r){if(l===st.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==wn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,o=(n[t]&kn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:o}=this;return this.emitCodePoint(1===t?o[e]&~kn.VALUE_LENGTH:o[e+1],n),3===t&&this.emitCodePoint(o[e+2],n),n}end(){var e;switch(this.state){case ot.NamedEntity:return 0===this.result||this.decodeMode===wn.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ot.NumericDecimal:return this.emitNumericEntity(0,2);case ot.NumericHex:return this.emitNumericEntity(0,3);case ot.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ot.EntityStart:return 0}}};function As(e){let t="";const n=new Da(e,(e=>t+=_a(e)));return function(e,o){let r=0,l=0;for(;(l=e.indexOf("&",l))>=0;){t+=e.slice(r,l),n.startEntity(o);const i=n.write(e,l+1);if(i<0){r=l+n.end();break}r=l+i,l=0===i?r+1:r}const i=t+e.slice(r);return t="",i}}function Ta(e,t,n,o){const r=(t&kn.BRANCH_LENGTH)>>7,l=t&kn.JUMP_TABLE;if(0===r)return 0!==l&&o===l?n:-1;if(l){const t=o-l;return t<0||t>=r?-1:e[n+t]-1}let i=n,s=i+r-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<o)i=t+1;else{if(!(n>o))return e[t+r];s=t-1}}return-1}const $a=As(ya);function Ia(e,t=wn.Legacy){return $a(e,t)}As(xa);const ri={};function Fa(e){let t=ri[e];if(t)return t;t=ri[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);t[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2)}return t}function Gr(e,t){"string"!=typeof t&&(t=Gr.defaultChars);const n=Fa(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let o=0,r=e.length;o<r;o+=3){const l=parseInt(e.slice(o+1,o+3),16);if(l<128)t+=n[l];else{if(192==(224&l)&&o+3<r){const n=parseInt(e.slice(o+4,o+6),16);if(128==(192&n)){const e=l<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),o+=3;continue}}if(224==(240&l)&&o+6<r){const n=parseInt(e.slice(o+4,o+6),16),r=parseInt(e.slice(o+7,o+9),16);if(128==(192&n)&&128==(192&r)){const e=l<<12&61440|n<<6&4032|63&r;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),o+=6;continue}}if(240==(248&l)&&o+9<r){const n=parseInt(e.slice(o+4,o+6),16),r=parseInt(e.slice(o+7,o+9),16),i=parseInt(e.slice(o+10,o+12),16);if(128==(192&n)&&128==(192&r)&&128==(192&i)){let e=l<<18&1835008|n<<12&258048|r<<6&4032|63&i;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),o+=9;continue}}t+="�"}}return t}))}Gr.defaultChars=";/?:@&=+$,#",Gr.componentChars="";var bo=Gr;const oi={};function Ba(e){let t=oi[e];if(t)return t;t=oi[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Jr(e,t,n){"string"!=typeof t&&(n=t,t=Jr.defaultChars),void 0===n&&(n=!0);const o=Ba(t);let r="";for(let t=0,l=e.length;t<l;t++){const i=e.charCodeAt(t);if(n&&37===i&&t+2<l&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))r+=e.slice(t,t+3),t+=2;else if(i<128)r+=o[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&t+1<l){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){r+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(e[t])}return r}Jr.defaultChars=";/?:@&=+$,-_.!~*'()#",Jr.componentChars="-_.!~*'()";var Ds=Jr;function Bo(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function zr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ra=/^([a-z0-9.+-]+:)/i,La=/:[0-9]*$/,Na=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Oa=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Pa=["'"].concat(Oa),ii=["%","/","?",";","#"].concat(Pa),si=["/","?","#"],za=255,li=/^[+a-z0-9A-Z_-]{0,63}$/,Ha=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ai={javascript:!0,"javascript:":!0},ci={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ja(e,t){if(e&&e instanceof zr)return e;const n=new zr;return n.parse(e,t),n}zr.prototype.parse=function(e,t){let n,o,r,l=e;if(l=l.trim(),!t&&1===e.split("#").length){const e=Na.exec(l);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let i=Ra.exec(l);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,l=l.substr(i.length)),(t||i||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===l.substr(0,2),r&&!(i&&ai[i])&&(l=l.substr(2),this.slashes=!0)),!ai[i]&&(r||i&&!ci[i])){let e,t,n=-1;for(let e=0;e<si.length;e++)o=l.indexOf(si[e]),-1!==o&&(-1===n||o<n)&&(n=o);t=-1===n?l.lastIndexOf("@"):l.lastIndexOf("@",n),-1!==t&&(e=l.slice(0,t),l=l.slice(t+1),this.auth=e),n=-1;for(let e=0;e<ii.length;e++)o=l.indexOf(ii[e]),-1!==o&&(-1===n||o<n)&&(n=o);-1===n&&(n=l.length),":"===l[n-1]&&n--;const r=l.slice(0,n);l=l.slice(n),this.parseHost(r),this.hostname=this.hostname||"";const i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(li)){let o="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?o+="x":o+=n[e];if(!o.match(li)){const o=e.slice(0,t),r=e.slice(t+1),i=n.match(Ha);i&&(o.push(i[1]),r.unshift(i[2])),r.length&&(l=r.join(".")+l),this.hostname=o.join(".");break}}}}this.hostname.length>za&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=l.indexOf("#");-1!==s&&(this.hash=l.substr(s),l=l.slice(0,s));const a=l.indexOf("?");return-1!==a&&(this.search=l.substr(a),l=l.slice(0,a)),l&&(this.pathname=l),ci[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},zr.prototype.parseHost=function(e){let t=La.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Ro=ja,Ts=ws({decode:()=>bo,encode:()=>Ds,format:()=>Bo,parse:()=>Ro}),qa=vs({"../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.js":(e,t)=>{const n=/^xn--/,o=/[^\0-\x7F]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},i=Math.floor,s=String.fromCharCode;function a(e){throw new RangeError(l[e])}function c(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]);const l=function(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}((e=e.replace(r,".")).split("."),t).join(".");return o+l}function u(e){const t=[];let n=0;const o=e.length;for(;n<o;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t}const d=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},h=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},p=function(e,t,n){let o=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;o+=36)e=i(e/35);return i(o+36*e/(e+38))},f=function(e){const t=[],n=e.length;let o=0,r=128,l=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&a("not-basic"),t.push(e.charCodeAt(n));for(let c=s>0?s+1:0;c<n;){const s=o;for(let t=1,r=36;;r+=36){c>=n&&a("invalid-input");const s=d(e.charCodeAt(c++));s>=36&&a("invalid-input"),s>i((2147483647-o)/t)&&a("overflow"),o+=s*t;const u=r<=l?1:r>=l+26?26:r-l;if(s<u)break;const h=36-u;t>i(2147483647/h)&&a("overflow"),t*=h}const u=t.length+1;l=p(o-s,u,0==s),i(o/u)>2147483647-r&&a("overflow"),r+=i(o/u),o%=u,t.splice(o++,0,r)}return String.fromCodePoint(...t)},m=function(e){const t=[],n=(e=u(e)).length;let o=128,r=0,l=72;for(const n of e)n<128&&t.push(s(n));const c=t.length;let d=c;for(c&&t.push("-");d<n;){let n=2147483647;for(const t of e)t>=o&&t<n&&(n=t);const u=d+1;n-o>i((2147483647-r)/u)&&a("overflow"),r+=(n-o)*u,o=n;for(const n of e)if(n<o&&++r>2147483647&&a("overflow"),n===o){let e=r;for(let n=36;;n+=36){const o=n<=l?1:n>=l+26?26:n-l;if(e<o)break;const r=e-o,a=36-o;t.push(s(h(o+r%a,0))),e=i(r/a)}t.push(s(h(e,0))),l=p(r,u,d===c),r=0,++d}++r,++o}return t.join("")},g={version:"2.3.1",ucs2:{decode:u,encode:e=>String.fromCodePoint(...e)},decode:f,encode:m,toASCII:function(e){return c(e,(function(e){return o.test(e)?"xn--"+m(e):e}))},toUnicode:function(e){return c(e,(function(e){return n.test(e)?f(e.slice(4).toLowerCase()):e}))}};t.exports=g}}),$s=ks(qa()),Wa=ys({arrayReplaceAt:()=>Is,assign:()=>Xa,countLines:()=>dn,escapeHtml:()=>lc,escapeRE:()=>cc,fromCodePoint:()=>Bs,has:()=>Za,isMdAsciiPunct:()=>Eo,isPunctChar:()=>Co,isSpace:()=>Ya,isString:()=>Ua,isValidEntityCode:()=>Fs,isWhiteSpace:()=>_o,lib:()=>uc,mdurl:()=>Ts,normalizeReference:()=>Ga,ucmicro:()=>Es,unescapeAll:()=>nc,unescapeMd:()=>tc});function Va(e){return Object.prototype.toString.call(e)}function Ua(e){return"[object String]"===Va(e)}const Ka=Object.prototype.hasOwnProperty;function Za(e,t){return Ka.call(e,t)}function Xa(e,...t){return t.forEach((t=>{if(t){if("object"!=typeof t)throw new TypeError(`${String(t)}must be object`);Object.keys(t).forEach((n=>{e[n]=t[n]}))}})),e}function Ya(e){return 9===e||32===e}function _o(e){if(e>=8192&&e<=8202)return!0;switch(e){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}function Co(e){return Fo.test(e)||_s.test(e)}function Eo(e){switch(e){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 Ga(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Is(e,t,n){return[...e.slice(0,t),...n,...e.slice(t+1)]}function Fs(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Bs(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Rs=/\\([!"#$%&'()*+,\-\./:;<=>?@[\\\]^_`{|}~])/g,Ja=new RegExp(`${Rs.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Qa=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ec(e,t){if(35===t.charCodeAt(0)&&Qa.test(t)){const n="x"===t[1].toLowerCase()?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Fs(n)?Bs(n):e}const n=Ia(e);return n!==e?n:e}function tc(e){return e.includes("\\")?e.replace(Rs,"$1"):e}function nc(e){return e.includes("\\")||e.includes("&")?e.replace(Ja,((e,t,n)=>t||ec(e,n))):e}const rc=/[&<>"]/,oc=/[&<>"]/g,ic={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function sc(e){return ic[e]}function lc(e){return rc.test(e)?e.replace(oc,sc):e}const ac=/[.?*+^$[\]\\(){}|-]/g;function cc(e){return e.replace(ac,"\\$&")}const uc={mdurl:Ts,ucmicro:Es};function dn(e){if(0===e.length)return 0;let t=0,n=-1;for(;-1!==(n=e.indexOf("\n",n+1));)t++;return t}function Lo(e,t,n){let o,r=t;const l={ok:!1,pos:0,str:""};if(60===e.charCodeAt(r)){for(r++;r<n;){if(o=e.charCodeAt(r),10===o||60===o)return l;if(62===o)return l.pos=r+1,l.str=e.slice(t+1,r),l.ok=!0,l;92===o&&r+1<n?r+=2:r++}return l}let i=0;for(;r<n&&(o=e.charCodeAt(r),!(32===o||o<32||127===o));)if(92===o&&r+1<n){if(32===e.charCodeAt(r+1))break;r+=2}else{if(40===o&&(i++,i>32))return l;if(41===o){if(0===i)break;i--}r++}return t===r||0!==i||(l.str=e.slice(t,r),l.pos=r,l.ok=!0),l}var Ls=Lo;function No(e,t,n){let o,r,l=1,i=!1;const s=e.posMax,a=e.pos;for(e.pos=t+1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),93===o&&(l--,0===l)){i=!0;break}if(r=e.pos,e.md.inline.skipToken(e),91===o)if(r===e.pos-1)l++;else if(n)return e.pos=a,-1}let c=-1;return i&&(c=e.pos),e.pos=a,c}var Hr=No;function Oo(e,t,n,o){let r,l=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)i.str=o.str,i.marker=o.marker;else{if(l>=n)return i;let o=e.charCodeAt(l);if(34!==o&&39!==o&&40!==o)return i;t++,l++,40===o&&(o=41),i.marker=o}for(;l<n;){if(r=e.charCodeAt(l),r===i.marker)return i.pos=l+1,i.str+=e.slice(t,l),i.ok=!0,i;if(40===r&&41===i.marker)return i;92===r&&l+1<n&&l++,l++}return i.can_continue=!0,i.str+=e.slice(t,l),i}var Ns=Oo;function Qr(e,t){if(!e.attrs)return-1;for(let n=0;n<e.attrs.length;n++)if(e.attrs[n][0]===t)return n;return-1}function Po(e,t){e.attrs||(e.attrs=[]),e.attrs.push(t)}function dc(e,t,n){const o=Qr(e,t),r=[t,n];o<0?Po(e,r):e.attrs[o]=r}function fc(e,t){const n=Qr(e,t);return n>=0?e.attrs[n][1]:null}function hc(e,t,n){const o=Qr(e,t);o<0?Po(e,[t,n]):e.attrs[o][1]=`${e.attrs[o][1]} ${n}`}var pc=ys({attrGet:()=>fc,attrIndex:()=>Qr,attrJoin:()=>hc,attrPush:()=>Po,attrSet:()=>dc,parseLinkDestination:()=>Lo,parseLinkLabel:()=>No,parseLinkTitle:()=>Oo});const mc=/^(?:vbscript|javascript|file|data):/,gc=/^data:image\/(?:gif|png|jpeg|webp);/,Os=["http:","https:","mailto:"];function Ps(e){const t=e.trim().toLowerCase();return!mc.test(t)||gc.test(t)}function zs(e){const t=Ro(e,!0);if(t.hostname&&(!t.protocol||Os.includes(t.protocol)))try{t.hostname=$s.default.toASCII(t.hostname)}catch(e){}return Ds(Bo(t))}function Hs(e){const t=Ro(e,!0);if(t.hostname&&(!t.protocol||Os.includes(t.protocol)))try{t.hostname=$s.default.toUnicode(t.hostname)}catch(e){}return bo(Bo(t),`${bo.defaultChars}%`)}var Et=class{constructor(e,t,n){X(this,"type"),X(this,"tag"),X(this,"attrs"),X(this,"map"),X(this,"nesting"),X(this,"level"),X(this,"children"),X(this,"content"),X(this,"markup"),X(this,"info"),X(this,"meta"),X(this,"block"),X(this,"hidden"),this.type=e,this.tag=t,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}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,o=t.length;n<o;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){const n=this.attrIndex(e),o=[e,t];n<0?this.attrPush(o):this.attrs[n]=o}attrGet(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}};function vc(e){if(e.inlineMode){const t=new Et("inline","",0);t.content=e.src,t.map=[0,1],t.children=[],t.level=0,e.tokens.push(t)}else e.md&&e.md.block&&e.md.block.parse(e.src,e.md,e.env,e.tokens)}function wc(e){const t=e.tokens;for(let n=0,o=t.length;n<o;n++){const o=t[n];"inline"===o.type&&e.md&&(o.children||(o.children=[]),e.md.inline.parse(o.content,e.md,e.env,o.children))}}function kc(e){return/^<a[>\s]/i.test(e)}function yc(e){return/^<\/a\s*>/i.test(e)}function xc(e){var t,n;const o=e.tokens;if(null!=(n=null==(t=e.md)?void 0:t.options)&&n.linkify)for(let t=0;t<o.length;t++){const n=o[t];if("inline"!==n.type||!e.md.linkify.pretest(n.content))continue;let r=n.children||[],l=0;for(let t=r.length-1;t>=0;t--){const o=r[t];if("link_close"===o.type){for(t--;t>=0&&r[t].level!==o.level&&"link_open"!==r[t].type;)t--;continue}if("html_inline"===o.type&&(kc(o.content)&&l>0&&l--,yc(o.content)&&l++),l>0||"text"!==o.type||!e.md.linkify.test(o.content))continue;const i=o.content;let s=e.md.linkify.match(i)||[];if(0===s.length)continue;const a=[];let c=o.level,u=0;s.length>0&&0===s[0].index&&t>0&&"text_special"===r[t-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const n=s[t],o=e.md.normalizeLink(n.url);if(!e.md.validateLink(o))continue;let r=n.text;r=n.schema?"mailto:"!==n.schema||/^mailto:/i.test(r)?e.md.normalizeLinkText(r):e.md.normalizeLinkText(`mailto:${r}`).replace(/^mailto:/,""):e.md.normalizeLinkText(`http://${r}`).replace(/^http:\/\//,"");const l=n.index;if(l>u){const e=new Et("text","",0);e.content=i.slice(u,l),e.level=c,a.push(e)}const d=new Et("link_open","a",1);d.attrs=[["href",o]],d.level=c++,d.markup="linkify",d.info="auto",a.push(d);const h=new Et("text","",0);h.content=r,h.level=c,a.push(h);const p=new Et("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",a.push(p),u=n.lastIndex}if(0!==u){if(u<i.length){const e=new Et("text","",0);e.content=i.slice(u),e.level=c,a.push(e)}n.children=r=Is(r,t,a)}}}}const bc=/\r\n?|\n/g,_c=/\0/g;function Cc(e){if(!e||"string"!=typeof e.src)return;let t=e.src.replace(bc,"\n");t=t.replace(_c,"�"),e.src=t}function Ec(e){var t,n;null!=(n=null==(t=e.md)?void 0:t.options)&&n.typographer&&(e.tokens||[]).forEach((e=>{"inline"===e.type&&Array.isArray(e.children)&&e.children.forEach((e=>{"text"===e.type&&"string"==typeof e.content&&(e.content=e.content.replace(/\.\.\./g,"…").replace(/---/g,"—").replace(/--/g,"–"))}))}))}var Mc=class{constructor(){X(this,"rules",[]),X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t){const n=this.rules.findIndex((t=>t.name===e));n>=0&&this.rules.splice(n,1),this.rules.push({name:e,fn:t,enabled:!0}),this.invalidateCache()}at(e,t){const n=this.rules.findIndex((t=>t.name===e));if(n<0)throw new Error(`Parser rule not found: ${e}`);this.rules[n].fn=t,this.invalidateCache()}before(e,t,n){const o=this.rules.findIndex((t=>t.name===e));if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex((e=>e.name===t));r>=0&&this.rules.splice(r,1),this.rules.splice(o,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}after(e,t,n){const o=this.rules.findIndex((t=>t.name===e));if(o<0)throw new Error(`Parser rule not found: ${e}`);const r=this.rules.findIndex((e=>e.name===t));r>=0&&this.rules.splice(r,1),this.rules.splice(o+1,0,{name:t,fn:n,enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const e of n){const n=this.rules.findIndex((t=>t.name===e));if(n<0){if(!t)throw new Error(`Rules manager: invalid rule name ${e}`)}else this.rules[n].enabled||(this.rules[n].enabled=!0,o.push(e))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const e of n){const n=this.rules.findIndex((t=>t.name===e));if(n<0){if(!t)throw new Error(`Rules manager: invalid rule name ${e}`)}else this.rules[n].enabled&&(this.rules[n].enabled=!1,o.push(e))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const e of this.rules){const o=t.has(e.name);e.enabled!==o&&(e.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){this.cache=this.rules.filter((e=>e.enabled)).map((e=>e.fn))}getRules(e=""){return this.cache||this.compileCache(),this.cache}};const Sc=/['"]/,ui=/['"]/g,di="’";function Mr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Ac(e,t){let n;const o=[],r=t.md&&t.md.options&&t.md.options.quotes||"“”‘’";for(let t=0;t<e.length;t++){const l=e[t],i=e[t].level;for(n=o.length-1;n>=0&&!(o[n].level<=i);n--);if(o.length=n+1,"text"!==l.type)continue;let s=l.content,a=0,c=s.length;e:for(;a<c;){ui.lastIndex=a;const u=ui.exec(s);if(!u)break;let d=!0,h=!0;a=u.index+1;const p="'"===u[0];let f=32;if(u.index-1>=0)f=s.charCodeAt(u.index-1);else for(n=t-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(a<c)m=s.charCodeAt(a);else for(n=t+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=Eo(f)||Co(String.fromCharCode(f)),v=Eo(m)||Co(String.fromCharCode(m)),k=_o(f),y=_o(m);if(y?d=!1:v&&(k||g||(d=!1)),k?h=!1:g&&(y||v||(h=!1)),34===m&&'"'===u[0]&&f>=48&&f<=57&&(h=d=!1),d&&h&&(d=g,h=v),d||h){if(h)for(n=o.length-1;n>=0;n--){let d=o[n];if(o[n].level<i)break;if(d.single===p&&o[n].level===i){let i,h;d=o[n],p?(i=r[2]||"‘",h=r[3]||"’"):(i=r[0]||"“",h=r[1]||"”"),l.content=Mr(l.content,u.index,h),e[d.token].content=Mr(e[d.token].content,d.pos,i),a+=h.length-1,d.token===t&&(a+=i.length-1),s=l.content,c=s.length,o.length=n;continue e}}d?o.push({token:t,pos:u.index,single:p,level:i}):h&&p&&(l.content=Mr(l.content,u.index,di))}else p&&(l.content=Mr(l.content,u.index,di))}}}function Dc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--){const n=e.tokens[t];if("inline"!==n.type)continue;const o="string"==typeof n.content?n.content:(n.children||[]).map((e=>e.content||"")).join("");!Sc.test(o)||!n.children||Ac(n.children,e)}}function Tc(e){(e.tokens||[]).forEach((e=>{if("inline"===e.type&&Array.isArray(e.children)){const t=[];for(let n=0;n<e.children.length;n++){const o=e.children[n];if("text"===o.type){let r=o.content||"";for(;n+1<e.children.length&&"text"===e.children[n+1].type;)n++,r+=e.children[n].content||"";const l=new Et("text","",0);l.content=r,l.level=o.level,t.push(l)}else t.push(o)}e.children=t}}))}function $c(e){switch(e){case 9:case 32:return!0}return!1}function Ic(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(r))return!1;if(o)return!0;const s=[],a=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p,f=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],l=e.eMarks[p],r>=l)break;if(62===e.src.charCodeAt(r++)&&!t){let t,n,o=e.sCount[p]+1;32===e.src.charCodeAt(r)?(r++,o++,n=!1,t=!0):9===e.src.charCodeAt(r)?(t=!0,(e.bsCount[p]+o)%4==3?(r++,o++,n=!1):n=!0):t=!1;let i=o;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<l;){const t=e.src.charCodeAt(r);if(!$c(t))break;9===t?i+=4-(i+e.bsCount[p]+(n?1:0))%4:i++,r++}f=r>=l,a.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=i-o,u.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(f)break;let o=!1;for(let t=0,r=d.length;t<r;t++)if(d[t](e,p,n,!0)){o=!0;break}if(o){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),a.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),a.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,p);e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=h,v[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=a[n];return e.blkIndent=m,!0}function Fc(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let o=t+1,r=o;for(;o<n;)if(e.isEmpty(o))o++;else{if(!(e.sCount[o]-e.blkIndent>=4))break;o++,r=o}e.line=r;const l=e.push("code_block","code",0);return l.content=`${e.getLines(t,r,4+e.blkIndent,!1)}\n`,l.map=[t,e.line],!0}function Bc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>l)return!1;const i=e.src.charCodeAt(r);if(126!==i&&96!==i)return!1;let s=r;r=e.skipChars(r,i);let a=r-s;if(a<3)return!1;const c=e.src.slice(s,r),u=e.src.slice(r,l);if(96===i&&u.includes(String.fromCharCode(i)))return!1;if(o)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=s=e.bMarks[d]+e.tShift[d],l=e.eMarks[d],r<l&&e.sCount[d]<e.blkIndent));)if(!(e.src.charCodeAt(r)!==i||e.sCount[d]-e.blkIndent>=4||(r=e.skipChars(r,i),r-s<a||(r=e.skipSpaces(r),r<l)))){h=!0;break}a=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,a,!0),p.markup=c,p.map=[t,e.line],!0}function fi(e){switch(e){case 9:case 32:return!0}return!1}function Rc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(35!==i||r>=l)return!1;let s=1;for(i=e.src.charCodeAt(++r);35===i&&r<l&&s<=6;)s++,i=e.src.charCodeAt(++r);if(s>6||r<l&&!fi(i))return!1;if(o)return!0;l=e.skipSpacesBack(l,r);const a=e.skipCharsBack(l,35,r);a>r&&fi(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1;const c=e.push("heading_open",`h${String(s)}`,1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);u.content=e.src.slice(r,l).trim(),u.map=[t,e.line],u.children=[];return e.push("heading_close",`h${String(s)}`,-1).markup="########".slice(0,s),!0}function Lc(e){switch(e){case 9:case 32:return!0}return!1}function Nc(e,t,n,o){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let l=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(l++);if(42!==i&&45!==i&&95!==i)return!1;let s=1;for(;l<r;){const t=e.src.charCodeAt(l++);if(t!==i&&!Lc(t))return!1;t===i&&s++}if(s<3)return!1;if(o)return!0;e.line=t+1;const a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=new Array(s+1).join(String.fromCharCode(i)),!0}var Oc=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const Pc="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",zc="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Hc=new RegExp(`^(?:${Pc}|${zc})`),Vn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp(`^</?(${Oc.join("|")})(?=(\\s|/?>|$))`,"i"),/^$/,!0],[new RegExp(`${Hc.source}\\s*$`),/^$/,!1]];function jc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(r))return!1;let i=e.src.slice(r,l),s=0;for(;s<Vn.length&&!Vn[s][0].test(i);s++);if(s===Vn.length)return!1;if(o)return Vn[s][2];let a=t+1;if(!Vn[s][1].test(i))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(r=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],i=e.src.slice(r,l),Vn[s][1].test(i)){0!==i.length&&a++;break}e.line=a;const c=e.push("html_block","",0);return c.map=[t,a],c.content=e.getLines(t,a,e.blkIndent,!0),!0}function qc(e,t,n){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let l,i=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(l=e.src.charCodeAt(t),(45===l||61===l)&&(t=e.skipChars(t,l),t=e.skipSpaces(t),t>=n))){i=61===l?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let r=0,l=o.length;r<l;r++)if(o[r](e,s,n,!0)){t=!0;break}if(t)break}if(!i)return!1;const a=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open",`h${String(i)}`,1);c.markup=String.fromCharCode(l),c.map=[t,e.line];const u=e.push("inline","",0);u.content=a,u.map=[t,e.line-1],u.children=[];return e.push("heading_close",`h${String(i)}`,-1).markup=String.fromCharCode(l),e.parentType=r,!0}function js(e){switch(e){case 9:case 32:return!0}return!1}function hi(e,t){const n=e.eMarks[t];let o=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(o++);return 42!==r&&45!==r&&43!==r||o<n&&!js(e.src.charCodeAt(o))?-1:o}function pi(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];let r=n;if(r+1>=o)return-1;let l=e.src.charCodeAt(r++);if(l<48||l>57)return-1;for(;;){if(r>=o)return-1;if(l=e.src.charCodeAt(r++),!(l>=48&&l<=57)){if(41===l||46===l)break;return-1}if(r-n>=10)return-1}return r<o&&(l=e.src.charCodeAt(r),!js(l))?-1:r}function Wc(e,t){const n=e.level+2;for(let o=t+2,r=e.tokens.length-2;o<r;o++)e.tokens[o].level===n&&"paragraph_open"===e.tokens[o].type&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function Vc(e,t,n,o){let r,l,i=0,s=t,a=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let c,u,d,h=!1;if(o&&"paragraph"===e.parentType&&e.sCount[s]>=e.blkIndent&&(h=!0),(d=pi(e,s))>=0){if(c=!0,i=e.bMarks[s]+e.tShift[s],u=Number(e.src.slice(i,d-1)),h&&1!==u)return!1}else{if(!((d=hi(e,s))>=0))return!1;c=!1}if(h&&e.skipSpaces(d)>=e.eMarks[s])return!1;if(o)return!0;const p=e.src.charCodeAt(d-1),f=e.tokens.length;if(c){const t=e.push("ordered_list_open","ol",1);void 0!==u&&1!==u&&(t.attrs=[["start",String(u)]])}else e.push("bullet_list_open","ul",1);const m=[s,0];e.tokens[e.tokens.length-1].map=m,e.tokens[e.tokens.length-1].markup=String.fromCharCode(p);let g=!1;const v=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";s<n;){l=d,r=e.eMarks[s];const t=e.sCount[s]+d-(e.bMarks[s]+e.tShift[s]);let o=t;for(;l<r;){const t=e.src.charCodeAt(l);if(9===t)o+=4-(o+e.bsCount[s])%4;else{if(32!==t)break;o++}l++}const u=l;let h;h=u>=r?1:o-t,h>4&&(h=1);const f=t+h,m=e.push("list_item_open","li",1);m.markup=String.fromCharCode(p);const k=[s,0];m.map=k,c&&(m.info=e.src.slice(i,d-1));const y=e.tight,w=e.tShift[s],x=e.sCount[s],b=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[s]=u-e.bMarks[s],e.sCount[s]=o,u>=r&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||g)&&(a=!1),g=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[s]=w,e.sCount[s]=x,e.tight=y,e.push("list_item_close","li",-1).markup=String.fromCharCode(p),s=e.line,k[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let _=!1;for(let t=0,o=v.length;t<o;t++)if(v[t](e,s,n,!0)){_=!0;break}if(_)break;if(c){if(d=pi(e,s),d<0)break;i=e.bMarks[s]+e.tShift[s]}else if(d=hi(e,s),d<0)break;if(p!==e.src.charCodeAt(d-1))break}return c?e.push("ordered_list_close","ol",-1).markup=String.fromCharCode(p):e.push("bullet_list_close","ul",-1).markup=String.fromCharCode(p),m[1]=s,e.line=s,e.parentType=k,a&&Wc(e,f),!0}function Uc(e,t,n){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let l=t+1;for(e.parentType="paragraph";l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)continue;let t=!1;for(let r=0,i=o.length;r<i;r++)if(o[r](e,l,n,!0)){t=!0;break}if(t)break}const i=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l;e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=i,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}function Sr(e){switch(e){case 9:case 32:return!0}return!1}function Kc(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ".toLowerCase()&&(e=e.toLowerCase()),e.toLowerCase().toUpperCase().toLowerCase()}function Zc(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(r))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let o=!1;if(e.sCount[t]-e.blkIndent>3&&(o=!0),e.sCount[t]<0&&(o=!0),!o){const o=e.md.block.ruler.getRules("reference"),r=e.parentType;e.parentType="reference";let l=!1;for(let r=0,i=o.length;r<i;r++)if(o[r](e,t,n,!0)){l=!0;break}if(e.parentType=r,l)return null}const r=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(r,l+1)}let a=e.src.slice(r,l+1);l=a.length;let c=-1;for(r=1;r<l;r++){const e=a.charCodeAt(r);if(91===e)return!1;if(93===e){c=r;break}if(10===e){const e=s(i);null!==e&&(a+=e,l=a.length,i++)}else if(92===e&&(r++,r<l&&10===a.charCodeAt(r))){const e=s(i);null!==e&&(a+=e,l=a.length,i++)}}if(c<0||58!==a.charCodeAt(c+1))return!1;for(r=c+2;r<l;r++){const e=a.charCodeAt(r);if(10===e){const e=s(i);null!==e&&(a+=e,l=a.length,i++)}else if(!Sr(e))break}const u=e.md.helpers.parseLinkDestination(a,r,l);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;r=u.pos;const h=r,p=i,f=r;for(;r<l;r++){const e=a.charCodeAt(r);if(10===e){const e=s(i);null!==e&&(a+=e,l=a.length,i++)}else if(!Sr(e))break}let m,g=e.md.helpers.parseLinkTitle(a,r,l);for(;g.can_continue;){const t=s(i);if(null===t)break;a+=t,r=l,l=a.length,i++,g=e.md.helpers.parseLinkTitle(a,r,l,g)}for(r<l&&f!==r&&g.ok?(m=g.str,r=g.pos):(m="",r=h,i=p);r<l&&Sr(a.charCodeAt(r));)r++;if(r<l&&10!==a.charCodeAt(r)&&m)for(m="",r=h,i=p;r<l&&Sr(a.charCodeAt(r));)r++;if(r<l&&10!==a.charCodeAt(r))return!1;const v=Kc(a.slice(1,c));return!!v&&(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:m,href:d}),e.line=i),!0)}function ho(e){switch(e){case 9:case 32:return!0}return!1}const Xc=65536;function po(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function mi(e){const t=[],n=e.length;let o=0,r=e.charCodeAt(o),l=!1,i=0,s="";for(;o<n;)124===r&&(l?(s+=e.substring(i,o-1),i=o):(t.push(s+e.substring(i,o)),s="",i=o+1)),l=92===r,o++,r=e.charCodeAt(o);return t.push(s+e.substring(i)),t}function Yc(e,t,n,o){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let l=e.bMarks[r]+e.tShift[r];if(l>=e.eMarks[r])return!1;const i=e.src.charCodeAt(l++);if(124!==i&&45!==i&&58!==i||l>=e.eMarks[r])return!1;const s=e.src.charCodeAt(l++);if(124!==s&&45!==s&&58!==s&&!ho(s)||45===i&&ho(s))return!1;for(;l<e.eMarks[r];){const t=e.src.charCodeAt(l);if(124!==t&&45!==t&&58!==t&&!ho(t))return!1;l++}let a=po(e,t+1),c=a.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(a=po(e,t).trim(),!a.includes("|")||e.sCount[t]-e.blkIndent>=4)return!1;c=mi(a),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(o)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),f=[t,0];e.push("table_open","table",1).map=f;e.push("thead_open","thead",1).map=[t,t+1];e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style",`text-align:${u[t]}`]]);const o=e.push("inline","",0);o.content=c[t].trim(),o.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let m,g=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let o=!1;for(let t=0,l=p.length;t<l;t++)if(p[t](e,r,n,!0)){o=!0;break}if(o||(a=po(e,r).trim(),!a)||e.sCount[r]-e.blkIndent>=4||(c=mi(a),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>Xc))break;if(r===t+2){e.push("tbody_open","tbody",1).map=m=[t+2,0]}e.push("tr_open","tr",1).map=[r,r+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style",`text-align:${u[t]}`]]);const o=e.push("inline","",0);o.content=c[t]?c[t].trim():"",o.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=r),e.push("table_close","table",-1),f[1]=r,e.parentType=h,e.line=r,!0}var Gc=class{constructor(){X(this,"_rules",[]),X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){this._rules.push({name:e,enabled:!0,fn:t,alt:(null==n?void 0:n.alt)||[]}),this.invalidateCache()}before(e,t,n,o){const r=this._rules.findIndex((t=>t.name===e));if(r<0)throw new Error(`Parser rule not found: ${e}`);const l=this._rules.findIndex((e=>e.name===t));l>=0&&this._rules.splice(l,1),this._rules.splice(r,0,{name:t,enabled:!0,fn:n,alt:(null==o?void 0:o.alt)||[]}),this.invalidateCache()}after(e,t,n,o){const r=this._rules.findIndex((t=>t.name===e));if(r<0)throw new Error(`Parser rule not found: ${e}`);const l=this._rules.findIndex((e=>e.name===t));l>=0&&this._rules.splice(l,1),this._rules.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:(null==o?void 0:o.alt)||[]}),this.invalidateCache()}getRules(e){var t;const n=e||"";return this.cache||this.compileCache(),null!=(t=this.cache.get(n))?t:[]}at(e,t,n){const o=this._rules.findIndex((t=>t.name===e));if(-1===o)throw new Error(`Parser rule not found: ${e}`);this._rules[o].fn=t,null!=n&&n.alt&&(this._rules[o].alt=n.alt),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{const n=this._rules.findIndex((t=>t.name===e));if(-1===n){if(t)return;throw new Error(`Rules manager: invalid rule name ${e}`)}this._rules[n].enabled||(this._rules[n].enabled=!0,o.push(e))})),o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{const n=this._rules.findIndex((t=>t.name===e));if(-1===n){if(t)return;throw new Error(`Rules manager: invalid rule name ${e}`)}this._rules[n].enabled&&(this._rules[n].enabled=!1,o.push(e))})),o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const e of this._rules){const o=t.has(e.name);e.enabled!==o&&(e.enabled=o,n=!0)}n&&this.invalidateCache()}compileCache(){const e=new Set([""]);for(const t of this._rules)if(t.enabled)for(const n of t.alt)e.add(n);const t=new Map;for(const n of e){const e=[];for(const t of this._rules)t.enabled&&(""!==n&&!t.alt.includes(n)||e.push(t.fn));t.set(n,e)}this.cache=t}};function Ar(e){switch(e){case 9:case 32:return!0}return!1}var Jc=class{constructor(e,t,n,o){X(this,"src"),X(this,"md"),X(this,"env"),X(this,"tokens"),X(this,"Token"),X(this,"bMarks",[]),X(this,"eMarks",[]),X(this,"tShift",[]),X(this,"sCount",[]),X(this,"bsCount",[]),X(this,"blkIndent",0),X(this,"line",0),X(this,"lineMax",0),X(this,"tight",!1),X(this,"ddIndent",-1),X(this,"listIndent",-1),X(this,"parentType","root"),X(this,"level",0),this.src=e,this.md=t,this.env=n,this.tokens=o,this.Token=Et;const r=this.src;let l=0,i=0,s=0,a=!1;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(!a){if(Ar(n)){l++,9===n?i+=4-i%4:i++;continue}a=!0}(10===n||e===t-1)&&(10!==n&&e++,this.bMarks.push(s),this.eMarks.push(e),this.tShift.push(l),this.sCount.push(i),this.bsCount.push(0),a=!1,l=0,i=0,s=e+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){const o=new Et(e,t,n);return o.level=this.level,o.content="",o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&Ar(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!Ar(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,o){if(e>=t)return"";const r=new Array(t-e);for(let l=0,i=e;i<t;i++,l++){let e=0;const s=this.bMarks[i];let a,c=s;for(a=i+1<t||o?this.eMarks[i]+1:this.eMarks[i];c<a&&e<n;){const t=this.src.charCodeAt(c);if(Ar(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(c-s<this.tShift[i]))break;e++}c++}r[l]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,a):this.src.slice(c,a)}return r.join("")}};const Dr=[["table",Yc,["paragraph","reference"]],["code",Fc],["fence",Bc,["paragraph","reference","blockquote","list"]],["blockquote",Ic,["paragraph","reference","blockquote","list"]],["hr",Nc,["paragraph","reference","blockquote","list"]],["list",Vc,["paragraph","reference","blockquote"]],["reference",Zc],["html_block",jc,["paragraph","reference","blockquote"]],["heading",Rc,["paragraph","reference","blockquote"]],["lheading",qc],["paragraph",Uc]];var Qc=class{constructor(){X(this,"ruler"),this.ruler=new Gc;for(let e=0;e<Dr.length;e++)this.ruler.push(Dr[e][0],Dr[e][1],{alt:(Dr[e][2]||[]).slice()})}tokenize(e,t,n){const o=this.ruler.getRules(""),r=o.length,l=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=l){e.line=n;break}const t=e.line;let a=!1;for(let l=0;l<r;l++)if(a=o[l](e,i,n,!1),a){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}}parse(e,t,n,o){if(!e)return;const r=new Jc(e,t,n,o);this.tokenize(r,r.line,r.lineMax)}};const eu=/^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,tu=/^[a-z][a-z0-9+.-]{1,31}:[^<>\x00-\x20]*$/i;function nu(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const l=e.src.slice(o+1,n);if(tu.test(l)){const n=e.md.normalizeLink(l);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(l);const o=e.push("link_close","a",-1);o.markup="autolink",o.info="auto"}return e.pos+=l.length+2,!0}if(eu.test(l)){const n=e.md.normalizeLink(`mailto:${l}`);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(l);const o=e.push("link_close","a",-1);o.markup="autolink",o.info="auto"}return e.pos+=l.length+2,!0}return!1}var ru=nu;function ou(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const o=n;n++;const r=e.posMax;for(;n<r&&96===e.src.charCodeAt(n);)n++;const l=e.src.slice(o,n),i=l.length;if(e.backticksScanned&&(e.backticks[i]||0)<=o)return t||(e.pending+=l),e.pos+=i,!0;let s,a=n;for(;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<r&&96===e.src.charCodeAt(a);)a++;const o=a-s;if(o===i){if(!t){const t=e.push("code_inline","code",0);t.markup=l,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[o]=s}return e.backticksScanned=!0,t||(e.pending+=l),e.pos+=i,!0}var iu=ou;function gi(e){const t={},n=e.length;if(!n)return;let o=0,r=-2;const l=[];for(let i=0;i<n;i++){const n=e[i];if(l.push(0),(e[o].marker!==n.marker||r!==n.token-1)&&(o=i),r=n.token,n.length=n.length||0,!n.close)continue;Object.prototype.hasOwnProperty.call(t,n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let a=o-l[o]-1,c=a;for(;a>s;a-=l[a]+1){const t=e[a];if(t.marker===n.marker&&t.open&&t.end<0){let o=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(o=!0),!o){const o=a>0&&!e[a-1].open?l[a-1]+1:0;l[i]=i-a+o,l[a]=o,n.open=!1,t.end=i,t.close=!1,c=-1,r=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}function su(e){const t=e.tokens_meta,n=e.tokens_meta.length;gi(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&gi(t[e].delimiters)}var lu=su;function au(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||95!==o&&42!==o)return!1;const r=e.scanDelims(e.pos,42===o);if(!r||0===r.length)return!1;for(let t=0;t<r.length;t++){e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function vi(e,t){for(let n=t.length-1;n>=0;n--){const o=t[n];if(95!==o.marker&&42!==o.marker||-1===o.end)continue;const r=t[o.end],l=n>0&&t[n-1].end===o.end+1&&t[n-1].marker===o.marker&&t[n-1].token===o.token-1&&t[o.end+1].token===r.token+1,i=String.fromCharCode(o.marker),s=e.tokens[o.token];s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?i+i:i,s.content="";const a=e.tokens[r.token];a.type=l?"strong_close":"em_close",a.tag=l?"strong":"em",a.nesting=-1,a.markup=l?i+i:i,a.content="",l&&(e.tokens[t[n-1].token].content="",e.tokens[t[o.end+1].token].content="",n--)}}function cu(e){const t=e.tokens_meta,n=e.tokens_meta.length;vi(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&vi(e,t[o].delimiters)}const wi={tokenize:au,postProcess:cu},uu=/^&#(x[a-f0-9]{1,6}|\d{1,7});/i,du=/^&([a-z][a-z0-9]{1,31});/i,ki={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};function fu(e){return!(e>=55296&&e<=57343||e>=1114111)}function yi(e){return String.fromCodePoint(e)}function hu(e){const t=e.match(/^&([a-z][a-z0-9]{1,31});/i);return t&&ki[t[1]]?ki[t[1]]:e}function pu(e,t){const n=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(n)||n+1>=o)return!1;if(35===e.src.charCodeAt(n+1)){const o=e.src.slice(n).match(uu);if(o){if(!t){const t="x"===o[1][0].toLowerCase()?Number.parseInt(o[1].slice(1),16):Number.parseInt(o[1],10),n=e.push("text_special","",0);n.content=fu(t)?yi(t):yi(65533),n.markup=o[0],n.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(du);if(o){const n=hu(o[0]);if(n!==o[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=o[0],t.info="entity"}return e.pos+=o[0].length,!0}}}return!1}var mu=pu;const gu=[92,96,42,95,123,125,91,93,40,41,35,43,45,46,33,124];function vu(e,t){const{pos:n,posMax:o,src:r}=e;if(92!==r.charCodeAt(n))return!1;const l=n+1;if(l>=o)return!1;const i=r.charCodeAt(l);return 10===i?(t||e.push("hardbreak","br",0),e.pos+=2,!0):!!(i<128&&gu.includes(i))&&(t||(e.pending+=r[l]),e.pos+=2,!0)}var wu=vu;function ku(e){var t;let n,o,r=0;const l=e.tokens,i=e.tokens.length;for(n=o=0;n<i;n++){const e=l[n];e&&(e.nesting&&e.nesting<0&&r--,e.level=r,e.nesting&&e.nesting>0&&r++,"text"===e.type&&n+1<i&&"text"===(null==(t=l[n+1])?void 0:t.type)?l[n+1].content=e.content+l[n+1].content:(n!==o&&(l[o]=e),o++))}n!==o&&(l.length=o)}var yu=ku;const xu=/^<\/?[a-z][a-z0-9-]*(?:\s+[a-z_:][\w:.-]*(?:\s*=\s*(?:[^"'=<>`\s]+|'[^']*'|"[^"]*"))?)*\s*\/?>/i;function bu(e){return/^<a[>\s]/i.test(e)}function _u(e){return/^<\/a\s*>/i.test(e)}function Cu(e){const t=32|e;return t>=97&&t<=122}function Eu(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(60!==e.src.charCodeAt(o)||o+2>=n)return!1;const r=e.src.charCodeAt(o+1);if(33!==r&&63!==r&&47!==r&&!Cu(r))return!1;const l=e.src.slice(o).match(xu);if(!l)return!1;if(!t){const t=e.push("html_inline","",0);t.content=l[0],bu(t.content)&&e.linkLevel++,_u(t.content)&&e.linkLevel--}return e.pos+=l[0].length,!0}var Mu=Eu;function Su(e,t){let n,o,r,l,i,s,a,c,u="";const d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,f=Hr(e,e.pos+1,!1);if(f<0)return!1;if(l=f+1,l<h&&40===e.src.charCodeAt(l)){for(l++;l<h&&(n=e.src.charCodeAt(l),32===n||10===n);l++);if(l>=h)return!1;if(c=l,s=Ls(e.src,l,e.posMax),s.ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?l=s.pos:u="";l<h&&(n=e.src.charCodeAt(l),32===n||10===n);l++);if(s=Ns(e.src,l,e.posMax),l<h&&s.ok)for(a=s.str,l=s.pos;l<h&&(n=e.src.charCodeAt(l),32===n||10===n);l++);else a=""}if(l>=h||41!==e.src.charCodeAt(l))return e.pos=d,!1;l++}else{if(void 0===e.env.references)return!1;if(l<h&&91===e.src.charCodeAt(l)?(c=l+1,l=Hr(e,l),l>=0?r=e.src.slice(c,l++):l=f+1):l=f+1,r||(r=e.src.slice(p,f)),i=e.env.references[r&&r.toLowerCase()],!i)return e.pos=d,!1;u=i.href,a=i.title}if(!t){o=e.src.slice(p,f);const t=[];e.md.inline.parse(o,e.md,e.env,t);const n=e.push("image","img",0);n.attrs=[["src",u],["alt",""]],n.children=t,n.content=o,a&&n.attrs.push(["title",a])}return e.pos=l,e.posMax=h,!0}var Au=Su;function Du(e,t){let n,o,r,l,i="",s="",a=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,h=e.pos+1,p=Hr(e,e.pos,!0);if(p<0)return!1;let f=p+1;if(f<d&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<d&&(n=e.src.charCodeAt(f),32===n||10===n);f++);if(f>=d)return!1;if(a=f,r=Ls(e.src,f,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?f=r.pos:i="";f<d&&(n=e.src.charCodeAt(f),32===n||10===n);f++);if(r=Ns(e.src,f,e.posMax),f<d&&r.ok)for(s=r.str,f=r.pos;f<d&&(n=e.src.charCodeAt(f),32===n||10===n);f++);}(f>=d||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<d&&91===e.src.charCodeAt(f)?(a=f+1,f=Hr(e,f),f>=0?o=e.src.slice(a,f++):f=p+1):f=p+1,o||(o=e.src.slice(h,p)),l=e.env.references[o&&o.toLowerCase()],!l)return e.pos=u,!1;i=l.href,s=l.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}var Tu=Du;const $u=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Iu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax||58!==e.src.charCodeAt(n)||47!==e.src.charCodeAt(n+1)||47!==e.src.charCodeAt(n+2))return!1;const o=e.pending.match($u);if(!o)return!1;const r=o[1],l=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!l)return!1;let i=l.url;if(i.length<=r.length)return!1;i=i.replace(/\*+$/,"");const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-r.length,!0}function Fu(e,t){const{pos:n,src:o,posMax:r}=e;if(10!==o.charCodeAt(n))return!1;const l=e.pending.length-1,i=r;if(!t)if(l>=0&&32===e.pending.charCodeAt(l))if(l>=1&&32===e.pending.charCodeAt(l-1)){let t=l-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),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(e.pos++;e.pos<i&&32===o.charCodeAt(e.pos);)e.pos++;return!0}var Bu=Fu;function Ru(e,t){const n=e.pos,o=e.src.charCodeAt(n);if(t||126!==o)return!1;const r=e.scanDelims(e.pos,!0);if(!r)return!1;let l=r.length;const i=String.fromCharCode(o);if(l<2)return!1;let s;l%2&&(s=e.push("text","",0),s.content=i,l--);for(let t=0;t<l;t+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function xi(e,t){let n;const o=[],r=t.length;for(let l=0;l<r;l++){const r=t[l];if(126!==r.marker||-1===r.end)continue;const i=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&o.push(i.token-1)}for(;o.length;){const t=o.pop();let r=t+1;for(;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;r--,t!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=n)}}function Lu(e){xi(e,e.delimiters);const t=e.tokens_meta;if(t)for(let n=0;n<t.length;n++)t[n]&&t[n].delimiters&&xi(e,t[n].delimiters)}const bi={tokenize:Ru,postProcess:Lu};function Nu(e){switch(e){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}}function Ou(e,t){let n=e.pos;for(;n<e.posMax&&!Nu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var Pu=Ou,_i=class{constructor(){X(this,"rules",[]),X(this,"cache",null)}invalidateCache(){this.cache=null}push(e,t,n){const o=this.rules.findIndex((t=>t.name===e));o>=0&&this.rules.splice(o,1),this.rules.push({name:e,fn:t,alt:(null==n?void 0:n.alt)||[],enabled:!0}),this.invalidateCache()}at(e){return this.rules.find((t=>t.name===e))}before(e,t,n,o){const r=this.rules.findIndex((t=>t.name===e));if(r<0)throw new Error(`Parser rule not found: ${e}`);const l=this.rules.findIndex((e=>e.name===t));l>=0&&this.rules.splice(l,1),this.rules.splice(r,0,{name:t,fn:n,alt:(null==o?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}after(e,t,n,o){const r=this.rules.findIndex((t=>t.name===e));if(r<0)throw new Error(`Parser rule not found: ${e}`);const l=this.rules.findIndex((e=>e.name===t));l>=0&&this.rules.splice(l,1),this.rules.splice(r+1,0,{name:t,fn:n,alt:(null==o?void 0:o.alt)||[],enabled:!0}),this.invalidateCache()}enable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const e of n){const n=this.rules.findIndex((t=>t.name===e));if(n<0){if(!t)throw new Error(`Rules manager: invalid rule name ${e}`)}else this.rules[n].enabled||(this.rules[n].enabled=!0,o.push(e))}return o.length&&this.invalidateCache(),o}disable(e,t){const n=Array.isArray(e)?e:[e],o=[];for(const e of n){const n=this.rules.findIndex((t=>t.name===e));if(n<0){if(!t)throw new Error(`Rules manager: invalid rule name ${e}`)}else this.rules[n].enabled&&(this.rules[n].enabled=!1,o.push(e))}return o.length&&this.invalidateCache(),o}enableOnly(e){const t=new Set(e);let n=!1;for(const e of this.rules){const o=t.has(e.name);e.enabled!==o&&(e.enabled=o,n=!0)}n&&this.invalidateCache()}getRules(e){var t;const n=e||"";return this.cache||this.compileCache(),null!=(t=this.cache.get(n))?t:[]}compileCache(){var e;const t=new Set([""]);for(const e of this.rules)if(e.enabled&&e.alt)for(const n of e.alt)t.add(n);const n=new Map;for(const o of t){const t=[];for(const n of this.rules)n.enabled&&(""!==o&&(null==(e=n.alt)||!e.includes(o))||t.push(n.fn));n.set(o,t)}this.cache=n}},zu=class{constructor(e,t,n,o){X(this,"src"),X(this,"md"),X(this,"env"),X(this,"outTokens"),X(this,"tokens"),X(this,"tokens_meta"),X(this,"pos"),X(this,"posMax"),X(this,"level"),X(this,"pending"),X(this,"pendingLevel"),X(this,"cache"),X(this,"delimiters"),X(this,"_prev_delimiters"),X(this,"backticks"),X(this,"backticksScanned"),X(this,"linkLevel"),X(this,"Token"),this.src=e,this.md=t,this.env=n,this.outTokens=o,this.tokens=o,this.tokens_meta=new Array(o.length),this.pos=0,this.posMax=e.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0,this.Token=Et}pushPending(){const e=new Et("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.tokens_meta.push(null),this.pending="",e}push(e,t,n){this.pending&&this.pushPending();const o=new Et(e,t,n);o.level=this.level;let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()||[]),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o}scanDelims(e,t){const{src:n,posMax:o}=this,r=n.charCodeAt(e);let l=e,i=0;for(;l<o&&n.charCodeAt(l)===r;)i++,l++;if(i<1)return null;const s=e>0?n.charCodeAt(e-1):32,a=l<o?n.charCodeAt(l):32,c=32===s||10===s,u=32===a||10===a,d=32===s,h=32===a;let p=!0,f=!0;return h?p=!1:u&&(d||c||(p=!1)),d?f=!1:c&&(h||u||(f=!1)),t||(p=p&&(!c||d),f=f&&(!u||h)),{can_open:p,can_close:f,length:i}}},Hu=class{constructor(){X(this,"ruler"),X(this,"ruler2"),this.ruler=new _i,this.ruler2=new _i,this.ruler.push("text",Pu),this.ruler.push("linkify",Iu),this.ruler.push("newline",Bu),this.ruler.push("escape",wu),this.ruler.push("backticks",iu),this.ruler.push("strikethrough",bi.tokenize),this.ruler.push("emphasis",wi.tokenize),this.ruler.push("link",Tu),this.ruler.push("image",Au),this.ruler.push("autolink",ru),this.ruler.push("html_inline",Mu),this.ruler.push("entity",mu),this.ruler2.push("balance_pairs",lu),this.ruler2.push("strikethrough",bi.postProcess),this.ruler2.push("emphasis",wi.postProcess),this.ruler2.push("fragments_join",yu)}skipToken(e){var t,n;const o=e.pos,r=this.ruler.getRules(""),l=r.length,i=e.posMax,s=(null==(n=null==(t=e.md)?void 0:t.options)?void 0:n.maxNesting)||100;if(void 0!==e.cache[o])return void(e.pos=e.cache[o]);let a=!1;if(e.level<s){for(let t=0;t<l;t++)if(e.level++,a=r[t](e,!0),e.level--,a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=i;a||e.pos++,e.cache[o]=e.pos}tokenize(e){var t,n;const o=this.ruler.getRules(""),r=o.length,l=e.posMax,i=(null==(n=null==(t=e.md)?void 0:t.options)?void 0:n.maxNesting)||100;for(;e.pos<l;){const t=e.pos;let n=!1;if(e.level<i)for(let l=0;l<r;l++)if(n=o[l](e,!1),n){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(n){if(e.pos>=l)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,o){const r=new zu(e,t,n,o);this.tokenize(r);const l=this.ruler2.getRules(""),i=l.length;for(let e=0;e<i;e++)l[e](r,!1)}},ju=class{constructor(e,t,n={}){X(this,"src"),X(this,"env"),X(this,"tokens"),X(this,"inlineMode"),X(this,"md"),X(this,"Token"),this.src=e||"",this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t,this.Token=Et}};const Ci=[["normalize",Cc],["block",vc],["inline",wc],["linkify",xc],["replacements",Ec],["smartquotes",Dc],["text_join",Tc]],qu={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:100},Wu={parseLinkLabel:No,parseLinkDestination:Lo,parseLinkTitle:Oo};function Vu(){return ae({},qu)}function Uu(){return ae({},Wu)}var Ku=class{constructor(){X(this,"fallbackParser"),X(this,"lastState",null),X(this,"block"),X(this,"inline"),X(this,"ruler"),X(this,"linkifyInstance",null),X(this,"cachedCoreRules",null),this.block=new Qc,this.inline=new Hu,this.ruler=new Mc;for(let e=0;e<Ci.length;e++){const[t,n]=Ci[e];this.ruler.push(t,n)}this.fallbackParser={block:this.block,inline:this.inline,core:this,options:Vu(),helpers:Uu(),normalizeLink:zs,normalizeLinkText:Hs,validateLink:Ps,linkify:null}}resolveParser(e){return e||(this.linkifyInstance||(this.linkifyInstance=new Ss),this.fallbackParser.block!==this.block&&(this.fallbackParser.block=this.block),this.fallbackParser.inline!==this.inline&&(this.fallbackParser.inline=this.inline),this.fallbackParser.core=this,this.fallbackParser.linkify=this.linkifyInstance,this.fallbackParser)}createState(e,t={},n){return new ju(e,this.resolveParser(n),t)}process(e){this.cachedCoreRules||(this.cachedCoreRules=this.ruler.getRules(""));const t=this.cachedCoreRules;for(let n=0;n<t.length;n++)t[n](e)}parse(e,t={},n){if("string"!=typeof e)throw new TypeError("Input data should be a String");const o=this.createState(e,t,n);return this.process(o),this.lastState=o,o}getTokens(){return this.lastState?this.lastState.tokens:[]}},Zu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1}},Xu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Yu={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"]},inline2:{rules:["balance_pairs","fragments_join"]}}};const Gu=/[&<>"]/,Ju=/[&<>"]/g,Qu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function ed(e){return Qu[e]||e}function Fn(e){return Gu.test(e)?e.replace(Ju,ed):e}const td=new RegExp(`${/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),nd=/^#(?:x[a-f0-9]{1,8}|\d{1,8})$/i;function rd(e){return e.includes("\\")||e.includes("&")?e.replace(td,((e,t,n)=>{if(t)return t;if(nd.test(n)){const e="x"===n[1].toLowerCase()?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return e>=55296&&e<=57343||e>=128&&e<=159?"�":String.fromCodePoint(e)}return e})):e}const od={code_inline(e,t,n,o,r){const l=e[t];return`<code${r.renderAttrs(l)}>${Fn(l.content)}</code>`},code_block(e,t,n,o,r){const l=e[t];return`<pre${r.renderAttrs(l)}><code>${Fn(l.content)}</code></pre>\n`},fence(e,t,n,o,r){const l=e[t],i=l.info?rd(l.info).trim():"";let s="",a="";if(i){const e=i.split(/(\s+)/g);s=e[0],a=e.slice(2).join("")}const c=n.highlight,u=c&&c(l.content,s,a)||Fn(l.content);if(u.startsWith("<pre"))return`${u}\n`;if(i){const e="function"==typeof l.attrIndex?l.attrIndex("class"):-1,t=l.attrs?l.attrs.map((e=>e.slice())):[],o=`${n.langPrefix||"language-"}${s}`;e<0?t.push(["class",o]):t[e][1]+=` ${o}`;const i=nt(ae({},l),{attrs:t});return`<pre><code${r.renderAttrs(i)}>${u}</code></pre>\n`}return`<pre><code${r.renderAttrs(l)}>${u}</code></pre>\n`},image(e,t,n,o,r){const l=e[t],i=r.renderInlineAsText(l.children||[],n,o);if("function"==typeof l.attrIndex){const e=l.attrIndex("alt");e>=0&&l.attrs?l.attrs[e][1]=i:l.attrs?l.attrs.push(["alt",i]):l.attrs=[["alt",i]]}return r.renderToken(e,t,n)},hardbreak:(e,t,n)=>n.xhtmlOut?"<br />\n":"<br>\n",softbreak:(e,t,n)=>n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n",text:(e,t)=>Fn(e[t].content),html_block:(e,t)=>e[t].content,html_inline:(e,t)=>e[t].content};function mo(e,t){return ae(ae({langPrefix:"language-",xhtmlOut:!1,breaks:!1},e),t)}var id=class{constructor(e={}){X(this,"rules"),X(this,"baseOptions"),this.baseOptions=ae({},e),this.rules=ae({},od)}set(e){return this.baseOptions=ae(ae({},this.baseOptions),e),this}render(e,t={},n={}){if(!Array.isArray(e))throw new TypeError("render expects token array as first argument");const o=mo(this.baseOptions,t);let r="";for(let t=0;t<e.length;t++){const l=e[t];if("inline"===l.type){r+=this.renderInline(l.children||[],o,n);continue}const i=this.rules[l.type];r+=i?i(e,t,o,n,this):this.renderToken(e,t,o)}return r}renderInline(e,t={},n={}){const o=mo(this.baseOptions,t);let r="";for(let t=0;t<e.length;t++){const l=e[t],i=this.rules[l.type];r+=i?i(e,t,o,n,this):this.renderToken(e,t,o)}return r}renderInlineAsText(e,t={},n={}){const o=mo(this.baseOptions,t);let r="";for(let t=0;t<e.length;t++){const l=e[t];switch(l.type){case"text":case"html_inline":case"html_block":r+=l.content;break;case"image":r+=this.renderInlineAsText(l.children||[],o,n);break;case"softbreak":case"hardbreak":r+="\n"}}return r}renderAttrs(e){return e.attrs&&0!==e.attrs.length?e.attrs.map((([e,t])=>` ${Fn(e)}="${Fn(t)}"`)).join(""):""}renderToken(e,t,n){const o=e[t];if(o.hidden)return"";let r="";o.block&&-1!==o.nesting&&t>0&&e[t-1].hidden&&(r+="\n"),r+=-1===o.nesting?`</${o.tag}`:`<${o.tag}`,r+=this.renderAttrs(o),0===o.nesting&&n.xhtmlOut&&(r+=" /");let l=!1;if(o.block&&(l=!0,1===o.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===o.tag)&&(l=!1)}return r+=l?">\n":">",r}},sd=id;const ld={maxChunkChars:1e4,maxChunkLines:200,fenceAware:!0,maxChunks:void 0};function Kn(e,t,n={},o){const r=ae(ae({},ld),o||{});let l=ad(t,r);if(r.maxChunks&&l.length>r.maxChunks){const e=r.maxChunks-1,t=l.slice(0,e),n=l.slice(e).join("\n");l=[...t,n]}let i=0;const s=[];try{n.__mdtsChunkInfo={count:l.length,maxChunkChars:r.maxChunkChars,maxChunkLines:r.maxChunkLines}}catch(e){}for(const t of l){const o=e.core.parse(t,n,e).tokens;0!==i&&o.length&&cd(o,i),s.push(...o),i+=dn(t)}return s}function ad(e,t){const n=e.split("\n"),o=[];let r=[],l=0,i=0,s=0,a=0,c=null;function u(){r.length>0&&(o.push(r.join("\n")),r=[],l=0,i=0)}for(let e=0;e<n.length;e++){const o=n[e],d=o.trim();if(t.fenceAware){let e=0;for(;e<o.length;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e++}const t=o[e];if("`"===t||"~"===t){let n=e;for(;n<o.length&&o[n]===t;)n++;const r=n-e;r>=3&&(c?c.marker===t&&r>=c.length&&(c=null):c={marker:t,length:r})}}r.push(o);const h=o.length+1;l+=h,i+=1,0===d.length?(s=0,a=0):(s+=1,a+=h);const p=0===d.length;if((l>=t.maxChunkChars||i>=t.maxChunkLines)&&!c)if(p)u();else{const e=Math.max(10,Math.floor(.5*t.maxChunkLines)),n=Math.max(t.maxChunkChars,8e3);(s>=e||a>=n)&&u()}}return u(),o}function cd(e,t){if(0===t)return;const n=[...e];for(;n.length;){const e=n.pop();if(e.map&&(e.map[0]+=t,e.map[1]+=t),e.children)for(let t=e.children.length-1;t>=0;t--)n.push(e.children[t])}}const ud=[];function Ei(){return{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"}}var dd=class{constructor(e){X(this,"core"),X(this,"cache",null),X(this,"stats",Ei()),X(this,"MIN_SIZE_FOR_OPTIMIZATION",1e3),X(this,"DEFAULT_SKIP_CACHE_CHARS",6e5),X(this,"DEFAULT_SKIP_CACHE_LINES",1e4),X(this,"MAX_CHUNKS_FOR_FALLBACK",24),X(this,"MAX_CHUNKED_DOC_CHARS",12e4),this.core=e}reset(){this.cache=null,this.stats.resets+=1,this.stats.lastMode="reset"}resetStats(){const{resets:e}=this.stats;this.stats=Ei(),this.stats.resets=e}parse(e,t,n){var o,r,l,i,s,a,c,u,d,h,p,f,m,g,v,k,y,w,x,b,_,C,E,M,D;const A=t,S=this.cache;if(!S||A&&A!==S.env){const t=null!=A?A:{},g=!(null==(o=n.options)||!o.streamChunkedFallback),v=!1!==(null==(r=n.options)?void 0:r.streamChunkAdaptive),k=null!=(i=null==(l=n.options)?void 0:l.streamChunkTargetChunks)?i:8,y=null==(s=n.options)?void 0:s.streamChunkSizeChars,w=null==(a=n.options)?void 0:a.streamChunkSizeLines,x=!1!==(null==(c=n.options)?void 0:c.autoTuneChunks),b=null==(d=null==(u=n.options)?void 0:u.streamChunkFenceAware)||d,_=null!=(p=null==(h=n.options)?void 0:h.streamSkipCacheAboveChars)?p:this.DEFAULT_SKIP_CACHE_CHARS,C=null!=(m=null==(f=n.options)?void 0:f.streamSkipCacheAboveLines)?m:this.DEFAULT_SKIP_CACHE_LINES;let E,M=e.length>=_;if(!M&&void 0!==C&&(E=dn(e),M=E>=C),M){const o=this.core.parse(e,t,n).tokens;return this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",o}if(g&&e.length<this.MAX_CHUNKED_DOC_CHARS){const o=(e,t,n)=>e<t?t:e>n?n:e;void 0===E&&(E=dn(e));let r=v?o(Math.ceil(e.length/k),8e3,32e3):null!=y?y:1e4,l=v?o(Math.ceil(E/k),150,350):null!=w?w:200;x&&!y&&!w&&(e.length<=5e3?(r=16e3,l=250):e.length<=2e4?(r=16e3,l=200):e.length<=5e4?(r=16e3,l=250):e.length<=1e5?(r=1e4,l=200):(r=2e4,l=200));const i=e.length>0&&10===e.charCodeAt(e.length-1),s=Math.ceil(e.length/r);if((e.length>=2*r||E>=2*l)&&i&&s<=this.MAX_CHUNKS_FOR_FALLBACK){const o=Kn(n,e,t,{maxChunkChars:r,maxChunkLines:l,fenceAware:b});return this.cache={src:e,tokens:o,env:t,lineCount:E},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",o}}const D=this.core.parse(e,t,n).tokens;return this.cache={src:e,tokens:D,env:t,lineCount:E},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",D}if(e===S.src)return this.stats.total+=1,this.stats.cacheHits+=1,this.stats.lastMode="cache",S.tokens;const F=null!=(v=null==(g=n.options)?void 0:g.streamOptimizationMinSize)?v:this.MIN_SIZE_FOR_OPTIMIZATION;if(S.src.length<F&&e.length<1.5*F&&!e.startsWith(S.src)){const t=null!=A?A:S.env,o=this.core.parse(e,t,n).tokens;return this.cache={src:e,tokens:o,env:t,lineCount:dn(e)},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",o}const $=this.getAppendedSegment(S.src,e);if($){const t=this.core.parse($,S.env,n),o=null!=(k=S.lineCount)?k:dn(S.src);return o>0&&this.shiftTokenLines(t.tokens,o),S.tokens.push(...t.tokens),S.src=e,S.lineCount=o+dn($),this.stats.total+=1,this.stats.appendHits+=1,this.stats.lastMode="append",S.tokens}const B=null!=A?A:S.env,T=!(null==(y=n.options)||!y.streamChunkedFallback),R=!1!==(null==(w=n.options)?void 0:w.streamChunkAdaptive),I=null!=(b=null==(x=n.options)?void 0:x.streamChunkTargetChunks)?b:8,L=null==(_=n.options)?void 0:_.streamChunkSizeChars,j=null==(C=n.options)?void 0:C.streamChunkSizeLines,z=!1!==(null==(E=n.options)?void 0:E.autoTuneChunks),N=null==(D=null==(M=n.options)?void 0:M.streamChunkFenceAware)||D;let O=S.lineCount;if(T&&e.length<this.MAX_CHUNKED_DOC_CHARS){void 0===O&&(O=dn(e));const t=(e,t,n)=>e<t?t:e>n?n:e;let o=R?t(Math.ceil(e.length/I),8e3,32e3):null!=L?L:1e4,r=R?t(Math.ceil(O/I),150,350):null!=j?j:200;z&&!L&&!j&&(e.length<=5e3?(o=16e3,r=250):e.length<=2e4?(o=16e3,r=200):e.length<=5e4?(o=16e3,r=250):e.length<=1e5?(o=1e4,r=200):(o=2e4,r=200));const l=e.length>0&&10===e.charCodeAt(e.length-1),i=Math.ceil(e.length/o);if((e.length>=2*o||O>=2*r)&&l&&i<=this.MAX_CHUNKS_FOR_FALLBACK){const t=Kn(n,e,B,{maxChunkChars:o,maxChunkLines:r,fenceAware:N});return this.cache={src:e,tokens:t,env:B,lineCount:O},this.stats.total+=1,this.stats.chunkedParses=(this.stats.chunkedParses||0)+1,this.stats.lastMode="chunked",t}}const q=this.core.parse(e,B,n).tokens;return this.cache={src:e,tokens:q,env:B,lineCount:O},this.stats.total+=1,this.stats.fullParses+=1,this.stats.lastMode="full",q}getAppendedSegment(e,t){if(!t.startsWith(e)||!e.endsWith("\n"))return null;const n=t.slice(e.length);if(!n||!n.includes("\n")||!n.endsWith("\n"))return null;let o=0;for(let e=0;e<n.length;e++)10===n.charCodeAt(e)&&o++;if(o<2)return null;const r=n.indexOf("\n"),l=(-1===r?n:n.slice(0,r)).trim();if(0===l.length)return null;if(/^[-=]+$/.test(l)){const t=e.slice(0,-1),n=t.lastIndexOf("\n");if(t.slice(n+1).trim().length>0)return null}return this.endsInsideOpenFence(e)?null:n}endsInsideOpenFence(e){const t=e.length>4e3?e.length-4e3:0,n=e.slice(t).split("\n");let o=null;for(let e=0;e<n.length;e++){const t=n[e];let r=0;for(;r<t.length;){const e=t.charCodeAt(r);if(32!==e&&9!==e)break;r++}const l=t[r];if("`"===l||"~"===l){let e=r;for(;e<t.length&&t[e]===l;)e++;const n=e-r;n>=3&&(o?o.marker===l&&n>=o.length&&(o=null):o={marker:l,length:n})}}return null!==o}peek(){var e,t;return null!=(t=null==(e=this.cache)?void 0:e.tokens)?t:ud}getStats(){return ae({},this.stats)}shiftTokenLines(e,t){if(0===t)return;const n=[...e];for(;n.length>0;){const e=n.pop();if(e.map&&(e.map[0]+=t,e.map[1]+=t),e.children)for(let t=e.children.length-1;t>=0;t--)n.push(e.children[t])}}};const Mi={default:Xu,zero:Yu,commonmark:Zu};function fd(e,t){var n,o,r,l;let i,s={html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100,stream:!1,streamOptimizationMinSize:1e3,streamChunkedFallback:!1,streamChunkSizeChars:1e4,streamChunkSizeLines:200,streamChunkFenceAware:!0,streamChunkAdaptive:!0,streamChunkTargetChunks:8,streamSkipCacheAboveChars:6e5,streamSkipCacheAboveLines:1e4,fullChunkedFallback:!1,fullChunkThresholdChars:2e4,fullChunkThresholdLines:400,fullChunkSizeChars:1e4,fullChunkSizeLines:200,fullChunkFenceAware:!0,fullChunkAdaptive:!0,fullChunkTargetChunks:8,fullChunkMaxChunks:void 0,autoTuneChunks:!0},a="default";t||"string"==typeof e?"string"==typeof e&&(a=e,i=t):(i=e,a="default");const c=Mi[a];if(!c)throw new Error(`Wrong \`markdown-it\` preset "${a}", check name`);if(null!=c&&c.options&&(s=ae(ae({},s),c.options)),i&&(s=ae(ae({},s),i)),"string"==typeof s.quotes){const e=s.quotes;e.length>=4?s.quotes=[e[0],e[1],e[2],e[3]]:s.quotes=["“","”","‘","’"]}const u=new Ku;let d=null;const h=()=>(d||(d=new sd(s)),d);let p=null;const f=()=>(p||(p=new dd(u)),p);let m=null;const g={core:u,block:u.block,inline:u.inline,get linkify(){const e=(m||(m=new Ss),m);return Object.defineProperty(this,"linkify",{value:e,writable:!0,configurable:!0}),e},get renderer(){const e=h();return Object.defineProperty(this,"renderer",{value:e,writable:!0,configurable:!0}),e},options:s,set(e){return this.options=ae(ae({},this.options),e),d&&d.set(e),"boolean"==typeof e.stream&&(this.stream.enabled=e.stream,p&&(p.reset(),p.resetStats())),this},configure(e){var t,n,o,r;const l="string"==typeof e?Mi[e]:e;if(!l)throw new Error("Wrong `markdown-it` preset, can't be empty");if(l.options&&this.set(l.options),l.components){const e=l.components;null!=(t=e.core)&&t.rules&&this.core.ruler.enableOnly(e.core.rules),null!=(n=e.block)&&n.rules&&this.block.ruler.enableOnly(e.block.rules),null!=(o=e.inline)&&o.rules&&this.inline.ruler.enableOnly(e.inline.rules),null!=(r=e.inline2)&&r.rules&&this.inline.ruler2.enableOnly(e.inline2.rules)}return this},enable(e,t){var n,o,r,l;const i=Array.isArray(e)?e:[e],s=[null==(n=this.core)?void 0:n.ruler,null==(o=this.block)?void 0:o.ruler,null==(r=this.inline)?void 0:r.ruler,null==(l=this.inline)?void 0:l.ruler2];let a=0;for(const e of s){if(!e)continue;a+=e.enable(i,!0).length}if(!t&&a<i.length)throw new Error("Rules manager: invalid rule name in list");return this},disable(e,t){var n,o,r,l;const i=Array.isArray(e)?e:[e],s=[null==(n=this.core)?void 0:n.ruler,null==(o=this.block)?void 0:o.ruler,null==(r=this.inline)?void 0:r.ruler,null==(l=this.inline)?void 0:l.ruler2];let a=0;for(const e of s){if(!e)continue;a+=e.disable(i,!0).length}if(!t&&a<i.length)throw new Error("Rules manager: invalid rule name in list");return this},use(e,...t){const n="function"==typeof e?e:e&&"function"==typeof e.default?e.default:void 0;if(!n)throw new TypeError("MarkdownIt.use: plugin must be a function");const o=[this,...t],r=e;return n.apply(r,o),this},render(e,t={}){const n=this.parse(e,t);return h().render(n,this.options,t)},renderInline(e,t={}){const n=this.parseInline(e,t);return h().render(n,this.options,t)},validateLink:Ps,normalizeLink:zs,normalizeLinkText:Hs,utils:Wa,helpers:ae({},pc),parse(e,t={}){var n,o,r,l,i,s,a;if("string"!=typeof e)throw new TypeError("Input data should be a String");if(!this.stream.enabled&&!this.options.fullChunkedFallback)return u.parse(e,t,this).tokens;if(!this.stream.enabled){const c=e.length;if(this.options.fullChunkedFallback){const u=dn(e),d=!1!==this.options.autoTuneChunks,h=this.options.fullChunkSizeChars||this.options.fullChunkSizeLines;if(d&&!h){const o=null==(n=this.options.fullChunkFenceAware)||n;if(c<=5e3)return Kn(this,e,t,{maxChunkChars:32e3,maxChunkLines:150,fenceAware:o,maxChunks:8});if(c<=2e4)return Kn(this,e,t,{maxChunkChars:24e3,maxChunkLines:200,fenceAware:o,maxChunks:12});if(!(c<=1e5)&&c<=2e5)return Kn(this,e,t,{maxChunkChars:2e4,maxChunkLines:150,fenceAware:o,maxChunks:12})}if(c>=(null!=(o=this.options.fullChunkThresholdChars)?o:2e4)||u>=(null!=(r=this.options.fullChunkThresholdLines)?r:400)){const n=(e,t,n)=>e<t?t:e>n?n:e,o=!1!==this.options.fullChunkAdaptive,r=null!=(l=this.options.fullChunkTargetChunks)?l:8,d=n(Math.ceil(c/r),8e3,32e3),h=n(Math.ceil(u/r),150,350),p=o?d:null!=(i=this.options.fullChunkSizeChars)?i:1e4,f=o?h:null!=(s=this.options.fullChunkSizeLines)?s:200,m=o?Math.max(6,Math.min(12,r)):this.options.fullChunkMaxChunks;return Kn(this,e,t,{maxChunkChars:p,maxChunkLines:f,fenceAware:null==(a=this.options.fullChunkFenceAware)||a,maxChunks:m})}}}return u.parse(e,t,this).tokens},parseInline(e,t={}){if("string"!=typeof e)throw new TypeError("Input data should be a String");const n=u.createState(e,t,this);return n.inlineMode=!0,u.process(n),n.tokens}};if(g.stream={enabled:!!s.stream,parse:(e,t)=>g.stream.enabled?f().parse(e,t,g):u.parse(e,null!=t?t:{},g).tokens,reset(){f().reset()},peek:()=>p?p.peek():[],stats:()=>p?p.getStats():{total:0,cacheHits:0,appendHits:0,fullParses:0,resets:0,chunkedParses:0,lastMode:"idle"},resetStats(){p&&p.resetStats()}},"zero"===a&&null!=c&&c.components){const e=c.components;null!=(n=e.core)&&n.rules&&g.core.ruler.enableOnly(e.core.rules),null!=(o=e.block)&&o.rules&&g.block.ruler.enableOnly(e.block.rules),null!=(r=e.inline)&&r.rules&&g.inline.ruler.enableOnly(e.inline.rules),null!=(l=e.inline2)&&l.rules&&g.inline.ruler2.enableOnly(e.inline2.rules)}return g}var hd=fd;let qs;function pd(e){qs=e}function md(){return qs}function gd(e,t,n){const o=(n=n||{}).marker||":",r=o.charCodeAt(0),l=o.length,i=n.validate||function(e){return e.trim().split(" ",2)[0]===t},s=n.render||function(e,n,o,r,l){return 1===e[n].nesting&&e[n].attrJoin("class",t),l.renderToken(e,n,o,r,l)};e.block.ruler.before("fence","container_"+t,(function(e,n,s,a){let c,u=!1,d=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(r!==e.src.charCodeAt(d))return!1;for(c=d+1;c<=h&&o[(c-d)%l]===e.src[c];c++);const p=Math.floor((c-d)/l);if(p<3)return!1;c-=(c-d)%l;const f=e.src.slice(d,c),m=e.src.slice(c,h);if(!i(m,f))return!1;if(a)return!0;let g=n;for(;g++,!(g>=s||(d=e.bMarks[g]+e.tShift[g],h=e.eMarks[g],d<h&&e.sCount[g]<e.blkIndent));)if(r===e.src.charCodeAt(d)&&!(e.sCount[g]-e.blkIndent>=4)){for(c=d+1;c<=h&&o[(c-d)%l]===e.src[c];c++);if(!(Math.floor((c-d)/l)<p||(c-=(c-d)%l,c=e.skipSpaces(c),c<h))){u=!0;break}}const v=e.parentType,k=e.lineMax;e.parentType="container",e.lineMax=g;const y=e.push("container_"+t+"_open","div",1);y.markup=f,y.block=!0,y.info=m,y.map=[n,g],e.md.block.tokenize(e,n+1,g);const w=e.push("container_"+t+"_close","div",-1);return w.markup=e.src.slice(d,c),w.block=!0,e.parentType=v,e.lineMax=k,e.line=g+(u?1:0),!0}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+t+"_open"]=s,e.renderer.rules["container_"+t+"_close"]=s}function vd(e){["admonition","info","warning","error","tip","danger","note","caution"].forEach((t=>{e.use(gd,t,{render:(e,n)=>1===e[n].nesting?`<div class="vmr-container vmr-container-${t}">`:"</div>\n"})})),e.block.ruler.before("fence","vmr_container_fallback",((e,t,n,o)=>{const r=e,l=r.bMarks[t]+r.tShift[t],i=r.eMarks[t],s=r.src.slice(l,i).match(/^:::\s*(\w+)/);if(!s)return!1;if(o)return!0;const a=s[1];let c=t+1,u=!1;for(;c<=n;){const e=r.bMarks[c]+r.tShift[c],t=r.eMarks[c];if(":::"===r.src.slice(e,t).trim()){u=!0;break}c++}if(!u)return!1;r.push("vmr_container_open","div",1).attrSet("class",`vmr-container vmr-container-${a}`);const d=[];for(let e=t+1;e<c;e++){const t=r.bMarks[e]+r.tShift[e],n=r.eMarks[e];d.push(r.src.slice(t,n))}r.push("paragraph_open","p",1);const h=r.push("inline","",0);return h.content=d.join("\n"),h.map=[t+1,c],h.children=[],r.md.inline.parse(h.content,r.md,r.env,h.children),r.push("paragraph_close","p",-1),r.push("vmr_container_close","div",-1),r.line=c+1,!0}))}const wd=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function kd(e){e.core.ruler.push("fix_html_inline_tokens",(e=>{var t,n,o,r,l,i,s,a,c,u,d,h,p,f,m,g,v,k,y;const w=null!=(t=e.tokens)?t:[],x=[];for(let e=0;e<w.length;e++){const t=w[e];if("html_block"!==t.type){if(x.length>0){if("paragraph_open"===t.type||"paragraph_close"===t.type){w.splice(e,1),e--;continue}const n=t.content||"",o=new RegExp(`<\\s*\\/\\s*${x[x.length-1][0]}\\s*>`,"i").test(n);if(n){const[,e]=x[x.length-1],t=w[e];t.content=`${t.content||""}\n${n}`,!1!==t.loading&&(t.loading=!o)}o&&x.pop(),w.splice(e,1),e--}}else{const l=(null!=(r=null==(o=null==(n=t.content)?void 0:n.match(/<([^\s>/]+)/))?void 0:o[1])?r:"").toLowerCase();/<\s*\/\s*[^\s>]+\s*>/.test(t.content||"")?x.length>0&&x[x.length-1][0]===l&&x.pop():x.push([l,e])}}for(let e=0;e<w.length;e++){const t=w[e];if("html_block"===t.type){const e=(null!=(s=null==(i=null==(l=t.content)?void 0:l.match(/<([^\s>/]+)/))?void 0:i[1])?s:"").toLowerCase();if(e.startsWith("!")||e.startsWith("?")){t.loading=!1;continue}if(["br","hr","img","input","link","meta","div","p","ul","li"].includes(e))continue;t.type="inline";const n=(null==(a=t.content)||!a.toLowerCase().includes(`</${e}>`))&&(void 0===t.loading||t.loading);t.children=[{type:"html_block",content:t.content,tag:e,loading:n}];continue}if(!t||"inline"!==t.type)continue;if(2===t.children.length&&"html_inline"===t.children[0].type){const e=null!=(d=null==(u=null==(c=t.children[0].content)?void 0:c.match(/<([^\s>/]+)/))?void 0:u[1])?d:"";["a","span","strong","em","b","i","u"].includes(e)?(t.children[0].loading=!0,t.children[0].tag=e,t.children.push({type:"html_inline",tag:e,loading:!0,content:`</${e}>`})):t.children=[{type:"html_block",loading:!0,tag:e,content:t.children[0].content+t.children[1].content}];continue}if(3===t.children.length&&"html_inline"===t.children[0].type&&"html_inline"===t.children[2].type){const e=null!=(f=null==(p=null==(h=t.children[0].content)?void 0:h.match(/<([^\s>/]+)/))?void 0:p[1])?f:"";if(["a","span","strong","em","b","i","u"].includes(e))continue;t.children=[{type:"html_block",loading:!1,tag:e,content:t.children.map((e=>e.content)).join("")}];continue}if(null==(m=t.content)||!m.startsWith("<")||1!==(null==(g=t.children)?void 0:g.length))continue;const n=String(t.content),o=null!=(y=null==(k=null==(v=n.match(/<([^\s>/]+)/))?void 0:v[1])?void 0:k.toLowerCase())?y:"";if(!o)continue;const r=t;/\/\s*>\s*$/.test(n)||wd.has(o)?r.children=[{type:"html_inline",content:n}]:r.children.length=0}}))}const yd=/^\[([^\]]*)\]\(([^)\s]*)/;function xd(e){e.inline.ruler.before("link","fix_link_inline",((e,t)=>{var n,o;const r=e,l=r.pos;if("["!==r.src[l]||l>0&&"!"===r.src[l-1])return!1;const i=r.src.slice(l),s=yd.exec(i);if(!s)return!1;if(t)return!0;const a=null!=(n=s[1])?n:"",c=null!=(o=s[2])?o:"";if(a.includes("*")||a.includes(":"))return!1;const u=i.indexOf(")"),d=-1!==u;r.push("link_open","a",1).attrs=[["href",c]];return r.push("text","",0).content=a,d?(r.push("link_close","a",-1),r.pos+=u+1):r.pos+=s[0].length,!0}))}function Ut(e){return{type:"text",content:e,raw:e}}function $n(e,t){1===t?e.push({type:"em_open",tag:"em",nesting:1}):2===t?e.push({type:"strong_open",tag:"strong",nesting:1}):3===t&&(e.push({type:"strong_open",tag:"strong",nesting:1}),e.push({type:"em_open",tag:"em",nesting:1}))}function In(e,t){1===t?e.push({type:"em_close",tag:"em",nesting:-1}):2===t?e.push({type:"strong_close",tag:"strong",nesting:-1}):3===t&&(e.push({type:"em_close",tag:"em",nesting:-1}),e.push({type:"strong_close",tag:"strong",nesting:-1}))}function vn(e,t,n){return{type:"link",loading:n,href:t,title:"",text:e,children:[{type:"text",content:e,raw:e}],raw:`[${e}](${t})`}}function bd(e){e.core.ruler.after("inline","fix_link_tokens",(e=>{var t;const n=null!=(t=e.tokens)?t:[];for(let e=0;e<n.length;e++){const t=n[e];if(t&&"inline"===t.type&&Array.isArray(t.children))try{t.children=_d(t.children)}catch(e){console.error("[applyFixLinkTokens] failed to fix inline children",e)}}}))}function _d(e){var t,n,o,r,l,i,s,a,c,u,d,h,p,f,m,g,v,k,y,w,x,b,_,C,E,M,D,A,S,F,$,B,T,R,I,L,j,z,N,O,q,V,P,H,W,X,K,U,Z,Y,G,J,Q,ee,te,ne,oe,re,le,ie,se,ae,ce,ue,de,he,pe,fe,me,ge,ve,ke,ye,we,xe,be,_e,Ce,Ee,Me,De,Ae,Se,Fe,$e,Be,Te,Re,Ie,Le,je,ze,Ne,Oe,qe,Ve,Pe,He,We,Xe,Ke,Ue,Ze,Ye,Ge,Je,Qe,et;if(e.length<4)return e;for(let tt=0;tt<=e.length-1;tt++){tt<0&&(tt=0);const nt=e[tt];if(!nt)break;if("em_open"===(null==nt?void 0:nt.type)&&"text"===(null==(t=e[tt-1])?void 0:t.type)&&null!=(n=e[tt-1].content)&&n.endsWith("*")){const t=(null==(o=e[tt-1].content)?void 0:o.replace(/(\*+)$/,""))||"";e[tt-1].content=t,nt.type="strong_open",nt.tag="strong",nt.markup="**";for(let t=tt+1;t<e.length;t++)if("em_close"===(null==(r=e[t])?void 0:r.type)){e[t].type="strong_close",e[t].tag="strong",e[t].markup="**";break}}else if("text"===(null==nt?void 0:nt.type)&&null!=(l=nt.content)&&l.endsWith("(")&&"link_open"===(null==(i=e[tt+1])?void 0:i.type)){const t=nt.content.match(/\[([^\]]+)\]/);if(t){let n=nt.content.slice(0,t.index);const o=n.match(/(\*+)$/),r=[];if(o){n=n.slice(0,o.index),n&&r.push(Ut(n));const l=t[1],i=o[1].length;$n(r,i);let m=(null==(s=e[tt+2])?void 0:s.content)||"";if("text"===(null==(a=e[tt+4])?void 0:a.type)&&!(null!=(c=e[tt+4].content)&&c.startsWith(")"))&&(m+=(null==(u=e[tt+4])?void 0:u.content)||"",e[tt+4].content=""),r.push(vn(l,m,!(null!=(h=null==(d=e[tt+4])?void 0:d.content)&&h.startsWith(")")))),In(r,i),"text"===(null==(p=e[tt+4])?void 0:p.type)){const t=null==(f=e[tt+4].content)?void 0:f.replace(/^\)\**/,"");t&&r.push(Ut(t)),e.splice(tt,5,...r)}else e.splice(tt,4,...r)}else{n&&r.push(Ut(n));let o=t[1];const l=o.match(/^\*+/);if(l){const t=l[0].length;o=o.replace(/^\*+/,"").replace(/\*+$/,"");let n=(null==(m=e[tt+2])?void 0:m.content)||"";if("text"===(null==(g=e[tt+4])?void 0:g.type)&&!(null!=(v=e[tt+4].content)&&v.startsWith(")"))&&(n+=(null==(k=e[tt+4])?void 0:k.content)||"",e[tt+4].content=""),$n(r,t),r.push(vn(o,n,!(null!=(w=null==(y=e[tt+4])?void 0:y.content)&&w.startsWith(")")))),In(r,t),"text"===(null==(x=e[tt+4])?void 0:x.type)){const t=null==(b=e[tt+4].content)?void 0:b.replace(/^\)/,"");t&&r.push(Ut(t)),e.splice(tt,5,...r)}else e.splice(tt,4,...r);0===tt?tt=r.length-1:tt-=r.length-1;continue}let i=(null==(_=e[tt+2])?void 0:_.content)||"";if("text"===(null==(C=e[tt+4])?void 0:C.type)&&!(null!=(E=e[tt+4].content)&&E.startsWith(")"))&&(i+=(null==(M=e[tt+4])?void 0:M.content)||"",e[tt+4].content=""),r.push(vn(o,i,!(null!=(A=null==(D=e[tt+4])?void 0:D.content)&&A.startsWith(")")))),"text"===(null==(S=e[tt+4])?void 0:S.type)){const t=null==(F=e[tt+4].content)?void 0:F.replace(/^\)/,"");t&&r.push(Ut(t)),e.splice(tt,5,...r)}else e.splice(tt,4,...r)}tt-=r.length-1;continue}}else if("link_open"===nt.type&&"linkify"===nt.markup&&"text"===(null==($=e[tt-1])?void 0:$.type)&&null!=(B=e[tt-1].content)&&B.endsWith("(")){if("link_close"===(null==(T=e[tt-2])?void 0:T.type)){const t=[],n=e[tt-3].content||"";let o=(null==(I=null==(R=nt.attrs)?void 0:R.find((e=>"href"===e[0])))?void 0:I[1])||"";if("text"===(null==(L=e[tt+3])?void 0:L.type)){const r=(null!=(z=null==(j=e[tt+3])?void 0:j.content)?z:"").indexOf(")"),l=-1===r;-1===r&&(o+=(null==(O=null==(N=e[tt+3])?void 0:N.content)?void 0:O.slice(0,r))||"",e[tt+3].content=""),t.push(vn(n,o,l));const i=null==(q=e[tt+3].content)?void 0:q.replace(/^\)\**/,"");i&&t.push(Ut(i)),e.splice(tt-4,8,...t)}else t.push({type:"link",loading:!0,href:o,title:"",text:n,children:[{type:"text",content:o,raw:o}],raw:`[${n}](${o})`}),e.splice(tt-4,7,...t);continue}if("]("===e[tt-1].content&&"text"===(null==(V=e[tt-3])?void 0:V.type)&&null!=(P=e[tt-3].content)&&P.endsWith(")"))if("strong_open"===(null==(H=e[tt-2])?void 0:H.type)){const[t,n]=(null==(W=e[tt-3].content)?void 0:W.split("[**"))||[];e[tt+1].content=n||"",e[tt-3].content=t||"",e[tt-1].content=""}else if("em_open"===(null==(X=e[tt-2])?void 0:X.type)){const[t,n]=(null==(K=e[tt-3].content)?void 0:K.split("[*"))||[];e[tt+1].content=n||"",e[tt-3].content=t||"",e[tt-1].content=""}else{const[t,n]=(null==(U=e[tt-3].content)?void 0:U.split("["))||[];e[tt+1].content=n||"",e[tt-3].content=t||"",e[tt-1].content=""}}if("link_close"!==nt.type||-1!==nt.nesting||"text"!==(null==(Z=e[tt+1])?void 0:Z.type)||"text"!==(null==(Y=e[tt-1])?void 0:Y.type))if(null!=(ce=nt.content)&&ce.startsWith("](")&&null!=(ue=e[tt-1].markup)&&ue.includes("*")&&"text"===(null==(de=e[tt-4])?void 0:de.type)&&null!=(he=e[tt-4].content)&&he.endsWith("[")){const t=e[tt-1].markup.length,n=[],o=e[tt-4].content.slice(0,e[tt-4].content.length-t);o&&n.push(Ut(o)),$n(n,t);const r=e[tt-2].content||"";let l=nt.content.slice(2),i=!0;if("text"===(null==(pe=e[tt+1])?void 0:pe.type)){const t=(null!=(me=null==(fe=e[tt+1])?void 0:fe.content)?me:"").indexOf(")");i=-1===t,-1===t&&(l+=(null==(ve=null==(ge=e[tt+1])?void 0:ge.content)?void 0:ve.slice(0,t))||"",e[tt+1].content="")}if(n.push(vn(r,l,i)),In(n,t),"text"===(null==(ke=e[tt+1])?void 0:ke.type)){const t=null==(ye=e[tt+1].content)?void 0:ye.replace(/^\)\**/,"");t&&n.push(Ut(t)),e.splice(tt-4,8,...n)}else"link_open"===(null==(we=e[tt+1])?void 0:we.type)?e.splice(tt-4,10,...n):e.splice(tt-4,7,...n);tt-=n.length-1}else if(null!=(xe=nt.content)&&xe.startsWith("](")&&"strong_close"===e[tt-1].type&&"text"===(null==(be=e[tt-4])?void 0:be.type)&&null!=(Ce=null==(_e=e[tt-4])?void 0:_e.content)&&Ce.includes("**[")){tt++;const t=[],n=e[tt-4].content.split("**[")[0];n&&t.push(Ut(n)),$n(t,2);const o=e[tt-2].content||"";let r=nt.content.slice(2),l=!0;if("text"===(null==(Ee=e[tt+1])?void 0:Ee.type)){const t=(null!=(De=null==(Me=e[tt+1])?void 0:Me.content)?De:"").indexOf(")");l=-1===t,-1===t&&(r+=(null==(Se=null==(Ae=e[tt+1])?void 0:Ae.content)?void 0:Se.slice(0,t))||"",e[tt+1].content="")}if(t.push(vn(o,r,l)),In(t,2),"text"===(null==(Fe=e[tt+1])?void 0:Fe.type)){const n=null==($e=e[tt+1].content)?void 0:$e.replace(/^\)\**/,"");n&&t.push(Ut(n)),e.splice(tt-4,8,...t)}else"link_open"===(null==(Be=e[tt+1])?void 0:Be.type)?e.splice(tt-4,10,...t):e.splice(tt-4,7,...t);tt-=t.length-1}else{if("strong_close"===nt.type&&"text"===(null==(Te=e[tt+1])?void 0:Te.type)&&null!=(Re=e[tt+1].content)&&Re.includes("](")&&"text"===e[tt-1].type&&/\[.*$/.test(e[tt-1].content||"")){const t=[],[n,o]=(null==(Ie=e[tt-1].content)?void 0:Ie.split("["))||["",""];n&&t.push(Ut(n)),$n(t,2);let[r,l]=e[tt+1].content.split("](");r=o+r;let i=4;if("link_open"===(null==(Le=e[tt+2])?void 0:Le.type)){const t=null==(ze=null==(je=e[tt+2].attrs)?void 0:je.find((e=>"href"===e[0])))?void 0:ze[1];"text"===(null==(Ne=e[tt+5])?void 0:Ne.type)&&"."===e[tt+5].content?(l=(t||l)+e[tt+5].content,e[tt+5].content=""):l=t||l,i+=3}let s=!0;if(-1===nt.nesting&&(r=r.replace(/\*+$/,"")),"text"===(null==(Oe=e[tt+2])?void 0:Oe.type)){const t=(null!=(Ve=null==(qe=e[tt+2])?void 0:qe.content)?Ve:"").indexOf(")");s=-1===t,-1===t&&(l+=(null==(He=null==(Pe=e[tt+2])?void 0:Pe.content)?void 0:He.slice(0,t))||"",e[tt+2].content="")}t.push(vn(r,l,s)),In(t,2),e.splice(tt-2,i,...t)}if("text"===nt.type&&/\*+\[[^\]]*$/.test(nt.content||"")&&"strong_open"===(null==(We=e[tt+1])?void 0:We.type)&&"text"===(null==(Xe=e[tt+2])?void 0:Xe.type)&&"]("===e[tt+2].content&&"link_open"===(null==(Ke=e[tt+3])?void 0:Ke.type)&&"link_close"===(null==(Ue=e[tt+5])?void 0:Ue.type)&&"text"===(null==(Ze=e[tt+6])?void 0:Ze.type)&&")"===e[tt+6].content&&"strong_close"===(null==(Ye=e[tt+7])?void 0:Ye.type)){const t=(nt.content||"").match(/^(\*+)\[(.*)$/);if(t){const n=(t[2]||"")+t[1];let o=(null==(Qe=null==(Je=null==(Ge=e[tt+3])?void 0:Ge.attrs)?void 0:Je.find((e=>"href"===e[0])))?void 0:Qe[1])||"";!o&&"text"===(null==(et=e[tt+4])?void 0:et.type)&&(o=e[tt+4].content||"");const r=[];$n(r,2),r.push(vn(n,o,!1)),In(r,2),e.splice(tt,9,...r),tt-=r.length-1;continue}}}else{let t=!0;const n=e[tt-1].content||"";let o=(null==(J=null==(G=e[tt-2].attrs)?void 0:G[0])?void 0:J[1])||"",r=3,l=2;const i=((null==(Q=e[tt-3])?void 0:Q.content)||"").match(/^(\*+)$/),s=[];if(i){l+=1;$n(s,i[1].length)}if((""===nt.markup||"text"===e[tt+1].type&&("."===e[tt+1].content||"?"===e[tt+1].content))&&(t=!1),"linkify"!==nt.markup||"text"!==(null==(ee=e[tt+1])?void 0:ee.type)||null!=(ne=null==(te=e[tt+1])?void 0:te.content)&&ne.startsWith(" ")){if("text"===e[tt+1].type&&null!=(ae=null==(se=e[tt+1])?void 0:se.content)&&ae.startsWith("](")){r+=1;for(let n=tt+1;n<e.length;n++){const o=i?i[1].length:e[tt-3].markup.length,l=e[n];if(1===o&&"em_close"===l.type){t=!1;break}if(2===o&&"strong_close"===l.type){t=!1;break}if(3===o&&("em_close"===l.type||"strong_close"===l.type)){t=!1;break}r+=1}}}else{const n=(null!=(re=null==(oe=e[tt+1])?void 0:oe.content)?re:"").indexOf(")");-1===n?(o+=(null==(ie=null==(le=e[tt+1])?void 0:le.content)?void 0:ie.slice(0,n))||"",e[tt+1].content=""):t=!1,r+=1}if(s.push({type:"link",loading:t,href:o,title:"",text:n,children:[{type:"text",content:n,raw:n}],raw:`[${n}](${o})`}),i){In(s,i[1].length)}e.splice(tt-l,r,...s),tt-=s.length-1}}return e}function Cd(e){e.core.ruler.after("inline","fix_list_item_tokens",(e=>{var t;const n=null!=(t=e.tokens)?t:[];for(let e=0;e<n.length;e++){const t=n[e];if(t&&"inline"===t.type&&Array.isArray(t.children))try{t.children=Ed(t.children)}catch(e){console.error("[applyFixListItem] failed to fix inline children",e)}}}))}function Ed(e){var t,n;const o=e[e.length-1],r=String(null!=(t=null==o?void 0:o.content)?t:"");return"text"===(null==o?void 0:o.type)&&/^\s*\d+\.\s*$/.test(r)&&"br"===(null==(n=e[e.length-2])?void 0:n.tag)&&e.splice(e.length-1,1),e}function Md(e){e.core.ruler.after("inline","fix_strong_tokens",(e=>{var t;const n=null!=(t=e.tokens)?t:[];for(let e=0;e<n.length;e++){const t=n[e];if(t&&"inline"===t.type&&Array.isArray(t.children))try{t.children=Sd(t.children)}catch(e){console.error("[applyFixStrongTokens] failed to fix inline children",e)}}}))}function Sd(e){var t,n,o,r,l,i;const s=[...e];if(e.length<4)return s;const a=e.length-4,c=e[a];if(!c)return s;const u=e[a+1],d=String(null!=(t=c.content)?t:"");if("link_open"===c.type&&"em_open"===(null==(n=e[a-1])?void 0:n.type)&&"text"===(null==(o=e[a-2])?void 0:o.type)&&null!=(r=e[a-2].content)&&r.endsWith("*")){const t=String(null!=(l=e[a-2].content)?l:"").slice(0,-1),n=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null},e[a],e[a+1],e[a+2],{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null}];t&&n.unshift({type:"text",content:t,raw:t}),s.splice(a-2,6,...n)}else if("text"===c.type&&d.endsWith("*")&&"em_open"===u.type){const t=e[a+2],n="text"===(null==t?void 0:t.type)?4:3,o=[{type:"strong_open",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null},{type:"text",content:"text"===(null==t?void 0:t.type)?String(null!=(i=t.content)?i:""):""},{type:"strong_close",tag:"strong",attrs:null,map:null,children:null,content:"",markup:"**",info:"",meta:null}],r=d.slice(0,-1);return r&&o.unshift({type:"text",content:r,raw:r}),s.splice(a,n,...o),s}return s}function Ad(e){e.core.ruler.after("block","fix_table_tokens",(e=>{var t;const n=e;try{const e=Dd(null!=(t=n.tokens)?t:[]);Array.isArray(e)&&(n.tokens=e)}catch(e){console.error("[applyFixTableTokens] failed to fix table tokens",e)}}))}function Si(){return[{type:"table_open",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,loading:!0,meta:null},{type:"thead_open",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"tr_open",tag:"tr",attrs:null,block:!0,level:2,children:null}]}function Ai(){return[{type:"tr_close",tag:"tr",attrs:null,block:!0,level:2,children:null},{type:"thead_close",tag:"thead",attrs:null,block:!0,level:1,children:null},{type:"table_close",tag:"table",attrs:null,map:null,children:null,content:"",markup:"",info:"",level:0,meta:null}]}function Di(e){return[{type:"th_open",tag:"th",attrs:null,block:!0,level:3,children:null},{type:"inline",tag:"",children:[{tag:"",type:"text",block:!1,content:e,children:null}],content:e,level:4,attrs:null,block:!0},{type:"th_close",tag:"th",attrs:null,block:!0,level:3,children:null}]}function Dd(e){var t,n,o,r;const l=[...e];if(e.length<3)return l;const i=e.length-2,s=e[i];if("inline"===s.type){const e=String(null!=(t=s.content)?t:""),a=String(null!=(r=null==(o=null==(n=s.children)?void 0:n[0])?void 0:o.content)?r:"");if(/^\|(?:[^|\n]+\|?)+/.test(e)){const e=a.slice(1).split("|").map((e=>e.trim())).filter(Boolean).flatMap((e=>Di(e))),t=[...Si(),...e,...Ai()];l.splice(i-1,3,...t)}else if(/^\|(?:[^|\n]+\|)+\n\|:?-/.test(e)){const e=a.slice(1,-1).split("|").map((e=>e.trim())).flatMap((e=>Di(e))),t=[...Si(),...e,...Ai()];l.splice(i-1,3,...t)}else/^\|(?:[^|\n:]+\|)+\n\|:?$/.test(e)&&(s.content=e.slice(0,-2),s.children.splice(2,1))}return l}function Td(e,t,n,o){const r=e.length;if("$$"===n&&"$$"===o){let n=t;for(;n<r-1;){if("$"===e[n]&&"$"===e[n+1]){let t=n-1,o=0;for(;t>=0&&"\\"===e[t];)o++,t--;if(o%2==0)return n}n++}return-1}const l=n[n.length-1],i=o;let s=0,a=t;for(;a<r;){if(e.slice(a,a+i.length)===i){let t=a-1,n=0;for(;t>=0&&"\\"===e[t];)n++,t--;if(n%2==0){if(0===s)return a;s--,a+=i.length;continue}}const t=e[a];"\\"!==t?(t===l?s++:t===i[i.length-1]&&s>0&&s--,a++):a+=2}return-1}var $d=Td;const Id=["mathbf","boldsymbol","mathbb","mathcal","mathfrak","mathrm","mathit","mathsf","vec","hat","bar","tilde","overline","underline","mathscr","mathnormal","operatorname","mathbf*"],jr=Id.map((e=>e.replace(/[.*+?^${}()|[\\]"\]/g,"\\$&"))).join("|"),Fd=/\\[a-z]+/i,Ws="(?:\\\\|\\u0008)",Bd=new RegExp(`${Ws}(?:${jr})\\s*\\{[^}]+\\}`,"i"),Rd=new RegExp(`(?:${Ws})?(?:${jr})s*{`,"i"),Ld=/\\(?:text|frac|left|right|times)/,Nd=new RegExp("(?<!\\+)\\+(?!\\+)|[=\\-*/^<>]|\\\\times|\\\\pm|\\\\cdot|\\\\le|\\\\ge|\\\\neq"),Od=/\b[A-Z]{2,}-[A-Z]{2,}\b/i,Pd=/[A-Z]+\s*\([^)]+\)/i,zd=/\b(?:sin|cos|tan|log|ln|exp|sqrt|frac|sum|lim|int|prod)\b/,Hd=/\b\d{4}\/\d{1,2}\/\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?\b/;function Ti(e){if(!e)return!1;const t=e.replace(/\u0008/g,"\\b"),n=t.trim();if(Hd.test(n)||n.includes("**"))return!1;if(n.length>2e3)return!0;if(/[./]\s*\D|\D\s*[./]/.test(e))return!1;const o=Fd.test(t),r=Bd.test(t),l=Rd.test(t),i=Ld.test(t),s=/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)_(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t)||/(?:^|[^\w\\])(?:[A-Z]|\\[A-Z]+)\^(?:\{[^}]+\}|[A-Z0-9\\])/i.test(t),a=Nd.test(t)&&!Od.test(t),c=Pd.test(t),u=zd.test(t),d=/^\([a-z]\)$/i.test(n)||/^[a-z]$/i.test(n),h=/^(?:[A-Z][a-z]?(?:_\{?\d+\}?|\^\{?\d+\}?)?)+$/.test(n);return o||r||l||i||s||a||c||u||d||h}const Vs=["ldots","cdots","quad","in","end","infty","perp","mid","operatorname","to","rightarrow","leftarrow","math","mathrm","mathbf","mathit","mathbb","mathcal","mathfrak","alpha","beta","gamma","delta","epsilon","lambda","sum","prod","int","sqrt","fbox","boxed","color","rule","edef","fcolorbox","hline","hdashline","cdot","times","pm","le","ge","neq","sin","cos","tan","log","ln","exp","lim","frac","text","left","right"],Us=Vs.slice().sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&"))).join("|"),Ks="[\t\r\b\f\v]",jd=/span\{([^}]+)\}/,qd=/\\operatorname\{span\}\{((?:[^{}]|\{[^}]*\})+)\}/,Wd=/(^|[^\\])\\\r?\n/g,Vd=/(^|[^\\])\\$/g,Ud=new RegExp(`${Ks}|(?<!\\\\|\\w)(${Us})\\b`,"g"),$i=new Map,Ii=new Map;function Kd(e){if(!e)return Ud;const t=[...e];t.sort(((e,t)=>t.length-e.length));const n=t.join(""),o=$i.get(n);if(o)return o;const r=`(?:${t.map((e=>e.replace(/[.*+?^${}()|[\\]\\"\]/g,"\\$&"))).join("|")})`,l=new RegExp(`${Ks}|(?<!\\\\|\\w)(${r})\\b`,"g");return $i.set(n,l),l}function Zd(e,t){const n=e?[]:[...null!=t?t:[]];e||n.sort(((e,t)=>t.length-e.length));const o=e?"__default__":n.join(""),r=Ii.get(o);if(r)return r;const l=e?[jr,Us].filter(Boolean).join("|"):[n.map((e=>e.replace(/[.*+?^${}()|[\\]\\\]/g,"\\$&"))).join("|"),jr].filter(Boolean).join("|"),i=new RegExp(`(^|[^\\\\\\w])(${l})\\s*\\{`,"g");return Ii.set(o,i),i}const Fi={"\t":"t","\r":"r","\b":"b","\f":"f","\v":"v"};function Bi(e){const t=/(^|[^\\])(__|\*\*)/g;let n=0;for(;null!==t.exec(e);)n++;return n}function Un(e,t){var n,o;const r=null!=(n=null==t?void 0:t.commands)?n:Vs,l=null==(o=null==t?void 0:t.escapeExclamation)||o,i=null==(null==t?void 0:t.commands),s=Kd(i?void 0:r);let a=e.replace(s,((e,t)=>void 0!==Fi[e]?`\\${Fi[e]}`:t&&r.includes(t)?`\\${t}`:e));l&&(a=a.replace(/(^|[^\\])!/g,"$1\\!"));let c=a;const u=Zd(i,i?void 0:r);return c=c.replace(u,((e,t,n)=>`${t}\\${n}{`)),c=c.replace(jd,"span\\{$1\\}").replace(qd,"\\operatorname{span}\\{$1\\}"),c=c.replace(Wd,"$1\\\\\n"),c=c.replace(Vd,"$1\\\\"),c}function Xd(e,t){e.inline.ruler.before("escape","math",((e,n)=>{const o=e,r=!(null==t||!t.strictDelimiters);if(/^\*[^*]+/.test(o.src))return!1;const l=[["$","$"],["\\(","\\)"]];let i=0,s=0;for(const[e,a]of l){const l=o.src;let c=!1;const u=e=>{if(("undefined"===e||null==e)&&(e=""),"\\"===e)return o.pos=o.pos+e.length,void(i=o.pos);if("\\)"===e||"\\("===e){const t=o.push("text_special","",0);return t.content="\\)"===e?")":"(",t.markup=e,o.pos=o.pos+e.length,void(i=o.pos)}if(!e)return;o.push("text","",0).content=e,o.pos=o.pos+e.length,i=o.pos};for(;!(i>=l.length);){const d=l.indexOf(e,i);if(-1===d)break;if(d>0){let e=d-1;for(;e>=0&&" "===l[e];)e--;if(e>=0&&"]"===l[e])return!1}const h=$d(l,d+e.length,e,a);if(-1===h){const p=l.slice(d+e.length);if(p.includes(e)){i=l.indexOf(e,d+e.length);continue}if(-1===h){if(!r&&Ti(p)&&!p.includes("`")){if(i=d+e.length,c=!0,!n){o.pending="";const n=Bi(s?l.slice(s,i):l.slice(0,i))%2==1;if(s)u(l.slice(s,i));else{let t=l.slice(0,i);t.endsWith(e)&&(t=t.slice(0,t.length-e.length)),u(t)}if(n){const n=o.push("strong_open","",0);n.markup=l.slice(0,d+2);const r=o.push("math_inline","math",0);r.content=Un(p,t),r.markup="$$"===e?"$$":"\\("===e?"\\(\\)":"$"===e?"$":"()",r.raw=`${e}${p}${a}`,r.loading=!0,n.content=p,o.push("strong_close","",0)}else{const n=o.push("math_inline","math",0);n.content=Un(p,t),n.markup="$$"===e?"$$":"\\("===e?"\\(\\)":"$"===e?"$":"()",n.raw=`${e}${p}${a}`,n.loading=!0}o.pos=l.length}i=l.length,s=i}break}}const p=l.slice(d+e.length,h),f=p.includes("`");if(r?f:f||"$"!==e&&!Ti(p)){i=h+a.length;const e=l.slice(o.pos,i);o.pending||u(e)}else{if(c=!0,!n){const n=l.slice(0,d);let r=l.slice(0,i)?l.slice(s,d):n;const c=Bi(r)%2==1;if(d!==o.pos&&c&&(r=o.pending+l.slice(o.pos,d)),o.pending!==r)if(o.pending="",c){const e=r.match(/(\*+)/),t=r.slice(e.index+e[0].length);u(r.slice(0,e.index));o.push("strong_open","",0).markup=e[0];o.push("text","",0).content=t,o.push("strong_close","",0)}else u(r);if(c){o.push("strong_open","",0).markup="**";const n=o.push("math_inline","math",0);n.content=Un(p,t),n.markup="$$"===e?"$$":"\\("===e?"\\(\\)":"$"===e?"$":"()",n.raw=`${e}${p}${a}`,n.loading=!1;const r=l.slice(h+a.length),c=r.startsWith("*");if(c&&o.push("strong_close","",0),r){o.push("text","",0).content=(null==r?"":String(r)).replace(/^\*+/,"")}c||o.push("strong_close","",0),o.pos=l.length,i=l.length,s=i;continue}{const n=o.push("math_inline","math",0);n.content=Un(p,t),n.markup="$$"===e?"$$":"\\("===e?"\\(\\)":"$"===e?"$":"()",n.raw=`${e}${p}${a}`,n.loading=!1}}i=h+a.length,s=i,o.pos=i}}if(c)return n?o.pos=i:(i<l.length&&u(l.slice(i)),o.pos=l.length),!0}return!1})),e.block.ruler.before("paragraph","math_block",((e,n,o,r)=>{const l=e,i=null==t?void 0:t.strictDelimiters,s=i?[["\\[","\\]"],["$$","$$"]]:[["\\[","\\]"],["[","]"],["$$","$$"]],a=l.bMarks[n]+l.tShift[n],c=l.src.slice(a,l.eMarks[n]).trim();let u=!1,d="",h="";for(const[e,t]of s)if(c.startsWith(e)){if(!e.includes("[")){u=!0,d=e,h=t;break}if("["===c.replace("\\","")){if(n+1<o){u=!0,d=e,h=t;break}continue}}if(!u)return!1;if(r)return!0;if(c.includes(h)&&c.indexOf(h)>d.length){const e=c.indexOf(d),t=c.indexOf(h,e+d.length),o=c.slice(e+d.length,t),r=l.push("math_block","math",0);return r.content=Un(o),r.markup="$$"===d?"$$":"["===d?"[]":"\\[\\]",r.map=[n,n+1],r.raw=`${d}${o}${h}`,r.block=!0,r.loading=!1,l.line=n+1,!0}let p=n,f="",m=!1;const g=c===d?"":c.slice(d.length);if(g.includes(h)){const e=g.indexOf(h);f=g.slice(0,e),m=!0,p=n}else for(g&&(f=g),p=n+1;p<o;p++){const e=l.bMarks[p]+l.tShift[p],t=l.eMarks[p],n=l.src.slice(e-1,t);if(n.trim()===h){m=!0;break}if(n.includes(h)){m=!0;const e=n.indexOf(h);f+=(f?"\n":"")+n.slice(0,e);break}f+=(f?"\n":"")+n}if(i&&!m)return!1;const v=l.push("math_block","math",0);return v.content=Un(f),v.markup="$$"===d?"$$":"["===d?"[]":"\\[\\]",v.raw=`${d}${f}${f.startsWith("\n")?"\n":""}${h}`,v.map=[n,p+1],v.block=!0,v.loading=!m,l.line=p+1,!0}),{alt:["paragraph","reference","blockquote","list"]})}function Yd(e){const t=e.renderer.rules.image||function(e,t,n,o,r){const l=e,i=r;return i.renderToken?i.renderToken(l,t,n):""};e.renderer.rules.image=(e,n,o,r,l)=>{var i,s;const a=e;return null==(s=(i=a[n]).attrSet)||s.call(i,"loading","lazy"),t(a,n,o,r,l)},e.renderer.rules.fence=e.renderer.rules.fence||((t,n)=>{var o,r;const l=t[n],i=String(null!=(o=l.info)?o:"").trim();return`<pre class="${i?`language-${e.utils.escapeHtml(i.split(/\s+/g)[0])}`:""}"><code>${e.utils.escapeHtml(String(null!=(r=l.content)?r:""))}</code></pre>`})}function Gd(e={}){var t,n,o,r,l;const i=new hd(ae({html:!0,linkify:!0,typographer:!0,stream:!0},null!=(t=e.markdownItOptions)?t:{}));return(null==(n=e.enableMath)||n)&&Xd(i,ae(ae({},null!=(o=md())?o:{}),null!=(r=e.mathOptions)?r:{})),(null==(l=e.enableContainers)||l)&&vd(i),xd(i),bd(i),Md(i),Cd(i),Ad(i),Yd(i),kd(i),i}function Jd(e){var t;const n=null!=(t=e.meta)?t:{};return{type:"checkbox",checked:!0===n.checked,raw:n.checked?"[x]":"[ ]"}}function Qd(e){const t=e,n=t.attrGet?t.attrGet("checked"):void 0,o=""===n||"true"===n;return{type:"checkbox_input",checked:o,raw:o?"[x]":"[ ]"}}function ef(e){var t,n;const o=String(null!=(t=e.content)?t:"");return{type:"emoji",name:o,markup:String(null!=(n=e.markup)?n:""),raw:`:${o}:`}}function Tr(e,t,n){var o,r,l;const i=[];let s="",a=t+1;const c=[];for(;a<e.length&&"em_close"!==e[a].type;)s+=String(null!=(l=null!=(r=e[a].content)?r:null==(o=e[a])?void 0:o.text)?l:""),c.push(e[a]),a++;return i.push(...et(c,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong})),{node:{type:"emphasis",children:i,raw:`*${s}*`},nextIndex:a<e.length?a+1:e.length}}const Ri=/\r?\n[ \t]*`+\s*$/,tf=["diff ","index ","--- ","+++ ","@@ "],nf=/\r?\n/;function rf(e){const t=[],n=[];for(const o of e.split(nf)){const e=o;tf.some((t=>e.startsWith(t)))||(e.length>=2&&"-"===e[0]&&" "===e[1]?t.push(` ${e.slice(1)}`):e.length>=2&&"+"===e[0]&&" "===e[1]?n.push(` ${e.slice(1)}`):(t.push(e),n.push(e)))}return{original:t.join("\n"),updated:n.join("\n")}}function yr(e){var t,n,o;const r=Array.isArray(e.map)&&2===e.map.length,l=null!=(t=e.meta)?t:{},i="boolean"==typeof l.closed?l.closed:void 0,s=String(null!=(n=e.info)?n:""),a=s.startsWith("diff"),c=a?(()=>{var e;const t=s,n=t.indexOf(" ");return-1===n?"":String(null!=(e=t.slice(n+1))?e:"")})():s;let u=String(null!=(o=e.content)?o:"");if(Ri.test(u)&&(u=u.replace(Ri,"")),a){const{original:e,updated:t}=rf(u);return{type:"code_block",language:c,code:String(null!=t?t:""),raw:String(null!=u?u:""),diff:a,loading:!0!==i&&(!1===i||!r),originalCode:e,updatedCode:t}}return{type:"code_block",language:c,code:String(null!=u?u:""),raw:String(null!=u?u:""),diff:a,loading:!0!==i&&(!1===i||!r)}}function of(e){var t,n,o;const r=null!=(t=e.meta)?t:{};return{type:"footnote_reference",id:String(null!=(n=r.label)?n:""),raw:`[^${String(null!=(o=r.label)?o:"")}]`}}function sf(){return{type:"hardbreak",raw:"\\\n"}}function lf(e,t,n){var o;const r=[];let l="",i=t+1;const s=[];for(;i<e.length&&"mark_close"!==e[i].type;)l+=String(null!=(o=e[i].content)?o:""),s.push(e[i]),i++;return r.push(...et(s,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong})),{node:{type:"highlight",children:r,raw:`==${l}==`},nextIndex:i<e.length?i+1:e.length}}function af(e,t,n){var o,r,l;let i=String(null!=(o=e.content)?o:"").trim();const s=t[n+1],a=t[n+2],c=i.match(/^<\s*([\w-]+)/),u=c?c[1].toLowerCase():"";if("a"===u){let e=!1;if(s&&("text"!==(null==s?void 0:s.type)||a&&"html_inline"===a.type)&&s||(e=!0),"text"===(null==s?void 0:s.type)&&("html_inline"===(null==a?void 0:a.type)||!a)){const t=i.match(/href\s*=\s*"([^"]+)"|href\s*=\s*'([^']+)'|href\s*=\s*([^\s>]+)/i),o=t?t[1]||t[2]||t[3]:"";let c=n+1;"text"===s.type&&(i=null!=(l=null==(r=s.content)?void 0:r.replace(/<[^>]*$/,""))?l:"",c=n+2),"html_inline"===(null==a?void 0:a.type)&&"text"===s.type&&(c=n+3);const u=i||o||"";return[{type:"link",href:String(null!=o?o:""),title:null,text:i,children:[{type:"text",content:u,raw:u}],loading:e,raw:i},c]}}if("p"===u||"div"===u){const e=function(e){const t=e.match(/>([\s\S]*?)<\s*\/\s*[\w-]+>/);return t?t[1]:""}(i)||"";return[{type:"paragraph",children:[{type:"text",content:e,raw:e}],raw:i},n+1]}return[{type:"inline_code",code:i,raw:i},n+1]}function Li(e,t=!1){var n,o,r,l,i,s,a,c,u;let d=null!=(n=e.attrs)?n:[],h=null;if((!d||0===d.length)&&Array.isArray(e.children))for(const t of e.children){const e=null==t?void 0:t.attrs;if(Array.isArray(e)&&e.length>0){d=e,h=t;break}}const p=String(null!=(r=null==(o=d.find((e=>"src"===e[0])))?void 0:o[1])?r:""),f=null==(l=d.find((e=>"alt"===e[0])))?void 0:l[1];let m="";null!=f&&String(f).length>0?m=String(f):null!=(null==h?void 0:h.content)&&String(h.content).length>0?m=String(h.content):Array.isArray(null==h?void 0:h.children)&&null!=(i=h.children[0])&&i.content?m=String(h.children[0].content):Array.isArray(e.children)&&null!=(s=e.children[0])&&s.content?m=String(e.children[0].content):null!=e.content&&String(e.content).length>0&&(m=String(e.content));const g=null!=(c=null==(a=d.find((e=>"title"===e[0])))?void 0:a[1])?c:null;return{type:"image",src:p,alt:m,title:null===g?null:String(g),raw:String(null!=(u=e.content)?u:""),loading:t}}function cf(e){var t;const n=String(null!=(t=e.content)?t:"");return{type:"inline_code",code:n,raw:n}}function uf(e,t,n){var o;const r=[];let l="",i=t+1;const s=[];for(;i<e.length&&"ins_close"!==e[i].type;)l+=String(null!=(o=e[i].content)?o:""),s.push(e[i]),i++;return r.push(...et(s,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong})),{node:{type:"insert",children:r,raw:`++${String(l)}++`},nextIndex:i<e.length?i+1:e.length}}function df(e,t,n){var o,r,l,i,s,a;const c=null!=(o=e[t].attrs)?o:[],u=String(null!=(l=null==(r=c.find((e=>"href"===e[0])))?void 0:r[1])?l:""),d=null!=(s=null==(i=c.find((e=>"title"===e[0])))?void 0:i[1])?s:null,h=null===d?null:String(d);let p=t+1;const f=[];let m=!0;for(;p<e.length&&"link_close"!==e[p].type;)f.push(e[p]),p++;"link_close"===(null==(a=e[p])?void 0:a.type)&&(m=!1);const g=et(f,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),v=g.map((e=>{var t,n;const o=e;return String("content"in e?null!=(t=o.content)?t:"":null!=(n=o.raw)?n:"")})).join("");return{node:{type:"link",href:u,title:h,text:v,children:g,raw:`[${v}](${u}${h?` "${h}"`:""})`,loading:m},nextIndex:p<e.length?p+1:e.length}}function Ni(e){var t;return{type:"math_inline",content:String(null!=(t=e.content)?t:""),loading:!!e.loading,raw:e.raw}}function ff(e){var t,n,o;return{type:"reference",id:String(null!=(t=e.content)?t:""),raw:String(null!=(o=e.markup)?o:`[${null!=(n=e.content)?n:""}]`)}}function Oi(e,t,n){var o;const r=[];let l="",i=t+1;const s=[];for(;i<e.length&&"s_close"!==e[i].type;)l+=String(null!=(o=e[i].content)?o:""),s.push(e[i]),i++;return r.push(...et(s,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong})),{node:{type:"strikethrough",children:r,raw:`~~${l}~~`},nextIndex:i<e.length?i+1:e.length}}function $r(e,t,n,o){var r;const l=[];let i="",s=t+1;const a=[];let c=1;for(;s<e.length;){if("strong_close"===e[s].type){if(1===c)break;c--}"strong_open"===e[s].type&&c++,i+=String(null!=(r=e[s].content)?r:""),a.push(e[s]),s++}return l.push(...et(a,n,void 0,{requireClosingStrong:null==o?void 0:o.requireClosingStrong})),{node:{type:"strong",children:l,raw:`**${String(i)}**`},nextIndex:s<e.length?s+1:e.length}}function hf(e,t,n){var o,r;const l=[];let i="",s=t+1;const a=[];for(;s<e.length&&"sub_close"!==e[s].type;)i+=String(null!=(o=e[s].content)?o:""),a.push(e[s]),s++;l.push(...et(a,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}));const c=String(null!=(r=e[t].content)?r:""),u=i||c;return{node:{type:"subscript",children:l.length>0?l:[{type:"text",content:u,raw:u}],raw:`~${u}~`},nextIndex:s<e.length?s+1:e.length}}function pf(e,t,n){var o,r,l,i;const s=[];let a="",c=t+1;const u=[];for(;c<e.length&&"sup_close"!==e[c].type;)a+=String(null!=(o=e[c].content)?o:""),u.push(e[c]),c++;return s.push(...et(u,void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong})),{node:{type:"superscript",children:s.length>0?s:[{type:"text",content:a||String(null!=(r=e[t].content)?r:""),raw:a||String(null!=(l=e[t].content)?l:"")}],raw:`^${a||String(null!=(i=e[t].content)?i:"")}^`},nextIndex:c<e.length?c+1:e.length}}function mf(e){var t;const n=String(null!=(t=e.content)?t:"");return{type:"text",content:n,raw:n}}const gf=/\*\*([\s\S]*?)\*\*/;function go(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const vf=/^(?:https?:\/\/|mailto:|ftp:\/\/)/i,wf=/:\/\//;function kf(e){return!!e&&(vf.test(e)||wf.test(e))}function et(e,t,n,o){if(!e||0===e.length)return[];const r=[];let l=null;const i=e.some((e=>{var t;return"code_inline"===e.type&&/[^\x00-\x7F]/.test(String(null!=(t=e.content)?t:""))})),s="string"==typeof t&&/`/.test(t),a=e.some((e=>{var t,n;return"math_inline"===e.type&&/`/.test(String(null!=(n=null!=(t=e.raw)?t:e.content)?n:""))}));if(s&&(i||a))return xf(String(null!=t?t:""));let c=0;const u=null==o?void 0:o.requireClosingStrong;function d(){l=null}function h(e,n){var i,s;if(/[^~]*~{2,}[^~]+/.test(e)){let t=e.indexOf("~~");-1===t&&(t=0);const o=e.slice(0,t);o&&(l?(l.content+=o,l.raw+=o):(l={type:"text",content:String(null!=o?o:""),raw:String(null!=(i=n.content)?i:"")},r.push(l)));const{node:s}=Oi([{type:"s_open",tag:"s",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:e.slice(t).replace(/~/g,""),markup:"",info:"",meta:null},{type:"s_close",tag:"s",content:"",markup:"*",info:"",meta:null}],0);return d(),f(s),c++,!0}if(/\*\*/.test(e)&&!e.endsWith("**")){const n=e.indexOf("**"),r=n>-1?e.slice(0,n):"";if(r&&m(r,r),-1===n)return c++,!0;const l=gf.exec(e);let i="",s="";if(l&&"number"==typeof l.index)i=l[1],s=e.slice(l.index+l[0].length);else{if(u)return m(e,e),c++,!0;i=e.slice(n+2),s=""}const{node:a}=$r([{type:"strong_open",tag:"strong",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:i,markup:"",info:"",meta:null},{type:"strong_close",tag:"strong",content:"",markup:"*",info:"",meta:null}],0,t,o);return d(),f(a),s&&(g({type:"text",content:s,raw:s}),c--),c++,!0}if(/[^*]*\*[^*]+/.test(e)){let t=e.indexOf("*");-1===t&&(t=0);const i=e.slice(0,t);i&&(l?(l.content+=i,l.raw+=i):(l={type:"text",content:String(null!=i?i:""),raw:String(null!=(s=n.content)?s:"")},r.push(l)));const{node:a}=Tr([{type:"em_open",tag:"em",content:"",markup:"*",info:"",meta:null},{type:"text",tag:"",content:e.slice(t).replace(/\*/g,""),markup:"",info:"",meta:null},{type:"em_close",tag:"em",content:"",markup:"*",info:"",meta:null}],0,o);return d(),f(a),c++,!0}return!1}function p(e){d(),r.push(e)}function f(e){p(e)}function m(e,t){var n;l?(l.content+=e,l.raw+=null!=t?t:e):(l={type:"text",content:String(null!=e?e:""),raw:String(null!=(n=null!=t?t:e)?n:"")},r.push(l))}for(;c<e.length;){g(e[c])}function g(i){var s,a,v,k,y,w,x,b,_;switch(i.type){case"text":!function(i){var s,a,v,k,y,w,x;let b=r.length-1,_=String(null!=(s=i.content)?s:"").replace(/\\/g,"");if("<"===i.content||"1"===_&&"br"===(null==(a=e[c-1])?void 0:a.tag))return void c++;for(_.startsWith(")")&&"link"===(null==(v=r[r.length-1])?void 0:v.type)&&(_=_.slice(1)),1===Array.from(_.matchAll(/\$/g)).length&&_.endsWith("$")&&(_=_.slice(0,-1)),_.endsWith("undefined")&&!(null!=t&&t.endsWith("undefined"))&&(_=_.slice(0,-9));b>=0;b--){const e=r[b];if("text"!==e.type)break;l=null,_=e.content+_}b<r.length-1&&r.splice(b+1);const C=e[c+1];if("list_item_open"===(null==n?void 0:n.type)&&/^\d$/.test(_))return void c++;if("`"===_||"|"===_||"$"===_||/^\*+$/.test(_))return void c++;if(!C&&/[^\]]\s*\(\s*$/.test(_)&&(_=_.replace(/\(\s*$/,"")),function(e){if(null==e||!e.startsWith("[")||"list_item_open"!==(null==n?void 0:n.type))return!1;const t=e.slice(1).match(/[^\s\]]/);if(null===t)return c++,!0;if(t&&/x/i.test(t[0])){const e="x"===t[0]||"X"===t[0];return p({type:"checkbox_input",checked:e,raw:e?"[x]":"[ ]"}),c++,!0}return!1}(_))return;const E=e[c-1];if("["===_&&(null==(k=null==C?void 0:C.markup)||!k.includes("*"))||"]"===_&&(null==(y=null==E?void 0:E.markup)||!y.includes("*")))return void c++;if(function(t,n){var o,r;if(!t.includes("`"))return!1;const l=t.indexOf("`");let i=1;for(let e=l+1;e<t.length&&"`"===t[e];e++)i++;const s="`".repeat(i),a=l+i,u=t.indexOf(s,a);if(-1===u){if(1===i){const e=t.slice(0,l),o=t.slice(l+1);return e&&(h(e,n)?c--:m(e,e)),p({type:"inline_code",code:o,raw:String(o)}),c++,!0}let s=t;for(let t=c+1;t<e.length;t++)s+=String((null!=(o=e[t].content)?o:"")+(null!=(r=e[t].markup)?r:""));return c=e.length-1,m(s,s),c++,!0}d();const f=t.slice(0,l),v=t.slice(l+i,u),k=t.slice(u+i);return f&&(h(f,n)?c--:m(f,f)),p({type:"inline_code",code:v,raw:String(null!=v?v:"")}),k&&(g({type:"text",content:k,raw:k}),c--),c++,!0}(_,i)||function(e,t){const n=e.indexOf("![");if(-1===n)return!1;const o=e.slice(0,n);return l?l.content+=o:l={type:"text",content:o,raw:o},r.push(l),l=null,p(Li(t,!0)),c++,!0}(_,i)||"link_open"!==(null==(w=e[c+1])?void 0:w.type)&&function(t){var n;const r=t.indexOf("[");if(-1===r)return!1;let l=t.slice(0,r);const i=t.indexOf("](",r);if(-1!==i){const s=e[c+2];let a=t.slice(r+1,i);if(a.includes("[")){const e=a.indexOf("[");l+=t.slice(0,r+e+1);const n=r+e+1;a=t.slice(n+1,i)}const d=e[c+1];if(t.endsWith("](")&&"link_open"===(null==d?void 0:d.type)&&s){const t=e[c+4];let o=4,r=!0;return"text"===(null==t?void 0:t.type)&&")"===t.content?(o++,r=!1):"text"===(null==t?void 0:t.type)&&"."===t.content&&c++,l&&m(l,l),p({type:"link",href:String(null!=(n=s.content)?n:""),title:null,text:a,children:[{type:"text",content:a,raw:a}],loading:r}),c+=o,!0}const h=t.indexOf(")",i),v=-1!==h?t.slice(i+2,h):"",k=-1===h;let y=l.match(/\*+$/);if(y&&(l=l.replace(/\*+$/,"")),l&&m(l,l),y||(y=a.match(/^\*+/)),!u&&y){const e=y[0].length;a=a.replace(/^\*+/,"").replace(/\*+$/,"");const t=[];if(1===e?t.push({type:"em_open",tag:"em",nesting:1}):2===e?t.push({type:"strong_open",tag:"strong",nesting:1}):3===e&&(t.push({type:"strong_open",tag:"strong",nesting:1}),t.push({type:"em_open",tag:"em",nesting:1})),t.push({type:"link",href:v,title:null,text:a,children:[{type:"text",content:a,raw:a}],loading:k}),1===e){t.push({type:"em_close",tag:"em",nesting:-1});const{node:e}=Tr(t,0,o);f(e)}else if(2===e){t.push({type:"strong_close",tag:"strong",nesting:-1});const{node:e}=$r(t,0,void 0,o);f(e)}else if(3===e){t.push({type:"em_close",tag:"em",nesting:-1}),t.push({type:"strong_close",tag:"strong",nesting:-1});const{node:e}=$r(t,0,void 0,o);f(e)}else{const{node:e}=Tr(t,0,o);f(e)}}else p({type:"link",href:v,title:null,text:a,children:[{type:"text",content:a,raw:a}],loading:k});const w=-1!==h?t.slice(h+1):"";return w&&(g({type:"text",content:w,raw:w}),c--),c++,!0}return!1}(_)||h(_,i))return;if(!_)return void c++;const M=mf(nt(ae({},i),{content:_}));if(l)l.content+=M.content.replace(/(\*+|\(|\\)$/,""),l.raw+=M.raw;else{const t="br"===(null==E?void 0:E.tag)&&"["===(null==(x=e[c-2])?void 0:x.content);e[c+1]||(M.content=M.content.replace(/(\*+|\(|\\)$/,"")),l=M,l.center=t,r.push(l)}c++}(i);break;case"softbreak":l?(l.content+="\n",l.raw+="\n"):(l={type:"text",content:"\n",raw:"\n"},r.push(l)),c++;break;case"code_inline":f(cf(i)),c++;break;case"html_inline":{const[t,n]=af(i,e,c);f(t),c=n;break}case"link_open":!function(n){var o,l,i,s,a,h,f,g,v,k,y,w,x,b,_,C,E,M;d();const D=null==(l=null==(o=n.attrs)?void 0:o.find((([e])=>"href"===e)))?void 0:l[1];if(t&&"text"===e[c+1].type){let o=String(null!=(s=null==(i=e[c+1])?void 0:i.content)?s:"");const r=go(o);if(!new RegExp(`\\[${r}\\s*\\]`).test(t)){const r=null!=(f=null==(h=null==(a=n.attrs)?void 0:a.find((([e])=>"href"===e)))?void 0:h[1])?f:"";if(!t.includes("[")&&kf(String(r)))return d(),p({type:"link",href:String(r),title:null,text:o,children:[{type:"text",content:o,raw:o}],loading:!1}),void(c+=3);if("strong_open"===(null==(g=e[c+2])?void 0:g.type)){for(c+=2;c<e.length-1&&e[c]&&"link_close"!==(null==(v=e[c])?void 0:v.type);)o+=String((null==(k=e[c])?void 0:k.markup)||(null==(y=e[c])?void 0:y.content)||""),c++;p({type:"link",href:String(r),title:null,text:o,children:[{type:"text",content:o,raw:o}],loading:!1}),c+=1}else m(o,o),c+=3;return}}if(t&&D){const n=new RegExp(`\\(\\s*${go(D)}\\s*\\)`),o=r.length>0?r[r.length-1]:void 0,l=!n.test(t);if(l&&o){let n="";if(o&&("link"===o.type?n=String(null!=(w=o.text)?w:""):"text"===o.type?n=String(null!=(x=o.content)?x:""):o.content&&"string"==typeof o.content&&(n=String(null!=(b=o.content)?b:"").slice(1,-1))),new RegExp(`\\[${go(n)}\\s*\\]\\(`).test(t)){const t=String(null!=n?n:"");d();const o={type:"link",href:"",title:null,text:t,children:[{type:"text",content:t,raw:t}],loading:l};return r.splice(r.length-1,1,o),c+=3,void("."===String(null!=(C=null==(_=e[c])?void 0:_.content)?C:"")&&c++)}}}const{node:A,nextIndex:S}=df(e,c,{requireClosingStrong:u});c=S;const F=null==(M=null==(E=n.attrs)?void 0:E.find((([e])=>"href"===e)))?void 0:M[1],$=String(null!=F?F:"");if(t&&$){const e=t.indexOf("](");if(-1!==e){const n=t.indexOf(")",e+2);-1===n?A.loading=!0:A.loading&&t.slice(e+2,n).includes($)&&(A.loading=!1)}}p(A)}(i);break;case"image":d(),f(Li(i)),c++;break;case"strong_open":{d();const{node:t,nextIndex:n}=$r(e,c,i.content,o);f(t),c=n;break}case"em_open":{d();const{node:t,nextIndex:n}=Tr(e,c,o);f(t),c=n;break}case"s_open":{d();const{node:t,nextIndex:n}=Oi(e,c,o);f(t),c=n;break}case"mark_open":{d();const{node:t,nextIndex:n}=lf(e,c,o);f(t),c=n;break}case"ins_open":{d();const{node:t,nextIndex:n}=uf(e,c,o);f(t),c=n;break}case"sub_open":{d();const{node:t,nextIndex:n}=hf(e,c,o);f(t),c=n;break}case"sup_open":{d();const{node:t,nextIndex:n}=pf(e,c,o);f(t),c=n;break}case"sub":d(),f({type:"subscript",children:[{type:"text",content:String(null!=(s=i.content)?s:""),raw:String(null!=(a=i.content)?a:"")}],raw:`~${String(null!=(v=i.content)?v:"")}~`}),c++;break;case"sup":d(),f({type:"superscript",children:[{type:"text",content:String(null!=(k=i.content)?k:""),raw:String(null!=(y=i.content)?y:"")}],raw:`^${String(null!=(w=i.content)?w:"")}^`}),c++;break;case"emoji":{d();const t=e[c-1];"text"===(null==t?void 0:t.type)&&/\|:-+/.test(String(null!=(x=t.content)?x:""))?m("",""):f(ef(i)),c++;break}case"checkbox":d(),f(Jd(i)),c++;break;case"checkbox_input":d(),f(Qd(i)),c++;break;case"footnote_ref":d(),f(of(i)),c++;break;case"hardbreak":d(),f(sf()),c++;break;case"fence":d(),f(yr(e[c])),c++;break;case"math_inline":d(),i.content||"$"!==i.markup||"text"!==(null==(b=e[c+1])?void 0:b.type)||"math_inline"!==(null==(_=e[c+2])?void 0:_.type)?f(Ni(i)):(f(Ni(nt(ae({},i),{content:e[c+1].content}))),c+=2),c++;break;case"reference":!function(t){var n,o,l,i,s,a,u,h;d();const p=e[c+1],m=e[c-1],g=r[r.length-1],v="text"===(null==p?void 0:p.type)&&!String(null!=(n=p.content)?n:"").startsWith("("),k="text"===(null==m?void 0:m.type)&&/\]$|^\s*$/.test(String(null!=(o=m.content)?o:""));v||k?f(ff(t)):p&&"text"===p.type?p.content=String(null!=(l=t.markup)?l:"")+String(null!=(i=p.content)?i:""):g&&"text"===g.type&&(g.content=String(null!=(s=g.content)?s:"")+String(null!=(a=t.markup)?a:""),g.raw=String(null!=(u=g.raw)?u:"")+String(null!=(h=t.markup)?h:"")),c++}(i);break;default:(function(e){d(),r.push(e)})(i),c++}}return yf(t,r)}function yf(e,t){if(!e)return t;const n=e.trim(),o=/^\[([\s\S]+?)\]\(([^)]+)\)$/.exec(n);if(!o)return t;const r=o[1],l=o[2],i=t.filter((e=>"link"===e.type)),s=i.find((e=>String(e.href||"")===l&&String(e.text||"")===r))||i.find((e=>String(e.href||"")===l));return s?[s]:t}function xf(e){const t=[],n=[{type:"root",children:t}];let o=0;function r(){return n[n.length-1].children}function l(e){if(!e)return;const t=r()[r().length-1];t&&"text"===t.type?(t.content+=e,t.raw+=e):r().push({type:"text",content:e,raw:e})}for(;o<e.length;){if("*"===e[o]&&"*"===e[o+1]){if(o+=2,n.length>1&&"strong"===n[n.length-1].type){const e=n.pop().children;r().push({type:"strong",children:e,raw:`**${e.map((e=>{var t;return null!=(t=e.raw)?t:""})).join("")}**`})}else n.push({type:"strong",children:[]});continue}if("`"===e[o]){let t=1,n=o+1;for(;n<e.length&&"`"===e[n];)t++,n++;const i="`".repeat(t),s=o+t,a=e.indexOf(i,s);if(-1===a){l(e.slice(o));break}const c=e.slice(s,a);r().push({type:"inline_code",code:c,raw:c}),o=a+t;continue}let t=e.indexOf("`",o);const i=e.indexOf("**",o);-1!==i&&(-1===t||i<t)&&(t=i),-1===t&&(t=e.length),l(e.slice(o,t)),o=t}for(;n.length>1;)l(`**${n.pop().children.map((e=>{var t,n;return null!=(n=null!=(t=e.raw)?t:e.content)?n:""})).join("")}`);return t}function Zs(e,t,n){var o,r;const l=[];let i=t+1;for(;i<e.length&&"blockquote_close"!==e[i].type;)if("paragraph_open"===e[i].type){const t=e[i+1];l.push({type:"paragraph",children:et(t.children||[],String(null!=(o=t.content)?o:""),void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(r=t.content)?r:"")}),i+=3}else if("bullet_list_open"===e[i].type||"ordered_list_open"===e[i].type){const[t,n]=eo(e,i);l.push(t),i=n}else i++;return[{type:"blockquote",children:l,raw:l.map((e=>e.raw)).join("\n")},i+1]}function zo(e){var t,n,o,r,l;if(null!=(t=e.info)&&t.startsWith("diff"))return yr(e);const i=String(null!=(n=e.content)?n:""),s=i.match(/ type="application\/vnd\.ant\.([^"]+)"/);null!=s&&s[1]&&(e.content=i.replace(/<antArtifact[^>]*>/g,"").replace(/<\/antArtifact>/g,""));const a=Array.isArray(e.map)&&2===e.map.length;return{type:"code_block",language:s?s[1]:String(null!=(o=e.info)?o:""),code:String(null!=(r=e.content)?r:""),raw:String(null!=(l=e.content)?l:""),loading:!a}}function Xs(e,t,n){var o,r;const l=[];let i=t+1,s=[],a=[];for(;i<e.length&&"dl_close"!==e[i].type;)if("dt_open"===e[i].type){s=et(e[i+1].children||[],void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),i+=3}else if("dd_open"===e[i].type){let t=i+1;for(a=[];t<e.length&&"dd_close"!==e[t].type;)if("paragraph_open"===e[t].type){const l=e[t+1];a.push({type:"paragraph",children:et(l.children||[],String(null!=(o=l.content)?o:""),void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(r=l.content)?r:"")}),t+=3}else t++;s.length>0&&(l.push({type:"definition_item",term:s,definition:a,raw:`${s.map((e=>e.raw)).join("")}: ${a.map((e=>e.raw)).join("\n")}`}),s=[]),i=t+1}else i++;return[{type:"definition_list",items:l,raw:l.map((e=>e.raw)).join("\n")},i+1]}function Ys(e,t,n){var o,r,l,i;const s=null!=(o=e[t].meta)?o:{},a=String(null!=(r=null==s?void 0:s.label)?r:"0"),c=[];let u=t+1;for(;u<e.length&&"footnote_close"!==e[u].type;)if("paragraph_open"===e[u].type){const t=e[u+1];c.push({type:"paragraph",children:et(t.children||[],String(null!=(l=t.content)?l:""),void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(i=t.content)?i:"")}),u+=3}else u++;return[{type:"footnote",id:a,children:c,raw:`[^${a}]: ${c.map((e=>e.raw)).join("\n")}`},u+1]}function Gs(e,t,n){var o,r,l;const i=e[t],s=String(null!=(r=null==(o=i.tag)?void 0:o.substring(1))?r:"1"),a=Number.parseInt(s,10),c=e[t+1],u=String(null!=(l=c.content)?l:"");return{type:"heading",level:a,text:u,children:et(c.children||[],u,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:u}}function Ho(e){var t,n;return{type:"math_block",content:String(null!=(t=e.content)?t:""),loading:!!e.loading,raw:String(null!=(n=e.raw)?n:"")}}function bf(e){if(!e)return"left";for(const t of e){if(!t)continue;const[e,n]=t;if(!n)continue;const o=String(n).trim().toLowerCase();if("style"===e){const e=/text-align\s*:\s*(left|right|center)/i.exec(o);if(e)return e[1].toLowerCase()}}return"left"}function Js(e,t,n){var o,r;let l=t+1,i=null;const s=[];let a=!1;for(;l<e.length&&"table_close"!==e[l].type;)if("thead_open"===e[l].type)a=!0,l++;else if("thead_close"===e[l].type)a=!1,l++;else if("tbody_open"===e[l].type||"tbody_close"===e[l].type)l++;else if("tr_open"===e[l].type){const t=[];let r=l+1;for(;r<e.length&&"tr_close"!==e[r].type;)if("th_open"===e[r].type||"td_open"===e[r].type){const l="th_open"===e[r].type,i=e[r+1],s=String(null!=(o=i.content)?o:""),c=bf(e[r].attrs);t.push({type:"table_cell",header:l||a,children:et(i.children||[],s,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:s,align:c}),r+=3}else r++;const c={type:"table_row",cells:t,raw:t.map((e=>e.raw)).join("|")};a?i=c:s.push(c),l=r+1}else l++;return i||(i={type:"table_row",cells:[],raw:""}),[{type:"table",header:i,rows:s,loading:null!=(r=e[t].loading)&&r,raw:[i,...s].map((e=>e.raw)).join("\n")},l+1]}function Qs(){return{type:"thematic_break",raw:"---"}}function eo(e,t,n){var o,r,l,i,s;const a=e[t],c=[];let u=t+1;for(;u<e.length&&"bullet_list_close"!==e[u].type&&"ordered_list_close"!==e[u].type;)if("list_item_open"===e[u].type){const t=[];let a=u+1;for(;a<e.length&&"list_item_close"!==e[a].type;)if("paragraph_open"===e[a].type){const s=e[a+1],c=e[a-1],u=String(null!=(o=s.content)?o:"");/\n\d+$/.test(u)&&(s.content=u.replace(/\n\d+$/,""),null==(r=s.children)||r.splice(-1,1)),t.push({type:"paragraph",children:et(s.children||[],String(null!=(l=s.content)?l:""),c,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(i=s.content)?i:"")}),a+=3}else if("blockquote_open"===e[a].type){const[n,o]=Zs(e,a);t.push(n),a=o}else if("bullet_list_open"===e[a].type||"ordered_list_open"===e[a].type){const[o,r]=el(e,a,n);t.push(o),a=r}else if("code_block"===e[a].type)t.push(zo(e[a])),a+=1;else if("fence"===e[a].type)t.push(yr(e[a])),a+=1;else if("math_block"===e[a].type)t.push(Ho(e[a])),a+=1;else if("table_open"===e[a].type){const[n,o]=Js(e,a);t.push(n),a=o}else if("dl_open"===e[a].type){const[n,o]=Xs(e,a);t.push(n),a=o}else if("footnote_open"===e[a].type){const[n,o]=Ys(e,a);t.push(n),a=o}else if("heading_open"===e[a].type){const n=Gs(e,a);t.push(n),a+=3}else if("hr"===e[a].type)t.push(Qs()),a+=1;else if("container_open"===e[a].type){const n=/^::: ?(warning|info|note|tip|danger|caution) ?(.*)$/.exec(String(null!=(s=e[a].info)?s:""));if(n){const[o,r]=tl(e,a,n);t.push(o),a=r}else a+=1}else a+=1;c.push({type:"list_item",children:t,raw:t.map((e=>e.raw)).join("")}),u=a+1}else u+=1;return[{type:"list",ordered:"ordered_list_open"===a.type,start:(()=>{if(a.attrs&&a.attrs.length){const e=a.attrs.find((e=>"start"===e[0]));if(e){const t=Number(e[1]);return Number.isFinite(t)&&0!==t?t:1}}})(),items:c,raw:c.map((e=>e.raw)).join("\n")},u+1]}function el(e,t,n){var o,r;const l=e[t],i=[];let s=t+1;for(;s<e.length&&"bullet_list_close"!==e[s].type&&"ordered_list_close"!==e[s].type;)if("list_item_open"===e[s].type){const t=[];let l=s+1;for(;l<e.length&&"list_item_close"!==e[l].type;)if("paragraph_open"===e[l].type){const i=e[l+1],s=e[l-1];t.push({type:"paragraph",children:et(i.children||[],String(null!=(o=i.content)?o:""),s,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(r=i.content)?r:"")}),l+=3}else if("bullet_list_open"===e[l].type||"ordered_list_open"===e[l].type){const[o,r]=el(e,l,n);t.push(o),l=r}else"code_block"===e[l].type?(t.push(zo(e[l])),l+=1):"fence"===e[l].type?(t.push(yr(e[l])),l+=1):("math_block"===e[l].type&&t.push(Ho(e[l])),l+=1);i.push({type:"list_item",children:t,raw:t.map((e=>e.raw)).join("")}),s=l+1}else s+=1;return[{type:"list",ordered:"ordered_list_open"===l.type,start:(()=>{if(l.attrs&&l.attrs.length){const e=l.attrs.find((e=>"start"===e[0]));if(e){const t=Number(e[1]);return Number.isFinite(t)&&0!==t?t:1}}})(),items:i,raw:i.map((e=>e.raw)).join("\n")},s+1]}function tl(e,t,n,o){var r,l,i,s;const a=String(null!=(r=n[1])?r:"note"),c=String(null!=(l=n[2])?l:a.charAt(0).toUpperCase()+a.slice(1)),u=[];let d=t+1;for(;d<e.length&&"container_close"!==e[d].type;)if("paragraph_open"===e[d].type){const t=e[d+1];t&&u.push({type:"paragraph",children:et(t.children||[],String(null!=(i=t.content)?i:""),void 0,{requireClosingStrong:null==o?void 0:o.requireClosingStrong}),raw:String(null!=(s=t.content)?s:"")}),d+=3}else if("bullet_list_open"===e[d].type||"ordered_list_open"===e[d].type){const[t,n]=eo(e,d,o);u.push(t),d=n}else d++;return[{type:"admonition",kind:a,title:c,children:u,raw:`:::${a} ${c}\n${u.map((e=>e.raw)).join("\n")}\n:::`},d+1]}function _f(e,t,n){var o,r,l,i;const s=e[t];let a="note",c="";const u=s.type.match(/^container_(\w+)_open$/);if(u){a=u[1];const e=String(null!=(o=s.info)?o:"").trim();if(e&&!e.startsWith(":::")){const t=e.replace(new RegExp(`^${a}`),"").trim();t&&(c=t)}}else{const e=String(null!=(r=s.info)?r:"").trim(),t=/^:{1,3}\s*(warning|info|note|tip|danger|caution)\s*(.*)$/i.exec(e);t&&(a=t[1],c=String(null!=(l=t[2])?l:""))}c||(c=a.charAt(0).toUpperCase()+a.slice(1));const d=[];let h=t+1;const p=new RegExp(`^container_${a}_close$`);for(;h<e.length&&"container_close"!==e[h].type&&!p.test(e[h].type);)if("paragraph_open"===e[h].type){const t=e[h+1];if(t){const e=t.children||[];let o=-1;for(let t=e.length-1;t>=0;t--){const n=e[t];if("text"===n.type&&/:+/.test(n.content)){o=t;break}}const r=-1!==o?e.slice(0,o):e;d.push({type:"paragraph",children:et(r||[],void 0,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:String(null!=(i=t.content)?i:"").replace(/\n:+$/,"").replace(/\n\s*:::\s*$/,"")})}h+=3}else if("bullet_list_open"===e[h].type||"ordered_list_open"===e[h].type){const[t,o]=eo(e,h,n);d.push(t),h=o}else h++;return[{type:"admonition",kind:a,title:c,children:d,raw:`:::${a} ${c}\n${d.map((e=>e.raw)).join("\n")}\n:::`},h+1]}function Cf(){return{type:"hardbreak",raw:"\\\n"}}const Ef=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Pi=new Map;function Mf(e){var t,n;const o=String(null!=(t=e.content)?t:"");if(/^\s*<!--/.test(o)||/^\s*<!/.test(o)||/^\s*<\?/.test(o))return{type:"html_block",content:o,raw:o,tag:"",loading:!1};const r=((null==(n=o.match(/^\s*<([A-Z][\w:-]*)/i))?void 0:n[1])||"").toLowerCase();if(!r)return{type:"html_block",content:o,raw:o,tag:"",loading:!1};const l=/^\s*<[^>]*\/\s*>/.test(o),i=Ef.has(r);let s=Pi.get(r);s||(s=new RegExp(`<\\/\\s*${r}\\b`,"i"),Pi.set(r,s));const a=s.test(o),c=!(i||l||a);return{type:"html_block",content:c?`${o.replace(/<[^>]*$/,"")}\n</${r}>`:o,raw:o,tag:r,loading:c}}function Sf(e,t,n){var o;const r=e[t+1],l=String(null!=(o=r.content)?o:"");return{type:"paragraph",children:et(r.children||[],l,void 0,{requireClosingStrong:null==n?void 0:n.requireClosingStrong}),raw:l}}function Af(e,t,n={}){let o=(null!=e?e:"").toString().replace(/([^\\])\right/g,"$1\\right");o.endsWith("- *")&&(o=o.replace(/- \*$/,"- \\*")),/\n\s*-\s*$/.test(o)?o=o.replace(/\n\s*-\s*$/,"\n"):/\n[[(]\n*$/.test(o)&&(o=o.replace(/(\n\[|\n\()+\n*$/g,"\n"));const r=t.parse(o,{});if(!r||!Array.isArray(r))return[];const l=n.preTransformTokens,i=n.postTransformTokens;let s=r;l&&"function"==typeof l&&(s=l(s)||s);let a=zi(s,n);if(i&&"function"==typeof i){const e=i(s);if(Array.isArray(e)){const t=e[0],n=null==t?void 0:t.type;a=t&&"string"==typeof n?zi(e):e}}return a}function zi(e,t){var n,o;if(!e||!Array.isArray(e))return[];const r=[];let l=0;for(;l<e.length;){const i=e[l];switch(i.type){case"container_warning_open":case"container_info_open":case"container_note_open":case"container_tip_open":case"container_danger_open":case"container_caution_open":case"container_error_open":{const[n,o]=_f(e,l,t);r.push(n),l=o;break}case"heading_open":r.push(Gs(e,l,t)),l+=3;break;case"paragraph_open":r.push(Sf(e,l,t)),l+=3;break;case"html_block":r.push(Mf(i)),l+=1;break;case"code_block":r.push(zo(e[l])),l+=1;break;case"fence":r.push(yr(e[l])),l+=1;break;case"bullet_list_open":case"ordered_list_open":{const[n,o]=eo(e,l,t);r.push(n),l=o;break}case"hr":r.push(Qs()),l+=1;break;case"blockquote_open":{const[n,o]=Zs(e,l,t);r.push(n),l=o;break}case"table_open":{const[n,o]=Js(e,l,t);r.push(n),l=o;break}case"dl_open":{const[n,o]=Xs(e,l,t);r.push(n),l=o;break}case"footnote_open":{const[n,o]=Ys(e,l,t);r.push(n),l=o;break}case"container_open":{const o=/^::: ?(warning|info|note|tip|danger|caution|error) ?(.*)$/.exec(String(null!=(n=i.info)?n:""));if(o){const[n,i]=tl(e,l,o,t);r.push(n),l=i}else l+=1;break}case"hardbreak":r.push(Cf()),l++;break;case"math_block":r.push(Ho(e[l])),l+=1;break;case"inline":r.push(...et(i.children||[],String(null!=(o=i.content)?o:""),void 0,{requireClosingStrong:null==t?void 0:t.requireClosingStrong})),l+=1;break;default:l+=1}}return r}const qr=[];function Dm(e){qr.push(e)}function Tm(){qr.length=0}function Df(e=`editor-${Date.now()}`,t={}){var n;const o=Gd(t),r={"common.copy":"Copy"};let l;if("function"==typeof t.i18n)l=t.i18n;else if(t.i18n&&"object"==typeof t.i18n){const e=t.i18n;l=t=>{var n,o;return null!=(o=null!=(n=e[t])?n:r[t])?o:t}}else l=e=>{var t;return null!=(t=r[e])?t:e};if(Array.isArray(t.plugin))for(const e of t.plugin){const t=e;if(Array.isArray(t)){const e=t[0],n=t[1];"function"==typeof e&&o.use(e,n)}else"function"==typeof t&&o.use(t)}if(Array.isArray(t.apply))for(const e of t.apply)try{e(o)}catch(e){console.error("[getMarkdown] apply function threw an error",e)}if(qr.length)for(const e of qr)if(Array.isArray(e)){const t=e[0],n=e[1];"function"==typeof t&&o.use(t,n)}else"function"==typeof e&&o.use(e);o.use(ta),o.use(oa),o.use(Jl);const i=null!=(n=ei.default)?n:ei;o.use(i),o.use(Gl),o.use(Yl),o.core.ruler.after("block","mark_fence_closed",(e=>{var t,n;const o=e,r=o.src.split(/\r?\n/);for(const e of o.tokens){if("fence"!==e.type||!e.map||!e.markup)continue;const o=e.map[0],l=e.map[1],i=e.markup,s=i[0],a=i.length,c=null!=(t=r[Math.max(0,l-1)])?t:"";let u=0;for(;u<c.length&&(" "===c[u]||"\t"===c[u]);)u++;let d=0;for(;u+d<c.length&&c[u+d]===s;)d++;let h=u+d;for(;h<c.length&&(" "===c[h]||"\t"===c[h]);)h++;const p=l>o+1&&d>=a&&h===c.length,f=e;f.meta=null!=(n=f.meta)?n:{},f.meta.unclosed=!p,f.meta.closed=!!p}}));o.inline.ruler.before("sub","wave",((e,t)=>{const n=e,o=n.pos;if("~"!==n.src[o])return!1;const r=n.src[o-1],l=n.src[o+1];if(/\d/.test(r)&&/\d/.test(l)){if(!t){n.push("text","",0).content="~"}return n.pos+=1,!0}return!1})),o.renderer.rules.fence=(t,n)=>{var o,r;const i=t[n],s=String(null!=(o=i.info)?o:"").trim(),a=String(null!=(r=i.content)?r:""),c=btoa(unescape(encodeURIComponent(a))),u=String(null!=s?s:"text");return`<div class="code-block" data-code="${c}" data-lang="${u}" id="editor-${e}-${n}-${u}">\n      <div class="code-header">\n        <span class="code-lang">${u.toUpperCase()}</span>\n        <button class="copy-button" data-code="${c}">${l("common.copy")}</button>\n      </div>\n      <div class="code-editor"></div>\n    </div>`};const s=/^\[(\d+)\]/;return o.inline.ruler.before("escape","reference",((e,t)=>{const n=e;if("["!==n.src[n.pos])return!1;const o=s.exec(n.src.slice(n.pos));if(!o)return!1;if(!t){const e=o[1],t=n.push("reference","span",0);t.content=e,t.markup=o[0]}return n.pos+=o[0].length,!0})),o.renderer.rules.reference=(e,t)=>{var n;const o=String(null!=(n=e[t].content)?n:"");return`<span class="reference-link" data-reference-id="${o}" role="button" tabindex="0" title="Click to view reference">${o}</span>`},o}const Tf=["cite"],$f=De({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(t,n)=>(R(),j("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[Jn([e.node.children],(()=>Mt(ee(Wt),{"index-key":`blockquote-${e.indexKey}`,nodes:e.node.children||[],typewriter:e.typewriter,onCopy:n[0]||(n[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","typewriter"])),n,1)],8,Tf))}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n},rr=Be($f,[["__scopeId","data-v-adfdba00"]]);rr.install=e=>{e.component(rr.__name,rr)};const If={class:"checkbox-node"},Ff=["checked"],Bf=De({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(R(),j("span",If,[E("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,Ff)]))}),tn=Be(Bf,[["__scopeId","data-v-8dc6c46f"]]);tn.install=e=>{e.component(tn.__name,tn)};const Rf={class:"definition-list"},Lf={class:"definition-term"},Nf={class:"definition-desc"},Of=De({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(t,n)=>(R(),j("dl",Rf,[(R(!0),j(Ke,null,ct(e.node.items,((o,r)=>(R(),j(Ke,{key:r},[E("dt",Lf,[Mt(ee(Wt),{"index-key":`definition-term-${e.indexKey}-${r}`,nodes:o.term,typewriter:e.typewriter,onCopy:n[0]||(n[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","typewriter"])]),E("dd",Nf,[Mt(ee(Wt),{"index-key":`definition-desc-${e.indexKey}-${r}`,nodes:o.definition,typewriter:e.typewriter,onCopy:n[1]||(n[1]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","typewriter"])])],64)))),128))]))}),or=Be(Of,[["__scopeId","data-v-5a21f288"]]);or.install=e=>{e.component(or.__name,or)};const Pf={class:"emoji-node"},zf=De({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(R(),j("span",Pf,ze(e.node.name),1))}),gt=Be(zf,[["__scopeId","data-v-de55dc97"]]);gt.install=e=>{e.component(gt.__name,gt)};const gr="__global__",Rn={};function $m(e,t){"string"==typeof e?Rn[e]=t||{}:Rn[gr]=e||{}}function Vt(e){return e?Rn[e]||Rn[gr]||{}:Rn[gr]||{}}function Im(e){if(e===gr)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete Rn[e]}function Fm(){delete Rn[gr]}const Hf=["title"],jf=De({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#footnote-${e.node.id}`;function n(){if("undefined"==typeof document)return;const e=document.querySelector(t);e?e.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(o,r)=>(R(),j("sup",{class:"footnote-reference",onClick:n},[E("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+ze(e.node.id)+"]",9,Hf)]))}}),St=Be(jf,[["__scopeId","data-v-7c1ed642"]]);St.install=e=>{e.component(St.__name,St)};const qf={class:"inline px-1 py-0.5 rounded text-xs font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},vt=De({__name:"InlineCodeNode",props:{node:{}},setup:e=>(t,n)=>(R(),j("code",qf,ze(e.node.code),1))});vt.install=e=>{e.component(vt.__name,vt)};const Wr=Math.min,Ln=Math.max,Vr=Math.round,Ir=Math.floor,nn=e=>({x:e,y:e}),Wf={left:"right",right:"left",bottom:"top",top:"bottom"},Vf={start:"end",end:"start"};function Hi(e,t,n){return Ln(e,Wr(t,n))}function to(e,t){return"function"==typeof e?e(t):e}function zn(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function nl(e){return"x"===e?"y":"x"}function rl(e){return"y"===e?"height":"width"}const Uf=new Set(["top","bottom"]);function yn(e){return Uf.has(zn(e))?"y":"x"}function ol(e){return nl(yn(e))}function Kf(e,t,n){void 0===n&&(n=!1);const o=no(e),r=ol(e),l=rl(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Ur(i)),[i,Ur(i)]}function Zf(e){const t=Ur(e);return[Mo(e),t,Mo(t)]}function Mo(e){return e.replace(/start|end/g,(e=>Vf[e]))}const ji=["left","right"],qi=["right","left"],Xf=["top","bottom"],Yf=["bottom","top"];function Gf(e,t,n){switch(e){case"top":case"bottom":return n?t?qi:ji:t?ji:qi;case"left":case"right":return t?Xf:Yf;default:return[]}}function Jf(e,t,n,o){const r=no(e);let l=Gf(zn(e),"start"===n,o);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(Mo)))),l}function Ur(e){return e.replace(/left|right|bottom|top/g,(e=>Wf[e]))}function Qf(e){return ae({top:0,right:0,bottom:0,left:0},e)}function eh(e){return"number"!=typeof e?Qf(e):{top:e,right:e,bottom:e,left:e}}function Kr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Wi(e,t,n){let{reference:o,floating:r}=e;const l=yn(t),i=ol(t),s=rl(i),a=zn(t),c="y"===l,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[s]/2-r[s]/2;let p;switch(a){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(no(t)){case"start":p[i]-=h*(n&&c?-1:1);break;case"end":p[i]+=h*(n&&c?-1:1)}return p}const th=(e,t,n)=>se(null,null,(function*(){const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),a=yield null==i.isRTL?void 0:i.isRTL(t);let c=yield i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Wi(c,o,a),h=o,p={},f=0;for(let n=0;n<s.length;n++){const{name:l,fn:m}=s[n],{x:g,y:v,data:k,reset:y}=yield m({x:u,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p=nt(ae({},p),{[l]:ae(ae({},p[l]),k)}),y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?yield i.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:u,y:d}=Wi(c,h,a))),n=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:p}}));function il(e,t){return se(this,null,(function*(){var n;void 0===t&&(t={});const{x:o,y:r,platform:l,rects:i,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=to(t,e),f=eh(p),m=s[h?"floating"===d?"reference":"floating":d],g=Kr(yield l.getClippingRect({element:null==(n=yield null==l.isElement?void 0:l.isElement(m))||n?m:m.contextElement||(yield null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),v="floating"===d?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,k=yield null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating),y=(yield null==l.isElement?void 0:l.isElement(k))&&(yield null==l.getScale?void 0:l.getScale(k))||{x:1,y:1},w=Kr(l.convertOffsetParentRelativeRectToViewportRelativeRect?yield l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:k,strategy:a}):v);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}))}const nh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return se(this,null,(function*(){var n,o;const{placement:r,middlewareData:l,rects:i,initialPlacement:s,platform:a,elements:c}=t,u=to(e,t),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0}=u,v=uo(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const k=zn(r),y=yn(s),w=zn(s)===s,x=yield null==a.isRTL?void 0:a.isRTL(c.floating),b=p||(w||!g?[Ur(s)]:Zf(s)),_="none"!==m;!p&&_&&b.push(...Jf(s,g,m,x));const C=[s,...b],E=yield il(t,v),M=[];let D=(null==(o=l.flip)?void 0:o.overflows)||[];if(d&&M.push(E[k]),h){const e=Kf(r,i,x);M.push(E[e[0]],E[e[1]])}if(D=[...D,{placement:r,overflows:M}],!M.every((e=>e<=0))){var A,S;const e=((null==(A=l.flip)?void 0:A.index)||0)+1,t=C[e];if(t&&("alignment"!==h||y===yn(t)||D.every((e=>yn(e.placement)!==y||e.overflows[0]>0))))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(S=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(f){case"bestFit":{var F;const e=null==(F=D.filter((e=>{if(_){const t=yn(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}))}}},rh=new Set(["left","top"]);function oh(e,t){return se(this,null,(function*(){const{placement:n,platform:o,elements:r}=e,l=yield null==o.isRTL?void 0:o.isRTL(r.floating),i=zn(n),s=no(n),a="y"===yn(n),c=rh.has(i)?-1:1,u=l&&a?-1:1,d=to(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),a?{x:p*u,y:h*c}:{x:h*c,y:p*u}}))}const ih=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return se(this,null,(function*(){var n,o;const{x:r,y:l,placement:i,middlewareData:s}=t,a=yield oh(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+a.x,y:l+a.y,data:nt(ae({},a),{placement:i})}}))}}},sh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return se(this,null,(function*(){const{x:n,y:o,placement:r}=t,l=to(e,t),{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=l,c=uo(l,["mainAxis","crossAxis","limiter"]),u={x:n,y:o},d=yield il(t,c),h=yn(zn(r)),p=nl(h);let f=u[p],m=u[h];if(i){const e="y"===p?"bottom":"right";f=Hi(f+d["y"===p?"top":"left"],f,f-d[e])}if(s){const e="y"===h?"bottom":"right";m=Hi(m+d["y"===h?"top":"left"],m,m-d[e])}const g=a.fn(nt(ae({},t),{[p]:f,[h]:m}));return nt(ae({},g),{data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[h]:s}}})}))}}};function ro(){return"undefined"!=typeof window}function Qn(e){return sl(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function on(e){var t;return null==(t=(sl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function sl(e){return!!ro()&&(e instanceof Node||e instanceof At(e).Node)}function Zt(e){return!!ro()&&(e instanceof Element||e instanceof At(e).Element)}function rn(e){return!!ro()&&(e instanceof HTMLElement||e instanceof At(e).HTMLElement)}function Vi(e){return!(!ro()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof At(e).ShadowRoot)}const lh=new Set(["inline","contents"]);function xr(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!lh.has(r)}const ah=new Set(["table","td","th"]);function ch(e){return ah.has(Qn(e))}const uh=[":popover-open",":modal"];function oo(e){return uh.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const dh=["transform","translate","scale","rotate","perspective"],fh=["transform","translate","scale","rotate","perspective","filter"],hh=["paint","layout","strict","content"];function jo(e){const t=qo(),n=Zt(e)?Xt(e):e;return dh.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||fh.some((e=>(n.willChange||"").includes(e)))||hh.some((e=>(n.contain||"").includes(e)))}function ph(e){let t=En(e);for(;rn(t)&&!Gn(t);){if(jo(t))return t;if(oo(t))return null;t=En(t)}return null}function qo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const mh=new Set(["html","body","#document"]);function Gn(e){return mh.has(Qn(e))}function Xt(e){return At(e).getComputedStyle(e)}function io(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function En(e){if("html"===Qn(e))return e;const t=e.assignedSlot||e.parentNode||Vi(e)&&e.host||on(e);return Vi(t)?t.host:t}function ll(e){const t=En(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&xr(t)?t:ll(t)}function vr(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ll(e),l=r===(null==(o=e.ownerDocument)?void 0:o.body),i=At(r);if(l){const e=So(i);return t.concat(i,i.visualViewport||[],xr(r)?r:[],e&&n?vr(e):[])}return t.concat(r,vr(r,[],n))}function So(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function al(e){const t=Xt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=rn(e),l=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=Vr(n)!==l||Vr(o)!==i;return s&&(n=l,o=i),{width:n,height:o,$:s}}function Wo(e){return Zt(e)?e:e.contextElement}function Zn(e){const t=Wo(e);if(!rn(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:l}=al(t);let i=(l?Vr(n.width):n.width)/o,s=(l?Vr(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const gh=nn(0);function cl(e){const t=At(e);return qo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gh}function vh(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==At(e))&&t}function Hn(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),l=Wo(e);let i=nn(1);t&&(o?Zt(o)&&(i=Zn(o)):i=Zn(e));const s=vh(l,n,o)?cl(l):nn(0);let a=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(l){const e=At(l),t=o&&Zt(o)?At(o):o;let n=e,r=So(n);for(;r&&o&&t!==n;){const e=Zn(r),t=r.getBoundingClientRect(),o=Xt(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=l,c+=i,n=At(r),r=So(n)}}return Kr({width:u,height:d,x:a,y:c})}function so(e,t){const n=io(e).scrollLeft;return t?t.left+n:Hn(on(e)).left+n}function ul(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-so(e,n),y:n.top+t.scrollTop}}function wh(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const l="fixed"===r,i=on(o),s=!!t&&oo(t.floating);if(o===i||s&&l)return n;let a={scrollLeft:0,scrollTop:0},c=nn(1);const u=nn(0),d=rn(o);if((d||!d&&!l)&&(("body"!==Qn(o)||xr(i))&&(a=io(o)),rn(o))){const e=Hn(o);c=Zn(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}const h=!i||d||l?nn(0):ul(i,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-a.scrollTop*c.y+u.y+h.y}}function kh(e){return Array.from(e.getClientRects())}function yh(e){const t=on(e),n=io(e),o=e.ownerDocument.body,r=Ln(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=Ln(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+so(e);const s=-n.scrollTop;return"rtl"===Xt(o).direction&&(i+=Ln(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:i,y:s}}const Ui=25;function xh(e,t){const n=At(e),o=on(e),r=n.visualViewport;let l=o.clientWidth,i=o.clientHeight,s=0,a=0;if(r){l=r.width,i=r.height;const e=qo();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,a=r.offsetTop)}const c=so(o);if(c<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r);i<=25&&(l-=i)}else c<=25&&(l+=c);return{width:l,height:i,x:s,y:a}}const bh=new Set(["absolute","fixed"]);function _h(e,t){const n=Hn(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,l=rn(e)?Zn(e):nn(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:o*l.y}}function Ki(e,t,n){let o;if("viewport"===t)o=xh(e,n);else if("document"===t)o=yh(on(e));else if(Zt(t))o=_h(t,n);else{const n=cl(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Kr(o)}function dl(e,t){const n=En(e);return!(n===t||!Zt(n)||Gn(n))&&("fixed"===Xt(n).position||dl(n,t))}function Ch(e,t){const n=t.get(e);if(n)return n;let o=vr(e,[],!1).filter((e=>Zt(e)&&"body"!==Qn(e))),r=null;const l="fixed"===Xt(e).position;let i=l?En(e):e;for(;Zt(i)&&!Gn(i);){const t=Xt(i),n=jo(i);!n&&"fixed"===t.position&&(r=null),(l?!n&&!r:!n&&"static"===t.position&&r&&bh.has(r.position)||xr(i)&&!n&&dl(e,i))?o=o.filter((e=>e!==i)):r=t,i=En(i)}return t.set(e,o),o}function Eh(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const l=[..."clippingAncestors"===n?oo(t)?[]:Ch(t,this._c):[].concat(n),o],i=l[0],s=l.reduce(((e,n)=>{const o=Ki(t,n,r);return e.top=Ln(o.top,e.top),e.right=Wr(o.right,e.right),e.bottom=Wr(o.bottom,e.bottom),e.left=Ln(o.left,e.left),e}),Ki(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Mh(e){const{width:t,height:n}=al(e);return{width:t,height:n}}function Sh(e,t,n){const o=rn(t),r=on(t),l="fixed"===n,i=Hn(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const a=nn(0);function c(){a.x=so(r)}if(o||!o&&!l)if(("body"!==Qn(t)||xr(r))&&(s=io(t)),o){const e=Hn(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&c();l&&!o&&r&&c();const u=!r||o||l?nn(0):ul(r,s);return{x:i.left+s.scrollLeft-a.x-u.x,y:i.top+s.scrollTop-a.y-u.y,width:i.width,height:i.height}}function vo(e){return"static"===Xt(e).position}function Zi(e,t){if(!rn(e)||"fixed"===Xt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function fl(e,t){const n=At(e);if(oo(e))return n;if(!rn(e)){let t=En(e);for(;t&&!Gn(t);){if(Zt(t)&&!vo(t))return t;t=En(t)}return n}let o=Zi(e,t);for(;o&&ch(o)&&vo(o);)o=Zi(o,t);return o&&Gn(o)&&vo(o)&&!jo(o)?n:o||ph(e)||n}const Ah=function(e){return se(this,null,(function*(){const t=this.getOffsetParent||fl,n=this.getDimensions,o=yield n(e.floating);return{reference:Sh(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}}))};function Dh(e){return"rtl"===Xt(e).direction}const Th={convertOffsetParentRelativeRectToViewportRelativeRect:wh,getDocumentElement:on,getClippingRect:Eh,getOffsetParent:fl,getElementRects:Ah,getClientRects:kh,getDimensions:Mh,getScale:Zn,isElement:Zt,isRTL:Dh};function hl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $h(e,t){let n,o=null;const r=on(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),l();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;const f={rootMargin:-Ir(d)+"px "+-Ir(r.clientWidth-(u+h))+"px "+-Ir(r.clientHeight-(d+p))+"px "+-Ir(u)+"px",threshold:Ln(0,Wr(1,a))||1};let m=!0;function g(t){const o=t[0].intersectionRatio;if(o!==a){if(!m)return i();o?i(!1,o):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1===o&&!hl(c,e.getBoundingClientRect())&&i(),m=!1}try{o=new IntersectionObserver(g,nt(ae({},f),{root:r.ownerDocument}))}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),l}function Xi(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,c=Wo(e),u=r||l?[...c?vr(c):[],...vr(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const d=c&&s?$h(c,n):null;let h=-1,p=null;i&&(p=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!a&&p.observe(c),p.observe(t));let f,m=a?Hn(e):null;return a&&function t(){const o=Hn(e);m&&!hl(m,o)&&n(),m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,a&&cancelAnimationFrame(f)}}const Ih=ih,Fh=sh,Bh=nh,Rh=(e,t,n)=>{const o=new Map,r=ae({platform:Th},n),l=nt(ae({},r.platform),{_c:o});return th(e,t,nt(ae({},r),{platform:l}))},Lh=["id"],Nh=De({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,n=ue((()=>{if(void 0!==t.isDark&&null!==t.isDark)return!!t.isDark;if("undefined"!=typeof document)try{if(document.documentElement.classList.contains("dark")||null!=window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(e){}return!1})),o=V(null),r=V({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),l=V(!1);let i=null;function s(){return se(this,null,(function*(){var e,n;if(!t.anchorEl||!o.value)return;const l=[Ih(null!=(e=t.offset)?e:8),Bh(),Fh({padding:8})],{x:i,y:s}=yield Rh(t.anchorEl,o.value,{placement:null!=(n=t.placement)?n:"top",middleware:l,strategy:"fixed"});r.value.transform=`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`,r.value.left="0px",r.value.top="0px"}))}return Ae((()=>t.visible),(e=>se(null,null,(function*(){if(e)if(l.value=!1,yield Ye(),t.anchorEl&&o.value)try{const e=t.anchorEl.getBoundingClientRect();yield s();const n=r.value.transform;if(null!=t.originX&&null!=t.originY){const o=Math.abs(Number(t.originX)-e.left),i=Math.abs(Number(t.originY)-e.top);Math.hypot(o,i)>120?(r.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield Ye(),l.value=!0,yield Ye(),r.value.transform=n):l.value=!0}else l.value=!0;i=Xi(t.anchorEl,o.value,s)}catch(e){yield s(),l.value=!0,i=Xi(t.anchorEl,o.value,s)}else l.value=!0;else l.value=!1,i&&(i(),i=null)})))),Ae([()=>t.anchorEl,()=>t.placement,()=>t.content],(()=>se(null,null,(function*(){t.visible&&t.anchorEl&&o.value&&(yield Ye(),yield s())})))),Mn((()=>{i&&i()})),(i,s)=>(R(),Je(fs,{to:"body"},[Mt(Wn,{name:"tooltip",appear:""},{default:pn((()=>[_n(E("div",{id:t.id,ref_key:"tooltip",ref:o,style:pt({position:"fixed",left:r.value.left,top:r.value.top,transform:r.value.transform}),class:Ce(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[n.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},ze(e.content),15,Lh),[[Cn,e.visible&&l.value]])])),_:1})]))}}),Oh=Be(Nh,[["__scopeId","data-v-993f63aa"]]),Vo=V(!1),pl=V(""),ml=V("top"),ir=V(null),wr=V(null),Uo=V(null),Ko=V(null),gl=V(null);let Rr=null,Lr=null;function vl(){Rr&&(clearTimeout(Rr),Rr=null),Lr&&(clearTimeout(Lr),Lr=null)}let Yi=!1;function Ph(){if(Yi||"undefined"==typeof document)return;Yi=!0;const e=document.createElement("div");e.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(e),Tl({setup:()=>()=>{var e;return Or(Oh,{visible:Vo.value,"anchor-el":ir.value,content:pl.value,placement:ml.value,id:wr.value,originX:Uo.value,originY:Ko.value,isDark:null!=(e=gl.value)?e:void 0})}}).mount(e)}function jn(e,t,n="top",o=!1,r,l){if(!e)return;Ph(),vl();const i=()=>{var o,i;wr.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,ir.value=e,pl.value=t,ml.value=n,Uo.value=null!=(o=null==r?void 0:r.x)?o:null,Ko.value=null!=(i=null==r?void 0:r.y)?i:null,gl.value="boolean"==typeof l?l:null,Vo.value=!0;try{e.setAttribute("aria-describedby",wr.value)}catch(e){}};o?i():Rr=setTimeout(i,80)}function lo(e=!1){vl();const t=()=>{if(ir.value&&wr.value)try{ir.value.removeAttribute("aria-describedby")}catch(e){}Vo.value=!1,ir.value=null,wr.value=null,Uo.value=null,Ko.value=null};e?t():Lr=setTimeout(t,120)}let Fr=null,Gi=!1;function br(){return se(this,null,(function*(){if(Fr)return Fr;if(Gi)return null;try{return Fr=yield import("katex"),Fr}catch(e){return Gi=!0,null}}))}const wo=hs(!1);let Ji=null;function wl(){return Ji||(Ji=br().then((e=>{wo.value=!!e})).catch((()=>{wo.value=!1}))),$l(wo)}const zh=De({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=wl();return(n,o)=>(R(),j("span",{class:Ce([[ee(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},ze(e.node.content),3))}}),ut=Be(zh,[["__scopeId","data-v-56f30838"]]);ut.install=e=>{e.component(ut.__name,ut)};const sn=$o((()=>se(null,null,(function*(){var e,t;if("undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(t=null==(e=globalThis.process)?void 0:e.env)?void 0:t.NODE_ENV))return e=>{var t,n;return Or(ut,nt(ae({},e),{node:nt(ae({},e.node),{content:null!=(n=e.node.raw)?n:`$${null!=(t=e.node.content)?t:""}$`})}))};try{if(yield br())return(yield Promise.resolve().then((()=>Em))).default}catch(e){console.warn('[vue-markdown-render] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n;return Or(ut,nt(ae({},e),{node:nt(ae({},e.node),{content:null!=(n=e.node.raw)?n:`$${null!=(t=e.node.content)?t:""}$`})}))}})))),Hh=$o((()=>se(null,null,(function*(){try{if(yield br())return(yield Promise.resolve().then((()=>bm))).default}catch(e){console.warn('[vue-markdown-render] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n;return Or(ut,nt(ae({},e),{node:nt(ae({},e.node),{content:null!=(n=e.node.raw)?n:`$$${null!=(t=e.node.content)?t:""}$$`})}))}})))),wt=De({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(R(),j("span",{class:"reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",role:"button",tabindex:"0",onClick:n[0]||(n[0]=n=>t.$emit("click",n,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=n=>t.$emit("mouseEnter",n,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=n=>t.$emit("mouseLeave",n,e.node.id,e.messageId,e.threadId))},ze(e.node.id),33))});wt.install=e=>{e.component(wt.__name,wt)};const jh={class:"superscript-node"},qh={key:1},Wh=De({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,emphasis:Ft,footnote_reference:St,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,emoji:gt,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("sup",jh,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),j(Ke,{key:`${e.indexKey||"superscript"}-${r}`},[n[o.type]?(R(),Je(bt(n[o.type]),{key:0,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${r}`},null,8,["node","custom-id","index-key"])):(R(),j("span",qh,ze(o.content||o.raw),1))],64)))),128))]))}}),Dt=Be(Wh,[["__scopeId","data-v-0ca396bb"]]);Dt.install=e=>{e.component(Dt.__name,Dt)};const Vh={class:"subscript-node"},Uh={key:1},Kh=De({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,emphasis:Ft,footnote_reference:St,strikethrough:yt,highlight:It,insert:$t,superscript:Dt,emoji:gt,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("sub",Vh,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),j(Ke,{key:`${e.indexKey||"subscript"}-${r}`},[n[o.type]?(R(),Je(bt(n[o.type]),{key:0,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${r}`},null,8,["node","custom-id","index-key"])):(R(),j("span",Uh,ze(o.content||o.raw),1))],64)))),128))]))}}),Tt=Be(Kh,[["__scopeId","data-v-5e1f04df"]]);Tt.install=e=>{e.component(Tt.__name,Tt)};const Zh={class:"strong-node"},Xh=De({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,emphasis:Ft,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,footnote_reference:St,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("strong",Zh,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"strong"}-${r}`,"index-key":`${e.indexKey||"strong"}-${r}`,node:o,"custom-id":t.customId},null,8,["index-key","node","custom-id"])))),128))]))}}),kt=Be(Xh,[["__scopeId","data-v-53b6c7df"]]);kt.install=e=>{e.component(kt.__name,kt)};const Yh={class:"strikethrough-node"},Gh=De({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,emphasis:Ft,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,footnote_reference:St,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("del",Yh,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"strikethrough"}-${r}`,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${r}`},null,8,["node","custom-id","index-key"])))),128))]))}}),yt=Be(Gh,[["__scopeId","data-v-3716d25c"]]);yt.install=e=>{e.component(yt.__name,yt)};const Jh=["href","title","aria-label","aria-hidden"],Qh=["aria-hidden"],e1={class:"link-text-wrapper relative inline-flex"},t1={class:"leading-[normal] link-text"},n1={class:"leading-[normal] link-text"},r1=De({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=ue((()=>{var e,n,o,r,l,i;const s=void 0!==t.underlineBottom?"number"==typeof t.underlineBottom?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":null!=(e=t.color)?e:"#0366d6","--underline-height":`${null!=(n=t.underlineHeight)?n:2}px`,"--underline-bottom":s,"--underline-opacity":String(null!=(o=t.animationOpacity)?o:.9),"--underline-duration":`${null!=(r=t.animationDuration)?r:.8}s`,"--underline-timing":null!=(l=t.animationTiming)?l:"linear","--underline-iteration":"number"==typeof t.animationIteration?String(t.animationIteration):null!=(i=t.animationIteration)?i:"infinite"}})),o={text:ut,strong:kt,strikethrough:yt,emphasis:Ft},r=Il();function l(){t.showTooltip&&lo()}return(i,s)=>{var a,c,u,d;return e.node.loading?(R(),j("span",Yn({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},ee(r),{style:n.value}),[E("span",e1,[E("span",t1,[E("span",n1,ze(e.node.text),1)]),s[1]||(s[1]=E("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Qh)):(R(),j("a",Yn({key:0,class:"link-node",href:e.node.href,title:t.showTooltip?void 0:String(null!=(c=null!=(a=e.node.href)?a:e.node.title)?c:""),"aria-label":`Link: ${null!=(d=null!=(u=e.node.href)?u:e.node.title)?d:e.node.text}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},ee(r),{style:n.value,onMouseenter:s[0]||(s[0]=e=>function(e){var n,o,r,l,i,s;if(!t.showTooltip)return;const a=e,c=null!=(null==a?void 0:a.clientX)&&null!=(null==a?void 0:a.clientY)?{x:a.clientX,y:a.clientY}:void 0,u=null!=(s=null!=(i=null!=(r=null==(n=t.node)?void 0:n.href)?r:null==(o=t.node)?void 0:o.title)?i:null==(l=t.node)?void 0:l.text)?s:"";jn(e.currentTarget,u,"top",!1,c)}(e)),onMouseleave:l}),[(R(!0),j(Ke,null,ct(e.node.children,((n,r)=>(R(),Je(bt(o[n.type]),{key:`${e.indexKey||"emphasis"}-${r}`,node:n,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${r}`},null,8,["node","custom-id","index-key"])))),128))],16,Jh))}}}),xt=Be(r1,[["__scopeId","data-v-95c2e66f"]]);xt.install=e=>{e.component(xt.__name,xt)};const o1={class:"insert-node"},i1=De({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,emphasis:Ft,strikethrough:yt,highlight:It,subscript:Tt,superscript:Dt,emoji:gt,footnote_reference:St,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("ins",o1,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"insert"}-${r}`,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${r}`},null,8,["node","custom-id","index-key"])))),128))]))}}),$t=Be(i1,[["__scopeId","data-v-b8737de3"]]);$t.install=e=>{e.component($t.__name,$t)};const s1={class:"highlight-node"},l1=De({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,emphasis:Ft,strikethrough:yt,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,footnote_reference:St,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("mark",s1,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"highlight"}-${r}`,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${r}`},null,8,["node","custom-id","index-key"])))),128))]))}}),It=Be(l1,[["__scopeId","data-v-fc52b444"]]);It.install=e=>{e.component(It.__name,It)};const a1={class:"emphasis-node"},c1=De({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,strong:kt,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,footnote_reference:St,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>(R(),j("em",a1,[(R(!0),j(Ke,null,ct(e.node.children,((o,r)=>(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"emphasis"}-${r}`,node:o,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${r}`},null,8,["node","custom-id","index-key"])))),128))]))}}),Ft=Be(c1,[["__scopeId","data-v-c25e2822"]]);Ft.install=e=>{e.component(Ft.__name,Ft)};const u1=["id"],d1={class:"font-semibold mr-2 text-[#0366d6]"},f1={class:"flex-1"},sr=De({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(t,n)=>(R(),j("div",{id:`footnote-${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[E("span",d1,"["+ze(e.node.id)+"]",1),E("div",f1,[Jn([e.node.children],(()=>Mt(ee(Wt),{"index-key":`footnote-${e.indexKey}`,nodes:e.node.children,typewriter:e.typewriter,onCopy:n[0]||(n[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","typewriter"])),n,1)])],8,u1))});sr.install=e=>{e.component(sr.__name,sr)};const h1={class:"hard-break"},p1=De({__name:"HardBreakNode",props:{node:{}},setup:e=>(e,t)=>(R(),j("br",h1))}),Nn=Be(p1,[["__scopeId","data-v-50c58f70"]]);function m1(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,(e=>e.toUpperCase())).trim()}Nn.install=e=>{e.component(Nn.__name,Nn)};const kl={"common.copy":"Copy","common.copySuccess":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function Bm(e){Object.assign(kl,e)}function ao(){try{const e=globalThis.$vueI18nUse||null;if(e&&"function"==typeof e)try{const t=e();if(t&&"function"==typeof t.t)return{t:t.t.bind(t)}}catch(e){}}catch(e){}return se(null,null,(function*(){try{const e=yield import("vue-i18n"),t=e.useI18n||e.default&&e.default.useI18n;if(t&&"function"==typeof t)try{const e=t();if(e&&"function"==typeof e.t)try{globalThis.$vueI18nUse=()=>e}catch(e){}}catch(e){}}catch(e){}})),{t:e=>{var t;return null!=(t=kl[e])?t:m1(e)}}}const yl=Symbol("ViewportPriority");function g1(e,t){const n="undefined"!=typeof window&&"undefined"!=typeof document,o="boolean"==typeof t?V(t):t;let r=null;const l=new WeakMap;const i=(t,i)=>{const s=V(!1);let a,c=!1;const u=new Promise((e=>{a=()=>{c||(c=!0,e())}})),d=()=>{try{null==r||r.unobserve(t)}catch(e){}l.delete(t)};if(!n||!o.value)return s.value=!0,a(),{isVisible:s,whenVisible:u,destroy:d};const h=function(){var t;if(r||!n)return r;if("undefined"==typeof IntersectionObserver)return null;const o=null!=(t=e())?t:null;return r=new IntersectionObserver((e=>{for(const t of e){const e=l.get(t.target);if(e&&(t.isIntersecting||t.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(e){}}null==r||r.unobserve(t.target),l.delete(t.target)}}}),{root:o,rootMargin:"300px",threshold:0}),r}();return h?(l.set(t,{resolve:a,visible:s}),h.observe(t),{isVisible:s,whenVisible:u,destroy:d}):(s.value=!0,a(),{isVisible:s,whenVisible:u,destroy:d})};return Fl(yl,i),i}function er(){const e=Bl(yl,void 0);if(e)return e;const t=new WeakMap;let n=null;return e=>{const o=V(!1);let r,l=!1;const i=new Promise((e=>{r=()=>{l||(l=!0,e())}})),s=()=>{try{null==n||n.unobserve(e)}catch(e){}t.delete(e)},a=n||("undefined"==typeof window||"undefined"==typeof IntersectionObserver?null:(n=new IntersectionObserver((e=>{for(const o of e){const e=t.get(o.target);if(e&&(o.isIntersecting||o.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(e){}}null==n||n.unobserve(o.target),t.delete(o.target)}}}),{root:null,rootMargin:"300px",threshold:0}),n));return a?(t.set(e,{resolve:r,visible:o}),a.observe(e),{isVisible:o,whenVisible:i,destroy:s}):(o.value=!0,r(),{isVisible:o,whenVisible:i,destroy:s})}}const v1={class:"relative inline-block"},w1=["src","alt","title","loading","tabindex","aria-label"],k1={class:"text-sm whitespace-nowrap"},y1={key:1,class:"text-sm text-gray-500"},x1={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},b1={class:"text-sm whitespace-nowrap"},_1={key:0,class:"mt-2 text-sm text-gray-500 italic"},C1=De({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){const n=e,o=t,r=V(!1),l=V(!1),i=V(!1),s=V(null),a=er(),c=V(null),u=V("undefined"==typeof window);"undefined"!=typeof window&&Ae((()=>s.value),(e=>{var t;if(null==(t=c.value)||t.destroy(),c.value=null,!e)return void(u.value=!1);const n=a(e,{rootMargin:"400px"});c.value=n,u.value=n.isVisible.value,n.whenVisible.then((()=>{u.value=!0}))}),{immediate:!0}),Mn((()=>{var e;null==(e=c.value)||e.destroy(),c.value=null}));const d=ue((()=>l.value&&n.fallbackSrc?n.fallbackSrc:n.node.src)),h=ue((()=>!n.lazy||u.value)),p=ue((()=>/\.svg(?:\?|$)/i.test(d.value)));function f(){n.fallbackSrc&&!i.value?(i.value=!0,l.value=!0):(l.value=!0,o("error",n.node.src))}function m(){r.value=!0,l.value=!1,o("load",d.value)}function g(e){e.preventDefault(),r.value&&!l.value&&o("click",[e,d.value])}const{t:v}=ao();return Ae(d,(()=>{r.value=!1,l.value=!1})),(t,o)=>(R(),j("figure",{ref_key:"figureRef",ref:s,class:"text-center my-8"},[E("div",v1,[Mt(Wn,{name:"img-switch",mode:"out-in"},{default:pn((()=>{var i,s,a,c,u;return[e.node.loading||l.value||!h.value?l.value?e.node.loading||n.fallbackSrc?Ue("",!0):(R(),j("div",x1,[Kt(t.$slots,"error",{node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:l.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},(()=>[o[1]||(o[1]=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[E("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),E("span",b1,ze(ee(v)("image.loadError")),1)]),!0)])):(R(),j("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:pt(p.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?Kt(t.$slots,"placeholder",{key:0,node:n.node,displaySrc:d.value,imageLoaded:r.value,hasError:l.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:p.value},(()=>[o[0]||(o[0]=E("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),E("span",k1,ze(ee(v)("image.loading")),1)]),!0):(R(),j("span",y1,ze(e.node.raw),1))],4)):(R(),j("img",{key:"image",src:d.value,alt:String(null!=(s=null!=(i=n.node.alt)?i:n.node.title)?s:""),title:String(null!=(c=null!=(a=n.node.title)?a:n.node.alt)?c:""),class:Ce(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!r.value,"opacity-100":r.value,"cursor-pointer":r.value}]),style:pt(p.value?{minHeight:n.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:n.lazy?"lazy":"eager",decoding:"async",tabindex:r.value?0:-1,"aria-label":null!=(u=n.node.alt)?u:ee(v)("image.preview"),onError:f,onLoad:m,onClick:g},null,46,w1))]})),_:3})]),n.showCaption&&n.node.alt?(R(),j("figcaption",_1,ze(n.node.alt),1)):Ue("",!0)],512))}}),On=Be(C1,[["__scopeId","data-v-7ca79b66"]]);On.install=e=>{e.component(On.__name,On)};const E1=De({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({text:ut,inline_code:vt,link:xt,image:On,strong:kt,emphasis:Ft,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,checkbox:tn,checkbox_input:tn,footnote_reference:St,hardbreak:Nn,math_inline:sn,reference:wt},Vt(t.customId));return(o,r)=>Jn([e.node.children],(()=>(R(),Je(bt(`h${e.node.level}`),{class:Ce(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:pn((()=>[(R(!0),j(Ke,null,ct(e.node.children,((o,r,l,i)=>{const s=[o];if(i&&i.key===`${e.indexKey||"heading"}-${r}`&&ps(i,s))return i;const a=(R(),Je(bt(n[o.type]),{key:`${e.indexKey||"heading"}-${r}`,"custom-id":t.customId,node:o,"index-key":`${e.indexKey||"heading"}-${r}`},null,8,["custom-id","node","index-key"]));return a.memo=s,a}),r,0),128))])),_:1},8,["class"]))),r,2)}}),Ao=Be(E1,[["__scopeId","data-v-d8e179e9"]]),Zo=Ao;Zo.install=e=>{e.component(Ao.__name,Ao)};const M1=De({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ue((()=>null==t.value?{}:{value:t.value}));return(e,o)=>(R(),j("li",Yn({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[Jn([t.item.children],(()=>Mt(ee(Wt),{"index-key":`list-item-${t.indexKey}`,nodes:t.item.children,typewriter:t.typewriter,"batch-rendering":!1,onCopy:o[0]||(o[0]=t=>e.$emit("copy",t))},null,8,["index-key","nodes","typewriter"])),o,1)],16))}}),lr=Be(M1,[["__scopeId","data-v-e7aa2cc3"]]);lr.install=e=>{e.component(lr.__name,lr)};const S1=De({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(t,n)=>(R(),Je(bt(e.node.ordered?"ol":"ul"),{class:Ce(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:pn((()=>[(R(!0),j(Ke,null,ct(e.node.items,((o,r,l,i)=>{var s;const a=[o];if(i&&i.key===`${e.indexKey||"list"}-${r}`&&ps(i,a))return i;const c=(R(),Je(ee(lr),{key:`${e.indexKey||"list"}-${r}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,value:e.node.ordered?(null!=(s=e.node.start)?s:1)+r:void 0,onCopy:n[0]||(n[0]=e=>t.$emit("copy",e))},null,8,["item","custom-id","index-key","typewriter","value"]));return c.memo=a,c}),n,1),128))])),_:1},8,["class"]))}),ar=Be(S1,[["__scopeId","data-v-79057d57"]]);ar.install=e=>{e.component(ar.__name,ar)};const A1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e";function nr(e){try{if("undefined"!=typeof globalThis&&"function"==typeof globalThis.requestAnimationFrame)return globalThis.requestAnimationFrame(e)}catch(e){}return globalThis.setTimeout(e,0)}let at=null,xn=null;const it=new Map,D1=5;let Zr=5,Do=!1;function Rm(e){Do=!!e}function Lm(e){Number.isFinite(e)&&e>0&&(Zr=Math.floor(e))}function Nm(){return{inFlight:it.size,max:Zr}}const T1="WORKER_BUSY";function Om(e){at=e,xn=null;const t=e;at.onmessage=e=>{if(at!==t)return;const{id:n,ok:o,result:r,error:l}=e.data,i=it.get(n);i&&(!1===o||l?i.reject(new Error(l||"Unknown error")):i.resolve(r))},at.onerror=e=>{var n,o;if(at===t){if(0===it.size)return void(null==(n=console.debug)||n.call(console,"[mermaidWorkerClient] Worker error (no pending):",(null==e?void 0:e.message)||e));try{Do?console.error("[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e)}catch(e){}for(const[t,n]of it.entries())n.reject(new Error(`Worker error: ${e.message}`));it.clear()}},at.onmessageerror=e=>{var n,o;if(at===t){if(0===it.size)return void(null==(n=console.debug)||n.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",e));try{Do?console.error("[mermaidWorkerClient] Worker messageerror:",e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker messageerror:",e)}catch(e){}for(const[e,t]of it.entries())t.reject(new Error("Worker messageerror"));it.clear()}}}function Pm(){var e;if(at)try{for(const[e,t]of it.entries())t.reject(new Error("Worker cleared"));it.clear(),null==(e=at.terminate)||e.call(at)}catch(e){}at=null,xn=null}function $1(){return at||(xn=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),xn.name="WorkerInitError",xn.code="WORKER_INIT_ERROR",null)}function xl(e,t,n=1400){if(xn)return Promise.reject(xn);const o=$1();if(!o)return Promise.reject(xn);if(it.size>=Zr){const e=new Error("Worker busy");return e.name="WorkerBusy",e.code=T1,e.inFlight=it.size,e.max=Zr,Promise.reject(e)}return new Promise(((r,l)=>{const i=Math.random().toString(36).slice(2);let s,a=!1;const c=()=>{a||(a=!0,null!=s&&globalThis.clearTimeout(s),it.delete(i))},u={resolve:e=>{c(),r(e)},reject:e=>{c(),l(e)}};it.set(i,u);try{o.postMessage({id:i,action:e,payload:t})}catch(e){return it.delete(i),void l(e)}s=globalThis.setTimeout((()=>{const e=new Error("Worker call timed out");e.name="WorkerTimeout",e.code="WORKER_TIMEOUT";const t=it.get(i);t&&t.reject(e)}),n)}))}function I1(e,t,n=1400){return se(this,null,(function*(){try{return yield xl("canParse",{code:e,theme:t},n)}catch(e){return Promise.reject(e)}}))}function F1(e,t,n=1400){return se(this,null,(function*(){try{return yield xl("findPrefix",{code:e,theme:t},n)}catch(e){return Promise.reject(e)}}))}function Qi(){if(at)try{for(const[e,t]of it.entries())t.reject(new Error("Worker terminated"));it.clear(),at.terminate()}finally{at=null}}let lt=null;function B1(){return se(this,null,(function*(){if(lt)return lt;try{const e=yield import("mermaid"),t=e&&e.default?e.default:e;if(!t||"function"!=typeof t.render&&"function"!=typeof t.parse&&"function"!=typeof t.initialize)if(t&&t.mermaidAPI&&("function"==typeof t.mermaidAPI.render||"function"==typeof t.mermaidAPI.parse)){const e=t.mermaidAPI;lt=nt(ae({},t),{render:e.render.bind(e),parse:e.parse?e.parse.bind(e):void 0,initialize:n=>"function"==typeof t.initialize?t.initialize(n):e.initialize?e.initialize(n):void 0})}else lt=e.mermaid&&"function"==typeof e.mermaid.render?e.mermaid:t;else lt=t}catch(e){throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.')}try{const e=null==lt?void 0:lt.initialize;lt.initialize=t=>{const n=ae({suppressErrorRendering:!0},t||{});return"function"==typeof e?e.call(lt,n):null!=lt&&lt.mermaidAPI&&"function"==typeof lt.mermaidAPI.initialize?lt.mermaidAPI.initialize(n):void 0}}catch(e){}return lt}))}const R1={class:"flex items-center space-x-2"},L1=["src"],N1={class:"flex items-center space-x-1"},O1={class:"flex items-center space-x-1"},P1={class:"flex items-center space-x-1"},z1=["aria-pressed"],H1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},j1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},q1=["disabled"],W1=["disabled"],V1={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},U1={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},K1={key:1,class:"relative"},Z1={class:"absolute top-2 right-2 z-10 rounded-lg"},X1={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Y1={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},G1=300,J1=500,Q1=De({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3}},emits:["copy"],setup(e,{emit:t}){var n,o;const r=e,l=t,{t:i}=ao();let s=null;const a=V(!1);"undefined"!=typeof window&&se(null,null,(function*(){var e;s=yield B1(),a.value=!!s,null==(e=null==s?void 0:s.initialize)||e.call(s,{startOnLoad:!1,securityLevel:"loose"})}));const c=V(!1),u=V(!1),d=V(),h=V(),p=V(),f=V(),m=V(null),g=er(),v=V(null),k=V("undefined"==typeof window),y=V(),w=ue((()=>r.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode")));const x=V(1),b=V(0),_=V(0),C=V(!1),M=V({x:0,y:0}),D=V(!1),A=V(!1),S=V(!1),F=V(null),$=V(0),B=V(!1);let T=null;const I=V("360px");let L=null;const z=V(!1),N=V(!1),O=V({}),q=V(null),P=V(""),H=V(0);let W=null;const X=V(!1),K=V({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),U=ue((()=>{var e,t,n,o;return{worker:null!=(e=r.workerTimeoutMs)?e:1400,parse:null!=(t=r.parseTimeoutMs)?t:1800,render:null!=(n=r.renderTimeoutMs)?n:2500,fullRender:null!=(o=r.fullRenderTimeoutMs)?o:4e3}})),Z=null!=(n=globalThis.cancelIdleCallback)?n:e=>clearTimeout(e);let Y=null,G=null,J=!1,Q=800,te=null,ne=0,oe=!0;function re(e,t){const n=null==t?void 0:t.timeoutMs,o=null==t?void 0:t.signal;if(null!=o&&o.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let r=null,l=!1,i=null;return new Promise(((t,s)=>{const a=()=>{null!=r&&clearTimeout(r),i&&o&&o.removeEventListener("abort",i)};n&&n>0&&(r=globalThis.setTimeout((()=>{l||(l=!0,a(),s(new Error("Operation timed out")))}),n)),o&&(i=()=>{l||(l=!0,a(),s(new DOMException("Aborted","AbortError")))},o.addEventListener("abort",i)),e().then((e=>{l||(l=!0,a(),t(e))})).catch((e=>{l||(l=!0,a(),s(e))}))}))}function le(e){if("undefined"==typeof document||!p.value)return;const t=document.createElement("div");t.className="text-red-500 p-4",t.textContent="Failed to render diagram: ";const n=document.createElement("span");n.textContent=e instanceof Error?e.message:"Unknown error",t.appendChild(n),p.value.innerHTML="",p.value.appendChild(t),I.value="360px",X.value=!0,Oe()}function ie(e){return!e||e.disabled}function ae(e,t,n="top"){if(ie(e.currentTarget))return;const o=e,l=null!=(null==o?void 0:o.clientX)&&null!=(null==o?void 0:o.clientY)?{x:o.clientX,y:o.clientY}:void 0;jn(e.currentTarget,t,n,!1,l,r.isDark)}function ce(){lo()}function de(e){if(ie(e.currentTarget))return;const t=c.value?i("common.copied")||"Copied":i("common.copy")||"Copy",n=e,o=null!=(null==n?void 0:n.clientX)&&null!=(null==n?void 0:n.clientY)?{x:n.clientX,y:n.clientY}:void 0;jn(e.currentTarget,t,"top",!1,o,r.isDark)}function he(e,t){const n=`%%{init: {"theme": "${"dark"===t?"dark":"default"}"}}%%\n`;return e.trimStart().startsWith("%%{")?e:n+e}function pe(){return oe&&!D.value&&!z.value&&!X.value}function fe(e){const t=e.split(/\r?\n/);for(;t.length>0;){const e=t[t.length-1].trimEnd();if(""!==e){if(!(/^[-=~>|<\s]+$/.test(e.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(e)||/[-|><]$/.test(e)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(e)))break;t.pop()}else t.pop()}return t.join("\n")}function me(e,t,n){return se(this,null,(function*(){var o;try{return yield I1(e,t,null!=(o=null==n?void 0:n.timeoutMs)?o:U.value.worker)}catch(o){return yield function(e,t,n){return se(this,null,(function*(){var o,r;if(!s)return;const l=s,i=he(e,t);if("function"==typeof l.parse)return yield re((()=>l.parse(i)),{timeoutMs:null!=(o=null==n?void 0:n.timeoutMs)?o:U.value.parse,signal:null==n?void 0:n.signal}),!0;const a=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield re((()=>s.render(a,i)),{timeoutMs:null!=(r=null==n?void 0:n.timeoutMs)?r:U.value.render,signal:null==n?void 0:n.signal}),!0}))}(e,t,n)}}))}"undefined"!=typeof window&&Ae((()=>d.value),(e=>{var t;if(null==(t=v.value)||t.destroy(),v.value=null,!e)return void(k.value=!1);const n=g(e,{rootMargin:"400px"});v.value=n,k.value=n.isVisible.value,n.whenVisible.then((()=>{k.value=!0}))}),{immediate:!0}),Mn((()=>{var e;null==(e=v.value)||e.destroy(),v.value=null}));const ge=ue((()=>D.value||S.value||u.value));function ve(e){if(!d.value||!p.value)return;const t=p.value.querySelector("svg");if(!t)return;let n=0,o=0;const r=t.getAttribute("viewBox"),l=t.getAttribute("width"),i=t.getAttribute("height");if(r){const e=r.split(" ");4===e.length&&(n=Number.parseFloat(e[2]),o=Number.parseFloat(e[3]))}if((!n||!o)&&l&&i&&(n=Number.parseFloat(l),o=Number.parseFloat(i)),Number.isNaN(n)||Number.isNaN(o)||n<=0||o<=0)try{const e=t.getBBox();e&&e.width>0&&e.height>0&&(n=e.width,o=e.height)}catch(e){return void console.error("Failed to get SVG BBox:",e)}if(n>0&&o>0){const t=o/n;let r=(null!=e?e:d.value.clientWidth)*t;r>o&&(r=o),I.value=`${r}px`}}const ke=V(!1),ye=ue((()=>({transform:`translate(${b.value}px, ${_.value}px) scale(${x.value})`})));function we(e){"Escape"===e.key&&ke.value&&be()}function xe(){if(ke.value=!0,"undefined"!=typeof document)try{document.body.style.overflow="hidden"}catch(e){}if("undefined"!=typeof window)try{window.addEventListener("keydown",we)}catch(e){}Ye((()=>{if(d.value&&f.value){const e=d.value.cloneNode(!0);e.classList.add("fullscreen");const t=e.querySelector("[data-mermaid-wrapper]");t&&(m.value=t,t.style.transform=ye.value.transform),f.value.innerHTML="",f.value.appendChild(e)}}))}function be(){if(ke.value=!1,f.value&&(f.value.innerHTML=""),m.value=null,"undefined"!=typeof document)try{document.body.style.overflow=""}catch(e){}if("undefined"!=typeof window)try{window.removeEventListener("keydown",we)}catch(e){}}function _e(){x.value<3&&(x.value+=.1)}function Ee(){x.value>.5&&(x.value-=.1)}function Me(){x.value=1,b.value=0,_.value=0}function De(e){C.value=!0,e instanceof MouseEvent?M.value={x:e.clientX-b.value,y:e.clientY-_.value}:M.value={x:e.touches[0].clientX-b.value,y:e.touches[0].clientY-_.value}}function Se(e){if(!C.value)return;let t,n;e instanceof MouseEvent?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY),b.value=t-M.value.x,_.value=n-M.value.y}function Fe(){C.value=!1}function $e(e){if(e.ctrlKey||e.metaKey){if(e.preventDefault(),!d.value)return;const t=d.value.getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top,r=n-t.width/2,l=o-t.height/2,i=(r-b.value)/x.value,s=(l-_.value)/x.value,a=.01*-e.deltaY,c=Math.min(Math.max(x.value+a,.5),3);c!==x.value&&(b.value=r-i*c,_.value=l-s*c,x.value=c)}}function Be(){return se(this,null,(function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(w.value)),c.value=!0,l("copy",w.value),setTimeout((()=>{c.value=!1}),1e3)}catch(e){console.error("Failed to copy:",e)}}))}function Te(){return se(this,null,(function*(){var e;try{const t=null==(e=p.value)?void 0:e.querySelector("svg");if(!t)return void console.error("SVG element not found");const n=(new XMLSerializer).serializeToString(t),o=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(o);if("undefined"!=typeof document){const e=document.createElement("a");e.href=r,e.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(e){}URL.revokeObjectURL(r)}}catch(e){console.error("Failed to export SVG:",e)}}))}function Re(e){return se(this,null,(function*(){const t=y.value;if(!t)return A.value=!0,void(D.value="source"===e);const n=t.getBoundingClientRect().height;t.style.height=`${n}px`,t.style.overflow="hidden",A.value=!0,D.value="source"===e,yield Ye();const o=t.scrollHeight;t.style.transition="height 180ms ease",t.offsetHeight,t.style.height=`${o}px`;const r=()=>{t.style.transition="",t.style.height="",t.style.overflow="",t.removeEventListener("transitionend",l)};function l(){r()}t.addEventListener("transitionend",l),setTimeout((()=>r()),220)}))}function Ie(){return se(this,null,(function*(){return S.value?F.value:p.value||(yield Ye(),p.value)?(S.value=!0,F.value=se(null,null,(function*(){var e;if(s){p.value&&(p.value.style.opacity="0");try{const t=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!z.value&&!N.value&&(null==(e=s.initialize)||e.call(s,{securityLevel:"loose",startOnLoad:!1}));const n=function(e){const t=w.value,n=`%%{init: {"theme": "${"dark"===e?"dark":"default"}"}}%%\n`;return t.trim().startsWith("%%{")?t:n+t}(r.isDark?"dark":"light"),o=yield re((()=>s.render(t,n)),{timeoutMs:U.value.fullRender}),l=null==o?void 0:o.svg,i=null==o?void 0:o.bindFunctions;if(p.value){p.value.innerHTML=l,null==i||i(p.value),!z.value&&!N.value&&(ve(),z.value=!0,K.value={zoom:x.value,translateX:b.value,translateY:_.value,containerHeight:I.value});const e=r.isDark?"dark":"light";O.value[e]=l,N.value&&(N.value=!1),X.value=!1}}catch(e){console.error("Failed to render mermaid diagram:",e),!1===r.loading&&le(e)}finally{yield Ye(),p.value&&(p.value.style.opacity="1"),S.value=!1,F.value=null}}})),F.value):void console.warn("Mermaid container not ready")}))}Ae(ye,(e=>{ke.value&&m.value&&(m.value.style.transform=e.transform)}),{immediate:!0});const Le=null!=(o=globalThis.requestIdleCallback)?o:(e,t)=>setTimeout((()=>e({didTimeout:!0})),16);function je(){return se(this,null,(function*(){var e,t;const n=Date.now(),o=++H.value;W&&W.abort(),W=new AbortController;const l=W.signal,i=r.isDark?"dark":"light",a=w.value,c=a.replace(/\s+/g,"");if(!a.trim())return p.value&&(p.value.innerHTML=""),q.value=null,P.value="",void(X.value=!1);if(c===P.value)return;try{const u=yield function(e,t,n){return se(this,null,(function*(){var o;try{if(yield me(e,t,n))return{fullOk:!0,prefixOk:!1}}catch(e){if("AbortError"===(null==e?void 0:e.name))throw e}let r=fe(e);if(r&&r.trim()&&r!==e)try{try{const l=yield F1(e,t,null!=(o=null==n?void 0:n.timeoutMs)?o:U.value.worker);l&&l.trim()&&(r=l)}catch(e){}if(yield me(r,t,n))return{fullOk:!1,prefixOk:!0,prefix:r}}catch(e){if("AbortError"===(null==e?void 0:e.name))throw e}return{fullOk:!1,prefixOk:!1}}))}(a,i,{signal:l,timeoutMs:U.value.worker});if(u.fullOk)return yield Ie(),void(H.value===o&&(q.value=null!=(t=null==(e=p.value)?void 0:e.innerHTML)?t:null,P.value=c,X.value=!1));const d=ne&&n<=ne;if(u.prefixOk&&u.prefix&&pe()&&!d)return void(yield function(e){return se(this,null,(function*(){if(pe()&&(p.value||(yield Ye(),p.value))&&!S.value){S.value=!0;try{if(!s)return;const t=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,n=r.isDark?"dark":"light",o=fe(e),l=he(o&&o.trim()?o:e,n);p.value&&(p.value.style.opacity="0");const i=yield re((()=>s.render(t,l)),{timeoutMs:U.value.render}),a=null==i?void 0:i.svg,c=null==i?void 0:i.bindFunctions;p.value&&a&&(p.value.innerHTML=a,null==c||c(p.value),ve())}catch(e){}finally{yield Ye(),p.value&&(p.value.style.opacity="1"),S.value=!1}}}))}(u.prefix))}catch(e){if("AbortError"===(null==e?void 0:e.name))return}if(H.value!==o||X.value)return;const u=O.value[i];u&&p.value&&(p.value.innerHTML=u)}))}const Ne=function(e,t){let n=null;return(...o)=>{n&&clearTimeout(n),n=setTimeout((()=>e(...o)),t)}}((()=>{Le((()=>{je()}),{timeout:500})}),G1);function Oe(){J&&(J=!1,Q=800,oe=!1,te&&(te.abort(),te=null),Y&&(globalThis.clearTimeout(Y),Y=null),G&&(Z(G),G=null),ne=Date.now())}function qe(){if(Oe(),W){try{W.abort()}catch(e){}W=null}if(te){try{te.abort()}catch(e){}te=null}Qi()}function Ve(e=800){J&&(Y&&globalThis.clearTimeout(Y),Y=globalThis.setTimeout((()=>{G=Le((()=>se(null,null,(function*(){if(!J)return;if(D.value||z.value)return void Oe();const e=r.isDark?"dark":"light",t=w.value;if(t.trim()){te&&te.abort(),te=new AbortController;try{if((yield me(t,e,{signal:te.signal,timeoutMs:U.value.worker}))&&(yield Ie(),z.value))return void Oe()}catch(e){}Q=Math.min(Math.floor(1.5*Q),4e3),Ve(Q)}else Ve(Q)}))),{timeout:500})}),e))}function Pe(){J||D.value||z.value||(J=!0,ne=0,oe=!0,Ve(500))}Ae((()=>w.value),(()=>{z.value=!1,O.value={},Ne(),!D.value&&a.value&&Pe(),function(){if(!D.value||!a.value)return;const e=w.value.length;e!==$.value&&(B.value=!0,$.value=e,T&&clearTimeout(T),T=setTimeout((()=>{B.value&&D.value&&w.value.trim()&&(B.value=!1,Re("preview"))}),J1))}()})),Ae((()=>r.isDark),(()=>se(null,null,(function*(){if(!z.value||X.value)return;const e=r.isDark?"dark":"light";if(O.value[e])return void(p.value&&(p.value.innerHTML=O.value[e]));const t={zoom:x.value,translateX:b.value,translateY:_.value,containerHeight:I.value},n=1!==x.value||0!==b.value||0!==_.value;N.value=!0,n&&(x.value=1,b.value=0,_.value=0,yield Ye()),yield Ie(),n&&(yield Ye(),x.value=t.zoom,b.value=t.translateX,_.value=t.translateY,I.value=t.containerHeight,K.value=t)})))),Ae((()=>D.value),(e=>se(null,null,(function*(){if(e)Oe(),z.value&&(K.value={zoom:x.value,translateX:b.value,translateY:_.value,containerHeight:I.value});else{if(X.value)return;const e=r.isDark?"dark":"light";if(z.value&&O.value[e])return yield Ye(),p.value&&(p.value.innerHTML=O.value[e]),x.value=K.value.zoom,b.value=K.value.translateX,_.value=K.value.translateY,void(I.value=K.value.containerHeight);if(yield Ye(),!a.value)return;yield je(),Pe()}})))),Ae((()=>r.loading),((e,t)=>se(null,null,(function*(){if(!0===t&&!1===e){const e=w.value.trim();if(!e)return qe();const t=r.isDark?"dark":"light",n=e.replace(/\s+/g,"");if(z.value&&n===P.value)return yield Ye(),p.value&&!p.value.querySelector("svg")&&O.value[t]&&(p.value.innerHTML=O.value[t]),void qe();try{yield me(e,t,{timeoutMs:U.value.worker}),yield Ie(),P.value=n,X.value=!1,qe()}catch(e){qe(),le(e)}}})))),Ae(d,(e=>{L&&L.disconnect(),e&&!z.value&&!N.value&&(L=new ResizeObserver((e=>{e&&e.length>0&&!z.value&&!N.value&&nr((()=>{ve(e[0].contentRect.width)}))})),L.observe(e))}),{immediate:!0}),Xr((()=>se(null,null,(function*(){yield Ye(),A.value||(D.value=!a.value),k.value&&(Ne(),$.value=w.value.length)})))),Ae((()=>a.value),(e=>{A.value||(D.value=!e)})),Ae((()=>k.value),(e=>{e&&(z.value||(Ne(),$.value=w.value.length),!r.loading&&!z.value&&Ne())}),{immediate:!1}),ms((()=>{T&&clearTimeout(T),L&&L.disconnect(),W&&(W.abort(),W=null),Qi(),Oe()})),Ae((()=>u.value),(e=>se(null,null,(function*(){e?(Oe(),W&&W.abort()):z.value||(yield Ye(),Ne(),D.value||Pe())}))),{immediate:!1});const He=ue((()=>r.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"));return(e,t)=>(R(),j("div",{class:Ce(["my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":r.loading}]])},[E("div",{class:Ce(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",r.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[E("div",R1,[E("img",{src:ee(A1),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,L1),E("span",{class:Ce(["text-sm font-medium font-mono",r.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)]),a.value?(R(),j("div",{key:0,class:Ce(["flex items-center space-x-1 rounded-md p-0.5",r.isDark?"bg-gray-700":"bg-gray-100"])},[E("button",{class:Ce(["px-2.5 py-1 text-xs rounded transition-colors",[D.value?r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:t[0]||(t[0]=e=>Re("preview")),onMouseenter:t[1]||(t[1]=e=>ae(e,ee(i)("common.preview")||"Preview")),onFocus:t[2]||(t[2]=e=>ae(e,ee(i)("common.preview")||"Preview")),onMouseleave:ce,onBlur:ce},[E("div",N1,[t[21]||(t[21]=E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),E("circle",{cx:"12",cy:"12",r:"3"})])],-1)),E("span",null,ze(ee(i)("common.preview")||"Preview"),1)])],34),E("button",{class:Ce(["px-2.5 py-1 text-xs rounded transition-colors",[D.value?r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:t[3]||(t[3]=e=>Re("source")),onMouseenter:t[4]||(t[4]=e=>ae(e,ee(i)("common.source")||"Source")),onFocus:t[5]||(t[5]=e=>ae(e,ee(i)("common.source")||"Source")),onMouseleave:ce,onBlur:ce},[E("div",O1,[t[22]||(t[22]=E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),E("span",null,ze(ee(i)("common.source")||"Source"),1)])],34)],2)):Ue("",!0),E("div",P1,[E("button",{class:Ce(He.value),"aria-pressed":u.value,onClick:t[6]||(t[6]=e=>u.value=!u.value),onMouseenter:t[7]||(t[7]=e=>ae(e,u.value?ee(i)("common.expand")||"Expand":ee(i)("common.collapse")||"Collapse")),onFocus:t[8]||(t[8]=e=>ae(e,u.value?ee(i)("common.expand")||"Expand":ee(i)("common.collapse")||"Collapse")),onMouseleave:ce,onBlur:ce},[(R(),j("svg",{style:pt({rotate:u.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...t[23]||(t[23]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,z1),E("button",{class:Ce(He.value),onClick:Be,onMouseenter:t[9]||(t[9]=e=>de(e)),onFocus:t[10]||(t[10]=e=>de(e)),onMouseleave:ce,onBlur:ce},[c.value?(R(),j("svg",j1,[...t[25]||(t[25]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(R(),j("svg",H1,[...t[24]||(t[24]=[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),E("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34),a.value?(R(),j("button",{key:0,class:Ce(`${He.value} ${ge.value?"opacity-50 cursor-not-allowed":""}`),disabled:ge.value,onClick:Te,onMouseenter:t[11]||(t[11]=e=>ae(e,ee(i)("common.export")||"Export")),onFocus:t[12]||(t[12]=e=>ae(e,ee(i)("common.export")||"Export")),onMouseleave:ce,onBlur:ce},[...t[26]||(t[26]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),E("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,q1)):Ue("",!0),a.value?(R(),j("button",{key:1,class:Ce(`${He.value} ${ge.value?"opacity-50 cursor-not-allowed":""}`),disabled:ge.value,onClick:xe,onMouseenter:t[13]||(t[13]=e=>ae(e,ke.value?ee(i)("common.minimize")||"Minimize":ee(i)("common.open")||"Open")),onFocus:t[14]||(t[14]=e=>ae(e,ke.value?ee(i)("common.minimize")||"Minimize":ee(i)("common.open")||"Open")),onMouseleave:ce,onBlur:ce},[ke.value?(R(),j("svg",U1,[...t[28]||(t[28]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(R(),j("svg",V1,[...t[27]||(t[27]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,W1)):Ue("",!0)])],2),_n(E("div",{ref_key:"modeContainerRef",ref:y},[D.value?(R(),j("div",{key:0,class:Ce(["p-4",r.isDark?"bg-gray-900":"bg-gray-50"])},[E("pre",{class:Ce(["text-sm font-mono whitespace-pre-wrap",r.isDark?"text-gray-300":"text-gray-700"])},ze(w.value),3)],2)):(R(),j("div",K1,[E("div",Z1,[E("div",X1,[E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:_e,onMouseenter:t[15]||(t[15]=e=>ae(e,ee(i)("common.zoomIn")||"Zoom in")),onFocus:t[16]||(t[16]=e=>ae(e,ee(i)("common.zoomIn")||"Zoom in")),onMouseleave:ce,onBlur:ce},[...t[29]||(t[29]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("circle",{cx:"11",cy:"11",r:"8"}),E("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ee,onMouseenter:t[17]||(t[17]=e=>ae(e,ee(i)("common.zoomOut")||"Zoom out")),onFocus:t[18]||(t[18]=e=>ae(e,ee(i)("common.zoomOut")||"Zoom out")),onMouseleave:ce,onBlur:ce},[...t[30]||(t[30]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("circle",{cx:"11",cy:"11",r:"8"}),E("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Me,onMouseenter:t[19]||(t[19]=e=>ae(e,ee(i)("common.resetZoom")||"Reset zoom")),onFocus:t[20]||(t[20]=e=>ae(e,ee(i)("common.resetZoom")||"Reset zoom")),onMouseleave:ce,onBlur:ce},ze(Math.round(100*x.value))+"% ",35)])]),E("div",{ref_key:"mermaidContainer",ref:d,class:Ce(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",r.isDark?"bg-gray-900":"bg-gray-50"]),style:pt({height:I.value}),onWheel:$e,onMousedown:De,onMousemove:Se,onMouseup:Fe,onMouseleave:Fe,onTouchstartPassive:De,onTouchmovePassive:Se,onTouchendPassive:Fe},[E("div",{ref_key:"mermaidWrapper",ref:h,"data-mermaid-wrapper":"",class:Ce(["absolute inset-0 cursor-grab",{"cursor-grabbing":C.value}]),style:pt(ye.value)},[E("div",{ref_key:"mermaidContent",ref:p,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38),(R(),Je(fs,{to:"body"},[Mt(Wn,{name:"mermaid-dialog",appear:""},{default:pn((()=>[ke.value?(R(),j("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:Rl(be,["self"])},[E("div",{class:Ce(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",r.isDark?"bg-gray-900":"bg-white"])},[E("div",Y1,[E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:_e},[...t[31]||(t[31]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("circle",{cx:"11",cy:"11",r:"8"}),E("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ee},[...t[32]||(t[32]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("circle",{cx:"11",cy:"11",r:"8"}),E("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),E("button",{class:Ce(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Me},ze(Math.round(100*x.value))+"% ",3),E("button",{class:Ce(["inline-flex items-center justify-center p-2 rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:be},[...t[33]||(t[33]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),E("div",{ref_key:"modalContent",ref:f,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden",onWheel:$e,onMousedown:De,onMousemove:Se,onMouseup:Fe,onMouseleave:Fe,onTouchstart:De,onTouchmove:Se,onTouchend:Fe},null,544)],2)])):Ue("",!0)])),_:1})]))]))],512),[[Cn,!u.value]])],2))}}),Xn=Be(Q1,[["__scopeId","data-v-d0cb88c1"]]);Xn.install=e=>{e.component(Xn.__name,Xn)};const e0={dir:"auto",class:"paragraph-node"},t0=De({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=ae({inline_code:vt,image:On,link:xt,hardbreak:Nn,emphasis:Ft,strong:kt,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,checkbox:tn,math_inline:sn,checkbox_input:tn,reference:wt},Vt(t.customId)),o=wl();return(r,l)=>(R(),j("p",e0,[(R(!0),j(Ke,null,ct(e.node.children,((r,l)=>(R(),j(Ke,{key:`${e.indexKey||"paragraph"}-${l}`},["text"!==r.type?(R(),Je(bt(n[r.type]),{key:0,node:r,"index-key":`${e.indexKey}-${l}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(R(),j("span",{key:1,class:Ce([[ee(o)&&r.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},ze(r.content),3))],64)))),128))]))}}),cr=Be(t0,[["__scopeId","data-v-99e1c125"]]);cr.install=e=>{e.component(cr.__name,cr)};const n0=["aria-busy","aria-label","data-language"],r0=["textContent"],Pn=De({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,n=ue((()=>{var e,n,o;const r=String(null!=(n=null==(e=t.node)?void 0:e.language)?n:"");return String(null!=(o=String(r).split(/\s+/g)[0])?o:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"})),o=ue((()=>`language-${n.value}`)),r=ue((()=>{const e=n.value;return e?`Code block: ${e}`:"Code block"}));return(t,l)=>(R(),j("pre",{class:Ce([o.value]),"aria-busy":!0===e.node.loading,"aria-label":r.value,"data-language":n.value,tabindex:"0"},[l[0]||(l[0]=Qo("    ",-1)),E("code",{translate:"no",textContent:ze(e.node.code)},null,8,r0),l[1]||(l[1]=Qo("\n  ",-1))],10,n0))}});Pn.install=e=>{e.component(Pn.__name,Pn)};const o0={class:"table-node-wrapper"},i0=["aria-busy"],s0={class:"border-[var(--table-border,#cbd5e1)]"},l0={class:"border-b"},a0={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},c0=De({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=ue((()=>{var e,n,o,r;return null!=(r=null==(o=null==(n=null==(e=t.node)?void 0:e.header)?void 0:n.cells)?void 0:o.length)?r:0})),o=ue((()=>{const e=n.value||1,t=Math.floor(100/e);return Array.from({length:e}).map(((n,o)=>o===e-1?100-t*(e-1)+"%":`${t}%`))})),r=ue((()=>{var e;return null!=(e=t.node.loading)&&e})),l=ue((()=>{var e;return null!=(e=t.node.rows)?e:[]}));return(n,i)=>(R(),j("div",o0,[E("table",{class:Ce(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[E("colgroup",null,[(R(!0),j(Ke,null,ct(o.value,((e,t)=>(R(),j("col",{key:`col-${t}`,style:pt({width:e})},null,4)))),128))]),E("thead",s0,[E("tr",l0,[(R(!0),j(Ke,null,ct(e.node.header.cells,((o,r)=>(R(),j("th",{key:`header-${r}`,dir:"auto",class:Ce(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",["right"===o.align?"text-right":"center"===o.align?"text-center":"text-left"]])},[Mt(ee(Wt),{nodes:o.children,"index-key":`table-th-${e.indexKey}`,typewriter:t.typewriter,onCopy:i[0]||(i[0]=e=>n.$emit("copy",e))},null,8,["nodes","index-key","typewriter"])],2)))),128))])]),E("tbody",null,[(R(!0),j(Ke,null,ct(l.value,((o,r)=>(R(),j("tr",{key:`row-${r}`,class:Ce(["border-[var(--table-border,#cbd5e1)]",[r<l.value.length-1?"border-b":""]])},[(R(!0),j(Ke,null,ct(o.cells,((o,l)=>(R(),j("td",{key:`cell-${r}-${l}`,class:Ce(["p-[calc(4/7*1em)] overflow-x-auto",["right"===o.align?"text-right":"center"===o.align?"text-center":"text-left"]]),dir:"auto"},[Mt(ee(Wt),{nodes:o.children,"index-key":`table-td-${e.indexKey}`,typewriter:t.typewriter,onCopy:i[1]||(i[1]=e=>n.$emit("copy",e))},null,8,["nodes","index-key","typewriter"])],2)))),128))],2)))),128))])],10,i0),Mt(Wn,{name:"table-node-fade"},{default:pn((()=>[r.value?(R(),j("div",a0,[Kt(n.$slots,"loading",{isLoading:r.value},(()=>[i[2]||(i[2]=E("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),i[3]||(i[3]=E("span",{class:"sr-only"},"Loading",-1))]),!0)])):Ue("",!0)])),_:3})]))}}),ur=Be(c0,[["__scopeId","data-v-50ef14ca"]]);ur.install=e=>{e.component(ur.__name,ur)};const u0={},d0={class:"hr-node"};function f0(e,t){return R(),j("hr",d0)}const dr=Be(u0,[["render",f0],["__scopeId","data-v-639cbad9"]]);dr.install=e=>{e.component(dr.__name,dr)};const h0={key:1,class:"html-block-node__placeholder"},p0=De({__name:"HtmlBlockNode",props:{node:{}},setup(e){const t=e,n=ue((()=>{const e=t.node.attrs;if(e){if(Array.isArray(e)){const t={};for(const n of e){if(!n||n.length<2)continue;const[e,o]=n;null!=e&&(t[String(e)]=null==o?"":String(o))}return t}return e}})),o=V(null),r=V("undefined"==typeof window),l=V(t.node.content),i=er(),s=V(null),a=!!t.node.loading;return"undefined"!=typeof window?(Ae(o,(e=>{var n,o;if(null==(o=null==(n=s.value)?void 0:n.destroy)||o.call(n),s.value=null,!a)return r.value=!0,void(l.value=t.node.content);if(!e)return void(r.value=!1);const c=i(e,{rootMargin:"400px"});s.value=c,r.value=c.isVisible.value,c.whenVisible.then((()=>{r.value=!0}))}),{immediate:!0}),Ae((()=>t.node.content),(e=>{(!a||r.value)&&(l.value=e)}))):r.value=!0,Mn((()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.destroy)||t.call(e),s.value=null})),(t,i)=>(R(),j("div",Yn({ref_key:"htmlRef",ref:o,class:"html-block-node"},n.value),[r.value?Jn([l.value],(()=>(R(),j("div",{key:0,innerHTML:l.value},null,8,["innerHTML"]))),i,0):(R(),j("div",h0,[Kt(t.$slots,"placeholder",{node:e.node},(()=>[i[1]||(i[1]=E("span",{class:"html-block-node__placeholder-bar"},null,-1)),i[2]||(i[2]=E("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),i[3]||(i[3]=E("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))]),!0)]))],16))}}),m0=Be(p0,[["__scopeId","data-v-ed22b926"]]),g0={class:"unknown-node"},es=De({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(R(),j("div",g0,ze(e.node.raw),1))}),v0=["data-node-index","data-node-type"],w0=De({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:t}){var n,o,r;const l=e,i=t,s=V(),a=V(!1!==l.viewportPriority),c=g1((()=>s.value),a),u=Df(),d=ue((()=>l.customMarkdownIt?l.customMarkdownIt(u):u)),h=ue((()=>{var e;if(null!=(e=l.nodes)&&e.length)return l.nodes;if(l.content){const e=Af(l.content,d.value,l.parseOptions);return Ll(e)}return[]})),p="undefined"!=typeof window,f=p&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame.bind(window):null,m=p&&"function"==typeof window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):null,g="undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(o=null==(n=globalThis.process)?void 0:n.env)?void 0:o.NODE_ENV),v=p&&"function"==typeof window.requestIdleCallback,k=ue((()=>{var e;const t=Math.trunc(null!=(e=l.renderBatchSize)?e:80);return Number.isFinite(t)?Math.max(0,t):0})),y=ue((()=>{var e;const t=Math.trunc(null!=(e=l.initialRenderBatchSize)?e:k.value);return Number.isFinite(t)?Math.max(0,t):k.value})),w=ue((()=>!1!==l.batchRendering&&k.value>0&&p&&!g)),x=V(0),b=V({key:l.indexKey,total:0}),_=V({batchSize:k.value,initial:y.value,delay:null!=(r=l.renderBatchDelay)?r:16,enabled:w.value}),C=hs([]),E=V(Math.max(1,k.value||1)),M=Er({}),D=new Map,A=new Map,S=ue((()=>!1!==l.deferNodesUntilVisible&&!1!==a.value)),F=ue((()=>{var e;return(null!=(e=l.maxLiveNodes)?e:0)>0})),$=ue((()=>!!c&&(S.value||F.value))),B=ue((()=>{var e;return Math.max(1,null!=(e=l.maxLiveNodes)?e:320)})),T=ue((()=>{var e;return Math.max(0,null!=(e=l.liveNodeBuffer)?e:60)})),I=V(0),L=Er({start:0,end:0}),z=new Map,N=ue((()=>{if(!F.value)return h.value.length;const e=T.value,t=Math.max(L.end+e,y.value),n=Math.min(h.value.length,t);return Math.max(x.value,n)}));function O(e,t,n){return Math.min(Math.max(e,t),n)}const q=Er({}),P=Er({total:0,count:0});const H=ue((()=>P.count>0?Math.max(12,P.total/P.count):32));function W(e,t){var n;if(e>=t)return 0;let o=0;for(let r=e;r<t;r++)o+=null!=(n=q[r])?n:H.value;return o}const X=ue((()=>{if(!F.value)return C.value.map(((e,t)=>({node:e,index:t})));const e=C.value.length,t=O(L.start,0,e),n=O(L.end,t,e);return C.value.slice(t,n).map(((e,n)=>({node:e,index:t+n})))})),K=ue((()=>F.value?W(0,Math.min(L.start,C.value.length)):0)),U=ue((()=>{if(!F.value)return 0;const e=C.value.length;return W(Math.min(L.end,e),Math.min(e,x.value))}));function Z(){const e=h.value.length,t=Math.min(e,x.value);return t<=0?(C.value=[],void Y(0)):t>=e?(C.value=h.value,void Y(t)):(C.value=h.value.slice(0,t),void Y(t))}function Y(e){if(D.size)for(const[t,n]of D)t>=e&&(n.destroy(),D.delete(t),S.value&&delete M[t],A.delete(t))}function G(e,t){S.value&&(M[e]=t),t&&(I.value=O(e,0,Math.max(0,h.value.length-1)))}function J(e){return!S.value||e<y.value||!0===M[e]}function Q(e){const t=D.get(e);t&&(t.destroy(),D.delete(e))}function ee(e,t){if(t?A.set(e,t):A.delete(e),!$.value||!c)return Q(e),void(t?G(e,!0):S.value&&delete M[e]);if(e<y.value&&!F.value)return Q(e),void G(e,!0);if(!t)return Q(e),void(S.value&&delete M[e]);Q(e);const n=c(t,{rootMargin:"400px"});n&&(D.set(e,n),G(e,n.isVisible.value),n.whenVisible.then((()=>{G(e,!0)})).catch((()=>{})))}function te(e,t){t?(z.set(e,t),queueMicrotask((()=>{!function(e,t){if(!Number.isFinite(t)||t<=0)return;const n=q[e];q[e]=t,n?P.total+=t-n:(P.total+=t,P.count++)}(e,t.offsetHeight)}))):z.delete(e)}let ne=null,oe=null,re=!1,le=null,ie=null;function ce(){p&&(null!=ne&&(null==m||m(ne),ne=null),null!=oe&&(window.clearTimeout(oe),oe=null),null!=ie&&"function"==typeof window.cancelIdleCallback&&(window.cancelIdleCallback(ie),ie=null),re=!1,le=null)}function de(e,t={}){var n,o;if(!w.value)return;const r=N.value;if(x.value>=r)return;const i=Math.max(1,e),s=e=>{var t;ne=null,oe=null,ie=null,re=!1;const n=null!=le?le:i;le=null;const o=Math.max(2,null!=(t=l.renderBatchBudgetMs)?t:6),s=e=>{const t="undefined"!=typeof performance?performance.now():Date.now();x.value=Math.min(r,x.value+Math.max(1,e)),Z();const n=("undefined"!=typeof performance?performance.now():Date.now())-t;return function(e){var t;if(!w.value)return;const n=Math.max(2,null!=(t=l.renderBatchBudgetMs)?t:6),o=Math.max(1,k.value||1),r=Math.max(1,Math.floor(o/4));e>1.2*n?E.value=Math.max(r,Math.floor(.7*E.value)):e<.5*n&&E.value<o&&(E.value=Math.min(o,Math.ceil(1.2*E.value)))}(n),n};let a=n;for(;s(a),!(x.value>=r||!e||("function"==typeof e.timeRemaining?e.timeRemaining():0)<=.5*o);)a=Math.max(1,Math.round(E.value));x.value<r&&he()};if(!p||t.immediate)return void s();const a=Math.max(0,null!=(n=l.renderBatchDelay)?n:16);if(le=null!=le?Math.max(le,i):i,!re){if(re=!0,!g&&v&&window.requestIdleCallback){const e=Math.max(0,null!=(o=l.renderBatchIdleTimeoutMs)?o:120);return void(ie=window.requestIdleCallback((e=>{s(e)}),{timeout:e}))}if(!f||g)return void(oe=window.setTimeout((()=>s()),a));ne=f((()=>{0!==a?oe=window.setTimeout((()=>s()),a):s()}))}}function he(){de(w.value?Math.max(1,Math.round(E.value)):Math.max(1,k.value))}Ae([()=>h.value,()=>h.value.length,()=>w.value,()=>k.value,()=>y.value,()=>l.renderBatchDelay,()=>l.indexKey],(()=>{var e;const t=h.value.length,n=b.value,o=l.indexKey,r=void 0!==o?o!==n.key:t!==n.total;b.value={key:o,total:t};const i=_.value,s=null!=(e=l.renderBatchDelay)?e:16,a=i.batchSize!==k.value||i.initial!==y.value||i.delay!==s||i.enabled!==w.value;_.value={batchSize:k.value,initial:y.value,delay:s,enabled:w.value},(r||a||!w.value)&&ce(),(r||a)&&(E.value=Math.max(1,k.value||1));const c=N.value;if(!t)return x.value=0,void Z();if(!w.value)return x.value=c,void Z();x.value=r||a?Math.min(c,y.value):Math.min(x.value,c);const u=Math.max(1,y.value||k.value||t);x.value<c?de(u,{immediate:!p}):Z()}),{immediate:!0}),Ae((()=>S.value),(e=>{if(e)for(const[e,t]of A)ee(e,t);else{for(const e of D.values())e.destroy();D.clear();for(const e of Object.keys(M))delete M[e];for(const[e,t]of A)t&&G(e,!0)}}),{immediate:!1}),Ae((()=>x.value),((e,t)=>{F.value&&("number"==typeof t&&e<=t||e>0&&(I.value=e-1))})),Ae([I,B,T,()=>h.value.length,F],(()=>{!function(){const e=h.value.length;if(!F.value||0===e)return L.start=0,void(L.end=e);const t=Math.min(B.value,e),n=T.value,o=O(I.value-n,0,Math.max(0,e-t));L.start=o,L.end=Math.min(e,o+t)}()}),{immediate:!0}),Ae((()=>N.value),((e,t)=>{w.value&&("number"==typeof t&&e<=t||e>x.value&&he())})),Mn((()=>{ce();for(const e of D.values())e.destroy();D.clear()}));const pe=$o((()=>se(null,null,(function*(){try{return(yield Promise.resolve().then((()=>Jp))).default}catch(e){return console.warn('[vue-markdown-render] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',e),Pn}})))),fe=ue((()=>l.renderCodeBlocksAsPre?Pn:pe)),me={text:ut,paragraph:cr,heading:Zo,code_block:pe,list:ar,blockquote:rr,table:ur,definition_list:or,footnote:sr,footnote_reference:St,admonition:fr,hardbreak:Nn,link:xt,image:On,thematic_break:dr,math_inline:sn,math_block:Hh,strong:kt,emphasis:Ft,strikethrough:yt,highlight:It,insert:$t,subscript:Tt,superscript:Dt,emoji:gt,checkbox:tn,checkbox_input:tn,inline_code:vt,reference:wt,html_block:m0};function ge(e){var t;if(!e)return es;const n=Vt(l.customId)[String(e.type)];if(n)return n;if("code_block"===e.type){if("mermaid"===String(null!=(t=e.language)?t:"").trim().toLowerCase())return Vt(l.customId).mermaid||Xn;return Vt(l.customId).code_block||fe.value}return me[String(e.type)]||es}function ve(e){var t;return"code_block"===(null==e?void 0:e.type)&&"mermaid"===String(null!=(t=e.language)?t:"").trim().toLowerCase()?{}:"code_block"===e.type?ae({stream:l.codeBlockStream,darkTheme:l.codeBlockDarkTheme,lightTheme:l.codeBlockLightTheme,monacoOptions:l.codeBlockMonacoOptions,themes:l.themes,minWidth:l.codeBlockMinWidth,maxWidth:l.codeBlockMaxWidth},l.codeBlockProps||{}):{typewriter:l.typewriter}}function ke(e){i("click",e)}function ye(e){var t;null!=(t=e.target)&&t.closest("[data-node-index]")&&i("mouseover",e)}function we(e){var t;null!=(t=e.target)&&t.closest("[data-node-index]")&&i("mouseout",e)}return(t,n)=>(R(),j("div",{ref_key:"containerRef",ref:s,class:"markdown-renderer",onClick:ke,onMouseover:ye,onMouseout:we},[F.value?(R(),j("div",{key:0,class:"node-spacer",style:pt({height:`${K.value}px`}),"aria-hidden":"true"},null,4)):Ue("",!0),(R(!0),j(Ke,null,ct(X.value,(t=>{var o;return R(),j("div",{key:t.index,ref_for:!0,ref:e=>ee(t.index,e),class:"node-slot","data-node-index":t.index,"data-node-type":t.node.type},[J(t.index)?(R(),j("div",{key:0,ref_for:!0,ref:e=>te(t.index,e),class:"node-content"},["code_block"!==t.node.type&&!1!==l.typewriter?(R(),Je(Wn,{key:0,name:"typewriter",appear:""},{default:pn((()=>[(R(),Je(bt(ge(t.node)),Yn({node:t.node,loading:t.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${t.index}`},{ref_for:!0},ve(t.node),{"custom-id":l.customId,"is-dark":l.isDark,onCopy:n[0]||(n[0]=e=>i("copy",e)),onHandleArtifactClick:n[1]||(n[1]=e=>i("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))])),_:2},1024)):(R(),Je(bt(ge(t.node)),Yn({key:1,node:t.node,loading:t.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${t.index}`},{ref_for:!0},ve(t.node),{"custom-id":l.customId,"is-dark":l.isDark,onCopy:n[2]||(n[2]=e=>i("copy",e)),onHandleArtifactClick:n[3]||(n[3]=e=>i("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(R(),j("div",{key:1,class:"node-placeholder",style:pt({height:`${null!=(o=q[t.index])?o:H.value}px`})},null,4))],8,v0)})),128)),F.value?(R(),j("div",{key:1,class:"node-spacer",style:pt({height:`${U.value}px`}),"aria-hidden":"true"},null,4)):Ue("",!0)],544))}}),Wt=Be(w0,[["__scopeId","data-v-080bfb4c"]]);Wt.install=e=>{var t,n;const o=null!=(n=null!=(t=Wt.__name)?t:Wt.name)?n:"NodeRenderer";e.component(o,Wt)};const k0={key:0,class:"admonition-icon"},y0={class:"admonition-title"},x0=["aria-expanded","aria-controls","title"],b0={key:0},_0={key:1},C0=["id"],E0=De({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean}},emits:["copy"],setup(e,{emit:t}){var n;const o=e,r=t,l={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},i=ue((()=>{if(o.node.title&&o.node.title.trim().length)return o.node.title;const e=o.node.kind||"note";return e.charAt(0).toUpperCase()+e.slice(1)})),s=V(!!o.node.collapsible&&!(null==(n=o.node.open)||n));function a(){o.node.collapsible&&(s.value=!s.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(t,n)=>(R(),j("div",{class:Ce(["admonition",[`admonition-${o.node.kind}`,o.isDark?"is-dark":""]])},[E("div",{id:c,class:"admonition-header"},[l[o.node.kind]?(R(),j("span",k0,ze(l[o.node.kind]),1)):Ue("",!0),E("span",y0,ze(i.value),1),o.node.collapsible?(R(),j("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${c}-content`,title:s.value?"Expand":"Collapse",onClick:a},[s.value?(R(),j("span",b0,"▶")):(R(),j("span",_0,"▼"))],8,x0)):Ue("",!0)]),_n(E("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[Jn([o.node.children],(()=>Mt(ee(Wt),{"index-key":`admonition-${e.indexKey}`,nodes:o.node.children,typewriter:o.typewriter,onCopy:n[0]||(n[0]=e=>r("copy",e))},null,8,["index-key","nodes","typewriter"])),n,1)],8,C0),[[Cn,!s.value]])],2))}}),fr=Be(E0,[["__scopeId","data-v-578c25d2"]]);fr.install=e=>{e.component(fr.__name,fr)};let ts=!1;function M0(e){return se(this,null,(function*(){if(!ts)return ts=!0,e.preloadMonacoWorkers()}))}let tr=null,ns=!1;function S0(){return se(this,null,(function*(){if(tr)return tr;if(ns)return null;try{return tr=yield import("stream-monaco"),yield M0(tr),tr}catch(e){return ns=!0,null}}))}const A0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>',D0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />\n</svg>\n',T0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />\n\t<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />\n</svg>\n',$0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n</svg>\n',I0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />\n\t\t<path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />\n\t\t<path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />\n\t\t<path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />\n\t\t<path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />\n\t\t<path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />\n\t</g>\n</svg>\n',F0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />\n</svg>\n',B0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />\n</svg>\n',R0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />\n</svg>\n',L0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />\n</svg>\n',N0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />\n\t\t<path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />\n\t</g>\n</svg>\n',O0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />\n\t\t<path d="M3.5 11V3.5H11m-7.5 0 8 8" />\n\t</g>\n</svg>\n',P0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>',z0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />\n</svg>\n',H0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />\n</svg>\n',j0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />\n\t\t<path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />\n\t</g>\n</svg>\n',q0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />\n</svg>\n',W0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />\n</svg>\n',V0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />\n\t\t<path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />\n\t</g>\n</svg>\n',U0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />\n</svg>\n',K0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />\n\t\t<path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />\n\t</g>\n</svg>\n',Z0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />\n\t\t<path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />\n\t\t<path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />\n\t</g>\n</svg>\n',X0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />\n\t\t<path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />\n\t\t<path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />\n\t\t<path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n\t</g>\n</svg>\n',Y0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />\n\t\t<path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />\n\t</g>\n</svg>\n',G0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />\n</svg>\n',J0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n\t\t<path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n\t\t<path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n\t</g>\n</svg>\n',Q0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />\n\t\t<path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />\n\t\t<path stroke="#e78284" d="M2.5 13.5V8" />\n\t\t<path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />\n\t</g>\n</svg>\n',ep='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />\n\t\t<path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />\n\t</g>\n</svg>\n',tp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />\n\t\t<path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />\n\t</g>\n</svg>\n',np='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />\n</svg>\n',rp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />\n\t\t<path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />\n\t</g>\n</svg>\n',op='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />\n</svg>\n',ip='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />\n</svg>\n',sp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>',lp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>',ap='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />\n\t\t<path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />\n\t\t<path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />\n\t</g>\n</svg>\n',cp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />\n</svg>\n',up='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />\n</svg>\n',dp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />\n</svg>\n',fp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />\n\t\t<path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />\n\t\t<path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />\n\t\t<path stroke="#e5c890" d="m 8.5,12.5 v 0" />\n\t</g>\n</svg>\n',hp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />\n\t\t<path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />\n\t</g>\n</svg>\n',pp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />\n</svg>\n',mp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />\n\t\t<path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />\n\t</g>\n</svg>\n',gp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />\n</svg>\n',vp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />\n</svg>\n',wp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />\n\t\t<path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />\n\t</g>\n</svg>\n',kp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />\n</svg>\n',yp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />\n</svg>\n',xp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">\x3c!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --\x3e<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>',bp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />\n</svg>\n',_p='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />\n</svg>\n',Cp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />\n</svg>\n',Ep='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />\n\t\t<path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />\n\t</g>\n</svg>\n',Mp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />\n\t\t<path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />\n\t\t<path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />\n\t\t<path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n\t</g>\n</svg>\n',Sp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />\n\t\t<path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />\n\t</g>\n</svg>\n',Ap='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>',Dp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">\n\t\t<path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />\n\t\t<path d="M12.05 1.73 8 9.28 3.95 1.73" />\n\t</g>\n</svg>\n',Tp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />\n</svg>\n',$p='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n\t<path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />\n</svg>\n';let To=null;function Ip(e){To=null!=e?e:null}function bl(e){if(To){const t=To(e);if(null!=t&&""!==t)return t}switch(e){case"javascript":case"js":return Y0;case"typescript":case"ts":return Sp;case"jsx":return X0;case"tsx":return Mp;case"html":return K0;case"css":return N0;case"scss":return gp;case"json":return G0;case"python":case"py":return fp;case"ruby":case"rb":return pp;case"go":case"golang":return W0;case"r":return hp;case"java":return Z0;case"kotlin":case"kt":return Q0;case"c":return $0;case"cpp":case"c++":return B0;case"cs":case"csharp":return L0;case"php":return up;case"scala":return vp;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return wp;case"sql":return yp;case"yaml":case"yml":return $p;case"markdown":case"md":return np;case"xml":return Tp;case"rust":case"rs":return mp;case"swift":return _p;case"perl":return cp;case"lua":return tp;case"haskell":return U0;case"erlang":return j0;case"clojure":return I0;case"vue":return Dp;case"svg":return bp;case"mermaid":return op;case"dart":return O0;case"assembly":return T0;case"dockerfile":return z0;case"fortran":return q0;case"lisp":return ep;case"ocaml":return ap;case"prolog":return dp;case"groovy":return V0;case"matlab":return rp;case"cobol":return F0;case"ada":return A0;case"julia":return J0;case"elixir":return H0;case"vb.net":return Ap;case"nim":return ip;case"crystal":return R0;case"d":return P0;case"applescript":return D0;case"solidity":return kp;case"objectivec":return sp;case"objectivecpp":return lp;case"terraform":return Cp;case"plain":case"text":return Ep;default:return xp}}const _l={js:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"},Fp={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},Bp={class:"flex items-center space-x-2"},Rp=["innerHTML"],Lp={class:"text-sm font-medium font-mono"},Np={class:"flex items-center space-x-2"},Op=["aria-pressed"],Pp=["disabled"],zp=["disabled"],Hp=["disabled"],jp=["aria-label"],qp={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Wp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Vp=["aria-pressed"],Up={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Kp={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Zp=["aria-label"],Xp={class:"code-loading-placeholder"},Yp={class:"sr-only","aria-live":"polite",role:"status"},rs=10,os=36,is=1,ss=0,ls=1.5,Br=1,Gp=De({__name:"CodeBlockNode",props:{node:{},isDark:{type:Boolean},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:void 0},lightTheme:{default:void 0},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},customId:{}},emits:["previewCode","copy"],setup(e,{emit:t}){var n,o;const r=e,l=t,{t:i}=ao(),s=V(null),a=V(null),c=V(!1),u=V(String(null!=(n=r.node.language)?n:"")),d=V(!1),h=V(!1),p=V(!1),f=V(!1),m=V(null);let g=0;const v=er(),k=V(null),y=V("undefined"==typeof window);"undefined"!=typeof window&&Ae((()=>a.value),(e=>{var t;if(null==(t=k.value)||t.destroy(),k.value=null,!e)return void(y.value=!1);const n=v(e,{rootMargin:"400px"});k.value=n,y.value=n.isVisible.value,n.whenVisible.then((()=>{y.value=!0}))}),{immediate:!0}),Mn((()=>{var e;null==(e=k.value)||e.destroy(),k.value=null}));let w=null,x=null,b=()=>{},_=()=>{},C=()=>null,M=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),D=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),A=()=>{},S=()=>{},F=null,$=()=>{var e;return String(null!=(e=r.node.language)?e:"plaintext")},B=()=>se(null,null,(function*(){}));const T=ue((()=>r.node.diff)),I=V(!1);"undefined"!=typeof window&&se(null,null,(function*(){try{const e=yield S0();if(!e)return void(I.value=!0);const t=e.useMonaco,n=e.detectLanguage;if("function"==typeof n&&($=n),"function"==typeof t){const e=fe();if(e&&r.themes&&Array.isArray(r.themes)&&!r.themes.includes(e))throw new Error("Preferred theme not in provided themes array");const n=t(nt(ae({wordWrap:"on",wrappingIndent:"same",themes:r.themes,theme:e},r.monacoOptions||{}),{onThemeChange(){!function(){var e,t,n;const o=s.value,r=a.value;if(!o||!r)return;const l=o.querySelector(".monaco-editor")||o;let i=null;try{"undefined"!=typeof window&&"function"==typeof window.getComputedStyle&&(i=window.getComputedStyle(l))}catch(e){i=null}const c=String(null!=(e=null==i?void 0:i.getPropertyValue("--vscode-editor-foreground"))?e:""),u=String(null!=(t=null==i?void 0:i.getPropertyValue("--vscode-editor-background"))?t:""),d=String(null!=(n=null==i?void 0:i.getPropertyValue("--vscode-editor-hoverHighlightBackground"))?n:"");if(c&&u)r.style.setProperty("--vscode-editor-foreground",c.trim()),r.style.setProperty("--vscode-editor-background",u.trim()),r.style.setProperty("--vscode-editor-selectionBackground",d.trim())}()}}));w=n.createEditor||w,x=n.createDiffEditor||x,b=n.updateCode||b,_=n.updateDiff||_,C=n.getEditor||C,M=n.getEditorView||M,D=n.getDiffEditorView||D,A=n.cleanupEditor||A,S=n.safeClean||n.cleanupEditor||S,B=n.setTheme||B,f.value=!0,s.value&&(yield de(s.value))}}catch(e){I.value=!0}}));const L=V("number"==typeof(null==(o=r.monacoOptions)?void 0:o.fontSize)?r.monacoOptions.fontSize:Number.NaN),z=V(L.value),N=ue((()=>{const e=L.value,t=z.value;return"number"==typeof e&&Number.isFinite(e)&&e>0&&"number"==typeof t&&Number.isFinite(t)&&t>0}));function O(){var e,t,n,o,r;try{const l=T.value?null!=(n=null==(t=null==(e=D())?void 0:e.getModifiedEditor)?void 0:t.call(e))?n:D():M(),i=C(),s=null==(o=null==i?void 0:i.EditorOption)?void 0:o.fontInfo;if(l&&null!=s){const e=null==(r=l.getOption)?void 0:r.call(l,s),t=null==e?void 0:e.fontSize;if("number"==typeof t&&Number.isFinite(t)&&t>0)return t}}catch(e){}try{const e=s.value;if(e){const t=e.querySelector(".view-lines .view-line");if(t)try{if("undefined"!=typeof window&&"function"==typeof window.getComputedStyle){const e=window.getComputedStyle(t).fontSize,n=e&&e.match(/^(\d+(?:\.\d+)?)/);if(n)return Number.parseFloat(n[1])}}catch(e){}}}catch(e){}return null}function q(e){var t,n;try{const o=C(),r=null==(t=null==o?void 0:o.EditorOption)?void 0:t.lineHeight;if(null!=r){const t=null==(n=null==e?void 0:e.getOption)?void 0:n.call(e,r);if("number"==typeof t&&t>0)return t}}catch(e){}const o=function(){try{const e=s.value;if(!e)return null;const t=e.querySelector(".view-lines .view-line");if(t){const e=Math.ceil(t.getBoundingClientRect().height);if(e>0)return e}}catch(e){}return null}();if(o&&o>0)return o;const r=Number.isFinite(z.value)&&z.value>0?z.value:12;return Math.max(12,Math.round(1.35*r))}function P(){var e;if(Number.isFinite(z.value)&&z.value>0&&Number.isFinite(L.value))return z.value;const t=O();return"number"==typeof(null==(e=r.monacoOptions)?void 0:e.fontSize)?(L.value=r.monacoOptions.fontSize,z.value=r.monacoOptions.fontSize,z.value):t&&t>0?(L.value=t,z.value=t,t):(L.value=12,z.value=12,12)}function H(){var e,t,n,o,r,l,i,s,a,c,u;try{const d=T.value?D():M();if(!d)return null;if(T.value&&null!=d&&d.getOriginalEditor&&null!=d&&d.getModifiedEditor){const u=null==(e=d.getOriginalEditor)?void 0:e.call(d),h=null==(t=d.getModifiedEditor)?void 0:t.call(d),p=(null==(n=null==u?void 0:u.getContentHeight)?void 0:n.call(u))||0,f=(null==(o=null==h?void 0:h.getContentHeight)?void 0:o.call(h))||0,m=Math.max(p,f);if(m>0)return Math.ceil(m+1);const g=(null==(i=null==(l=null==(r=null==u?void 0:u.getModel)?void 0:r.call(u))?void 0:l.getLineCount)?void 0:i.call(l))||1,v=(null==(c=null==(a=null==(s=null==h?void 0:h.getModel)?void 0:s.call(h))?void 0:a.getLineCount)?void 0:c.call(a))||1,k=Math.max(g,v),y=Math.max(q(u),q(h));return Math.ceil(k*(y+ls)+0+1)}if(null!=d&&d.getContentHeight){const e=d.getContentHeight();if(e>0)return Math.ceil(e+1)}const h=null==(u=null==d?void 0:d.getModel)?void 0:u.call(d);let p=1;h&&"function"==typeof h.getLineCount&&(p=h.getLineCount());const f=q(d);return Math.ceil(p*(f+ls)+0+1)}catch(e){return null}}function W(){try{const e=s.value;if(!e)return;const t=e.getBoundingClientRect(),n=window.scrollY+t.top,o=H();if(null!=o&&o>0){const r=t.height;e.style.height=`${Math.ceil(o)}px`,e.style.maxHeight="none";const l=Math.ceil(o)-r;0!==l&&n<window.scrollY&&window.scrollBy(0,l)}}catch(e){}}function X(){var e;try{const t=s.value;if(!t)return;const n=t.getBoundingClientRect(),o=window.scrollY+n.top,l=n.height,i=function(){var e,t;const n=null!=(t=null==(e=r.monacoOptions)?void 0:e.MAX_HEIGHT)?t:500;if("number"==typeof n)return n;const o=String(n).match(/^(\d+(?:\.\d+)?)/);return o?Number.parseFloat(o[1]):500}();if(g>0&&(g--,null!=m.value)){const e=Math.min(m.value,i);t.style.height=`${Math.ceil(e)}px`,t.style.maxHeight=`${Math.ceil(i)}px`,t.style.overflow="auto";const n=Math.ceil(e)-l;return void(0!==n&&o<window.scrollY&&window.scrollBy(0,n))}const a=H();if(null!=a&&a>0){const e=Math.min(a,i);t.style.height=`${Math.ceil(e)}px`,t.style.maxHeight=`${Math.ceil(i)}px`,t.style.overflow="auto";const n=Math.ceil(e)-l;return void(0!==n&&o<window.scrollY&&window.scrollBy(0,n))}if(null!=m.value){const e=Math.min(m.value,i);t.style.height=`${Math.ceil(e)}px`,t.style.maxHeight=`${Math.ceil(i)}px`,t.style.overflow="auto";const n=Math.ceil(e)-l;return void(0!==n&&o<window.scrollY&&window.scrollBy(0,n))}const c=Math.ceil((null==(e=t.getBoundingClientRect)?void 0:e.call(t).height)||0);if(c>0){const e=Math.min(c,i);t.style.height=`${Math.ceil(e)}px`,t.style.maxHeight=`${Math.ceil(i)}px`,t.style.overflow="auto";const n=Math.ceil(e)-l;return void(0!==n&&o<window.scrollY&&window.scrollBy(0,n))}const u=Number.parseFloat(t.style.height);if(!Number.isNaN(u)&&u>0){const e=Math.ceil(Math.min(u,i));t.style.height=`${e}px`;const n=e-l;0!==n&&o<window.scrollY&&window.scrollBy(0,n)}else{const e=Math.ceil(i);t.style.height=`${e}px`;const n=e-l;0!==n&&o<window.scrollY&&window.scrollBy(0,n)}t.style.maxHeight=`${Math.ceil(i)}px`,t.style.overflow="auto"}catch(e){}}const K=ue((()=>{const e=u.value.trim().toLowerCase();return r.isShowPreview&&("html"===e||"svg"===e)})),U=ue((()=>"mermaid"===u.value.trim().toLowerCase()));Ae((()=>r.node.language),(e=>{u.value=e})),Ae((()=>r.node.code),(e=>se(null,null,(function*(){var t,n;if(!1!==r.stream){if(u.value||(u.value=$(e)),w&&!p.value&&s.value)try{yield de(s.value)}catch(e){}T.value?_(String(null!=(t=r.node.originalCode)?t:""),String(null!=(n=r.node.updatedCode)?n:""),u.value):b(e,u.value),d.value&&nr((()=>W()))}}))));const Z=ue((()=>{const e=u.value.trim().toLowerCase();return _l[e]||e.charAt(0).toUpperCase()+e.slice(1)})),Y=ue((()=>bl(u.value.trim().toLowerCase().split(":")[0]))),G=ue((()=>{const e={},t=e=>{if(null!=e)return"number"==typeof e?`${e}px`:String(e)},n=t(r.minWidth),o=t(r.maxWidth);return n&&(e.minWidth=n),o&&(e.maxWidth=o),e}));function J(){return se(this,null,(function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(r.node.code)),c.value=!0,l("copy",r.node.code),setTimeout((()=>{c.value=!1}),1e3)}catch(e){console.error("复制失败:",e)}}))}function Q(e){return!e||e.disabled}function te(e,t,n="top"){if(Q(e.currentTarget))return;const o=e,l=null!=(null==o?void 0:o.clientX)&&null!=(null==o?void 0:o.clientY)?{x:o.clientX,y:o.clientY}:void 0;jn(e.currentTarget,t,n,!1,l,r.isDark)}function ne(){lo()}function oe(e){if(Q(e.currentTarget))return;const t=c.value?i("common.copied")||"Copied":i("common.copy")||"Copy",n=e,o=null!=(null==n?void 0:n.clientX)&&null!=(null==n?void 0:n.clientY)?{x:n.clientX,y:n.clientY}:void 0;jn(e.currentTarget,t,"top",!1,o,r.isDark)}function re(){d.value=!d.value;const e=T.value?D():M(),t=s.value;!e||!t||(d.value?(ce(!0),t.style.maxHeight="none",t.style.overflow="visible",W()):(ce(!1),t.style.overflow="auto",X()))}function le(){var e,t,n;if(h.value=!h.value,h.value){if(s.value){const n=Math.ceil((null==(t=(e=s.value).getBoundingClientRect)?void 0:t.call(e).height)||0);n>0&&(m.value=n)}ce(!1)}else{d.value&&ce(!0),s.value&&null!=m.value&&(s.value.style.height=`${m.value}px`);const e=T.value?D():M();try{null==(n=null==e?void 0:e.layout)||n.call(e)}catch(e){}g=2,nr((()=>{d.value?W():X()}))}}function ie(){if(!K.value)return;const e=(u.value||r.node.language).toLowerCase(),t="html"===e?"text/html":"image/svg+xml",n="html"===e?i("artifacts.htmlPreviewTitle")||"HTML Preview":i("artifacts.svgPreviewTitle")||"SVG Preview";l("previewCode",{node:r.node,artifactType:t,artifactTitle:n,id:`temp-${e}-${Date.now()}`})}function ce(e){var t,n;try{if(T.value){const n=D();null==(t=null==n?void 0:n.updateOptions)||t.call(n,{automaticLayout:e})}else{const t=M();null==(n=null==t?void 0:t.updateOptions)||n.call(t,{automaticLayout:e})}}catch(e){}}function de(e){return w?F||(p.value=!0,F=se(null,null,(function*(){yield function(e){return se(this,null,(function*(){var t,n,o;if(!w)return;T.value?(S(),x?yield x(e,String(null!=(t=r.node.originalCode)?t:""),String(null!=(n=r.node.updatedCode)?n:""),u.value):yield w(e,r.node.code,u.value)):yield w(e,r.node.code,u.value);const l=T.value?D():M();if("number"==typeof(null==(o=r.monacoOptions)?void 0:o.fontSize))null==l||l.updateOptions({fontSize:r.monacoOptions.fontSize,automaticLayout:!1}),L.value=r.monacoOptions.fontSize,z.value=r.monacoOptions.fontSize;else{const e=O();e&&e>0?(L.value=e,z.value=e):(L.value=12,z.value=12)}!d.value&&!h.value&&X(),!1===r.loading&&(yield Ye(),nr((()=>{d.value&&!h.value?W():h.value||X()})))}))}(e)})).finally((()=>{F=null})),F):null}Ae((()=>z.value),((e,t)=>{const n=T.value?D():M();n&&"number"==typeof e&&Number.isFinite(e)&&e>0&&(n.updateOptions({fontSize:e}),d.value&&!h.value&&W())}),{flush:"post",immediate:!1});const he=Ae((()=>[s.value,U.value,T.value,r.stream,r.loading,f.value,y.value]),(e=>se(null,[e],(function*([e,t,n,o,r,l,i]){if(!e||!w||!i||!1===o&&!1!==r)return;if(U.value)return A(),void he();const s=de(e);s&&(yield s,he())})))),pe=Ae((()=>[r.darkTheme,r.lightTheme,p.value,y.value]),(()=>{if(p.value&&y.value){if(U.value)return pe();!function(){const e=fe();e&&B(e)}()}}));function fe(){return r.isDark?r.darkTheme:r.lightTheme}const me=Ae((()=>[r.monacoOptions,y.value]),(()=>{var e,t;if(!w||!y.value)return;if(U.value)return me();const n=T.value?D():M(),o="number"==typeof(null==(e=r.monacoOptions)?void 0:e.fontSize)?r.monacoOptions.fontSize:Number.isFinite(z.value)?z.value:void 0;"number"==typeof o&&Number.isFinite(o)&&o>0&&(null==(t=null==n?void 0:n.updateOptions)||t.call(n,{fontSize:o})),d.value&&!h.value?W():h.value||X()}),{deep:!0}),ge=Ae((()=>[r.loading,y.value]),(e=>se(null,[e],(function*([e,t]){if(t){if(U.value)return void Ye((()=>{null==ge||ge()}));e||(yield Ye(),nr((()=>{h.value||(d.value?W():X()),ge()})))}}))),{immediate:!0,flush:"post"});return ms((()=>{A()})),(t,n)=>I.value?(R(),Je(ee(Pn),{key:0,node:e.node,loading:r.loading},null,8,["node","loading"])):(R(),j("div",{key:1,ref_key:"container",ref:a,style:pt(G.value),class:Ce(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",{"is-rendering":r.loading,"is-dark":r.isDark}]])},[r.showHeader?(R(),j("div",Fp,[Kt(t.$slots,"header-left",{},(()=>[E("div",Bp,[E("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:Y.value},null,8,Rp),E("span",Lp,ze(Z.value),1)])]),!0),Kt(t.$slots,"header-right",{},(()=>[E("div",Np,[E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":h.value,onClick:le,onMouseenter:n[0]||(n[0]=e=>te(e,h.value?ee(i)("common.expand")||"Expand":ee(i)("common.collapse")||"Collapse")),onFocus:n[1]||(n[1]=e=>te(e,h.value?ee(i)("common.expand")||"Expand":ee(i)("common.collapse")||"Collapse")),onMouseleave:ne,onBlur:ne},[(R(),j("svg",{style:pt({rotate:h.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...n[17]||(n[17]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Op),r.showFontSizeButtons&&r.enableFontSizeControl?(R(),j(Ke,{key:0},[E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(z.value)&&z.value<=10,onClick:n[2]||(n[2]=e=>function(){const e=P(),t=Math.max(10,e-1);z.value=t}()),onMouseenter:n[3]||(n[3]=e=>te(e,ee(i)("common.decrease")||"Decrease")),onFocus:n[4]||(n[4]=e=>te(e,ee(i)("common.decrease")||"Decrease")),onMouseleave:ne,onBlur:ne},[...n[18]||(n[18]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Pp),E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!N.value||z.value===L.value,onClick:n[5]||(n[5]=e=>(P(),void(Number.isFinite(L.value)&&(z.value=L.value)))),onMouseenter:n[6]||(n[6]=e=>te(e,ee(i)("common.reset")||"Reset")),onFocus:n[7]||(n[7]=e=>te(e,ee(i)("common.reset")||"Reset")),onMouseleave:ne,onBlur:ne},[...n[19]||(n[19]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),E("path",{d:"M3 3v5h5"})])],-1)])],40,zp),E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(z.value)&&z.value>=36,onClick:n[8]||(n[8]=e=>function(){const e=P(),t=Math.min(36,e+1);z.value=t}()),onMouseenter:n[9]||(n[9]=e=>te(e,ee(i)("common.increase")||"Increase")),onFocus:n[10]||(n[10]=e=>te(e,ee(i)("common.increase")||"Increase")),onMouseleave:ne,onBlur:ne},[...n[20]||(n[20]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Hp)],64)):Ue("",!0),r.showCopyButton?(R(),j("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":c.value?ee(i)("common.copied")||"Copied":ee(i)("common.copy")||"Copy",onClick:J,onMouseenter:n[11]||(n[11]=e=>oe(e)),onFocus:n[12]||(n[12]=e=>oe(e)),onMouseleave:ne,onBlur:ne},[c.value?(R(),j("svg",Wp,[...n[22]||(n[22]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(R(),j("svg",qp,[...n[21]||(n[21]=[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),E("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,jp)):Ue("",!0),r.showExpandButton?(R(),j("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":d.value,onClick:re,onMouseenter:n[13]||(n[13]=e=>te(e,d.value?ee(i)("common.collapse")||"Collapse":ee(i)("common.expand")||"Expand")),onFocus:n[14]||(n[14]=e=>te(e,d.value?ee(i)("common.collapse")||"Collapse":ee(i)("common.expand")||"Expand")),onMouseleave:ne,onBlur:ne},[d.value?(R(),j("svg",Up,[...n[23]||(n[23]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(R(),j("svg",Kp,[...n[24]||(n[24]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,Vp)):Ue("",!0),K.value&&r.showPreviewButton?(R(),j("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":ee(i)("common.preview")||"Preview",onClick:ie,onMouseenter:n[15]||(n[15]=e=>te(e,ee(i)("common.preview")||"Preview")),onFocus:n[16]||(n[16]=e=>te(e,ee(i)("common.preview")||"Preview")),onMouseleave:ne,onBlur:ne},[...n[25]||(n[25]=[E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24"},[E("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[E("path",{d:"M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496"}),E("path",{d:"M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23"})])],-1)])],40,Zp)):Ue("",!0)])]),!0)])):Ue("",!0),_n(E("div",{ref_key:"codeEditor",ref:s,class:Ce(["code-editor-container",[e.stream?"":"code-height-placeholder"]])},null,2),[[Cn,!(h.value||!e.stream&&e.loading)]]),_n(E("div",Xp,[Kt(t.$slots,"loading",{loading:e.loading,stream:e.stream},(()=>[n[26]||(n[26]=E("div",{class:"loading-skeleton"},[E("div",{class:"skeleton-line"}),E("div",{class:"skeleton-line"}),E("div",{class:"skeleton-line short"})],-1))]),!0)],512),[[Cn,!e.stream&&e.loading]]),E("span",Yp,ze(c.value?ee(i)("common.copied")||"Copied":""),1)],6))}}),hr=Be(Gp,[["__scopeId","data-v-e614b292"]]);hr.install=e=>{e.component(hr.__name,hr)};const Jp=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Qp={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},em={class:"flex items-center space-x-2"},tm=["innerHTML"],nm={class:"text-sm font-medium font-mono"},rm={class:"flex items-center space-x-2"},om=["aria-pressed"],im=["disabled"],sm=["disabled"],lm=["disabled"],am=["aria-label"],cm={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},um={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},dm=["aria-pressed"],fm={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},hm={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},pm=["aria-label"],mm={class:"code-loading-placeholder"},as=10,cs=36,us=1,gm=De({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:void 0},lightTheme:{default:void 0},isDark:{type:Boolean},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:t}){var n;const o=e,r=t,{t:l}=ao(),i=V(String(null!=(n=o.node.language)?n:"")),s=V(!1),a=V(!1),c=V(!1),u=V(null),d=V(!0),h=V(0),p=V(14),f=V(p.value),m=ue((()=>{const e=p.value,t=f.value;return"number"==typeof e&&Number.isFinite(e)&&e>0&&"number"==typeof t&&Number.isFinite(t)&&t>0})),g=ue((()=>{const e=i.value.trim().toLowerCase();return _l[e]||e.charAt(0).toUpperCase()+e.slice(1)})),v=ue((()=>"mermaid"===i.value.trim().toLowerCase())),k=ue((()=>bl(i.value.trim().toLowerCase().split(":")[0]))),y=ue((()=>{const e=i.value.trim().toLowerCase();return o.isShowPreview&&("html"===e||"svg"===e)})),w=ue((()=>{const e={},t=e=>{if(null!=e)return"number"==typeof e?`${e}px`:String(e)},n=t(o.minWidth),r=t(o.maxWidth);return n&&(e.minWidth=n),r&&(e.maxWidth=r),e})),x=ue((()=>({fontSize:`${f.value}px`})));function b(){return o.isDark?o.darkTheme:o.lightTheme}let _,C,M,D=()=>{};function A(){return se(this,null,(function*(){if(v.value)return D(),void(null==_||_.dispose());!function(){se(this,null,(function*(){if(!C)try{const e=yield import("stream-markdown");if(C=e.createShikiStreamRenderer,M=e.registerHighlight,D=e.disposeHighlighter,M({themes:o.themes}),_=C(u.value,{theme:b()}),!o.loading){const e=i.value.split(":")[0].toLocaleLowerCase().trim();_.updateCode(o.node.code,e)}}catch(e){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",e)}}))}()}))}A(),Xr((()=>{A()})),Ae((()=>o.themes),(()=>se(null,null,(function*(){M&&M({themes:o.themes})})))),Ae((()=>[o.node.code,o.node.language]),(e=>se(null,[e],(function*([e,t]){if(t!==i.value&&(i.value=t.trim()),u.value){if(v.value)return D(),void(null==_||_.dispose());_||(yield A()),_&&e&&(!1===o.stream&&o.loading||(t=t.split(":")[0].toLocaleLowerCase().trim(),_.updateCode(e,t)))}}))));const S=Ae((()=>[o.darkTheme,o.lightTheme]),(()=>se(null,null,(function*(){if(u.value){if(v.value)return D(),null==_||_.dispose(),S();_||(yield A()),null==_||_.setTheme(b())}}))));function F(){const e=u.value;if(!e||a.value)return;const t=e.scrollTop;t<h.value?d.value=!1:function(e,t=50){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}(e)&&(d.value=!0),h.value=t}function $(){return se(this,null,(function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(o.node.code)),s.value=!0,r("copy",o.node.code),setTimeout((()=>{s.value=!1}),1e3)}catch(e){console.error("Copy failed:",e)}}))}function B(e){return!e||e.disabled}function T(e,t,n="top"){if(B(e.currentTarget))return;const r=e,l=null!=(null==r?void 0:r.clientX)&&null!=(null==r?void 0:r.clientY)?{x:r.clientX,y:r.clientY}:void 0;jn(e.currentTarget,t,n,!1,l,o.isDark)}function I(){lo()}function L(e){if(B(e.currentTarget))return;const t=s.value?l("common.copied")||"Copied":l("common.copy")||"Copy",n=e,r=null!=(null==n?void 0:n.clientX)&&null!=(null==n?void 0:n.clientY)?{x:n.clientX,y:n.clientY}:void 0;jn(e.currentTarget,t,"top",!1,r,o.isDark)}function z(){a.value=!a.value;const e=u.value;e&&(a.value?(e.style.maxHeight="none",e.style.overflow="visible"):(e.style.maxHeight="500px",e.style.overflow="auto",d.value=!0,Ye((()=>{e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)}))))}function N(){c.value=!c.value}function O(){if(!y.value)return;const e=(i.value||o.node.language).toLowerCase(),t="html"===e?"HTML Preview":"SVG Preview";r("previewCode",{type:"html"===e?"text/html":"image/svg+xml",content:o.node.code,title:t})}return Ae((()=>o.node.code),(()=>se(null,null,(function*(){if(a.value||!d.value)return;yield Ye();const e=u.value;e&&e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)})))),(t,n)=>v.value?(R(),Je(ee(Xn),{key:0,node:e.node,"is-dark":o.isDark,loading:o.loading},null,8,["node","is-dark","loading"])):(R(),j("div",{key:1,style:pt(w.value),class:Ce(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[o.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",o.isDark?"is-dark":""]])},[o.showHeader?(R(),j("div",Qp,[Kt(t.$slots,"header-left",{},(()=>[E("div",em,[E("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:k.value},null,8,tm),E("span",nm,ze(g.value),1)])]),!0),Kt(t.$slots,"header-right",{},(()=>[E("div",rm,[E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:N,onMouseenter:n[0]||(n[0]=e=>T(e,c.value?ee(l)("common.expand")||"Expand":ee(l)("common.collapse")||"Collapse")),onFocus:n[1]||(n[1]=e=>T(e,c.value?ee(l)("common.expand")||"Expand":ee(l)("common.collapse")||"Collapse")),onMouseleave:I,onBlur:I},[(R(),j("svg",{style:pt({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...n[17]||(n[17]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,om),o.showFontSizeButtons&&o.enableFontSizeControl?(R(),j(Ke,{key:0},[E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(f.value)&&f.value<=10,onClick:n[2]||(n[2]=e=>function(){const e=Math.max(10,f.value-1);f.value=e}()),onMouseenter:n[3]||(n[3]=e=>T(e,ee(l)("common.decrease")||"Decrease")),onFocus:n[4]||(n[4]=e=>T(e,ee(l)("common.decrease")||"Decrease")),onMouseleave:I,onBlur:I},[...n[18]||(n[18]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,im),E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!m.value||f.value===p.value,onClick:n[5]||(n[5]=e=>{f.value=p.value}),onMouseenter:n[6]||(n[6]=e=>T(e,ee(l)("common.reset")||"Reset")),onFocus:n[7]||(n[7]=e=>T(e,ee(l)("common.reset")||"Reset")),onMouseleave:I,onBlur:I},[...n[19]||(n[19]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),E("path",{d:"M3 3v5h5"})])],-1)])],40,sm),E("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(f.value)&&f.value>=36,onClick:n[8]||(n[8]=e=>function(){const e=Math.min(36,f.value+1);f.value=e}()),onMouseenter:n[9]||(n[9]=e=>T(e,ee(l)("common.increase")||"Increase")),onFocus:n[10]||(n[10]=e=>T(e,ee(l)("common.increase")||"Increase")),onMouseleave:I,onBlur:I},[...n[20]||(n[20]=[E("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,lm)],64)):Ue("",!0),o.showCopyButton?(R(),j("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":s.value?ee(l)("common.copied")||"Copied":ee(l)("common.copy")||"Copy",onClick:$,onMouseenter:n[11]||(n[11]=e=>L(e)),onFocus:n[12]||(n[12]=e=>L(e)),onMouseleave:I,onBlur:I},[s.value?(R(),j("svg",um,[...n[22]||(n[22]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(R(),j("svg",cm,[...n[21]||(n[21]=[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),E("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,am)):Ue("",!0),o.showExpandButton?(R(),j("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":a.value,onClick:z,onMouseenter:n[13]||(n[13]=e=>T(e,a.value?ee(l)("common.collapse")||"Collapse":ee(l)("common.expand")||"Expand")),onFocus:n[14]||(n[14]=e=>T(e,a.value?ee(l)("common.collapse")||"Collapse":ee(l)("common.expand")||"Expand")),onMouseleave:I,onBlur:I},[a.value?(R(),j("svg",fm,[...n[23]||(n[23]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(R(),j("svg",hm,[...n[24]||(n[24]=[E("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,dm)):Ue("",!0),y.value&&o.showPreviewButton?(R(),j("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":ee(l)("common.preview")||"Preview",onClick:O,onMouseenter:n[15]||(n[15]=e=>T(e,ee(l)("common.preview")||"Preview")),onFocus:n[16]||(n[16]=e=>T(e,ee(l)("common.preview")||"Preview")),onMouseleave:I,onBlur:I},[...n[25]||(n[25]=[E("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[E("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[E("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),E("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,pm)):Ue("",!0)])]),!0)])):Ue("",!0),_n(E("div",{ref_key:"codeBlockContent",ref:u,class:"code-block-content",style:pt(x.value),onScroll:F},null,36),[[Cn,!(c.value||!e.stream&&e.loading)]]),_n(E("div",mm,[Kt(t.$slots,"loading",{loading:e.loading,stream:e.stream},(()=>[n[26]||(n[26]=E("div",{class:"loading-skeleton"},[E("div",{class:"skeleton-line"}),E("div",{class:"skeleton-line"}),E("div",{class:"skeleton-line short"})],-1))]),!0)],512),[[Cn,!e.stream&&e.loading]])],6))}}),Nr=Be(gm,[["__scopeId","data-v-9201c1b9"]]);Nr.install=e=>{e.component(Nr.__name,Nr)};let qt=null,bn=null,ds=!1;const mt=new Map,fn=new Map,Cl=200;let qn=5;const Bn=new Set;function kr(){if(mt.size<qn&&Bn.size){const e=Array.from(Bn);Bn.clear();for(const t of e)try{t()}catch(e){}}}let en=null;function zm(e){qt=e,bn=null,qt.onmessage=e=>{const{id:t,html:n,error:o}=e.data,r=mt.get(t);if(r)if(mt.delete(t),clearTimeout(r.timeoutId),kr(),o)r.reject(new Error(o));else{const{content:t,displayMode:o}=e.data;if(t){const e=`${o?"d":"i"}:${t}`;if(fn.set(e,n),fn.size>Cl){const e=fn.keys().next().value;fn.delete(e)}}r.resolve(n)}},qt.onerror=e=>{console.error("[katexWorkerClient] Worker error:",e);for(const[t,n]of mt.entries())clearTimeout(n.timeoutId),n.reject(new Error(`Worker error: ${e.message}`));mt.clear(),kr()}}function Hm(){var e;qt&&(null==(e=qt.terminate)||e.call(qt)),qt=null,bn=null}function vm(){return qt||(bn=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),bn.name="WorkerInitError",bn.code="WORKER_INIT_ERROR",null)}function jm(e){ds=!!e,qt&&qt.postMessage({type:"init",debug:ds})}function wm(e,t=!0,n=2e3,o){return se(this,null,(function*(){const r=performance.now();if(bn)return Promise.reject(bn);const l=`${t?"d":"i"}:${e}`,i=fn.get(l);if(i)return en&&en.recordRender({type:"cache-hit",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),Promise.resolve(i);const s=vm();if(!s)return Promise.reject(bn);if(mt.size>=qn){const t=new Error("Worker busy");return t.name="WorkerBusy",t.code="WORKER_BUSY",t.busy=!0,t.inFlight=mt.size,t.max=qn,en&&en.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(t)}return new Promise(((l,i)=>{if(null!=o&&o.aborted){const e=new Error("Aborted");return e.name="AbortError",void i(e)}const a=Math.random().toString(36).slice(2),c=globalThis.setTimeout((()=>{mt.delete(a);const t=new Error("Worker render timed out");t.name="WorkerTimeout",t.code="WORKER_TIMEOUT",en&&en.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:"timeout"}),i(t),kr()}),n);o&&o.addEventListener("abort",(()=>{globalThis.clearTimeout(c),mt.has(a)&&mt.delete(a);const e=new Error("Aborted");e.name="AbortError",i(e),kr()}),{once:!0});const u=l,d=i;mt.set(a,{resolve:t=>{en&&en.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!0}),u(t)},reject:t=>{en&&en.recordRender({type:"worker",duration:performance.now()-r,formulaLength:e.length,timestamp:Date.now(),success:!1,error:(null==t?void 0:t.message)||String(t)}),d(t)},timeoutId:c}),s.postMessage({id:a,content:e,displayMode:t})}))}))}function El(e,t=!0,n){const o=`${t?"d":"i"}:${e}`;if(fn.set(o,n),fn.size>Cl){const e=fn.keys().next().value;fn.delete(e)}}function qm(){return{inFlight:mt.size,max:qn}}function Wm(e){Number.isFinite(e)&&e>0&&(qn=Math.floor(e))}const Xo="WORKER_BUSY";function Vm(){return mt.size>=qn}function km(e=2e3,t){return mt.size<qn?Promise.resolve():new Promise(((n,o)=>{let r,l=!1;const i=()=>{l||(l=!0,r&&globalThis.clearTimeout(r),Bn.delete(i),n())};if(Bn.add(i),r=globalThis.setTimeout((()=>{if(l)return;l=!0,Bn.delete(i);const e=new Error("Wait for worker slot timed out");e.name="WorkerBusyTimeout",e.code="WORKER_BUSY_TIMEOUT",o(e)}),e),queueMicrotask((()=>kr())),t){const e=()=>{if(l)return;l=!0,r&&globalThis.clearTimeout(r),Bn.delete(i);const e=new Error("Aborted");e.name="AbortError",o(e)};t.aborted?e():t.addEventListener("abort",e,{once:!0})}}))}const hn={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Um(e){null!=e.timeout&&(hn.timeout=Math.max(0,Math.floor(e.timeout))),null!=e.waitTimeout&&(hn.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),null!=e.backoffMs&&(hn.backoffMs=Math.max(0,Math.floor(e.backoffMs))),null!=e.maxRetries&&(hn.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function Km(){return ae({},hn)}function Ml(e){return se(this,arguments,(function*(e,t=!0,n={}){var o,r,l,i;const s=null!=(o=n.timeout)?o:hn.timeout,a=null!=(r=n.waitTimeout)?r:hn.waitTimeout,c=null!=(l=n.backoffMs)?l:hn.backoffMs,u=null!=(i=n.maxRetries)?i:hn.maxRetries,d=n.signal;let h=0;for(;;){if(null!=d&&d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}try{return yield wm(e,t,s,d)}catch(e){if((null==e?void 0:e.code)!==Xo||h>=u)throw e;if(h++,yield km(a,d).catch((()=>{})),null!=d&&d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}c>0&&(yield new Promise((e=>globalThis.setTimeout(e,c*h))))}}}))}const ym={key:0,class:"math-loading-overlay"},xm=De({__name:"MathBlockNode",props:{node:{}},setup(e){const t=e;let n=null;const o=V(null),r=V(null);let l=!1,i=0,s=!1,a=null;const c=er();let u=null;const d=V(!0);function h(){return se(this,null,(function*(){if(!t.node.content||!r.value||s)return;if(!l)try{!u&&o.value&&(u=c(o.value)),yield null==u?void 0:u.whenVisible}catch(e){}a&&(a.abort(),a=null);const e=++i,h=new AbortController;a=h,Ml(t.node.content,!0,{timeout:3e3,waitTimeout:2e3,maxRetries:1,signal:h.signal}).then((t=>{s||e!==i||r.value&&(r.value.innerHTML=t,l=!0,d.value=!1)})).catch((o=>se(null,null,(function*(){if(s||e!==i||!r.value)return;const a=(null==o?void 0:o.code)||(null==o?void 0:o.name);if("WORKER_INIT_ERROR"!==a&&!(null==o?void 0:o.fallbackToRenderer)&&a!==Xo&&"WORKER_TIMEOUT"!==a||(n||(n=yield br()),!n))l||(d.value=!0),t.node.loading||(d.value=!1,r.value.textContent=t.node.raw);else try{const e=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!0});r.value.innerHTML=e,l=!0,d.value=!1,El(t.node.content,!0,e)}catch(e){}}))))}))}return Ae((()=>t.node.content),(()=>{h()})),Xr((()=>{h()})),Mn((()=>{var e;s=!0,a&&(a.abort(),a=null),null==(e=null==u?void 0:u.destroy)||e.call(u),u=null})),(e,t)=>(R(),j("div",{ref_key:"containerEl",ref:o,class:"math-block text-center overflow-x-auto relative min-h-[40px]"},[Mt(Wn,{name:"math-fade"},{default:pn((()=>[d.value?(R(),j("div",ym,[...t[0]||(t[0]=[E("div",{class:"math-loading-spinner"},null,-1)])])):Ue("",!0)])),_:1}),E("div",{ref_key:"mathBlockElement",ref:r,class:Ce({"math-rendering":d.value})},null,2)],512))}}),pr=Be(xm,[["__scopeId","data-v-2e076ab9"]]);pr.install=e=>{e.component(pr.__name,pr)};const bm=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),_m={class:"math-inline__loading",role:"status","aria-live":"polite"},Cm=De({__name:"MathInlineNode",props:{node:{}},setup(e){const t=e;let n=null;const o=V(null),r=V(null);let l=!1,i=0,s=!1,a=null;const c=V(!0),u=er();let d=null;function h(){return se(this,null,(function*(){if(!t.node.content||!r.value||s)return;a&&(a.abort(),a=null);const e=++i,h=new AbortController;if(a=h,!l)try{!d&&o.value&&(d=u(o.value)),yield null==d?void 0:d.whenVisible}catch(e){}Ml(t.node.content,!1,{timeout:1500,waitTimeout:0,maxRetries:0,signal:h.signal}).then((t=>{s||e!==i||r.value&&(r.value.innerHTML=t,c.value=!1,l=!0)})).catch((o=>se(null,null,(function*(){if(s||e!==i||!r.value)return;const a=(null==o?void 0:o.code)||(null==o?void 0:o.name);if("WORKER_INIT_ERROR"!==a&&!(null==o?void 0:o.fallbackToRenderer)&&a!==Xo&&"WORKER_TIMEOUT"!==a||(n||(n=yield br()),!n))l||(c.value=!0),t.node.loading||(c.value=!1,r.value.textContent=t.node.raw);else try{const e=n.renderToString(t.node.content,{throwOnError:t.node.loading,displayMode:!1});c.value=!1,r.value.innerHTML=e,l=!0,El(t.node.content,!1,e)}catch(e){}}))))}))}return Ae((()=>t.node.content),(()=>{h()})),Xr((()=>{h()})),Mn((()=>{var e;s=!0,a&&(a.abort(),a=null),null==(e=null==d?void 0:d.destroy)||e.call(d),d=null})),(e,t)=>(R(),j("span",{ref_key:"containerEl",ref:o,class:"math-inline-wrapper"},[_n(E("span",{ref_key:"mathElement",ref:r,class:"math-inline"},null,512),[[Cn,!c.value]]),c.value?(R(),Je(Wn,{key:0,name:"table-node-fade"},{default:pn((()=>[E("span",_m,[Kt(e.$slots,"loading",{isLoading:c.value},(()=>[t[0]||(t[0]=E("span",{class:"math-inline__spinner animate-spin","aria-hidden":"true"},null,-1)),t[1]||(t[1]=E("span",{class:"sr-only"},"Loading",-1))]),!0)])])),_:3})):Ue("",!0)],512))}}),mr=Be(Cm,[["__scopeId","data-v-6b23009e"]]);mr.install=e=>{e.component(mr.__name,mr)};const Em=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Mm={AdmonitionNode:fr,BlockquoteNode:rr,CheckboxNode:tn,CodeBlockNode:hr,DefinitionListNode:or,EmojiNode:gt,FootnoteNode:sr,FootnoteReferenceNode:St,HardBreakNode:Nn,HeadingNode:Zo,HighlightNode:It,ImageNode:On,InlineCodeNode:vt,PreCodeNode:Pn,InsertNode:$t,LinkNode:xt,ListItemNode:lr,ListNode:ar,MathBlockNode:pr,MathInlineNode:mr,MermaidBlockNode:Xn,ParagraphNode:cr,StrikethroughNode:yt,StrongNode:kt,SubscriptNode:Tt,SuperscriptNode:Dt,TableNode:ur,TextNode:ut,ThematicBreakNode:dr,ReferenceNode:wt,MarkdownCodeBlockNode:Nr},Zm={install(e,t){Object.entries(Mm).forEach((([t,n])=>{e.component(t,n)})),null!=t&&t.getLanguageIcon&&Ip(t.getLanguageIcon),null!=t&&t.mathOptions&&pd(t.mathOptions)}};export{fr as AdmonitionNode,rr as BlockquoteNode,tn as CheckboxNode,hr as CodeBlockNode,or as DefinitionListNode,jr as ESCAPED_TEX_BRACE_COMMANDS,gt as EmojiNode,sr as FootnoteNode,St as FootnoteReferenceNode,Nn as HardBreakNode,Zo as HeadingNode,It as HighlightNode,On as ImageNode,vt as InlineCodeNode,$t as InsertNode,Vs as KATEX_COMMANDS,xt as LinkNode,lr as ListItemNode,ar as ListNode,T1 as MERMAID_WORKER_BUSY_CODE,Nr as MarkdownCodeBlockNode,Wt as MarkdownRender,pr as MathBlockNode,mr as MathInlineNode,Xn as MermaidBlockNode,cr as ParagraphNode,Pn as PreCodeNode,wt as ReferenceNode,yt as StrikethroughNode,kt as StrongNode,Tt as SubscriptNode,Dt as SuperscriptNode,Id as TEX_BRACE_COMMANDS,ur as TableNode,ut as TextNode,dr as ThematicBreakNode,Zm as VueRendererMarkdown,Xo as WORKER_BUSY_CODE,vd as applyContainers,Xd as applyMath,I1 as canParseOffthread,Fm as clearGlobalCustomComponents,Hm as clearKaTeXWorker,Pm as clearMermaidWorker,Tm as clearRegisteredMarkdownPlugins,Wt as default,Td as findMatchingClose,F1 as findPrefixOffthread,Vt as getCustomNodeComponents,Km as getKaTeXBackpressureDefaults,qm as getKaTeXWorkerLoad,bl as getLanguageIcon,Df as getMarkdown,Nm as getMermaidWorkerLoad,S0 as getUseMonaco,Vm as isKaTeXWorkerBusy,Ti as isMathLike,_l as languageMap,Un as normalizeStandaloneBackslashT,yr as parseFenceToken,et as parseInlineTokens,Af as parseMarkdownToStructure,zi as processTokens,Dm as registerMarkdownPlugin,Im as removeCustomComponents,wm as renderKaTeXInWorker,Ml as renderKaTeXWithBackpressure,$m as setCustomComponents,Bm as setDefaultI18nMap,pd as setDefaultMathOptions,Um as setKaTeXBackpressureDefaults,El as setKaTeXCache,zm as setKaTeXWorker,jm as setKaTeXWorkerDebug,Wm as setKaTeXWorkerMaxConcurrency,Ip as setLanguageIconResolver,Om as setMermaidWorker,Rm as setMermaidWorkerClientDebug,Lm as setMermaidWorkerMaxConcurrency,Qi as terminateWorker,km as waitForKaTeXWorkerSlot};
//# sourceMappingURL=/sm/37e642f9797cf1e1dd39989a1bba0862fbfd835fdae45a97c3ce55d213b48b67.map